126 lines
3.9 KiB
Go
126 lines
3.9 KiB
Go
// Code generated by protoc-gen-gogo.
|
|
// source: rpc.proto
|
|
// DO NOT EDIT!
|
|
|
|
/*
|
|
Package floodsub_pb is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
rpc.proto
|
|
|
|
It has these top-level messages:
|
|
RPC
|
|
Message
|
|
*/
|
|
package floodsub_pb
|
|
|
|
import proto "github.com/gogo/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.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type RPC struct {
|
|
Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
|
|
Topics []string `protobuf:"bytes,2,rep,name=topics" json:"topics,omitempty"`
|
|
Msg *Message `protobuf:"bytes,3,opt,name=msg" json:"msg,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *RPC) Reset() { *m = RPC{} }
|
|
func (m *RPC) String() string { return proto.CompactTextString(m) }
|
|
func (*RPC) ProtoMessage() {}
|
|
func (*RPC) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{0} }
|
|
|
|
func (m *RPC) GetType() string {
|
|
if m != nil && m.Type != nil {
|
|
return *m.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RPC) GetTopics() []string {
|
|
if m != nil {
|
|
return m.Topics
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RPC) GetMsg() *Message {
|
|
if m != nil {
|
|
return m.Msg
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Message struct {
|
|
From *string `protobuf:"bytes,1,opt,name=from" json:"from,omitempty"`
|
|
Data []byte `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"`
|
|
Seqno *uint64 `protobuf:"varint,3,opt,name=seqno" json:"seqno,omitempty"`
|
|
Topic *string `protobuf:"bytes,4,opt,name=topic" json:"topic,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *Message) Reset() { *m = Message{} }
|
|
func (m *Message) String() string { return proto.CompactTextString(m) }
|
|
func (*Message) ProtoMessage() {}
|
|
func (*Message) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{1} }
|
|
|
|
func (m *Message) GetFrom() string {
|
|
if m != nil && m.From != nil {
|
|
return *m.From
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Message) GetData() []byte {
|
|
if m != nil {
|
|
return m.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Message) GetSeqno() uint64 {
|
|
if m != nil && m.Seqno != nil {
|
|
return *m.Seqno
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Message) GetTopic() string {
|
|
if m != nil && m.Topic != nil {
|
|
return *m.Topic
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*RPC)(nil), "floodsub.pb.RPC")
|
|
proto.RegisterType((*Message)(nil), "floodsub.pb.Message")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("rpc.proto", fileDescriptorRpc) }
|
|
|
|
var fileDescriptorRpc = []byte{
|
|
// 158 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x2c, 0x2a, 0x48, 0xd6,
|
|
0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x4e, 0xcb, 0xc9, 0xcf, 0x4f, 0x29, 0x2e, 0x4d, 0xd2,
|
|
0x2b, 0x48, 0x52, 0x72, 0xe3, 0x62, 0x0e, 0x0a, 0x70, 0x16, 0xe2, 0xe1, 0x62, 0x29, 0xa9, 0x2c,
|
|
0x48, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x14, 0xe2, 0xe3, 0x62, 0x2b, 0xc9, 0x2f, 0xc8, 0x4c,
|
|
0x2e, 0x96, 0x60, 0x52, 0x60, 0xd6, 0xe0, 0x14, 0x52, 0xe4, 0x62, 0xce, 0x2d, 0x4e, 0x97, 0x60,
|
|
0x56, 0x60, 0xd4, 0xe0, 0x36, 0x12, 0xd1, 0x43, 0xd2, 0xaf, 0xe7, 0x9b, 0x5a, 0x5c, 0x9c, 0x98,
|
|
0x9e, 0xaa, 0xe4, 0xcc, 0xc5, 0x0e, 0x65, 0x82, 0xcc, 0x4a, 0x2b, 0xca, 0xcf, 0x85, 0x9a, 0xc5,
|
|
0xc3, 0xc5, 0x92, 0x92, 0x58, 0x92, 0x28, 0xc1, 0xa4, 0xc0, 0xa8, 0xc1, 0x23, 0xc4, 0xcb, 0xc5,
|
|
0x5a, 0x9c, 0x5a, 0x98, 0x97, 0x0f, 0x36, 0x8b, 0x05, 0xc4, 0x05, 0x5b, 0x24, 0xc1, 0x02, 0x52,
|
|
0x0b, 0x08, 0x00, 0x00, 0xff, 0xff, 0x08, 0xfe, 0xc0, 0xc1, 0xa5, 0x00, 0x00, 0x00,
|
|
}
|