github.com/adnan-c/fabric_e2e_couchdb@v0.6.1-preview.0.20170228180935-21ce6b23cf91/core/comm/testdata/grpc/test.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: test.proto 3 // DO NOT EDIT! 4 5 /* 6 Package grpc is a generated protocol buffer package. 7 8 It is generated from these files: 9 test.proto 10 11 It has these top-level messages: 12 Empty 13 */ 14 package grpc 15 16 import proto "github.com/golang/protobuf/proto" 17 import fmt "fmt" 18 import math "math" 19 20 import ( 21 context "golang.org/x/net/context" 22 grpc1 "google.golang.org/grpc" 23 ) 24 25 // Reference imports to suppress errors if they are not otherwise used. 26 var _ = proto.Marshal 27 var _ = fmt.Errorf 28 var _ = math.Inf 29 30 // This is a compile-time assertion to ensure that this generated file 31 // is compatible with the proto package it is being compiled against. 32 // A compilation error at this line likely means your copy of the 33 // proto package needs to be updated. 34 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 35 36 type Empty struct { 37 } 38 39 func (m *Empty) Reset() { *m = Empty{} } 40 func (m *Empty) String() string { return proto.CompactTextString(m) } 41 func (*Empty) ProtoMessage() {} 42 func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } 43 44 func init() { 45 proto.RegisterType((*Empty)(nil), "Empty") 46 } 47 48 // Reference imports to suppress errors if they are not otherwise used. 49 var _ context.Context 50 var _ grpc1.ClientConn 51 52 // This is a compile-time assertion to ensure that this generated file 53 // is compatible with the grpc package it is being compiled against. 54 const _ = grpc1.SupportPackageIsVersion3 55 56 // Client API for TestService service 57 58 type TestServiceClient interface { 59 EmptyCall(ctx context.Context, in *Empty, opts ...grpc1.CallOption) (*Empty, error) 60 } 61 62 type testServiceClient struct { 63 cc *grpc1.ClientConn 64 } 65 66 func NewTestServiceClient(cc *grpc1.ClientConn) TestServiceClient { 67 return &testServiceClient{cc} 68 } 69 70 func (c *testServiceClient) EmptyCall(ctx context.Context, in *Empty, opts ...grpc1.CallOption) (*Empty, error) { 71 out := new(Empty) 72 err := grpc1.Invoke(ctx, "/TestService/EmptyCall", in, out, c.cc, opts...) 73 if err != nil { 74 return nil, err 75 } 76 return out, nil 77 } 78 79 // Server API for TestService service 80 81 type TestServiceServer interface { 82 EmptyCall(context.Context, *Empty) (*Empty, error) 83 } 84 85 func RegisterTestServiceServer(s *grpc1.Server, srv TestServiceServer) { 86 s.RegisterService(&_TestService_serviceDesc, srv) 87 } 88 89 func _TestService_EmptyCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { 90 in := new(Empty) 91 if err := dec(in); err != nil { 92 return nil, err 93 } 94 if interceptor == nil { 95 return srv.(TestServiceServer).EmptyCall(ctx, in) 96 } 97 info := &grpc1.UnaryServerInfo{ 98 Server: srv, 99 FullMethod: "/TestService/EmptyCall", 100 } 101 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 102 return srv.(TestServiceServer).EmptyCall(ctx, req.(*Empty)) 103 } 104 return interceptor(ctx, in, info, handler) 105 } 106 107 var _TestService_serviceDesc = grpc1.ServiceDesc{ 108 ServiceName: "TestService", 109 HandlerType: (*TestServiceServer)(nil), 110 Methods: []grpc1.MethodDesc{ 111 { 112 MethodName: "EmptyCall", 113 Handler: _TestService_EmptyCall_Handler, 114 }, 115 }, 116 Streams: []grpc1.StreamDesc{}, 117 Metadata: fileDescriptor0, 118 } 119 120 func init() { proto.RegisterFile("test.proto", fileDescriptor0) } 121 122 var fileDescriptor0 = []byte{ 123 // 138 bytes of a gzipped FileDescriptorProto 124 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x2a, 0x49, 0x2d, 0x2e, 125 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x57, 0x62, 0xe7, 0x62, 0x75, 0xcd, 0x2d, 0x28, 0xa9, 0x34, 126 0xd2, 0xe2, 0xe2, 0x0e, 0x49, 0x2d, 0x2e, 0x09, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0x15, 0x92, 127 0xe6, 0xe2, 0x04, 0x8b, 0x3b, 0x27, 0xe6, 0xe4, 0x08, 0xb1, 0xe9, 0x81, 0xd9, 0x52, 0x50, 0xda, 128 0xc9, 0x3c, 0xca, 0x34, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x3f, 0xa3, 129 0xb2, 0x20, 0xb5, 0x28, 0x27, 0x35, 0x25, 0x3d, 0xb5, 0x48, 0x3f, 0x2d, 0x31, 0xa9, 0x28, 0x33, 130 0x59, 0x3f, 0x39, 0xbf, 0x28, 0x55, 0x3f, 0x39, 0x3f, 0x37, 0x57, 0x1f, 0x64, 0x55, 0x4a, 0x62, 131 0x49, 0xa2, 0x7e, 0x7a, 0x51, 0x41, 0x72, 0x12, 0x1b, 0xd8, 0x52, 0x63, 0x40, 0x00, 0x00, 0x00, 132 0xff, 0xff, 0xd3, 0x15, 0xec, 0x45, 0x82, 0x00, 0x00, 0x00, 133 }