github.com/aergoio/aergo@v1.3.1/types/pmap.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: pmap.proto 3 4 package types 5 6 import proto "github.com/golang/protobuf/proto" 7 import fmt "fmt" 8 import math "math" 9 10 // Reference imports to suppress errors if they are not otherwise used. 11 var _ = proto.Marshal 12 var _ = fmt.Errorf 13 var _ = math.Inf 14 15 // This is a compile-time assertion to ensure that this generated file 16 // is compatible with the proto package it is being compiled against. 17 // A compilation error at this line likely means your copy of the 18 // proto package needs to be updated. 19 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 20 21 // query to polaris 22 type MapQuery struct { 23 Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` 24 AddMe bool `protobuf:"varint,2,opt,name=addMe,proto3" json:"addMe,omitempty"` 25 Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` 26 Excludes [][]byte `protobuf:"bytes,4,rep,name=excludes,proto3" json:"excludes,omitempty"` 27 XXX_NoUnkeyedLiteral struct{} `json:"-"` 28 XXX_unrecognized []byte `json:"-"` 29 XXX_sizecache int32 `json:"-"` 30 } 31 32 func (m *MapQuery) Reset() { *m = MapQuery{} } 33 func (m *MapQuery) String() string { return proto.CompactTextString(m) } 34 func (*MapQuery) ProtoMessage() {} 35 func (*MapQuery) Descriptor() ([]byte, []int) { 36 return fileDescriptor_c373235fa8835f5c, []int{0} 37 } 38 func (m *MapQuery) XXX_Unmarshal(b []byte) error { 39 return xxx_messageInfo_MapQuery.Unmarshal(m, b) 40 } 41 func (m *MapQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 42 return xxx_messageInfo_MapQuery.Marshal(b, m, deterministic) 43 } 44 func (m *MapQuery) XXX_Merge(src proto.Message) { 45 xxx_messageInfo_MapQuery.Merge(m, src) 46 } 47 func (m *MapQuery) XXX_Size() int { 48 return xxx_messageInfo_MapQuery.Size(m) 49 } 50 func (m *MapQuery) XXX_DiscardUnknown() { 51 xxx_messageInfo_MapQuery.DiscardUnknown(m) 52 } 53 54 var xxx_messageInfo_MapQuery proto.InternalMessageInfo 55 56 func (m *MapQuery) GetStatus() *Status { 57 if m != nil { 58 return m.Status 59 } 60 return nil 61 } 62 63 func (m *MapQuery) GetAddMe() bool { 64 if m != nil { 65 return m.AddMe 66 } 67 return false 68 } 69 70 func (m *MapQuery) GetSize() int32 { 71 if m != nil { 72 return m.Size 73 } 74 return 0 75 } 76 77 func (m *MapQuery) GetExcludes() [][]byte { 78 if m != nil { 79 return m.Excludes 80 } 81 return nil 82 } 83 84 type MapResponse struct { 85 Status ResultStatus `protobuf:"varint,1,opt,name=status,proto3,enum=types.ResultStatus" json:"status,omitempty"` 86 Addresses []*PeerAddress `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"` 87 Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` 88 XXX_NoUnkeyedLiteral struct{} `json:"-"` 89 XXX_unrecognized []byte `json:"-"` 90 XXX_sizecache int32 `json:"-"` 91 } 92 93 func (m *MapResponse) Reset() { *m = MapResponse{} } 94 func (m *MapResponse) String() string { return proto.CompactTextString(m) } 95 func (*MapResponse) ProtoMessage() {} 96 func (*MapResponse) Descriptor() ([]byte, []int) { 97 return fileDescriptor_c373235fa8835f5c, []int{1} 98 } 99 func (m *MapResponse) XXX_Unmarshal(b []byte) error { 100 return xxx_messageInfo_MapResponse.Unmarshal(m, b) 101 } 102 func (m *MapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 103 return xxx_messageInfo_MapResponse.Marshal(b, m, deterministic) 104 } 105 func (m *MapResponse) XXX_Merge(src proto.Message) { 106 xxx_messageInfo_MapResponse.Merge(m, src) 107 } 108 func (m *MapResponse) XXX_Size() int { 109 return xxx_messageInfo_MapResponse.Size(m) 110 } 111 func (m *MapResponse) XXX_DiscardUnknown() { 112 xxx_messageInfo_MapResponse.DiscardUnknown(m) 113 } 114 115 var xxx_messageInfo_MapResponse proto.InternalMessageInfo 116 117 func (m *MapResponse) GetStatus() ResultStatus { 118 if m != nil { 119 return m.Status 120 } 121 return ResultStatus_OK 122 } 123 124 func (m *MapResponse) GetAddresses() []*PeerAddress { 125 if m != nil { 126 return m.Addresses 127 } 128 return nil 129 } 130 131 func (m *MapResponse) GetMessage() string { 132 if m != nil { 133 return m.Message 134 } 135 return "" 136 } 137 138 func init() { 139 proto.RegisterType((*MapQuery)(nil), "types.MapQuery") 140 proto.RegisterType((*MapResponse)(nil), "types.MapResponse") 141 } 142 143 func init() { proto.RegisterFile("pmap.proto", fileDescriptor_c373235fa8835f5c) } 144 145 var fileDescriptor_c373235fa8835f5c = []byte{ 146 // 228 bytes of a gzipped FileDescriptorProto 147 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0x51, 0x4a, 0xc4, 0x40, 148 0x10, 0x44, 0x99, 0xcd, 0x66, 0x4d, 0x3a, 0xea, 0x47, 0xeb, 0xc7, 0x90, 0xaf, 0x61, 0x41, 0x18, 149 0x10, 0x82, 0xc4, 0x13, 0x78, 0x80, 0x80, 0xb6, 0x27, 0x18, 0x9d, 0x46, 0x84, 0xdd, 0x4d, 0x93, 150 0x9e, 0xa0, 0xeb, 0x01, 0x3c, 0xb7, 0x90, 0x44, 0x45, 0xff, 0xa6, 0xea, 0xd5, 0x50, 0x45, 0x03, 151 0xc8, 0x3e, 0x48, 0x23, 0x43, 0x9f, 0x7a, 0xcc, 0xd3, 0x51, 0x58, 0x6b, 0x38, 0xf4, 0x91, 0x67, 152 0xab, 0x2e, 0xa5, 0x5d, 0xe8, 0xf6, 0x0d, 0x8a, 0x2e, 0xc8, 0xc3, 0xc8, 0xc3, 0x11, 0xaf, 0x60, 153 0xa3, 0x29, 0xa4, 0x51, 0xad, 0x71, 0xc6, 0x57, 0xed, 0x59, 0x33, 0x7d, 0x6d, 0x1e, 0x27, 0x93, 154 0x16, 0x88, 0x97, 0x90, 0x87, 0x18, 0x3b, 0xb6, 0x2b, 0x67, 0x7c, 0x41, 0xb3, 0x40, 0x84, 0xb5, 155 0xbe, 0x7e, 0xb0, 0xcd, 0x9c, 0xf1, 0x39, 0x4d, 0x6f, 0xac, 0xa1, 0xe0, 0xf7, 0xe7, 0xdd, 0x18, 156 0x59, 0xed, 0xda, 0x65, 0xfe, 0x94, 0x7e, 0xf4, 0xf6, 0xd3, 0x40, 0xd5, 0x05, 0x21, 0x56, 0xe9, 157 0x0f, 0xca, 0x78, 0xfd, 0xa7, 0xfc, 0xbc, 0xbd, 0x58, 0xca, 0x89, 0x75, 0xdc, 0xa5, 0x7f, 0x13, 158 0x6e, 0xa0, 0x0c, 0x31, 0x0e, 0xac, 0xca, 0x6a, 0x57, 0x2e, 0xf3, 0x55, 0x8b, 0x4b, 0xfe, 0x9e, 159 0x79, 0xb8, 0x9b, 0x19, 0xfd, 0x86, 0xd0, 0xc2, 0xc9, 0x9e, 0x55, 0xc3, 0xcb, 0xbc, 0xb0, 0xa4, 160 0x6f, 0xf9, 0xb4, 0x99, 0x0e, 0x71, 0xfb, 0x15, 0x00, 0x00, 0xff, 0xff, 0x62, 0x00, 0xba, 0x72, 161 0x34, 0x01, 0x00, 0x00, 162 }