github.com/MetalBlockchain/metalgo@v1.11.9/proto/pb/sdk/sdk.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.33.0 4 // protoc (unknown) 5 // source: sdk/sdk.proto 6 7 package sdk 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type PullGossipRequest struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 Salt []byte `protobuf:"bytes,2,opt,name=salt,proto3" json:"salt,omitempty"` 29 Filter []byte `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` 30 } 31 32 func (x *PullGossipRequest) Reset() { 33 *x = PullGossipRequest{} 34 if protoimpl.UnsafeEnabled { 35 mi := &file_sdk_sdk_proto_msgTypes[0] 36 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 37 ms.StoreMessageInfo(mi) 38 } 39 } 40 41 func (x *PullGossipRequest) String() string { 42 return protoimpl.X.MessageStringOf(x) 43 } 44 45 func (*PullGossipRequest) ProtoMessage() {} 46 47 func (x *PullGossipRequest) ProtoReflect() protoreflect.Message { 48 mi := &file_sdk_sdk_proto_msgTypes[0] 49 if protoimpl.UnsafeEnabled && x != nil { 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 if ms.LoadMessageInfo() == nil { 52 ms.StoreMessageInfo(mi) 53 } 54 return ms 55 } 56 return mi.MessageOf(x) 57 } 58 59 // Deprecated: Use PullGossipRequest.ProtoReflect.Descriptor instead. 60 func (*PullGossipRequest) Descriptor() ([]byte, []int) { 61 return file_sdk_sdk_proto_rawDescGZIP(), []int{0} 62 } 63 64 func (x *PullGossipRequest) GetSalt() []byte { 65 if x != nil { 66 return x.Salt 67 } 68 return nil 69 } 70 71 func (x *PullGossipRequest) GetFilter() []byte { 72 if x != nil { 73 return x.Filter 74 } 75 return nil 76 } 77 78 type PullGossipResponse struct { 79 state protoimpl.MessageState 80 sizeCache protoimpl.SizeCache 81 unknownFields protoimpl.UnknownFields 82 83 Gossip [][]byte `protobuf:"bytes,1,rep,name=gossip,proto3" json:"gossip,omitempty"` 84 } 85 86 func (x *PullGossipResponse) Reset() { 87 *x = PullGossipResponse{} 88 if protoimpl.UnsafeEnabled { 89 mi := &file_sdk_sdk_proto_msgTypes[1] 90 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 91 ms.StoreMessageInfo(mi) 92 } 93 } 94 95 func (x *PullGossipResponse) String() string { 96 return protoimpl.X.MessageStringOf(x) 97 } 98 99 func (*PullGossipResponse) ProtoMessage() {} 100 101 func (x *PullGossipResponse) ProtoReflect() protoreflect.Message { 102 mi := &file_sdk_sdk_proto_msgTypes[1] 103 if protoimpl.UnsafeEnabled && x != nil { 104 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 105 if ms.LoadMessageInfo() == nil { 106 ms.StoreMessageInfo(mi) 107 } 108 return ms 109 } 110 return mi.MessageOf(x) 111 } 112 113 // Deprecated: Use PullGossipResponse.ProtoReflect.Descriptor instead. 114 func (*PullGossipResponse) Descriptor() ([]byte, []int) { 115 return file_sdk_sdk_proto_rawDescGZIP(), []int{1} 116 } 117 118 func (x *PullGossipResponse) GetGossip() [][]byte { 119 if x != nil { 120 return x.Gossip 121 } 122 return nil 123 } 124 125 type PushGossip struct { 126 state protoimpl.MessageState 127 sizeCache protoimpl.SizeCache 128 unknownFields protoimpl.UnknownFields 129 130 Gossip [][]byte `protobuf:"bytes,1,rep,name=gossip,proto3" json:"gossip,omitempty"` 131 } 132 133 func (x *PushGossip) Reset() { 134 *x = PushGossip{} 135 if protoimpl.UnsafeEnabled { 136 mi := &file_sdk_sdk_proto_msgTypes[2] 137 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 138 ms.StoreMessageInfo(mi) 139 } 140 } 141 142 func (x *PushGossip) String() string { 143 return protoimpl.X.MessageStringOf(x) 144 } 145 146 func (*PushGossip) ProtoMessage() {} 147 148 func (x *PushGossip) ProtoReflect() protoreflect.Message { 149 mi := &file_sdk_sdk_proto_msgTypes[2] 150 if protoimpl.UnsafeEnabled && x != nil { 151 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 152 if ms.LoadMessageInfo() == nil { 153 ms.StoreMessageInfo(mi) 154 } 155 return ms 156 } 157 return mi.MessageOf(x) 158 } 159 160 // Deprecated: Use PushGossip.ProtoReflect.Descriptor instead. 161 func (*PushGossip) Descriptor() ([]byte, []int) { 162 return file_sdk_sdk_proto_rawDescGZIP(), []int{2} 163 } 164 165 func (x *PushGossip) GetGossip() [][]byte { 166 if x != nil { 167 return x.Gossip 168 } 169 return nil 170 } 171 172 var File_sdk_sdk_proto protoreflect.FileDescriptor 173 174 var file_sdk_sdk_proto_rawDesc = []byte{ 175 0x0a, 0x0d, 0x73, 0x64, 0x6b, 0x2f, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 176 0x03, 0x73, 0x64, 0x6b, 0x22, 0x3f, 0x0a, 0x11, 0x50, 0x75, 0x6c, 0x6c, 0x47, 0x6f, 0x73, 0x73, 177 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x61, 0x6c, 178 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x12, 0x16, 0x0a, 179 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x66, 180 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x2c, 0x0a, 0x12, 0x50, 0x75, 0x6c, 0x6c, 0x47, 0x6f, 0x73, 181 0x73, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x67, 182 0x6f, 0x73, 0x73, 0x69, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x67, 0x6f, 0x73, 183 0x73, 0x69, 0x70, 0x22, 0x24, 0x0a, 0x0a, 0x50, 0x75, 0x73, 0x68, 0x47, 0x6f, 0x73, 0x73, 0x69, 184 0x70, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 185 0x0c, 0x52, 0x06, 0x67, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x69, 0x74, 186 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 187 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 188 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x2f, 0x73, 0x64, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 189 0x33, 190 } 191 192 var ( 193 file_sdk_sdk_proto_rawDescOnce sync.Once 194 file_sdk_sdk_proto_rawDescData = file_sdk_sdk_proto_rawDesc 195 ) 196 197 func file_sdk_sdk_proto_rawDescGZIP() []byte { 198 file_sdk_sdk_proto_rawDescOnce.Do(func() { 199 file_sdk_sdk_proto_rawDescData = protoimpl.X.CompressGZIP(file_sdk_sdk_proto_rawDescData) 200 }) 201 return file_sdk_sdk_proto_rawDescData 202 } 203 204 var file_sdk_sdk_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 205 var file_sdk_sdk_proto_goTypes = []interface{}{ 206 (*PullGossipRequest)(nil), // 0: sdk.PullGossipRequest 207 (*PullGossipResponse)(nil), // 1: sdk.PullGossipResponse 208 (*PushGossip)(nil), // 2: sdk.PushGossip 209 } 210 var file_sdk_sdk_proto_depIdxs = []int32{ 211 0, // [0:0] is the sub-list for method output_type 212 0, // [0:0] is the sub-list for method input_type 213 0, // [0:0] is the sub-list for extension type_name 214 0, // [0:0] is the sub-list for extension extendee 215 0, // [0:0] is the sub-list for field type_name 216 } 217 218 func init() { file_sdk_sdk_proto_init() } 219 func file_sdk_sdk_proto_init() { 220 if File_sdk_sdk_proto != nil { 221 return 222 } 223 if !protoimpl.UnsafeEnabled { 224 file_sdk_sdk_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 225 switch v := v.(*PullGossipRequest); i { 226 case 0: 227 return &v.state 228 case 1: 229 return &v.sizeCache 230 case 2: 231 return &v.unknownFields 232 default: 233 return nil 234 } 235 } 236 file_sdk_sdk_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 237 switch v := v.(*PullGossipResponse); i { 238 case 0: 239 return &v.state 240 case 1: 241 return &v.sizeCache 242 case 2: 243 return &v.unknownFields 244 default: 245 return nil 246 } 247 } 248 file_sdk_sdk_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 249 switch v := v.(*PushGossip); i { 250 case 0: 251 return &v.state 252 case 1: 253 return &v.sizeCache 254 case 2: 255 return &v.unknownFields 256 default: 257 return nil 258 } 259 } 260 } 261 type x struct{} 262 out := protoimpl.TypeBuilder{ 263 File: protoimpl.DescBuilder{ 264 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 265 RawDescriptor: file_sdk_sdk_proto_rawDesc, 266 NumEnums: 0, 267 NumMessages: 3, 268 NumExtensions: 0, 269 NumServices: 0, 270 }, 271 GoTypes: file_sdk_sdk_proto_goTypes, 272 DependencyIndexes: file_sdk_sdk_proto_depIdxs, 273 MessageInfos: file_sdk_sdk_proto_msgTypes, 274 }.Build() 275 File_sdk_sdk_proto = out.File 276 file_sdk_sdk_proto_rawDesc = nil 277 file_sdk_sdk_proto_goTypes = nil 278 file_sdk_sdk_proto_depIdxs = nil 279 }