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.

101 lines
3.3 KiB

  1. // Code generated by protoc-gen-gogo. 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/gogo/protobuf/proto"
  14. import fmt "fmt"
  15. import math "math"
  16. import _ "github.com/gogo/protobuf/gogoproto"
  17. // Reference imports to suppress errors if they are not otherwise used.
  18. var _ = proto.Marshal
  19. var _ = fmt.Errorf
  20. var _ = math.Inf
  21. // This is a compile-time assertion to ensure that this generated file
  22. // is compatible with the proto package it is being compiled against.
  23. // A compilation error at this line likely means your copy of the
  24. // proto package needs to be updated.
  25. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  26. // Define these here for compatibility but use tmlibs/common.KVPair.
  27. type KVPair struct {
  28. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  29. Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  30. }
  31. func (m *KVPair) Reset() { *m = KVPair{} }
  32. func (m *KVPair) String() string { return proto.CompactTextString(m) }
  33. func (*KVPair) ProtoMessage() {}
  34. func (*KVPair) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{0} }
  35. func (m *KVPair) GetKey() []byte {
  36. if m != nil {
  37. return m.Key
  38. }
  39. return nil
  40. }
  41. func (m *KVPair) GetValue() []byte {
  42. if m != nil {
  43. return m.Value
  44. }
  45. return nil
  46. }
  47. // Define these here for compatibility but use tmlibs/common.KI64Pair.
  48. type KI64Pair struct {
  49. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  50. Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
  51. }
  52. func (m *KI64Pair) Reset() { *m = KI64Pair{} }
  53. func (m *KI64Pair) String() string { return proto.CompactTextString(m) }
  54. func (*KI64Pair) ProtoMessage() {}
  55. func (*KI64Pair) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{1} }
  56. func (m *KI64Pair) GetKey() []byte {
  57. if m != nil {
  58. return m.Key
  59. }
  60. return nil
  61. }
  62. func (m *KI64Pair) GetValue() int64 {
  63. if m != nil {
  64. return m.Value
  65. }
  66. return 0
  67. }
  68. func init() {
  69. proto.RegisterType((*KVPair)(nil), "common.KVPair")
  70. proto.RegisterType((*KI64Pair)(nil), "common.KI64Pair")
  71. }
  72. func init() { proto.RegisterFile("common/types.proto", fileDescriptorTypes) }
  73. var fileDescriptorTypes = []byte{
  74. // 137 bytes of a gzipped FileDescriptorProto
  75. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4a, 0xce, 0xcf, 0xcd,
  76. 0xcd, 0xcf, 0xd3, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62,
  77. 0x83, 0x88, 0x49, 0xe9, 0xa6, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xa7,
  78. 0xe7, 0xa7, 0xe7, 0xeb, 0x83, 0xa5, 0x93, 0x4a, 0xd3, 0xc0, 0x3c, 0x30, 0x07, 0xcc, 0x82, 0x68,
  79. 0x53, 0x32, 0xe0, 0x62, 0xf3, 0x0e, 0x0b, 0x48, 0xcc, 0x2c, 0x12, 0x12, 0xe0, 0x62, 0xce, 0x4e,
  80. 0xad, 0x94, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x09, 0x02, 0x31, 0x85, 0x44, 0xb8, 0x58, 0xcb, 0x12,
  81. 0x73, 0x4a, 0x53, 0x25, 0x98, 0xc0, 0x62, 0x10, 0x8e, 0x92, 0x11, 0x17, 0x87, 0xb7, 0xa7, 0x99,
  82. 0x09, 0x31, 0x7a, 0x98, 0xa1, 0x7a, 0x92, 0xd8, 0xc0, 0x96, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff,
  83. 0xff, 0x5c, 0xb8, 0x46, 0xc5, 0xb9, 0x00, 0x00, 0x00,
  84. }