github.com/ledgerwatch/erigon-lib@v1.0.0/gointerfaces/downloader/downloader.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.31.0
     4  // 	protoc        v4.24.2
     5  // source: downloader/downloader.proto
     6  
     7  package downloader
     8  
     9  import (
    10  	types "github.com/ledgerwatch/erigon-lib/gointerfaces/types"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	emptypb "google.golang.org/protobuf/types/known/emptypb"
    14  	reflect "reflect"
    15  	sync "sync"
    16  )
    17  
    18  const (
    19  	// Verify that this generated code is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    21  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    22  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    23  )
    24  
    25  // DownloadItem:
    26  // - if Erigon created new snapshot and want seed it
    27  // - if Erigon wnat download files - it fills only "torrent_hash" field
    28  type DownloadItem struct {
    29  	state         protoimpl.MessageState
    30  	sizeCache     protoimpl.SizeCache
    31  	unknownFields protoimpl.UnknownFields
    32  
    33  	Path        string      `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
    34  	TorrentHash *types.H160 `protobuf:"bytes,2,opt,name=torrent_hash,json=torrentHash,proto3" json:"torrent_hash,omitempty"` // will be resolved as magnet link
    35  }
    36  
    37  func (x *DownloadItem) Reset() {
    38  	*x = DownloadItem{}
    39  	if protoimpl.UnsafeEnabled {
    40  		mi := &file_downloader_downloader_proto_msgTypes[0]
    41  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    42  		ms.StoreMessageInfo(mi)
    43  	}
    44  }
    45  
    46  func (x *DownloadItem) String() string {
    47  	return protoimpl.X.MessageStringOf(x)
    48  }
    49  
    50  func (*DownloadItem) ProtoMessage() {}
    51  
    52  func (x *DownloadItem) ProtoReflect() protoreflect.Message {
    53  	mi := &file_downloader_downloader_proto_msgTypes[0]
    54  	if protoimpl.UnsafeEnabled && x != nil {
    55  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    56  		if ms.LoadMessageInfo() == nil {
    57  			ms.StoreMessageInfo(mi)
    58  		}
    59  		return ms
    60  	}
    61  	return mi.MessageOf(x)
    62  }
    63  
    64  // Deprecated: Use DownloadItem.ProtoReflect.Descriptor instead.
    65  func (*DownloadItem) Descriptor() ([]byte, []int) {
    66  	return file_downloader_downloader_proto_rawDescGZIP(), []int{0}
    67  }
    68  
    69  func (x *DownloadItem) GetPath() string {
    70  	if x != nil {
    71  		return x.Path
    72  	}
    73  	return ""
    74  }
    75  
    76  func (x *DownloadItem) GetTorrentHash() *types.H160 {
    77  	if x != nil {
    78  		return x.TorrentHash
    79  	}
    80  	return nil
    81  }
    82  
    83  type DownloadRequest struct {
    84  	state         protoimpl.MessageState
    85  	sizeCache     protoimpl.SizeCache
    86  	unknownFields protoimpl.UnknownFields
    87  
    88  	Items []*DownloadItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // single hash will be resolved as magnet link
    89  }
    90  
    91  func (x *DownloadRequest) Reset() {
    92  	*x = DownloadRequest{}
    93  	if protoimpl.UnsafeEnabled {
    94  		mi := &file_downloader_downloader_proto_msgTypes[1]
    95  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    96  		ms.StoreMessageInfo(mi)
    97  	}
    98  }
    99  
   100  func (x *DownloadRequest) String() string {
   101  	return protoimpl.X.MessageStringOf(x)
   102  }
   103  
   104  func (*DownloadRequest) ProtoMessage() {}
   105  
   106  func (x *DownloadRequest) ProtoReflect() protoreflect.Message {
   107  	mi := &file_downloader_downloader_proto_msgTypes[1]
   108  	if protoimpl.UnsafeEnabled && x != nil {
   109  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   110  		if ms.LoadMessageInfo() == nil {
   111  			ms.StoreMessageInfo(mi)
   112  		}
   113  		return ms
   114  	}
   115  	return mi.MessageOf(x)
   116  }
   117  
   118  // Deprecated: Use DownloadRequest.ProtoReflect.Descriptor instead.
   119  func (*DownloadRequest) Descriptor() ([]byte, []int) {
   120  	return file_downloader_downloader_proto_rawDescGZIP(), []int{1}
   121  }
   122  
   123  func (x *DownloadRequest) GetItems() []*DownloadItem {
   124  	if x != nil {
   125  		return x.Items
   126  	}
   127  	return nil
   128  }
   129  
   130  type VerifyRequest struct {
   131  	state         protoimpl.MessageState
   132  	sizeCache     protoimpl.SizeCache
   133  	unknownFields protoimpl.UnknownFields
   134  }
   135  
   136  func (x *VerifyRequest) Reset() {
   137  	*x = VerifyRequest{}
   138  	if protoimpl.UnsafeEnabled {
   139  		mi := &file_downloader_downloader_proto_msgTypes[2]
   140  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   141  		ms.StoreMessageInfo(mi)
   142  	}
   143  }
   144  
   145  func (x *VerifyRequest) String() string {
   146  	return protoimpl.X.MessageStringOf(x)
   147  }
   148  
   149  func (*VerifyRequest) ProtoMessage() {}
   150  
   151  func (x *VerifyRequest) ProtoReflect() protoreflect.Message {
   152  	mi := &file_downloader_downloader_proto_msgTypes[2]
   153  	if protoimpl.UnsafeEnabled && x != nil {
   154  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   155  		if ms.LoadMessageInfo() == nil {
   156  			ms.StoreMessageInfo(mi)
   157  		}
   158  		return ms
   159  	}
   160  	return mi.MessageOf(x)
   161  }
   162  
   163  // Deprecated: Use VerifyRequest.ProtoReflect.Descriptor instead.
   164  func (*VerifyRequest) Descriptor() ([]byte, []int) {
   165  	return file_downloader_downloader_proto_rawDescGZIP(), []int{2}
   166  }
   167  
   168  type StatsRequest struct {
   169  	state         protoimpl.MessageState
   170  	sizeCache     protoimpl.SizeCache
   171  	unknownFields protoimpl.UnknownFields
   172  }
   173  
   174  func (x *StatsRequest) Reset() {
   175  	*x = StatsRequest{}
   176  	if protoimpl.UnsafeEnabled {
   177  		mi := &file_downloader_downloader_proto_msgTypes[3]
   178  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   179  		ms.StoreMessageInfo(mi)
   180  	}
   181  }
   182  
   183  func (x *StatsRequest) String() string {
   184  	return protoimpl.X.MessageStringOf(x)
   185  }
   186  
   187  func (*StatsRequest) ProtoMessage() {}
   188  
   189  func (x *StatsRequest) ProtoReflect() protoreflect.Message {
   190  	mi := &file_downloader_downloader_proto_msgTypes[3]
   191  	if protoimpl.UnsafeEnabled && x != nil {
   192  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   193  		if ms.LoadMessageInfo() == nil {
   194  			ms.StoreMessageInfo(mi)
   195  		}
   196  		return ms
   197  	}
   198  	return mi.MessageOf(x)
   199  }
   200  
   201  // Deprecated: Use StatsRequest.ProtoReflect.Descriptor instead.
   202  func (*StatsRequest) Descriptor() ([]byte, []int) {
   203  	return file_downloader_downloader_proto_rawDescGZIP(), []int{3}
   204  }
   205  
   206  type StatsReply struct {
   207  	state         protoimpl.MessageState
   208  	sizeCache     protoimpl.SizeCache
   209  	unknownFields protoimpl.UnknownFields
   210  
   211  	// First step on startup - "resolve metadata":
   212  	//   - understand total amount of data to download
   213  	//   - ensure all pieces hashes available
   214  	//   - validate files after crush
   215  	//   - when all metadata ready - can start download/upload
   216  	MetadataReady    int32   `protobuf:"varint,1,opt,name=metadata_ready,json=metadataReady,proto3" json:"metadata_ready,omitempty"`
   217  	FilesTotal       int32   `protobuf:"varint,2,opt,name=files_total,json=filesTotal,proto3" json:"files_total,omitempty"`
   218  	PeersUnique      int32   `protobuf:"varint,4,opt,name=peers_unique,json=peersUnique,proto3" json:"peers_unique,omitempty"`
   219  	ConnectionsTotal uint64  `protobuf:"varint,5,opt,name=connections_total,json=connectionsTotal,proto3" json:"connections_total,omitempty"`
   220  	Completed        bool    `protobuf:"varint,6,opt,name=completed,proto3" json:"completed,omitempty"`
   221  	Progress         float32 `protobuf:"fixed32,7,opt,name=progress,proto3" json:"progress,omitempty"`
   222  	BytesCompleted   uint64  `protobuf:"varint,8,opt,name=bytes_completed,json=bytesCompleted,proto3" json:"bytes_completed,omitempty"`
   223  	BytesTotal       uint64  `protobuf:"varint,9,opt,name=bytes_total,json=bytesTotal,proto3" json:"bytes_total,omitempty"`
   224  	UploadRate       uint64  `protobuf:"varint,10,opt,name=upload_rate,json=uploadRate,proto3" json:"upload_rate,omitempty"`       // bytes/sec
   225  	DownloadRate     uint64  `protobuf:"varint,11,opt,name=download_rate,json=downloadRate,proto3" json:"download_rate,omitempty"` // bytes/sec
   226  }
   227  
   228  func (x *StatsReply) Reset() {
   229  	*x = StatsReply{}
   230  	if protoimpl.UnsafeEnabled {
   231  		mi := &file_downloader_downloader_proto_msgTypes[4]
   232  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   233  		ms.StoreMessageInfo(mi)
   234  	}
   235  }
   236  
   237  func (x *StatsReply) String() string {
   238  	return protoimpl.X.MessageStringOf(x)
   239  }
   240  
   241  func (*StatsReply) ProtoMessage() {}
   242  
   243  func (x *StatsReply) ProtoReflect() protoreflect.Message {
   244  	mi := &file_downloader_downloader_proto_msgTypes[4]
   245  	if protoimpl.UnsafeEnabled && x != nil {
   246  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   247  		if ms.LoadMessageInfo() == nil {
   248  			ms.StoreMessageInfo(mi)
   249  		}
   250  		return ms
   251  	}
   252  	return mi.MessageOf(x)
   253  }
   254  
   255  // Deprecated: Use StatsReply.ProtoReflect.Descriptor instead.
   256  func (*StatsReply) Descriptor() ([]byte, []int) {
   257  	return file_downloader_downloader_proto_rawDescGZIP(), []int{4}
   258  }
   259  
   260  func (x *StatsReply) GetMetadataReady() int32 {
   261  	if x != nil {
   262  		return x.MetadataReady
   263  	}
   264  	return 0
   265  }
   266  
   267  func (x *StatsReply) GetFilesTotal() int32 {
   268  	if x != nil {
   269  		return x.FilesTotal
   270  	}
   271  	return 0
   272  }
   273  
   274  func (x *StatsReply) GetPeersUnique() int32 {
   275  	if x != nil {
   276  		return x.PeersUnique
   277  	}
   278  	return 0
   279  }
   280  
   281  func (x *StatsReply) GetConnectionsTotal() uint64 {
   282  	if x != nil {
   283  		return x.ConnectionsTotal
   284  	}
   285  	return 0
   286  }
   287  
   288  func (x *StatsReply) GetCompleted() bool {
   289  	if x != nil {
   290  		return x.Completed
   291  	}
   292  	return false
   293  }
   294  
   295  func (x *StatsReply) GetProgress() float32 {
   296  	if x != nil {
   297  		return x.Progress
   298  	}
   299  	return 0
   300  }
   301  
   302  func (x *StatsReply) GetBytesCompleted() uint64 {
   303  	if x != nil {
   304  		return x.BytesCompleted
   305  	}
   306  	return 0
   307  }
   308  
   309  func (x *StatsReply) GetBytesTotal() uint64 {
   310  	if x != nil {
   311  		return x.BytesTotal
   312  	}
   313  	return 0
   314  }
   315  
   316  func (x *StatsReply) GetUploadRate() uint64 {
   317  	if x != nil {
   318  		return x.UploadRate
   319  	}
   320  	return 0
   321  }
   322  
   323  func (x *StatsReply) GetDownloadRate() uint64 {
   324  	if x != nil {
   325  		return x.DownloadRate
   326  	}
   327  	return 0
   328  }
   329  
   330  var File_downloader_downloader_proto protoreflect.FileDescriptor
   331  
   332  var file_downloader_downloader_proto_rawDesc = []byte{
   333  	0x0a, 0x1b, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x2f, 0x64, 0x6f, 0x77,
   334  	0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x64,
   335  	0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   336  	0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79,
   337  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79,
   338  	0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x52, 0x0a, 0x0c, 0x44, 0x6f, 0x77,
   339  	0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74,
   340  	0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x2e, 0x0a,
   341  	0x0c, 0x74, 0x6f, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20,
   342  	0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x48, 0x31, 0x36, 0x30,
   343  	0x52, 0x0b, 0x74, 0x6f, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, 0x22, 0x41, 0x0a,
   344  	0x0f, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
   345  	0x12, 0x2e, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
   346  	0x18, 0x2e, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x77,
   347  	0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73,
   348  	0x22, 0x0f, 0x0a, 0x0d, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
   349  	0x74, 0x22, 0x0e, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
   350  	0x74, 0x22, 0xee, 0x02, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x79,
   351  	0x12, 0x25, 0x0a, 0x0e, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x72, 0x65, 0x61,
   352  	0x64, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61,
   353  	0x74, 0x61, 0x52, 0x65, 0x61, 0x64, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x65, 0x73,
   354  	0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x66, 0x69,
   355  	0x6c, 0x65, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x65, 0x65, 0x72,
   356  	0x73, 0x5f, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b,
   357  	0x70, 0x65, 0x65, 0x72, 0x73, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x63,
   358  	0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c,
   359  	0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69,
   360  	0x6f, 0x6e, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70,
   361  	0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, 0x6d,
   362  	0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65,
   363  	0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65,
   364  	0x73, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x70,
   365  	0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x62, 0x79, 0x74,
   366  	0x65, 0x73, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x62,
   367  	0x79, 0x74, 0x65, 0x73, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04,
   368  	0x52, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1f, 0x0a, 0x0b,
   369  	0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28,
   370  	0x04, 0x52, 0x0a, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x61, 0x74, 0x65, 0x12, 0x23, 0x0a,
   371  	0x0d, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x0b,
   372  	0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x61,
   373  	0x74, 0x65, 0x32, 0xcb, 0x01, 0x0a, 0x0a, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x65,
   374  	0x72, 0x12, 0x41, 0x0a, 0x08, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1b, 0x2e,
   375  	0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c,
   376  	0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
   377  	0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
   378  	0x74, 0x79, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x06, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x19,
   379  	0x2e, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x72, 0x69,
   380  	0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   381  	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
   382  	0x79, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x18, 0x2e, 0x64,
   383  	0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52,
   384  	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61,
   385  	0x64, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00,
   386  	0x42, 0x19, 0x5a, 0x17, 0x2e, 0x2f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72,
   387  	0x3b, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f,
   388  	0x74, 0x6f, 0x33,
   389  }
   390  
   391  var (
   392  	file_downloader_downloader_proto_rawDescOnce sync.Once
   393  	file_downloader_downloader_proto_rawDescData = file_downloader_downloader_proto_rawDesc
   394  )
   395  
   396  func file_downloader_downloader_proto_rawDescGZIP() []byte {
   397  	file_downloader_downloader_proto_rawDescOnce.Do(func() {
   398  		file_downloader_downloader_proto_rawDescData = protoimpl.X.CompressGZIP(file_downloader_downloader_proto_rawDescData)
   399  	})
   400  	return file_downloader_downloader_proto_rawDescData
   401  }
   402  
   403  var file_downloader_downloader_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
   404  var file_downloader_downloader_proto_goTypes = []interface{}{
   405  	(*DownloadItem)(nil),    // 0: downloader.DownloadItem
   406  	(*DownloadRequest)(nil), // 1: downloader.DownloadRequest
   407  	(*VerifyRequest)(nil),   // 2: downloader.VerifyRequest
   408  	(*StatsRequest)(nil),    // 3: downloader.StatsRequest
   409  	(*StatsReply)(nil),      // 4: downloader.StatsReply
   410  	(*types.H160)(nil),      // 5: types.H160
   411  	(*emptypb.Empty)(nil),   // 6: google.protobuf.Empty
   412  }
   413  var file_downloader_downloader_proto_depIdxs = []int32{
   414  	5, // 0: downloader.DownloadItem.torrent_hash:type_name -> types.H160
   415  	0, // 1: downloader.DownloadRequest.items:type_name -> downloader.DownloadItem
   416  	1, // 2: downloader.Downloader.Download:input_type -> downloader.DownloadRequest
   417  	2, // 3: downloader.Downloader.Verify:input_type -> downloader.VerifyRequest
   418  	3, // 4: downloader.Downloader.Stats:input_type -> downloader.StatsRequest
   419  	6, // 5: downloader.Downloader.Download:output_type -> google.protobuf.Empty
   420  	6, // 6: downloader.Downloader.Verify:output_type -> google.protobuf.Empty
   421  	4, // 7: downloader.Downloader.Stats:output_type -> downloader.StatsReply
   422  	5, // [5:8] is the sub-list for method output_type
   423  	2, // [2:5] is the sub-list for method input_type
   424  	2, // [2:2] is the sub-list for extension type_name
   425  	2, // [2:2] is the sub-list for extension extendee
   426  	0, // [0:2] is the sub-list for field type_name
   427  }
   428  
   429  func init() { file_downloader_downloader_proto_init() }
   430  func file_downloader_downloader_proto_init() {
   431  	if File_downloader_downloader_proto != nil {
   432  		return
   433  	}
   434  	if !protoimpl.UnsafeEnabled {
   435  		file_downloader_downloader_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   436  			switch v := v.(*DownloadItem); i {
   437  			case 0:
   438  				return &v.state
   439  			case 1:
   440  				return &v.sizeCache
   441  			case 2:
   442  				return &v.unknownFields
   443  			default:
   444  				return nil
   445  			}
   446  		}
   447  		file_downloader_downloader_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   448  			switch v := v.(*DownloadRequest); i {
   449  			case 0:
   450  				return &v.state
   451  			case 1:
   452  				return &v.sizeCache
   453  			case 2:
   454  				return &v.unknownFields
   455  			default:
   456  				return nil
   457  			}
   458  		}
   459  		file_downloader_downloader_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   460  			switch v := v.(*VerifyRequest); i {
   461  			case 0:
   462  				return &v.state
   463  			case 1:
   464  				return &v.sizeCache
   465  			case 2:
   466  				return &v.unknownFields
   467  			default:
   468  				return nil
   469  			}
   470  		}
   471  		file_downloader_downloader_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   472  			switch v := v.(*StatsRequest); i {
   473  			case 0:
   474  				return &v.state
   475  			case 1:
   476  				return &v.sizeCache
   477  			case 2:
   478  				return &v.unknownFields
   479  			default:
   480  				return nil
   481  			}
   482  		}
   483  		file_downloader_downloader_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   484  			switch v := v.(*StatsReply); i {
   485  			case 0:
   486  				return &v.state
   487  			case 1:
   488  				return &v.sizeCache
   489  			case 2:
   490  				return &v.unknownFields
   491  			default:
   492  				return nil
   493  			}
   494  		}
   495  	}
   496  	type x struct{}
   497  	out := protoimpl.TypeBuilder{
   498  		File: protoimpl.DescBuilder{
   499  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   500  			RawDescriptor: file_downloader_downloader_proto_rawDesc,
   501  			NumEnums:      0,
   502  			NumMessages:   5,
   503  			NumExtensions: 0,
   504  			NumServices:   1,
   505  		},
   506  		GoTypes:           file_downloader_downloader_proto_goTypes,
   507  		DependencyIndexes: file_downloader_downloader_proto_depIdxs,
   508  		MessageInfos:      file_downloader_downloader_proto_msgTypes,
   509  	}.Build()
   510  	File_downloader_downloader_proto = out.File
   511  	file_downloader_downloader_proto_rawDesc = nil
   512  	file_downloader_downloader_proto_goTypes = nil
   513  	file_downloader_downloader_proto_depIdxs = nil
   514  }