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 bdc1ba28..123dc8dd 100644 --- a/grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.cc +++ b/grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.cc @@ -29,6 +29,8 @@ static const char* CoreApiService_method_names[] = { "/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", }; std::unique_ptr< CoreApiService::Stub> CoreApiService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -43,6 +45,8 @@ CoreApiService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& cha , 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) {} ::grpc::Status CoreApiService::Stub::ListAccounts(::grpc::ClientContext* context, const ::vega::coreapi::v1::ListAccountsRequest& request, ::vega::coreapi::v1::ListAccountsResponse* response) { @@ -160,6 +164,52 @@ ::grpc::ClientAsyncResponseReader< ::vega::coreapi::v1::ListValidatorsResponse>* 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; +} + CoreApiService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( CoreApiService_method_names[0], @@ -211,6 +261,26 @@ CoreApiService::Service::Service() { ::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))); } CoreApiService::Service::~Service() { @@ -251,6 +321,20 @@ ::grpc::Status CoreApiService::Service::ListValidators(::grpc::ServerContext* co 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, ""); +} + } // 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 faccbb90..b6c4c83d 100644 --- a/grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.h +++ b/grpc/clients/cpp/generated/coreapi/v1/coreapi.grpc.pb.h @@ -73,6 +73,20 @@ class CoreApiService final { 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)); + } class experimental_async_interface { public: virtual ~experimental_async_interface() {} @@ -106,6 +120,18 @@ class CoreApiService final { #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 }; #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL typedef class experimental_async_interface async_interface; @@ -125,6 +151,10 @@ class CoreApiService final { 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; }; class Stub final : public StubInterface { public: @@ -164,6 +194,20 @@ class CoreApiService final { 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)); + } class experimental_async final : public StubInterface::experimental_async_interface { public: @@ -197,6 +241,18 @@ class CoreApiService final { #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 private: friend class Stub; explicit experimental_async(Stub* stub): stub_(stub) { } @@ -218,11 +274,17 @@ class CoreApiService final { ::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; 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_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -235,6 +297,8 @@ class CoreApiService final { 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); }; template class WithAsyncMethod_ListAccounts : public BaseClass { @@ -336,7 +400,47 @@ class CoreApiService final { ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_ListAccounts > > > > AsyncService; + 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); + } + }; + typedef WithAsyncMethod_ListAccounts > > > > > > AsyncService; template class ExperimentalWithCallbackMethod_ListAccounts : public BaseClass { private: @@ -572,11 +676,105 @@ class CoreApiService final { #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; } + }; #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: @@ -663,6 +861,40 @@ class CoreApiService final { } }; 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 WithRawMethod_ListAccounts : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -763,6 +995,46 @@ class CoreApiService final { } }; 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 ExperimentalWithRawCallbackMethod_ListAccounts : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -953,6 +1225,82 @@ class CoreApiService final { { 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 WithStreamedUnaryMethod_ListAccounts : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -1087,9 +1435,63 @@ class CoreApiService final { // 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; }; - typedef WithStreamedUnaryMethod_ListAccounts > > > > StreamedUnaryService; + 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; + }; + 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 eec277f2..d63b8d43 100644 --- a/grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.cc +++ b/grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.cc @@ -15,8 +15,10 @@ // @@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<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_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 { @@ -66,6 +68,22 @@ 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_; } // namespace v1 } // namespace coreapi } // namespace vega @@ -136,6 +154,33 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ListAssetsResponse_coreap {{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_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; @@ -190,6 +235,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_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; @@ -217,7 +289,7 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ListValidatorsResponse_co {{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 ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_coreapi_2fv1_2fcoreapi_2eproto[11]; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_coreapi_2fv1_2fcoreapi_2eproto[15]; 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; @@ -291,6 +363,31 @@ 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::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_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::vega::coreapi::v1::Account)}, @@ -304,6 +401,10 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 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)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -318,71 +419,93 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = 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_), }; 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\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\007balanc" - "e\030\003 \001(\tR\007balance\022\024\n\005asset\030\005 \001(\tR\005asset\022\022" - "\n\004type\030\006 \001(\tR\004type\"C\n\023ListAccountsReques" - "t\022\024\n\005party\030\001 \001(\tR\005party\022\026\n\006market\030\002 \001(\tR" - "\006market\"L\n\024ListAccountsResponse\0224\n\010accou" - "nts\030\001 \003(\0132\030.vega.coreapi.v1.AccountR\010acc" - "ounts\")\n\021ListAssetsRequest\022\024\n\005asset\030\001 \001(" - "\tR\005asset\"9\n\022ListAssetsResponse\022#\n\006assets" - "\030\001 \003(\0132\013.vega.AssetR\006assets\"R\n\034ListNetwo" - "rkParametersRequest\0222\n\025network_parameter" - "_key\030\001 \001(\tR\023networkParameterKey\"f\n\035ListN" - "etworkParametersResponse\022E\n\022network_para" - "meters\030\001 \003(\0132\026.vega.NetworkParameterR\021ne" - "tworkParameters\"\024\n\022ListPartiesRequest\"<\n" - "\023ListPartiesResponse\022%\n\007parties\030\001 \003(\0132\013." - "vega.PartyR\007parties\"\027\n\025ListValidatorsReq" - "uest\"Y\n\026ListValidatorsResponse\022\?\n\nvalida" - "tors\030\001 \003(\0132\037.vega.events.v1.ValidatorUpd" - "ateR\nvalidators2\371\003\n\016CoreApiService\022[\n\014Li" - "stAccounts\022$.vega.coreapi.v1.ListAccount" - "sRequest\032%.vega.coreapi.v1.ListAccountsR" - "esponse\022U\n\nListAssets\022\".vega.coreapi.v1." - "ListAssetsRequest\032#.vega.coreapi.v1.List" - "AssetsResponse\022v\n\025ListNetworkParameters\022" - "-.vega.coreapi.v1.ListNetworkParametersR" - "equest\032..vega.coreapi.v1.ListNetworkPara" - "metersResponse\022X\n\013ListParties\022#.vega.cor" - "eapi.v1.ListPartiesRequest\032$.vega.coreap" - "i.v1.ListPartiesResponse\022a\n\016ListValidato" - "rs\022&.vega.coreapi.v1.ListValidatorsReque" - "st\032\'.vega.coreapi.v1.ListValidatorsRespo" - "nseBM\n\037io.vegaprotocol.vega.coreapi.v1Z*" - "code.vegaprotocol.io/vega/proto/coreapi/" - "v1b\006proto3" + ".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\tproposals2\263\005\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" + "seBM\n\037io.vegaprotocol.vega.coreapi.v1Z*c" + "ode.vegaprotocol.io/vega/proto/coreapi/v" + "1b\006proto3" ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_deps[3] = { +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[11] = { +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_sccs[15] = { &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_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, }; 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", 1450, - &descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_once, descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_sccs, descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_deps, 11, 3, + false, false, descriptor_table_protodef_coreapi_2fv1_2fcoreapi_2eproto, "coreapi/v1/coreapi.proto", 1929, + &descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_once, descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_sccs, descriptor_table_coreapi_2fv1_2fcoreapi_2eproto_deps, 15, 5, schemas, file_default_instances, TableStruct_coreapi_2fv1_2fcoreapi_2eproto::offsets, - file_level_metadata_coreapi_2fv1_2fcoreapi_2eproto, 11, file_level_enum_descriptors_coreapi_2fv1_2fcoreapi_2eproto, file_level_service_descriptors_coreapi_2fv1_2fcoreapi_2eproto, + file_level_metadata_coreapi_2fv1_2fcoreapi_2eproto, 15, file_level_enum_descriptors_coreapi_2fv1_2fcoreapi_2eproto, file_level_service_descriptors_coreapi_2fv1_2fcoreapi_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. @@ -2741,43 +2864,911 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ListValidatorsResponse::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 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) } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListAccountsRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListAccountsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListAccountsRequest >(arena); +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) } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListAccountsResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListAccountsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListAccountsResponse >(arena); + +void ListMarketsRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListMarketsRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + market_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListAssetsRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListAssetsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListAssetsRequest >(arena); + +ListMarketsRequest::~ListMarketsRequest() { + // @@protoc_insertion_point(destructor:vega.coreapi.v1.ListMarketsRequest) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListAssetsResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListAssetsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListAssetsResponse >(arena); + +void ListMarketsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + market_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListNetworkParametersRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListNetworkParametersRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListNetworkParametersRequest >(arena); + +void ListMarketsRequest::ArenaDtor(void* object) { + ListMarketsRequest* _this = reinterpret_cast< ListMarketsRequest* >(object); + (void)_this; } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListNetworkParametersResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListNetworkParametersResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListNetworkParametersResponse >(arena); +void ListMarketsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListPartiesRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListPartiesRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListPartiesRequest >(arena); +void ListMarketsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListPartiesResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListPartiesResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListPartiesResponse >(arena); +const ListMarketsRequest& ListMarketsRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListMarketsRequest_coreapi_2fv1_2fcoreapi_2eproto.base); + return *internal_default_instance(); } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListValidatorsRequest* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListValidatorsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListValidatorsRequest >(arena); + + +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>(); } -template<> PROTOBUF_NOINLINE ::vega::coreapi::v1::ListValidatorsResponse* Arena::CreateMaybeMessage< ::vega::coreapi::v1::ListValidatorsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::vega::coreapi::v1::ListValidatorsResponse >(arena); + +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(); +} + + +// @@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); } 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 e144c864..55b5a3da 100644 --- a/grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.h +++ b/grpc/clients/cpp/generated/coreapi/v1/coreapi.pb.h @@ -32,6 +32,8 @@ #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) @@ -49,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[11] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[15] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -74,6 +76,12 @@ extern ListAssetsRequestDefaultTypeInternal _ListAssetsRequest_default_instance_ class ListAssetsResponse; class ListAssetsResponseDefaultTypeInternal; extern ListAssetsResponseDefaultTypeInternal _ListAssetsResponse_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_; @@ -86,6 +94,12 @@ extern ListPartiesRequestDefaultTypeInternal _ListPartiesRequest_default_instanc 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_; @@ -101,10 +115,14 @@ template<> ::vega::coreapi::v1::ListAccountsRequest* Arena::CreateMaybeMessage<: 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::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*); PROTOBUF_NAMESPACE_CLOSE @@ -1745,6 +1763,600 @@ class ListValidatorsResponse PROTOBUF_FINAL : 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; +}; // =================================================================== @@ -2528,6 +3140,277 @@ ListValidatorsResponse::validators() const { 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_; +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -2551,6 +3434,14 @@ ListValidatorsResponse::validators() const { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/grpc/clients/cpp/generated/snapshot/v1/snapshot.pb.cc b/grpc/clients/cpp/generated/snapshot/v1/snapshot.pb.cc index 130b0f54..534abbb2 100644 --- a/grpc/clients/cpp/generated/snapshot/v1/snapshot.pb.cc +++ b/grpc/clients/cpp/generated/snapshot/v1/snapshot.pb.cc @@ -19,6 +19,7 @@ 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_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 { @@ -54,6 +55,14 @@ 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 @@ -125,6 +134,33 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Collateral_snapshot_2fv1_ {{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; @@ -166,7 +202,7 @@ static void InitDefaultsscc_info_Snapshot_snapshot_2fv1_2fsnapshot_2eproto() { ::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[8]; +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; @@ -187,6 +223,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_snapshot_2fv1_2fsnapshot_2epro 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_ @@ -226,16 +263,35 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_snapshot_2fv1_2fsnapshot_2epro ~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)}, - { 16, -1, sizeof(::vega::snapshot::v1::AssetEntry)}, - { 23, -1, sizeof(::vega::snapshot::v1::Assets)}, - { 29, -1, sizeof(::vega::snapshot::v1::AssetBalance)}, - { 37, -1, sizeof(::vega::snapshot::v1::Collateral)}, - { 43, -1, sizeof(::vega::snapshot::v1::NetParams)}, - { 49, -1, sizeof(::vega::snapshot::v1::Proposals)}, + { 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[] = { @@ -247,52 +303,63 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = 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\"\223\001\n\nCheckpoint\022" + "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\"U\n\nAssetEntry\022\016\n\002id\030\001 \001(\t" - "R\002id\0227\n\rasset_details\030\002 \001(\0132\022.vega.Asset" - "DetailsR\014assetDetails\">\n\006Assets\0224\n\006asset" - "s\030\001 \003(\0132\034.vega.snapshot.v1.AssetEntryR\006a" - "ssets\"T\n\014AssetBalance\022\024\n\005party\030\001 \001(\tR\005pa" - "rty\022\024\n\005asset\030\002 \001(\tR\005asset\022\030\n\007balance\030\003 \001" - "(\tR\007balance\"H\n\nCollateral\022:\n\010balances\030\001 " - "\003(\0132\036.vega.snapshot.v1.AssetBalanceR\010bal" - "ances\";\n\tNetParams\022.\n\006params\030\001 \003(\0132\026.veg" - "a.NetworkParameterR\006params\"9\n\tProposals\022" - ",\n\tproposals\030\001 \003(\0132\016.vega.ProposalR\tprop" - "osalsBO\n io.vegaprotocol.vega.snapshot.v" - "1Z+code.vegaprotocol.io/vega/proto/snaps" - "hot/v1b\006proto3" + "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[8] = { +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", 814, - &descriptor_table_snapshot_2fv1_2fsnapshot_2eproto_once, descriptor_table_snapshot_2fv1_2fsnapshot_2eproto_sccs, descriptor_table_snapshot_2fv1_2fsnapshot_2eproto_deps, 8, 3, + 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, 8, file_level_enum_descriptors_snapshot_2fv1_2fsnapshot_2eproto, file_level_service_descriptors_snapshot_2fv1_2fsnapshot_2eproto, + 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. @@ -570,6 +637,11 @@ Checkpoint::Checkpoint(const Checkpoint& from) 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) } @@ -579,6 +651,7 @@ void Checkpoint::SharedCtor() { 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() { @@ -593,6 +666,7 @@ void Checkpoint::SharedDtor() { 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) { @@ -620,6 +694,7 @@ void Checkpoint::Clear() { assets_.ClearToEmpty(); collateral_.ClearToEmpty(); network_parameters_.ClearToEmpty(); + delegation_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -662,6 +737,14 @@ const char* Checkpoint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: 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) { @@ -714,6 +797,12 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Checkpoint::_InternalSerialize( 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); @@ -758,6 +847,13 @@ size_t Checkpoint::ByteSizeLong() const { 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_); @@ -801,6 +897,9 @@ void Checkpoint::MergeFrom(const Checkpoint& from) { 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) { @@ -828,6 +927,7 @@ void Checkpoint::InternalSwap(Checkpoint* other) { 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 { @@ -2177,6 +2277,580 @@ ::PROTOBUF_NAMESPACE_ID::Metadata Proposals::GetMetadata() const { } +// =================================================================== + +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 @@ -2206,6 +2880,12 @@ template<> PROTOBUF_NOINLINE ::vega::snapshot::v1::NetParams* Arena::CreateMaybe 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) diff --git a/grpc/clients/cpp/generated/snapshot/v1/snapshot.pb.h b/grpc/clients/cpp/generated/snapshot/v1/snapshot.pb.h index f8dacf10..0a1b7ce7 100644 --- a/grpc/clients/cpp/generated/snapshot/v1/snapshot.pb.h +++ b/grpc/clients/cpp/generated/snapshot/v1/snapshot.pb.h @@ -49,7 +49,7 @@ struct TableStruct_snapshot_2fv1_2fsnapshot_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[8] + 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[]; @@ -74,6 +74,12 @@ 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_; @@ -92,6 +98,8 @@ template<> ::vega::snapshot::v1::AssetEntry* Arena::CreateMaybeMessage<::vega::s 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*); @@ -379,6 +387,7 @@ class Checkpoint PROTOBUF_FINAL : kAssetsFieldNumber = 2, kCollateralFieldNumber = 3, kNetworkParametersFieldNumber = 4, + kDelegationFieldNumber = 5, }; // bytes governance = 1 [json_name = "governance"]; void clear_governance(); @@ -444,6 +453,22 @@ class Checkpoint PROTOBUF_FINAL : 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; @@ -455,6 +480,7 @@ class Checkpoint PROTOBUF_FINAL : ::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; }; @@ -1380,6 +1406,372 @@ class Proposals PROTOBUF_FINAL : 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; +}; // =================================================================== @@ -1761,6 +2153,67 @@ inline void Checkpoint::set_allocated_network_parameters(std::string* network_pa // @@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 @@ -2256,6 +2709,315 @@ Proposals::proposals() const { 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__ @@ -2273,6 +3035,10 @@ Proposals::proposals() const { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/grpc/clients/cpp/generated/vega.pb.cc b/grpc/clients/cpp/generated/vega.pb.cc index a2dc99e0..c6d93399 100644 --- a/grpc/clients/cpp/generated/vega.pb.cc +++ b/grpc/clients/cpp/generated/vega.pb.cc @@ -1411,7 +1411,6 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_vega_2eproto::offsets[] PROTOB 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, fee_), PROTOBUF_FIELD_OFFSET(::vega::Node, staked_by_operator_), PROTOBUF_FIELD_OFFSET(::vega::Node, staked_by_delegates_), PROTOBUF_FIELD_OFFSET(::vega::Node, staked_total_), @@ -1429,7 +1428,6 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_vega_2eproto::offsets[] PROTOB 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, average_fee_), PROTOBUF_FIELD_OFFSET(::vega::NodeData, uptime_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::vega::Delegation, _internal_metadata_), @@ -1508,10 +1506,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)}, - { 477, -1, sizeof(::vega::NodeData)}, - { 488, -1, sizeof(::vega::Delegation)}, - { 497, -1, sizeof(::vega::RewardDetails)}, - { 508, -1, sizeof(::vega::RewardPerAssetDetail)}, + { 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[] = { @@ -1814,136 +1812,134 @@ 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\"\362\003\n\004Node\022\016\n\002id\030\001 \001(\tR\002id\022\037\n\007pu" + "\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\020\n\003fee\030\005 \001(\002R\003fee\022,\n\022staked_by_operat" - "or\030\006 \001(\tR\020stakedByOperator\022.\n\023staked_by_" - "delegates\030\007 \001(\tR\021stakedByDelegates\022!\n\014st" - "aked_total\030\010 \001(\tR\013stakedTotal\022,\n\022max_int" - "ended_stake\030\t \001(\tR\020maxIntendedStake\022#\n\rp" - "ending_stake\030\n \001(\tR\014pendingStake\0226\n\nepoc" - "h_data\030\013 \001(\0132\017.vega.EpochDataB\006\342\337\037\002 \001R\te" - "pochData\0220\n\006status\030\014 \001(\0162\020.vega.NodeStat" - "usB\006\342\337\037\002 \001R\006status\0222\n\013delagations\030\r \003(\0132" - "\020.vega.DelegationR\013delagations\"\331\001\n\010NodeD" - "ata\022!\n\014staked_total\030\001 \001(\tR\013stakedTotal\022\037" - "\n\013total_nodes\030\002 \001(\rR\ntotalNodes\022%\n\016inact" - "ive_nodes\030\003 \001(\rR\rinactiveNodes\022)\n\020valida" - "ting_nodes\030\004 \001(\rR\017validatingNodes\022\037\n\013ave" - "rage_fee\030\005 \001(\002R\naverageFee\022\026\n\006uptime\030\006 \001" - "(\002R\006uptime\"p\n\nDelegation\022\024\n\005party\030\001 \001(\tR" - "\005party\022\027\n\007node_id\030\002 \001(\tR\006nodeId\022\026\n\006amoun" - "t\030\003 \001(\tR\006amount\022\033\n\tepoch_seq\030\004 \001(\tR\010epoc" - "hSeq\"\304\001\n\rRewardDetails\022\031\n\010asset_id\030\001 \001(\t" - "R\007assetId\022\031\n\010party_id\030\002 \001(\tR\007partyId\022\024\n\005" - "epoch\030\003 \001(\004R\005epoch\022\026\n\006amount\030\004 \001(\tR\006amou" - "nt\022.\n\023percentage_of_total\030\005 \001(\tR\021percent" - "ageOfTotal\022\037\n\013received_at\030\006 \001(\003R\nreceive" - "dAt\"\203\001\n\024RewardPerAssetDetail\022\024\n\005asset\030\001 " - "\001(\tR\005asset\022-\n\007details\030\002 \003(\0132\023.vega.Rewar" - "dDetailsR\007details\022&\n\017total_for_asset\030\003 \001" - "(\tR\rtotalForAsset*9\n\004Side\022\024\n\020SIDE_UNSPEC" - "IFIED\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\014I" - "NTERVAL_I1M\020<\022\021\n\014INTERVAL_I5M\020\254\002\022\022\n\rINTE" - "RVAL_I15M\020\204\007\022\021\n\014INTERVAL_I1H\020\220\034\022\022\n\014INTER" - "VAL_I6H\020\340\250\001\022\022\n\014INTERVAL_I1D\020\200\243\005*\243\001\n\016Auct" - "ionTrigger\022\037\n\033AUCTION_TRIGGER_UNSPECIFIE" - "D\020\000\022\031\n\025AUCTION_TRIGGER_BATCH\020\001\022\033\n\027AUCTIO" - "N_TRIGGER_OPENING\020\002\022\031\n\025AUCTION_TRIGGER_P" - "RICE\020\003\022\035\n\031AUCTION_TRIGGER_LIQUIDITY\020\004*\213\001" - "\n\017PeggedReference\022 \n\034PEGGED_REFERENCE_UN" - "SPECIFIED\020\000\022\030\n\024PEGGED_REFERENCE_MID\020\001\022\035\n" - "\031PEGGED_REFERENCE_BEST_BID\020\002\022\035\n\031PEGGED_R" - "EFERENCE_BEST_ASK\020\003*\370\017\n\nOrderError\022\033\n\027OR" - "DER_ERROR_UNSPECIFIED\020\000\022!\n\035ORDER_ERROR_I" - "NVALID_MARKET_ID\020\001\022 \n\034ORDER_ERROR_INVALI" - "D_ORDER_ID\020\002\022\037\n\033ORDER_ERROR_OUT_OF_SEQUE" - "NCE\020\003\022&\n\"ORDER_ERROR_INVALID_REMAINING_S" - "IZE\020\004\022\034\n\030ORDER_ERROR_TIME_FAILURE\020\005\022\037\n\033O" - "RDER_ERROR_REMOVAL_FAILURE\020\006\022+\n\'ORDER_ER" - "ROR_INVALID_EXPIRATION_DATETIME\020\007\022\'\n#ORD" - "ER_ERROR_INVALID_ORDER_REFERENCE\020\010\022 \n\034OR" - "DER_ERROR_EDIT_NOT_ALLOWED\020\t\022\035\n\031ORDER_ER" - "ROR_AMEND_FAILURE\020\n\022\031\n\025ORDER_ERROR_NOT_F" - "OUND\020\013\022 \n\034ORDER_ERROR_INVALID_PARTY_ID\020\014" - "\022\035\n\031ORDER_ERROR_MARKET_CLOSED\020\r\022#\n\037ORDER" - "_ERROR_MARGIN_CHECK_FAILED\020\016\022\'\n#ORDER_ER" - "ROR_MISSING_GENERAL_ACCOUNT\020\017\022\036\n\032ORDER_E" - "RROR_INTERNAL_ERROR\020\020\022\034\n\030ORDER_ERROR_INV" - "ALID_SIZE\020\021\022#\n\037ORDER_ERROR_INVALID_PERSI" - "STENCE\020\022\022\034\n\030ORDER_ERROR_INVALID_TYPE\020\023\022\034" - "\n\030ORDER_ERROR_SELF_TRADING\020\024\022.\n*ORDER_ER" - "ROR_INSUFFICIENT_FUNDS_TO_PAY_FEES\020\025\022%\n!" - "ORDER_ERROR_INCORRECT_MARKET_TYPE\020\026\022%\n!O" - "RDER_ERROR_INVALID_TIME_IN_FORCE\020\027\022+\n\'OR" - "DER_ERROR_GFN_ORDER_DURING_AN_AUCTION\020\030\022" - "3\n/ORDER_ERROR_GFA_ORDER_DURING_CONTINUO" - "US_TRADING\020\031\0224\n0ORDER_ERROR_CANNOT_AMEND" - "_TO_GTT_WITHOUT_EXPIRYAT\020\032\022)\n%ORDER_ERRO" - "R_EXPIRYAT_BEFORE_CREATEDAT\020\033\022,\n(ORDER_E" - "RROR_CANNOT_HAVE_GTC_AND_EXPIRYAT\020\034\022*\n&O" - "RDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC\020\035\022" - "*\n&ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GF" - "N\020\036\022,\n(ORDER_ERROR_CANNOT_AMEND_FROM_GFA" - "_OR_GFN\020\037\0224\n0ORDER_ERROR_CANNOT_SEND_IOC" - "_ORDER_DURING_AUCTION\020 \0224\n0ORDER_ERROR_C" - "ANNOT_SEND_FOK_ORDER_DURING_AUCTION\020!\022#\n" - "\037ORDER_ERROR_MUST_BE_LIMIT_ORDER\020\"\022\"\n\036OR" - "DER_ERROR_MUST_BE_GTT_OR_GTC\020#\022\'\n#ORDER_" - "ERROR_WITHOUT_REFERENCE_PRICE\020$\0223\n/ORDER" - "_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRI" - "CE\020%\0224\n0ORDER_ERROR_OFFSET_MUST_BE_LESS_" - "OR_EQUAL_TO_ZERO\020&\022-\n)ORDER_ERROR_OFFSET" - "_MUST_BE_LESS_THAN_ZERO\020\'\0227\n3ORDER_ERROR" - "_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO" - "\020(\0224\n0ORDER_ERROR_SELL_CANNOT_REFERENCE_" - "BEST_BID_PRICE\020)\0220\n,ORDER_ERROR_OFFSET_M" - "UST_BE_GREATER_THAN_ZERO\020*\022*\n&ORDER_ERRO" - "R_INSUFFICIENT_ASSET_BALANCE\020+\022E\nAORDER_" - "ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_" - "ON_NON_PEGGED_ORDER\020,\022.\n*ORDER_ERROR_UNA" - "BLE_TO_REPRICE_PEGGED_ORDER\020-\0225\n1ORDER_E" - "RROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORD" - "ER\020.\0228\n4ORDER_ERROR_NON_PERSISTENT_ORDER" - "_OUT_OF_PRICE_BOUNDS\020/*\202\001\n\013ChainStatus\022\034" - "\n\030CHAIN_STATUS_UNSPECIFIED\020\000\022\035\n\031CHAIN_ST" - "ATUS_DISCONNECTED\020\001\022\032\n\026CHAIN_STATUS_REPL" - "AYING\020\002\022\032\n\026CHAIN_STATUS_CONNECTED\020\003*\220\003\n\013" - "AccountType\022\034\n\030ACCOUNT_TYPE_UNSPECIFIED\020" - "\000\022\032\n\026ACCOUNT_TYPE_INSURANCE\020\001\022\033\n\027ACCOUNT" - "_TYPE_SETTLEMENT\020\002\022\027\n\023ACCOUNT_TYPE_MARGI" - "N\020\003\022\030\n\024ACCOUNT_TYPE_GENERAL\020\004\022$\n ACCOUNT" - "_TYPE_FEES_INFRASTRUCTURE\020\005\022\037\n\033ACCOUNT_T" - "YPE_FEES_LIQUIDITY\020\006\022\033\n\027ACCOUNT_TYPE_FEE" - "S_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_TYPE_GLOBAL_INSUR" - "ANCE\020\013\022\036\n\032ACCOUNT_TYPE_GLOBAL_REWARD\020\014*\323" - "\005\n\014TransferType\022\035\n\031TRANSFER_TYPE_UNSPECI" - "FIED\020\000\022\026\n\022TRANSFER_TYPE_LOSS\020\001\022\025\n\021TRANSF" - "ER_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_T" - "YPE_MTM_WIN\020\005\022\034\n\030TRANSFER_TYPE_MARGIN_LO" - "W\020\006\022\035\n\031TRANSFER_TYPE_MARGIN_HIGH\020\007\022$\n TR" - "ANSFER_TYPE_MARGIN_CONFISCATED\020\010\022\037\n\033TRAN" - "SFER_TYPE_MAKER_FEE_PAY\020\t\022#\n\037TRANSFER_TY" - "PE_MAKER_FEE_RECEIVE\020\n\022(\n$TRANSFER_TYPE_" - "INFRASTRUCTURE_FEE_PAY\020\013\022/\n+TRANSFER_TYP" - "E_INFRASTRUCTURE_FEE_DISTRIBUTE\020\014\022#\n\037TRA" - "NSFER_TYPE_LIQUIDITY_FEE_PAY\020\r\022*\n&TRANSF" - "ER_TYPE_LIQUIDITY_FEE_DISTRIBUTE\020\016\022\032\n\026TR" - "ANSFER_TYPE_BOND_LOW\020\017\022\033\n\027TRANSFER_TYPE_" - "BOND_HIGH\020\020\022\037\n\033TRANSFER_TYPE_WITHDRAW_LO" - "CK\020\021\022\032\n\026TRANSFER_TYPE_WITHDRAW\020\022\022\031\n\025TRAN" - "SFER_TYPE_DEPOSIT\020\023\022\037\n\033TRANSFER_TYPE_BON" - "D_SLASHING\020\024\022\036\n\032TRANSFER_TYPE_STAKE_REWA" - "RD\020\025*c\n\nNodeStatus\022\033\n\027NODE_STATUS_UNSPEC" - "IFIED\020\000\022\031\n\025NODE_STATUS_VALIDATOR\020\001\022\035\n\031NO" - "DE_STATUS_NON_VALIDATOR\020\002B7\n\024io.vegaprot" - "ocol.vegaZ\037code.vegaprotocol.io/vega/pro" - "tob\006proto3" + "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[3] = { &::descriptor_table_assets_2eproto, @@ -2005,7 +2001,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", 14970, + 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, 51, file_level_enum_descriptors_vega_2eproto, file_level_service_descriptors_vega_2eproto, @@ -16977,9 +16973,7 @@ Node::Node(const Node& from) } else { epoch_data_ = nullptr; } - ::memcpy(&fee_, &from.fee_, - static_cast(reinterpret_cast(&status_) - - reinterpret_cast(&fee_)) + sizeof(status_)); + status_ = from.status_; // @@protoc_insertion_point(copy_constructor:vega.Node) } @@ -17055,9 +17049,7 @@ void Node::Clear() { delete epoch_data_; } epoch_data_ = nullptr; - ::memset(&fee_, 0, static_cast( - reinterpret_cast(&status_) - - reinterpret_cast(&fee_)) + sizeof(status_)); + status_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -17104,83 +17096,76 @@ const char* Node::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter CHK_(ptr); } else goto handle_unusual; continue; - // float fee = 5 [json_name = "fee"]; + // string staked_by_operator = 5 [json_name = "stakedByOperator"]; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) { - fee_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // string staked_by_operator = 6 [json_name = "stakedByOperator"]; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + 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 = 7 [json_name = "stakedByDelegates"]; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + // 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.Node.staked_by_delegates")); CHK_(ptr); } else goto handle_unusual; continue; - // string staked_total = 8 [json_name = "stakedTotal"]; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + // 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.Node.staked_total")); CHK_(ptr); } else goto handle_unusual; continue; - // string max_intended_stake = 9 [json_name = "maxIntendedStake"]; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + // 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 = 10 [json_name = "pendingStake"]; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + // 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 = 11 [json_name = "epochData", (.validator.field) = { - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + // .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 = 12 [json_name = "status", (.validator.field) = { - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) { + // .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 = 13 [json_name = "delagations"]; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { + // 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<106>(ptr)); + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr)); } else goto handle_unusual; continue; default: { @@ -17251,83 +17236,77 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Node::_InternalSerialize( 4, this->_internal_location(), target); } - // float fee = 5 [json_name = "fee"]; - if (!(this->fee() <= 0 && this->fee() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_fee(), target); - } - - // string staked_by_operator = 6 [json_name = "stakedByOperator"]; + // 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( - 6, this->_internal_staked_by_operator(), target); + 5, this->_internal_staked_by_operator(), target); } - // string staked_by_delegates = 7 [json_name = "stakedByDelegates"]; + // 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( - 7, this->_internal_staked_by_delegates(), target); + 6, this->_internal_staked_by_delegates(), target); } - // string staked_total = 8 [json_name = "stakedTotal"]; + // 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( - 8, this->_internal_staked_total(), target); + 7, this->_internal_staked_total(), target); } - // string max_intended_stake = 9 [json_name = "maxIntendedStake"]; + // 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( - 9, this->_internal_max_intended_stake(), target); + 8, this->_internal_max_intended_stake(), target); } - // string pending_stake = 10 [json_name = "pendingStake"]; + // 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( - 10, this->_internal_pending_stake(), target); + 9, this->_internal_pending_stake(), target); } - // .vega.EpochData epoch_data = 11 [json_name = "epochData", (.validator.field) = { + // .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( - 11, _Internal::epoch_data(this), target, stream); + 10, _Internal::epoch_data(this), target, stream); } - // .vega.NodeStatus status = 12 [json_name = "status", (.validator.field) = { + // .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { if (this->status() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 12, this->_internal_status(), target); + 11, this->_internal_status(), target); } - // repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + // 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(13, this->_internal_delagations(i), target, stream); + InternalWriteMessage(12, this->_internal_delagations(i), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -17346,7 +17325,7 @@ size_t Node::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + // repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; total_size += 1UL * this->_internal_delagations_size(); for (const auto& msg : this->delagations_) { total_size += @@ -17381,54 +17360,49 @@ size_t Node::ByteSizeLong() const { this->_internal_location()); } - // string staked_by_operator = 6 [json_name = "stakedByOperator"]; + // 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 = 7 [json_name = "stakedByDelegates"]; + // 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 = 8 [json_name = "stakedTotal"]; + // 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 = 9 [json_name = "maxIntendedStake"]; + // 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 = 10 [json_name = "pendingStake"]; + // 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 = 11 [json_name = "epochData", (.validator.field) = { + // .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_); } - // float fee = 5 [json_name = "fee"]; - if (!(this->fee() <= 0 && this->fee() >= 0)) { - total_size += 1 + 4; - } - - // .vega.NodeStatus status = 12 [json_name = "status", (.validator.field) = { + // .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()); @@ -17496,9 +17470,6 @@ void Node::MergeFrom(const Node& from) { if (from.has_epoch_data()) { _internal_mutable_epoch_data()->::vega::EpochData::MergeFrom(from._internal_epoch_data()); } - if (!(from.fee() <= 0 && from.fee() >= 0)) { - _internal_set_fee(from._internal_fee()); - } if (from.status() != 0) { _internal_set_status(from._internal_status()); } @@ -17659,16 +17630,9 @@ const char* NodeData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i CHK_(ptr); } else goto handle_unusual; continue; - // float average_fee = 5 [json_name = "averageFee"]; + // float uptime = 5 [json_name = "uptime"]; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) { - average_fee_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // float uptime = 6 [json_name = "uptime"]; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 53)) { uptime_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; @@ -17729,16 +17693,10 @@ ::PROTOBUF_NAMESPACE_ID::uint8* NodeData::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_validating_nodes(), target); } - // float average_fee = 5 [json_name = "averageFee"]; - if (!(this->average_fee() <= 0 && this->average_fee() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_average_fee(), target); - } - - // float uptime = 6 [json_name = "uptime"]; + // float uptime = 5 [json_name = "uptime"]; if (!(this->uptime() <= 0 && this->uptime() >= 0)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(6, this->_internal_uptime(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_uptime(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -17785,12 +17743,7 @@ size_t NodeData::ByteSizeLong() const { this->_internal_validating_nodes()); } - // float average_fee = 5 [json_name = "averageFee"]; - if (!(this->average_fee() <= 0 && this->average_fee() >= 0)) { - total_size += 1 + 4; - } - - // float uptime = 6 [json_name = "uptime"]; + // float uptime = 5 [json_name = "uptime"]; if (!(this->uptime() <= 0 && this->uptime() >= 0)) { total_size += 1 + 4; } @@ -17838,9 +17791,6 @@ void NodeData::MergeFrom(const NodeData& from) { if (from.validating_nodes() != 0) { _internal_set_validating_nodes(from._internal_validating_nodes()); } - if (!(from.average_fee() <= 0 && from.average_fee() >= 0)) { - _internal_set_average_fee(from._internal_average_fee()); - } if (!(from.uptime() <= 0 && from.uptime() >= 0)) { _internal_set_uptime(from._internal_uptime()); } diff --git a/grpc/clients/cpp/generated/vega.pb.h b/grpc/clients/cpp/generated/vega.pb.h index 0cd48f80..581b7080 100644 --- a/grpc/clients/cpp/generated/vega.pb.h +++ b/grpc/clients/cpp/generated/vega.pb.h @@ -9937,21 +9937,20 @@ class Node PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kDelagationsFieldNumber = 13, + kDelagationsFieldNumber = 12, kIdFieldNumber = 1, kPubKeyFieldNumber = 2, kInfoUrlFieldNumber = 3, kLocationFieldNumber = 4, - kStakedByOperatorFieldNumber = 6, - kStakedByDelegatesFieldNumber = 7, - kStakedTotalFieldNumber = 8, - kMaxIntendedStakeFieldNumber = 9, - kPendingStakeFieldNumber = 10, - kEpochDataFieldNumber = 11, - kFeeFieldNumber = 5, - kStatusFieldNumber = 12, + kStakedByOperatorFieldNumber = 5, + kStakedByDelegatesFieldNumber = 6, + kStakedTotalFieldNumber = 7, + kMaxIntendedStakeFieldNumber = 8, + kPendingStakeFieldNumber = 9, + kEpochDataFieldNumber = 10, + kStatusFieldNumber = 11, }; - // repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + // repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; int delagations_size() const; private: int _internal_delagations_size() const; @@ -10033,7 +10032,7 @@ class Node PROTOBUF_FINAL : std::string* _internal_mutable_location(); public: - // string staked_by_operator = 6 [json_name = "stakedByOperator"]; + // 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); @@ -10049,7 +10048,7 @@ class Node PROTOBUF_FINAL : std::string* _internal_mutable_staked_by_operator(); public: - // string staked_by_delegates = 7 [json_name = "stakedByDelegates"]; + // 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); @@ -10065,7 +10064,7 @@ class Node PROTOBUF_FINAL : std::string* _internal_mutable_staked_by_delegates(); public: - // string staked_total = 8 [json_name = "stakedTotal"]; + // 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); @@ -10081,7 +10080,7 @@ class Node PROTOBUF_FINAL : std::string* _internal_mutable_staked_total(); public: - // string max_intended_stake = 9 [json_name = "maxIntendedStake"]; + // 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); @@ -10097,7 +10096,7 @@ class Node PROTOBUF_FINAL : std::string* _internal_mutable_max_intended_stake(); public: - // string pending_stake = 10 [json_name = "pendingStake"]; + // 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); @@ -10113,7 +10112,7 @@ class Node PROTOBUF_FINAL : std::string* _internal_mutable_pending_stake(); public: - // .vega.EpochData epoch_data = 11 [json_name = "epochData", (.validator.field) = { + // .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { bool has_epoch_data() const; private: bool _internal_has_epoch_data() const; @@ -10131,16 +10130,7 @@ class Node PROTOBUF_FINAL : ::vega::EpochData* epoch_data); ::vega::EpochData* unsafe_arena_release_epoch_data(); - // float fee = 5 [json_name = "fee"]; - void clear_fee(); - float fee() const; - void set_fee(float value); - private: - float _internal_fee() const; - void _internal_set_fee(float value); - public: - - // .vega.NodeStatus status = 12 [json_name = "status", (.validator.field) = { + // .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { void clear_status(); ::vega::NodeStatus status() const; void set_status(::vega::NodeStatus value); @@ -10167,7 +10157,6 @@ class Node PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr max_intended_stake_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pending_stake_; ::vega::EpochData* epoch_data_; - float fee_; int status_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; @@ -10290,8 +10279,7 @@ class NodeData PROTOBUF_FINAL : kTotalNodesFieldNumber = 2, kInactiveNodesFieldNumber = 3, kValidatingNodesFieldNumber = 4, - kAverageFeeFieldNumber = 5, - kUptimeFieldNumber = 6, + kUptimeFieldNumber = 5, }; // string staked_total = 1 [json_name = "stakedTotal"]; void clear_staked_total(); @@ -10336,16 +10324,7 @@ class NodeData PROTOBUF_FINAL : void _internal_set_validating_nodes(::PROTOBUF_NAMESPACE_ID::uint32 value); public: - // float average_fee = 5 [json_name = "averageFee"]; - void clear_average_fee(); - float average_fee() const; - void set_average_fee(float value); - private: - float _internal_average_fee() const; - void _internal_set_average_fee(float value); - public: - - // float uptime = 6 [json_name = "uptime"]; + // float uptime = 5 [json_name = "uptime"]; void clear_uptime(); float uptime() const; void set_uptime(float value); @@ -10365,7 +10344,6 @@ class NodeData PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::uint32 total_nodes_; ::PROTOBUF_NAMESPACE_ID::uint32 inactive_nodes_; ::PROTOBUF_NAMESPACE_ID::uint32 validating_nodes_; - float average_fee_; float uptime_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_vega_2eproto; @@ -19734,27 +19712,7 @@ inline void Node::set_allocated_location(std::string* location) { // @@protoc_insertion_point(field_set_allocated:vega.Node.location) } -// float fee = 5 [json_name = "fee"]; -inline void Node::clear_fee() { - fee_ = 0; -} -inline float Node::_internal_fee() const { - return fee_; -} -inline float Node::fee() const { - // @@protoc_insertion_point(field_get:vega.Node.fee) - return _internal_fee(); -} -inline void Node::_internal_set_fee(float value) { - - fee_ = value; -} -inline void Node::set_fee(float value) { - _internal_set_fee(value); - // @@protoc_insertion_point(field_set:vega.Node.fee) -} - -// string staked_by_operator = 6 [json_name = "stakedByOperator"]; +// string staked_by_operator = 5 [json_name = "stakedByOperator"]; inline void Node::clear_staked_by_operator() { staked_by_operator_.ClearToEmpty(); } @@ -19815,7 +19773,7 @@ inline void Node::set_allocated_staked_by_operator(std::string* staked_by_operat // @@protoc_insertion_point(field_set_allocated:vega.Node.staked_by_operator) } -// string staked_by_delegates = 7 [json_name = "stakedByDelegates"]; +// string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; inline void Node::clear_staked_by_delegates() { staked_by_delegates_.ClearToEmpty(); } @@ -19876,7 +19834,7 @@ inline void Node::set_allocated_staked_by_delegates(std::string* staked_by_deleg // @@protoc_insertion_point(field_set_allocated:vega.Node.staked_by_delegates) } -// string staked_total = 8 [json_name = "stakedTotal"]; +// string staked_total = 7 [json_name = "stakedTotal"]; inline void Node::clear_staked_total() { staked_total_.ClearToEmpty(); } @@ -19937,7 +19895,7 @@ inline void Node::set_allocated_staked_total(std::string* staked_total) { // @@protoc_insertion_point(field_set_allocated:vega.Node.staked_total) } -// string max_intended_stake = 9 [json_name = "maxIntendedStake"]; +// string max_intended_stake = 8 [json_name = "maxIntendedStake"]; inline void Node::clear_max_intended_stake() { max_intended_stake_.ClearToEmpty(); } @@ -19998,7 +19956,7 @@ inline void Node::set_allocated_max_intended_stake(std::string* max_intended_sta // @@protoc_insertion_point(field_set_allocated:vega.Node.max_intended_stake) } -// string pending_stake = 10 [json_name = "pendingStake"]; +// string pending_stake = 9 [json_name = "pendingStake"]; inline void Node::clear_pending_stake() { pending_stake_.ClearToEmpty(); } @@ -20059,7 +20017,7 @@ inline void Node::set_allocated_pending_stake(std::string* pending_stake) { // @@protoc_insertion_point(field_set_allocated:vega.Node.pending_stake) } -// .vega.EpochData epoch_data = 11 [json_name = "epochData", (.validator.field) = { +// .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; } @@ -20142,7 +20100,7 @@ inline void Node::set_allocated_epoch_data(::vega::EpochData* epoch_data) { // @@protoc_insertion_point(field_set_allocated:vega.Node.epoch_data) } -// .vega.NodeStatus status = 12 [json_name = "status", (.validator.field) = { +// .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { inline void Node::clear_status() { status_ = 0; } @@ -20162,7 +20120,7 @@ inline void Node::set_status(::vega::NodeStatus value) { // @@protoc_insertion_point(field_set:vega.Node.status) } -// repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; +// repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; inline int Node::_internal_delagations_size() const { return delagations_.size(); } @@ -20326,27 +20284,7 @@ inline void NodeData::set_validating_nodes(::PROTOBUF_NAMESPACE_ID::uint32 value // @@protoc_insertion_point(field_set:vega.NodeData.validating_nodes) } -// float average_fee = 5 [json_name = "averageFee"]; -inline void NodeData::clear_average_fee() { - average_fee_ = 0; -} -inline float NodeData::_internal_average_fee() const { - return average_fee_; -} -inline float NodeData::average_fee() const { - // @@protoc_insertion_point(field_get:vega.NodeData.average_fee) - return _internal_average_fee(); -} -inline void NodeData::_internal_set_average_fee(float value) { - - average_fee_ = value; -} -inline void NodeData::set_average_fee(float value) { - _internal_set_average_fee(value); - // @@protoc_insertion_point(field_set:vega.NodeData.average_fee) -} - -// float uptime = 6 [json_name = "uptime"]; +// float uptime = 5 [json_name = "uptime"]; inline void NodeData::clear_uptime() { uptime_ = 0; } 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 b9c637f7..d627182f 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 @@ -567,100 +567,326 @@ func (x *ListValidatorsResponse) GetValidators() []*v1.ValidatorUpdate { 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 +} + 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, 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, 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, - 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, 0x32, 0xf9, 0x03, 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, + 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, 0x32, 0xb3, 0x05, 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, 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, + 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, 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, + 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, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 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, + 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 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 ( @@ -675,7 +901,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, 11) +var file_coreapi_v1_coreapi_proto_msgTypes = make([]protoimpl.MessageInfo, 15) var file_coreapi_v1_coreapi_proto_goTypes = []interface{}{ (*Account)(nil), // 0: vega.coreapi.v1.Account (*ListAccountsRequest)(nil), // 1: vega.coreapi.v1.ListAccountsRequest @@ -688,32 +914,44 @@ var file_coreapi_v1_coreapi_proto_goTypes = []interface{}{ (*ListPartiesResponse)(nil), // 8: vega.coreapi.v1.ListPartiesResponse (*ListValidatorsRequest)(nil), // 9: vega.coreapi.v1.ListValidatorsRequest (*ListValidatorsResponse)(nil), // 10: vega.coreapi.v1.ListValidatorsResponse - (*proto1.Asset)(nil), // 11: vega.Asset - (*proto1.NetworkParameter)(nil), // 12: vega.NetworkParameter - (*proto1.Party)(nil), // 13: vega.Party - (*v1.ValidatorUpdate)(nil), // 14: vega.events.v1.ValidatorUpdate + (*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 + (*proto1.Asset)(nil), // 15: vega.Asset + (*proto1.NetworkParameter)(nil), // 16: vega.NetworkParameter + (*proto1.Party)(nil), // 17: vega.Party + (*v1.ValidatorUpdate)(nil), // 18: vega.events.v1.ValidatorUpdate + (*proto1.Market)(nil), // 19: vega.Market + (*proto1.Proposal)(nil), // 20: vega.Proposal } var file_coreapi_v1_coreapi_proto_depIdxs = []int32{ 0, // 0: vega.coreapi.v1.ListAccountsResponse.accounts:type_name -> vega.coreapi.v1.Account - 11, // 1: vega.coreapi.v1.ListAssetsResponse.assets:type_name -> vega.Asset - 12, // 2: vega.coreapi.v1.ListNetworkParametersResponse.network_parameters:type_name -> vega.NetworkParameter - 13, // 3: vega.coreapi.v1.ListPartiesResponse.parties:type_name -> vega.Party - 14, // 4: vega.coreapi.v1.ListValidatorsResponse.validators:type_name -> vega.events.v1.ValidatorUpdate - 1, // 5: vega.coreapi.v1.CoreApiService.ListAccounts:input_type -> vega.coreapi.v1.ListAccountsRequest - 3, // 6: vega.coreapi.v1.CoreApiService.ListAssets:input_type -> vega.coreapi.v1.ListAssetsRequest - 5, // 7: vega.coreapi.v1.CoreApiService.ListNetworkParameters:input_type -> vega.coreapi.v1.ListNetworkParametersRequest - 7, // 8: vega.coreapi.v1.CoreApiService.ListParties:input_type -> vega.coreapi.v1.ListPartiesRequest - 9, // 9: vega.coreapi.v1.CoreApiService.ListValidators:input_type -> vega.coreapi.v1.ListValidatorsRequest - 2, // 10: vega.coreapi.v1.CoreApiService.ListAccounts:output_type -> vega.coreapi.v1.ListAccountsResponse - 4, // 11: vega.coreapi.v1.CoreApiService.ListAssets:output_type -> vega.coreapi.v1.ListAssetsResponse - 6, // 12: vega.coreapi.v1.CoreApiService.ListNetworkParameters:output_type -> vega.coreapi.v1.ListNetworkParametersResponse - 8, // 13: vega.coreapi.v1.CoreApiService.ListParties:output_type -> vega.coreapi.v1.ListPartiesResponse - 10, // 14: vega.coreapi.v1.CoreApiService.ListValidators:output_type -> vega.coreapi.v1.ListValidatorsResponse - 10, // [10:15] is the sub-list for method output_type - 5, // [5:10] 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 + 15, // 1: vega.coreapi.v1.ListAssetsResponse.assets:type_name -> vega.Asset + 16, // 2: vega.coreapi.v1.ListNetworkParametersResponse.network_parameters:type_name -> vega.NetworkParameter + 17, // 3: vega.coreapi.v1.ListPartiesResponse.parties:type_name -> vega.Party + 18, // 4: vega.coreapi.v1.ListValidatorsResponse.validators:type_name -> vega.events.v1.ValidatorUpdate + 19, // 5: vega.coreapi.v1.ListMarketsResponse.markets:type_name -> vega.Market + 20, // 6: vega.coreapi.v1.ListProposalsResponse.proposals:type_name -> vega.Proposal + 1, // 7: vega.coreapi.v1.CoreApiService.ListAccounts:input_type -> vega.coreapi.v1.ListAccountsRequest + 3, // 8: vega.coreapi.v1.CoreApiService.ListAssets:input_type -> vega.coreapi.v1.ListAssetsRequest + 5, // 9: vega.coreapi.v1.CoreApiService.ListNetworkParameters:input_type -> vega.coreapi.v1.ListNetworkParametersRequest + 7, // 10: vega.coreapi.v1.CoreApiService.ListParties:input_type -> vega.coreapi.v1.ListPartiesRequest + 9, // 11: vega.coreapi.v1.CoreApiService.ListValidators:input_type -> vega.coreapi.v1.ListValidatorsRequest + 11, // 12: vega.coreapi.v1.CoreApiService.ListMarkets:input_type -> vega.coreapi.v1.ListMarketsRequest + 13, // 13: vega.coreapi.v1.CoreApiService.ListProposals:input_type -> vega.coreapi.v1.ListProposalsRequest + 2, // 14: vega.coreapi.v1.CoreApiService.ListAccounts:output_type -> vega.coreapi.v1.ListAccountsResponse + 4, // 15: vega.coreapi.v1.CoreApiService.ListAssets:output_type -> vega.coreapi.v1.ListAssetsResponse + 6, // 16: vega.coreapi.v1.CoreApiService.ListNetworkParameters:output_type -> vega.coreapi.v1.ListNetworkParametersResponse + 8, // 17: vega.coreapi.v1.CoreApiService.ListParties:output_type -> vega.coreapi.v1.ListPartiesResponse + 10, // 18: vega.coreapi.v1.CoreApiService.ListValidators:output_type -> vega.coreapi.v1.ListValidatorsResponse + 12, // 19: vega.coreapi.v1.CoreApiService.ListMarkets:output_type -> vega.coreapi.v1.ListMarketsResponse + 14, // 20: vega.coreapi.v1.CoreApiService.ListProposals:output_type -> vega.coreapi.v1.ListProposalsResponse + 14, // [14:21] is the sub-list for method output_type + 7, // [7:14] 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_coreapi_v1_coreapi_proto_init() } @@ -854,6 +1092,54 @@ func file_coreapi_v1_coreapi_proto_init() { 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 + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -861,7 +1147,7 @@ func file_coreapi_v1_coreapi_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_coreapi_v1_coreapi_proto_rawDesc, NumEnums: 0, - NumMessages: 11, + NumMessages: 15, 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 8dfb6a40..d8d02927 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 @@ -86,3 +86,29 @@ func (this *ListValidatorsResponse) Validate() error { } 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 +} 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 528e3a17..f0c6f747 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 @@ -24,6 +24,8 @@ type CoreApiServiceClient interface { 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) } type coreApiServiceClient struct { @@ -79,6 +81,24 @@ func (c *coreApiServiceClient) ListValidators(ctx context.Context, in *ListValid 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 +} + // CoreApiServiceServer is the server API for CoreApiService service. // All implementations must embed UnimplementedCoreApiServiceServer // for forward compatibility @@ -88,6 +108,8 @@ type CoreApiServiceServer interface { 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) mustEmbedUnimplementedCoreApiServiceServer() } @@ -110,6 +132,12 @@ func (UnimplementedCoreApiServiceServer) ListParties(context.Context, *ListParti 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) mustEmbedUnimplementedCoreApiServiceServer() {} // UnsafeCoreApiServiceServer may be embedded to opt out of forward compatibility for this service. @@ -213,6 +241,42 @@ func _CoreApiService_ListValidators_Handler(srv interface{}, ctx context.Context 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) +} + // 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) @@ -240,6 +304,14 @@ var CoreApiService_ServiceDesc = grpc.ServiceDesc{ MethodName: "ListValidators", Handler: _CoreApiService_ListValidators_Handler, }, + { + MethodName: "ListMarkets", + Handler: _CoreApiService_ListMarkets_Handler, + }, + { + MethodName: "ListProposals", + Handler: _CoreApiService_ListProposals_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "coreapi/v1/coreapi.proto", 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 index f909630a..79914e4c 100644 --- 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 @@ -93,6 +93,7 @@ type Checkpoint struct { 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() { @@ -155,6 +156,13 @@ func (x *Checkpoint) GetNetworkParameters() []byte { 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 @@ -467,6 +475,143 @@ func (x *Proposals) GetProposals() []*proto1.Proposal { 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{ @@ -479,7 +624,7 @@ var file_snapshot_v1_snapshot_proto_rawDesc = []byte{ 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, 0x93, 0x01, 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, + 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, @@ -488,7 +633,9 @@ var file_snapshot_v1_snapshot_proto_rawDesc = []byte{ 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, 0x22, 0x55, 0x0a, 0x0a, 0x41, 0x73, 0x73, 0x65, 0x74, 0x45, + 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, @@ -515,12 +662,29 @@ var file_snapshot_v1_snapshot_proto_rawDesc = []byte{ 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, 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, + 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 ( @@ -535,7 +699,7 @@ func file_snapshot_v1_snapshot_proto_rawDescGZIP() []byte { return file_snapshot_v1_snapshot_proto_rawDescData } -var file_snapshot_v1_snapshot_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +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 @@ -545,21 +709,25 @@ var file_snapshot_v1_snapshot_proto_goTypes = []interface{}{ (*Collateral)(nil), // 5: vega.snapshot.v1.Collateral (*NetParams)(nil), // 6: vega.snapshot.v1.NetParams (*Proposals)(nil), // 7: vega.snapshot.v1.Proposals - (*proto1.AssetDetails)(nil), // 8: vega.AssetDetails - (*proto1.NetworkParameter)(nil), // 9: vega.NetworkParameter - (*proto1.Proposal)(nil), // 10: vega.Proposal + (*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{ - 8, // 0: vega.snapshot.v1.AssetEntry.asset_details:type_name -> vega.AssetDetails + 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 - 9, // 3: vega.snapshot.v1.NetParams.params:type_name -> vega.NetworkParameter - 10, // 4: vega.snapshot.v1.Proposals.proposals:type_name -> vega.Proposal - 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 + 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() } @@ -664,6 +832,30 @@ func file_snapshot_v1_snapshot_proto_init() { 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{ @@ -671,7 +863,7 @@ func file_snapshot_v1_snapshot_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_snapshot_v1_snapshot_proto_rawDesc, NumEnums: 0, - NumMessages: 8, + NumMessages: 10, NumExtensions: 0, NumServices: 0, }, 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 index 8dc2c5f0..72bb4953 100644 --- 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 @@ -74,3 +74,23 @@ func (this *Proposals) Validate() error { } 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 b632e7dd..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 @@ -5093,24 +5093,22 @@ type Node struct { 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"` - // Value between 0 and 1 for percentage - Fee float32 `protobuf:"fixed32,5,opt,name=fee,proto3" json:"fee,omitempty"` // The amount the node has put up themselves - StakedByOperator string `protobuf:"bytes,6,opt,name=staked_by_operator,json=stakedByOperator,proto3" json:"staked_by_operator,omitempty"` + 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,7,opt,name=staked_by_delegates,json=stakedByDelegates,proto3" json:"staked_by_delegates,omitempty"` + 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,8,opt,name=staked_total,json=stakedTotal,proto3" json:"staked_total,omitempty"` + 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,9,opt,name=max_intended_stake,json=maxIntendedStake,proto3" json:"max_intended_stake,omitempty"` + 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,10,opt,name=pending_stake,json=pendingStake,proto3" json:"pending_stake,omitempty"` + PendingStake string `protobuf:"bytes,9,opt,name=pending_stake,json=pendingStake,proto3" json:"pending_stake,omitempty"` // Informantion about epoch - EpochData *EpochData `protobuf:"bytes,11,opt,name=epoch_data,json=epochData,proto3" json:"epoch_data,omitempty"` + EpochData *EpochData `protobuf:"bytes,10,opt,name=epoch_data,json=epochData,proto3" json:"epoch_data,omitempty"` // Node status - Status NodeStatus `protobuf:"varint,12,opt,name=status,proto3,enum=vega.NodeStatus" json:"status,omitempty"` + Status NodeStatus `protobuf:"varint,11,opt,name=status,proto3,enum=vega.NodeStatus" json:"status,omitempty"` // Node's delegations - Delagations []*Delegation `protobuf:"bytes,13,rep,name=delagations,proto3" json:"delagations,omitempty"` + Delagations []*Delegation `protobuf:"bytes,12,rep,name=delagations,proto3" json:"delagations,omitempty"` } func (x *Node) Reset() { @@ -5173,13 +5171,6 @@ func (x *Node) GetLocation() string { return "" } -func (x *Node) GetFee() float32 { - if x != nil { - return x.Fee - } - return 0 -} - func (x *Node) GetStakedByOperator() string { if x != nil { return x.StakedByOperator @@ -5249,10 +5240,8 @@ type NodeData struct { 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"` - // Average percentage fee across all nodes - AverageFee float32 `protobuf:"fixed32,5,opt,name=average_fee,json=averageFee,proto3" json:"average_fee,omitempty"` // Total uptime for all epochs across all nodes - Uptime float32 `protobuf:"fixed32,6,opt,name=uptime,proto3" json:"uptime,omitempty"` + Uptime float32 `protobuf:"fixed32,5,opt,name=uptime,proto3" json:"uptime,omitempty"` } func (x *NodeData) Reset() { @@ -5315,13 +5304,6 @@ func (x *NodeData) GetValidatingNodes() uint32 { return 0 } -func (x *NodeData) GetAverageFee() float32 { - if x != nil { - return x.AverageFee - } - return 0 -} - func (x *NodeData) GetUptime() float32 { if x != nil { return x.Uptime @@ -6175,329 +6157,326 @@ 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, 0xf2, 0x03, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 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, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, - 0x03, 0x66, 0x65, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x5f, 0x62, - 0x79, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x06, 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, 0x07, 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, 0x08, 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, 0x09, 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, 0x0a, 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, 0x0b, 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, 0x0c, 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, 0x0d, 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, 0xd9, 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, 0x1f, 0x0a, 0x0b, 0x61, 0x76, 0x65, - 0x72, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, - 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x46, 0x65, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x70, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 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, + 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, 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, + 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, 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, 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, + 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, 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, 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, + 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, 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, 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, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x53, 0x43, 0x41, 0x54, 0x45, 0x44, 0x10, 0x08, + 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, 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, 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, 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, + 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/Vega.java b/grpc/clients/java/generated/src/io/vegaprotocol/vega/Vega.java index 2d54933b..8100c43c 100644 --- a/grpc/clients/java/generated/src/io/vegaprotocol/vega/Vega.java +++ b/grpc/clients/java/generated/src/io/vegaprotocol/vega/Vega.java @@ -60208,22 +60208,12 @@ public interface NodeOrBuilder extends com.google.protobuf.ByteString getLocationBytes(); - /** - *
-     * Value between 0 and 1 for percentage
-     * 
- * - * float fee = 5 [json_name = "fee"]; - * @return The fee. - */ - float getFee(); - /** *
      * The amount the node has put up themselves
      * 
* - * string staked_by_operator = 6 [json_name = "stakedByOperator"]; + * string staked_by_operator = 5 [json_name = "stakedByOperator"]; * @return The stakedByOperator. */ java.lang.String getStakedByOperator(); @@ -60232,7 +60222,7 @@ public interface NodeOrBuilder extends * The amount the node has put up themselves * * - * string staked_by_operator = 6 [json_name = "stakedByOperator"]; + * string staked_by_operator = 5 [json_name = "stakedByOperator"]; * @return The bytes for stakedByOperator. */ com.google.protobuf.ByteString @@ -60243,7 +60233,7 @@ public interface NodeOrBuilder extends * The amount of stake that has been delegated by token holders * * - * string staked_by_delegates = 7 [json_name = "stakedByDelegates"]; + * string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; * @return The stakedByDelegates. */ java.lang.String getStakedByDelegates(); @@ -60252,7 +60242,7 @@ public interface NodeOrBuilder extends * The amount of stake that has been delegated by token holders * * - * string staked_by_delegates = 7 [json_name = "stakedByDelegates"]; + * string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; * @return The bytes for stakedByDelegates. */ com.google.protobuf.ByteString @@ -60263,7 +60253,7 @@ public interface NodeOrBuilder extends * Total amount staked on node * * - * string staked_total = 8 [json_name = "stakedTotal"]; + * string staked_total = 7 [json_name = "stakedTotal"]; * @return The stakedTotal. */ java.lang.String getStakedTotal(); @@ -60272,7 +60262,7 @@ public interface NodeOrBuilder extends * Total amount staked on node * * - * string staked_total = 8 [json_name = "stakedTotal"]; + * string staked_total = 7 [json_name = "stakedTotal"]; * @return The bytes for stakedTotal. */ com.google.protobuf.ByteString @@ -60283,7 +60273,7 @@ public interface NodeOrBuilder extends * Max amount of (wanted) stake, is this a network param or a node param * * - * string max_intended_stake = 9 [json_name = "maxIntendedStake"]; + * string max_intended_stake = 8 [json_name = "maxIntendedStake"]; * @return The maxIntendedStake. */ java.lang.String getMaxIntendedStake(); @@ -60292,7 +60282,7 @@ public interface NodeOrBuilder extends * Max amount of (wanted) stake, is this a network param or a node param * * - * string max_intended_stake = 9 [json_name = "maxIntendedStake"]; + * string max_intended_stake = 8 [json_name = "maxIntendedStake"]; * @return The bytes for maxIntendedStake. */ com.google.protobuf.ByteString @@ -60303,7 +60293,7 @@ public interface NodeOrBuilder extends * Amount of stake on the next epoch * * - * string pending_stake = 10 [json_name = "pendingStake"]; + * string pending_stake = 9 [json_name = "pendingStake"]; * @return The pendingStake. */ java.lang.String getPendingStake(); @@ -60312,7 +60302,7 @@ public interface NodeOrBuilder extends * Amount of stake on the next epoch * * - * string pending_stake = 10 [json_name = "pendingStake"]; + * string pending_stake = 9 [json_name = "pendingStake"]; * @return The bytes for pendingStake. */ com.google.protobuf.ByteString @@ -60323,7 +60313,7 @@ public interface NodeOrBuilder extends * Informantion about epoch * * - * .vega.EpochData epoch_data = 11 [json_name = "epochData", (.validator.field) = { ... } + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } * @return Whether the epochData field is set. */ boolean hasEpochData(); @@ -60332,7 +60322,7 @@ public interface NodeOrBuilder extends * Informantion about epoch * * - * .vega.EpochData epoch_data = 11 [json_name = "epochData", (.validator.field) = { ... } + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } * @return The epochData. */ io.vegaprotocol.vega.Vega.EpochData getEpochData(); @@ -60341,7 +60331,7 @@ public interface NodeOrBuilder extends * Informantion about epoch * * - * .vega.EpochData epoch_data = 11 [json_name = "epochData", (.validator.field) = { ... } + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } */ io.vegaprotocol.vega.Vega.EpochDataOrBuilder getEpochDataOrBuilder(); @@ -60350,7 +60340,7 @@ public interface NodeOrBuilder extends * Node status * * - * .vega.NodeStatus status = 12 [json_name = "status", (.validator.field) = { ... } + * .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { ... } * @return The enum numeric value on the wire for status. */ int getStatusValue(); @@ -60359,7 +60349,7 @@ public interface NodeOrBuilder extends * Node status * * - * .vega.NodeStatus status = 12 [json_name = "status", (.validator.field) = { ... } + * .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { ... } * @return The status. */ io.vegaprotocol.vega.Vega.NodeStatus getStatus(); @@ -60369,7 +60359,7 @@ public interface NodeOrBuilder extends * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ java.util.List getDelagationsList(); @@ -60378,7 +60368,7 @@ public interface NodeOrBuilder extends * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ io.vegaprotocol.vega.Vega.Delegation getDelagations(int index); /** @@ -60386,7 +60376,7 @@ public interface NodeOrBuilder extends * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ int getDelagationsCount(); /** @@ -60394,7 +60384,7 @@ public interface NodeOrBuilder extends * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ java.util.List getDelagationsOrBuilderList(); @@ -60403,7 +60393,7 @@ public interface NodeOrBuilder extends * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ io.vegaprotocol.vega.Vega.DelegationOrBuilder getDelagationsOrBuilder( int index); @@ -60489,42 +60479,37 @@ private Node( location_ = s; break; } - case 45: { - - fee_ = input.readFloat(); - break; - } - case 50: { + case 42: { java.lang.String s = input.readStringRequireUtf8(); stakedByOperator_ = s; break; } - case 58: { + case 50: { java.lang.String s = input.readStringRequireUtf8(); stakedByDelegates_ = s; break; } - case 66: { + case 58: { java.lang.String s = input.readStringRequireUtf8(); stakedTotal_ = s; break; } - case 74: { + case 66: { java.lang.String s = input.readStringRequireUtf8(); maxIntendedStake_ = s; break; } - case 82: { + case 74: { java.lang.String s = input.readStringRequireUtf8(); pendingStake_ = s; break; } - case 90: { + case 82: { io.vegaprotocol.vega.Vega.EpochData.Builder subBuilder = null; if (epochData_ != null) { subBuilder = epochData_.toBuilder(); @@ -60537,13 +60522,13 @@ private Node( break; } - case 96: { + case 88: { int rawValue = input.readEnum(); status_ = rawValue; break; } - case 106: { + case 98: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { delagations_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; @@ -60771,29 +60756,14 @@ public java.lang.String getLocation() { } } - public static final int FEE_FIELD_NUMBER = 5; - private float fee_; - /** - *
-     * Value between 0 and 1 for percentage
-     * 
- * - * float fee = 5 [json_name = "fee"]; - * @return The fee. - */ - @java.lang.Override - public float getFee() { - return fee_; - } - - public static final int STAKED_BY_OPERATOR_FIELD_NUMBER = 6; + 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 = 6 [json_name = "stakedByOperator"]; + * string staked_by_operator = 5 [json_name = "stakedByOperator"]; * @return The stakedByOperator. */ @java.lang.Override @@ -60814,7 +60784,7 @@ public java.lang.String getStakedByOperator() { * The amount the node has put up themselves * * - * string staked_by_operator = 6 [json_name = "stakedByOperator"]; + * string staked_by_operator = 5 [json_name = "stakedByOperator"]; * @return The bytes for stakedByOperator. */ @java.lang.Override @@ -60832,14 +60802,14 @@ public java.lang.String getStakedByOperator() { } } - public static final int STAKED_BY_DELEGATES_FIELD_NUMBER = 7; + 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 = 7 [json_name = "stakedByDelegates"]; + * string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; * @return The stakedByDelegates. */ @java.lang.Override @@ -60860,7 +60830,7 @@ public java.lang.String getStakedByDelegates() { * The amount of stake that has been delegated by token holders * * - * string staked_by_delegates = 7 [json_name = "stakedByDelegates"]; + * string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; * @return The bytes for stakedByDelegates. */ @java.lang.Override @@ -60878,14 +60848,14 @@ public java.lang.String getStakedByDelegates() { } } - public static final int STAKED_TOTAL_FIELD_NUMBER = 8; + public static final int STAKED_TOTAL_FIELD_NUMBER = 7; private volatile java.lang.Object stakedTotal_; /** *
      * Total amount staked on node
      * 
* - * string staked_total = 8 [json_name = "stakedTotal"]; + * string staked_total = 7 [json_name = "stakedTotal"]; * @return The stakedTotal. */ @java.lang.Override @@ -60906,7 +60876,7 @@ public java.lang.String getStakedTotal() { * Total amount staked on node * * - * string staked_total = 8 [json_name = "stakedTotal"]; + * string staked_total = 7 [json_name = "stakedTotal"]; * @return The bytes for stakedTotal. */ @java.lang.Override @@ -60924,14 +60894,14 @@ public java.lang.String getStakedTotal() { } } - public static final int MAX_INTENDED_STAKE_FIELD_NUMBER = 9; + 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 = 9 [json_name = "maxIntendedStake"]; + * string max_intended_stake = 8 [json_name = "maxIntendedStake"]; * @return The maxIntendedStake. */ @java.lang.Override @@ -60952,7 +60922,7 @@ public java.lang.String getMaxIntendedStake() { * Max amount of (wanted) stake, is this a network param or a node param * * - * string max_intended_stake = 9 [json_name = "maxIntendedStake"]; + * string max_intended_stake = 8 [json_name = "maxIntendedStake"]; * @return The bytes for maxIntendedStake. */ @java.lang.Override @@ -60970,14 +60940,14 @@ public java.lang.String getMaxIntendedStake() { } } - public static final int PENDING_STAKE_FIELD_NUMBER = 10; + public static final int PENDING_STAKE_FIELD_NUMBER = 9; private volatile java.lang.Object pendingStake_; /** *
      * Amount of stake on the next epoch
      * 
* - * string pending_stake = 10 [json_name = "pendingStake"]; + * string pending_stake = 9 [json_name = "pendingStake"]; * @return The pendingStake. */ @java.lang.Override @@ -60998,7 +60968,7 @@ public java.lang.String getPendingStake() { * Amount of stake on the next epoch * * - * string pending_stake = 10 [json_name = "pendingStake"]; + * string pending_stake = 9 [json_name = "pendingStake"]; * @return The bytes for pendingStake. */ @java.lang.Override @@ -61016,14 +60986,14 @@ public java.lang.String getPendingStake() { } } - public static final int EPOCH_DATA_FIELD_NUMBER = 11; + public static final int EPOCH_DATA_FIELD_NUMBER = 10; private io.vegaprotocol.vega.Vega.EpochData epochData_; /** *
      * Informantion about epoch
      * 
* - * .vega.EpochData epoch_data = 11 [json_name = "epochData", (.validator.field) = { ... } + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } * @return Whether the epochData field is set. */ @java.lang.Override @@ -61035,7 +61005,7 @@ public boolean hasEpochData() { * Informantion about epoch * * - * .vega.EpochData epoch_data = 11 [json_name = "epochData", (.validator.field) = { ... } + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } * @return The epochData. */ @java.lang.Override @@ -61047,21 +61017,21 @@ public io.vegaprotocol.vega.Vega.EpochData getEpochData() { * Informantion about epoch * * - * .vega.EpochData epoch_data = 11 [json_name = "epochData", (.validator.field) = { ... } + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } */ @java.lang.Override public io.vegaprotocol.vega.Vega.EpochDataOrBuilder getEpochDataOrBuilder() { return getEpochData(); } - public static final int STATUS_FIELD_NUMBER = 12; + public static final int STATUS_FIELD_NUMBER = 11; private int status_; /** *
      * Node status
      * 
* - * .vega.NodeStatus status = 12 [json_name = "status", (.validator.field) = { ... } + * .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() { @@ -61072,7 +61042,7 @@ public io.vegaprotocol.vega.Vega.EpochDataOrBuilder getEpochDataOrBuilder() { * Node status * * - * .vega.NodeStatus status = 12 [json_name = "status", (.validator.field) = { ... } + * .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { ... } * @return The status. */ @java.lang.Override public io.vegaprotocol.vega.Vega.NodeStatus getStatus() { @@ -61081,14 +61051,14 @@ public io.vegaprotocol.vega.Vega.EpochDataOrBuilder getEpochDataOrBuilder() { return result == null ? io.vegaprotocol.vega.Vega.NodeStatus.UNRECOGNIZED : result; } - public static final int DELAGATIONS_FIELD_NUMBER = 13; + public static final int DELAGATIONS_FIELD_NUMBER = 12; private java.util.List delagations_; /** *
      * Node's delegations
      * 
* - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ @java.lang.Override public java.util.List getDelagationsList() { @@ -61099,7 +61069,7 @@ public java.util.List getDelagationsList() * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ @java.lang.Override public java.util.List @@ -61111,7 +61081,7 @@ public java.util.List getDelagationsList() * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ @java.lang.Override public int getDelagationsCount() { @@ -61122,7 +61092,7 @@ public int getDelagationsCount() { * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ @java.lang.Override public io.vegaprotocol.vega.Vega.Delegation getDelagations(int index) { @@ -61133,7 +61103,7 @@ public io.vegaprotocol.vega.Vega.Delegation getDelagations(int index) { * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ @java.lang.Override public io.vegaprotocol.vega.Vega.DelegationOrBuilder getDelagationsOrBuilder( @@ -61167,32 +61137,29 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getLocationBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, location_); } - if (fee_ != 0F) { - output.writeFloat(5, fee_); - } if (!getStakedByOperatorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, stakedByOperator_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, stakedByOperator_); } if (!getStakedByDelegatesBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, stakedByDelegates_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, stakedByDelegates_); } if (!getStakedTotalBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, stakedTotal_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, stakedTotal_); } if (!getMaxIntendedStakeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, maxIntendedStake_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, maxIntendedStake_); } if (!getPendingStakeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, pendingStake_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pendingStake_); } if (epochData_ != null) { - output.writeMessage(11, getEpochData()); + output.writeMessage(10, getEpochData()); } if (status_ != io.vegaprotocol.vega.Vega.NodeStatus.NODE_STATUS_UNSPECIFIED.getNumber()) { - output.writeEnum(12, status_); + output.writeEnum(11, status_); } for (int i = 0; i < delagations_.size(); i++) { - output.writeMessage(13, delagations_.get(i)); + output.writeMessage(12, delagations_.get(i)); } unknownFields.writeTo(output); } @@ -61215,36 +61182,32 @@ public int getSerializedSize() { if (!getLocationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, location_); } - if (fee_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, fee_); - } if (!getStakedByOperatorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, stakedByOperator_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, stakedByOperator_); } if (!getStakedByDelegatesBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, stakedByDelegates_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, stakedByDelegates_); } if (!getStakedTotalBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, stakedTotal_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, stakedTotal_); } if (!getMaxIntendedStakeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, maxIntendedStake_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, maxIntendedStake_); } if (!getPendingStakeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, pendingStake_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pendingStake_); } if (epochData_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getEpochData()); + .computeMessageSize(10, getEpochData()); } if (status_ != io.vegaprotocol.vega.Vega.NodeStatus.NODE_STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, status_); + .computeEnumSize(11, status_); } for (int i = 0; i < delagations_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, delagations_.get(i)); + .computeMessageSize(12, delagations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -61269,9 +61232,6 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getInfoUrl())) return false; if (!getLocation() .equals(other.getLocation())) return false; - if (java.lang.Float.floatToIntBits(getFee()) - != java.lang.Float.floatToIntBits( - other.getFee())) return false; if (!getStakedByOperator() .equals(other.getStakedByOperator())) return false; if (!getStakedByDelegates() @@ -61309,9 +61269,6 @@ public int hashCode() { hash = (53 * hash) + getInfoUrl().hashCode(); hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); - hash = (37 * hash) + FEE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getFee()); hash = (37 * hash) + STAKED_BY_OPERATOR_FIELD_NUMBER; hash = (53 * hash) + getStakedByOperator().hashCode(); hash = (37 * hash) + STAKED_BY_DELEGATES_FIELD_NUMBER; @@ -61474,8 +61431,6 @@ public Builder clear() { location_ = ""; - fee_ = 0F; - stakedByOperator_ = ""; stakedByDelegates_ = ""; @@ -61531,7 +61486,6 @@ public io.vegaprotocol.vega.Vega.Node buildPartial() { result.pubKey_ = pubKey_; result.infoUrl_ = infoUrl_; result.location_ = location_; - result.fee_ = fee_; result.stakedByOperator_ = stakedByOperator_; result.stakedByDelegates_ = stakedByDelegates_; result.stakedTotal_ = stakedTotal_; @@ -61616,9 +61570,6 @@ public Builder mergeFrom(io.vegaprotocol.vega.Vega.Node other) { location_ = other.location_; onChanged(); } - if (other.getFee() != 0F) { - setFee(other.getFee()); - } if (!other.getStakedByOperator().isEmpty()) { stakedByOperator_ = other.stakedByOperator_; onChanged(); @@ -62085,56 +62036,13 @@ public Builder setLocationBytes( return this; } - private float fee_ ; - /** - *
-       * Value between 0 and 1 for percentage
-       * 
- * - * float fee = 5 [json_name = "fee"]; - * @return The fee. - */ - @java.lang.Override - public float getFee() { - return fee_; - } - /** - *
-       * Value between 0 and 1 for percentage
-       * 
- * - * float fee = 5 [json_name = "fee"]; - * @param value The fee to set. - * @return This builder for chaining. - */ - public Builder setFee(float value) { - - fee_ = value; - onChanged(); - return this; - } - /** - *
-       * Value between 0 and 1 for percentage
-       * 
- * - * float fee = 5 [json_name = "fee"]; - * @return This builder for chaining. - */ - public Builder clearFee() { - - fee_ = 0F; - onChanged(); - return this; - } - private java.lang.Object stakedByOperator_ = ""; /** *
        * The amount the node has put up themselves
        * 
* - * string staked_by_operator = 6 [json_name = "stakedByOperator"]; + * string staked_by_operator = 5 [json_name = "stakedByOperator"]; * @return The stakedByOperator. */ public java.lang.String getStakedByOperator() { @@ -62154,7 +62062,7 @@ public java.lang.String getStakedByOperator() { * The amount the node has put up themselves * * - * string staked_by_operator = 6 [json_name = "stakedByOperator"]; + * string staked_by_operator = 5 [json_name = "stakedByOperator"]; * @return The bytes for stakedByOperator. */ public com.google.protobuf.ByteString @@ -62175,7 +62083,7 @@ public java.lang.String getStakedByOperator() { * The amount the node has put up themselves * * - * string staked_by_operator = 6 [json_name = "stakedByOperator"]; + * string staked_by_operator = 5 [json_name = "stakedByOperator"]; * @param value The stakedByOperator to set. * @return This builder for chaining. */ @@ -62194,7 +62102,7 @@ public Builder setStakedByOperator( * The amount the node has put up themselves * * - * string staked_by_operator = 6 [json_name = "stakedByOperator"]; + * string staked_by_operator = 5 [json_name = "stakedByOperator"]; * @return This builder for chaining. */ public Builder clearStakedByOperator() { @@ -62208,7 +62116,7 @@ public Builder clearStakedByOperator() { * The amount the node has put up themselves * * - * string staked_by_operator = 6 [json_name = "stakedByOperator"]; + * string staked_by_operator = 5 [json_name = "stakedByOperator"]; * @param value The bytes for stakedByOperator to set. * @return This builder for chaining. */ @@ -62230,7 +62138,7 @@ public Builder setStakedByOperatorBytes( * The amount of stake that has been delegated by token holders * * - * string staked_by_delegates = 7 [json_name = "stakedByDelegates"]; + * string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; * @return The stakedByDelegates. */ public java.lang.String getStakedByDelegates() { @@ -62250,7 +62158,7 @@ public java.lang.String getStakedByDelegates() { * The amount of stake that has been delegated by token holders * * - * string staked_by_delegates = 7 [json_name = "stakedByDelegates"]; + * string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; * @return The bytes for stakedByDelegates. */ public com.google.protobuf.ByteString @@ -62271,7 +62179,7 @@ public java.lang.String getStakedByDelegates() { * The amount of stake that has been delegated by token holders * * - * string staked_by_delegates = 7 [json_name = "stakedByDelegates"]; + * string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; * @param value The stakedByDelegates to set. * @return This builder for chaining. */ @@ -62290,7 +62198,7 @@ public Builder setStakedByDelegates( * The amount of stake that has been delegated by token holders * * - * string staked_by_delegates = 7 [json_name = "stakedByDelegates"]; + * string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; * @return This builder for chaining. */ public Builder clearStakedByDelegates() { @@ -62304,7 +62212,7 @@ public Builder clearStakedByDelegates() { * The amount of stake that has been delegated by token holders * * - * string staked_by_delegates = 7 [json_name = "stakedByDelegates"]; + * string staked_by_delegates = 6 [json_name = "stakedByDelegates"]; * @param value The bytes for stakedByDelegates to set. * @return This builder for chaining. */ @@ -62326,7 +62234,7 @@ public Builder setStakedByDelegatesBytes( * Total amount staked on node * * - * string staked_total = 8 [json_name = "stakedTotal"]; + * string staked_total = 7 [json_name = "stakedTotal"]; * @return The stakedTotal. */ public java.lang.String getStakedTotal() { @@ -62346,7 +62254,7 @@ public java.lang.String getStakedTotal() { * Total amount staked on node * * - * string staked_total = 8 [json_name = "stakedTotal"]; + * string staked_total = 7 [json_name = "stakedTotal"]; * @return The bytes for stakedTotal. */ public com.google.protobuf.ByteString @@ -62367,7 +62275,7 @@ public java.lang.String getStakedTotal() { * Total amount staked on node * * - * string staked_total = 8 [json_name = "stakedTotal"]; + * string staked_total = 7 [json_name = "stakedTotal"]; * @param value The stakedTotal to set. * @return This builder for chaining. */ @@ -62386,7 +62294,7 @@ public Builder setStakedTotal( * Total amount staked on node * * - * string staked_total = 8 [json_name = "stakedTotal"]; + * string staked_total = 7 [json_name = "stakedTotal"]; * @return This builder for chaining. */ public Builder clearStakedTotal() { @@ -62400,7 +62308,7 @@ public Builder clearStakedTotal() { * Total amount staked on node * * - * string staked_total = 8 [json_name = "stakedTotal"]; + * string staked_total = 7 [json_name = "stakedTotal"]; * @param value The bytes for stakedTotal to set. * @return This builder for chaining. */ @@ -62422,7 +62330,7 @@ public Builder setStakedTotalBytes( * Max amount of (wanted) stake, is this a network param or a node param * * - * string max_intended_stake = 9 [json_name = "maxIntendedStake"]; + * string max_intended_stake = 8 [json_name = "maxIntendedStake"]; * @return The maxIntendedStake. */ public java.lang.String getMaxIntendedStake() { @@ -62442,7 +62350,7 @@ public java.lang.String getMaxIntendedStake() { * Max amount of (wanted) stake, is this a network param or a node param * * - * string max_intended_stake = 9 [json_name = "maxIntendedStake"]; + * string max_intended_stake = 8 [json_name = "maxIntendedStake"]; * @return The bytes for maxIntendedStake. */ public com.google.protobuf.ByteString @@ -62463,7 +62371,7 @@ public java.lang.String getMaxIntendedStake() { * Max amount of (wanted) stake, is this a network param or a node param * * - * string max_intended_stake = 9 [json_name = "maxIntendedStake"]; + * string max_intended_stake = 8 [json_name = "maxIntendedStake"]; * @param value The maxIntendedStake to set. * @return This builder for chaining. */ @@ -62482,7 +62390,7 @@ public Builder setMaxIntendedStake( * Max amount of (wanted) stake, is this a network param or a node param * * - * string max_intended_stake = 9 [json_name = "maxIntendedStake"]; + * string max_intended_stake = 8 [json_name = "maxIntendedStake"]; * @return This builder for chaining. */ public Builder clearMaxIntendedStake() { @@ -62496,7 +62404,7 @@ public Builder clearMaxIntendedStake() { * Max amount of (wanted) stake, is this a network param or a node param * * - * string max_intended_stake = 9 [json_name = "maxIntendedStake"]; + * string max_intended_stake = 8 [json_name = "maxIntendedStake"]; * @param value The bytes for maxIntendedStake to set. * @return This builder for chaining. */ @@ -62518,7 +62426,7 @@ public Builder setMaxIntendedStakeBytes( * Amount of stake on the next epoch * * - * string pending_stake = 10 [json_name = "pendingStake"]; + * string pending_stake = 9 [json_name = "pendingStake"]; * @return The pendingStake. */ public java.lang.String getPendingStake() { @@ -62538,7 +62446,7 @@ public java.lang.String getPendingStake() { * Amount of stake on the next epoch * * - * string pending_stake = 10 [json_name = "pendingStake"]; + * string pending_stake = 9 [json_name = "pendingStake"]; * @return The bytes for pendingStake. */ public com.google.protobuf.ByteString @@ -62559,7 +62467,7 @@ public java.lang.String getPendingStake() { * Amount of stake on the next epoch * * - * string pending_stake = 10 [json_name = "pendingStake"]; + * string pending_stake = 9 [json_name = "pendingStake"]; * @param value The pendingStake to set. * @return This builder for chaining. */ @@ -62578,7 +62486,7 @@ public Builder setPendingStake( * Amount of stake on the next epoch * * - * string pending_stake = 10 [json_name = "pendingStake"]; + * string pending_stake = 9 [json_name = "pendingStake"]; * @return This builder for chaining. */ public Builder clearPendingStake() { @@ -62592,7 +62500,7 @@ public Builder clearPendingStake() { * Amount of stake on the next epoch * * - * string pending_stake = 10 [json_name = "pendingStake"]; + * string pending_stake = 9 [json_name = "pendingStake"]; * @param value The bytes for pendingStake to set. * @return This builder for chaining. */ @@ -62616,7 +62524,7 @@ public Builder setPendingStakeBytes( * Informantion about epoch * * - * .vega.EpochData epoch_data = 11 [json_name = "epochData", (.validator.field) = { ... } + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } * @return Whether the epochData field is set. */ public boolean hasEpochData() { @@ -62627,7 +62535,7 @@ public boolean hasEpochData() { * Informantion about epoch * * - * .vega.EpochData epoch_data = 11 [json_name = "epochData", (.validator.field) = { ... } + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } * @return The epochData. */ public io.vegaprotocol.vega.Vega.EpochData getEpochData() { @@ -62642,7 +62550,7 @@ public io.vegaprotocol.vega.Vega.EpochData getEpochData() { * Informantion about epoch * * - * .vega.EpochData epoch_data = 11 [json_name = "epochData", (.validator.field) = { ... } + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } */ public Builder setEpochData(io.vegaprotocol.vega.Vega.EpochData value) { if (epochDataBuilder_ == null) { @@ -62662,7 +62570,7 @@ public Builder setEpochData(io.vegaprotocol.vega.Vega.EpochData value) { * Informantion about epoch * * - * .vega.EpochData epoch_data = 11 [json_name = "epochData", (.validator.field) = { ... } + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } */ public Builder setEpochData( io.vegaprotocol.vega.Vega.EpochData.Builder builderForValue) { @@ -62680,7 +62588,7 @@ public Builder setEpochData( * Informantion about epoch * * - * .vega.EpochData epoch_data = 11 [json_name = "epochData", (.validator.field) = { ... } + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } */ public Builder mergeEpochData(io.vegaprotocol.vega.Vega.EpochData value) { if (epochDataBuilder_ == null) { @@ -62702,7 +62610,7 @@ public Builder mergeEpochData(io.vegaprotocol.vega.Vega.EpochData value) { * Informantion about epoch * * - * .vega.EpochData epoch_data = 11 [json_name = "epochData", (.validator.field) = { ... } + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } */ public Builder clearEpochData() { if (epochDataBuilder_ == null) { @@ -62720,7 +62628,7 @@ public Builder clearEpochData() { * Informantion about epoch * * - * .vega.EpochData epoch_data = 11 [json_name = "epochData", (.validator.field) = { ... } + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } */ public io.vegaprotocol.vega.Vega.EpochData.Builder getEpochDataBuilder() { @@ -62732,7 +62640,7 @@ public io.vegaprotocol.vega.Vega.EpochData.Builder getEpochDataBuilder() { * Informantion about epoch * * - * .vega.EpochData epoch_data = 11 [json_name = "epochData", (.validator.field) = { ... } + * .vega.EpochData epoch_data = 10 [json_name = "epochData", (.validator.field) = { ... } */ public io.vegaprotocol.vega.Vega.EpochDataOrBuilder getEpochDataOrBuilder() { if (epochDataBuilder_ != null) { @@ -62747,7 +62655,7 @@ public io.vegaprotocol.vega.Vega.EpochDataOrBuilder getEpochDataOrBuilder() { * Informantion about epoch * * - * .vega.EpochData epoch_data = 11 [json_name = "epochData", (.validator.field) = { ... } + * .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> @@ -62769,7 +62677,7 @@ public io.vegaprotocol.vega.Vega.EpochDataOrBuilder getEpochDataOrBuilder() { * Node status * * - * .vega.NodeStatus status = 12 [json_name = "status", (.validator.field) = { ... } + * .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() { @@ -62780,7 +62688,7 @@ public io.vegaprotocol.vega.Vega.EpochDataOrBuilder getEpochDataOrBuilder() { * Node status * * - * .vega.NodeStatus status = 12 [json_name = "status", (.validator.field) = { ... } + * .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. */ @@ -62795,7 +62703,7 @@ public Builder setStatusValue(int value) { * Node status * * - * .vega.NodeStatus status = 12 [json_name = "status", (.validator.field) = { ... } + * .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { ... } * @return The status. */ @java.lang.Override @@ -62809,7 +62717,7 @@ public io.vegaprotocol.vega.Vega.NodeStatus getStatus() { * Node status * * - * .vega.NodeStatus status = 12 [json_name = "status", (.validator.field) = { ... } + * .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { ... } * @param value The status to set. * @return This builder for chaining. */ @@ -62827,7 +62735,7 @@ public Builder setStatus(io.vegaprotocol.vega.Vega.NodeStatus value) { * Node status * * - * .vega.NodeStatus status = 12 [json_name = "status", (.validator.field) = { ... } + * .vega.NodeStatus status = 11 [json_name = "status", (.validator.field) = { ... } * @return This builder for chaining. */ public Builder clearStatus() { @@ -62854,7 +62762,7 @@ private void ensureDelagationsIsMutable() { * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ public java.util.List getDelagationsList() { if (delagationsBuilder_ == null) { @@ -62868,7 +62776,7 @@ public java.util.List getDelagationsList() * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ public int getDelagationsCount() { if (delagationsBuilder_ == null) { @@ -62882,7 +62790,7 @@ public int getDelagationsCount() { * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ public io.vegaprotocol.vega.Vega.Delegation getDelagations(int index) { if (delagationsBuilder_ == null) { @@ -62896,7 +62804,7 @@ public io.vegaprotocol.vega.Vega.Delegation getDelagations(int index) { * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ public Builder setDelagations( int index, io.vegaprotocol.vega.Vega.Delegation value) { @@ -62917,7 +62825,7 @@ public Builder setDelagations( * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ public Builder setDelagations( int index, io.vegaprotocol.vega.Vega.Delegation.Builder builderForValue) { @@ -62935,7 +62843,7 @@ public Builder setDelagations( * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ public Builder addDelagations(io.vegaprotocol.vega.Vega.Delegation value) { if (delagationsBuilder_ == null) { @@ -62955,7 +62863,7 @@ public Builder addDelagations(io.vegaprotocol.vega.Vega.Delegation value) { * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ public Builder addDelagations( int index, io.vegaprotocol.vega.Vega.Delegation value) { @@ -62976,7 +62884,7 @@ public Builder addDelagations( * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ public Builder addDelagations( io.vegaprotocol.vega.Vega.Delegation.Builder builderForValue) { @@ -62994,7 +62902,7 @@ public Builder addDelagations( * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ public Builder addDelagations( int index, io.vegaprotocol.vega.Vega.Delegation.Builder builderForValue) { @@ -63012,7 +62920,7 @@ public Builder addDelagations( * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ public Builder addAllDelagations( java.lang.Iterable values) { @@ -63031,7 +62939,7 @@ public Builder addAllDelagations( * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ public Builder clearDelagations() { if (delagationsBuilder_ == null) { @@ -63048,7 +62956,7 @@ public Builder clearDelagations() { * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ public Builder removeDelagations(int index) { if (delagationsBuilder_ == null) { @@ -63065,7 +62973,7 @@ public Builder removeDelagations(int index) { * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ public io.vegaprotocol.vega.Vega.Delegation.Builder getDelagationsBuilder( int index) { @@ -63076,7 +62984,7 @@ public io.vegaprotocol.vega.Vega.Delegation.Builder getDelagationsBuilder( * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ public io.vegaprotocol.vega.Vega.DelegationOrBuilder getDelagationsOrBuilder( int index) { @@ -63090,7 +62998,7 @@ public io.vegaprotocol.vega.Vega.DelegationOrBuilder getDelagationsOrBuilder( * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ public java.util.List getDelagationsOrBuilderList() { @@ -63105,7 +63013,7 @@ public io.vegaprotocol.vega.Vega.DelegationOrBuilder getDelagationsOrBuilder( * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ public io.vegaprotocol.vega.Vega.Delegation.Builder addDelagationsBuilder() { return getDelagationsFieldBuilder().addBuilder( @@ -63116,7 +63024,7 @@ public io.vegaprotocol.vega.Vega.Delegation.Builder addDelagationsBuilder() { * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ public io.vegaprotocol.vega.Vega.Delegation.Builder addDelagationsBuilder( int index) { @@ -63128,7 +63036,7 @@ public io.vegaprotocol.vega.Vega.Delegation.Builder addDelagationsBuilder( * Node's delegations * * - * repeated .vega.Delegation delagations = 13 [json_name = "delagations"]; + * repeated .vega.Delegation delagations = 12 [json_name = "delagations"]; */ public java.util.List getDelagationsBuilderList() { @@ -63255,22 +63163,12 @@ public interface NodeDataOrBuilder extends */ int getValidatingNodes(); - /** - *
-     * Average percentage fee across all nodes
-     * 
- * - * float average_fee = 5 [json_name = "averageFee"]; - * @return The averageFee. - */ - float getAverageFee(); - /** *
      * Total uptime for all epochs across all nodes
      * 
* - * float uptime = 6 [json_name = "uptime"]; + * float uptime = 5 [json_name = "uptime"]; * @return The uptime. */ float getUptime(); @@ -63344,11 +63242,6 @@ private NodeData( } case 45: { - averageFee_ = input.readFloat(); - break; - } - case 53: { - uptime_ = input.readFloat(); break; } @@ -63475,29 +63368,14 @@ public int getValidatingNodes() { return validatingNodes_; } - public static final int AVERAGE_FEE_FIELD_NUMBER = 5; - private float averageFee_; - /** - *
-     * Average percentage fee across all nodes
-     * 
- * - * float average_fee = 5 [json_name = "averageFee"]; - * @return The averageFee. - */ - @java.lang.Override - public float getAverageFee() { - return averageFee_; - } - - public static final int UPTIME_FIELD_NUMBER = 6; + public static final int UPTIME_FIELD_NUMBER = 5; private float uptime_; /** *
      * Total uptime for all epochs across all nodes
      * 
* - * float uptime = 6 [json_name = "uptime"]; + * float uptime = 5 [json_name = "uptime"]; * @return The uptime. */ @java.lang.Override @@ -63531,11 +63409,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (validatingNodes_ != 0) { output.writeUInt32(4, validatingNodes_); } - if (averageFee_ != 0F) { - output.writeFloat(5, averageFee_); - } if (uptime_ != 0F) { - output.writeFloat(6, uptime_); + output.writeFloat(5, uptime_); } unknownFields.writeTo(output); } @@ -63561,13 +63436,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, validatingNodes_); } - if (averageFee_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, averageFee_); - } if (uptime_ != 0F) { size += com.google.protobuf.CodedOutputStream - .computeFloatSize(6, uptime_); + .computeFloatSize(5, uptime_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -63592,9 +63463,6 @@ public boolean equals(final java.lang.Object obj) { != other.getInactiveNodes()) return false; if (getValidatingNodes() != other.getValidatingNodes()) return false; - if (java.lang.Float.floatToIntBits(getAverageFee()) - != java.lang.Float.floatToIntBits( - other.getAverageFee())) return false; if (java.lang.Float.floatToIntBits(getUptime()) != java.lang.Float.floatToIntBits( other.getUptime())) return false; @@ -63617,9 +63485,6 @@ public int hashCode() { hash = (53 * hash) + getInactiveNodes(); hash = (37 * hash) + VALIDATING_NODES_FIELD_NUMBER; hash = (53 * hash) + getValidatingNodes(); - hash = (37 * hash) + AVERAGE_FEE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getAverageFee()); hash = (37 * hash) + UPTIME_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getUptime()); @@ -63764,8 +63629,6 @@ public Builder clear() { validatingNodes_ = 0; - averageFee_ = 0F; - uptime_ = 0F; return this; @@ -63798,7 +63661,6 @@ public io.vegaprotocol.vega.Vega.NodeData buildPartial() { result.totalNodes_ = totalNodes_; result.inactiveNodes_ = inactiveNodes_; result.validatingNodes_ = validatingNodes_; - result.averageFee_ = averageFee_; result.uptime_ = uptime_; onBuilt(); return result; @@ -63861,9 +63723,6 @@ public Builder mergeFrom(io.vegaprotocol.vega.Vega.NodeData other) { if (other.getValidatingNodes() != 0) { setValidatingNodes(other.getValidatingNodes()); } - if (other.getAverageFee() != 0F) { - setAverageFee(other.getAverageFee()); - } if (other.getUptime() != 0F) { setUptime(other.getUptime()); } @@ -64121,56 +63980,13 @@ public Builder clearValidatingNodes() { return this; } - private float averageFee_ ; - /** - *
-       * Average percentage fee across all nodes
-       * 
- * - * float average_fee = 5 [json_name = "averageFee"]; - * @return The averageFee. - */ - @java.lang.Override - public float getAverageFee() { - return averageFee_; - } - /** - *
-       * Average percentage fee across all nodes
-       * 
- * - * float average_fee = 5 [json_name = "averageFee"]; - * @param value The averageFee to set. - * @return This builder for chaining. - */ - public Builder setAverageFee(float value) { - - averageFee_ = value; - onChanged(); - return this; - } - /** - *
-       * Average percentage fee across all nodes
-       * 
- * - * float average_fee = 5 [json_name = "averageFee"]; - * @return This builder for chaining. - */ - public Builder clearAverageFee() { - - averageFee_ = 0F; - onChanged(); - return this; - } - private float uptime_ ; /** *
        * Total uptime for all epochs across all nodes
        * 
* - * float uptime = 6 [json_name = "uptime"]; + * float uptime = 5 [json_name = "uptime"]; * @return The uptime. */ @java.lang.Override @@ -64182,7 +63998,7 @@ public float getUptime() { * Total uptime for all epochs across all nodes * * - * float uptime = 6 [json_name = "uptime"]; + * float uptime = 5 [json_name = "uptime"]; * @param value The uptime to set. * @return This builder for chaining. */ @@ -64197,7 +64013,7 @@ public Builder setUptime(float value) { * Total uptime for all epochs across all nodes * * - * float uptime = 6 [json_name = "uptime"]; + * float uptime = 5 [json_name = "uptime"]; * @return This builder for chaining. */ public Builder clearUptime() { @@ -68383,136 +68199,134 @@ 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\"\362\003\n\004Node\022\016\n\002id\030\001 \001(\tR\002id\022\037\n\007pu" + + "\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\020\n\003fee\030\005 \001(\002R\003fee\022,\n\022staked_by_operat" + - "or\030\006 \001(\tR\020stakedByOperator\022.\n\023staked_by_" + - "delegates\030\007 \001(\tR\021stakedByDelegates\022!\n\014st" + - "aked_total\030\010 \001(\tR\013stakedTotal\022,\n\022max_int" + - "ended_stake\030\t \001(\tR\020maxIntendedStake\022#\n\rp" + - "ending_stake\030\n \001(\tR\014pendingStake\0226\n\nepoc" + - "h_data\030\013 \001(\0132\017.vega.EpochDataB\006\342\337\037\002 \001R\te" + - "pochData\0220\n\006status\030\014 \001(\0162\020.vega.NodeStat" + - "usB\006\342\337\037\002 \001R\006status\0222\n\013delagations\030\r \003(\0132" + - "\020.vega.DelegationR\013delagations\"\331\001\n\010NodeD" + - "ata\022!\n\014staked_total\030\001 \001(\tR\013stakedTotal\022\037" + - "\n\013total_nodes\030\002 \001(\rR\ntotalNodes\022%\n\016inact" + - "ive_nodes\030\003 \001(\rR\rinactiveNodes\022)\n\020valida" + - "ting_nodes\030\004 \001(\rR\017validatingNodes\022\037\n\013ave" + - "rage_fee\030\005 \001(\002R\naverageFee\022\026\n\006uptime\030\006 \001" + - "(\002R\006uptime\"p\n\nDelegation\022\024\n\005party\030\001 \001(\tR" + - "\005party\022\027\n\007node_id\030\002 \001(\tR\006nodeId\022\026\n\006amoun" + - "t\030\003 \001(\tR\006amount\022\033\n\tepoch_seq\030\004 \001(\tR\010epoc" + - "hSeq\"\304\001\n\rRewardDetails\022\031\n\010asset_id\030\001 \001(\t" + - "R\007assetId\022\031\n\010party_id\030\002 \001(\tR\007partyId\022\024\n\005" + - "epoch\030\003 \001(\004R\005epoch\022\026\n\006amount\030\004 \001(\tR\006amou" + - "nt\022.\n\023percentage_of_total\030\005 \001(\tR\021percent" + - "ageOfTotal\022\037\n\013received_at\030\006 \001(\003R\nreceive" + - "dAt\"\203\001\n\024RewardPerAssetDetail\022\024\n\005asset\030\001 " + - "\001(\tR\005asset\022-\n\007details\030\002 \003(\0132\023.vega.Rewar" + - "dDetailsR\007details\022&\n\017total_for_asset\030\003 \001" + - "(\tR\rtotalForAsset*9\n\004Side\022\024\n\020SIDE_UNSPEC" + - "IFIED\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\014I" + - "NTERVAL_I1M\020<\022\021\n\014INTERVAL_I5M\020\254\002\022\022\n\rINTE" + - "RVAL_I15M\020\204\007\022\021\n\014INTERVAL_I1H\020\220\034\022\022\n\014INTER" + - "VAL_I6H\020\340\250\001\022\022\n\014INTERVAL_I1D\020\200\243\005*\243\001\n\016Auct" + - "ionTrigger\022\037\n\033AUCTION_TRIGGER_UNSPECIFIE" + - "D\020\000\022\031\n\025AUCTION_TRIGGER_BATCH\020\001\022\033\n\027AUCTIO" + - "N_TRIGGER_OPENING\020\002\022\031\n\025AUCTION_TRIGGER_P" + - "RICE\020\003\022\035\n\031AUCTION_TRIGGER_LIQUIDITY\020\004*\213\001" + - "\n\017PeggedReference\022 \n\034PEGGED_REFERENCE_UN" + - "SPECIFIED\020\000\022\030\n\024PEGGED_REFERENCE_MID\020\001\022\035\n" + - "\031PEGGED_REFERENCE_BEST_BID\020\002\022\035\n\031PEGGED_R" + - "EFERENCE_BEST_ASK\020\003*\370\017\n\nOrderError\022\033\n\027OR" + - "DER_ERROR_UNSPECIFIED\020\000\022!\n\035ORDER_ERROR_I" + - "NVALID_MARKET_ID\020\001\022 \n\034ORDER_ERROR_INVALI" + - "D_ORDER_ID\020\002\022\037\n\033ORDER_ERROR_OUT_OF_SEQUE" + - "NCE\020\003\022&\n\"ORDER_ERROR_INVALID_REMAINING_S" + - "IZE\020\004\022\034\n\030ORDER_ERROR_TIME_FAILURE\020\005\022\037\n\033O" + - "RDER_ERROR_REMOVAL_FAILURE\020\006\022+\n\'ORDER_ER" + - "ROR_INVALID_EXPIRATION_DATETIME\020\007\022\'\n#ORD" + - "ER_ERROR_INVALID_ORDER_REFERENCE\020\010\022 \n\034OR" + - "DER_ERROR_EDIT_NOT_ALLOWED\020\t\022\035\n\031ORDER_ER" + - "ROR_AMEND_FAILURE\020\n\022\031\n\025ORDER_ERROR_NOT_F" + - "OUND\020\013\022 \n\034ORDER_ERROR_INVALID_PARTY_ID\020\014" + - "\022\035\n\031ORDER_ERROR_MARKET_CLOSED\020\r\022#\n\037ORDER" + - "_ERROR_MARGIN_CHECK_FAILED\020\016\022\'\n#ORDER_ER" + - "ROR_MISSING_GENERAL_ACCOUNT\020\017\022\036\n\032ORDER_E" + - "RROR_INTERNAL_ERROR\020\020\022\034\n\030ORDER_ERROR_INV" + - "ALID_SIZE\020\021\022#\n\037ORDER_ERROR_INVALID_PERSI" + - "STENCE\020\022\022\034\n\030ORDER_ERROR_INVALID_TYPE\020\023\022\034" + - "\n\030ORDER_ERROR_SELF_TRADING\020\024\022.\n*ORDER_ER" + - "ROR_INSUFFICIENT_FUNDS_TO_PAY_FEES\020\025\022%\n!" + - "ORDER_ERROR_INCORRECT_MARKET_TYPE\020\026\022%\n!O" + - "RDER_ERROR_INVALID_TIME_IN_FORCE\020\027\022+\n\'OR" + - "DER_ERROR_GFN_ORDER_DURING_AN_AUCTION\020\030\022" + - "3\n/ORDER_ERROR_GFA_ORDER_DURING_CONTINUO" + - "US_TRADING\020\031\0224\n0ORDER_ERROR_CANNOT_AMEND" + - "_TO_GTT_WITHOUT_EXPIRYAT\020\032\022)\n%ORDER_ERRO" + - "R_EXPIRYAT_BEFORE_CREATEDAT\020\033\022,\n(ORDER_E" + - "RROR_CANNOT_HAVE_GTC_AND_EXPIRYAT\020\034\022*\n&O" + - "RDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC\020\035\022" + - "*\n&ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GF" + - "N\020\036\022,\n(ORDER_ERROR_CANNOT_AMEND_FROM_GFA" + - "_OR_GFN\020\037\0224\n0ORDER_ERROR_CANNOT_SEND_IOC" + - "_ORDER_DURING_AUCTION\020 \0224\n0ORDER_ERROR_C" + - "ANNOT_SEND_FOK_ORDER_DURING_AUCTION\020!\022#\n" + - "\037ORDER_ERROR_MUST_BE_LIMIT_ORDER\020\"\022\"\n\036OR" + - "DER_ERROR_MUST_BE_GTT_OR_GTC\020#\022\'\n#ORDER_" + - "ERROR_WITHOUT_REFERENCE_PRICE\020$\0223\n/ORDER" + - "_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRI" + - "CE\020%\0224\n0ORDER_ERROR_OFFSET_MUST_BE_LESS_" + - "OR_EQUAL_TO_ZERO\020&\022-\n)ORDER_ERROR_OFFSET" + - "_MUST_BE_LESS_THAN_ZERO\020\'\0227\n3ORDER_ERROR" + - "_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO" + - "\020(\0224\n0ORDER_ERROR_SELL_CANNOT_REFERENCE_" + - "BEST_BID_PRICE\020)\0220\n,ORDER_ERROR_OFFSET_M" + - "UST_BE_GREATER_THAN_ZERO\020*\022*\n&ORDER_ERRO" + - "R_INSUFFICIENT_ASSET_BALANCE\020+\022E\nAORDER_" + - "ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_" + - "ON_NON_PEGGED_ORDER\020,\022.\n*ORDER_ERROR_UNA" + - "BLE_TO_REPRICE_PEGGED_ORDER\020-\0225\n1ORDER_E" + - "RROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORD" + - "ER\020.\0228\n4ORDER_ERROR_NON_PERSISTENT_ORDER" + - "_OUT_OF_PRICE_BOUNDS\020/*\202\001\n\013ChainStatus\022\034" + - "\n\030CHAIN_STATUS_UNSPECIFIED\020\000\022\035\n\031CHAIN_ST" + - "ATUS_DISCONNECTED\020\001\022\032\n\026CHAIN_STATUS_REPL" + - "AYING\020\002\022\032\n\026CHAIN_STATUS_CONNECTED\020\003*\220\003\n\013" + - "AccountType\022\034\n\030ACCOUNT_TYPE_UNSPECIFIED\020" + - "\000\022\032\n\026ACCOUNT_TYPE_INSURANCE\020\001\022\033\n\027ACCOUNT" + - "_TYPE_SETTLEMENT\020\002\022\027\n\023ACCOUNT_TYPE_MARGI" + - "N\020\003\022\030\n\024ACCOUNT_TYPE_GENERAL\020\004\022$\n ACCOUNT" + - "_TYPE_FEES_INFRASTRUCTURE\020\005\022\037\n\033ACCOUNT_T" + - "YPE_FEES_LIQUIDITY\020\006\022\033\n\027ACCOUNT_TYPE_FEE" + - "S_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_TYPE_GLOBAL_INSUR" + - "ANCE\020\013\022\036\n\032ACCOUNT_TYPE_GLOBAL_REWARD\020\014*\323" + - "\005\n\014TransferType\022\035\n\031TRANSFER_TYPE_UNSPECI" + - "FIED\020\000\022\026\n\022TRANSFER_TYPE_LOSS\020\001\022\025\n\021TRANSF" + - "ER_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_T" + - "YPE_MTM_WIN\020\005\022\034\n\030TRANSFER_TYPE_MARGIN_LO" + - "W\020\006\022\035\n\031TRANSFER_TYPE_MARGIN_HIGH\020\007\022$\n TR" + - "ANSFER_TYPE_MARGIN_CONFISCATED\020\010\022\037\n\033TRAN" + - "SFER_TYPE_MAKER_FEE_PAY\020\t\022#\n\037TRANSFER_TY" + - "PE_MAKER_FEE_RECEIVE\020\n\022(\n$TRANSFER_TYPE_" + - "INFRASTRUCTURE_FEE_PAY\020\013\022/\n+TRANSFER_TYP" + - "E_INFRASTRUCTURE_FEE_DISTRIBUTE\020\014\022#\n\037TRA" + - "NSFER_TYPE_LIQUIDITY_FEE_PAY\020\r\022*\n&TRANSF" + - "ER_TYPE_LIQUIDITY_FEE_DISTRIBUTE\020\016\022\032\n\026TR" + - "ANSFER_TYPE_BOND_LOW\020\017\022\033\n\027TRANSFER_TYPE_" + - "BOND_HIGH\020\020\022\037\n\033TRANSFER_TYPE_WITHDRAW_LO" + - "CK\020\021\022\032\n\026TRANSFER_TYPE_WITHDRAW\020\022\022\031\n\025TRAN" + - "SFER_TYPE_DEPOSIT\020\023\022\037\n\033TRANSFER_TYPE_BON" + - "D_SLASHING\020\024\022\036\n\032TRANSFER_TYPE_STAKE_REWA" + - "RD\020\025*c\n\nNodeStatus\022\033\n\027NODE_STATUS_UNSPEC" + - "IFIED\020\000\022\031\n\025NODE_STATUS_VALIDATOR\020\001\022\035\n\031NO" + - "DE_STATUS_NON_VALIDATOR\020\002B7\n\024io.vegaprot" + - "ocol.vegaZ\037code.vegaprotocol.io/vega/pro" + - "tob\006proto3" + "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, @@ -68802,13 +68616,13 @@ 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", "Fee", "StakedByOperator", "StakedByDelegates", "StakedTotal", "MaxIntendedStake", "PendingStake", "EpochData", "Status", "Delagations", }); + 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", "AverageFee", "Uptime", }); + new java.lang.String[] { "StakedTotal", "TotalNodes", "InactiveNodes", "ValidatingNodes", "Uptime", }); internal_static_vega_Delegation_descriptor = getDescriptor().getMessageTypes().get(46); internal_static_vega_Delegation_fieldAccessorTable = new 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 60ac53fb..477d9122 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 @@ -169,6 +169,68 @@ io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse> getListValidator 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; + } + /** * Creates a new async stub that supports all call types for the service */ @@ -252,6 +314,20 @@ public void listValidators(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidator 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); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( @@ -289,6 +365,20 @@ public void listValidators(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidator 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))) .build(); } } @@ -346,6 +436,22 @@ public void listValidators(io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidator 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); + } } /** @@ -396,6 +502,20 @@ public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse listValida 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); + } } /** @@ -451,6 +571,22 @@ 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); + } } private static final int METHODID_LIST_ACCOUNTS = 0; @@ -458,6 +594,8 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -496,6 +634,14 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv 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; default: throw new AssertionError(); } @@ -562,6 +708,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListNetworkParametersMethod()) .addMethod(getListPartiesMethod()) .addMethod(getListValidatorsMethod()) + .addMethod(getListMarketsMethod()) + .addMethod(getListProposalsMethod()) .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 44c6c6ed..07306224 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 @@ -7909,6 +7909,2950 @@ public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse getDefault } + 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; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_vega_coreapi_v1_Account_descriptor; private static final @@ -7964,6 +10908,26 @@ public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse getDefault 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; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -7974,47 +10938,61 @@ public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse getDefault static { java.lang.String[] descriptorData = { "\n\030coreapi/v1/coreapi.proto\022\017vega.coreapi" + - ".v1\032\014assets.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\007balanc" + - "e\030\003 \001(\tR\007balance\022\024\n\005asset\030\005 \001(\tR\005asset\022\022" + - "\n\004type\030\006 \001(\tR\004type\"C\n\023ListAccountsReques" + - "t\022\024\n\005party\030\001 \001(\tR\005party\022\026\n\006market\030\002 \001(\tR" + - "\006market\"L\n\024ListAccountsResponse\0224\n\010accou" + - "nts\030\001 \003(\0132\030.vega.coreapi.v1.AccountR\010acc" + - "ounts\")\n\021ListAssetsRequest\022\024\n\005asset\030\001 \001(" + - "\tR\005asset\"9\n\022ListAssetsResponse\022#\n\006assets" + - "\030\001 \003(\0132\013.vega.AssetR\006assets\"R\n\034ListNetwo" + - "rkParametersRequest\0222\n\025network_parameter" + - "_key\030\001 \001(\tR\023networkParameterKey\"f\n\035ListN" + - "etworkParametersResponse\022E\n\022network_para" + - "meters\030\001 \003(\0132\026.vega.NetworkParameterR\021ne" + - "tworkParameters\"\024\n\022ListPartiesRequest\"<\n" + - "\023ListPartiesResponse\022%\n\007parties\030\001 \003(\0132\013." + - "vega.PartyR\007parties\"\027\n\025ListValidatorsReq" + - "uest\"Y\n\026ListValidatorsResponse\022?\n\nvalida" + - "tors\030\001 \003(\0132\037.vega.events.v1.ValidatorUpd" + - "ateR\nvalidators2\371\003\n\016CoreApiService\022[\n\014Li" + - "stAccounts\022$.vega.coreapi.v1.ListAccount" + - "sRequest\032%.vega.coreapi.v1.ListAccountsR" + - "esponse\022U\n\nListAssets\022\".vega.coreapi.v1." + - "ListAssetsRequest\032#.vega.coreapi.v1.List" + - "AssetsResponse\022v\n\025ListNetworkParameters\022" + - "-.vega.coreapi.v1.ListNetworkParametersR" + - "equest\032..vega.coreapi.v1.ListNetworkPara" + - "metersResponse\022X\n\013ListParties\022#.vega.cor" + - "eapi.v1.ListPartiesRequest\032$.vega.coreap" + - "i.v1.ListPartiesResponse\022a\n\016ListValidato" + - "rs\022&.vega.coreapi.v1.ListValidatorsReque" + - "st\032\'.vega.coreapi.v1.ListValidatorsRespo" + - "nseBM\n\037io.vegaprotocol.vega.coreapi.v1Z*" + - "code.vegaprotocol.io/vega/proto/coreapi/" + - "v1b\006proto3" + ".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\tproposals2\263\005\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" + + "seBM\n\037io.vegaprotocol.vega.coreapi.v1Z*c" + + "ode.vegaprotocol.io/vega/proto/coreapi/v" + + "1b\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(), }); @@ -8084,7 +11062,33 @@ public io.vegaprotocol.vega.coreapi.v1.Coreapi.ListValidatorsResponse getDefault 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", }); 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(); } 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 index ec2149a1..15be6237 100644 --- 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 @@ -615,6 +615,12 @@ public interface CheckpointOrBuilder extends * @return The networkParameters. */ com.google.protobuf.ByteString getNetworkParameters(); + + /** + * bytes delegation = 5 [json_name = "delegation"]; + * @return The delegation. + */ + com.google.protobuf.ByteString getDelegation(); } /** *
@@ -637,6 +643,7 @@ private Checkpoint() {
       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
@@ -689,6 +696,11 @@ private Checkpoint(
               networkParameters_ = input.readBytes();
               break;
             }
+            case 42: {
+
+              delegation_ = input.readBytes();
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -765,6 +777,17 @@ 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() {
@@ -791,6 +814,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (!networkParameters_.isEmpty()) {
         output.writeBytes(4, networkParameters_);
       }
+      if (!delegation_.isEmpty()) {
+        output.writeBytes(5, delegation_);
+      }
       unknownFields.writeTo(output);
     }
 
@@ -816,6 +842,10 @@ public int getSerializedSize() {
         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;
@@ -839,6 +869,8 @@ public boolean equals(final java.lang.Object obj) {
           .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;
     }
@@ -858,6 +890,8 @@ public int hashCode() {
       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;
@@ -1003,6 +1037,8 @@ public Builder clear() {
 
         networkParameters_ = com.google.protobuf.ByteString.EMPTY;
 
+        delegation_ = com.google.protobuf.ByteString.EMPTY;
+
         return this;
       }
 
@@ -1033,6 +1069,7 @@ public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Checkpoint buildParti
         result.assets_ = assets_;
         result.collateral_ = collateral_;
         result.networkParameters_ = networkParameters_;
+        result.delegation_ = delegation_;
         onBuilt();
         return result;
       }
@@ -1093,6 +1130,9 @@ public Builder mergeFrom(io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Che
         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;
@@ -1257,6 +1297,40 @@ public Builder clearNetworkParameters() {
         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) {
@@ -6169,132 +6243,2354 @@ public io.vegaprotocol.vega.snapshot.v1.SnapshotOuterClass.Proposals getDefaultI
 
   }
 
-  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;
+  public interface DelegateEntryOrBuilder extends
+      // @@protoc_insertion_point(interface_extends:vega.snapshot.v1.DelegateEntry)
+      com.google.protobuf.MessageOrBuilder {
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
-    return descriptor;
+    /**
+     * 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();
   }
-  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\"\223\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\"U\n\nAssetEntry\022\016\n\002id\030\001 \001(\t" +
-      "R\002id\0227\n\rasset_details\030\002 \001(\0132\022.vega.Asset" +
-      "DetailsR\014assetDetails\">\n\006Assets\0224\n\006asset" +
-      "s\030\001 \003(\0132\034.vega.snapshot.v1.AssetEntryR\006a" +
-      "ssets\"T\n\014AssetBalance\022\024\n\005party\030\001 \001(\tR\005pa" +
-      "rty\022\024\n\005asset\030\002 \001(\tR\005asset\022\030\n\007balance\030\003 \001" +
-      "(\tR\007balance\"H\n\nCollateral\022:\n\010balances\030\001 " +
-      "\003(\0132\036.vega.snapshot.v1.AssetBalanceR\010bal" +
-      "ances\";\n\tNetParams\022.\n\006params\030\001 \003(\0132\026.veg" +
-      "a.NetworkParameterR\006params\"9\n\tProposals\022" +
-      ",\n\tproposals\030\001 \003(\0132\016.vega.ProposalR\tprop" +
-      "osalsBO\n io.vegaprotocol.vega.snapshot.v" +
-      "1Z+code.vegaprotocol.io/vega/proto/snaps" +
-      "hot/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", });
-    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", });
+  /**
+   * 
+   * 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(); 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 dcea36de..63831cc8 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 @@ -7,6 +7,8 @@ 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"; @@ -16,6 +18,8 @@ interface ICoreApiServiceService extends grpc.ServiceDefinition { @@ -63,6 +67,24 @@ interface ICoreApiServiceService_IListValidators extends grpc.MethodDefinition; 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; +} export const CoreApiServiceService: ICoreApiServiceService; @@ -72,6 +94,8 @@ export interface ICoreApiServiceServer extends grpc.UntypedServiceImplementation listNetworkParameters: grpc.handleUnaryCall; listParties: grpc.handleUnaryCall; listValidators: grpc.handleUnaryCall; + listMarkets: grpc.handleUnaryCall; + listProposals: grpc.handleUnaryCall; } export interface ICoreApiServiceClient { @@ -90,6 +114,12 @@ export interface ICoreApiServiceClient { 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; } export class CoreApiServiceClient extends grpc.Client implements ICoreApiServiceClient { @@ -109,4 +139,10 @@ export class CoreApiServiceClient extends grpc.Client implements ICoreApiService 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; } 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 813239b8..43e69549 100644 --- a/grpc/clients/js/generated/coreapi/v1/coreapi_grpc_pb.js +++ b/grpc/clients/js/generated/coreapi/v1/coreapi_grpc_pb.js @@ -4,6 +4,8 @@ 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'); @@ -51,6 +53,28 @@ function deserialize_vega_coreapi_v1_ListAssetsResponse(buffer_arg) { return coreapi_v1_coreapi_pb.ListAssetsResponse.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'); @@ -95,6 +119,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_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'); @@ -174,6 +220,28 @@ var CoreApiServiceService = exports.CoreApiServiceService = { 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, + }, }; 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 0709108c..2a420ca2 100644 --- a/grpc/clients/js/generated/coreapi/v1/coreapi_pb.d.ts +++ b/grpc/clients/js/generated/coreapi/v1/coreapi_pb.d.ts @@ -6,6 +6,8 @@ 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"; @@ -247,3 +249,90 @@ export namespace ListValidatorsResponse { 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, + } +} diff --git a/grpc/clients/js/generated/coreapi/v1/coreapi_pb.js b/grpc/clients/js/generated/coreapi/v1/coreapi_pb.js index 54723f82..daa45926 100644 --- a/grpc/clients/js/generated/coreapi/v1/coreapi_pb.js +++ b/grpc/clients/js/generated/coreapi/v1/coreapi_pb.js @@ -16,6 +16,10 @@ 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'); @@ -25,10 +29,14 @@ 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.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); /** @@ -262,6 +270,90 @@ if (goog.DEBUG && !COMPILED) { */ 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'; +} @@ -1934,4 +2026,614 @@ proto.vega.coreapi.v1.ListValidatorsResponse.prototype.clearValidatorsList = fun }; + + + +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([]); +}; + + goog.object.extend(exports, proto.vega.coreapi.v1); diff --git a/grpc/clients/js/generated/snapshot/v1/snapshot_pb.d.ts b/grpc/clients/js/generated/snapshot/v1/snapshot_pb.d.ts index f658063a..4456a280 100644 --- a/grpc/clients/js/generated/snapshot/v1/snapshot_pb.d.ts +++ b/grpc/clients/js/generated/snapshot/v1/snapshot_pb.d.ts @@ -53,6 +53,10 @@ export class Checkpoint extends jspb.Message { 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; @@ -70,6 +74,7 @@ export namespace Checkpoint { assets: Uint8Array | string, collateral: Uint8Array | string, networkParameters: Uint8Array | string, + delegation: Uint8Array | string, } } @@ -212,3 +217,62 @@ export namespace Proposals { 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 index 13371d73..d8794d72 100644 --- a/grpc/clients/js/generated/snapshot/v1/snapshot_pb.js +++ b/grpc/clients/js/generated/snapshot/v1/snapshot_pb.js @@ -25,6 +25,8 @@ 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); @@ -196,6 +198,48 @@ if (goog.DEBUG && !COMPILED) { */ 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'; +} @@ -439,7 +483,8 @@ proto.vega.snapshot.v1.Checkpoint.toObject = function(includeInstance, msg) { governance: msg.getGovernance_asB64(), assets: msg.getAssets_asB64(), collateral: msg.getCollateral_asB64(), - networkParameters: msg.getNetworkParameters_asB64() + networkParameters: msg.getNetworkParameters_asB64(), + delegation: msg.getDelegation_asB64() }; if (includeInstance) { @@ -492,6 +537,10 @@ proto.vega.snapshot.v1.Checkpoint.deserializeBinaryFromReader = function(msg, re 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; @@ -549,6 +598,13 @@ proto.vega.snapshot.v1.Checkpoint.serializeBinaryToWriter = function(message, wr f ); } + f = message.getDelegation_asU8(); + if (f.length > 0) { + writer.writeBytes( + 5, + f + ); + } }; @@ -720,6 +776,48 @@ proto.vega.snapshot.v1.Checkpoint.prototype.setNetworkParameters = function(valu }; +/** + * 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); +}; + + @@ -1731,4 +1829,467 @@ proto.vega.snapshot.v1.Proposals.prototype.clearProposalsList = function() { }; + + + +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/vega_pb.d.ts b/grpc/clients/js/generated/vega_pb.d.ts index acb419be..aae23e2a 100644 --- a/grpc/clients/js/generated/vega_pb.d.ts +++ b/grpc/clients/js/generated/vega_pb.d.ts @@ -1580,8 +1580,6 @@ export class Node extends jspb.Message { setInfoUrl(value: string): Node; getLocation(): string; setLocation(value: string): Node; - getFee(): number; - setFee(value: number): Node; getStakedByOperator(): string; setStakedByOperator(value: string): Node; getStakedByDelegates(): string; @@ -1620,7 +1618,6 @@ export namespace Node { pubKey: string, infoUrl: string, location: string, - fee: number, stakedByOperator: string, stakedByDelegates: string, stakedTotal: string, @@ -1641,8 +1638,6 @@ export class NodeData extends jspb.Message { setInactiveNodes(value: number): NodeData; getValidatingNodes(): number; setValidatingNodes(value: number): NodeData; - getAverageFee(): number; - setAverageFee(value: number): NodeData; getUptime(): number; setUptime(value: number): NodeData; @@ -1662,7 +1657,6 @@ export namespace NodeData { totalNodes: number, inactiveNodes: number, validatingNodes: number, - averageFee: number, uptime: number, } } diff --git a/grpc/clients/js/generated/vega_pb.js b/grpc/clients/js/generated/vega_pb.js index 4b9e04c7..e09fe2d8 100644 --- a/grpc/clients/js/generated/vega_pb.js +++ b/grpc/clients/js/generated/vega_pb.js @@ -13016,7 +13016,7 @@ proto.vega.EpochData.prototype.setOnline = function(value) { * @private {!Array} * @const */ -proto.vega.Node.repeatedFields_ = [13]; +proto.vega.Node.repeatedFields_ = [12]; @@ -13053,14 +13053,13 @@ proto.vega.Node.toObject = function(includeInstance, msg) { pubKey: jspb.Message.getFieldWithDefault(msg, 2, ""), infoUrl: jspb.Message.getFieldWithDefault(msg, 3, ""), location: jspb.Message.getFieldWithDefault(msg, 4, ""), - fee: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), - stakedByOperator: jspb.Message.getFieldWithDefault(msg, 6, ""), - stakedByDelegates: jspb.Message.getFieldWithDefault(msg, 7, ""), - stakedTotal: jspb.Message.getFieldWithDefault(msg, 8, ""), - maxIntendedStake: jspb.Message.getFieldWithDefault(msg, 9, ""), - pendingStake: jspb.Message.getFieldWithDefault(msg, 10, ""), + 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, 12, 0), + status: jspb.Message.getFieldWithDefault(msg, 11, 0), delagationsList: jspb.Message.toObjectList(msg.getDelagationsList(), proto.vega.Delegation.toObject, includeInstance) }; @@ -13116,39 +13115,35 @@ proto.vega.Node.deserializeBinaryFromReader = function(msg, reader) { msg.setLocation(value); break; case 5: - var value = /** @type {number} */ (reader.readFloat()); - msg.setFee(value); - break; - case 6: var value = /** @type {string} */ (reader.readString()); msg.setStakedByOperator(value); break; - case 7: + case 6: var value = /** @type {string} */ (reader.readString()); msg.setStakedByDelegates(value); break; - case 8: + case 7: var value = /** @type {string} */ (reader.readString()); msg.setStakedTotal(value); break; - case 9: + case 8: var value = /** @type {string} */ (reader.readString()); msg.setMaxIntendedStake(value); break; - case 10: + case 9: var value = /** @type {string} */ (reader.readString()); msg.setPendingStake(value); break; - case 11: + case 10: var value = new proto.vega.EpochData; reader.readMessage(value,proto.vega.EpochData.deserializeBinaryFromReader); msg.setEpochData(value); break; - case 12: + case 11: var value = /** @type {!proto.vega.NodeStatus} */ (reader.readEnum()); msg.setStatus(value); break; - case 13: + case 12: var value = new proto.vega.Delegation; reader.readMessage(value,proto.vega.Delegation.deserializeBinaryFromReader); msg.addDelagations(value); @@ -13210,52 +13205,45 @@ proto.vega.Node.serializeBinaryToWriter = function(message, writer) { f ); } - f = message.getFee(); - if (f !== 0.0) { - writer.writeFloat( - 5, - f - ); - } f = message.getStakedByOperator(); if (f.length > 0) { writer.writeString( - 6, + 5, f ); } f = message.getStakedByDelegates(); if (f.length > 0) { writer.writeString( - 7, + 6, f ); } f = message.getStakedTotal(); if (f.length > 0) { writer.writeString( - 8, + 7, f ); } f = message.getMaxIntendedStake(); if (f.length > 0) { writer.writeString( - 9, + 8, f ); } f = message.getPendingStake(); if (f.length > 0) { writer.writeString( - 10, + 9, f ); } f = message.getEpochData(); if (f != null) { writer.writeMessage( - 11, + 10, f, proto.vega.EpochData.serializeBinaryToWriter ); @@ -13263,14 +13251,14 @@ proto.vega.Node.serializeBinaryToWriter = function(message, writer) { f = message.getStatus(); if (f !== 0.0) { writer.writeEnum( - 12, + 11, f ); } f = message.getDelagationsList(); if (f.length > 0) { writer.writeRepeatedMessage( - 13, + 12, f, proto.vega.Delegation.serializeBinaryToWriter ); @@ -13351,29 +13339,11 @@ proto.vega.Node.prototype.setLocation = function(value) { /** - * optional float fee = 5; - * @return {number} - */ -proto.vega.Node.prototype.getFee = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.vega.Node} returns this - */ -proto.vega.Node.prototype.setFee = function(value) { - return jspb.Message.setProto3FloatField(this, 5, value); -}; - - -/** - * optional string staked_by_operator = 6; + * optional string staked_by_operator = 5; * @return {string} */ proto.vega.Node.prototype.getStakedByOperator = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; @@ -13382,16 +13352,16 @@ proto.vega.Node.prototype.getStakedByOperator = function() { * @return {!proto.vega.Node} returns this */ proto.vega.Node.prototype.setStakedByOperator = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); + return jspb.Message.setProto3StringField(this, 5, value); }; /** - * optional string staked_by_delegates = 7; + * optional string staked_by_delegates = 6; * @return {string} */ proto.vega.Node.prototype.getStakedByDelegates = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; @@ -13400,16 +13370,16 @@ proto.vega.Node.prototype.getStakedByDelegates = function() { * @return {!proto.vega.Node} returns this */ proto.vega.Node.prototype.setStakedByDelegates = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); + return jspb.Message.setProto3StringField(this, 6, value); }; /** - * optional string staked_total = 8; + * optional string staked_total = 7; * @return {string} */ proto.vega.Node.prototype.getStakedTotal = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; @@ -13418,16 +13388,16 @@ proto.vega.Node.prototype.getStakedTotal = function() { * @return {!proto.vega.Node} returns this */ proto.vega.Node.prototype.setStakedTotal = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); + return jspb.Message.setProto3StringField(this, 7, value); }; /** - * optional string max_intended_stake = 9; + * optional string max_intended_stake = 8; * @return {string} */ proto.vega.Node.prototype.getMaxIntendedStake = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; @@ -13436,16 +13406,16 @@ proto.vega.Node.prototype.getMaxIntendedStake = function() { * @return {!proto.vega.Node} returns this */ proto.vega.Node.prototype.setMaxIntendedStake = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); + return jspb.Message.setProto3StringField(this, 8, value); }; /** - * optional string pending_stake = 10; + * optional string pending_stake = 9; * @return {string} */ proto.vega.Node.prototype.getPendingStake = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; @@ -13454,17 +13424,17 @@ proto.vega.Node.prototype.getPendingStake = function() { * @return {!proto.vega.Node} returns this */ proto.vega.Node.prototype.setPendingStake = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); + return jspb.Message.setProto3StringField(this, 9, value); }; /** - * optional EpochData epoch_data = 11; + * optional EpochData epoch_data = 10; * @return {?proto.vega.EpochData} */ proto.vega.Node.prototype.getEpochData = function() { return /** @type{?proto.vega.EpochData} */ ( - jspb.Message.getWrapperField(this, proto.vega.EpochData, 11)); + jspb.Message.getWrapperField(this, proto.vega.EpochData, 10)); }; @@ -13473,7 +13443,7 @@ proto.vega.Node.prototype.getEpochData = function() { * @return {!proto.vega.Node} returns this */ proto.vega.Node.prototype.setEpochData = function(value) { - return jspb.Message.setWrapperField(this, 11, value); + return jspb.Message.setWrapperField(this, 10, value); }; @@ -13491,16 +13461,16 @@ proto.vega.Node.prototype.clearEpochData = function() { * @return {boolean} */ proto.vega.Node.prototype.hasEpochData = function() { - return jspb.Message.getField(this, 11) != null; + return jspb.Message.getField(this, 10) != null; }; /** - * optional NodeStatus status = 12; + * optional NodeStatus status = 11; * @return {!proto.vega.NodeStatus} */ proto.vega.Node.prototype.getStatus = function() { - return /** @type {!proto.vega.NodeStatus} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); + return /** @type {!proto.vega.NodeStatus} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); }; @@ -13509,17 +13479,17 @@ proto.vega.Node.prototype.getStatus = function() { * @return {!proto.vega.Node} returns this */ proto.vega.Node.prototype.setStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 12, value); + return jspb.Message.setProto3EnumField(this, 11, value); }; /** - * repeated Delegation delagations = 13; + * repeated Delegation delagations = 12; * @return {!Array} */ proto.vega.Node.prototype.getDelagationsList = function() { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.vega.Delegation, 13)); + jspb.Message.getRepeatedWrapperField(this, proto.vega.Delegation, 12)); }; @@ -13528,7 +13498,7 @@ proto.vega.Node.prototype.getDelagationsList = function() { * @return {!proto.vega.Node} returns this */ proto.vega.Node.prototype.setDelagationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 13, value); + return jspb.Message.setRepeatedWrapperField(this, 12, value); }; @@ -13538,7 +13508,7 @@ proto.vega.Node.prototype.setDelagationsList = function(value) { * @return {!proto.vega.Delegation} */ proto.vega.Node.prototype.addDelagations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.vega.Delegation, opt_index); + return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.vega.Delegation, opt_index); }; @@ -13587,8 +13557,7 @@ proto.vega.NodeData.toObject = function(includeInstance, msg) { totalNodes: jspb.Message.getFieldWithDefault(msg, 2, 0), inactiveNodes: jspb.Message.getFieldWithDefault(msg, 3, 0), validatingNodes: jspb.Message.getFieldWithDefault(msg, 4, 0), - averageFee: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), - uptime: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0) + uptime: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0) }; if (includeInstance) { @@ -13642,10 +13611,6 @@ proto.vega.NodeData.deserializeBinaryFromReader = function(msg, reader) { msg.setValidatingNodes(value); break; case 5: - var value = /** @type {number} */ (reader.readFloat()); - msg.setAverageFee(value); - break; - case 6: var value = /** @type {number} */ (reader.readFloat()); msg.setUptime(value); break; @@ -13706,17 +13671,10 @@ proto.vega.NodeData.serializeBinaryToWriter = function(message, writer) { f ); } - f = message.getAverageFee(); - if (f !== 0.0) { - writer.writeFloat( - 5, - f - ); - } f = message.getUptime(); if (f !== 0.0) { writer.writeFloat( - 6, + 5, f ); } @@ -13796,29 +13754,11 @@ proto.vega.NodeData.prototype.setValidatingNodes = function(value) { /** - * optional float average_fee = 5; - * @return {number} - */ -proto.vega.NodeData.prototype.getAverageFee = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.vega.NodeData} returns this - */ -proto.vega.NodeData.prototype.setAverageFee = function(value) { - return jspb.Message.setProto3FloatField(this, 5, value); -}; - - -/** - * optional float uptime = 6; + * optional float uptime = 5; * @return {number} */ proto.vega.NodeData.prototype.getUptime = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); }; @@ -13827,7 +13767,7 @@ proto.vega.NodeData.prototype.getUptime = function() { * @return {!proto.vega.NodeData} returns this */ proto.vega.NodeData.prototype.setUptime = function(value) { - return jspb.Message.setProto3FloatField(this, 6, value); + return jspb.Message.setProto3FloatField(this, 5, value); }; diff --git a/grpc/clients/python/generate_init.py b/grpc/clients/python/generate_init.py index fb96e343..2c2f1f74 100644 --- a/grpc/clients/python/generate_init.py +++ b/grpc/clients/python/generate_init.py @@ -9,7 +9,7 @@ \"\"\" 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 @@ -29,7 +29,7 @@ __all__ = [ "VegaTradingClient", - "VegaTradingDataClient", + "VegaCoreAPIClient", "FaucetClient", "WalletClient", "grpc_error_detail", 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 a547ec5c..9f8e8832 100644 --- a/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2.py +++ b/grpc/clients/python/vegaapiclient/generated/coreapi/v1/coreapi_pb2.py @@ -12,6 +12,8 @@ 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 @@ -22,9 +24,9 @@ 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\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\nvalidators2\xf9\x03\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.ListValidatorsResponseBM\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\tproposals2\xb3\x05\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.ListProposalsResponseBM\n\x1fio.vegaprotocol.vega.coreapi.v1Z*code.vegaprotocol.io/vega/proto/coreapi/v1b\x06proto3' , - dependencies=[assets__pb2.DESCRIPTOR,vega__pb2.DESCRIPTOR,events_dot_v1_dot_events__pb2.DESCRIPTOR,]) + dependencies=[assets__pb2.DESCRIPTOR,governance__pb2.DESCRIPTOR,markets__pb2.DESCRIPTOR,vega__pb2.DESCRIPTOR,events_dot_v1_dot_events__pb2.DESCRIPTOR,]) @@ -84,8 +86,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=95, - serialized_end=218, + serialized_start=128, + serialized_end=251, ) @@ -123,8 +125,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=220, - serialized_end=287, + serialized_start=253, + serialized_end=320, ) @@ -155,8 +157,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=289, - serialized_end=365, + serialized_start=322, + serialized_end=398, ) @@ -187,8 +189,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=367, - serialized_end=408, + serialized_start=400, + serialized_end=441, ) @@ -219,8 +221,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=410, - serialized_end=467, + serialized_start=443, + serialized_end=500, ) @@ -251,8 +253,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=469, - serialized_end=551, + serialized_start=502, + serialized_end=584, ) @@ -283,8 +285,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=553, - serialized_end=655, + serialized_start=586, + serialized_end=688, ) @@ -308,8 +310,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=657, - serialized_end=677, + serialized_start=690, + serialized_end=710, ) @@ -340,8 +342,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=679, - serialized_end=739, + serialized_start=712, + serialized_end=772, ) @@ -365,8 +367,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=741, - serialized_end=764, + serialized_start=774, + serialized_end=797, ) @@ -397,8 +399,143 @@ extension_ranges=[], oneofs=[ ], - serialized_start=766, - serialized_end=855, + 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, ) _LISTACCOUNTSRESPONSE.fields_by_name['accounts'].message_type = _ACCOUNT @@ -406,6 +543,8 @@ _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 DESCRIPTOR.message_types_by_name['Account'] = _ACCOUNT DESCRIPTOR.message_types_by_name['ListAccountsRequest'] = _LISTACCOUNTSREQUEST DESCRIPTOR.message_types_by_name['ListAccountsResponse'] = _LISTACCOUNTSRESPONSE @@ -417,6 +556,10 @@ 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 _sym_db.RegisterFileDescriptor(DESCRIPTOR) Account = _reflection.GeneratedProtocolMessageType('Account', (_message.Message,), { @@ -496,6 +639,34 @@ }) _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) + DESCRIPTOR._options = None @@ -506,8 +677,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=858, - serialized_end=1363, + serialized_start=1151, + serialized_end=1842, methods=[ _descriptor.MethodDescriptor( name='ListAccounts', @@ -559,6 +730,26 @@ 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, + ), ]) _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 29da65ad..06162311 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 @@ -39,6 +39,16 @@ def __init__(self, channel): 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, + ) class CoreApiServiceServicer(object): @@ -74,6 +84,18 @@ def ListValidators(self, request, context): 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 add_CoreApiServiceServicer_to_server(servicer, server): rpc_method_handlers = { @@ -102,6 +124,16 @@ def add_CoreApiServiceServicer_to_server(servicer, server): 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, + ), } generic_handler = grpc.method_handlers_generic_handler( 'vega.coreapi.v1.CoreApiService', rpc_method_handlers) @@ -196,3 +228,37 @@ def ListValidators(request, 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) 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 2ed88fdf..af885815 100644 --- a/grpc/clients/python/vegaapiclient/generated/snapshot/v1/snapshot_pb2.py +++ b/grpc/clients/python/vegaapiclient/generated/snapshot/v1/snapshot_pb2.py @@ -22,7 +22,7 @@ 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\"\x93\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\"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\tproposalsBO\n io.vegaprotocol.vega.snapshot.v1Z+code.vegaprotocol.io/vega/proto/snapshot/v1b\x06proto3' + 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,]) @@ -104,6 +104,13 @@ 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=[ ], @@ -117,7 +124,7 @@ oneofs=[ ], serialized_start=147, - serialized_end=294, + serialized_end=326, ) @@ -155,8 +162,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=296, - serialized_end=381, + serialized_start=328, + serialized_end=413, ) @@ -187,8 +194,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=383, - serialized_end=445, + serialized_start=415, + serialized_end=477, ) @@ -233,8 +240,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=447, - serialized_end=531, + serialized_start=479, + serialized_end=563, ) @@ -265,8 +272,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=533, - serialized_end=605, + serialized_start=565, + serialized_end=637, ) @@ -297,8 +304,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=607, - serialized_end=666, + serialized_start=639, + serialized_end=698, ) @@ -329,8 +336,107 @@ extension_ranges=[], oneofs=[ ], - serialized_start=668, - serialized_end=725, + 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 @@ -338,6 +444,8 @@ _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 @@ -346,6 +454,8 @@ 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,), { @@ -404,6 +514,20 @@ }) _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/vega_pb2.py b/grpc/clients/python/vegaapiclient/generated/vega_pb2.py index f39afa51..18263de9 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\"\xf2\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\x10\n\x03\x66\x65\x65\x18\x05 \x01(\x02R\x03\x66\x65\x65\x12,\n\x12staked_by_operator\x18\x06 \x01(\tR\x10stakedByOperator\x12.\n\x13staked_by_delegates\x18\x07 \x01(\tR\x11stakedByDelegates\x12!\n\x0cstaked_total\x18\x08 \x01(\tR\x0bstakedTotal\x12,\n\x12max_intended_stake\x18\t \x01(\tR\x10maxIntendedStake\x12#\n\rpending_stake\x18\n \x01(\tR\x0cpendingStake\x12\x36\n\nepoch_data\x18\x0b \x01(\x0b\x32\x0f.vega.EpochDataB\x06\xe2\xdf\x1f\x02 \x01R\tepochData\x12\x30\n\x06status\x18\x0c \x01(\x0e\x32\x10.vega.NodeStatusB\x06\xe2\xdf\x1f\x02 \x01R\x06status\x12\x32\n\x0b\x64\x65lagations\x18\r \x03(\x0b\x32\x10.vega.DelegationR\x0b\x64\x65lagations\"\xd9\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\x1f\n\x0b\x61verage_fee\x18\x05 \x01(\x02R\naverageFee\x12\x16\n\x06uptime\x18\x06 \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(\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,assets__pb2.DESCRIPTOR,]) @@ -52,8 +52,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=10979, - serialized_end=11036, + serialized_start=10928, + serialized_end=10985, ) _sym_db.RegisterEnumDescriptor(_SIDE) @@ -103,8 +103,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=11039, - serialized_end=11191, + serialized_start=10988, + serialized_end=11140, ) _sym_db.RegisterEnumDescriptor(_INTERVAL) @@ -144,8 +144,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=11194, - serialized_end=11357, + serialized_start=11143, + serialized_end=11306, ) _sym_db.RegisterEnumDescriptor(_AUCTIONTRIGGER) @@ -180,8 +180,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=11360, - serialized_end=11499, + serialized_start=11309, + serialized_end=11448, ) _sym_db.RegisterEnumDescriptor(_PEGGEDREFERENCE) @@ -436,8 +436,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=11502, - serialized_end=13542, + serialized_start=11451, + serialized_end=13491, ) _sym_db.RegisterEnumDescriptor(_ORDERERROR) @@ -472,8 +472,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=13545, - serialized_end=13675, + serialized_start=13494, + serialized_end=13624, ) _sym_db.RegisterEnumDescriptor(_CHAINSTATUS) @@ -553,8 +553,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=13678, - serialized_end=14078, + serialized_start=13627, + serialized_end=14027, ) _sym_db.RegisterEnumDescriptor(_ACCOUNTTYPE) @@ -679,8 +679,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=14081, - serialized_end=14804, + serialized_start=14030, + serialized_end=14753, ) _sym_db.RegisterEnumDescriptor(_TRANSFERTYPE) @@ -710,8 +710,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=14806, - serialized_end=14905, + serialized_start=14755, + serialized_end=14854, ) _sym_db.RegisterEnumDescriptor(_NODESTATUS) @@ -3893,64 +3893,57 @@ is_extension=False, extension_scope=None, serialized_options=None, json_name='location', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='fee', full_name='vega.Node.fee', 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='fee', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='staked_by_operator', full_name='vega.Node.staked_by_operator', index=5, - number=6, type=9, cpp_type=9, label=1, + 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=None, json_name='stakedByOperator', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='staked_by_delegates', full_name='vega.Node.staked_by_delegates', index=6, - number=7, type=9, cpp_type=9, label=1, + 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='stakedByDelegates', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='staked_total', full_name='vega.Node.staked_total', index=7, - number=8, type=9, cpp_type=9, label=1, + 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='stakedTotal', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='max_intended_stake', full_name='vega.Node.max_intended_stake', index=8, - number=9, type=9, cpp_type=9, label=1, + 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='maxIntendedStake', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='pending_stake', full_name='vega.Node.pending_stake', index=9, - number=10, type=9, cpp_type=9, label=1, + 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='pendingStake', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='epoch_data', full_name='vega.Node.epoch_data', index=10, - number=11, type=11, cpp_type=10, label=1, + 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=b'\342\337\037\002 \001', json_name='epochData', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='status', full_name='vega.Node.status', index=11, - number=12, type=14, cpp_type=8, label=1, + 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=b'\342\337\037\002 \001', json_name='status', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='delagations', full_name='vega.Node.delagations', index=12, - number=13, type=11, cpp_type=10, label=3, + 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, @@ -3968,7 +3961,7 @@ oneofs=[ ], serialized_start=9812, - serialized_end=10310, + serialized_end=10292, ) @@ -4009,18 +4002,11 @@ is_extension=False, extension_scope=None, serialized_options=None, json_name='validatingNodes', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='average_fee', full_name='vega.NodeData.average_fee', index=4, + 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='averageFee', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='uptime', full_name='vega.NodeData.uptime', index=5, - number=6, 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=[ @@ -4034,8 +4020,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=10313, - serialized_end=10530, + serialized_start=10295, + serialized_end=10479, ) @@ -4087,8 +4073,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=10532, - serialized_end=10644, + serialized_start=10481, + serialized_end=10593, ) @@ -4154,8 +4140,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=10647, - serialized_end=10843, + serialized_start=10596, + serialized_end=10792, ) @@ -4200,8 +4186,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=10846, - serialized_end=10977, + serialized_start=10795, + serialized_end=10926, ) _PARTY.fields_by_name['delegations'].message_type = _DELEGATION diff --git a/grpc/doc/doc.json b/grpc/doc/doc.json index 3a20416c..8953595a 100644 --- a/grpc/doc/doc.json +++ b/grpc/doc/doc.json @@ -4974,18 +4974,6 @@ "oneofdecl": "", "defaultValue": "" }, - { - "name": "fee", - "description": "Value between 0 and 1 for percentage", - "label": "", - "type": "float", - "longType": "float", - "fullType": "float", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, { "name": "staked_by_operator", "description": "The amount the node has put up themselves", @@ -5158,18 +5146,6 @@ "oneofdecl": "", "defaultValue": "" }, - { - "name": "average_fee", - "description": "Average percentage fee across all nodes", - "label": "", - "type": "float", - "longType": "float", - "fullType": "float", - "ismap": false, - "isoneof": false, - "oneofdecl": "", - "defaultValue": "" - }, { "name": "uptime", "description": "Total uptime for all epochs across all nodes", @@ -13380,6 +13356,54 @@ } ] }, + { + "name": "ListMarketsRequest", + "longName": "ListMarketsRequest", + "fullName": "vega.coreapi.v1.ListMarketsRequest", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "market", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "ListMarketsResponse", + "longName": "ListMarketsResponse", + "fullName": "vega.coreapi.v1.ListMarketsResponse", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "markets", + "description": "", + "label": "repeated", + "type": "Market", + "longType": "vega.Market", + "fullType": "vega.Market", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, { "name": "ListNetworkParametersRequest", "longName": "ListNetworkParametersRequest", @@ -13463,6 +13487,66 @@ } ] }, + { + "name": "ListProposalsRequest", + "longName": "ListProposalsRequest", + "fullName": "vega.coreapi.v1.ListProposalsRequest", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "proposal", + "description": "optional ID", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "proposer", + "description": "optional party", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "ListProposalsResponse", + "longName": "ListProposalsResponse", + "fullName": "vega.coreapi.v1.ListProposalsResponse", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "proposals", + "description": "", + "label": "repeated", + "type": "Proposal", + "longType": "vega.Proposal", + "fullType": "vega.Proposal", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, { "name": "ListValidatorsRequest", "longName": "ListValidatorsRequest", @@ -13565,6 +13649,30 @@ "responseLongType": "ListValidatorsResponse", "responseFullType": "vega.coreapi.v1.ListValidatorsResponse", "responseStreaming": false + }, + { + "name": "ListMarkets", + "description": "", + "requestType": "ListMarketsRequest", + "requestLongType": "ListMarketsRequest", + "requestFullType": "vega.coreapi.v1.ListMarketsRequest", + "requestStreaming": false, + "responseType": "ListMarketsResponse", + "responseLongType": "ListMarketsResponse", + "responseFullType": "vega.coreapi.v1.ListMarketsResponse", + "responseStreaming": false + }, + { + "name": "ListProposals", + "description": "", + "requestType": "ListProposalsRequest", + "requestLongType": "ListProposalsRequest", + "requestFullType": "vega.coreapi.v1.ListProposalsRequest", + "requestStreaming": false, + "responseType": "ListProposalsResponse", + "responseLongType": "ListProposalsResponse", + "responseFullType": "vega.coreapi.v1.ListProposalsResponse", + "responseStreaming": false } ] } @@ -13746,6 +13854,18 @@ "isoneof": false, "oneofdecl": "", "defaultValue": "" + }, + { + "name": "delegation", + "description": "", + "label": "", + "type": "bytes", + "longType": "bytes", + "fullType": "bytes", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" } ] }, @@ -13773,6 +13893,114 @@ } ] }, + { + "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": "active", + "description": "", + "label": "repeated", + "type": "DelegateEntry", + "longType": "DelegateEntry", + "fullType": "vega.snapshot.v1.DelegateEntry", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "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": "party", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "node", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "amount", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "undelegate", + "description": "", + "label": "", + "type": "bool", + "longType": "bool", + "fullType": "bool", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "epoch_seq", + "description": "", + "label": "", + "type": "uint64", + "longType": "uint64", + "fullType": "uint64", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, { "name": "NetParams", "longName": "NetParams", diff --git a/grpc/doc/index.html b/grpc/doc/index.html index 0c23595a..d8b009a7 100644 --- a/grpc/doc/index.html +++ b/grpc/doc/index.html @@ -1172,6 +1172,14 @@

Table of Contents

MListAssetsResponse +
  • + MListMarketsRequest +
  • + +
  • + MListMarketsResponse +
  • +
  • MListNetworkParametersRequest
  • @@ -1188,6 +1196,14 @@

    Table of Contents

    MListPartiesResponse +
  • + MListProposalsRequest +
  • + +
  • + MListProposalsResponse +
  • +
  • MListValidatorsRequest
  • @@ -1231,6 +1247,14 @@

    Table of Contents

    MCollateral +
  • + MDelegate +
  • + +
  • + MDelegateEntry +
  • +
  • MNetParams
  • @@ -4756,13 +4780,6 @@

    Node

    Country code for the location of the node

    - - fee - float - -

    Value between 0 and 1 for percentage

    - - staked_by_operator string @@ -4913,13 +4930,6 @@

    NodeData

    Number of nodes validating

    - - average_fee - float - -

    Average percentage fee across all nodes

    - - uptime float @@ -12947,6 +12957,54 @@

    ListAssetsResponse

    +

    ListMarketsRequest

    +

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

    + + + + + +

    ListMarketsResponse

    +

    + + + + + + + + + + + + + + + + +
    FieldTypeLabelDescription
    marketsvega.Marketrepeated

    + + + + +

    ListNetworkParametersRequest

    @@ -13026,6 +13084,61 @@

    ListPartiesResponse

    +

    ListProposalsRequest

    +

    + + + + + + + + + + + + + + + + + + + + + + + +
    FieldTypeLabelDescription
    proposalstring

    optional ID

    proposerstring

    optional party

    + + + + + +

    ListProposalsResponse

    +

    + + + + + + + + + + + + + + + + +
    FieldTypeLabelDescription
    proposalsvega.Proposalrepeated

    + + + + +

    ListValidatorsRequest

    @@ -13106,6 +13219,20 @@

    CoreApiService

    + + ListMarkets + ListMarketsRequest + ListMarketsResponse +

    + + + + ListProposals + ListProposalsRequest + ListProposalsResponse +

    + + @@ -13249,6 +13376,13 @@

    Checkpoint

    + + delegation + bytes + +

    + + @@ -13280,6 +13414,89 @@

    Collateral

    +

    Delegate

    +

    Delegate contains all entries for a checkpoint

    + + + + + + + + + + + + + + + + + + + + + + + +
    FieldTypeLabelDescription
    activeDelegateEntryrepeated

    pendingDelegateEntryrepeated

    + + + + + +

    DelegateEntry

    +

    Delegated amounts for party/node

    undelegate and epoch seq are only relevant for pending entries

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

    nodestring

    amountstring

    undelegatebool

    epoch_sequint64

    + + + + +

    NetParams

    NetParams contains all network parameters

    diff --git a/grpc/doc/index.md b/grpc/doc/index.md index 3a2d9a6f..2a2284c8 100644 --- a/grpc/doc/index.md +++ b/grpc/doc/index.md @@ -253,10 +253,14 @@ - [ListAccountsResponse](#vega.coreapi.v1.ListAccountsResponse) - [ListAssetsRequest](#vega.coreapi.v1.ListAssetsRequest) - [ListAssetsResponse](#vega.coreapi.v1.ListAssetsResponse) + - [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) @@ -268,6 +272,8 @@ - [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) @@ -1546,7 +1552,6 @@ Represents a network parameter on Vega | 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 | -| fee | [float](#float) | | Value between 0 and 1 for percentage | | 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 | @@ -1573,7 +1578,6 @@ Represents a network parameter on Vega | total_nodes | [uint32](#uint32) | | Total number of nodes | | inactive_nodes | [uint32](#uint32) | | Number of inactive nodes | | validating_nodes | [uint32](#uint32) | | Number of nodes validating | -| average_fee | [float](#float) | | Average percentage fee across all nodes | | uptime | [float](#float) | | Total uptime for all epochs across all nodes | @@ -4379,6 +4383,36 @@ Blockchain transaction type + + +### ListMarketsRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| market | [string](#string) | | | + + + + + + + + +### ListMarketsResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| markets | [vega.Market](#vega.Market) | repeated | | + + + + + + ### ListNetworkParametersRequest @@ -4434,6 +4468,37 @@ Blockchain transaction type + + +### ListProposalsRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| proposal | [string](#string) | | optional ID | +| proposer | [string](#string) | | optional party | + + + + + + + + +### ListProposalsResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| proposals | [vega.Proposal](#vega.Proposal) | repeated | | + + + + + + ### ListValidatorsRequest @@ -4477,6 +4542,8 @@ Blockchain transaction type | 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) | | @@ -4549,6 +4616,7 @@ Checkpoint aggregates the various engine snapshots | assets | [bytes](#bytes) | | | | collateral | [bytes](#bytes) | | | | network_parameters | [bytes](#bytes) | | | +| delegation | [bytes](#bytes) | | | @@ -4570,6 +4638,42 @@ Collateral contains the balances per party + + +### Delegate +Delegate contains all entries for a checkpoint + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| active | [DelegateEntry](#vega.snapshot.v1.DelegateEntry) | repeated | | +| pending | [DelegateEntry](#vega.snapshot.v1.DelegateEntry) | repeated | | + + + + + + + + +### DelegateEntry +Delegated amounts for party/node +undelegate and epoch seq are only relevant for pending entries + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| party | [string](#string) | | | +| node | [string](#string) | | | +| amount | [string](#string) | | | +| undelegate | [bool](#bool) | | | +| epoch_seq | [uint64](#uint64) | | | + + + + + + ### NetParams diff --git a/proto/coreapi/v1/coreapi.proto b/proto/coreapi/v1/coreapi.proto index c093e200..73b784d3 100644 --- a/proto/coreapi/v1/coreapi.proto +++ b/proto/coreapi/v1/coreapi.proto @@ -5,6 +5,8 @@ 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"; @@ -14,6 +16,8 @@ service CoreApiService { 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); } message Account { @@ -21,13 +25,13 @@ message Account { string market = 2; string balance = 3; string asset = 5; - string type = 6; + string type = 6; } message ListAccountsRequest { string party = 1; string market = 2; - } +} message ListAccountsResponse { repeated Account accounts = 1; @@ -60,3 +64,20 @@ 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; +} diff --git a/proto/from.txt b/proto/from.txt index 952c6d9a..bbfd39de 100644 --- a/proto/from.txt +++ b/proto/from.txt @@ -1 +1 @@ -v0.41.0-125-gc01b94c on feature/remove-vega-apis +v0.41.0-136-ga6ce4b8 on feature/remove-vega-apis diff --git a/proto/snapshot/v1/snapshot.proto b/proto/snapshot/v1/snapshot.proto index 88dc6ec9..b061168f 100644 --- a/proto/snapshot/v1/snapshot.proto +++ b/proto/snapshot/v1/snapshot.proto @@ -20,6 +20,7 @@ message Checkpoint { bytes assets = 2; bytes collateral = 3; bytes network_parameters = 4; + bytes delegation = 5; } // AssetEntrty is a single (enabled) asset @@ -54,3 +55,19 @@ message NetParams { 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 3fe12a4c..3076303d 100644 --- a/proto/vega.proto +++ b/proto/vega.proto @@ -1081,24 +1081,22 @@ message Node { string info_url = 3; // Country code for the location of the node string location = 4; - // Value between 0 and 1 for percentage - float fee = 5; // The amount the node has put up themselves - string staked_by_operator = 6; + string staked_by_operator = 5; // The amount of stake that has been delegated by token holders - string staked_by_delegates = 7;; + string staked_by_delegates = 6;; // Total amount staked on node - string staked_total = 8; + string staked_total = 7; // Max amount of (wanted) stake, is this a network param or a node param - string max_intended_stake = 9; + string max_intended_stake = 8; // Amount of stake on the next epoch - string pending_stake = 10; + string pending_stake = 9; // Informantion about epoch - EpochData epoch_data = 11 [(validator.field) = {msg_exists : true}]; + EpochData epoch_data = 10 [(validator.field) = {msg_exists : true}]; // Node status - NodeStatus status = 12 [(validator.field) = {msg_exists : true}]; + NodeStatus status = 11 [(validator.field) = {msg_exists : true}]; // Node's delegations - repeated Delegation delagations = 13; + repeated Delegation delagations = 12; } message NodeData { @@ -1110,10 +1108,8 @@ message NodeData { uint32 inactive_nodes = 3; // Number of nodes validating uint32 validating_nodes = 4; - // Average percentage fee across all nodes - float average_fee = 5; // Total uptime for all epochs across all nodes - float uptime = 6; + float uptime = 5; } message Delegation { diff --git a/rest/grpc-rest-bindings.yml b/rest/grpc-rest-bindings.yml index 22fe0890..be3466fe 100644 --- a/rest/grpc-rest-bindings.yml +++ b/rest/grpc-rest-bindings.yml @@ -35,3 +35,7 @@ http: get: '/parties' - selector: vega.coreapi.v1.CoreApiService.ListValidators get: '/validators' + - selector: vega.coreapi.v1.CoreApiService.ListProposals + get: '/proposals' + - selector: vega.coreapi.v1.CoreApiService.ListMarkets + get: '/markets'