github.com/adnan-c/fabric_e2e_couchdb@v0.6.1-preview.0.20170228180935-21ce6b23cf91/protos/peer/peer.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: peer/peer.proto 3 // DO NOT EDIT! 4 5 package peer 6 7 import proto "github.com/golang/protobuf/proto" 8 import fmt "fmt" 9 import math "math" 10 11 import ( 12 context "golang.org/x/net/context" 13 grpc "google.golang.org/grpc" 14 ) 15 16 // Reference imports to suppress errors if they are not otherwise used. 17 var _ = proto.Marshal 18 var _ = fmt.Errorf 19 var _ = math.Inf 20 21 type PeerID struct { 22 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` 23 } 24 25 func (m *PeerID) Reset() { *m = PeerID{} } 26 func (m *PeerID) String() string { return proto.CompactTextString(m) } 27 func (*PeerID) ProtoMessage() {} 28 func (*PeerID) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{0} } 29 30 type PeerEndpoint struct { 31 Id *PeerID `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` 32 Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"` 33 } 34 35 func (m *PeerEndpoint) Reset() { *m = PeerEndpoint{} } 36 func (m *PeerEndpoint) String() string { return proto.CompactTextString(m) } 37 func (*PeerEndpoint) ProtoMessage() {} 38 func (*PeerEndpoint) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{1} } 39 40 func (m *PeerEndpoint) GetId() *PeerID { 41 if m != nil { 42 return m.Id 43 } 44 return nil 45 } 46 47 func init() { 48 proto.RegisterType((*PeerID)(nil), "protos.PeerID") 49 proto.RegisterType((*PeerEndpoint)(nil), "protos.PeerEndpoint") 50 } 51 52 // Reference imports to suppress errors if they are not otherwise used. 53 var _ context.Context 54 var _ grpc.ClientConn 55 56 // This is a compile-time assertion to ensure that this generated file 57 // is compatible with the grpc package it is being compiled against. 58 const _ = grpc.SupportPackageIsVersion3 59 60 // Client API for Endorser service 61 62 type EndorserClient interface { 63 ProcessProposal(ctx context.Context, in *SignedProposal, opts ...grpc.CallOption) (*ProposalResponse, error) 64 } 65 66 type endorserClient struct { 67 cc *grpc.ClientConn 68 } 69 70 func NewEndorserClient(cc *grpc.ClientConn) EndorserClient { 71 return &endorserClient{cc} 72 } 73 74 func (c *endorserClient) ProcessProposal(ctx context.Context, in *SignedProposal, opts ...grpc.CallOption) (*ProposalResponse, error) { 75 out := new(ProposalResponse) 76 err := grpc.Invoke(ctx, "/protos.Endorser/ProcessProposal", in, out, c.cc, opts...) 77 if err != nil { 78 return nil, err 79 } 80 return out, nil 81 } 82 83 // Server API for Endorser service 84 85 type EndorserServer interface { 86 ProcessProposal(context.Context, *SignedProposal) (*ProposalResponse, error) 87 } 88 89 func RegisterEndorserServer(s *grpc.Server, srv EndorserServer) { 90 s.RegisterService(&_Endorser_serviceDesc, srv) 91 } 92 93 func _Endorser_ProcessProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 94 in := new(SignedProposal) 95 if err := dec(in); err != nil { 96 return nil, err 97 } 98 if interceptor == nil { 99 return srv.(EndorserServer).ProcessProposal(ctx, in) 100 } 101 info := &grpc.UnaryServerInfo{ 102 Server: srv, 103 FullMethod: "/protos.Endorser/ProcessProposal", 104 } 105 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 106 return srv.(EndorserServer).ProcessProposal(ctx, req.(*SignedProposal)) 107 } 108 return interceptor(ctx, in, info, handler) 109 } 110 111 var _Endorser_serviceDesc = grpc.ServiceDesc{ 112 ServiceName: "protos.Endorser", 113 HandlerType: (*EndorserServer)(nil), 114 Methods: []grpc.MethodDesc{ 115 { 116 MethodName: "ProcessProposal", 117 Handler: _Endorser_ProcessProposal_Handler, 118 }, 119 }, 120 Streams: []grpc.StreamDesc{}, 121 Metadata: fileDescriptor6, 122 } 123 124 func init() { proto.RegisterFile("peer/peer.proto", fileDescriptor6) } 125 126 var fileDescriptor6 = []byte{ 127 // 234 bytes of a gzipped FileDescriptorProto 128 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x54, 0x90, 0x4f, 0x4b, 0xc3, 0x40, 129 0x10, 0xc5, 0x6d, 0x90, 0xaa, 0xa3, 0x58, 0x58, 0x41, 0x42, 0x28, 0x22, 0x39, 0x29, 0x42, 0x02, 130 0xf5, 0x1b, 0x88, 0x01, 0xbd, 0xc5, 0x78, 0xf3, 0x22, 0x49, 0x66, 0x4c, 0x17, 0xda, 0x9d, 0x65, 131 0x26, 0x1e, 0xfc, 0xf6, 0xd2, 0xdd, 0x44, 0xf0, 0xb2, 0x7f, 0xde, 0x6f, 0xe7, 0xed, 0xe3, 0xc1, 132 0xca, 0x13, 0x49, 0x79, 0x58, 0x0a, 0x2f, 0x3c, 0xb2, 0x59, 0x86, 0x4d, 0xb3, 0xab, 0x08, 0x84, 133 0x3d, 0x6b, 0xbb, 0x8b, 0x30, 0x5b, 0xff, 0x13, 0x3f, 0x85, 0xd4, 0xb3, 0x53, 0x8a, 0x34, 0x5f, 134 0xc3, 0xb2, 0x26, 0x92, 0xd7, 0x67, 0x63, 0xe0, 0xd8, 0xb5, 0x7b, 0x4a, 0x17, 0xb7, 0x8b, 0xbb, 135 0xb3, 0x26, 0x9c, 0xf3, 0x17, 0xb8, 0x38, 0xd0, 0xca, 0xa1, 0x67, 0xeb, 0x46, 0x73, 0x03, 0x89, 136 0xc5, 0xf0, 0xe2, 0x7c, 0x73, 0x19, 0x1d, 0xb4, 0x88, 0xf3, 0x4d, 0x62, 0xd1, 0xa4, 0x70, 0xd2, 137 0x22, 0x0a, 0xa9, 0xa6, 0x49, 0xb0, 0x99, 0xaf, 0x9b, 0x37, 0x38, 0xad, 0x1c, 0xb2, 0x28, 0x89, 138 0xa9, 0x60, 0x55, 0x0b, 0xf7, 0xa4, 0x5a, 0x4f, 0xa9, 0xcc, 0xf5, 0x6c, 0xf6, 0x6e, 0x07, 0x47, 139 0x38, 0xeb, 0x59, 0xfa, 0xf7, 0xc9, 0xa4, 0x34, 0x53, 0xfc, 0xfc, 0xe8, 0xe9, 0xe1, 0xe3, 0x7e, 140 0xb0, 0xe3, 0xf6, 0xbb, 0x2b, 0x7a, 0xde, 0x97, 0xdb, 0x1f, 0x4f, 0xb2, 0x23, 0x1c, 0x48, 0xca, 141 0xaf, 0xb6, 0x13, 0xdb, 0x97, 0x71, 0x34, 0x14, 0xd5, 0xc5, 0x8a, 0x1e, 0x7f, 0x03, 0x00, 0x00, 142 0xff, 0xff, 0x38, 0x9b, 0xb5, 0xcd, 0x3c, 0x01, 0x00, 0x00, 143 }