forked from capnproto/go-capnp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hash.capnp.go
605 lines (492 loc) · 20.1 KB
/
hash.capnp.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
// Code generated by capnpc-go. DO NOT EDIT.
package hashes
import (
context "golang.org/x/net/context"
capnp "zombiezen.com/go/capnproto2"
text "zombiezen.com/go/capnproto2/encoding/text"
schemas "zombiezen.com/go/capnproto2/schemas"
server "zombiezen.com/go/capnproto2/server"
)
type HashFactory struct{ Client capnp.Client }
// HashFactory_TypeID is the unique identifier for the type HashFactory.
const HashFactory_TypeID = 0xaead580f97fddabc
func (c HashFactory) NewSha1(ctx context.Context, params func(HashFactory_newSha1_Params) error, opts ...capnp.CallOption) HashFactory_newSha1_Results_Promise {
if c.Client == nil {
return HashFactory_newSha1_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
}
call := &capnp.Call{
Ctx: ctx,
Method: capnp.Method{
InterfaceID: 0xaead580f97fddabc,
MethodID: 0,
InterfaceName: "hash.capnp:HashFactory",
MethodName: "newSha1",
},
Options: capnp.NewCallOptions(opts),
}
if params != nil {
call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 0}
call.ParamsFunc = func(s capnp.Struct) error { return params(HashFactory_newSha1_Params{Struct: s}) }
}
return HashFactory_newSha1_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
}
type HashFactory_Server interface {
NewSha1(HashFactory_newSha1) error
}
func HashFactory_ServerToClient(s HashFactory_Server) HashFactory {
c, _ := s.(server.Closer)
return HashFactory{Client: server.New(HashFactory_Methods(nil, s), c)}
}
func HashFactory_Methods(methods []server.Method, s HashFactory_Server) []server.Method {
if cap(methods) == 0 {
methods = make([]server.Method, 0, 1)
}
methods = append(methods, server.Method{
Method: capnp.Method{
InterfaceID: 0xaead580f97fddabc,
MethodID: 0,
InterfaceName: "hash.capnp:HashFactory",
MethodName: "newSha1",
},
Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
call := HashFactory_newSha1{c, opts, HashFactory_newSha1_Params{Struct: p}, HashFactory_newSha1_Results{Struct: r}}
return s.NewSha1(call)
},
ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 1},
})
return methods
}
// HashFactory_newSha1 holds the arguments for a server call to HashFactory.newSha1.
type HashFactory_newSha1 struct {
Ctx context.Context
Options capnp.CallOptions
Params HashFactory_newSha1_Params
Results HashFactory_newSha1_Results
}
type HashFactory_newSha1_Params struct{ capnp.Struct }
// HashFactory_newSha1_Params_TypeID is the unique identifier for the type HashFactory_newSha1_Params.
const HashFactory_newSha1_Params_TypeID = 0x92b20ad1a58ca0ca
func NewHashFactory_newSha1_Params(s *capnp.Segment) (HashFactory_newSha1_Params, error) {
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
return HashFactory_newSha1_Params{st}, err
}
func NewRootHashFactory_newSha1_Params(s *capnp.Segment) (HashFactory_newSha1_Params, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
return HashFactory_newSha1_Params{st}, err
}
func ReadRootHashFactory_newSha1_Params(msg *capnp.Message) (HashFactory_newSha1_Params, error) {
root, err := msg.RootPtr()
return HashFactory_newSha1_Params{root.Struct()}, err
}
func (s HashFactory_newSha1_Params) String() string {
str, _ := text.Marshal(0x92b20ad1a58ca0ca, s.Struct)
return str
}
// HashFactory_newSha1_Params_List is a list of HashFactory_newSha1_Params.
type HashFactory_newSha1_Params_List struct{ capnp.List }
// NewHashFactory_newSha1_Params creates a new list of HashFactory_newSha1_Params.
func NewHashFactory_newSha1_Params_List(s *capnp.Segment, sz int32) (HashFactory_newSha1_Params_List, error) {
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
return HashFactory_newSha1_Params_List{l}, err
}
func (s HashFactory_newSha1_Params_List) At(i int) HashFactory_newSha1_Params {
return HashFactory_newSha1_Params{s.List.Struct(i)}
}
func (s HashFactory_newSha1_Params_List) Set(i int, v HashFactory_newSha1_Params) error {
return s.List.SetStruct(i, v.Struct)
}
func (s HashFactory_newSha1_Params_List) String() string {
str, _ := text.MarshalList(0x92b20ad1a58ca0ca, s.List)
return str
}
// HashFactory_newSha1_Params_Promise is a wrapper for a HashFactory_newSha1_Params promised by a client call.
type HashFactory_newSha1_Params_Promise struct{ *capnp.Pipeline }
func (p HashFactory_newSha1_Params_Promise) Struct() (HashFactory_newSha1_Params, error) {
s, err := p.Pipeline.Struct()
return HashFactory_newSha1_Params{s}, err
}
type HashFactory_newSha1_Results struct{ capnp.Struct }
// HashFactory_newSha1_Results_TypeID is the unique identifier for the type HashFactory_newSha1_Results.
const HashFactory_newSha1_Results_TypeID = 0xea3e50f7663f7bdf
func NewHashFactory_newSha1_Results(s *capnp.Segment) (HashFactory_newSha1_Results, error) {
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
return HashFactory_newSha1_Results{st}, err
}
func NewRootHashFactory_newSha1_Results(s *capnp.Segment) (HashFactory_newSha1_Results, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
return HashFactory_newSha1_Results{st}, err
}
func ReadRootHashFactory_newSha1_Results(msg *capnp.Message) (HashFactory_newSha1_Results, error) {
root, err := msg.RootPtr()
return HashFactory_newSha1_Results{root.Struct()}, err
}
func (s HashFactory_newSha1_Results) String() string {
str, _ := text.Marshal(0xea3e50f7663f7bdf, s.Struct)
return str
}
func (s HashFactory_newSha1_Results) Hash() Hash {
p, _ := s.Struct.Ptr(0)
return Hash{Client: p.Interface().Client()}
}
func (s HashFactory_newSha1_Results) HasHash() bool {
p, err := s.Struct.Ptr(0)
return p.IsValid() || err != nil
}
func (s HashFactory_newSha1_Results) SetHash(v Hash) error {
if v.Client == nil {
return s.Struct.SetPtr(0, capnp.Ptr{})
}
seg := s.Segment()
in := capnp.NewInterface(seg, seg.Message().AddCap(v.Client))
return s.Struct.SetPtr(0, in.ToPtr())
}
// HashFactory_newSha1_Results_List is a list of HashFactory_newSha1_Results.
type HashFactory_newSha1_Results_List struct{ capnp.List }
// NewHashFactory_newSha1_Results creates a new list of HashFactory_newSha1_Results.
func NewHashFactory_newSha1_Results_List(s *capnp.Segment, sz int32) (HashFactory_newSha1_Results_List, error) {
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
return HashFactory_newSha1_Results_List{l}, err
}
func (s HashFactory_newSha1_Results_List) At(i int) HashFactory_newSha1_Results {
return HashFactory_newSha1_Results{s.List.Struct(i)}
}
func (s HashFactory_newSha1_Results_List) Set(i int, v HashFactory_newSha1_Results) error {
return s.List.SetStruct(i, v.Struct)
}
func (s HashFactory_newSha1_Results_List) String() string {
str, _ := text.MarshalList(0xea3e50f7663f7bdf, s.List)
return str
}
// HashFactory_newSha1_Results_Promise is a wrapper for a HashFactory_newSha1_Results promised by a client call.
type HashFactory_newSha1_Results_Promise struct{ *capnp.Pipeline }
func (p HashFactory_newSha1_Results_Promise) Struct() (HashFactory_newSha1_Results, error) {
s, err := p.Pipeline.Struct()
return HashFactory_newSha1_Results{s}, err
}
func (p HashFactory_newSha1_Results_Promise) Hash() Hash {
return Hash{Client: p.Pipeline.GetPipeline(0).Client()}
}
type Hash struct{ Client capnp.Client }
// Hash_TypeID is the unique identifier for the type Hash.
const Hash_TypeID = 0xf29f97dd675a9431
func (c Hash) Write(ctx context.Context, params func(Hash_write_Params) error, opts ...capnp.CallOption) Hash_write_Results_Promise {
if c.Client == nil {
return Hash_write_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
}
call := &capnp.Call{
Ctx: ctx,
Method: capnp.Method{
InterfaceID: 0xf29f97dd675a9431,
MethodID: 0,
InterfaceName: "hash.capnp:Hash",
MethodName: "write",
},
Options: capnp.NewCallOptions(opts),
}
if params != nil {
call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 1}
call.ParamsFunc = func(s capnp.Struct) error { return params(Hash_write_Params{Struct: s}) }
}
return Hash_write_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
}
func (c Hash) Sum(ctx context.Context, params func(Hash_sum_Params) error, opts ...capnp.CallOption) Hash_sum_Results_Promise {
if c.Client == nil {
return Hash_sum_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
}
call := &capnp.Call{
Ctx: ctx,
Method: capnp.Method{
InterfaceID: 0xf29f97dd675a9431,
MethodID: 1,
InterfaceName: "hash.capnp:Hash",
MethodName: "sum",
},
Options: capnp.NewCallOptions(opts),
}
if params != nil {
call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 0}
call.ParamsFunc = func(s capnp.Struct) error { return params(Hash_sum_Params{Struct: s}) }
}
return Hash_sum_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
}
type Hash_Server interface {
Write(Hash_write) error
Sum(Hash_sum) error
}
func Hash_ServerToClient(s Hash_Server) Hash {
c, _ := s.(server.Closer)
return Hash{Client: server.New(Hash_Methods(nil, s), c)}
}
func Hash_Methods(methods []server.Method, s Hash_Server) []server.Method {
if cap(methods) == 0 {
methods = make([]server.Method, 0, 2)
}
methods = append(methods, server.Method{
Method: capnp.Method{
InterfaceID: 0xf29f97dd675a9431,
MethodID: 0,
InterfaceName: "hash.capnp:Hash",
MethodName: "write",
},
Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
call := Hash_write{c, opts, Hash_write_Params{Struct: p}, Hash_write_Results{Struct: r}}
return s.Write(call)
},
ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 0},
})
methods = append(methods, server.Method{
Method: capnp.Method{
InterfaceID: 0xf29f97dd675a9431,
MethodID: 1,
InterfaceName: "hash.capnp:Hash",
MethodName: "sum",
},
Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
call := Hash_sum{c, opts, Hash_sum_Params{Struct: p}, Hash_sum_Results{Struct: r}}
return s.Sum(call)
},
ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 1},
})
return methods
}
// Hash_write holds the arguments for a server call to Hash.write.
type Hash_write struct {
Ctx context.Context
Options capnp.CallOptions
Params Hash_write_Params
Results Hash_write_Results
}
// Hash_sum holds the arguments for a server call to Hash.sum.
type Hash_sum struct {
Ctx context.Context
Options capnp.CallOptions
Params Hash_sum_Params
Results Hash_sum_Results
}
type Hash_write_Params struct{ capnp.Struct }
// Hash_write_Params_TypeID is the unique identifier for the type Hash_write_Params.
const Hash_write_Params_TypeID = 0xdffe94ae546cdee3
func NewHash_write_Params(s *capnp.Segment) (Hash_write_Params, error) {
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
return Hash_write_Params{st}, err
}
func NewRootHash_write_Params(s *capnp.Segment) (Hash_write_Params, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
return Hash_write_Params{st}, err
}
func ReadRootHash_write_Params(msg *capnp.Message) (Hash_write_Params, error) {
root, err := msg.RootPtr()
return Hash_write_Params{root.Struct()}, err
}
func (s Hash_write_Params) String() string {
str, _ := text.Marshal(0xdffe94ae546cdee3, s.Struct)
return str
}
func (s Hash_write_Params) Data() ([]byte, error) {
p, err := s.Struct.Ptr(0)
return []byte(p.Data()), err
}
func (s Hash_write_Params) HasData() bool {
p, err := s.Struct.Ptr(0)
return p.IsValid() || err != nil
}
func (s Hash_write_Params) SetData(v []byte) error {
return s.Struct.SetData(0, v)
}
// Hash_write_Params_List is a list of Hash_write_Params.
type Hash_write_Params_List struct{ capnp.List }
// NewHash_write_Params creates a new list of Hash_write_Params.
func NewHash_write_Params_List(s *capnp.Segment, sz int32) (Hash_write_Params_List, error) {
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
return Hash_write_Params_List{l}, err
}
func (s Hash_write_Params_List) At(i int) Hash_write_Params {
return Hash_write_Params{s.List.Struct(i)}
}
func (s Hash_write_Params_List) Set(i int, v Hash_write_Params) error {
return s.List.SetStruct(i, v.Struct)
}
func (s Hash_write_Params_List) String() string {
str, _ := text.MarshalList(0xdffe94ae546cdee3, s.List)
return str
}
// Hash_write_Params_Promise is a wrapper for a Hash_write_Params promised by a client call.
type Hash_write_Params_Promise struct{ *capnp.Pipeline }
func (p Hash_write_Params_Promise) Struct() (Hash_write_Params, error) {
s, err := p.Pipeline.Struct()
return Hash_write_Params{s}, err
}
type Hash_write_Results struct{ capnp.Struct }
// Hash_write_Results_TypeID is the unique identifier for the type Hash_write_Results.
const Hash_write_Results_TypeID = 0x80ac741ec7fb8f65
func NewHash_write_Results(s *capnp.Segment) (Hash_write_Results, error) {
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
return Hash_write_Results{st}, err
}
func NewRootHash_write_Results(s *capnp.Segment) (Hash_write_Results, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
return Hash_write_Results{st}, err
}
func ReadRootHash_write_Results(msg *capnp.Message) (Hash_write_Results, error) {
root, err := msg.RootPtr()
return Hash_write_Results{root.Struct()}, err
}
func (s Hash_write_Results) String() string {
str, _ := text.Marshal(0x80ac741ec7fb8f65, s.Struct)
return str
}
// Hash_write_Results_List is a list of Hash_write_Results.
type Hash_write_Results_List struct{ capnp.List }
// NewHash_write_Results creates a new list of Hash_write_Results.
func NewHash_write_Results_List(s *capnp.Segment, sz int32) (Hash_write_Results_List, error) {
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
return Hash_write_Results_List{l}, err
}
func (s Hash_write_Results_List) At(i int) Hash_write_Results {
return Hash_write_Results{s.List.Struct(i)}
}
func (s Hash_write_Results_List) Set(i int, v Hash_write_Results) error {
return s.List.SetStruct(i, v.Struct)
}
func (s Hash_write_Results_List) String() string {
str, _ := text.MarshalList(0x80ac741ec7fb8f65, s.List)
return str
}
// Hash_write_Results_Promise is a wrapper for a Hash_write_Results promised by a client call.
type Hash_write_Results_Promise struct{ *capnp.Pipeline }
func (p Hash_write_Results_Promise) Struct() (Hash_write_Results, error) {
s, err := p.Pipeline.Struct()
return Hash_write_Results{s}, err
}
type Hash_sum_Params struct{ capnp.Struct }
// Hash_sum_Params_TypeID is the unique identifier for the type Hash_sum_Params.
const Hash_sum_Params_TypeID = 0xe74bb2d0190cf89c
func NewHash_sum_Params(s *capnp.Segment) (Hash_sum_Params, error) {
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
return Hash_sum_Params{st}, err
}
func NewRootHash_sum_Params(s *capnp.Segment) (Hash_sum_Params, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
return Hash_sum_Params{st}, err
}
func ReadRootHash_sum_Params(msg *capnp.Message) (Hash_sum_Params, error) {
root, err := msg.RootPtr()
return Hash_sum_Params{root.Struct()}, err
}
func (s Hash_sum_Params) String() string {
str, _ := text.Marshal(0xe74bb2d0190cf89c, s.Struct)
return str
}
// Hash_sum_Params_List is a list of Hash_sum_Params.
type Hash_sum_Params_List struct{ capnp.List }
// NewHash_sum_Params creates a new list of Hash_sum_Params.
func NewHash_sum_Params_List(s *capnp.Segment, sz int32) (Hash_sum_Params_List, error) {
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
return Hash_sum_Params_List{l}, err
}
func (s Hash_sum_Params_List) At(i int) Hash_sum_Params { return Hash_sum_Params{s.List.Struct(i)} }
func (s Hash_sum_Params_List) Set(i int, v Hash_sum_Params) error {
return s.List.SetStruct(i, v.Struct)
}
func (s Hash_sum_Params_List) String() string {
str, _ := text.MarshalList(0xe74bb2d0190cf89c, s.List)
return str
}
// Hash_sum_Params_Promise is a wrapper for a Hash_sum_Params promised by a client call.
type Hash_sum_Params_Promise struct{ *capnp.Pipeline }
func (p Hash_sum_Params_Promise) Struct() (Hash_sum_Params, error) {
s, err := p.Pipeline.Struct()
return Hash_sum_Params{s}, err
}
type Hash_sum_Results struct{ capnp.Struct }
// Hash_sum_Results_TypeID is the unique identifier for the type Hash_sum_Results.
const Hash_sum_Results_TypeID = 0xd093963b95a4e107
func NewHash_sum_Results(s *capnp.Segment) (Hash_sum_Results, error) {
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
return Hash_sum_Results{st}, err
}
func NewRootHash_sum_Results(s *capnp.Segment) (Hash_sum_Results, error) {
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
return Hash_sum_Results{st}, err
}
func ReadRootHash_sum_Results(msg *capnp.Message) (Hash_sum_Results, error) {
root, err := msg.RootPtr()
return Hash_sum_Results{root.Struct()}, err
}
func (s Hash_sum_Results) String() string {
str, _ := text.Marshal(0xd093963b95a4e107, s.Struct)
return str
}
func (s Hash_sum_Results) Hash() ([]byte, error) {
p, err := s.Struct.Ptr(0)
return []byte(p.Data()), err
}
func (s Hash_sum_Results) HasHash() bool {
p, err := s.Struct.Ptr(0)
return p.IsValid() || err != nil
}
func (s Hash_sum_Results) SetHash(v []byte) error {
return s.Struct.SetData(0, v)
}
// Hash_sum_Results_List is a list of Hash_sum_Results.
type Hash_sum_Results_List struct{ capnp.List }
// NewHash_sum_Results creates a new list of Hash_sum_Results.
func NewHash_sum_Results_List(s *capnp.Segment, sz int32) (Hash_sum_Results_List, error) {
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
return Hash_sum_Results_List{l}, err
}
func (s Hash_sum_Results_List) At(i int) Hash_sum_Results { return Hash_sum_Results{s.List.Struct(i)} }
func (s Hash_sum_Results_List) Set(i int, v Hash_sum_Results) error {
return s.List.SetStruct(i, v.Struct)
}
func (s Hash_sum_Results_List) String() string {
str, _ := text.MarshalList(0xd093963b95a4e107, s.List)
return str
}
// Hash_sum_Results_Promise is a wrapper for a Hash_sum_Results promised by a client call.
type Hash_sum_Results_Promise struct{ *capnp.Pipeline }
func (p Hash_sum_Results_Promise) Struct() (Hash_sum_Results, error) {
s, err := p.Pipeline.Struct()
return Hash_sum_Results{s}, err
}
const schema_db8274f9144abc7e = "x\xda\x84\x92?h\x13a\x18\xc6\x9f\xe7\xbb;\xaf\xa8" +
"G\xfaq\x05\xe9bP\"\x82\xd8\xe2\xb5[\x05\x13\x1c" +
"Tt\xb9\x8b\x0e\xe2\xf6QO#$\xb5\xe4.\x14\x11" +
"\xff\xd0\xc5E\x10\xb4\xdaE\xd0A7\xed\xd0Q\xba\x8a" +
"(\x08u\xb4\x12\x8b:\x08\xdd\xec\xa2\xa5\xd4\x93\xef\x92" +
"k\x02!v\xfb\xe0y\xdf\xe7\x9e\xf7w\xcf\xe0fI" +
"x\xd6a\x13\x08\x8eY\xbb\x92\xf0\xc1\xe6\xbb\xfd\xf1\xab" +
"\xbb\x90\x83\x04L\x1bp7\xb8\x0e3\xf9\xf0\xfc\xfe\xcb" +
"O\xbb\x17\x1fB\xeek\x0b\xe3M\x8e\x11f\xb2\xb4\xb2" +
"5\x9f\xbb\xf8z\x01r\x8f\x91\xdc^:;\xb4\x11\xcf" +
"~\x01\xe8\xbe\xe5\x1b\xf7#\xb5\xc5{\x9ev\x7f\xe9W" +
"b\x7f{\xf1\xf8\xf8\x93G\xcb-\x7f+U?\xf3;" +
"\xe86Y\x04\x93\x1f_\xab\x17\x16\xe6\xfe\xaev\xeb[" +
"\\\x03]\x0a\xad?\xfd\xb3wxy\xf1\xdc\xcf\xae|" +
"\x07\xc4\x0a\xccd\xf5f\xf1\xcao\xff\xc4Z+_\xba" +
"8n\x89\x09\x82\xae\x93nzs\x97\xae6\xe7\x9f\xad" +
"\xf7\xc4\x1c\x11\xb3\xae'\xb4\xd3\x88\xb8\xe7\xde\x126\x8e" +
"&\x15\x15UF'\xd5\xb4\x98\x9a\x9e8\xa3\xdf3\xf5" +
"kqX(\x87\xf9\xa8Q\x8d\xa3m\xddh\xeb\xa7\xd4" +
"d|\xbd~ct*\x9c9_Q^\xc1\xcf\xab\xba" +
"\xaau\xe6\x98\xcd\x15[\x83>\x19\x98\x86\x05lse" +
"v\x80\x94'!\xa4e\xdfi{\x95\xe8\x93\xbd\x81\xa2" +
"F\xadP\x0e\xa3\x86]\x8d\xa3\xc04L\xc0$ \x9d" +
"#@0`0\x18\x12\xcc\xe9%:\x10t\xc0~'" +
"\xf9*\xa7\x93\xf6\xb3\xb8\xacb\xd5\xdfB\x87\xf0U]" +
"\x19\xb5\x9d\x91\x94\x8ba\xca\xee\xbfae\xe77\x81\x94" +
"]\xdf\xcc\x08B\xa3\x1bH\xd1e]aVZ\xe9\x8d" +
"A\xc8C6;=aV89|\x10B:v>" +
"=\xbbD;j\xd4R\xb4\xff\x02\x00\x00\xff\xff<." +
"\xe3\xa6"
func init() {
schemas.Register(schema_db8274f9144abc7e,
0x80ac741ec7fb8f65,
0x92b20ad1a58ca0ca,
0xaead580f97fddabc,
0xd093963b95a4e107,
0xdffe94ae546cdee3,
0xe74bb2d0190cf89c,
0xea3e50f7663f7bdf,
0xf29f97dd675a9431)
}