github.com/turingchain2020/turingchain@v1.1.21/types/common.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: common.proto 3 4 package types 5 6 import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11 ) 12 13 // Reference imports to suppress errors if they are not otherwise used. 14 var _ = proto.Marshal 15 var _ = fmt.Errorf 16 var _ = math.Inf 17 18 // This is a compile-time assertion to ensure that this generated file 19 // is compatible with the proto package it is being compiled against. 20 // A compilation error at this line likely means your copy of the 21 // proto package needs to be updated. 22 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 23 24 type Reply struct { 25 IsOk bool `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"` 26 Msg []byte `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` 27 XXX_NoUnkeyedLiteral struct{} `json:"-"` 28 XXX_unrecognized []byte `json:"-"` 29 XXX_sizecache int32 `json:"-"` 30 } 31 32 func (m *Reply) Reset() { *m = Reply{} } 33 func (m *Reply) String() string { return proto.CompactTextString(m) } 34 func (*Reply) ProtoMessage() {} 35 func (*Reply) Descriptor() ([]byte, []int) { 36 return fileDescriptor_555bd8c177793206, []int{0} 37 } 38 39 func (m *Reply) XXX_Unmarshal(b []byte) error { 40 return xxx_messageInfo_Reply.Unmarshal(m, b) 41 } 42 func (m *Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 43 return xxx_messageInfo_Reply.Marshal(b, m, deterministic) 44 } 45 func (m *Reply) XXX_Merge(src proto.Message) { 46 xxx_messageInfo_Reply.Merge(m, src) 47 } 48 func (m *Reply) XXX_Size() int { 49 return xxx_messageInfo_Reply.Size(m) 50 } 51 func (m *Reply) XXX_DiscardUnknown() { 52 xxx_messageInfo_Reply.DiscardUnknown(m) 53 } 54 55 var xxx_messageInfo_Reply proto.InternalMessageInfo 56 57 func (m *Reply) GetIsOk() bool { 58 if m != nil { 59 return m.IsOk 60 } 61 return false 62 } 63 64 func (m *Reply) GetMsg() []byte { 65 if m != nil { 66 return m.Msg 67 } 68 return nil 69 } 70 71 type ReqString struct { 72 Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 73 XXX_NoUnkeyedLiteral struct{} `json:"-"` 74 XXX_unrecognized []byte `json:"-"` 75 XXX_sizecache int32 `json:"-"` 76 } 77 78 func (m *ReqString) Reset() { *m = ReqString{} } 79 func (m *ReqString) String() string { return proto.CompactTextString(m) } 80 func (*ReqString) ProtoMessage() {} 81 func (*ReqString) Descriptor() ([]byte, []int) { 82 return fileDescriptor_555bd8c177793206, []int{1} 83 } 84 85 func (m *ReqString) XXX_Unmarshal(b []byte) error { 86 return xxx_messageInfo_ReqString.Unmarshal(m, b) 87 } 88 func (m *ReqString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 89 return xxx_messageInfo_ReqString.Marshal(b, m, deterministic) 90 } 91 func (m *ReqString) XXX_Merge(src proto.Message) { 92 xxx_messageInfo_ReqString.Merge(m, src) 93 } 94 func (m *ReqString) XXX_Size() int { 95 return xxx_messageInfo_ReqString.Size(m) 96 } 97 func (m *ReqString) XXX_DiscardUnknown() { 98 xxx_messageInfo_ReqString.DiscardUnknown(m) 99 } 100 101 var xxx_messageInfo_ReqString proto.InternalMessageInfo 102 103 func (m *ReqString) GetData() string { 104 if m != nil { 105 return m.Data 106 } 107 return "" 108 } 109 110 type ReplyString struct { 111 Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 112 XXX_NoUnkeyedLiteral struct{} `json:"-"` 113 XXX_unrecognized []byte `json:"-"` 114 XXX_sizecache int32 `json:"-"` 115 } 116 117 func (m *ReplyString) Reset() { *m = ReplyString{} } 118 func (m *ReplyString) String() string { return proto.CompactTextString(m) } 119 func (*ReplyString) ProtoMessage() {} 120 func (*ReplyString) Descriptor() ([]byte, []int) { 121 return fileDescriptor_555bd8c177793206, []int{2} 122 } 123 124 func (m *ReplyString) XXX_Unmarshal(b []byte) error { 125 return xxx_messageInfo_ReplyString.Unmarshal(m, b) 126 } 127 func (m *ReplyString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 128 return xxx_messageInfo_ReplyString.Marshal(b, m, deterministic) 129 } 130 func (m *ReplyString) XXX_Merge(src proto.Message) { 131 xxx_messageInfo_ReplyString.Merge(m, src) 132 } 133 func (m *ReplyString) XXX_Size() int { 134 return xxx_messageInfo_ReplyString.Size(m) 135 } 136 func (m *ReplyString) XXX_DiscardUnknown() { 137 xxx_messageInfo_ReplyString.DiscardUnknown(m) 138 } 139 140 var xxx_messageInfo_ReplyString proto.InternalMessageInfo 141 142 func (m *ReplyString) GetData() string { 143 if m != nil { 144 return m.Data 145 } 146 return "" 147 } 148 149 type ReplyStrings struct { 150 Datas []string `protobuf:"bytes,1,rep,name=datas,proto3" json:"datas,omitempty"` 151 XXX_NoUnkeyedLiteral struct{} `json:"-"` 152 XXX_unrecognized []byte `json:"-"` 153 XXX_sizecache int32 `json:"-"` 154 } 155 156 func (m *ReplyStrings) Reset() { *m = ReplyStrings{} } 157 func (m *ReplyStrings) String() string { return proto.CompactTextString(m) } 158 func (*ReplyStrings) ProtoMessage() {} 159 func (*ReplyStrings) Descriptor() ([]byte, []int) { 160 return fileDescriptor_555bd8c177793206, []int{3} 161 } 162 163 func (m *ReplyStrings) XXX_Unmarshal(b []byte) error { 164 return xxx_messageInfo_ReplyStrings.Unmarshal(m, b) 165 } 166 func (m *ReplyStrings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 167 return xxx_messageInfo_ReplyStrings.Marshal(b, m, deterministic) 168 } 169 func (m *ReplyStrings) XXX_Merge(src proto.Message) { 170 xxx_messageInfo_ReplyStrings.Merge(m, src) 171 } 172 func (m *ReplyStrings) XXX_Size() int { 173 return xxx_messageInfo_ReplyStrings.Size(m) 174 } 175 func (m *ReplyStrings) XXX_DiscardUnknown() { 176 xxx_messageInfo_ReplyStrings.DiscardUnknown(m) 177 } 178 179 var xxx_messageInfo_ReplyStrings proto.InternalMessageInfo 180 181 func (m *ReplyStrings) GetDatas() []string { 182 if m != nil { 183 return m.Datas 184 } 185 return nil 186 } 187 188 type ReqInt struct { 189 Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 190 XXX_NoUnkeyedLiteral struct{} `json:"-"` 191 XXX_unrecognized []byte `json:"-"` 192 XXX_sizecache int32 `json:"-"` 193 } 194 195 func (m *ReqInt) Reset() { *m = ReqInt{} } 196 func (m *ReqInt) String() string { return proto.CompactTextString(m) } 197 func (*ReqInt) ProtoMessage() {} 198 func (*ReqInt) Descriptor() ([]byte, []int) { 199 return fileDescriptor_555bd8c177793206, []int{4} 200 } 201 202 func (m *ReqInt) XXX_Unmarshal(b []byte) error { 203 return xxx_messageInfo_ReqInt.Unmarshal(m, b) 204 } 205 func (m *ReqInt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 206 return xxx_messageInfo_ReqInt.Marshal(b, m, deterministic) 207 } 208 func (m *ReqInt) XXX_Merge(src proto.Message) { 209 xxx_messageInfo_ReqInt.Merge(m, src) 210 } 211 func (m *ReqInt) XXX_Size() int { 212 return xxx_messageInfo_ReqInt.Size(m) 213 } 214 func (m *ReqInt) XXX_DiscardUnknown() { 215 xxx_messageInfo_ReqInt.DiscardUnknown(m) 216 } 217 218 var xxx_messageInfo_ReqInt proto.InternalMessageInfo 219 220 func (m *ReqInt) GetHeight() int64 { 221 if m != nil { 222 return m.Height 223 } 224 return 0 225 } 226 227 type Int64 struct { 228 Data int64 `protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"` 229 XXX_NoUnkeyedLiteral struct{} `json:"-"` 230 XXX_unrecognized []byte `json:"-"` 231 XXX_sizecache int32 `json:"-"` 232 } 233 234 func (m *Int64) Reset() { *m = Int64{} } 235 func (m *Int64) String() string { return proto.CompactTextString(m) } 236 func (*Int64) ProtoMessage() {} 237 func (*Int64) Descriptor() ([]byte, []int) { 238 return fileDescriptor_555bd8c177793206, []int{5} 239 } 240 241 func (m *Int64) XXX_Unmarshal(b []byte) error { 242 return xxx_messageInfo_Int64.Unmarshal(m, b) 243 } 244 func (m *Int64) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 245 return xxx_messageInfo_Int64.Marshal(b, m, deterministic) 246 } 247 func (m *Int64) XXX_Merge(src proto.Message) { 248 xxx_messageInfo_Int64.Merge(m, src) 249 } 250 func (m *Int64) XXX_Size() int { 251 return xxx_messageInfo_Int64.Size(m) 252 } 253 func (m *Int64) XXX_DiscardUnknown() { 254 xxx_messageInfo_Int64.DiscardUnknown(m) 255 } 256 257 var xxx_messageInfo_Int64 proto.InternalMessageInfo 258 259 func (m *Int64) GetData() int64 { 260 if m != nil { 261 return m.Data 262 } 263 return 0 264 } 265 266 type ReqHash struct { 267 Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` 268 Upgrade bool `protobuf:"varint,2,opt,name=upgrade,proto3" json:"upgrade,omitempty"` 269 XXX_NoUnkeyedLiteral struct{} `json:"-"` 270 XXX_unrecognized []byte `json:"-"` 271 XXX_sizecache int32 `json:"-"` 272 } 273 274 func (m *ReqHash) Reset() { *m = ReqHash{} } 275 func (m *ReqHash) String() string { return proto.CompactTextString(m) } 276 func (*ReqHash) ProtoMessage() {} 277 func (*ReqHash) Descriptor() ([]byte, []int) { 278 return fileDescriptor_555bd8c177793206, []int{6} 279 } 280 281 func (m *ReqHash) XXX_Unmarshal(b []byte) error { 282 return xxx_messageInfo_ReqHash.Unmarshal(m, b) 283 } 284 func (m *ReqHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 285 return xxx_messageInfo_ReqHash.Marshal(b, m, deterministic) 286 } 287 func (m *ReqHash) XXX_Merge(src proto.Message) { 288 xxx_messageInfo_ReqHash.Merge(m, src) 289 } 290 func (m *ReqHash) XXX_Size() int { 291 return xxx_messageInfo_ReqHash.Size(m) 292 } 293 func (m *ReqHash) XXX_DiscardUnknown() { 294 xxx_messageInfo_ReqHash.DiscardUnknown(m) 295 } 296 297 var xxx_messageInfo_ReqHash proto.InternalMessageInfo 298 299 func (m *ReqHash) GetHash() []byte { 300 if m != nil { 301 return m.Hash 302 } 303 return nil 304 } 305 306 func (m *ReqHash) GetUpgrade() bool { 307 if m != nil { 308 return m.Upgrade 309 } 310 return false 311 } 312 313 type ReplyHash struct { 314 Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` 315 XXX_NoUnkeyedLiteral struct{} `json:"-"` 316 XXX_unrecognized []byte `json:"-"` 317 XXX_sizecache int32 `json:"-"` 318 } 319 320 func (m *ReplyHash) Reset() { *m = ReplyHash{} } 321 func (m *ReplyHash) String() string { return proto.CompactTextString(m) } 322 func (*ReplyHash) ProtoMessage() {} 323 func (*ReplyHash) Descriptor() ([]byte, []int) { 324 return fileDescriptor_555bd8c177793206, []int{7} 325 } 326 327 func (m *ReplyHash) XXX_Unmarshal(b []byte) error { 328 return xxx_messageInfo_ReplyHash.Unmarshal(m, b) 329 } 330 func (m *ReplyHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 331 return xxx_messageInfo_ReplyHash.Marshal(b, m, deterministic) 332 } 333 func (m *ReplyHash) XXX_Merge(src proto.Message) { 334 xxx_messageInfo_ReplyHash.Merge(m, src) 335 } 336 func (m *ReplyHash) XXX_Size() int { 337 return xxx_messageInfo_ReplyHash.Size(m) 338 } 339 func (m *ReplyHash) XXX_DiscardUnknown() { 340 xxx_messageInfo_ReplyHash.DiscardUnknown(m) 341 } 342 343 var xxx_messageInfo_ReplyHash proto.InternalMessageInfo 344 345 func (m *ReplyHash) GetHash() []byte { 346 if m != nil { 347 return m.Hash 348 } 349 return nil 350 } 351 352 type ReqNil struct { 353 XXX_NoUnkeyedLiteral struct{} `json:"-"` 354 XXX_unrecognized []byte `json:"-"` 355 XXX_sizecache int32 `json:"-"` 356 } 357 358 func (m *ReqNil) Reset() { *m = ReqNil{} } 359 func (m *ReqNil) String() string { return proto.CompactTextString(m) } 360 func (*ReqNil) ProtoMessage() {} 361 func (*ReqNil) Descriptor() ([]byte, []int) { 362 return fileDescriptor_555bd8c177793206, []int{8} 363 } 364 365 func (m *ReqNil) XXX_Unmarshal(b []byte) error { 366 return xxx_messageInfo_ReqNil.Unmarshal(m, b) 367 } 368 func (m *ReqNil) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 369 return xxx_messageInfo_ReqNil.Marshal(b, m, deterministic) 370 } 371 func (m *ReqNil) XXX_Merge(src proto.Message) { 372 xxx_messageInfo_ReqNil.Merge(m, src) 373 } 374 func (m *ReqNil) XXX_Size() int { 375 return xxx_messageInfo_ReqNil.Size(m) 376 } 377 func (m *ReqNil) XXX_DiscardUnknown() { 378 xxx_messageInfo_ReqNil.DiscardUnknown(m) 379 } 380 381 var xxx_messageInfo_ReqNil proto.InternalMessageInfo 382 383 type ReqHashes struct { 384 Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` 385 XXX_NoUnkeyedLiteral struct{} `json:"-"` 386 XXX_unrecognized []byte `json:"-"` 387 XXX_sizecache int32 `json:"-"` 388 } 389 390 func (m *ReqHashes) Reset() { *m = ReqHashes{} } 391 func (m *ReqHashes) String() string { return proto.CompactTextString(m) } 392 func (*ReqHashes) ProtoMessage() {} 393 func (*ReqHashes) Descriptor() ([]byte, []int) { 394 return fileDescriptor_555bd8c177793206, []int{9} 395 } 396 397 func (m *ReqHashes) XXX_Unmarshal(b []byte) error { 398 return xxx_messageInfo_ReqHashes.Unmarshal(m, b) 399 } 400 func (m *ReqHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 401 return xxx_messageInfo_ReqHashes.Marshal(b, m, deterministic) 402 } 403 func (m *ReqHashes) XXX_Merge(src proto.Message) { 404 xxx_messageInfo_ReqHashes.Merge(m, src) 405 } 406 func (m *ReqHashes) XXX_Size() int { 407 return xxx_messageInfo_ReqHashes.Size(m) 408 } 409 func (m *ReqHashes) XXX_DiscardUnknown() { 410 xxx_messageInfo_ReqHashes.DiscardUnknown(m) 411 } 412 413 var xxx_messageInfo_ReqHashes proto.InternalMessageInfo 414 415 func (m *ReqHashes) GetHashes() [][]byte { 416 if m != nil { 417 return m.Hashes 418 } 419 return nil 420 } 421 422 type ReplyHashes struct { 423 Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` 424 XXX_NoUnkeyedLiteral struct{} `json:"-"` 425 XXX_unrecognized []byte `json:"-"` 426 XXX_sizecache int32 `json:"-"` 427 } 428 429 func (m *ReplyHashes) Reset() { *m = ReplyHashes{} } 430 func (m *ReplyHashes) String() string { return proto.CompactTextString(m) } 431 func (*ReplyHashes) ProtoMessage() {} 432 func (*ReplyHashes) Descriptor() ([]byte, []int) { 433 return fileDescriptor_555bd8c177793206, []int{10} 434 } 435 436 func (m *ReplyHashes) XXX_Unmarshal(b []byte) error { 437 return xxx_messageInfo_ReplyHashes.Unmarshal(m, b) 438 } 439 func (m *ReplyHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 440 return xxx_messageInfo_ReplyHashes.Marshal(b, m, deterministic) 441 } 442 func (m *ReplyHashes) XXX_Merge(src proto.Message) { 443 xxx_messageInfo_ReplyHashes.Merge(m, src) 444 } 445 func (m *ReplyHashes) XXX_Size() int { 446 return xxx_messageInfo_ReplyHashes.Size(m) 447 } 448 func (m *ReplyHashes) XXX_DiscardUnknown() { 449 xxx_messageInfo_ReplyHashes.DiscardUnknown(m) 450 } 451 452 var xxx_messageInfo_ReplyHashes proto.InternalMessageInfo 453 454 func (m *ReplyHashes) GetHashes() [][]byte { 455 if m != nil { 456 return m.Hashes 457 } 458 return nil 459 } 460 461 type KeyValue struct { 462 Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 463 Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 464 XXX_NoUnkeyedLiteral struct{} `json:"-"` 465 XXX_unrecognized []byte `json:"-"` 466 XXX_sizecache int32 `json:"-"` 467 } 468 469 func (m *KeyValue) Reset() { *m = KeyValue{} } 470 func (m *KeyValue) String() string { return proto.CompactTextString(m) } 471 func (*KeyValue) ProtoMessage() {} 472 func (*KeyValue) Descriptor() ([]byte, []int) { 473 return fileDescriptor_555bd8c177793206, []int{11} 474 } 475 476 func (m *KeyValue) XXX_Unmarshal(b []byte) error { 477 return xxx_messageInfo_KeyValue.Unmarshal(m, b) 478 } 479 func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 480 return xxx_messageInfo_KeyValue.Marshal(b, m, deterministic) 481 } 482 func (m *KeyValue) XXX_Merge(src proto.Message) { 483 xxx_messageInfo_KeyValue.Merge(m, src) 484 } 485 func (m *KeyValue) XXX_Size() int { 486 return xxx_messageInfo_KeyValue.Size(m) 487 } 488 func (m *KeyValue) XXX_DiscardUnknown() { 489 xxx_messageInfo_KeyValue.DiscardUnknown(m) 490 } 491 492 var xxx_messageInfo_KeyValue proto.InternalMessageInfo 493 494 func (m *KeyValue) GetKey() []byte { 495 if m != nil { 496 return m.Key 497 } 498 return nil 499 } 500 501 func (m *KeyValue) GetValue() []byte { 502 if m != nil { 503 return m.Value 504 } 505 return nil 506 } 507 508 type TxHash struct { 509 Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` 510 XXX_NoUnkeyedLiteral struct{} `json:"-"` 511 XXX_unrecognized []byte `json:"-"` 512 XXX_sizecache int32 `json:"-"` 513 } 514 515 func (m *TxHash) Reset() { *m = TxHash{} } 516 func (m *TxHash) String() string { return proto.CompactTextString(m) } 517 func (*TxHash) ProtoMessage() {} 518 func (*TxHash) Descriptor() ([]byte, []int) { 519 return fileDescriptor_555bd8c177793206, []int{12} 520 } 521 522 func (m *TxHash) XXX_Unmarshal(b []byte) error { 523 return xxx_messageInfo_TxHash.Unmarshal(m, b) 524 } 525 func (m *TxHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 526 return xxx_messageInfo_TxHash.Marshal(b, m, deterministic) 527 } 528 func (m *TxHash) XXX_Merge(src proto.Message) { 529 xxx_messageInfo_TxHash.Merge(m, src) 530 } 531 func (m *TxHash) XXX_Size() int { 532 return xxx_messageInfo_TxHash.Size(m) 533 } 534 func (m *TxHash) XXX_DiscardUnknown() { 535 xxx_messageInfo_TxHash.DiscardUnknown(m) 536 } 537 538 var xxx_messageInfo_TxHash proto.InternalMessageInfo 539 540 func (m *TxHash) GetHash() string { 541 if m != nil { 542 return m.Hash 543 } 544 return "" 545 } 546 547 type TimeStatus struct { 548 NtpTime string `protobuf:"bytes,1,opt,name=ntpTime,proto3" json:"ntpTime,omitempty"` 549 LocalTime string `protobuf:"bytes,2,opt,name=localTime,proto3" json:"localTime,omitempty"` 550 Diff int64 `protobuf:"varint,3,opt,name=diff,proto3" json:"diff,omitempty"` 551 XXX_NoUnkeyedLiteral struct{} `json:"-"` 552 XXX_unrecognized []byte `json:"-"` 553 XXX_sizecache int32 `json:"-"` 554 } 555 556 func (m *TimeStatus) Reset() { *m = TimeStatus{} } 557 func (m *TimeStatus) String() string { return proto.CompactTextString(m) } 558 func (*TimeStatus) ProtoMessage() {} 559 func (*TimeStatus) Descriptor() ([]byte, []int) { 560 return fileDescriptor_555bd8c177793206, []int{13} 561 } 562 563 func (m *TimeStatus) XXX_Unmarshal(b []byte) error { 564 return xxx_messageInfo_TimeStatus.Unmarshal(m, b) 565 } 566 func (m *TimeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 567 return xxx_messageInfo_TimeStatus.Marshal(b, m, deterministic) 568 } 569 func (m *TimeStatus) XXX_Merge(src proto.Message) { 570 xxx_messageInfo_TimeStatus.Merge(m, src) 571 } 572 func (m *TimeStatus) XXX_Size() int { 573 return xxx_messageInfo_TimeStatus.Size(m) 574 } 575 func (m *TimeStatus) XXX_DiscardUnknown() { 576 xxx_messageInfo_TimeStatus.DiscardUnknown(m) 577 } 578 579 var xxx_messageInfo_TimeStatus proto.InternalMessageInfo 580 581 func (m *TimeStatus) GetNtpTime() string { 582 if m != nil { 583 return m.NtpTime 584 } 585 return "" 586 } 587 588 func (m *TimeStatus) GetLocalTime() string { 589 if m != nil { 590 return m.LocalTime 591 } 592 return "" 593 } 594 595 func (m *TimeStatus) GetDiff() int64 { 596 if m != nil { 597 return m.Diff 598 } 599 return 0 600 } 601 602 type ReqKey struct { 603 Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 604 XXX_NoUnkeyedLiteral struct{} `json:"-"` 605 XXX_unrecognized []byte `json:"-"` 606 XXX_sizecache int32 `json:"-"` 607 } 608 609 func (m *ReqKey) Reset() { *m = ReqKey{} } 610 func (m *ReqKey) String() string { return proto.CompactTextString(m) } 611 func (*ReqKey) ProtoMessage() {} 612 func (*ReqKey) Descriptor() ([]byte, []int) { 613 return fileDescriptor_555bd8c177793206, []int{14} 614 } 615 616 func (m *ReqKey) XXX_Unmarshal(b []byte) error { 617 return xxx_messageInfo_ReqKey.Unmarshal(m, b) 618 } 619 func (m *ReqKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 620 return xxx_messageInfo_ReqKey.Marshal(b, m, deterministic) 621 } 622 func (m *ReqKey) XXX_Merge(src proto.Message) { 623 xxx_messageInfo_ReqKey.Merge(m, src) 624 } 625 func (m *ReqKey) XXX_Size() int { 626 return xxx_messageInfo_ReqKey.Size(m) 627 } 628 func (m *ReqKey) XXX_DiscardUnknown() { 629 xxx_messageInfo_ReqKey.DiscardUnknown(m) 630 } 631 632 var xxx_messageInfo_ReqKey proto.InternalMessageInfo 633 634 func (m *ReqKey) GetKey() []byte { 635 if m != nil { 636 return m.Key 637 } 638 return nil 639 } 640 641 type ReqRandHash struct { 642 ExecName string `protobuf:"bytes,1,opt,name=execName,proto3" json:"execName,omitempty"` 643 Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` 644 BlockNum int64 `protobuf:"varint,3,opt,name=blockNum,proto3" json:"blockNum,omitempty"` 645 Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` 646 XXX_NoUnkeyedLiteral struct{} `json:"-"` 647 XXX_unrecognized []byte `json:"-"` 648 XXX_sizecache int32 `json:"-"` 649 } 650 651 func (m *ReqRandHash) Reset() { *m = ReqRandHash{} } 652 func (m *ReqRandHash) String() string { return proto.CompactTextString(m) } 653 func (*ReqRandHash) ProtoMessage() {} 654 func (*ReqRandHash) Descriptor() ([]byte, []int) { 655 return fileDescriptor_555bd8c177793206, []int{15} 656 } 657 658 func (m *ReqRandHash) XXX_Unmarshal(b []byte) error { 659 return xxx_messageInfo_ReqRandHash.Unmarshal(m, b) 660 } 661 func (m *ReqRandHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 662 return xxx_messageInfo_ReqRandHash.Marshal(b, m, deterministic) 663 } 664 func (m *ReqRandHash) XXX_Merge(src proto.Message) { 665 xxx_messageInfo_ReqRandHash.Merge(m, src) 666 } 667 func (m *ReqRandHash) XXX_Size() int { 668 return xxx_messageInfo_ReqRandHash.Size(m) 669 } 670 func (m *ReqRandHash) XXX_DiscardUnknown() { 671 xxx_messageInfo_ReqRandHash.DiscardUnknown(m) 672 } 673 674 var xxx_messageInfo_ReqRandHash proto.InternalMessageInfo 675 676 func (m *ReqRandHash) GetExecName() string { 677 if m != nil { 678 return m.ExecName 679 } 680 return "" 681 } 682 683 func (m *ReqRandHash) GetHeight() int64 { 684 if m != nil { 685 return m.Height 686 } 687 return 0 688 } 689 690 func (m *ReqRandHash) GetBlockNum() int64 { 691 if m != nil { 692 return m.BlockNum 693 } 694 return 0 695 } 696 697 func (m *ReqRandHash) GetHash() []byte { 698 if m != nil { 699 return m.Hash 700 } 701 return nil 702 } 703 704 //* 705 //当前软件版本信息 706 type VersionInfo struct { 707 Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` 708 App string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"` 709 Turingchain string `protobuf:"bytes,3,opt,name=turingchain,proto3" json:"turingchain,omitempty"` 710 LocalDb string `protobuf:"bytes,4,opt,name=localDb,proto3" json:"localDb,omitempty"` 711 ChainID int32 `protobuf:"varint,5,opt,name=chainID,proto3" json:"chainID,omitempty"` 712 XXX_NoUnkeyedLiteral struct{} `json:"-"` 713 XXX_unrecognized []byte `json:"-"` 714 XXX_sizecache int32 `json:"-"` 715 } 716 717 func (m *VersionInfo) Reset() { *m = VersionInfo{} } 718 func (m *VersionInfo) String() string { return proto.CompactTextString(m) } 719 func (*VersionInfo) ProtoMessage() {} 720 func (*VersionInfo) Descriptor() ([]byte, []int) { 721 return fileDescriptor_555bd8c177793206, []int{16} 722 } 723 724 func (m *VersionInfo) XXX_Unmarshal(b []byte) error { 725 return xxx_messageInfo_VersionInfo.Unmarshal(m, b) 726 } 727 func (m *VersionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 728 return xxx_messageInfo_VersionInfo.Marshal(b, m, deterministic) 729 } 730 func (m *VersionInfo) XXX_Merge(src proto.Message) { 731 xxx_messageInfo_VersionInfo.Merge(m, src) 732 } 733 func (m *VersionInfo) XXX_Size() int { 734 return xxx_messageInfo_VersionInfo.Size(m) 735 } 736 func (m *VersionInfo) XXX_DiscardUnknown() { 737 xxx_messageInfo_VersionInfo.DiscardUnknown(m) 738 } 739 740 var xxx_messageInfo_VersionInfo proto.InternalMessageInfo 741 742 func (m *VersionInfo) GetTitle() string { 743 if m != nil { 744 return m.Title 745 } 746 return "" 747 } 748 749 func (m *VersionInfo) GetApp() string { 750 if m != nil { 751 return m.App 752 } 753 return "" 754 } 755 756 func (m *VersionInfo) GetTuringchain() string { 757 if m != nil { 758 return m.Turingchain 759 } 760 return "" 761 } 762 763 func (m *VersionInfo) GetLocalDb() string { 764 if m != nil { 765 return m.LocalDb 766 } 767 return "" 768 } 769 770 func (m *VersionInfo) GetChainID() int32 { 771 if m != nil { 772 return m.ChainID 773 } 774 return 0 775 } 776 777 func init() { 778 proto.RegisterType((*Reply)(nil), "types.Reply") 779 proto.RegisterType((*ReqString)(nil), "types.ReqString") 780 proto.RegisterType((*ReplyString)(nil), "types.ReplyString") 781 proto.RegisterType((*ReplyStrings)(nil), "types.ReplyStrings") 782 proto.RegisterType((*ReqInt)(nil), "types.ReqInt") 783 proto.RegisterType((*Int64)(nil), "types.Int64") 784 proto.RegisterType((*ReqHash)(nil), "types.ReqHash") 785 proto.RegisterType((*ReplyHash)(nil), "types.ReplyHash") 786 proto.RegisterType((*ReqNil)(nil), "types.ReqNil") 787 proto.RegisterType((*ReqHashes)(nil), "types.ReqHashes") 788 proto.RegisterType((*ReplyHashes)(nil), "types.ReplyHashes") 789 proto.RegisterType((*KeyValue)(nil), "types.KeyValue") 790 proto.RegisterType((*TxHash)(nil), "types.TxHash") 791 proto.RegisterType((*TimeStatus)(nil), "types.TimeStatus") 792 proto.RegisterType((*ReqKey)(nil), "types.ReqKey") 793 proto.RegisterType((*ReqRandHash)(nil), "types.ReqRandHash") 794 proto.RegisterType((*VersionInfo)(nil), "types.VersionInfo") 795 } 796 797 func init() { 798 proto.RegisterFile("common.proto", fileDescriptor_555bd8c177793206) 799 } 800 801 var fileDescriptor_555bd8c177793206 = []byte{ 802 // 470 bytes of a gzipped FileDescriptorProto 803 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0xcf, 0x6b, 0xd4, 0x40, 804 0x14, 0x26, 0x9b, 0x66, 0x9b, 0xbc, 0xe6, 0x20, 0x41, 0x24, 0xd4, 0x4a, 0xe3, 0xa8, 0xb0, 0x17, 805 0xbb, 0x60, 0x44, 0xef, 0xd2, 0x83, 0x4b, 0x61, 0x85, 0x69, 0x29, 0xe2, 0x6d, 0x36, 0x3b, 0x49, 806 0x86, 0x4d, 0x26, 0xc9, 0xce, 0x44, 0x9a, 0xb3, 0xff, 0xb8, 0xcc, 0xdb, 0x49, 0x5c, 0x29, 0xda, 807 0xdb, 0xfb, 0xe6, 0xbd, 0x37, 0xdf, 0x8f, 0x61, 0x20, 0xcc, 0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 0x0a, 0xa1, 0xcb, 0x7e, 0x73, 0x95, 0x35, 0xf5, 0x32, 0x4d, 0x33, 0xb9, 0xb4, 0xd7, 831 0x2d, 0xf1, 0xa7, 0x6d, 0xe6, 0xf8, 0xef, 0xd2, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x98, 0x85, 832 0x2f, 0x77, 0x87, 0x03, 0x00, 0x00, 833 }