federation.v1.capnp.go (60457B)
1 // Code generated by capnpc-go. DO NOT EDIT. 2 3 package v1 4 5 import ( 6 capnp "capnproto.org/go/capnp/v3" 7 text "capnproto.org/go/capnp/v3/encoding/text" 8 fc "capnproto.org/go/capnp/v3/flowcontrol" 9 schemas "capnproto.org/go/capnp/v3/schemas" 10 server "capnproto.org/go/capnp/v3/server" 11 stream "capnproto.org/go/capnp/v3/std/capnp/stream" 12 context "context" 13 types "github.com/MTRNord/matrix_protobuf_fed/proto/federation/v1/types" 14 ) 15 16 const MethodUUID_ = uint64(0xe55590d1a37e8043) 17 18 type StreamCallback capnp.Client 19 20 // StreamCallback_TypeID is the unique identifier for the type StreamCallback. 21 const StreamCallback_TypeID = 0x819a8ee6024db3d2 22 23 func (c StreamCallback) Write(ctx context.Context, params func(StreamCallback_write_Params) error) error { 24 s := capnp.Send{ 25 Method: capnp.Method{ 26 InterfaceID: 0x819a8ee6024db3d2, 27 MethodID: 0, 28 InterfaceName: "proto/federation/v1/federation.v1.capnp:StreamCallback", 29 MethodName: "write", 30 }, 31 } 32 if params != nil { 33 s.ArgsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 1} 34 s.PlaceArgs = func(s capnp.Struct) error { return params(StreamCallback_write_Params(s)) } 35 } 36 37 return capnp.Client(c).SendStreamCall(ctx, s) 38 39 } 40 41 func (c StreamCallback) Done(ctx context.Context, params func(StreamCallback_done_Params) error) (StreamCallback_done_Results_Future, capnp.ReleaseFunc) { 42 43 s := capnp.Send{ 44 Method: capnp.Method{ 45 InterfaceID: 0x819a8ee6024db3d2, 46 MethodID: 1, 47 InterfaceName: "proto/federation/v1/federation.v1.capnp:StreamCallback", 48 MethodName: "done", 49 }, 50 } 51 if params != nil { 52 s.ArgsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 0} 53 s.PlaceArgs = func(s capnp.Struct) error { return params(StreamCallback_done_Params(s)) } 54 } 55 56 ans, release := capnp.Client(c).SendCall(ctx, s) 57 return StreamCallback_done_Results_Future{Future: ans.Future()}, release 58 59 } 60 61 func (c StreamCallback) WaitStreaming() error { 62 return capnp.Client(c).WaitStreaming() 63 } 64 65 // String returns a string that identifies this capability for debugging 66 // purposes. Its format should not be depended on: in particular, it 67 // should not be used to compare clients. Use IsSame to compare clients 68 // for equality. 69 func (c StreamCallback) String() string { 70 return "StreamCallback(" + capnp.Client(c).String() + ")" 71 } 72 73 // AddRef creates a new Client that refers to the same capability as c. 74 // If c is nil or has resolved to null, then AddRef returns nil. 75 func (c StreamCallback) AddRef() StreamCallback { 76 return StreamCallback(capnp.Client(c).AddRef()) 77 } 78 79 // Release releases a capability reference. If this is the last 80 // reference to the capability, then the underlying resources associated 81 // with the capability will be released. 82 // 83 // Release will panic if c has already been released, but not if c is 84 // nil or resolved to null. 85 func (c StreamCallback) Release() { 86 capnp.Client(c).Release() 87 } 88 89 // Resolve blocks until the capability is fully resolved or the Context 90 // expires. 91 func (c StreamCallback) Resolve(ctx context.Context) error { 92 return capnp.Client(c).Resolve(ctx) 93 } 94 95 func (c StreamCallback) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr { 96 return capnp.Client(c).EncodeAsPtr(seg) 97 } 98 99 func (StreamCallback) DecodeFromPtr(p capnp.Ptr) StreamCallback { 100 return StreamCallback(capnp.Client{}.DecodeFromPtr(p)) 101 } 102 103 // IsValid reports whether c is a valid reference to a capability. 104 // A reference is invalid if it is nil, has resolved to null, or has 105 // been released. 106 func (c StreamCallback) IsValid() bool { 107 return capnp.Client(c).IsValid() 108 } 109 110 // IsSame reports whether c and other refer to a capability created by the 111 // same call to NewClient. This can return false negatives if c or other 112 // are not fully resolved: use Resolve if this is an issue. If either 113 // c or other are released, then IsSame panics. 114 func (c StreamCallback) IsSame(other StreamCallback) bool { 115 return capnp.Client(c).IsSame(capnp.Client(other)) 116 } 117 118 // Update the flowcontrol.FlowLimiter used to manage flow control for 119 // this client. This affects all future calls, but not calls already 120 // waiting to send. Passing nil sets the value to flowcontrol.NopLimiter, 121 // which is also the default. 122 func (c StreamCallback) SetFlowLimiter(lim fc.FlowLimiter) { 123 capnp.Client(c).SetFlowLimiter(lim) 124 } 125 126 // Get the current flowcontrol.FlowLimiter used to manage flow control 127 // for this client. 128 func (c StreamCallback) GetFlowLimiter() fc.FlowLimiter { 129 return capnp.Client(c).GetFlowLimiter() 130 } 131 132 // A StreamCallback_Server is a StreamCallback with a local implementation. 133 type StreamCallback_Server interface { 134 Write(context.Context, StreamCallback_write) error 135 136 Done(context.Context, StreamCallback_done) error 137 } 138 139 // StreamCallback_NewServer creates a new Server from an implementation of StreamCallback_Server. 140 func StreamCallback_NewServer(s StreamCallback_Server) *server.Server { 141 c, _ := s.(server.Shutdowner) 142 return server.New(StreamCallback_Methods(nil, s), s, c) 143 } 144 145 // StreamCallback_ServerToClient creates a new Client from an implementation of StreamCallback_Server. 146 // The caller is responsible for calling Release on the returned Client. 147 func StreamCallback_ServerToClient(s StreamCallback_Server) StreamCallback { 148 return StreamCallback(capnp.NewClient(StreamCallback_NewServer(s))) 149 } 150 151 // StreamCallback_Methods appends Methods to a slice that invoke the methods on s. 152 // This can be used to create a more complicated Server. 153 func StreamCallback_Methods(methods []server.Method, s StreamCallback_Server) []server.Method { 154 if cap(methods) == 0 { 155 methods = make([]server.Method, 0, 2) 156 } 157 158 methods = append(methods, server.Method{ 159 Method: capnp.Method{ 160 InterfaceID: 0x819a8ee6024db3d2, 161 MethodID: 0, 162 InterfaceName: "proto/federation/v1/federation.v1.capnp:StreamCallback", 163 MethodName: "write", 164 }, 165 Impl: func(ctx context.Context, call *server.Call) error { 166 return s.Write(ctx, StreamCallback_write{call}) 167 }, 168 }) 169 170 methods = append(methods, server.Method{ 171 Method: capnp.Method{ 172 InterfaceID: 0x819a8ee6024db3d2, 173 MethodID: 1, 174 InterfaceName: "proto/federation/v1/federation.v1.capnp:StreamCallback", 175 MethodName: "done", 176 }, 177 Impl: func(ctx context.Context, call *server.Call) error { 178 return s.Done(ctx, StreamCallback_done{call}) 179 }, 180 }) 181 182 return methods 183 } 184 185 // StreamCallback_write holds the state for a server call to StreamCallback.write. 186 // See server.Call for documentation. 187 type StreamCallback_write struct { 188 *server.Call 189 } 190 191 // Args returns the call's arguments. 192 func (c StreamCallback_write) Args() StreamCallback_write_Params { 193 return StreamCallback_write_Params(c.Call.Args()) 194 } 195 196 // AllocResults allocates the results struct. 197 func (c StreamCallback_write) AllocResults() (stream.StreamResult, error) { 198 r, err := c.Call.AllocResults(capnp.ObjectSize{DataSize: 0, PointerCount: 0}) 199 return stream.StreamResult(r), err 200 } 201 202 // StreamCallback_done holds the state for a server call to StreamCallback.done. 203 // See server.Call for documentation. 204 type StreamCallback_done struct { 205 *server.Call 206 } 207 208 // Args returns the call's arguments. 209 func (c StreamCallback_done) Args() StreamCallback_done_Params { 210 return StreamCallback_done_Params(c.Call.Args()) 211 } 212 213 // AllocResults allocates the results struct. 214 func (c StreamCallback_done) AllocResults() (StreamCallback_done_Results, error) { 215 r, err := c.Call.AllocResults(capnp.ObjectSize{DataSize: 0, PointerCount: 0}) 216 return StreamCallback_done_Results(r), err 217 } 218 219 // StreamCallback_List is a list of StreamCallback. 220 type StreamCallback_List = capnp.CapList[StreamCallback] 221 222 // NewStreamCallback creates a new list of StreamCallback. 223 func NewStreamCallback_List(s *capnp.Segment, sz int32) (StreamCallback_List, error) { 224 l, err := capnp.NewPointerList(s, sz) 225 return capnp.CapList[StreamCallback](l), err 226 } 227 228 type StreamCallback_write_Params capnp.Struct 229 230 // StreamCallback_write_Params_TypeID is the unique identifier for the type StreamCallback_write_Params. 231 const StreamCallback_write_Params_TypeID = 0xc99d5953442de820 232 233 func NewStreamCallback_write_Params(s *capnp.Segment) (StreamCallback_write_Params, error) { 234 st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}) 235 return StreamCallback_write_Params(st), err 236 } 237 238 func NewRootStreamCallback_write_Params(s *capnp.Segment) (StreamCallback_write_Params, error) { 239 st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}) 240 return StreamCallback_write_Params(st), err 241 } 242 243 func ReadRootStreamCallback_write_Params(msg *capnp.Message) (StreamCallback_write_Params, error) { 244 root, err := msg.Root() 245 return StreamCallback_write_Params(root.Struct()), err 246 } 247 248 func (s StreamCallback_write_Params) String() string { 249 str, _ := text.Marshal(0xc99d5953442de820, capnp.Struct(s)) 250 return str 251 } 252 253 func (s StreamCallback_write_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr { 254 return capnp.Struct(s).EncodeAsPtr(seg) 255 } 256 257 func (StreamCallback_write_Params) DecodeFromPtr(p capnp.Ptr) StreamCallback_write_Params { 258 return StreamCallback_write_Params(capnp.Struct{}.DecodeFromPtr(p)) 259 } 260 261 func (s StreamCallback_write_Params) ToPtr() capnp.Ptr { 262 return capnp.Struct(s).ToPtr() 263 } 264 func (s StreamCallback_write_Params) IsValid() bool { 265 return capnp.Struct(s).IsValid() 266 } 267 268 func (s StreamCallback_write_Params) Message() *capnp.Message { 269 return capnp.Struct(s).Message() 270 } 271 272 func (s StreamCallback_write_Params) Segment() *capnp.Segment { 273 return capnp.Struct(s).Segment() 274 } 275 func (s StreamCallback_write_Params) Value() (capnp.Ptr, error) { 276 return capnp.Struct(s).Ptr(0) 277 } 278 279 func (s StreamCallback_write_Params) HasValue() bool { 280 return capnp.Struct(s).HasPtr(0) 281 } 282 283 func (s StreamCallback_write_Params) SetValue(v capnp.Ptr) error { 284 return capnp.Struct(s).SetPtr(0, v) 285 } 286 287 // StreamCallback_write_Params_List is a list of StreamCallback_write_Params. 288 type StreamCallback_write_Params_List = capnp.StructList[StreamCallback_write_Params] 289 290 // NewStreamCallback_write_Params creates a new list of StreamCallback_write_Params. 291 func NewStreamCallback_write_Params_List(s *capnp.Segment, sz int32) (StreamCallback_write_Params_List, error) { 292 l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz) 293 return capnp.StructList[StreamCallback_write_Params](l), err 294 } 295 296 // StreamCallback_write_Params_Future is a wrapper for a StreamCallback_write_Params promised by a client call. 297 type StreamCallback_write_Params_Future struct{ *capnp.Future } 298 299 func (f StreamCallback_write_Params_Future) Struct() (StreamCallback_write_Params, error) { 300 p, err := f.Future.Ptr() 301 return StreamCallback_write_Params(p.Struct()), err 302 } 303 func (p StreamCallback_write_Params_Future) Value() *capnp.Future { 304 return p.Future.Field(0, nil) 305 } 306 307 type StreamCallback_done_Params capnp.Struct 308 309 // StreamCallback_done_Params_TypeID is the unique identifier for the type StreamCallback_done_Params. 310 const StreamCallback_done_Params_TypeID = 0xfffa8c2e7b1978ac 311 312 func NewStreamCallback_done_Params(s *capnp.Segment) (StreamCallback_done_Params, error) { 313 st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}) 314 return StreamCallback_done_Params(st), err 315 } 316 317 func NewRootStreamCallback_done_Params(s *capnp.Segment) (StreamCallback_done_Params, error) { 318 st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}) 319 return StreamCallback_done_Params(st), err 320 } 321 322 func ReadRootStreamCallback_done_Params(msg *capnp.Message) (StreamCallback_done_Params, error) { 323 root, err := msg.Root() 324 return StreamCallback_done_Params(root.Struct()), err 325 } 326 327 func (s StreamCallback_done_Params) String() string { 328 str, _ := text.Marshal(0xfffa8c2e7b1978ac, capnp.Struct(s)) 329 return str 330 } 331 332 func (s StreamCallback_done_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr { 333 return capnp.Struct(s).EncodeAsPtr(seg) 334 } 335 336 func (StreamCallback_done_Params) DecodeFromPtr(p capnp.Ptr) StreamCallback_done_Params { 337 return StreamCallback_done_Params(capnp.Struct{}.DecodeFromPtr(p)) 338 } 339 340 func (s StreamCallback_done_Params) ToPtr() capnp.Ptr { 341 return capnp.Struct(s).ToPtr() 342 } 343 func (s StreamCallback_done_Params) IsValid() bool { 344 return capnp.Struct(s).IsValid() 345 } 346 347 func (s StreamCallback_done_Params) Message() *capnp.Message { 348 return capnp.Struct(s).Message() 349 } 350 351 func (s StreamCallback_done_Params) Segment() *capnp.Segment { 352 return capnp.Struct(s).Segment() 353 } 354 355 // StreamCallback_done_Params_List is a list of StreamCallback_done_Params. 356 type StreamCallback_done_Params_List = capnp.StructList[StreamCallback_done_Params] 357 358 // NewStreamCallback_done_Params creates a new list of StreamCallback_done_Params. 359 func NewStreamCallback_done_Params_List(s *capnp.Segment, sz int32) (StreamCallback_done_Params_List, error) { 360 l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz) 361 return capnp.StructList[StreamCallback_done_Params](l), err 362 } 363 364 // StreamCallback_done_Params_Future is a wrapper for a StreamCallback_done_Params promised by a client call. 365 type StreamCallback_done_Params_Future struct{ *capnp.Future } 366 367 func (f StreamCallback_done_Params_Future) Struct() (StreamCallback_done_Params, error) { 368 p, err := f.Future.Ptr() 369 return StreamCallback_done_Params(p.Struct()), err 370 } 371 372 type StreamCallback_done_Results capnp.Struct 373 374 // StreamCallback_done_Results_TypeID is the unique identifier for the type StreamCallback_done_Results. 375 const StreamCallback_done_Results_TypeID = 0xd37bc71261c39851 376 377 func NewStreamCallback_done_Results(s *capnp.Segment) (StreamCallback_done_Results, error) { 378 st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}) 379 return StreamCallback_done_Results(st), err 380 } 381 382 func NewRootStreamCallback_done_Results(s *capnp.Segment) (StreamCallback_done_Results, error) { 383 st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}) 384 return StreamCallback_done_Results(st), err 385 } 386 387 func ReadRootStreamCallback_done_Results(msg *capnp.Message) (StreamCallback_done_Results, error) { 388 root, err := msg.Root() 389 return StreamCallback_done_Results(root.Struct()), err 390 } 391 392 func (s StreamCallback_done_Results) String() string { 393 str, _ := text.Marshal(0xd37bc71261c39851, capnp.Struct(s)) 394 return str 395 } 396 397 func (s StreamCallback_done_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr { 398 return capnp.Struct(s).EncodeAsPtr(seg) 399 } 400 401 func (StreamCallback_done_Results) DecodeFromPtr(p capnp.Ptr) StreamCallback_done_Results { 402 return StreamCallback_done_Results(capnp.Struct{}.DecodeFromPtr(p)) 403 } 404 405 func (s StreamCallback_done_Results) ToPtr() capnp.Ptr { 406 return capnp.Struct(s).ToPtr() 407 } 408 func (s StreamCallback_done_Results) IsValid() bool { 409 return capnp.Struct(s).IsValid() 410 } 411 412 func (s StreamCallback_done_Results) Message() *capnp.Message { 413 return capnp.Struct(s).Message() 414 } 415 416 func (s StreamCallback_done_Results) Segment() *capnp.Segment { 417 return capnp.Struct(s).Segment() 418 } 419 420 // StreamCallback_done_Results_List is a list of StreamCallback_done_Results. 421 type StreamCallback_done_Results_List = capnp.StructList[StreamCallback_done_Results] 422 423 // NewStreamCallback_done_Results creates a new list of StreamCallback_done_Results. 424 func NewStreamCallback_done_Results_List(s *capnp.Segment, sz int32) (StreamCallback_done_Results_List, error) { 425 l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz) 426 return capnp.StructList[StreamCallback_done_Results](l), err 427 } 428 429 // StreamCallback_done_Results_Future is a wrapper for a StreamCallback_done_Results promised by a client call. 430 type StreamCallback_done_Results_Future struct{ *capnp.Future } 431 432 func (f StreamCallback_done_Results_Future) Struct() (StreamCallback_done_Results, error) { 433 p, err := f.Future.Ptr() 434 return StreamCallback_done_Results(p.Struct()), err 435 } 436 437 type MatrixFederation capnp.Client 438 439 // MatrixFederation_TypeID is the unique identifier for the type MatrixFederation. 440 const MatrixFederation_TypeID = 0xf730448b3b47991e 441 442 func (c MatrixFederation) GetVersion(ctx context.Context, params func(MatrixFederation_getVersion_Params) error) (MatrixFederation_getVersion_Results_Future, capnp.ReleaseFunc) { 443 444 s := capnp.Send{ 445 Method: capnp.Method{ 446 InterfaceID: 0xf730448b3b47991e, 447 MethodID: 0, 448 InterfaceName: "proto/federation/v1/federation.v1.capnp:MatrixFederation", 449 MethodName: "getVersion", 450 }, 451 } 452 if params != nil { 453 s.ArgsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 0} 454 s.PlaceArgs = func(s capnp.Struct) error { return params(MatrixFederation_getVersion_Params(s)) } 455 } 456 457 ans, release := capnp.Client(c).SendCall(ctx, s) 458 return MatrixFederation_getVersion_Results_Future{Future: ans.Future()}, release 459 460 } 461 462 func (c MatrixFederation) GetKeys(ctx context.Context, params func(MatrixFederation_getKeys_Params) error) (MatrixFederation_getKeys_Results_Future, capnp.ReleaseFunc) { 463 464 s := capnp.Send{ 465 Method: capnp.Method{ 466 InterfaceID: 0xf730448b3b47991e, 467 MethodID: 1, 468 InterfaceName: "proto/federation/v1/federation.v1.capnp:MatrixFederation", 469 MethodName: "getKeys", 470 }, 471 } 472 if params != nil { 473 s.ArgsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 2} 474 s.PlaceArgs = func(s capnp.Struct) error { return params(MatrixFederation_getKeys_Params(s)) } 475 } 476 477 ans, release := capnp.Client(c).SendCall(ctx, s) 478 return MatrixFederation_getKeys_Results_Future{Future: ans.Future()}, release 479 480 } 481 482 func (c MatrixFederation) SendTransactions(ctx context.Context, params func(MatrixFederation_sendTransactions_Params) error) (MatrixFederation_sendTransactions_Results_Future, capnp.ReleaseFunc) { 483 484 s := capnp.Send{ 485 Method: capnp.Method{ 486 InterfaceID: 0xf730448b3b47991e, 487 MethodID: 2, 488 InterfaceName: "proto/federation/v1/federation.v1.capnp:MatrixFederation", 489 MethodName: "sendTransactions", 490 }, 491 } 492 if params != nil { 493 s.ArgsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 0} 494 s.PlaceArgs = func(s capnp.Struct) error { return params(MatrixFederation_sendTransactions_Params(s)) } 495 } 496 497 ans, release := capnp.Client(c).SendCall(ctx, s) 498 return MatrixFederation_sendTransactions_Results_Future{Future: ans.Future()}, release 499 500 } 501 502 func (c MatrixFederation) Backfill(ctx context.Context, params func(MatrixFederation_backfill_Params) error) (MatrixFederation_backfill_Results_Future, capnp.ReleaseFunc) { 503 504 s := capnp.Send{ 505 Method: capnp.Method{ 506 InterfaceID: 0xf730448b3b47991e, 507 MethodID: 3, 508 InterfaceName: "proto/federation/v1/federation.v1.capnp:MatrixFederation", 509 MethodName: "backfill", 510 }, 511 } 512 if params != nil { 513 s.ArgsSize = capnp.ObjectSize{DataSize: 8, PointerCount: 4} 514 s.PlaceArgs = func(s capnp.Struct) error { return params(MatrixFederation_backfill_Params(s)) } 515 } 516 517 ans, release := capnp.Client(c).SendCall(ctx, s) 518 return MatrixFederation_backfill_Results_Future{Future: ans.Future()}, release 519 520 } 521 522 func (c MatrixFederation) WaitStreaming() error { 523 return capnp.Client(c).WaitStreaming() 524 } 525 526 // String returns a string that identifies this capability for debugging 527 // purposes. Its format should not be depended on: in particular, it 528 // should not be used to compare clients. Use IsSame to compare clients 529 // for equality. 530 func (c MatrixFederation) String() string { 531 return "MatrixFederation(" + capnp.Client(c).String() + ")" 532 } 533 534 // AddRef creates a new Client that refers to the same capability as c. 535 // If c is nil or has resolved to null, then AddRef returns nil. 536 func (c MatrixFederation) AddRef() MatrixFederation { 537 return MatrixFederation(capnp.Client(c).AddRef()) 538 } 539 540 // Release releases a capability reference. If this is the last 541 // reference to the capability, then the underlying resources associated 542 // with the capability will be released. 543 // 544 // Release will panic if c has already been released, but not if c is 545 // nil or resolved to null. 546 func (c MatrixFederation) Release() { 547 capnp.Client(c).Release() 548 } 549 550 // Resolve blocks until the capability is fully resolved or the Context 551 // expires. 552 func (c MatrixFederation) Resolve(ctx context.Context) error { 553 return capnp.Client(c).Resolve(ctx) 554 } 555 556 func (c MatrixFederation) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr { 557 return capnp.Client(c).EncodeAsPtr(seg) 558 } 559 560 func (MatrixFederation) DecodeFromPtr(p capnp.Ptr) MatrixFederation { 561 return MatrixFederation(capnp.Client{}.DecodeFromPtr(p)) 562 } 563 564 // IsValid reports whether c is a valid reference to a capability. 565 // A reference is invalid if it is nil, has resolved to null, or has 566 // been released. 567 func (c MatrixFederation) IsValid() bool { 568 return capnp.Client(c).IsValid() 569 } 570 571 // IsSame reports whether c and other refer to a capability created by the 572 // same call to NewClient. This can return false negatives if c or other 573 // are not fully resolved: use Resolve if this is an issue. If either 574 // c or other are released, then IsSame panics. 575 func (c MatrixFederation) IsSame(other MatrixFederation) bool { 576 return capnp.Client(c).IsSame(capnp.Client(other)) 577 } 578 579 // Update the flowcontrol.FlowLimiter used to manage flow control for 580 // this client. This affects all future calls, but not calls already 581 // waiting to send. Passing nil sets the value to flowcontrol.NopLimiter, 582 // which is also the default. 583 func (c MatrixFederation) SetFlowLimiter(lim fc.FlowLimiter) { 584 capnp.Client(c).SetFlowLimiter(lim) 585 } 586 587 // Get the current flowcontrol.FlowLimiter used to manage flow control 588 // for this client. 589 func (c MatrixFederation) GetFlowLimiter() fc.FlowLimiter { 590 return capnp.Client(c).GetFlowLimiter() 591 } 592 593 // A MatrixFederation_Server is a MatrixFederation with a local implementation. 594 type MatrixFederation_Server interface { 595 GetVersion(context.Context, MatrixFederation_getVersion) error 596 597 GetKeys(context.Context, MatrixFederation_getKeys) error 598 599 SendTransactions(context.Context, MatrixFederation_sendTransactions) error 600 601 Backfill(context.Context, MatrixFederation_backfill) error 602 } 603 604 // MatrixFederation_NewServer creates a new Server from an implementation of MatrixFederation_Server. 605 func MatrixFederation_NewServer(s MatrixFederation_Server) *server.Server { 606 c, _ := s.(server.Shutdowner) 607 return server.New(MatrixFederation_Methods(nil, s), s, c) 608 } 609 610 // MatrixFederation_ServerToClient creates a new Client from an implementation of MatrixFederation_Server. 611 // The caller is responsible for calling Release on the returned Client. 612 func MatrixFederation_ServerToClient(s MatrixFederation_Server) MatrixFederation { 613 return MatrixFederation(capnp.NewClient(MatrixFederation_NewServer(s))) 614 } 615 616 // MatrixFederation_Methods appends Methods to a slice that invoke the methods on s. 617 // This can be used to create a more complicated Server. 618 func MatrixFederation_Methods(methods []server.Method, s MatrixFederation_Server) []server.Method { 619 if cap(methods) == 0 { 620 methods = make([]server.Method, 0, 4) 621 } 622 623 methods = append(methods, server.Method{ 624 Method: capnp.Method{ 625 InterfaceID: 0xf730448b3b47991e, 626 MethodID: 0, 627 InterfaceName: "proto/federation/v1/federation.v1.capnp:MatrixFederation", 628 MethodName: "getVersion", 629 }, 630 Impl: func(ctx context.Context, call *server.Call) error { 631 return s.GetVersion(ctx, MatrixFederation_getVersion{call}) 632 }, 633 }) 634 635 methods = append(methods, server.Method{ 636 Method: capnp.Method{ 637 InterfaceID: 0xf730448b3b47991e, 638 MethodID: 1, 639 InterfaceName: "proto/federation/v1/federation.v1.capnp:MatrixFederation", 640 MethodName: "getKeys", 641 }, 642 Impl: func(ctx context.Context, call *server.Call) error { 643 return s.GetKeys(ctx, MatrixFederation_getKeys{call}) 644 }, 645 }) 646 647 methods = append(methods, server.Method{ 648 Method: capnp.Method{ 649 InterfaceID: 0xf730448b3b47991e, 650 MethodID: 2, 651 InterfaceName: "proto/federation/v1/federation.v1.capnp:MatrixFederation", 652 MethodName: "sendTransactions", 653 }, 654 Impl: func(ctx context.Context, call *server.Call) error { 655 return s.SendTransactions(ctx, MatrixFederation_sendTransactions{call}) 656 }, 657 }) 658 659 methods = append(methods, server.Method{ 660 Method: capnp.Method{ 661 InterfaceID: 0xf730448b3b47991e, 662 MethodID: 3, 663 InterfaceName: "proto/federation/v1/federation.v1.capnp:MatrixFederation", 664 MethodName: "backfill", 665 }, 666 Impl: func(ctx context.Context, call *server.Call) error { 667 return s.Backfill(ctx, MatrixFederation_backfill{call}) 668 }, 669 }) 670 671 return methods 672 } 673 674 // MatrixFederation_getVersion holds the state for a server call to MatrixFederation.getVersion. 675 // See server.Call for documentation. 676 type MatrixFederation_getVersion struct { 677 *server.Call 678 } 679 680 // Args returns the call's arguments. 681 func (c MatrixFederation_getVersion) Args() MatrixFederation_getVersion_Params { 682 return MatrixFederation_getVersion_Params(c.Call.Args()) 683 } 684 685 // AllocResults allocates the results struct. 686 func (c MatrixFederation_getVersion) AllocResults() (MatrixFederation_getVersion_Results, error) { 687 r, err := c.Call.AllocResults(capnp.ObjectSize{DataSize: 0, PointerCount: 1}) 688 return MatrixFederation_getVersion_Results(r), err 689 } 690 691 // MatrixFederation_getKeys holds the state for a server call to MatrixFederation.getKeys. 692 // See server.Call for documentation. 693 type MatrixFederation_getKeys struct { 694 *server.Call 695 } 696 697 // Args returns the call's arguments. 698 func (c MatrixFederation_getKeys) Args() MatrixFederation_getKeys_Params { 699 return MatrixFederation_getKeys_Params(c.Call.Args()) 700 } 701 702 // AllocResults allocates the results struct. 703 func (c MatrixFederation_getKeys) AllocResults() (MatrixFederation_getKeys_Results, error) { 704 r, err := c.Call.AllocResults(capnp.ObjectSize{DataSize: 0, PointerCount: 0}) 705 return MatrixFederation_getKeys_Results(r), err 706 } 707 708 // MatrixFederation_sendTransactions holds the state for a server call to MatrixFederation.sendTransactions. 709 // See server.Call for documentation. 710 type MatrixFederation_sendTransactions struct { 711 *server.Call 712 } 713 714 // Args returns the call's arguments. 715 func (c MatrixFederation_sendTransactions) Args() MatrixFederation_sendTransactions_Params { 716 return MatrixFederation_sendTransactions_Params(c.Call.Args()) 717 } 718 719 // AllocResults allocates the results struct. 720 func (c MatrixFederation_sendTransactions) AllocResults() (MatrixFederation_sendTransactions_Results, error) { 721 r, err := c.Call.AllocResults(capnp.ObjectSize{DataSize: 0, PointerCount: 1}) 722 return MatrixFederation_sendTransactions_Results(r), err 723 } 724 725 // MatrixFederation_backfill holds the state for a server call to MatrixFederation.backfill. 726 // See server.Call for documentation. 727 type MatrixFederation_backfill struct { 728 *server.Call 729 } 730 731 // Args returns the call's arguments. 732 func (c MatrixFederation_backfill) Args() MatrixFederation_backfill_Params { 733 return MatrixFederation_backfill_Params(c.Call.Args()) 734 } 735 736 // AllocResults allocates the results struct. 737 func (c MatrixFederation_backfill) AllocResults() (MatrixFederation_backfill_Results, error) { 738 r, err := c.Call.AllocResults(capnp.ObjectSize{DataSize: 0, PointerCount: 0}) 739 return MatrixFederation_backfill_Results(r), err 740 } 741 742 // MatrixFederation_List is a list of MatrixFederation. 743 type MatrixFederation_List = capnp.CapList[MatrixFederation] 744 745 // NewMatrixFederation creates a new list of MatrixFederation. 746 func NewMatrixFederation_List(s *capnp.Segment, sz int32) (MatrixFederation_List, error) { 747 l, err := capnp.NewPointerList(s, sz) 748 return capnp.CapList[MatrixFederation](l), err 749 } 750 751 type MatrixFederation_getVersion_Params capnp.Struct 752 753 // MatrixFederation_getVersion_Params_TypeID is the unique identifier for the type MatrixFederation_getVersion_Params. 754 const MatrixFederation_getVersion_Params_TypeID = 0xa6475494fcf1c9df 755 756 func NewMatrixFederation_getVersion_Params(s *capnp.Segment) (MatrixFederation_getVersion_Params, error) { 757 st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}) 758 return MatrixFederation_getVersion_Params(st), err 759 } 760 761 func NewRootMatrixFederation_getVersion_Params(s *capnp.Segment) (MatrixFederation_getVersion_Params, error) { 762 st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}) 763 return MatrixFederation_getVersion_Params(st), err 764 } 765 766 func ReadRootMatrixFederation_getVersion_Params(msg *capnp.Message) (MatrixFederation_getVersion_Params, error) { 767 root, err := msg.Root() 768 return MatrixFederation_getVersion_Params(root.Struct()), err 769 } 770 771 func (s MatrixFederation_getVersion_Params) String() string { 772 str, _ := text.Marshal(0xa6475494fcf1c9df, capnp.Struct(s)) 773 return str 774 } 775 776 func (s MatrixFederation_getVersion_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr { 777 return capnp.Struct(s).EncodeAsPtr(seg) 778 } 779 780 func (MatrixFederation_getVersion_Params) DecodeFromPtr(p capnp.Ptr) MatrixFederation_getVersion_Params { 781 return MatrixFederation_getVersion_Params(capnp.Struct{}.DecodeFromPtr(p)) 782 } 783 784 func (s MatrixFederation_getVersion_Params) ToPtr() capnp.Ptr { 785 return capnp.Struct(s).ToPtr() 786 } 787 func (s MatrixFederation_getVersion_Params) IsValid() bool { 788 return capnp.Struct(s).IsValid() 789 } 790 791 func (s MatrixFederation_getVersion_Params) Message() *capnp.Message { 792 return capnp.Struct(s).Message() 793 } 794 795 func (s MatrixFederation_getVersion_Params) Segment() *capnp.Segment { 796 return capnp.Struct(s).Segment() 797 } 798 799 // MatrixFederation_getVersion_Params_List is a list of MatrixFederation_getVersion_Params. 800 type MatrixFederation_getVersion_Params_List = capnp.StructList[MatrixFederation_getVersion_Params] 801 802 // NewMatrixFederation_getVersion_Params creates a new list of MatrixFederation_getVersion_Params. 803 func NewMatrixFederation_getVersion_Params_List(s *capnp.Segment, sz int32) (MatrixFederation_getVersion_Params_List, error) { 804 l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz) 805 return capnp.StructList[MatrixFederation_getVersion_Params](l), err 806 } 807 808 // MatrixFederation_getVersion_Params_Future is a wrapper for a MatrixFederation_getVersion_Params promised by a client call. 809 type MatrixFederation_getVersion_Params_Future struct{ *capnp.Future } 810 811 func (f MatrixFederation_getVersion_Params_Future) Struct() (MatrixFederation_getVersion_Params, error) { 812 p, err := f.Future.Ptr() 813 return MatrixFederation_getVersion_Params(p.Struct()), err 814 } 815 816 type MatrixFederation_getVersion_Results capnp.Struct 817 818 // MatrixFederation_getVersion_Results_TypeID is the unique identifier for the type MatrixFederation_getVersion_Results. 819 const MatrixFederation_getVersion_Results_TypeID = 0xf35f5ffe08536d82 820 821 func NewMatrixFederation_getVersion_Results(s *capnp.Segment) (MatrixFederation_getVersion_Results, error) { 822 st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}) 823 return MatrixFederation_getVersion_Results(st), err 824 } 825 826 func NewRootMatrixFederation_getVersion_Results(s *capnp.Segment) (MatrixFederation_getVersion_Results, error) { 827 st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}) 828 return MatrixFederation_getVersion_Results(st), err 829 } 830 831 func ReadRootMatrixFederation_getVersion_Results(msg *capnp.Message) (MatrixFederation_getVersion_Results, error) { 832 root, err := msg.Root() 833 return MatrixFederation_getVersion_Results(root.Struct()), err 834 } 835 836 func (s MatrixFederation_getVersion_Results) String() string { 837 str, _ := text.Marshal(0xf35f5ffe08536d82, capnp.Struct(s)) 838 return str 839 } 840 841 func (s MatrixFederation_getVersion_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr { 842 return capnp.Struct(s).EncodeAsPtr(seg) 843 } 844 845 func (MatrixFederation_getVersion_Results) DecodeFromPtr(p capnp.Ptr) MatrixFederation_getVersion_Results { 846 return MatrixFederation_getVersion_Results(capnp.Struct{}.DecodeFromPtr(p)) 847 } 848 849 func (s MatrixFederation_getVersion_Results) ToPtr() capnp.Ptr { 850 return capnp.Struct(s).ToPtr() 851 } 852 func (s MatrixFederation_getVersion_Results) IsValid() bool { 853 return capnp.Struct(s).IsValid() 854 } 855 856 func (s MatrixFederation_getVersion_Results) Message() *capnp.Message { 857 return capnp.Struct(s).Message() 858 } 859 860 func (s MatrixFederation_getVersion_Results) Segment() *capnp.Segment { 861 return capnp.Struct(s).Segment() 862 } 863 func (s MatrixFederation_getVersion_Results) ServerVersion() (types.ServerVersion, error) { 864 p, err := capnp.Struct(s).Ptr(0) 865 return types.ServerVersion(p.Struct()), err 866 } 867 868 func (s MatrixFederation_getVersion_Results) HasServerVersion() bool { 869 return capnp.Struct(s).HasPtr(0) 870 } 871 872 func (s MatrixFederation_getVersion_Results) SetServerVersion(v types.ServerVersion) error { 873 return capnp.Struct(s).SetPtr(0, capnp.Struct(v).ToPtr()) 874 } 875 876 // NewServerVersion sets the serverVersion field to a newly 877 // allocated types.ServerVersion struct, preferring placement in s's segment. 878 func (s MatrixFederation_getVersion_Results) NewServerVersion() (types.ServerVersion, error) { 879 ss, err := types.NewServerVersion(capnp.Struct(s).Segment()) 880 if err != nil { 881 return types.ServerVersion{}, err 882 } 883 err = capnp.Struct(s).SetPtr(0, capnp.Struct(ss).ToPtr()) 884 return ss, err 885 } 886 887 // MatrixFederation_getVersion_Results_List is a list of MatrixFederation_getVersion_Results. 888 type MatrixFederation_getVersion_Results_List = capnp.StructList[MatrixFederation_getVersion_Results] 889 890 // NewMatrixFederation_getVersion_Results creates a new list of MatrixFederation_getVersion_Results. 891 func NewMatrixFederation_getVersion_Results_List(s *capnp.Segment, sz int32) (MatrixFederation_getVersion_Results_List, error) { 892 l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz) 893 return capnp.StructList[MatrixFederation_getVersion_Results](l), err 894 } 895 896 // MatrixFederation_getVersion_Results_Future is a wrapper for a MatrixFederation_getVersion_Results promised by a client call. 897 type MatrixFederation_getVersion_Results_Future struct{ *capnp.Future } 898 899 func (f MatrixFederation_getVersion_Results_Future) Struct() (MatrixFederation_getVersion_Results, error) { 900 p, err := f.Future.Ptr() 901 return MatrixFederation_getVersion_Results(p.Struct()), err 902 } 903 func (p MatrixFederation_getVersion_Results_Future) ServerVersion() types.ServerVersion_Future { 904 return types.ServerVersion_Future{Future: p.Future.Field(0, nil)} 905 } 906 907 type MatrixFederation_getKeys_Params capnp.Struct 908 909 // MatrixFederation_getKeys_Params_TypeID is the unique identifier for the type MatrixFederation_getKeys_Params. 910 const MatrixFederation_getKeys_Params_TypeID = 0x979c195cba352fad 911 912 func NewMatrixFederation_getKeys_Params(s *capnp.Segment) (MatrixFederation_getKeys_Params, error) { 913 st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2}) 914 return MatrixFederation_getKeys_Params(st), err 915 } 916 917 func NewRootMatrixFederation_getKeys_Params(s *capnp.Segment) (MatrixFederation_getKeys_Params, error) { 918 st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2}) 919 return MatrixFederation_getKeys_Params(st), err 920 } 921 922 func ReadRootMatrixFederation_getKeys_Params(msg *capnp.Message) (MatrixFederation_getKeys_Params, error) { 923 root, err := msg.Root() 924 return MatrixFederation_getKeys_Params(root.Struct()), err 925 } 926 927 func (s MatrixFederation_getKeys_Params) String() string { 928 str, _ := text.Marshal(0x979c195cba352fad, capnp.Struct(s)) 929 return str 930 } 931 932 func (s MatrixFederation_getKeys_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr { 933 return capnp.Struct(s).EncodeAsPtr(seg) 934 } 935 936 func (MatrixFederation_getKeys_Params) DecodeFromPtr(p capnp.Ptr) MatrixFederation_getKeys_Params { 937 return MatrixFederation_getKeys_Params(capnp.Struct{}.DecodeFromPtr(p)) 938 } 939 940 func (s MatrixFederation_getKeys_Params) ToPtr() capnp.Ptr { 941 return capnp.Struct(s).ToPtr() 942 } 943 func (s MatrixFederation_getKeys_Params) IsValid() bool { 944 return capnp.Struct(s).IsValid() 945 } 946 947 func (s MatrixFederation_getKeys_Params) Message() *capnp.Message { 948 return capnp.Struct(s).Message() 949 } 950 951 func (s MatrixFederation_getKeys_Params) Segment() *capnp.Segment { 952 return capnp.Struct(s).Segment() 953 } 954 func (s MatrixFederation_getKeys_Params) Server_keys() (types.Map, error) { 955 p, err := capnp.Struct(s).Ptr(0) 956 return types.Map(p.Struct()), err 957 } 958 959 func (s MatrixFederation_getKeys_Params) HasServer_keys() bool { 960 return capnp.Struct(s).HasPtr(0) 961 } 962 963 func (s MatrixFederation_getKeys_Params) SetServer_keys(v types.Map) error { 964 return capnp.Struct(s).SetPtr(0, capnp.Struct(v).ToPtr()) 965 } 966 967 // NewServer_keys sets the server_keys field to a newly 968 // allocated types.Map struct, preferring placement in s's segment. 969 func (s MatrixFederation_getKeys_Params) NewServer_keys() (types.Map, error) { 970 ss, err := types.NewMap(capnp.Struct(s).Segment()) 971 if err != nil { 972 return types.Map{}, err 973 } 974 err = capnp.Struct(s).SetPtr(0, capnp.Struct(ss).ToPtr()) 975 return ss, err 976 } 977 978 func (s MatrixFederation_getKeys_Params) Callback() StreamCallback { 979 p, _ := capnp.Struct(s).Ptr(1) 980 return StreamCallback(p.Interface().Client()) 981 } 982 983 func (s MatrixFederation_getKeys_Params) HasCallback() bool { 984 return capnp.Struct(s).HasPtr(1) 985 } 986 987 func (s MatrixFederation_getKeys_Params) SetCallback(v StreamCallback) error { 988 if !v.IsValid() { 989 return capnp.Struct(s).SetPtr(1, capnp.Ptr{}) 990 } 991 seg := s.Segment() 992 in := capnp.NewInterface(seg, seg.Message().CapTable().Add(capnp.Client(v))) 993 return capnp.Struct(s).SetPtr(1, in.ToPtr()) 994 } 995 996 // MatrixFederation_getKeys_Params_List is a list of MatrixFederation_getKeys_Params. 997 type MatrixFederation_getKeys_Params_List = capnp.StructList[MatrixFederation_getKeys_Params] 998 999 // NewMatrixFederation_getKeys_Params creates a new list of MatrixFederation_getKeys_Params. 1000 func NewMatrixFederation_getKeys_Params_List(s *capnp.Segment, sz int32) (MatrixFederation_getKeys_Params_List, error) { 1001 l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2}, sz) 1002 return capnp.StructList[MatrixFederation_getKeys_Params](l), err 1003 } 1004 1005 // MatrixFederation_getKeys_Params_Future is a wrapper for a MatrixFederation_getKeys_Params promised by a client call. 1006 type MatrixFederation_getKeys_Params_Future struct{ *capnp.Future } 1007 1008 func (f MatrixFederation_getKeys_Params_Future) Struct() (MatrixFederation_getKeys_Params, error) { 1009 p, err := f.Future.Ptr() 1010 return MatrixFederation_getKeys_Params(p.Struct()), err 1011 } 1012 func (p MatrixFederation_getKeys_Params_Future) Server_keys() types.Map_Future { 1013 return types.Map_Future{Future: p.Future.Field(0, nil)} 1014 } 1015 func (p MatrixFederation_getKeys_Params_Future) Callback() StreamCallback { 1016 return StreamCallback(p.Future.Field(1, nil).Client()) 1017 } 1018 1019 type MatrixFederation_getKeys_Results capnp.Struct 1020 1021 // MatrixFederation_getKeys_Results_TypeID is the unique identifier for the type MatrixFederation_getKeys_Results. 1022 const MatrixFederation_getKeys_Results_TypeID = 0x902da9b8b1031221 1023 1024 func NewMatrixFederation_getKeys_Results(s *capnp.Segment) (MatrixFederation_getKeys_Results, error) { 1025 st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}) 1026 return MatrixFederation_getKeys_Results(st), err 1027 } 1028 1029 func NewRootMatrixFederation_getKeys_Results(s *capnp.Segment) (MatrixFederation_getKeys_Results, error) { 1030 st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}) 1031 return MatrixFederation_getKeys_Results(st), err 1032 } 1033 1034 func ReadRootMatrixFederation_getKeys_Results(msg *capnp.Message) (MatrixFederation_getKeys_Results, error) { 1035 root, err := msg.Root() 1036 return MatrixFederation_getKeys_Results(root.Struct()), err 1037 } 1038 1039 func (s MatrixFederation_getKeys_Results) String() string { 1040 str, _ := text.Marshal(0x902da9b8b1031221, capnp.Struct(s)) 1041 return str 1042 } 1043 1044 func (s MatrixFederation_getKeys_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr { 1045 return capnp.Struct(s).EncodeAsPtr(seg) 1046 } 1047 1048 func (MatrixFederation_getKeys_Results) DecodeFromPtr(p capnp.Ptr) MatrixFederation_getKeys_Results { 1049 return MatrixFederation_getKeys_Results(capnp.Struct{}.DecodeFromPtr(p)) 1050 } 1051 1052 func (s MatrixFederation_getKeys_Results) ToPtr() capnp.Ptr { 1053 return capnp.Struct(s).ToPtr() 1054 } 1055 func (s MatrixFederation_getKeys_Results) IsValid() bool { 1056 return capnp.Struct(s).IsValid() 1057 } 1058 1059 func (s MatrixFederation_getKeys_Results) Message() *capnp.Message { 1060 return capnp.Struct(s).Message() 1061 } 1062 1063 func (s MatrixFederation_getKeys_Results) Segment() *capnp.Segment { 1064 return capnp.Struct(s).Segment() 1065 } 1066 1067 // MatrixFederation_getKeys_Results_List is a list of MatrixFederation_getKeys_Results. 1068 type MatrixFederation_getKeys_Results_List = capnp.StructList[MatrixFederation_getKeys_Results] 1069 1070 // NewMatrixFederation_getKeys_Results creates a new list of MatrixFederation_getKeys_Results. 1071 func NewMatrixFederation_getKeys_Results_List(s *capnp.Segment, sz int32) (MatrixFederation_getKeys_Results_List, error) { 1072 l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz) 1073 return capnp.StructList[MatrixFederation_getKeys_Results](l), err 1074 } 1075 1076 // MatrixFederation_getKeys_Results_Future is a wrapper for a MatrixFederation_getKeys_Results promised by a client call. 1077 type MatrixFederation_getKeys_Results_Future struct{ *capnp.Future } 1078 1079 func (f MatrixFederation_getKeys_Results_Future) Struct() (MatrixFederation_getKeys_Results, error) { 1080 p, err := f.Future.Ptr() 1081 return MatrixFederation_getKeys_Results(p.Struct()), err 1082 } 1083 1084 type MatrixFederation_sendTransactions_Params capnp.Struct 1085 1086 // MatrixFederation_sendTransactions_Params_TypeID is the unique identifier for the type MatrixFederation_sendTransactions_Params. 1087 const MatrixFederation_sendTransactions_Params_TypeID = 0xff6b4b94e55e5d73 1088 1089 func NewMatrixFederation_sendTransactions_Params(s *capnp.Segment) (MatrixFederation_sendTransactions_Params, error) { 1090 st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}) 1091 return MatrixFederation_sendTransactions_Params(st), err 1092 } 1093 1094 func NewRootMatrixFederation_sendTransactions_Params(s *capnp.Segment) (MatrixFederation_sendTransactions_Params, error) { 1095 st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}) 1096 return MatrixFederation_sendTransactions_Params(st), err 1097 } 1098 1099 func ReadRootMatrixFederation_sendTransactions_Params(msg *capnp.Message) (MatrixFederation_sendTransactions_Params, error) { 1100 root, err := msg.Root() 1101 return MatrixFederation_sendTransactions_Params(root.Struct()), err 1102 } 1103 1104 func (s MatrixFederation_sendTransactions_Params) String() string { 1105 str, _ := text.Marshal(0xff6b4b94e55e5d73, capnp.Struct(s)) 1106 return str 1107 } 1108 1109 func (s MatrixFederation_sendTransactions_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr { 1110 return capnp.Struct(s).EncodeAsPtr(seg) 1111 } 1112 1113 func (MatrixFederation_sendTransactions_Params) DecodeFromPtr(p capnp.Ptr) MatrixFederation_sendTransactions_Params { 1114 return MatrixFederation_sendTransactions_Params(capnp.Struct{}.DecodeFromPtr(p)) 1115 } 1116 1117 func (s MatrixFederation_sendTransactions_Params) ToPtr() capnp.Ptr { 1118 return capnp.Struct(s).ToPtr() 1119 } 1120 func (s MatrixFederation_sendTransactions_Params) IsValid() bool { 1121 return capnp.Struct(s).IsValid() 1122 } 1123 1124 func (s MatrixFederation_sendTransactions_Params) Message() *capnp.Message { 1125 return capnp.Struct(s).Message() 1126 } 1127 1128 func (s MatrixFederation_sendTransactions_Params) Segment() *capnp.Segment { 1129 return capnp.Struct(s).Segment() 1130 } 1131 1132 // MatrixFederation_sendTransactions_Params_List is a list of MatrixFederation_sendTransactions_Params. 1133 type MatrixFederation_sendTransactions_Params_List = capnp.StructList[MatrixFederation_sendTransactions_Params] 1134 1135 // NewMatrixFederation_sendTransactions_Params creates a new list of MatrixFederation_sendTransactions_Params. 1136 func NewMatrixFederation_sendTransactions_Params_List(s *capnp.Segment, sz int32) (MatrixFederation_sendTransactions_Params_List, error) { 1137 l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz) 1138 return capnp.StructList[MatrixFederation_sendTransactions_Params](l), err 1139 } 1140 1141 // MatrixFederation_sendTransactions_Params_Future is a wrapper for a MatrixFederation_sendTransactions_Params promised by a client call. 1142 type MatrixFederation_sendTransactions_Params_Future struct{ *capnp.Future } 1143 1144 func (f MatrixFederation_sendTransactions_Params_Future) Struct() (MatrixFederation_sendTransactions_Params, error) { 1145 p, err := f.Future.Ptr() 1146 return MatrixFederation_sendTransactions_Params(p.Struct()), err 1147 } 1148 1149 type MatrixFederation_sendTransactions_Results capnp.Struct 1150 1151 // MatrixFederation_sendTransactions_Results_TypeID is the unique identifier for the type MatrixFederation_sendTransactions_Results. 1152 const MatrixFederation_sendTransactions_Results_TypeID = 0x9622325dc507c361 1153 1154 func NewMatrixFederation_sendTransactions_Results(s *capnp.Segment) (MatrixFederation_sendTransactions_Results, error) { 1155 st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}) 1156 return MatrixFederation_sendTransactions_Results(st), err 1157 } 1158 1159 func NewRootMatrixFederation_sendTransactions_Results(s *capnp.Segment) (MatrixFederation_sendTransactions_Results, error) { 1160 st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}) 1161 return MatrixFederation_sendTransactions_Results(st), err 1162 } 1163 1164 func ReadRootMatrixFederation_sendTransactions_Results(msg *capnp.Message) (MatrixFederation_sendTransactions_Results, error) { 1165 root, err := msg.Root() 1166 return MatrixFederation_sendTransactions_Results(root.Struct()), err 1167 } 1168 1169 func (s MatrixFederation_sendTransactions_Results) String() string { 1170 str, _ := text.Marshal(0x9622325dc507c361, capnp.Struct(s)) 1171 return str 1172 } 1173 1174 func (s MatrixFederation_sendTransactions_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr { 1175 return capnp.Struct(s).EncodeAsPtr(seg) 1176 } 1177 1178 func (MatrixFederation_sendTransactions_Results) DecodeFromPtr(p capnp.Ptr) MatrixFederation_sendTransactions_Results { 1179 return MatrixFederation_sendTransactions_Results(capnp.Struct{}.DecodeFromPtr(p)) 1180 } 1181 1182 func (s MatrixFederation_sendTransactions_Results) ToPtr() capnp.Ptr { 1183 return capnp.Struct(s).ToPtr() 1184 } 1185 func (s MatrixFederation_sendTransactions_Results) IsValid() bool { 1186 return capnp.Struct(s).IsValid() 1187 } 1188 1189 func (s MatrixFederation_sendTransactions_Results) Message() *capnp.Message { 1190 return capnp.Struct(s).Message() 1191 } 1192 1193 func (s MatrixFederation_sendTransactions_Results) Segment() *capnp.Segment { 1194 return capnp.Struct(s).Segment() 1195 } 1196 func (s MatrixFederation_sendTransactions_Results) Callback() StreamCallback { 1197 p, _ := capnp.Struct(s).Ptr(0) 1198 return StreamCallback(p.Interface().Client()) 1199 } 1200 1201 func (s MatrixFederation_sendTransactions_Results) HasCallback() bool { 1202 return capnp.Struct(s).HasPtr(0) 1203 } 1204 1205 func (s MatrixFederation_sendTransactions_Results) SetCallback(v StreamCallback) error { 1206 if !v.IsValid() { 1207 return capnp.Struct(s).SetPtr(0, capnp.Ptr{}) 1208 } 1209 seg := s.Segment() 1210 in := capnp.NewInterface(seg, seg.Message().CapTable().Add(capnp.Client(v))) 1211 return capnp.Struct(s).SetPtr(0, in.ToPtr()) 1212 } 1213 1214 // MatrixFederation_sendTransactions_Results_List is a list of MatrixFederation_sendTransactions_Results. 1215 type MatrixFederation_sendTransactions_Results_List = capnp.StructList[MatrixFederation_sendTransactions_Results] 1216 1217 // NewMatrixFederation_sendTransactions_Results creates a new list of MatrixFederation_sendTransactions_Results. 1218 func NewMatrixFederation_sendTransactions_Results_List(s *capnp.Segment, sz int32) (MatrixFederation_sendTransactions_Results_List, error) { 1219 l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz) 1220 return capnp.StructList[MatrixFederation_sendTransactions_Results](l), err 1221 } 1222 1223 // MatrixFederation_sendTransactions_Results_Future is a wrapper for a MatrixFederation_sendTransactions_Results promised by a client call. 1224 type MatrixFederation_sendTransactions_Results_Future struct{ *capnp.Future } 1225 1226 func (f MatrixFederation_sendTransactions_Results_Future) Struct() (MatrixFederation_sendTransactions_Results, error) { 1227 p, err := f.Future.Ptr() 1228 return MatrixFederation_sendTransactions_Results(p.Struct()), err 1229 } 1230 func (p MatrixFederation_sendTransactions_Results_Future) Callback() StreamCallback { 1231 return StreamCallback(p.Future.Field(0, nil).Client()) 1232 } 1233 1234 type MatrixFederation_backfill_Params capnp.Struct 1235 1236 // MatrixFederation_backfill_Params_TypeID is the unique identifier for the type MatrixFederation_backfill_Params. 1237 const MatrixFederation_backfill_Params_TypeID = 0xc423d46c6c56b237 1238 1239 func NewMatrixFederation_backfill_Params(s *capnp.Segment) (MatrixFederation_backfill_Params, error) { 1240 st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 4}) 1241 return MatrixFederation_backfill_Params(st), err 1242 } 1243 1244 func NewRootMatrixFederation_backfill_Params(s *capnp.Segment) (MatrixFederation_backfill_Params, error) { 1245 st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 4}) 1246 return MatrixFederation_backfill_Params(st), err 1247 } 1248 1249 func ReadRootMatrixFederation_backfill_Params(msg *capnp.Message) (MatrixFederation_backfill_Params, error) { 1250 root, err := msg.Root() 1251 return MatrixFederation_backfill_Params(root.Struct()), err 1252 } 1253 1254 func (s MatrixFederation_backfill_Params) String() string { 1255 str, _ := text.Marshal(0xc423d46c6c56b237, capnp.Struct(s)) 1256 return str 1257 } 1258 1259 func (s MatrixFederation_backfill_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr { 1260 return capnp.Struct(s).EncodeAsPtr(seg) 1261 } 1262 1263 func (MatrixFederation_backfill_Params) DecodeFromPtr(p capnp.Ptr) MatrixFederation_backfill_Params { 1264 return MatrixFederation_backfill_Params(capnp.Struct{}.DecodeFromPtr(p)) 1265 } 1266 1267 func (s MatrixFederation_backfill_Params) ToPtr() capnp.Ptr { 1268 return capnp.Struct(s).ToPtr() 1269 } 1270 func (s MatrixFederation_backfill_Params) IsValid() bool { 1271 return capnp.Struct(s).IsValid() 1272 } 1273 1274 func (s MatrixFederation_backfill_Params) Message() *capnp.Message { 1275 return capnp.Struct(s).Message() 1276 } 1277 1278 func (s MatrixFederation_backfill_Params) Segment() *capnp.Segment { 1279 return capnp.Struct(s).Segment() 1280 } 1281 func (s MatrixFederation_backfill_Params) Auth_data() (types.AuthData, error) { 1282 p, err := capnp.Struct(s).Ptr(0) 1283 return types.AuthData(p.Struct()), err 1284 } 1285 1286 func (s MatrixFederation_backfill_Params) HasAuth_data() bool { 1287 return capnp.Struct(s).HasPtr(0) 1288 } 1289 1290 func (s MatrixFederation_backfill_Params) SetAuth_data(v types.AuthData) error { 1291 return capnp.Struct(s).SetPtr(0, capnp.Struct(v).ToPtr()) 1292 } 1293 1294 // NewAuth_data sets the auth_data field to a newly 1295 // allocated types.AuthData struct, preferring placement in s's segment. 1296 func (s MatrixFederation_backfill_Params) NewAuth_data() (types.AuthData, error) { 1297 ss, err := types.NewAuthData(capnp.Struct(s).Segment()) 1298 if err != nil { 1299 return types.AuthData{}, err 1300 } 1301 err = capnp.Struct(s).SetPtr(0, capnp.Struct(ss).ToPtr()) 1302 return ss, err 1303 } 1304 1305 func (s MatrixFederation_backfill_Params) RoomID() (string, error) { 1306 p, err := capnp.Struct(s).Ptr(1) 1307 return p.Text(), err 1308 } 1309 1310 func (s MatrixFederation_backfill_Params) HasRoomID() bool { 1311 return capnp.Struct(s).HasPtr(1) 1312 } 1313 1314 func (s MatrixFederation_backfill_Params) RoomIDBytes() ([]byte, error) { 1315 p, err := capnp.Struct(s).Ptr(1) 1316 return p.TextBytes(), err 1317 } 1318 1319 func (s MatrixFederation_backfill_Params) SetRoomID(v string) error { 1320 return capnp.Struct(s).SetText(1, v) 1321 } 1322 1323 func (s MatrixFederation_backfill_Params) Limit() uint32 { 1324 return capnp.Struct(s).Uint32(0) 1325 } 1326 1327 func (s MatrixFederation_backfill_Params) SetLimit(v uint32) { 1328 capnp.Struct(s).SetUint32(0, v) 1329 } 1330 1331 func (s MatrixFederation_backfill_Params) EventIDs() (capnp.TextList, error) { 1332 p, err := capnp.Struct(s).Ptr(2) 1333 return capnp.TextList(p.List()), err 1334 } 1335 1336 func (s MatrixFederation_backfill_Params) HasEventIDs() bool { 1337 return capnp.Struct(s).HasPtr(2) 1338 } 1339 1340 func (s MatrixFederation_backfill_Params) SetEventIDs(v capnp.TextList) error { 1341 return capnp.Struct(s).SetPtr(2, v.ToPtr()) 1342 } 1343 1344 // NewEventIDs sets the eventIDs field to a newly 1345 // allocated capnp.TextList, preferring placement in s's segment. 1346 func (s MatrixFederation_backfill_Params) NewEventIDs(n int32) (capnp.TextList, error) { 1347 l, err := capnp.NewTextList(capnp.Struct(s).Segment(), n) 1348 if err != nil { 1349 return capnp.TextList{}, err 1350 } 1351 err = capnp.Struct(s).SetPtr(2, l.ToPtr()) 1352 return l, err 1353 } 1354 func (s MatrixFederation_backfill_Params) Callback() StreamCallback { 1355 p, _ := capnp.Struct(s).Ptr(3) 1356 return StreamCallback(p.Interface().Client()) 1357 } 1358 1359 func (s MatrixFederation_backfill_Params) HasCallback() bool { 1360 return capnp.Struct(s).HasPtr(3) 1361 } 1362 1363 func (s MatrixFederation_backfill_Params) SetCallback(v StreamCallback) error { 1364 if !v.IsValid() { 1365 return capnp.Struct(s).SetPtr(3, capnp.Ptr{}) 1366 } 1367 seg := s.Segment() 1368 in := capnp.NewInterface(seg, seg.Message().CapTable().Add(capnp.Client(v))) 1369 return capnp.Struct(s).SetPtr(3, in.ToPtr()) 1370 } 1371 1372 // MatrixFederation_backfill_Params_List is a list of MatrixFederation_backfill_Params. 1373 type MatrixFederation_backfill_Params_List = capnp.StructList[MatrixFederation_backfill_Params] 1374 1375 // NewMatrixFederation_backfill_Params creates a new list of MatrixFederation_backfill_Params. 1376 func NewMatrixFederation_backfill_Params_List(s *capnp.Segment, sz int32) (MatrixFederation_backfill_Params_List, error) { 1377 l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 4}, sz) 1378 return capnp.StructList[MatrixFederation_backfill_Params](l), err 1379 } 1380 1381 // MatrixFederation_backfill_Params_Future is a wrapper for a MatrixFederation_backfill_Params promised by a client call. 1382 type MatrixFederation_backfill_Params_Future struct{ *capnp.Future } 1383 1384 func (f MatrixFederation_backfill_Params_Future) Struct() (MatrixFederation_backfill_Params, error) { 1385 p, err := f.Future.Ptr() 1386 return MatrixFederation_backfill_Params(p.Struct()), err 1387 } 1388 func (p MatrixFederation_backfill_Params_Future) Auth_data() types.AuthData_Future { 1389 return types.AuthData_Future{Future: p.Future.Field(0, nil)} 1390 } 1391 func (p MatrixFederation_backfill_Params_Future) Callback() StreamCallback { 1392 return StreamCallback(p.Future.Field(3, nil).Client()) 1393 } 1394 1395 type MatrixFederation_backfill_Results capnp.Struct 1396 1397 // MatrixFederation_backfill_Results_TypeID is the unique identifier for the type MatrixFederation_backfill_Results. 1398 const MatrixFederation_backfill_Results_TypeID = 0x8c1d77025e504f82 1399 1400 func NewMatrixFederation_backfill_Results(s *capnp.Segment) (MatrixFederation_backfill_Results, error) { 1401 st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}) 1402 return MatrixFederation_backfill_Results(st), err 1403 } 1404 1405 func NewRootMatrixFederation_backfill_Results(s *capnp.Segment) (MatrixFederation_backfill_Results, error) { 1406 st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}) 1407 return MatrixFederation_backfill_Results(st), err 1408 } 1409 1410 func ReadRootMatrixFederation_backfill_Results(msg *capnp.Message) (MatrixFederation_backfill_Results, error) { 1411 root, err := msg.Root() 1412 return MatrixFederation_backfill_Results(root.Struct()), err 1413 } 1414 1415 func (s MatrixFederation_backfill_Results) String() string { 1416 str, _ := text.Marshal(0x8c1d77025e504f82, capnp.Struct(s)) 1417 return str 1418 } 1419 1420 func (s MatrixFederation_backfill_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr { 1421 return capnp.Struct(s).EncodeAsPtr(seg) 1422 } 1423 1424 func (MatrixFederation_backfill_Results) DecodeFromPtr(p capnp.Ptr) MatrixFederation_backfill_Results { 1425 return MatrixFederation_backfill_Results(capnp.Struct{}.DecodeFromPtr(p)) 1426 } 1427 1428 func (s MatrixFederation_backfill_Results) ToPtr() capnp.Ptr { 1429 return capnp.Struct(s).ToPtr() 1430 } 1431 func (s MatrixFederation_backfill_Results) IsValid() bool { 1432 return capnp.Struct(s).IsValid() 1433 } 1434 1435 func (s MatrixFederation_backfill_Results) Message() *capnp.Message { 1436 return capnp.Struct(s).Message() 1437 } 1438 1439 func (s MatrixFederation_backfill_Results) Segment() *capnp.Segment { 1440 return capnp.Struct(s).Segment() 1441 } 1442 1443 // MatrixFederation_backfill_Results_List is a list of MatrixFederation_backfill_Results. 1444 type MatrixFederation_backfill_Results_List = capnp.StructList[MatrixFederation_backfill_Results] 1445 1446 // NewMatrixFederation_backfill_Results creates a new list of MatrixFederation_backfill_Results. 1447 func NewMatrixFederation_backfill_Results_List(s *capnp.Segment, sz int32) (MatrixFederation_backfill_Results_List, error) { 1448 l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz) 1449 return capnp.StructList[MatrixFederation_backfill_Results](l), err 1450 } 1451 1452 // MatrixFederation_backfill_Results_Future is a wrapper for a MatrixFederation_backfill_Results promised by a client call. 1453 type MatrixFederation_backfill_Results_Future struct{ *capnp.Future } 1454 1455 func (f MatrixFederation_backfill_Results_Future) Struct() (MatrixFederation_backfill_Results, error) { 1456 p, err := f.Future.Ptr() 1457 return MatrixFederation_backfill_Results(p.Struct()), err 1458 } 1459 1460 const schema_ee8fadeb6a9300eb = "x\xda\xacVkl\x14U\x14>\xdf\xbdSf\x17v" + 1461 "\x97\xbd\xdd\x12\xc5DV\x91\xc4bl\xcb\xb21\x08\xfc" + 1462 "\xa0\x85\x02\xb6\x84\xb8\x97R\x12\x08\xd0\x0c\xed\x00K\xf7" + 1463 "\x01;\xd3\x16\x82(\"\x8d\x82\xe5Q) D~\x88" + 1464 "\xe2\x0bID\x12c\x10\x15\x02H0\xd1\xa4>\x121" + 1465 "\xf1\xc1\x0f\x0c\x09h\xa2\xfe0*2\xe6Nw\xb6[" + 1466 "\xb5\x11\xd2\xfe\xd9d\xe7;\xf7<\xbe\xef\xdes\xce\xa4" + 1467 "\xd9Z\xb5\x16\x0b\xee/%&\xbf*\x19\xe1|vb" + 1468 ">\xfba\xe7\xc1'I\x94\xf3\xbf\xae\xedYs\xed\xd8" + 1469 "\xae\x9f\x88\xc2\x88\xc7\xfc'\x11\xa9\xf3\xebD\x91\xd9\xfe" + 1470 "\xa7#\xbd~=\xd2\xeb\x1f\xedly4\xb1\x9cu\xdc" + 1471 "\xddEb*\x884\x9d(~\xde\xbf\x80\x91\xe6\xdc[" + 1472 "\xca\x8f\xbf\xfbz\xc5\xee\"\xe4\x8c\xbf^!\xc6Y\xfd" + 1473 "\xfc\xb2\xc9\xe3\xf7\xf5!%P\xd0\xfb\xfe\xe7\x18!\xf2" + 1474 "\x8d\x7f\x06\xc19V\xf5\xd0\xc9\xa5c_\xd8\x9f7`" + 1475 "\xca 6r\xa62\xa8\x1b\xd9Ap\xbe\xbb\xf8\xf3\x8d" + 1476 "\x9e\x85s_)\xf2\x9d\x1e\xb5D\xf9\x9e\xf2\xf6\xa2T" + 1477 "\xea\x8b\xfb\xce\x91\x9c\x0au\xd6\xc5\x92\xa3\xea\x19!\xde" + 1478 "9*\x0a\x82s\xcf\xd5\x8a\xda\x86\xc5\x87.\x92\x98\xd2" + 1479 "\x17>\x8c\xf8\xe5\xc0x\xe5\xfd\xf7\x80\x0a/\x9f?k" + 1480 "\x94^\xd8\xf8y\x9f\x81\xa6\xf0\xb1\xc1\xf1\xca\xfb\xac\xcd" + 1481 "\x8f\xbf\xd4\xbb\xbb\xf1\x0au\x97\x97\xb0\x02=\x88\x8b\xe0" + 1482 "AD&\x06u\xa2\x86\x09A\xae\x82lI7\xf8n" + 1483 "65\xfdZ\\\xe3\x98\xe0\x0a\x15$\x16TA\xc6\x1d" + 1484 "\x98;\xfd\xd9\xdaI\xbf\x0d \x1a\xf1\xc6\xe0\xc7\x88\xac" + 1485 "\x0b\xba\x15\x05uD\x0e\x85t\"\xc7Z\xb6\xfcJ\xcf" + 1486 "\xbcV\xa7\xa8\xde\xce\xd0v\x95\xd1\x9b\xeb\xc7n\xac\xec" + 1487 "\xfa\xc3)\xca\xb53t\x17#\x87N9ksY;" + 1488 "[\xb5\xd2,i1s\x86\x9d\xccf\xaa\xdacU+" + 1489 "M\xef_e{\xac\xb2\xd9X\x9bY;\xad\xc1\xce\x99" + 1490 "Fz\x961#\x95Za4\xb7&\x00\xe9\xe3%D" + 1491 "\x05\xaa\x909~\xba#~\xb0\xe9\x80\x88M&\xaay" + 1492 "\x10Db\xaa\x0e\x14\xc2\xc3\xe3LT<@TS\x8e" + 1493 "\x9a\x87!\xea\xf4hG.i\x9b\x02Q\xa91\xf4\xdf" + 1494 "-\xa5L5F\xb7d3\xff\x8d\x0dr \x01\xd4h" + 1495 "\x10(\xc5\xc2Bm\xbe\xff\xabm\xbea\xe7\x92\xeb\xe7" + 1496 "\xf4#\xaa\xc2\x95\xc9Tj\xc2\x02\xd3jK\xd9\xb0\x86" + 1497 "\xe0k\x95i\xcf37XyW\x16Q\xc1\x97\xff\xb6" + 1498 "}Yf\xa6ea\xce\xc8XF\xb3\xfao\x15\xf2\x93" + 1499 "\x1a\xd7\x884\xc5K\xb0\x9eH\x068\xe4#\x0cN\xb3" + 1500 "\xd1'\x17\x11A\xf4s\xa5\x98\xfa\x17\x81\x8a\xd3;\xa4" + 1501 "\x06\x00\x09\x0e\x84\x9d\xc5\x9ft\x9c\x9bS}j+\x11" + 1502 " \x08\xc3\xc0A\xc2\xc8\x19i\x8b\xa4\xaf\x90\xed\xc4\x15" + 1503 "D\xb2\x9cC\x9ec\x10@\x99+\xed\x19U\xc2i\x0e" + 1504 "y\x83\xc1\xb1\xcc\\\xbb\x99kj%\xdd\xdc`!\xec" + 1505 "D.|xd\xcf\xb8\x8e7\x06\x14Q\xf4Q\xe0~" + 1506 "\xe9SEH\x1fW\xbfa\x0e\x04\x88\x0d\xe9dM\xe2" + 1507 "z\xcb\xbc\xc5\x1f\xbd\xa7\x98\x08\xd3\x10i\xed\x89\xbd\xba" + 1508 "\x86\xf5\x9c\xea\x1e\x16Z\x17\x999+\x99\xcd\xb8\xcc\xf2" + 1509 "\xb45\x1cw>/\x12\xc9\xb2\x82J\x9b\x16\x10\xc9\xc7" + 1510 "8\xe43E*uN#\x92\x9b9d\x17\x03X\x19" + 1511 "\x18\x91\xd86\x99Hn\xe5\x90\xbb\x19\x04ge\xe0D" + 1512 "b\x87\x92\xb3\x8bC\xbe\xc6 4^\x06\x8dH\x1cQ" + 1513 "\x1f_\xe6\x90\xdf38F\x9b\xbd\xba\xa9\xc5\xb0\x09\x06" + 1514 "\xc2N\xf7\xf1\x0fvM|\xea\xf0\xa5<\xdb3r\xd9" + 1515 "l\xba\xae\xd6\x95\"@\x88\xa6\x92\xe9\xa4\x0d\x1f1\xf8" + 1516 "\x08\x8e\xd9nf\xec\xbaZKI\x11\"\x97be\x18" + 1517 "\x1a\xaaJ\xe6\xa7k\xde\x8a\x8c\xd9\xfb\xcb?U\xd2o" + 1518 "\xb5Q\xf6\xc5\xaet\xbb\x9b\xe2T7\xd2\x03\x9e\xa9b" + 1519 "\xca\xc7!\xcb\x18\xa2\xedF\xaa\xcdD)\x06$\x84\xd2" + 1520 "!\x84U}\xd3\xed\x0ez\xca\xb6n\xbd\xcb\xa7M{" + 1521 "u\xb6\xa5\xb1\x91\xd7\xd5&\x00\xf8\x89\x0d\xcf\xf5\xf42" + 1522 ")& \x97\xefSw\x16\x1e\xf9\"\x93\xa2\xae=\xc2" + 1523 "\xce;\xdf\x1e>:\xfdR\xfc\xaa\xf7\xe4\xbc4F\xdc" + 1524 "n\x1aD\x09\xf7-\xabY\xe5\xed\x04\xf0F\xafX\xb7" + 1525 "D\xb4E\x09b\x9b\x9aT\xdeN\x01o/\x11\x9bf" + 1526 "\x8aM\x0a\xee\xd6\xc1\x0a\x13\x16\xder\":\xb7\x8b\x1d" + 1527 "\x0a~Q\x07/\xac\x15\xf0\xf6\x1d\xb1\xb7^\x1cP\xf0" + 1528 "1\xdd\xf1\xb8 \x9e\xcdH\x0d\xac\x7fMP\xf7\xb0&" + 1529 "\x00\xf8\x9d\xde\xdax\xf4\xea\x89qG\x89P\x8d'\xf2" + 1530 "=s0\xe3\xd0\x97_\xef\x1b\xd3[\xb1\xc75v\xbc" + 1531 "\xc1\x00o2\x10\x0dr\xf0\xcf\xadKW]N\xb5^" + 1532 "w\x8fyo\x9e\x065w~\x0c\xec\xba\xb9cgh" + 1533 "\xbf\x1b'\x01\x0c\xe7\xf4\xf2:\xcd\xd0ny\xbe\xf5\xfd" + 1534 "\x1d\x00\x00\xff\xff\xb0\xce:\xf3" 1535 1536 func RegisterSchema(reg *schemas.Registry) { 1537 reg.Register(&schemas.Schema{ 1538 String: schema_ee8fadeb6a9300eb, 1539 Nodes: []uint64{ 1540 0x819a8ee6024db3d2, 1541 0x8c1d77025e504f82, 1542 0x902da9b8b1031221, 1543 0x9622325dc507c361, 1544 0x979c195cba352fad, 1545 0xa6475494fcf1c9df, 1546 0xc423d46c6c56b237, 1547 0xc99d5953442de820, 1548 0xd37bc71261c39851, 1549 0xe55590d1a37e8043, 1550 0xf35f5ffe08536d82, 1551 0xf730448b3b47991e, 1552 0xff6b4b94e55e5d73, 1553 0xfffa8c2e7b1978ac, 1554 }, 1555 Compressed: true, 1556 }) 1557 }