You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
3.1 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: common/types.proto
  3. /*
  4. Package common is a generated protocol buffer package.
  5. It is generated from these files:
  6. common/types.proto
  7. It has these top-level messages:
  8. KVPair
  9. KI64Pair
  10. */
  11. //nolint: gas
  12. package common
  13. import proto "github.com/golang/protobuf/proto"
  14. import fmt "fmt"
  15. import math "math"
  16. // Reference imports to suppress errors if they are not otherwise used.
  17. var _ = proto.Marshal
  18. var _ = fmt.Errorf
  19. var _ = math.Inf
  20. // This is a compile-time assertion to ensure that this generated file
  21. // is compatible with the proto package it is being compiled against.
  22. // A compilation error at this line likely means your copy of the
  23. // proto package needs to be updated.
  24. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  25. // Define these here for compatibility but use tmlibs/common.KVPair.
  26. type KVPair struct {
  27. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  28. Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  29. }
  30. func (m *KVPair) Reset() { *m = KVPair{} }
  31. func (m *KVPair) String() string { return proto.CompactTextString(m) }
  32. func (*KVPair) ProtoMessage() {}
  33. func (*KVPair) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  34. func (m *KVPair) GetKey() []byte {
  35. if m != nil {
  36. return m.Key
  37. }
  38. return nil
  39. }
  40. func (m *KVPair) GetValue() []byte {
  41. if m != nil {
  42. return m.Value
  43. }
  44. return nil
  45. }
  46. // Define these here for compatibility but use tmlibs/common.KI64Pair.
  47. type KI64Pair struct {
  48. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  49. Value int64 `protobuf:"varint,2,opt,name=value" json:"value,omitempty"`
  50. }
  51. func (m *KI64Pair) Reset() { *m = KI64Pair{} }
  52. func (m *KI64Pair) String() string { return proto.CompactTextString(m) }
  53. func (*KI64Pair) ProtoMessage() {}
  54. func (*KI64Pair) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  55. func (m *KI64Pair) GetKey() []byte {
  56. if m != nil {
  57. return m.Key
  58. }
  59. return nil
  60. }
  61. func (m *KI64Pair) GetValue() int64 {
  62. if m != nil {
  63. return m.Value
  64. }
  65. return 0
  66. }
  67. func init() {
  68. proto.RegisterType((*KVPair)(nil), "common.KVPair")
  69. proto.RegisterType((*KI64Pair)(nil), "common.KI64Pair")
  70. }
  71. func init() { proto.RegisterFile("common/types.proto", fileDescriptor0) }
  72. var fileDescriptor0 = []byte{
  73. // 107 bytes of a gzipped FileDescriptorProto
  74. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4a, 0xce, 0xcf, 0xcd,
  75. 0xcd, 0xcf, 0xd3, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62,
  76. 0x83, 0x88, 0x29, 0x19, 0x70, 0xb1, 0x79, 0x87, 0x05, 0x24, 0x66, 0x16, 0x09, 0x09, 0x70, 0x31,
  77. 0x67, 0xa7, 0x56, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0xf0, 0x04, 0x81, 0x98, 0x42, 0x22, 0x5c, 0xac,
  78. 0x65, 0x89, 0x39, 0xa5, 0xa9, 0x12, 0x4c, 0x60, 0x31, 0x08, 0x47, 0xc9, 0x88, 0x8b, 0xc3, 0xdb,
  79. 0xd3, 0xcc, 0x84, 0x18, 0x3d, 0xcc, 0x50, 0x3d, 0x49, 0x6c, 0x60, 0x4b, 0x8d, 0x01, 0x01, 0x00,
  80. 0x00, 0xff, 0xff, 0xd8, 0xf1, 0xc3, 0x8c, 0x8a, 0x00, 0x00, 0x00,
  81. }