From ebf750a70df28561831c7470d31a9e68c60bd581 Mon Sep 17 00:00:00 2001 From: Dennis Won Date: Fri, 20 Sep 2019 16:06:49 -0700 Subject: [PATCH] go generate --- api/client/service/proto/client.pb.go | 16 ++++++++++++++++ api/proto/message/message.pb.go | 10 ++++++++++ 2 files changed, 26 insertions(+) diff --git a/api/client/service/proto/client.pb.go b/api/client/service/proto/client.pb.go index 5df844c57..028e17b0c 100644 --- a/api/client/service/proto/client.pb.go +++ b/api/client/service/proto/client.pb.go @@ -8,6 +8,8 @@ import ( fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" math "math" ) @@ -388,6 +390,20 @@ type ClientServiceServer interface { GetStakingContractInfo(context.Context, *StakingContractInfoRequest) (*StakingContractInfoResponse, error) } +// UnimplementedClientServiceServer can be embedded to have forward compatible implementations. +type UnimplementedClientServiceServer struct { +} + +func (*UnimplementedClientServiceServer) FetchAccountState(ctx context.Context, req *FetchAccountStateRequest) (*FetchAccountStateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchAccountState not implemented") +} +func (*UnimplementedClientServiceServer) GetFreeToken(ctx context.Context, req *GetFreeTokenRequest) (*GetFreeTokenResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetFreeToken not implemented") +} +func (*UnimplementedClientServiceServer) GetStakingContractInfo(ctx context.Context, req *StakingContractInfoRequest) (*StakingContractInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetStakingContractInfo not implemented") +} + func RegisterClientServiceServer(s *grpc.Server, srv ClientServiceServer) { s.RegisterService(&_ClientService_serviceDesc, srv) } diff --git a/api/proto/message/message.pb.go b/api/proto/message/message.pb.go index b4eb2e404..0005111af 100644 --- a/api/proto/message/message.pb.go +++ b/api/proto/message/message.pb.go @@ -8,6 +8,8 @@ import ( fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" math "math" ) @@ -916,6 +918,14 @@ type ClientServiceServer interface { Process(context.Context, *Message) (*Response, error) } +// UnimplementedClientServiceServer can be embedded to have forward compatible implementations. +type UnimplementedClientServiceServer struct { +} + +func (*UnimplementedClientServiceServer) Process(ctx context.Context, req *Message) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method Process not implemented") +} + func RegisterClientServiceServer(s *grpc.Server, srv ClientServiceServer) { s.RegisterService(&_ClientService_serviceDesc, srv) }