github.com/myafeier/fabric@v1.0.1-0.20170722181825-3a4b1f2bce86/core/comm/testdata/grpc/test.pb.go (about)

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