github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/pingcap/go-hbase/proto/Comparator.pb.go (about)

     1  // Code generated by protoc-gen-go.
     2  // source: Comparator.proto
     3  // DO NOT EDIT!
     4  
     5  package proto
     6  
     7  import proto1 "github.com/insionng/yougam/libraries/golang/protobuf/proto"
     8  import math "math"
     9  
    10  // Reference imports to suppress errors if they are not otherwise used.
    11  var _ = proto1.Marshal
    12  var _ = math.Inf
    13  
    14  type BitComparator_BitwiseOp int32
    15  
    16  const (
    17  	BitComparator_AND BitComparator_BitwiseOp = 1
    18  	BitComparator_OR  BitComparator_BitwiseOp = 2
    19  	BitComparator_XOR BitComparator_BitwiseOp = 3
    20  )
    21  
    22  var BitComparator_BitwiseOp_name = map[int32]string{
    23  	1: "AND",
    24  	2: "OR",
    25  	3: "XOR",
    26  }
    27  var BitComparator_BitwiseOp_value = map[string]int32{
    28  	"AND": 1,
    29  	"OR":  2,
    30  	"XOR": 3,
    31  }
    32  
    33  func (x BitComparator_BitwiseOp) Enum() *BitComparator_BitwiseOp {
    34  	p := new(BitComparator_BitwiseOp)
    35  	*p = x
    36  	return p
    37  }
    38  func (x BitComparator_BitwiseOp) String() string {
    39  	return proto1.EnumName(BitComparator_BitwiseOp_name, int32(x))
    40  }
    41  func (x *BitComparator_BitwiseOp) UnmarshalJSON(data []byte) error {
    42  	value, err := proto1.UnmarshalJSONEnum(BitComparator_BitwiseOp_value, data, "BitComparator_BitwiseOp")
    43  	if err != nil {
    44  		return err
    45  	}
    46  	*x = BitComparator_BitwiseOp(value)
    47  	return nil
    48  }
    49  
    50  type Comparator struct {
    51  	Name                 *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
    52  	SerializedComparator []byte  `protobuf:"bytes,2,opt,name=serialized_comparator" json:"serialized_comparator,omitempty"`
    53  	XXX_unrecognized     []byte  `json:"-"`
    54  }
    55  
    56  func (m *Comparator) Reset()         { *m = Comparator{} }
    57  func (m *Comparator) String() string { return proto1.CompactTextString(m) }
    58  func (*Comparator) ProtoMessage()    {}
    59  
    60  func (m *Comparator) GetName() string {
    61  	if m != nil && m.Name != nil {
    62  		return *m.Name
    63  	}
    64  	return ""
    65  }
    66  
    67  func (m *Comparator) GetSerializedComparator() []byte {
    68  	if m != nil {
    69  		return m.SerializedComparator
    70  	}
    71  	return nil
    72  }
    73  
    74  type ByteArrayComparable struct {
    75  	Value            []byte `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
    76  	XXX_unrecognized []byte `json:"-"`
    77  }
    78  
    79  func (m *ByteArrayComparable) Reset()         { *m = ByteArrayComparable{} }
    80  func (m *ByteArrayComparable) String() string { return proto1.CompactTextString(m) }
    81  func (*ByteArrayComparable) ProtoMessage()    {}
    82  
    83  func (m *ByteArrayComparable) GetValue() []byte {
    84  	if m != nil {
    85  		return m.Value
    86  	}
    87  	return nil
    88  }
    89  
    90  type BinaryComparator struct {
    91  	Comparable       *ByteArrayComparable `protobuf:"bytes,1,req,name=comparable" json:"comparable,omitempty"`
    92  	XXX_unrecognized []byte               `json:"-"`
    93  }
    94  
    95  func (m *BinaryComparator) Reset()         { *m = BinaryComparator{} }
    96  func (m *BinaryComparator) String() string { return proto1.CompactTextString(m) }
    97  func (*BinaryComparator) ProtoMessage()    {}
    98  
    99  func (m *BinaryComparator) GetComparable() *ByteArrayComparable {
   100  	if m != nil {
   101  		return m.Comparable
   102  	}
   103  	return nil
   104  }
   105  
   106  type LongComparator struct {
   107  	Comparable       *ByteArrayComparable `protobuf:"bytes,1,req,name=comparable" json:"comparable,omitempty"`
   108  	XXX_unrecognized []byte               `json:"-"`
   109  }
   110  
   111  func (m *LongComparator) Reset()         { *m = LongComparator{} }
   112  func (m *LongComparator) String() string { return proto1.CompactTextString(m) }
   113  func (*LongComparator) ProtoMessage()    {}
   114  
   115  func (m *LongComparator) GetComparable() *ByteArrayComparable {
   116  	if m != nil {
   117  		return m.Comparable
   118  	}
   119  	return nil
   120  }
   121  
   122  type BinaryPrefixComparator struct {
   123  	Comparable       *ByteArrayComparable `protobuf:"bytes,1,req,name=comparable" json:"comparable,omitempty"`
   124  	XXX_unrecognized []byte               `json:"-"`
   125  }
   126  
   127  func (m *BinaryPrefixComparator) Reset()         { *m = BinaryPrefixComparator{} }
   128  func (m *BinaryPrefixComparator) String() string { return proto1.CompactTextString(m) }
   129  func (*BinaryPrefixComparator) ProtoMessage()    {}
   130  
   131  func (m *BinaryPrefixComparator) GetComparable() *ByteArrayComparable {
   132  	if m != nil {
   133  		return m.Comparable
   134  	}
   135  	return nil
   136  }
   137  
   138  type BitComparator struct {
   139  	Comparable       *ByteArrayComparable     `protobuf:"bytes,1,req,name=comparable" json:"comparable,omitempty"`
   140  	BitwiseOp        *BitComparator_BitwiseOp `protobuf:"varint,2,req,name=bitwise_op,enum=proto.BitComparator_BitwiseOp" json:"bitwise_op,omitempty"`
   141  	XXX_unrecognized []byte                   `json:"-"`
   142  }
   143  
   144  func (m *BitComparator) Reset()         { *m = BitComparator{} }
   145  func (m *BitComparator) String() string { return proto1.CompactTextString(m) }
   146  func (*BitComparator) ProtoMessage()    {}
   147  
   148  func (m *BitComparator) GetComparable() *ByteArrayComparable {
   149  	if m != nil {
   150  		return m.Comparable
   151  	}
   152  	return nil
   153  }
   154  
   155  func (m *BitComparator) GetBitwiseOp() BitComparator_BitwiseOp {
   156  	if m != nil && m.BitwiseOp != nil {
   157  		return *m.BitwiseOp
   158  	}
   159  	return BitComparator_AND
   160  }
   161  
   162  type NullComparator struct {
   163  	XXX_unrecognized []byte `json:"-"`
   164  }
   165  
   166  func (m *NullComparator) Reset()         { *m = NullComparator{} }
   167  func (m *NullComparator) String() string { return proto1.CompactTextString(m) }
   168  func (*NullComparator) ProtoMessage()    {}
   169  
   170  type RegexStringComparator struct {
   171  	Pattern          *string `protobuf:"bytes,1,req,name=pattern" json:"pattern,omitempty"`
   172  	PatternFlags     *int32  `protobuf:"varint,2,req,name=pattern_flags" json:"pattern_flags,omitempty"`
   173  	Charset          *string `protobuf:"bytes,3,req,name=charset" json:"charset,omitempty"`
   174  	Engine           *string `protobuf:"bytes,4,opt,name=engine" json:"engine,omitempty"`
   175  	XXX_unrecognized []byte  `json:"-"`
   176  }
   177  
   178  func (m *RegexStringComparator) Reset()         { *m = RegexStringComparator{} }
   179  func (m *RegexStringComparator) String() string { return proto1.CompactTextString(m) }
   180  func (*RegexStringComparator) ProtoMessage()    {}
   181  
   182  func (m *RegexStringComparator) GetPattern() string {
   183  	if m != nil && m.Pattern != nil {
   184  		return *m.Pattern
   185  	}
   186  	return ""
   187  }
   188  
   189  func (m *RegexStringComparator) GetPatternFlags() int32 {
   190  	if m != nil && m.PatternFlags != nil {
   191  		return *m.PatternFlags
   192  	}
   193  	return 0
   194  }
   195  
   196  func (m *RegexStringComparator) GetCharset() string {
   197  	if m != nil && m.Charset != nil {
   198  		return *m.Charset
   199  	}
   200  	return ""
   201  }
   202  
   203  func (m *RegexStringComparator) GetEngine() string {
   204  	if m != nil && m.Engine != nil {
   205  		return *m.Engine
   206  	}
   207  	return ""
   208  }
   209  
   210  type SubstringComparator struct {
   211  	Substr           *string `protobuf:"bytes,1,req,name=substr" json:"substr,omitempty"`
   212  	XXX_unrecognized []byte  `json:"-"`
   213  }
   214  
   215  func (m *SubstringComparator) Reset()         { *m = SubstringComparator{} }
   216  func (m *SubstringComparator) String() string { return proto1.CompactTextString(m) }
   217  func (*SubstringComparator) ProtoMessage()    {}
   218  
   219  func (m *SubstringComparator) GetSubstr() string {
   220  	if m != nil && m.Substr != nil {
   221  		return *m.Substr
   222  	}
   223  	return ""
   224  }
   225  
   226  func init() {
   227  	proto1.RegisterEnum("proto.BitComparator_BitwiseOp", BitComparator_BitwiseOp_name, BitComparator_BitwiseOp_value)
   228  }