// 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"` Sign string `protobuf:"bytes,6,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) 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{ // 244 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x8f, 0x31, 0x4f, 0xc3, 0x30, 0x10, 0x85, 0xe5, 0xb4, 0x04, 0x72, 0xa6, 0x0c, 0x37, 0x20, 0x0b, 0x31, 0x44, 0x11, 0x43, 0xa6, 0x0c, 0x61, 0x65, 0x84, 0x81, 0x01, 0x09, 0x79, 0x60, 0x0f, 0xc9, 0x11, 0x2c, 0x35, 0xb6, 0xe9, 0x99, 0x9f, 0xc4, 0xff, 0x44, 0x5c, 0x83, 0xda, 0xfe, 0x80, 0x76, 0xb2, 0xdf, 0xd3, 0xb3, 0xdf, 0xfb, 0xa0, 0x88, 0x6d, 0x6c, 0xe2, 0x26, 0xa4, 0x80, 0x2b, 0x39, 0xfa, 0xb0, 0xe6, 0x26, 0xb6, 0xb1, 0xfa, 0x51, 0xa0, 0x5f, 0x88, 0xb9, 0x1b, 0xe9, 0xb1, 0x4b, 0x1d, 0xde, 0xc1, 0xaa, 0x5f, 0x3b, 0xf2, 0xe9, 0x8d, 0x36, 0xec, 0x82, 0x37, 0xaa, 0x54, 0x75, 0x61, 0x0f, 0x4d, 0xbc, 0x85, 0x22, 0xb9, 0x89, 0x38, 0x75, 0x53, 0x34, 0x59, 0xa9, 0xea, 0x85, 0xdd, 0x19, 0x78, 0x05, 0x99, 0x1b, 0xcc, 0x42, 0x1e, 0x66, 0x6e, 0xc0, 0x6b, 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