service.pb.go raw

   1  // Code generated by protoc-gen-go. DO NOT EDIT.
   2  // versions:
   3  // 	protoc-gen-go v1.36.11
   4  // 	protoc        (unknown)
   5  // source: orlynits/v1/service.proto
   6  
   7  package orlynitsv1
   8  
   9  import (
  10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12  	reflect "reflect"
  13  	sync "sync"
  14  	unsafe "unsafe"
  15  )
  16  
  17  const (
  18  	// Verify that this generated code is sufficiently up-to-date.
  19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
  21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  22  )
  23  
  24  // Empty is used for requests/responses with no data
  25  type Empty struct {
  26  	state         protoimpl.MessageState `protogen:"open.v1"`
  27  	unknownFields protoimpl.UnknownFields
  28  	sizeCache     protoimpl.SizeCache
  29  }
  30  
  31  func (x *Empty) Reset() {
  32  	*x = Empty{}
  33  	mi := &file_orlynits_v1_service_proto_msgTypes[0]
  34  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  35  	ms.StoreMessageInfo(mi)
  36  }
  37  
  38  func (x *Empty) String() string {
  39  	return protoimpl.X.MessageStringOf(x)
  40  }
  41  
  42  func (*Empty) ProtoMessage() {}
  43  
  44  func (x *Empty) ProtoReflect() protoreflect.Message {
  45  	mi := &file_orlynits_v1_service_proto_msgTypes[0]
  46  	if x != nil {
  47  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  48  		if ms.LoadMessageInfo() == nil {
  49  			ms.StoreMessageInfo(mi)
  50  		}
  51  		return ms
  52  	}
  53  	return mi.MessageOf(x)
  54  }
  55  
  56  // Deprecated: Use Empty.ProtoReflect.Descriptor instead.
  57  func (*Empty) Descriptor() ([]byte, []int) {
  58  	return file_orlynits_v1_service_proto_rawDescGZIP(), []int{0}
  59  }
  60  
  61  // ReadyResponse reports bitcoind readiness
  62  type ReadyResponse struct {
  63  	state               protoimpl.MessageState `protogen:"open.v1"`
  64  	Ready               bool                   `protobuf:"varint,1,opt,name=ready,proto3" json:"ready,omitempty"`
  65  	Status              string                 `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // "starting", "syncing", "ready", "stopped"
  66  	SyncProgressPercent int32                  `protobuf:"varint,3,opt,name=sync_progress_percent,json=syncProgressPercent,proto3" json:"sync_progress_percent,omitempty"`
  67  	unknownFields       protoimpl.UnknownFields
  68  	sizeCache           protoimpl.SizeCache
  69  }
  70  
  71  func (x *ReadyResponse) Reset() {
  72  	*x = ReadyResponse{}
  73  	mi := &file_orlynits_v1_service_proto_msgTypes[1]
  74  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  75  	ms.StoreMessageInfo(mi)
  76  }
  77  
  78  func (x *ReadyResponse) String() string {
  79  	return protoimpl.X.MessageStringOf(x)
  80  }
  81  
  82  func (*ReadyResponse) ProtoMessage() {}
  83  
  84  func (x *ReadyResponse) ProtoReflect() protoreflect.Message {
  85  	mi := &file_orlynits_v1_service_proto_msgTypes[1]
  86  	if x != nil {
  87  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  88  		if ms.LoadMessageInfo() == nil {
  89  			ms.StoreMessageInfo(mi)
  90  		}
  91  		return ms
  92  	}
  93  	return mi.MessageOf(x)
  94  }
  95  
  96  // Deprecated: Use ReadyResponse.ProtoReflect.Descriptor instead.
  97  func (*ReadyResponse) Descriptor() ([]byte, []int) {
  98  	return file_orlynits_v1_service_proto_rawDescGZIP(), []int{1}
  99  }
 100  
 101  func (x *ReadyResponse) GetReady() bool {
 102  	if x != nil {
 103  		return x.Ready
 104  	}
 105  	return false
 106  }
 107  
 108  func (x *ReadyResponse) GetStatus() string {
 109  	if x != nil {
 110  		return x.Status
 111  	}
 112  	return ""
 113  }
 114  
 115  func (x *ReadyResponse) GetSyncProgressPercent() int32 {
 116  	if x != nil {
 117  		return x.SyncProgressPercent
 118  	}
 119  	return 0
 120  }
 121  
 122  // BlockchainInfoResponse reports basic chain state
 123  type BlockchainInfoResponse struct {
 124  	state                protoimpl.MessageState `protogen:"open.v1"`
 125  	Chain                string                 `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"` // "main", "test", "signet", "regtest"
 126  	Blocks               int64                  `protobuf:"varint,2,opt,name=blocks,proto3" json:"blocks,omitempty"`
 127  	Headers              int64                  `protobuf:"varint,3,opt,name=headers,proto3" json:"headers,omitempty"`
 128  	VerificationProgress float64                `protobuf:"fixed64,4,opt,name=verification_progress,json=verificationProgress,proto3" json:"verification_progress,omitempty"`
 129  	InitialBlockDownload bool                   `protobuf:"varint,5,opt,name=initial_block_download,json=initialBlockDownload,proto3" json:"initial_block_download,omitempty"`
 130  	Pruned               bool                   `protobuf:"varint,6,opt,name=pruned,proto3" json:"pruned,omitempty"`
 131  	PruneHeight          int64                  `protobuf:"varint,7,opt,name=prune_height,json=pruneHeight,proto3" json:"prune_height,omitempty"`
 132  	SizeOnDisk           int64                  `protobuf:"varint,8,opt,name=size_on_disk,json=sizeOnDisk,proto3" json:"size_on_disk,omitempty"`
 133  	unknownFields        protoimpl.UnknownFields
 134  	sizeCache            protoimpl.SizeCache
 135  }
 136  
 137  func (x *BlockchainInfoResponse) Reset() {
 138  	*x = BlockchainInfoResponse{}
 139  	mi := &file_orlynits_v1_service_proto_msgTypes[2]
 140  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 141  	ms.StoreMessageInfo(mi)
 142  }
 143  
 144  func (x *BlockchainInfoResponse) String() string {
 145  	return protoimpl.X.MessageStringOf(x)
 146  }
 147  
 148  func (*BlockchainInfoResponse) ProtoMessage() {}
 149  
 150  func (x *BlockchainInfoResponse) ProtoReflect() protoreflect.Message {
 151  	mi := &file_orlynits_v1_service_proto_msgTypes[2]
 152  	if x != nil {
 153  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 154  		if ms.LoadMessageInfo() == nil {
 155  			ms.StoreMessageInfo(mi)
 156  		}
 157  		return ms
 158  	}
 159  	return mi.MessageOf(x)
 160  }
 161  
 162  // Deprecated: Use BlockchainInfoResponse.ProtoReflect.Descriptor instead.
 163  func (*BlockchainInfoResponse) Descriptor() ([]byte, []int) {
 164  	return file_orlynits_v1_service_proto_rawDescGZIP(), []int{2}
 165  }
 166  
 167  func (x *BlockchainInfoResponse) GetChain() string {
 168  	if x != nil {
 169  		return x.Chain
 170  	}
 171  	return ""
 172  }
 173  
 174  func (x *BlockchainInfoResponse) GetBlocks() int64 {
 175  	if x != nil {
 176  		return x.Blocks
 177  	}
 178  	return 0
 179  }
 180  
 181  func (x *BlockchainInfoResponse) GetHeaders() int64 {
 182  	if x != nil {
 183  		return x.Headers
 184  	}
 185  	return 0
 186  }
 187  
 188  func (x *BlockchainInfoResponse) GetVerificationProgress() float64 {
 189  	if x != nil {
 190  		return x.VerificationProgress
 191  	}
 192  	return 0
 193  }
 194  
 195  func (x *BlockchainInfoResponse) GetInitialBlockDownload() bool {
 196  	if x != nil {
 197  		return x.InitialBlockDownload
 198  	}
 199  	return false
 200  }
 201  
 202  func (x *BlockchainInfoResponse) GetPruned() bool {
 203  	if x != nil {
 204  		return x.Pruned
 205  	}
 206  	return false
 207  }
 208  
 209  func (x *BlockchainInfoResponse) GetPruneHeight() int64 {
 210  	if x != nil {
 211  		return x.PruneHeight
 212  	}
 213  	return 0
 214  }
 215  
 216  func (x *BlockchainInfoResponse) GetSizeOnDisk() int64 {
 217  	if x != nil {
 218  		return x.SizeOnDisk
 219  	}
 220  	return 0
 221  }
 222  
 223  // EstimateFeeRequest specifies the confirmation target
 224  type EstimateFeeRequest struct {
 225  	state         protoimpl.MessageState `protogen:"open.v1"`
 226  	ConfTarget    int32                  `protobuf:"varint,1,opt,name=conf_target,json=confTarget,proto3" json:"conf_target,omitempty"` // target number of blocks
 227  	unknownFields protoimpl.UnknownFields
 228  	sizeCache     protoimpl.SizeCache
 229  }
 230  
 231  func (x *EstimateFeeRequest) Reset() {
 232  	*x = EstimateFeeRequest{}
 233  	mi := &file_orlynits_v1_service_proto_msgTypes[3]
 234  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 235  	ms.StoreMessageInfo(mi)
 236  }
 237  
 238  func (x *EstimateFeeRequest) String() string {
 239  	return protoimpl.X.MessageStringOf(x)
 240  }
 241  
 242  func (*EstimateFeeRequest) ProtoMessage() {}
 243  
 244  func (x *EstimateFeeRequest) ProtoReflect() protoreflect.Message {
 245  	mi := &file_orlynits_v1_service_proto_msgTypes[3]
 246  	if x != nil {
 247  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 248  		if ms.LoadMessageInfo() == nil {
 249  			ms.StoreMessageInfo(mi)
 250  		}
 251  		return ms
 252  	}
 253  	return mi.MessageOf(x)
 254  }
 255  
 256  // Deprecated: Use EstimateFeeRequest.ProtoReflect.Descriptor instead.
 257  func (*EstimateFeeRequest) Descriptor() ([]byte, []int) {
 258  	return file_orlynits_v1_service_proto_rawDescGZIP(), []int{3}
 259  }
 260  
 261  func (x *EstimateFeeRequest) GetConfTarget() int32 {
 262  	if x != nil {
 263  		return x.ConfTarget
 264  	}
 265  	return 0
 266  }
 267  
 268  // EstimateFeeResponse returns the estimated fee rate
 269  type EstimateFeeResponse struct {
 270  	state         protoimpl.MessageState `protogen:"open.v1"`
 271  	FeeRate       float64                `protobuf:"fixed64,1,opt,name=fee_rate,json=feeRate,proto3" json:"fee_rate,omitempty"` // BTC/kvB
 272  	Errors        []string               `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"`
 273  	unknownFields protoimpl.UnknownFields
 274  	sizeCache     protoimpl.SizeCache
 275  }
 276  
 277  func (x *EstimateFeeResponse) Reset() {
 278  	*x = EstimateFeeResponse{}
 279  	mi := &file_orlynits_v1_service_proto_msgTypes[4]
 280  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 281  	ms.StoreMessageInfo(mi)
 282  }
 283  
 284  func (x *EstimateFeeResponse) String() string {
 285  	return protoimpl.X.MessageStringOf(x)
 286  }
 287  
 288  func (*EstimateFeeResponse) ProtoMessage() {}
 289  
 290  func (x *EstimateFeeResponse) ProtoReflect() protoreflect.Message {
 291  	mi := &file_orlynits_v1_service_proto_msgTypes[4]
 292  	if x != nil {
 293  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 294  		if ms.LoadMessageInfo() == nil {
 295  			ms.StoreMessageInfo(mi)
 296  		}
 297  		return ms
 298  	}
 299  	return mi.MessageOf(x)
 300  }
 301  
 302  // Deprecated: Use EstimateFeeResponse.ProtoReflect.Descriptor instead.
 303  func (*EstimateFeeResponse) Descriptor() ([]byte, []int) {
 304  	return file_orlynits_v1_service_proto_rawDescGZIP(), []int{4}
 305  }
 306  
 307  func (x *EstimateFeeResponse) GetFeeRate() float64 {
 308  	if x != nil {
 309  		return x.FeeRate
 310  	}
 311  	return 0
 312  }
 313  
 314  func (x *EstimateFeeResponse) GetErrors() []string {
 315  	if x != nil {
 316  		return x.Errors
 317  	}
 318  	return nil
 319  }
 320  
 321  var File_orlynits_v1_service_proto protoreflect.FileDescriptor
 322  
 323  const file_orlynits_v1_service_proto_rawDesc = "" +
 324  	"\n" +
 325  	"\x19orlynits/v1/service.proto\x12\vorlynits.v1\"\a\n" +
 326  	"\x05Empty\"q\n" +
 327  	"\rReadyResponse\x12\x14\n" +
 328  	"\x05ready\x18\x01 \x01(\bR\x05ready\x12\x16\n" +
 329  	"\x06status\x18\x02 \x01(\tR\x06status\x122\n" +
 330  	"\x15sync_progress_percent\x18\x03 \x01(\x05R\x13syncProgressPercent\"\xa8\x02\n" +
 331  	"\x16BlockchainInfoResponse\x12\x14\n" +
 332  	"\x05chain\x18\x01 \x01(\tR\x05chain\x12\x16\n" +
 333  	"\x06blocks\x18\x02 \x01(\x03R\x06blocks\x12\x18\n" +
 334  	"\aheaders\x18\x03 \x01(\x03R\aheaders\x123\n" +
 335  	"\x15verification_progress\x18\x04 \x01(\x01R\x14verificationProgress\x124\n" +
 336  	"\x16initial_block_download\x18\x05 \x01(\bR\x14initialBlockDownload\x12\x16\n" +
 337  	"\x06pruned\x18\x06 \x01(\bR\x06pruned\x12!\n" +
 338  	"\fprune_height\x18\a \x01(\x03R\vpruneHeight\x12 \n" +
 339  	"\fsize_on_disk\x18\b \x01(\x03R\n" +
 340  	"sizeOnDisk\"5\n" +
 341  	"\x12EstimateFeeRequest\x12\x1f\n" +
 342  	"\vconf_target\x18\x01 \x01(\x05R\n" +
 343  	"confTarget\"H\n" +
 344  	"\x13EstimateFeeResponse\x12\x19\n" +
 345  	"\bfee_rate\x18\x01 \x01(\x01R\afeeRate\x12\x16\n" +
 346  	"\x06errors\x18\x02 \x03(\tR\x06errors2\xe6\x01\n" +
 347  	"\vNitsService\x127\n" +
 348  	"\x05Ready\x12\x12.orlynits.v1.Empty\x1a\x1a.orlynits.v1.ReadyResponse\x12L\n" +
 349  	"\x11GetBlockchainInfo\x12\x12.orlynits.v1.Empty\x1a#.orlynits.v1.BlockchainInfoResponse\x12P\n" +
 350  	"\vEstimateFee\x12\x1f.orlynits.v1.EstimateFeeRequest\x1a .orlynits.v1.EstimateFeeResponseB0Z.next.orly.dev/pkg/proto/orlynits/v1;orlynitsv1b\x06proto3"
 351  
 352  var (
 353  	file_orlynits_v1_service_proto_rawDescOnce sync.Once
 354  	file_orlynits_v1_service_proto_rawDescData []byte
 355  )
 356  
 357  func file_orlynits_v1_service_proto_rawDescGZIP() []byte {
 358  	file_orlynits_v1_service_proto_rawDescOnce.Do(func() {
 359  		file_orlynits_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_orlynits_v1_service_proto_rawDesc), len(file_orlynits_v1_service_proto_rawDesc)))
 360  	})
 361  	return file_orlynits_v1_service_proto_rawDescData
 362  }
 363  
 364  var file_orlynits_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
 365  var file_orlynits_v1_service_proto_goTypes = []any{
 366  	(*Empty)(nil),                  // 0: orlynits.v1.Empty
 367  	(*ReadyResponse)(nil),          // 1: orlynits.v1.ReadyResponse
 368  	(*BlockchainInfoResponse)(nil), // 2: orlynits.v1.BlockchainInfoResponse
 369  	(*EstimateFeeRequest)(nil),     // 3: orlynits.v1.EstimateFeeRequest
 370  	(*EstimateFeeResponse)(nil),    // 4: orlynits.v1.EstimateFeeResponse
 371  }
 372  var file_orlynits_v1_service_proto_depIdxs = []int32{
 373  	0, // 0: orlynits.v1.NitsService.Ready:input_type -> orlynits.v1.Empty
 374  	0, // 1: orlynits.v1.NitsService.GetBlockchainInfo:input_type -> orlynits.v1.Empty
 375  	3, // 2: orlynits.v1.NitsService.EstimateFee:input_type -> orlynits.v1.EstimateFeeRequest
 376  	1, // 3: orlynits.v1.NitsService.Ready:output_type -> orlynits.v1.ReadyResponse
 377  	2, // 4: orlynits.v1.NitsService.GetBlockchainInfo:output_type -> orlynits.v1.BlockchainInfoResponse
 378  	4, // 5: orlynits.v1.NitsService.EstimateFee:output_type -> orlynits.v1.EstimateFeeResponse
 379  	3, // [3:6] is the sub-list for method output_type
 380  	0, // [0:3] is the sub-list for method input_type
 381  	0, // [0:0] is the sub-list for extension type_name
 382  	0, // [0:0] is the sub-list for extension extendee
 383  	0, // [0:0] is the sub-list for field type_name
 384  }
 385  
 386  func init() { file_orlynits_v1_service_proto_init() }
 387  func file_orlynits_v1_service_proto_init() {
 388  	if File_orlynits_v1_service_proto != nil {
 389  		return
 390  	}
 391  	type x struct{}
 392  	out := protoimpl.TypeBuilder{
 393  		File: protoimpl.DescBuilder{
 394  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 395  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_orlynits_v1_service_proto_rawDesc), len(file_orlynits_v1_service_proto_rawDesc)),
 396  			NumEnums:      0,
 397  			NumMessages:   5,
 398  			NumExtensions: 0,
 399  			NumServices:   1,
 400  		},
 401  		GoTypes:           file_orlynits_v1_service_proto_goTypes,
 402  		DependencyIndexes: file_orlynits_v1_service_proto_depIdxs,
 403  		MessageInfos:      file_orlynits_v1_service_proto_msgTypes,
 404  	}.Build()
 405  	File_orlynits_v1_service_proto = out.File
 406  	file_orlynits_v1_service_proto_goTypes = nil
 407  	file_orlynits_v1_service_proto_depIdxs = nil
 408  }
 409