// Code generated by protoc-gen-go. DO NOT EDIT. // source: p2p.proto /* Package protocols_p2p is a generated protocol buffer package. It is generated from these files: p2p.proto It has these top-level messages: MessageData PingRequest PingResponse EchoRequest EchoResponse */ package protocols_p2p import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // designed to be shared between all app protocols type MessageData struct { // shared between all requests ClientVersion string `protobuf:"bytes,1,opt,name=clientVersion" json:"clientVersion,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` Id string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"` Gossip bool `protobuf:"varint,4,opt,name=gossip" json:"gossip,omitempty"` NodeId string `protobuf:"bytes,5,opt,name=nodeId" json:"nodeId,omitempty"` NodePubKey string `protobuf:"bytes,6,opt,name=nodePubKey" json:"nodePubKey,omitempty"` Sign string `protobuf:"bytes,7,opt,name=sign" json:"sign,omitempty"` } func (m *MessageData) Reset() { *m = MessageData{} } func (m *MessageData) String() string { return proto.CompactTextString(m) } func (*MessageData) ProtoMessage() {} func (*MessageData) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } func (m *MessageData) GetClientVersion() string { if m != nil { return m.ClientVersion } return "" } func (m *MessageData) GetTimestamp() int64 { if m != nil { return m.Timestamp } return 0 } func (m *MessageData) GetId() string { if m != nil { return m.Id } return "" } func (m *MessageData) GetGossip() bool { if m != nil { return m.Gossip } return false } func (m *MessageData) GetNodeId() string { if m != nil { return m.NodeId } return "" } func (m *MessageData) GetNodePubKey() string { if m != nil { return m.NodePubKey } return "" } func (m *MessageData) GetSign() string { if m != nil { return m.Sign } return "" } // a protocol define a set of reuqest and responses type PingRequest struct { MessageData *MessageData `protobuf:"bytes,1,opt,name=messageData" json:"messageData,omitempty"` // method specific data Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` } func (m *PingRequest) Reset() { *m = PingRequest{} } func (m *PingRequest) String() string { return proto.CompactTextString(m) } func (*PingRequest) ProtoMessage() {} func (*PingRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } func (m *PingRequest) GetMessageData() *MessageData { if m != nil { return m.MessageData } return nil } func (m *PingRequest) GetMessage() string { if m != nil { return m.Message } return "" } type PingResponse struct { MessageData *MessageData `protobuf:"bytes,1,opt,name=messageData" json:"messageData,omitempty"` // response specific data Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` } func (m *PingResponse) Reset() { *m = PingResponse{} } func (m *PingResponse) String() string { return proto.CompactTextString(m) } func (*PingResponse) ProtoMessage() {} func (*PingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } func (m *PingResponse) GetMessageData() *MessageData { if m != nil { return m.MessageData } return nil } func (m *PingResponse) GetMessage() string { if m != nil { return m.Message } return "" } // a protocol define a set of reuqest and responses type EchoRequest struct { MessageData *MessageData `protobuf:"bytes,1,opt,name=messageData" json:"messageData,omitempty"` // method specific data Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` } func (m *EchoRequest) Reset() { *m = EchoRequest{} } func (m *EchoRequest) String() string { return proto.CompactTextString(m) } func (*EchoRequest) ProtoMessage() {} func (*EchoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } func (m *EchoRequest) GetMessageData() *MessageData { if m != nil { return m.MessageData } return nil } func (m *EchoRequest) GetMessage() string { if m != nil { return m.Message } return "" } type EchoResponse struct { MessageData *MessageData `protobuf:"bytes,1,opt,name=messageData" json:"messageData,omitempty"` // response specific data Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` } func (m *EchoResponse) Reset() { *m = EchoResponse{} } func (m *EchoResponse) String() string { return proto.CompactTextString(m) } func (*EchoResponse) ProtoMessage() {} func (*EchoResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } func (m *EchoResponse) GetMessageData() *MessageData { if m != nil { return m.MessageData } return nil } func (m *EchoResponse) GetMessage() string { if m != nil { return m.Message } return "" } func init() { proto.RegisterType((*MessageData)(nil), "protocols.p2p.MessageData") proto.RegisterType((*PingRequest)(nil), "protocols.p2p.PingRequest") proto.RegisterType((*PingResponse)(nil), "protocols.p2p.PingResponse") proto.RegisterType((*EchoRequest)(nil), "protocols.p2p.EchoRequest") proto.RegisterType((*EchoResponse)(nil), "protocols.p2p.EchoResponse") } func init() { proto.RegisterFile("p2p.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ // 261 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x8f, 0x31, 0x4f, 0xfb, 0x30, 0x10, 0xc5, 0xe5, 0xb4, 0xff, 0xf4, 0x9f, 0x33, 0x65, 0xb8, 0x01, 0x59, 0x08, 0xa1, 0x28, 0x62, 0xc8, 0x94, 0x21, 0xac, 0x8c, 0x30, 0x20, 0x84, 0x54, 0x79, 0x60, 0x4f, 0x93, 0x23, 0x58, 0x6a, 0x6c, 0xd3, 0x73, 0x07, 0x3e, 0x20, 0xdf, 0x0b, 0xd5, 0x0d, 0x6a, 0xfa, 0x01, 0xca, 0xe4, 0x7b, 0xef, 0x9e, 0xef, 0xe9, 0x07, 0x99, 0xaf, 0x7d, 0xe5, 0xb7, 0x2e, 0x38, 0x5c, 0xc6, 0xa7, 0x75, 0x1b, 0xae, 0x7c, 0xed, 0x8b, 0x6f, 0x01, 0xf2, 0x95, 0x98, 0x9b, 0x9e, 0x1e, 0x9b, 0xd0, 0xe0, 0x1d, 0x2c, 0xdb, 0x8d, 0x21, 0x1b, 0xde, 0x68, 0xcb, 0xc6, 0x59, 0x25, 0x72, 0x51, 0x66, 0xfa, 0xd4, 0xc4, 0x1b, 0xc8, 0x82, 0x19, 0x88, 0x43,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