github.com/ava-labs/avalanchego@v1.11.11/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 // SignatureRequest is an AppRequest message type for requesting 173 // a BLS signature over a Warp message, as defined in ACP-118: 174 // https://github.com/avalanche-foundation/ACPs/tree/main/ACPs/118-warp-signature-request 175 type SignatureRequest struct { 176 state protoimpl.MessageState 177 sizeCache protoimpl.SizeCache 178 unknownFields protoimpl.UnknownFields 179 180 // Warp message to be signed 181 Message []byte `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` 182 // Justification for the message 183 Justification []byte `protobuf:"bytes,2,opt,name=justification,proto3" json:"justification,omitempty"` 184 } 185 186 func (x *SignatureRequest) Reset() { 187 *x = SignatureRequest{} 188 if protoimpl.UnsafeEnabled { 189 mi := &file_sdk_sdk_proto_msgTypes[3] 190 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 191 ms.StoreMessageInfo(mi) 192 } 193 } 194 195 func (x *SignatureRequest) String() string { 196 return protoimpl.X.MessageStringOf(x) 197 } 198 199 func (*SignatureRequest) ProtoMessage() {} 200 201 func (x *SignatureRequest) ProtoReflect() protoreflect.Message { 202 mi := &file_sdk_sdk_proto_msgTypes[3] 203 if protoimpl.UnsafeEnabled && x != nil { 204 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 205 if ms.LoadMessageInfo() == nil { 206 ms.StoreMessageInfo(mi) 207 } 208 return ms 209 } 210 return mi.MessageOf(x) 211 } 212 213 // Deprecated: Use SignatureRequest.ProtoReflect.Descriptor instead. 214 func (*SignatureRequest) Descriptor() ([]byte, []int) { 215 return file_sdk_sdk_proto_rawDescGZIP(), []int{3} 216 } 217 218 func (x *SignatureRequest) GetMessage() []byte { 219 if x != nil { 220 return x.Message 221 } 222 return nil 223 } 224 225 func (x *SignatureRequest) GetJustification() []byte { 226 if x != nil { 227 return x.Justification 228 } 229 return nil 230 } 231 232 // SignatureRespnose is an AppResponse message type for providing 233 // a requested BLS signature over a Warp message, as defined in ACP-118: 234 // https://github.com/avalanche-foundation/ACPs/tree/main/ACPs/118-warp-signature-request 235 type SignatureResponse struct { 236 state protoimpl.MessageState 237 sizeCache protoimpl.SizeCache 238 unknownFields protoimpl.UnknownFields 239 240 // BLS signature over the Warp message 241 Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` 242 } 243 244 func (x *SignatureResponse) Reset() { 245 *x = SignatureResponse{} 246 if protoimpl.UnsafeEnabled { 247 mi := &file_sdk_sdk_proto_msgTypes[4] 248 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 249 ms.StoreMessageInfo(mi) 250 } 251 } 252 253 func (x *SignatureResponse) String() string { 254 return protoimpl.X.MessageStringOf(x) 255 } 256 257 func (*SignatureResponse) ProtoMessage() {} 258 259 func (x *SignatureResponse) ProtoReflect() protoreflect.Message { 260 mi := &file_sdk_sdk_proto_msgTypes[4] 261 if protoimpl.UnsafeEnabled && x != nil { 262 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 263 if ms.LoadMessageInfo() == nil { 264 ms.StoreMessageInfo(mi) 265 } 266 return ms 267 } 268 return mi.MessageOf(x) 269 } 270 271 // Deprecated: Use SignatureResponse.ProtoReflect.Descriptor instead. 272 func (*SignatureResponse) Descriptor() ([]byte, []int) { 273 return file_sdk_sdk_proto_rawDescGZIP(), []int{4} 274 } 275 276 func (x *SignatureResponse) GetSignature() []byte { 277 if x != nil { 278 return x.Signature 279 } 280 return nil 281 } 282 283 var File_sdk_sdk_proto protoreflect.FileDescriptor 284 285 var file_sdk_sdk_proto_rawDesc = []byte{ 286 0x0a, 0x0d, 0x73, 0x64, 0x6b, 0x2f, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 287 0x03, 0x73, 0x64, 0x6b, 0x22, 0x3f, 0x0a, 0x11, 0x50, 0x75, 0x6c, 0x6c, 0x47, 0x6f, 0x73, 0x73, 288 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x61, 0x6c, 289 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x12, 0x16, 0x0a, 290 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x66, 291 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x2c, 0x0a, 0x12, 0x50, 0x75, 0x6c, 0x6c, 0x47, 0x6f, 0x73, 292 0x73, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x67, 293 0x6f, 0x73, 0x73, 0x69, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x67, 0x6f, 0x73, 294 0x73, 0x69, 0x70, 0x22, 0x24, 0x0a, 0x0a, 0x50, 0x75, 0x73, 0x68, 0x47, 0x6f, 0x73, 0x73, 0x69, 295 0x70, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 296 0x0c, 0x52, 0x06, 0x67, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x22, 0x52, 0x0a, 0x10, 0x53, 0x69, 0x67, 297 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 298 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 299 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6a, 0x75, 0x73, 0x74, 0x69, 300 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 301 0x6a, 0x75, 0x73, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x31, 0x0a, 302 0x11, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 303 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 304 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 305 0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 306 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 307 0x65, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x2f, 0x73, 0x64, 0x6b, 308 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 309 } 310 311 var ( 312 file_sdk_sdk_proto_rawDescOnce sync.Once 313 file_sdk_sdk_proto_rawDescData = file_sdk_sdk_proto_rawDesc 314 ) 315 316 func file_sdk_sdk_proto_rawDescGZIP() []byte { 317 file_sdk_sdk_proto_rawDescOnce.Do(func() { 318 file_sdk_sdk_proto_rawDescData = protoimpl.X.CompressGZIP(file_sdk_sdk_proto_rawDescData) 319 }) 320 return file_sdk_sdk_proto_rawDescData 321 } 322 323 var file_sdk_sdk_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 324 var file_sdk_sdk_proto_goTypes = []interface{}{ 325 (*PullGossipRequest)(nil), // 0: sdk.PullGossipRequest 326 (*PullGossipResponse)(nil), // 1: sdk.PullGossipResponse 327 (*PushGossip)(nil), // 2: sdk.PushGossip 328 (*SignatureRequest)(nil), // 3: sdk.SignatureRequest 329 (*SignatureResponse)(nil), // 4: sdk.SignatureResponse 330 } 331 var file_sdk_sdk_proto_depIdxs = []int32{ 332 0, // [0:0] is the sub-list for method output_type 333 0, // [0:0] is the sub-list for method input_type 334 0, // [0:0] is the sub-list for extension type_name 335 0, // [0:0] is the sub-list for extension extendee 336 0, // [0:0] is the sub-list for field type_name 337 } 338 339 func init() { file_sdk_sdk_proto_init() } 340 func file_sdk_sdk_proto_init() { 341 if File_sdk_sdk_proto != nil { 342 return 343 } 344 if !protoimpl.UnsafeEnabled { 345 file_sdk_sdk_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 346 switch v := v.(*PullGossipRequest); i { 347 case 0: 348 return &v.state 349 case 1: 350 return &v.sizeCache 351 case 2: 352 return &v.unknownFields 353 default: 354 return nil 355 } 356 } 357 file_sdk_sdk_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 358 switch v := v.(*PullGossipResponse); i { 359 case 0: 360 return &v.state 361 case 1: 362 return &v.sizeCache 363 case 2: 364 return &v.unknownFields 365 default: 366 return nil 367 } 368 } 369 file_sdk_sdk_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 370 switch v := v.(*PushGossip); i { 371 case 0: 372 return &v.state 373 case 1: 374 return &v.sizeCache 375 case 2: 376 return &v.unknownFields 377 default: 378 return nil 379 } 380 } 381 file_sdk_sdk_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 382 switch v := v.(*SignatureRequest); i { 383 case 0: 384 return &v.state 385 case 1: 386 return &v.sizeCache 387 case 2: 388 return &v.unknownFields 389 default: 390 return nil 391 } 392 } 393 file_sdk_sdk_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 394 switch v := v.(*SignatureResponse); i { 395 case 0: 396 return &v.state 397 case 1: 398 return &v.sizeCache 399 case 2: 400 return &v.unknownFields 401 default: 402 return nil 403 } 404 } 405 } 406 type x struct{} 407 out := protoimpl.TypeBuilder{ 408 File: protoimpl.DescBuilder{ 409 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 410 RawDescriptor: file_sdk_sdk_proto_rawDesc, 411 NumEnums: 0, 412 NumMessages: 5, 413 NumExtensions: 0, 414 NumServices: 0, 415 }, 416 GoTypes: file_sdk_sdk_proto_goTypes, 417 DependencyIndexes: file_sdk_sdk_proto_depIdxs, 418 MessageInfos: file_sdk_sdk_proto_msgTypes, 419 }.Build() 420 File_sdk_sdk_proto = out.File 421 file_sdk_sdk_proto_rawDesc = nil 422 file_sdk_sdk_proto_goTypes = nil 423 file_sdk_sdk_proto_depIdxs = nil 424 }