github.com/inklabsfoundation/inkchain@v0.17.1-0.20181025012015-c3cef8062f19/protos/peer/peer.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: peer/peer.proto 3 4 package peer 5 6 import proto "github.com/golang/protobuf/proto" 7 import fmt "fmt" 8 import math "math" 9 10 import ( 11 context "golang.org/x/net/context" 12 grpc "google.golang.org/grpc" 13 ) 14 15 // Reference imports to suppress errors if they are not otherwise used. 16 var _ = proto.Marshal 17 var _ = fmt.Errorf 18 var _ = math.Inf 19 20 type PeerID struct { 21 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` 22 } 23 24 func (m *PeerID) Reset() { *m = PeerID{} } 25 func (m *PeerID) String() string { return proto.CompactTextString(m) } 26 func (*PeerID) ProtoMessage() {} 27 func (*PeerID) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{0} } 28 29 func (m *PeerID) GetName() string { 30 if m != nil { 31 return m.Name 32 } 33 return "" 34 } 35 36 type PeerEndpoint struct { 37 Id *PeerID `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` 38 Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"` 39 } 40 41 func (m *PeerEndpoint) Reset() { *m = PeerEndpoint{} } 42 func (m *PeerEndpoint) String() string { return proto.CompactTextString(m) } 43 func (*PeerEndpoint) ProtoMessage() {} 44 func (*PeerEndpoint) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{1} } 45 46 func (m *PeerEndpoint) GetId() *PeerID { 47 if m != nil { 48 return m.Id 49 } 50 return nil 51 } 52 53 func (m *PeerEndpoint) GetAddress() string { 54 if m != nil { 55 return m.Address 56 } 57 return "" 58 } 59 60 func init() { 61 proto.RegisterType((*PeerID)(nil), "protos.PeerID") 62 proto.RegisterType((*PeerEndpoint)(nil), "protos.PeerEndpoint") 63 } 64 65 // Reference imports to suppress errors if they are not otherwise used. 66 var _ context.Context 67 var _ grpc.ClientConn 68 69 // This is a compile-time assertion to ensure that this generated file 70 // is compatible with the grpc package it is being compiled against. 71 const _ = grpc.SupportPackageIsVersion4 72 73 // Client API for Endorser service 74 75 type EndorserClient interface { 76 ProcessProposal(ctx context.Context, in *SignedProposal, opts ...grpc.CallOption) (*ProposalResponse, error) 77 } 78 79 type endorserClient struct { 80 cc *grpc.ClientConn 81 } 82 83 func NewEndorserClient(cc *grpc.ClientConn) EndorserClient { 84 return &endorserClient{cc} 85 } 86 87 func (c *endorserClient) ProcessProposal(ctx context.Context, in *SignedProposal, opts ...grpc.CallOption) (*ProposalResponse, error) { 88 out := new(ProposalResponse) 89 err := grpc.Invoke(ctx, "/protos.Endorser/ProcessProposal", in, out, c.cc, opts...) 90 if err != nil { 91 return nil, err 92 } 93 return out, nil 94 } 95 96 // Server API for Endorser service 97 98 type EndorserServer interface { 99 ProcessProposal(context.Context, *SignedProposal) (*ProposalResponse, error) 100 } 101 102 func RegisterEndorserServer(s *grpc.Server, srv EndorserServer) { 103 s.RegisterService(&_Endorser_serviceDesc, srv) 104 } 105 106 func _Endorser_ProcessProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 107 in := new(SignedProposal) 108 if err := dec(in); err != nil { 109 return nil, err 110 } 111 if interceptor == nil { 112 return srv.(EndorserServer).ProcessProposal(ctx, in) 113 } 114 info := &grpc.UnaryServerInfo{ 115 Server: srv, 116 FullMethod: "/protos.Endorser/ProcessProposal", 117 } 118 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 119 return srv.(EndorserServer).ProcessProposal(ctx, req.(*SignedProposal)) 120 } 121 return interceptor(ctx, in, info, handler) 122 } 123 124 var _Endorser_serviceDesc = grpc.ServiceDesc{ 125 ServiceName: "protos.Endorser", 126 HandlerType: (*EndorserServer)(nil), 127 Methods: []grpc.MethodDesc{ 128 { 129 MethodName: "ProcessProposal", 130 Handler: _Endorser_ProcessProposal_Handler, 131 }, 132 }, 133 Streams: []grpc.StreamDesc{}, 134 Metadata: "peer/peer.proto", 135 } 136 137 func init() { proto.RegisterFile("peer/peer.proto", fileDescriptor6) } 138 139 var fileDescriptor6 = []byte{ 140 // 252 bytes of a gzipped FileDescriptorProto 141 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0xcf, 0x4b, 0xfc, 0x30, 142 0x10, 0xc5, 0xbf, 0x5b, 0xbe, 0xac, 0x1a, 0xc5, 0x85, 0x08, 0x52, 0xca, 0x22, 0xd2, 0x93, 0x78, 143 0x68, 0x71, 0xfd, 0x0f, 0xc4, 0x82, 0xde, 0x6a, 0xbd, 0x79, 0x59, 0xd2, 0x66, 0xec, 0x06, 0x77, 144 0x67, 0xca, 0x4c, 0xf7, 0xff, 0x97, 0x26, 0x8d, 0x20, 0x5e, 0xf2, 0xe3, 0xbd, 0x7c, 0x5e, 0x86, 145 0xa7, 0x56, 0x03, 0x00, 0x97, 0xd3, 0x52, 0x0c, 0x4c, 0x23, 0xe9, 0xa5, 0xdf, 0x24, 0xbb, 0x0a, 146 0x06, 0xd3, 0x40, 0x62, 0xf6, 0xc1, 0xcc, 0xd6, 0xbf, 0xc4, 0x2d, 0x83, 0x0c, 0x84, 0x02, 0xc1, 147 0xcd, 0xd7, 0x6a, 0x59, 0x03, 0xf0, 0xeb, 0xb3, 0xd6, 0xea, 0x3f, 0x9a, 0x03, 0xa4, 0x8b, 0xdb, 148 0xc5, 0xdd, 0x59, 0xe3, 0xcf, 0xf9, 0x8b, 0xba, 0x98, 0xdc, 0x0a, 0xed, 0x40, 0x0e, 0x47, 0x7d, 149 0xa3, 0x12, 0x67, 0xfd, 0x8b, 0xf3, 0xcd, 0x65, 0x48, 0x90, 0x22, 0xf0, 0x4d, 0xe2, 0xac, 0x4e, 150 0xd5, 0x89, 0xb1, 0x96, 0x41, 0x24, 0x4d, 0x7c, 0x4c, 0xbc, 0x6e, 0xde, 0xd4, 0x69, 0x85, 0x96, 151 0x58, 0x80, 0x75, 0xa5, 0x56, 0x35, 0x53, 0x07, 0x22, 0xf5, 0x3c, 0x95, 0xbe, 0x8e, 0x61, 0xef, 152 0xae, 0x47, 0xb0, 0x51, 0xcf, 0xd2, 0x9f, 0x4f, 0x66, 0xa5, 0x99, 0xc7, 0xcf, 0xff, 0x3d, 0x6d, 153 0xd5, 0x3d, 0x71, 0x5f, 0x38, 0xfc, 0xda, 0x9b, 0x56, 0x3e, 0xe9, 0x88, 0xd6, 0x8c, 0x8e, 0x70, 154 0x52, 0xba, 0x9d, 0x71, 0x18, 0xd9, 0xa9, 0x80, 0x8f, 0x87, 0xde, 0x8d, 0xbb, 0x63, 0x5b, 0x74, 155 0x74, 0x28, 0xff, 0x20, 0x65, 0x44, 0xca, 0x80, 0xf8, 0x72, 0xdb, 0x50, 0xeb, 0xe3, 0x77, 0x00, 156 0x00, 0x00, 0xff, 0xff, 0xc6, 0xec, 0xc5, 0x4d, 0x70, 0x01, 0x00, 0x00, 157 }