Comparator.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: Comparator.proto
  3. package pb
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. type BitComparator_BitwiseOp int32
  12. const (
  13. BitComparator_AND BitComparator_BitwiseOp = 1
  14. BitComparator_OR BitComparator_BitwiseOp = 2
  15. BitComparator_XOR BitComparator_BitwiseOp = 3
  16. )
  17. var BitComparator_BitwiseOp_name = map[int32]string{
  18. 1: "AND",
  19. 2: "OR",
  20. 3: "XOR",
  21. }
  22. var BitComparator_BitwiseOp_value = map[string]int32{
  23. "AND": 1,
  24. "OR": 2,
  25. "XOR": 3,
  26. }
  27. func (x BitComparator_BitwiseOp) Enum() *BitComparator_BitwiseOp {
  28. p := new(BitComparator_BitwiseOp)
  29. *p = x
  30. return p
  31. }
  32. func (x BitComparator_BitwiseOp) String() string {
  33. return proto.EnumName(BitComparator_BitwiseOp_name, int32(x))
  34. }
  35. func (x *BitComparator_BitwiseOp) UnmarshalJSON(data []byte) error {
  36. value, err := proto.UnmarshalJSONEnum(BitComparator_BitwiseOp_value, data, "BitComparator_BitwiseOp")
  37. if err != nil {
  38. return err
  39. }
  40. *x = BitComparator_BitwiseOp(value)
  41. return nil
  42. }
  43. func (BitComparator_BitwiseOp) EnumDescriptor() ([]byte, []int) { return fileDescriptor6, []int{5, 0} }
  44. type Comparator struct {
  45. Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
  46. SerializedComparator []byte `protobuf:"bytes,2,opt,name=serialized_comparator,json=serializedComparator" json:"serialized_comparator,omitempty"`
  47. XXX_unrecognized []byte `json:"-"`
  48. }
  49. func (m *Comparator) Reset() { *m = Comparator{} }
  50. func (m *Comparator) String() string { return proto.CompactTextString(m) }
  51. func (*Comparator) ProtoMessage() {}
  52. func (*Comparator) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{0} }
  53. func (m *Comparator) GetName() string {
  54. if m != nil && m.Name != nil {
  55. return *m.Name
  56. }
  57. return ""
  58. }
  59. func (m *Comparator) GetSerializedComparator() []byte {
  60. if m != nil {
  61. return m.SerializedComparator
  62. }
  63. return nil
  64. }
  65. type ByteArrayComparable struct {
  66. Value []byte `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
  67. XXX_unrecognized []byte `json:"-"`
  68. }
  69. func (m *ByteArrayComparable) Reset() { *m = ByteArrayComparable{} }
  70. func (m *ByteArrayComparable) String() string { return proto.CompactTextString(m) }
  71. func (*ByteArrayComparable) ProtoMessage() {}
  72. func (*ByteArrayComparable) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{1} }
  73. func (m *ByteArrayComparable) GetValue() []byte {
  74. if m != nil {
  75. return m.Value
  76. }
  77. return nil
  78. }
  79. type BinaryComparator struct {
  80. Comparable *ByteArrayComparable `protobuf:"bytes,1,req,name=comparable" json:"comparable,omitempty"`
  81. XXX_unrecognized []byte `json:"-"`
  82. }
  83. func (m *BinaryComparator) Reset() { *m = BinaryComparator{} }
  84. func (m *BinaryComparator) String() string { return proto.CompactTextString(m) }
  85. func (*BinaryComparator) ProtoMessage() {}
  86. func (*BinaryComparator) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{2} }
  87. func (m *BinaryComparator) GetComparable() *ByteArrayComparable {
  88. if m != nil {
  89. return m.Comparable
  90. }
  91. return nil
  92. }
  93. type LongComparator struct {
  94. Comparable *ByteArrayComparable `protobuf:"bytes,1,req,name=comparable" json:"comparable,omitempty"`
  95. XXX_unrecognized []byte `json:"-"`
  96. }
  97. func (m *LongComparator) Reset() { *m = LongComparator{} }
  98. func (m *LongComparator) String() string { return proto.CompactTextString(m) }
  99. func (*LongComparator) ProtoMessage() {}
  100. func (*LongComparator) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{3} }
  101. func (m *LongComparator) GetComparable() *ByteArrayComparable {
  102. if m != nil {
  103. return m.Comparable
  104. }
  105. return nil
  106. }
  107. type BinaryPrefixComparator struct {
  108. Comparable *ByteArrayComparable `protobuf:"bytes,1,req,name=comparable" json:"comparable,omitempty"`
  109. XXX_unrecognized []byte `json:"-"`
  110. }
  111. func (m *BinaryPrefixComparator) Reset() { *m = BinaryPrefixComparator{} }
  112. func (m *BinaryPrefixComparator) String() string { return proto.CompactTextString(m) }
  113. func (*BinaryPrefixComparator) ProtoMessage() {}
  114. func (*BinaryPrefixComparator) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{4} }
  115. func (m *BinaryPrefixComparator) GetComparable() *ByteArrayComparable {
  116. if m != nil {
  117. return m.Comparable
  118. }
  119. return nil
  120. }
  121. type BitComparator struct {
  122. Comparable *ByteArrayComparable `protobuf:"bytes,1,req,name=comparable" json:"comparable,omitempty"`
  123. BitwiseOp *BitComparator_BitwiseOp `protobuf:"varint,2,req,name=bitwise_op,json=bitwiseOp,enum=pb.BitComparator_BitwiseOp" json:"bitwise_op,omitempty"`
  124. XXX_unrecognized []byte `json:"-"`
  125. }
  126. func (m *BitComparator) Reset() { *m = BitComparator{} }
  127. func (m *BitComparator) String() string { return proto.CompactTextString(m) }
  128. func (*BitComparator) ProtoMessage() {}
  129. func (*BitComparator) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{5} }
  130. func (m *BitComparator) GetComparable() *ByteArrayComparable {
  131. if m != nil {
  132. return m.Comparable
  133. }
  134. return nil
  135. }
  136. func (m *BitComparator) GetBitwiseOp() BitComparator_BitwiseOp {
  137. if m != nil && m.BitwiseOp != nil {
  138. return *m.BitwiseOp
  139. }
  140. return BitComparator_AND
  141. }
  142. type NullComparator struct {
  143. XXX_unrecognized []byte `json:"-"`
  144. }
  145. func (m *NullComparator) Reset() { *m = NullComparator{} }
  146. func (m *NullComparator) String() string { return proto.CompactTextString(m) }
  147. func (*NullComparator) ProtoMessage() {}
  148. func (*NullComparator) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{6} }
  149. type RegexStringComparator struct {
  150. Pattern *string `protobuf:"bytes,1,req,name=pattern" json:"pattern,omitempty"`
  151. PatternFlags *int32 `protobuf:"varint,2,req,name=pattern_flags,json=patternFlags" json:"pattern_flags,omitempty"`
  152. Charset *string `protobuf:"bytes,3,req,name=charset" json:"charset,omitempty"`
  153. Engine *string `protobuf:"bytes,4,opt,name=engine" json:"engine,omitempty"`
  154. XXX_unrecognized []byte `json:"-"`
  155. }
  156. func (m *RegexStringComparator) Reset() { *m = RegexStringComparator{} }
  157. func (m *RegexStringComparator) String() string { return proto.CompactTextString(m) }
  158. func (*RegexStringComparator) ProtoMessage() {}
  159. func (*RegexStringComparator) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{7} }
  160. func (m *RegexStringComparator) GetPattern() string {
  161. if m != nil && m.Pattern != nil {
  162. return *m.Pattern
  163. }
  164. return ""
  165. }
  166. func (m *RegexStringComparator) GetPatternFlags() int32 {
  167. if m != nil && m.PatternFlags != nil {
  168. return *m.PatternFlags
  169. }
  170. return 0
  171. }
  172. func (m *RegexStringComparator) GetCharset() string {
  173. if m != nil && m.Charset != nil {
  174. return *m.Charset
  175. }
  176. return ""
  177. }
  178. func (m *RegexStringComparator) GetEngine() string {
  179. if m != nil && m.Engine != nil {
  180. return *m.Engine
  181. }
  182. return ""
  183. }
  184. type SubstringComparator struct {
  185. Substr *string `protobuf:"bytes,1,req,name=substr" json:"substr,omitempty"`
  186. XXX_unrecognized []byte `json:"-"`
  187. }
  188. func (m *SubstringComparator) Reset() { *m = SubstringComparator{} }
  189. func (m *SubstringComparator) String() string { return proto.CompactTextString(m) }
  190. func (*SubstringComparator) ProtoMessage() {}
  191. func (*SubstringComparator) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{8} }
  192. func (m *SubstringComparator) GetSubstr() string {
  193. if m != nil && m.Substr != nil {
  194. return *m.Substr
  195. }
  196. return ""
  197. }
  198. func init() {
  199. proto.RegisterType((*Comparator)(nil), "pb.Comparator")
  200. proto.RegisterType((*ByteArrayComparable)(nil), "pb.ByteArrayComparable")
  201. proto.RegisterType((*BinaryComparator)(nil), "pb.BinaryComparator")
  202. proto.RegisterType((*LongComparator)(nil), "pb.LongComparator")
  203. proto.RegisterType((*BinaryPrefixComparator)(nil), "pb.BinaryPrefixComparator")
  204. proto.RegisterType((*BitComparator)(nil), "pb.BitComparator")
  205. proto.RegisterType((*NullComparator)(nil), "pb.NullComparator")
  206. proto.RegisterType((*RegexStringComparator)(nil), "pb.RegexStringComparator")
  207. proto.RegisterType((*SubstringComparator)(nil), "pb.SubstringComparator")
  208. proto.RegisterEnum("pb.BitComparator_BitwiseOp", BitComparator_BitwiseOp_name, BitComparator_BitwiseOp_value)
  209. }
  210. func init() { proto.RegisterFile("Comparator.proto", fileDescriptor6) }
  211. var fileDescriptor6 = []byte{
  212. // 411 bytes of a gzipped FileDescriptorProto
  213. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0xc1, 0x6e, 0x13, 0x31,
  214. 0x10, 0x95, 0x37, 0x6d, 0xaa, 0x0c, 0x6d, 0xb4, 0x72, 0xdb, 0xb0, 0x12, 0x97, 0x68, 0x11, 0x52,
  215. 0x04, 0x62, 0x0f, 0xe5, 0x80, 0xc4, 0xad, 0x0b, 0xaa, 0x40, 0xa0, 0xa6, 0xb8, 0x42, 0xe2, 0x16,
  216. 0xd9, 0xc9, 0x64, 0x63, 0x69, 0xbb, 0xb6, 0x6c, 0x2f, 0x34, 0x7c, 0x41, 0x3f, 0x83, 0x3b, 0x3f,
  217. 0x89, 0xbc, 0xeb, 0x24, 0x0b, 0xea, 0x31, 0xb7, 0x79, 0x6f, 0xe6, 0x3d, 0x3f, 0xd9, 0x1e, 0x88,
  218. 0xdf, 0xab, 0x3b, 0xcd, 0x0d, 0x77, 0xca, 0x64, 0xda, 0x28, 0xa7, 0x68, 0xa4, 0x45, 0xfa, 0x0d,
  219. 0x60, 0xc7, 0x53, 0x0a, 0x07, 0x15, 0xbf, 0xc3, 0x84, 0x8c, 0xa3, 0xc9, 0x80, 0x35, 0x35, 0x7d,
  220. 0x03, 0xe7, 0x16, 0x8d, 0xe4, 0xa5, 0xfc, 0x85, 0x8b, 0xd9, 0x7c, 0x3b, 0x9c, 0x44, 0x63, 0x32,
  221. 0x39, 0x66, 0x67, 0xbb, 0xe6, 0xce, 0x28, 0x7d, 0x05, 0xa7, 0xf9, 0xda, 0xe1, 0xa5, 0x31, 0x7c,
  222. 0x1d, 0x68, 0x51, 0x22, 0x3d, 0x83, 0xc3, 0x1f, 0xbc, 0xac, 0xfd, 0x01, 0x5e, 0xdb, 0x82, 0xf4,
  223. 0x33, 0xc4, 0xb9, 0xac, 0xb8, 0x59, 0x77, 0x92, 0xbc, 0x05, 0x98, 0x6f, 0x75, 0x4d, 0x9e, 0x27,
  224. 0x17, 0x4f, 0x33, 0x2d, 0xb2, 0x47, 0x6c, 0x59, 0x67, 0x34, 0xfd, 0x04, 0xc3, 0x2f, 0xaa, 0x2a,
  225. 0xf6, 0x61, 0xf5, 0x15, 0x46, 0x6d, 0xae, 0x1b, 0x83, 0x4b, 0x79, 0xbf, 0x0f, 0xcb, 0x3f, 0x04,
  226. 0x4e, 0x72, 0xe9, 0xf6, 0x60, 0x45, 0xdf, 0x01, 0x08, 0xe9, 0x7e, 0x4a, 0x8b, 0x33, 0xa5, 0x93,
  227. 0x68, 0x1c, 0x4d, 0x86, 0x17, 0xcf, 0x1a, 0x61, 0xd7, 0xdf, 0x23, 0x3f, 0x33, 0xd5, 0x6c, 0x20,
  228. 0x36, 0x65, 0xfa, 0x02, 0x06, 0x5b, 0x9e, 0x1e, 0x41, 0xef, 0xf2, 0xfa, 0x43, 0x4c, 0x68, 0x1f,
  229. 0xa2, 0x29, 0x8b, 0x23, 0x4f, 0x7c, 0x9f, 0xb2, 0xb8, 0x97, 0xc6, 0x30, 0xbc, 0xae, 0xcb, 0xb2,
  230. 0xf3, 0xae, 0x0f, 0x04, 0xce, 0x19, 0x16, 0x78, 0x7f, 0xeb, 0x8c, 0xfc, 0xe7, 0x96, 0x13, 0x38,
  231. 0xd2, 0xdc, 0x39, 0x34, 0x55, 0xf8, 0x3d, 0x1b, 0x48, 0x9f, 0xc3, 0x49, 0x28, 0x67, 0xcb, 0x92,
  232. 0x17, 0xb6, 0xc9, 0x7a, 0xc8, 0x8e, 0x03, 0x79, 0xe5, 0x39, 0x2f, 0x9f, 0xaf, 0xb8, 0xb1, 0xe8,
  233. 0x92, 0x5e, 0x2b, 0x0f, 0x90, 0x8e, 0xa0, 0x8f, 0x55, 0x21, 0x2b, 0x4c, 0x0e, 0xc6, 0x64, 0x32,
  234. 0x60, 0x01, 0xa5, 0xaf, 0xe1, 0xf4, 0xb6, 0x16, 0xf6, 0xff, 0x1c, 0x23, 0xe8, 0xdb, 0x86, 0x0e,
  235. 0x31, 0x02, 0xca, 0xaf, 0xe0, 0xa5, 0x32, 0x45, 0xc6, 0x35, 0x9f, 0xaf, 0x30, 0x5b, 0xf1, 0x85,
  236. 0x52, 0x3a, 0x5b, 0x09, 0x6e, 0xb1, 0xdd, 0x06, 0x51, 0x2f, 0xb3, 0x02, 0x2b, 0x34, 0xdc, 0xe1,
  237. 0x22, 0xef, 0x2c, 0xcb, 0x8d, 0xef, 0xda, 0x8f, 0xe4, 0x81, 0x90, 0xdf, 0x84, 0xfc, 0x0d, 0x00,
  238. 0x00, 0xff, 0xff, 0xff, 0x76, 0x5f, 0x6f, 0x47, 0x03, 0x00, 0x00,
  239. }