@agoric/cosmos 0.34.2-dev-a29afed.0.a29afed → 0.34.2-dev-cb1866d.0.cb1866d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -293,6 +293,121 @@ func (m *QueryMailboxResponse) GetValue() string {
293
293
  return ""
294
294
  }
295
295
 
296
+ // QueryChunkedArtifactStatusRequest is the request type for the Query/ChunkedArtifact RPC method.
297
+ type QueryChunkedArtifactStatusRequest struct {
298
+ ChunkedArtifactId uint64 `protobuf:"varint,1,opt,name=chunked_artifact_id,json=chunkedArtifactId,proto3" json:"chunkedArtifactId" yaml:"chunkedArtifactId"`
299
+ }
300
+
301
+ func (m *QueryChunkedArtifactStatusRequest) Reset() { *m = QueryChunkedArtifactStatusRequest{} }
302
+ func (m *QueryChunkedArtifactStatusRequest) String() string { return proto.CompactTextString(m) }
303
+ func (*QueryChunkedArtifactStatusRequest) ProtoMessage() {}
304
+ func (*QueryChunkedArtifactStatusRequest) Descriptor() ([]byte, []int) {
305
+ return fileDescriptor_76266f656a1a9971, []int{6}
306
+ }
307
+ func (m *QueryChunkedArtifactStatusRequest) XXX_Unmarshal(b []byte) error {
308
+ return m.Unmarshal(b)
309
+ }
310
+ func (m *QueryChunkedArtifactStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
311
+ if deterministic {
312
+ return xxx_messageInfo_QueryChunkedArtifactStatusRequest.Marshal(b, m, deterministic)
313
+ } else {
314
+ b = b[:cap(b)]
315
+ n, err := m.MarshalToSizedBuffer(b)
316
+ if err != nil {
317
+ return nil, err
318
+ }
319
+ return b[:n], nil
320
+ }
321
+ }
322
+ func (m *QueryChunkedArtifactStatusRequest) XXX_Merge(src proto.Message) {
323
+ xxx_messageInfo_QueryChunkedArtifactStatusRequest.Merge(m, src)
324
+ }
325
+ func (m *QueryChunkedArtifactStatusRequest) XXX_Size() int {
326
+ return m.Size()
327
+ }
328
+ func (m *QueryChunkedArtifactStatusRequest) XXX_DiscardUnknown() {
329
+ xxx_messageInfo_QueryChunkedArtifactStatusRequest.DiscardUnknown(m)
330
+ }
331
+
332
+ var xxx_messageInfo_QueryChunkedArtifactStatusRequest proto.InternalMessageInfo
333
+
334
+ func (m *QueryChunkedArtifactStatusRequest) GetChunkedArtifactId() uint64 {
335
+ if m != nil {
336
+ return m.ChunkedArtifactId
337
+ }
338
+ return 0
339
+ }
340
+
341
+ // QueryChunkedArtifactStatusResponse is the response type for the Query/ChunkedArtifact RPC method.
342
+ type QueryChunkedArtifactStatusResponse struct {
343
+ ChunkedArtifactId uint64 `protobuf:"varint,1,opt,name=chunked_artifact_id,json=chunkedArtifactId,proto3" json:"chunkedArtifactId" yaml:"chunkedArtifactId"`
344
+ ChunkedArtifact *ChunkedArtifact `protobuf:"bytes,2,opt,name=chunked_artifact,json=chunkedArtifact,proto3" json:"chunkedArtifact" yaml:"chunkedArtifact"`
345
+ // Start time in UNIX epoch seconds.
346
+ StartTimeUnix int64 `protobuf:"varint,3,opt,name=start_time_unix,json=startTimeUnix,proto3" json:"startTimeUnix" yaml:"startTimeUnix"`
347
+ StartBlockHeight int64 `protobuf:"varint,4,opt,name=start_block_height,json=startBlockHeight,proto3" json:"startBlockHeight" yaml:"startBlockHeight"`
348
+ }
349
+
350
+ func (m *QueryChunkedArtifactStatusResponse) Reset() { *m = QueryChunkedArtifactStatusResponse{} }
351
+ func (m *QueryChunkedArtifactStatusResponse) String() string { return proto.CompactTextString(m) }
352
+ func (*QueryChunkedArtifactStatusResponse) ProtoMessage() {}
353
+ func (*QueryChunkedArtifactStatusResponse) Descriptor() ([]byte, []int) {
354
+ return fileDescriptor_76266f656a1a9971, []int{7}
355
+ }
356
+ func (m *QueryChunkedArtifactStatusResponse) XXX_Unmarshal(b []byte) error {
357
+ return m.Unmarshal(b)
358
+ }
359
+ func (m *QueryChunkedArtifactStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
360
+ if deterministic {
361
+ return xxx_messageInfo_QueryChunkedArtifactStatusResponse.Marshal(b, m, deterministic)
362
+ } else {
363
+ b = b[:cap(b)]
364
+ n, err := m.MarshalToSizedBuffer(b)
365
+ if err != nil {
366
+ return nil, err
367
+ }
368
+ return b[:n], nil
369
+ }
370
+ }
371
+ func (m *QueryChunkedArtifactStatusResponse) XXX_Merge(src proto.Message) {
372
+ xxx_messageInfo_QueryChunkedArtifactStatusResponse.Merge(m, src)
373
+ }
374
+ func (m *QueryChunkedArtifactStatusResponse) XXX_Size() int {
375
+ return m.Size()
376
+ }
377
+ func (m *QueryChunkedArtifactStatusResponse) XXX_DiscardUnknown() {
378
+ xxx_messageInfo_QueryChunkedArtifactStatusResponse.DiscardUnknown(m)
379
+ }
380
+
381
+ var xxx_messageInfo_QueryChunkedArtifactStatusResponse proto.InternalMessageInfo
382
+
383
+ func (m *QueryChunkedArtifactStatusResponse) GetChunkedArtifactId() uint64 {
384
+ if m != nil {
385
+ return m.ChunkedArtifactId
386
+ }
387
+ return 0
388
+ }
389
+
390
+ func (m *QueryChunkedArtifactStatusResponse) GetChunkedArtifact() *ChunkedArtifact {
391
+ if m != nil {
392
+ return m.ChunkedArtifact
393
+ }
394
+ return nil
395
+ }
396
+
397
+ func (m *QueryChunkedArtifactStatusResponse) GetStartTimeUnix() int64 {
398
+ if m != nil {
399
+ return m.StartTimeUnix
400
+ }
401
+ return 0
402
+ }
403
+
404
+ func (m *QueryChunkedArtifactStatusResponse) GetStartBlockHeight() int64 {
405
+ if m != nil {
406
+ return m.StartBlockHeight
407
+ }
408
+ return 0
409
+ }
410
+
296
411
  func init() {
297
412
  proto.RegisterType((*QueryParamsRequest)(nil), "agoric.swingset.QueryParamsRequest")
298
413
  proto.RegisterType((*QueryParamsResponse)(nil), "agoric.swingset.QueryParamsResponse")
@@ -300,43 +415,60 @@ func init() {
300
415
  proto.RegisterType((*QueryEgressResponse)(nil), "agoric.swingset.QueryEgressResponse")
301
416
  proto.RegisterType((*QueryMailboxRequest)(nil), "agoric.swingset.QueryMailboxRequest")
302
417
  proto.RegisterType((*QueryMailboxResponse)(nil), "agoric.swingset.QueryMailboxResponse")
418
+ proto.RegisterType((*QueryChunkedArtifactStatusRequest)(nil), "agoric.swingset.QueryChunkedArtifactStatusRequest")
419
+ proto.RegisterType((*QueryChunkedArtifactStatusResponse)(nil), "agoric.swingset.QueryChunkedArtifactStatusResponse")
303
420
  }
304
421
 
305
422
  func init() { proto.RegisterFile("agoric/swingset/query.proto", fileDescriptor_76266f656a1a9971) }
306
423
 
307
424
  var fileDescriptor_76266f656a1a9971 = []byte{
308
- // 484 bytes of a gzipped FileDescriptorProto
309
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x93, 0xcf, 0x8b, 0xd4, 0x30,
310
- 0x14, 0xc7, 0xa7, 0xcb, 0x6e, 0xc5, 0xec, 0x82, 0x10, 0x07, 0xd6, 0x1d, 0x25, 0x59, 0xe3, 0xcf,
311
- 0xcb, 0x36, 0xb0, 0xe2, 0x45, 0x4f, 0x33, 0xe0, 0x8f, 0x83, 0x82, 0x0e, 0x78, 0x11, 0x2f, 0x99,
312
- 0x4e, 0x88, 0xc5, 0xb6, 0xe9, 0x36, 0xa9, 0xee, 0xb0, 0x88, 0xe0, 0x5f, 0x20, 0xf8, 0x4f, 0xed,
313
- 0x71, 0xc1, 0x8b, 0xa7, 0x22, 0x33, 0x9e, 0xf6, 0x38, 0x47, 0xbd, 0x48, 0x93, 0x54, 0xed, 0x94,
314
- 0xea, 0x6d, 0x4f, 0xd3, 0xbc, 0xf7, 0xf2, 0xfd, 0xbc, 0x97, 0xf7, 0x1d, 0x70, 0x99, 0x09, 0x99,
315
- 0x47, 0x21, 0x55, 0xef, 0xa2, 0x54, 0x28, 0xae, 0xe9, 0x41, 0xc1, 0xf3, 0x59, 0x90, 0xe5, 0x52,
316
- 0x4b, 0x78, 0xc1, 0x26, 0x83, 0x3a, 0x39, 0xe8, 0x0b, 0x29, 0xa4, 0xc9, 0xd1, 0xea, 0xcb, 0x96,
317
- 0x0d, 0xd0, 0xaa, 0x46, 0xfd, 0xe1, 0xf2, 0x57, 0x84, 0x94, 0x22, 0xe6, 0x94, 0x65, 0x11, 0x65,
318
- 0x69, 0x2a, 0x35, 0xd3, 0x91, 0x4c, 0x95, 0xcd, 0x92, 0x3e, 0x80, 0xcf, 0x2b, 0xe6, 0x33, 0x96,
319
- 0xb3, 0x44, 0x8d, 0xf9, 0x41, 0xc1, 0x95, 0x26, 0x4f, 0xc0, 0xc5, 0x46, 0x54, 0x65, 0x32, 0x55,
320
- 0x1c, 0xde, 0x05, 0x7e, 0x66, 0x22, 0x97, 0xbc, 0x5d, 0xef, 0xf6, 0xe6, 0xfe, 0x76, 0xb0, 0xd2,
321
- 0x62, 0x60, 0x2f, 0x8c, 0xd6, 0x8f, 0x4b, 0xdc, 0x1b, 0xbb, 0x62, 0x92, 0x3b, 0xc6, 0x03, 0x91,
322
- 0x73, 0x55, 0x33, 0xe0, 0x2b, 0xb0, 0x9e, 0x71, 0x9e, 0x1b, 0xa9, 0xad, 0xd1, 0xe3, 0xd3, 0x12,
323
- 0x9b, 0xf3, 0xb2, 0xc4, 0x9b, 0x33, 0x96, 0xc4, 0xf7, 0x48, 0x75, 0x22, 0x3f, 0x4a, 0xbc, 0x27,
324
- 0x22, 0xfd, 0xba, 0x98, 0x04, 0xa1, 0x4c, 0x68, 0x28, 0x55, 0x22, 0x95, 0xfb, 0xd9, 0x53, 0xd3,
325
- 0x37, 0x54, 0xcf, 0x32, 0xae, 0x82, 0x61, 0x18, 0x0e, 0xa7, 0x53, 0x23, 0x6f, 0x54, 0xc8, 0x43,
326
- 0x37, 0x41, 0xcd, 0x74, 0x13, 0x50, 0xe0, 0x73, 0x13, 0xe9, 0x9c, 0xc0, 0x5d, 0x70, 0x65, 0x44,
327
- 0x39, 0x9d, 0xa7, 0x2c, 0x8a, 0x27, 0xf2, 0xf0, 0x6c, 0x9a, 0x7f, 0x04, 0xfa,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, 0x53, 0xc2, 0x07, 0xc5,
339
- 0x3d, 0x04, 0x00, 0x00,
425
+ // 723 bytes of a gzipped FileDescriptorProto
426
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0xcf, 0x4f, 0x13, 0x4d,
427
+ 0x18, 0xc7, 0xbb, 0x50, 0xfa, 0xe6, 0x1d, 0x78, 0x03, 0xef, 0x50, 0xa5, 0x54, 0xb3, 0x53, 0xc6,
428
+ 0x5f, 0x78, 0x68, 0x37, 0x42, 0xbc, 0x68, 0x62, 0xec, 0x1a, 0x11, 0x13, 0x4d, 0xa4, 0xca, 0xc5,
429
+ 0x68, 0x9a, 0xe9, 0x76, 0xdc, 0x6e, 0x68, 0x77, 0xca, 0xce, 0x54, 0x8b, 0x84, 0x98, 0x78, 0xf0,
430
+ 0x6c, 0xe2, 0xdf, 0xe2, 0xbf, 0x60, 0x38, 0x92, 0x78, 0xf1, 0xb4, 0x31, 0xe0, 0xa9, 0xc7, 0x1e,
431
+ 0x3d, 0x99, 0xce, 0x4c, 0x91, 0xdd, 0x6d, 0x31, 0x1e, 0xf4, 0xc4, 0xce, 0xf3, 0x7d, 0xe6, 0xfb,
432
+ 0x79, 0x86, 0x99, 0xe7, 0x29, 0x38, 0x47, 0x5c, 0x16, 0x78, 0x8e, 0xc5, 0x5f, 0x79, 0xbe, 0xcb,
433
+ 0xa9, 0xb0, 0xb6, 0x3b, 0x34, 0xd8, 0x29, 0xb5, 0x03, 0x26, 0x18, 0x9c, 0x55, 0x62, 0x69, 0x28,
434
+ 0xe6, 0xb3, 0x2e, 0x73, 0x99, 0xd4, 0xac, 0xc1, 0x97, 0x4a, 0xcb, 0x9b, 0x71, 0x8f, 0xe1, 0x87,
435
+ 0xd6, 0xcf, 0xbb, 0x8c, 0xb9, 0x4d, 0x6a, 0x91, 0xb6, 0x67, 0x11, 0xdf, 0x67, 0x82, 0x08, 0x8f,
436
+ 0xf9, 0x5c,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0x98, 0x90, 0x65, 0xc5,
469
+ 0x50, 0x28, 0x39, 0x21, 0x5d, 0xd6, 0x24, 0xbe, 0x3b, 0x1c, 0x9d, 0xdd, 0x9f, 0x78, 0x39, 0x3a,
470
+ 0x6b, 0x19, 0xf9, 0x2b, 0xb6, 0xfa, 0x23, 0x00, 0x00, 0xff, 0xff, 0xe8, 0x38, 0x2e, 0x91, 0x49,
471
+ 0x07, 0x00, 0x00,
340
472
  }
341
473
 
342
474
  // Reference imports to suppress errors if they are not otherwise used.
@@ -357,6 +489,8 @@ type QueryClient interface {
357
489
  Egress(ctx context.Context, in *QueryEgressRequest, opts ...grpc.CallOption) (*QueryEgressResponse, error)
358
490
  // Return the contents of a peer's outbound mailbox.
359
491
  Mailbox(ctx context.Context, in *QueryMailboxRequest, opts ...grpc.CallOption) (*QueryMailboxResponse, error)
492
+ // Return the state of a pending installation.
493
+ ChunkedArtifactStatus(ctx context.Context, in *QueryChunkedArtifactStatusRequest, opts ...grpc.CallOption) (*QueryChunkedArtifactStatusResponse, error)
360
494
  }
361
495
 
362
496
  type queryClient struct {
@@ -394,6 +528,15 @@ func (c *queryClient) Mailbox(ctx context.Context, in *QueryMailboxRequest, opts
394
528
  return out, nil
395
529
  }
396
530
 
531
+ func (c *queryClient) ChunkedArtifactStatus(ctx context.Context, in *QueryChunkedArtifactStatusRequest, opts ...grpc.CallOption) (*QueryChunkedArtifactStatusResponse, error) {
532
+ out := new(QueryChunkedArtifactStatusResponse)
533
+ err := c.cc.Invoke(ctx, "/agoric.swingset.Query/ChunkedArtifactStatus", in, out, opts...)
534
+ if err != nil {
535
+ return nil, err
536
+ }
537
+ return out, nil
538
+ }
539
+
397
540
  // QueryServer is the server API for Query service.
398
541
  type QueryServer interface {
399
542
  // Params queries params of the swingset module.
@@ -402,6 +545,8 @@ type QueryServer interface {
402
545
  Egress(context.Context, *QueryEgressRequest) (*QueryEgressResponse, error)
403
546
  // Return the contents of a peer's outbound mailbox.
404
547
  Mailbox(context.Context, *QueryMailboxRequest) (*QueryMailboxResponse, error)
548
+ // Return the state of a pending installation.
549
+ ChunkedArtifactStatus(context.Context, *QueryChunkedArtifactStatusRequest) (*QueryChunkedArtifactStatusResponse, error)
405
550
  }
406
551
 
407
552
  // UnimplementedQueryServer can be embedded to have forward compatible implementations.
@@ -417,6 +562,9 @@ func (*UnimplementedQueryServer) Egress(ctx context.Context, req *QueryEgressReq
417
562
  func (*UnimplementedQueryServer) Mailbox(ctx context.Context, req *QueryMailboxRequest) (*QueryMailboxResponse, error) {
418
563
  return nil, status.Errorf(codes.Unimplemented, "method Mailbox not implemented")
419
564
  }
565
+ func (*UnimplementedQueryServer) ChunkedArtifactStatus(ctx context.Context, req *QueryChunkedArtifactStatusRequest) (*QueryChunkedArtifactStatusResponse, error) {
566
+ return nil, status.Errorf(codes.Unimplemented, "method ChunkedArtifactStatus not implemented")
567
+ }
420
568
 
421
569
  func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
422
570
  s.RegisterService(&_Query_serviceDesc, srv)
@@ -476,6 +624,24 @@ func _Query_Mailbox_Handler(srv interface{}, ctx context.Context, dec func(inter
476
624
  return interceptor(ctx, in, info, handler)
477
625
  }
478
626
 
627
+ func _Query_ChunkedArtifactStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
628
+ in := new(QueryChunkedArtifactStatusRequest)
629
+ if err := dec(in); err != nil {
630
+ return nil, err
631
+ }
632
+ if interceptor == nil {
633
+ return srv.(QueryServer).ChunkedArtifactStatus(ctx, in)
634
+ }
635
+ info := &grpc.UnaryServerInfo{
636
+ Server: srv,
637
+ FullMethod: "/agoric.swingset.Query/ChunkedArtifactStatus",
638
+ }
639
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
640
+ return srv.(QueryServer).ChunkedArtifactStatus(ctx, req.(*QueryChunkedArtifactStatusRequest))
641
+ }
642
+ return interceptor(ctx, in, info, handler)
643
+ }
644
+
479
645
  var Query_serviceDesc = _Query_serviceDesc
480
646
  var _Query_serviceDesc = grpc.ServiceDesc{
481
647
  ServiceName: "agoric.swingset.Query",
@@ -493,6 +659,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{
493
659
  MethodName: "Mailbox",
494
660
  Handler: _Query_Mailbox_Handler,
495
661
  },
662
+ {
663
+ MethodName: "ChunkedArtifactStatus",
664
+ Handler: _Query_ChunkedArtifactStatus_Handler,
665
+ },
496
666
  },
497
667
  Streams: []grpc.StreamDesc{},
498
668
  Metadata: "agoric/swingset/query.proto",
@@ -679,6 +849,84 @@ func (m *QueryMailboxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
679
849
  return len(dAtA) - i, nil
680
850
  }
681
851
 
852
+ func (m *QueryChunkedArtifactStatusRequest) Marshal() (dAtA []byte, err error) {
853
+ size := m.Size()
854
+ dAtA = make([]byte, size)
855
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
856
+ if err != nil {
857
+ return nil, err
858
+ }
859
+ return dAtA[:n], nil
860
+ }
861
+
862
+ func (m *QueryChunkedArtifactStatusRequest) MarshalTo(dAtA []byte) (int, error) {
863
+ size := m.Size()
864
+ return m.MarshalToSizedBuffer(dAtA[:size])
865
+ }
866
+
867
+ func (m *QueryChunkedArtifactStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
868
+ i := len(dAtA)
869
+ _ = i
870
+ var l int
871
+ _ = l
872
+ if m.ChunkedArtifactId != 0 {
873
+ i = encodeVarintQuery(dAtA, i, uint64(m.ChunkedArtifactId))
874
+ i--
875
+ dAtA[i] = 0x8
876
+ }
877
+ return len(dAtA) - i, nil
878
+ }
879
+
880
+ func (m *QueryChunkedArtifactStatusResponse) Marshal() (dAtA []byte, err error) {
881
+ size := m.Size()
882
+ dAtA = make([]byte, size)
883
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
884
+ if err != nil {
885
+ return nil, err
886
+ }
887
+ return dAtA[:n], nil
888
+ }
889
+
890
+ func (m *QueryChunkedArtifactStatusResponse) MarshalTo(dAtA []byte) (int, error) {
891
+ size := m.Size()
892
+ return m.MarshalToSizedBuffer(dAtA[:size])
893
+ }
894
+
895
+ func (m *QueryChunkedArtifactStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
896
+ i := len(dAtA)
897
+ _ = i
898
+ var l int
899
+ _ = l
900
+ if m.StartBlockHeight != 0 {
901
+ i = encodeVarintQuery(dAtA, i, uint64(m.StartBlockHeight))
902
+ i--
903
+ dAtA[i] = 0x20
904
+ }
905
+ if m.StartTimeUnix != 0 {
906
+ i = encodeVarintQuery(dAtA, i, uint64(m.StartTimeUnix))
907
+ i--
908
+ dAtA[i] = 0x18
909
+ }
910
+ if m.ChunkedArtifact != nil {
911
+ {
912
+ size, err := m.ChunkedArtifact.MarshalToSizedBuffer(dAtA[:i])
913
+ if err != nil {
914
+ return 0, err
915
+ }
916
+ i -= size
917
+ i = encodeVarintQuery(dAtA, i, uint64(size))
918
+ }
919
+ i--
920
+ dAtA[i] = 0x12
921
+ }
922
+ if m.ChunkedArtifactId != 0 {
923
+ i = encodeVarintQuery(dAtA, i, uint64(m.ChunkedArtifactId))
924
+ i--
925
+ dAtA[i] = 0x8
926
+ }
927
+ return len(dAtA) - i, nil
928
+ }
929
+
682
930
  func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
683
931
  offset -= sovQuery(v)
684
932
  base := offset
@@ -762,6 +1010,40 @@ func (m *QueryMailboxResponse) Size() (n int) {
762
1010
  return n
763
1011
  }
764
1012
 
1013
+ func (m *QueryChunkedArtifactStatusRequest) Size() (n int) {
1014
+ if m == nil {
1015
+ return 0
1016
+ }
1017
+ var l int
1018
+ _ = l
1019
+ if m.ChunkedArtifactId != 0 {
1020
+ n += 1 + sovQuery(uint64(m.ChunkedArtifactId))
1021
+ }
1022
+ return n
1023
+ }
1024
+
1025
+ func (m *QueryChunkedArtifactStatusResponse) Size() (n int) {
1026
+ if m == nil {
1027
+ return 0
1028
+ }
1029
+ var l int
1030
+ _ = l
1031
+ if m.ChunkedArtifactId != 0 {
1032
+ n += 1 + sovQuery(uint64(m.ChunkedArtifactId))
1033
+ }
1034
+ if m.ChunkedArtifact != nil {
1035
+ l = m.ChunkedArtifact.Size()
1036
+ n += 1 + l + sovQuery(uint64(l))
1037
+ }
1038
+ if m.StartTimeUnix != 0 {
1039
+ n += 1 + sovQuery(uint64(m.StartTimeUnix))
1040
+ }
1041
+ if m.StartBlockHeight != 0 {
1042
+ n += 1 + sovQuery(uint64(m.StartBlockHeight))
1043
+ }
1044
+ return n
1045
+ }
1046
+
765
1047
  func sovQuery(x uint64) (n int) {
766
1048
  return (math_bits.Len64(x|1) + 6) / 7
767
1049
  }
@@ -1237,6 +1519,218 @@ func (m *QueryMailboxResponse) Unmarshal(dAtA []byte) error {
1237
1519
  }
1238
1520
  return nil
1239
1521
  }
1522
+ func (m *QueryChunkedArtifactStatusRequest) Unmarshal(dAtA []byte) error {
1523
+ l := len(dAtA)
1524
+ iNdEx := 0
1525
+ for iNdEx < l {
1526
+ preIndex := iNdEx
1527
+ var wire uint64
1528
+ for shift := uint(0); ; shift += 7 {
1529
+ if shift >= 64 {
1530
+ return ErrIntOverflowQuery
1531
+ }
1532
+ if iNdEx >= l {
1533
+ return io.ErrUnexpectedEOF
1534
+ }
1535
+ b := dAtA[iNdEx]
1536
+ iNdEx++
1537
+ wire |= uint64(b&0x7F) << shift
1538
+ if b < 0x80 {
1539
+ break
1540
+ }
1541
+ }
1542
+ fieldNum := int32(wire >> 3)
1543
+ wireType := int(wire & 0x7)
1544
+ if wireType == 4 {
1545
+ return fmt.Errorf("proto: QueryChunkedArtifactStatusRequest: wiretype end group for non-group")
1546
+ }
1547
+ if fieldNum <= 0 {
1548
+ return fmt.Errorf("proto: QueryChunkedArtifactStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire)
1549
+ }
1550
+ switch fieldNum {
1551
+ case 1:
1552
+ if wireType != 0 {
1553
+ return fmt.Errorf("proto: wrong wireType = %d for field ChunkedArtifactId", wireType)
1554
+ }
1555
+ m.ChunkedArtifactId = 0
1556
+ for shift := uint(0); ; shift += 7 {
1557
+ if shift >= 64 {
1558
+ return ErrIntOverflowQuery
1559
+ }
1560
+ if iNdEx >= l {
1561
+ return io.ErrUnexpectedEOF
1562
+ }
1563
+ b := dAtA[iNdEx]
1564
+ iNdEx++
1565
+ m.ChunkedArtifactId |= uint64(b&0x7F) << shift
1566
+ if b < 0x80 {
1567
+ break
1568
+ }
1569
+ }
1570
+ default:
1571
+ iNdEx = preIndex
1572
+ skippy, err := skipQuery(dAtA[iNdEx:])
1573
+ if err != nil {
1574
+ return err
1575
+ }
1576
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
1577
+ return ErrInvalidLengthQuery
1578
+ }
1579
+ if (iNdEx + skippy) > l {
1580
+ return io.ErrUnexpectedEOF
1581
+ }
1582
+ iNdEx += skippy
1583
+ }
1584
+ }
1585
+
1586
+ if iNdEx > l {
1587
+ return io.ErrUnexpectedEOF
1588
+ }
1589
+ return nil
1590
+ }
1591
+ func (m *QueryChunkedArtifactStatusResponse) Unmarshal(dAtA []byte) error {
1592
+ l := len(dAtA)
1593
+ iNdEx := 0
1594
+ for iNdEx < l {
1595
+ preIndex := iNdEx
1596
+ var wire uint64
1597
+ for shift := uint(0); ; shift += 7 {
1598
+ if shift >= 64 {
1599
+ return ErrIntOverflowQuery
1600
+ }
1601
+ if iNdEx >= l {
1602
+ return io.ErrUnexpectedEOF
1603
+ }
1604
+ b := dAtA[iNdEx]
1605
+ iNdEx++
1606
+ wire |= uint64(b&0x7F) << shift
1607
+ if b < 0x80 {
1608
+ break
1609
+ }
1610
+ }
1611
+ fieldNum := int32(wire >> 3)
1612
+ wireType := int(wire & 0x7)
1613
+ if wireType == 4 {
1614
+ return fmt.Errorf("proto: QueryChunkedArtifactStatusResponse: wiretype end group for non-group")
1615
+ }
1616
+ if fieldNum <= 0 {
1617
+ return fmt.Errorf("proto: QueryChunkedArtifactStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire)
1618
+ }
1619
+ switch fieldNum {
1620
+ case 1:
1621
+ if wireType != 0 {
1622
+ return fmt.Errorf("proto: wrong wireType = %d for field ChunkedArtifactId", wireType)
1623
+ }
1624
+ m.ChunkedArtifactId = 0
1625
+ for shift := uint(0); ; shift += 7 {
1626
+ if shift >= 64 {
1627
+ return ErrIntOverflowQuery
1628
+ }
1629
+ if iNdEx >= l {
1630
+ return io.ErrUnexpectedEOF
1631
+ }
1632
+ b := dAtA[iNdEx]
1633
+ iNdEx++
1634
+ m.ChunkedArtifactId |= uint64(b&0x7F) << shift
1635
+ if b < 0x80 {
1636
+ break
1637
+ }
1638
+ }
1639
+ case 2:
1640
+ if wireType != 2 {
1641
+ return fmt.Errorf("proto: wrong wireType = %d for field ChunkedArtifact", wireType)
1642
+ }
1643
+ var msglen int
1644
+ for shift := uint(0); ; shift += 7 {
1645
+ if shift >= 64 {
1646
+ return ErrIntOverflowQuery
1647
+ }
1648
+ if iNdEx >= l {
1649
+ return io.ErrUnexpectedEOF
1650
+ }
1651
+ b := dAtA[iNdEx]
1652
+ iNdEx++
1653
+ msglen |= int(b&0x7F) << shift
1654
+ if b < 0x80 {
1655
+ break
1656
+ }
1657
+ }
1658
+ if msglen < 0 {
1659
+ return ErrInvalidLengthQuery
1660
+ }
1661
+ postIndex := iNdEx + msglen
1662
+ if postIndex < 0 {
1663
+ return ErrInvalidLengthQuery
1664
+ }
1665
+ if postIndex > l {
1666
+ return io.ErrUnexpectedEOF
1667
+ }
1668
+ if m.ChunkedArtifact == nil {
1669
+ m.ChunkedArtifact = &ChunkedArtifact{}
1670
+ }
1671
+ if err := m.ChunkedArtifact.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1672
+ return err
1673
+ }
1674
+ iNdEx = postIndex
1675
+ case 3:
1676
+ if wireType != 0 {
1677
+ return fmt.Errorf("proto: wrong wireType = %d for field StartTimeUnix", wireType)
1678
+ }
1679
+ m.StartTimeUnix = 0
1680
+ for shift := uint(0); ; shift += 7 {
1681
+ if shift >= 64 {
1682
+ return ErrIntOverflowQuery
1683
+ }
1684
+ if iNdEx >= l {
1685
+ return io.ErrUnexpectedEOF
1686
+ }
1687
+ b := dAtA[iNdEx]
1688
+ iNdEx++
1689
+ m.StartTimeUnix |= int64(b&0x7F) << shift
1690
+ if b < 0x80 {
1691
+ break
1692
+ }
1693
+ }
1694
+ case 4:
1695
+ if wireType != 0 {
1696
+ return fmt.Errorf("proto: wrong wireType = %d for field StartBlockHeight", wireType)
1697
+ }
1698
+ m.StartBlockHeight = 0
1699
+ for shift := uint(0); ; shift += 7 {
1700
+ if shift >= 64 {
1701
+ return ErrIntOverflowQuery
1702
+ }
1703
+ if iNdEx >= l {
1704
+ return io.ErrUnexpectedEOF
1705
+ }
1706
+ b := dAtA[iNdEx]
1707
+ iNdEx++
1708
+ m.StartBlockHeight |= int64(b&0x7F) << shift
1709
+ if b < 0x80 {
1710
+ break
1711
+ }
1712
+ }
1713
+ default:
1714
+ iNdEx = preIndex
1715
+ skippy, err := skipQuery(dAtA[iNdEx:])
1716
+ if err != nil {
1717
+ return err
1718
+ }
1719
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
1720
+ return ErrInvalidLengthQuery
1721
+ }
1722
+ if (iNdEx + skippy) > l {
1723
+ return io.ErrUnexpectedEOF
1724
+ }
1725
+ iNdEx += skippy
1726
+ }
1727
+ }
1728
+
1729
+ if iNdEx > l {
1730
+ return io.ErrUnexpectedEOF
1731
+ }
1732
+ return nil
1733
+ }
1240
1734
  func skipQuery(dAtA []byte) (n int, err error) {
1241
1735
  l := len(dAtA)
1242
1736
  iNdEx := 0