github.com/igggame/nebulas-go@v2.1.0+incompatible/nbre/benchmark/ipc/grpc/pb/ipc.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: ipc.proto 3 4 /* 5 Package ipcpb is a generated protocol buffer package. 6 7 It is generated from these files: 8 ipc.proto 9 10 It has these top-level messages: 11 Benchmark 12 */ 13 package ipcpb 14 15 import proto "github.com/gogo/protobuf/proto" 16 import fmt "fmt" 17 import math "math" 18 19 import ( 20 context "golang.org/x/net/context" 21 grpc "google.golang.org/grpc" 22 ) 23 24 // Reference imports to suppress errors if they are not otherwise used. 25 var _ = proto.Marshal 26 var _ = fmt.Errorf 27 var _ = math.Inf 28 29 // This is a compile-time assertion to ensure that this generated file 30 // is compatible with the proto package it is being compiled against. 31 // A compilation error at this line likely means your copy of the 32 // proto package needs to be updated. 33 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 34 35 type Benchmark struct { 36 Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 37 } 38 39 func (m *Benchmark) Reset() { *m = Benchmark{} } 40 func (m *Benchmark) String() string { return proto.CompactTextString(m) } 41 func (*Benchmark) ProtoMessage() {} 42 func (*Benchmark) Descriptor() ([]byte, []int) { return fileDescriptorIpc, []int{0} } 43 44 func (m *Benchmark) GetData() []byte { 45 if m != nil { 46 return m.Data 47 } 48 return nil 49 } 50 51 func init() { 52 proto.RegisterType((*Benchmark)(nil), "ipcpb.Benchmark") 53 } 54 55 // Reference imports to suppress errors if they are not otherwise used. 56 var _ context.Context 57 var _ grpc.ClientConn 58 59 // This is a compile-time assertion to ensure that this generated file 60 // is compatible with the grpc package it is being compiled against. 61 const _ = grpc.SupportPackageIsVersion4 62 63 // Client API for BenchmarkService service 64 65 type BenchmarkServiceClient interface { 66 Transfer(ctx context.Context, in *Benchmark, opts ...grpc.CallOption) (*Benchmark, error) 67 } 68 69 type benchmarkServiceClient struct { 70 cc *grpc.ClientConn 71 } 72 73 func NewBenchmarkServiceClient(cc *grpc.ClientConn) BenchmarkServiceClient { 74 return &benchmarkServiceClient{cc} 75 } 76 77 func (c *benchmarkServiceClient) Transfer(ctx context.Context, in *Benchmark, opts ...grpc.CallOption) (*Benchmark, error) { 78 out := new(Benchmark) 79 err := grpc.Invoke(ctx, "/ipcpb.BenchmarkService/transfer", in, out, c.cc, opts...) 80 if err != nil { 81 return nil, err 82 } 83 return out, nil 84 } 85 86 // Server API for BenchmarkService service 87 88 type BenchmarkServiceServer interface { 89 Transfer(context.Context, *Benchmark) (*Benchmark, error) 90 } 91 92 func RegisterBenchmarkServiceServer(s *grpc.Server, srv BenchmarkServiceServer) { 93 s.RegisterService(&_BenchmarkService_serviceDesc, srv) 94 } 95 96 func _BenchmarkService_Transfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 97 in := new(Benchmark) 98 if err := dec(in); err != nil { 99 return nil, err 100 } 101 if interceptor == nil { 102 return srv.(BenchmarkServiceServer).Transfer(ctx, in) 103 } 104 info := &grpc.UnaryServerInfo{ 105 Server: srv, 106 FullMethod: "/ipcpb.BenchmarkService/Transfer", 107 } 108 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 109 return srv.(BenchmarkServiceServer).Transfer(ctx, req.(*Benchmark)) 110 } 111 return interceptor(ctx, in, info, handler) 112 } 113 114 var _BenchmarkService_serviceDesc = grpc.ServiceDesc{ 115 ServiceName: "ipcpb.BenchmarkService", 116 HandlerType: (*BenchmarkServiceServer)(nil), 117 Methods: []grpc.MethodDesc{ 118 { 119 MethodName: "transfer", 120 Handler: _BenchmarkService_Transfer_Handler, 121 }, 122 }, 123 Streams: []grpc.StreamDesc{}, 124 Metadata: "ipc.proto", 125 } 126 127 func init() { proto.RegisterFile("ipc.proto", fileDescriptorIpc) } 128 129 var fileDescriptorIpc = []byte{ 130 // 113 bytes of a gzipped FileDescriptorProto 131 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcc, 0x2c, 0x48, 0xd6, 132 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0xcd, 0x2c, 0x48, 0x2e, 0x48, 0x52, 0x92, 0xe7, 0xe2, 133 0x74, 0x4a, 0xcd, 0x4b, 0xce, 0xc8, 0x4d, 0x2c, 0xca, 0x16, 0x12, 0xe2, 0x62, 0x49, 0x49, 0x2c, 134 0x49, 0x94, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x09, 0x02, 0xb3, 0x8d, 0x9c, 0xb8, 0x04, 0xe0, 0x0a, 135 0x82, 0x53, 0x8b, 0xca, 0x32, 0x93, 0x53, 0x85, 0xf4, 0xb8, 0x38, 0x4a, 0x8a, 0x12, 0xf3, 0x8a, 136 0xd3, 0x52, 0x8b, 0x84, 0x04, 0xf4, 0xc0, 0x06, 0xe9, 0xc1, 0x15, 0x49, 0x61, 0x88, 0x24, 0xb1, 137 0x81, 0xad, 0x34, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x3e, 0xad, 0x8c, 0x66, 0x7f, 0x00, 0x00, 138 0x00, 139 }