github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/pingcap/tipb/go-tipb/select.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: select.proto 3 // DO NOT EDIT! 4 5 package tipb 6 7 import proto "github.com/insionng/yougam/libraries/golang/protobuf/proto" 8 import fmt "fmt" 9 import math "math" 10 11 // Reference imports to suppress errors if they are not otherwise used. 12 var _ = proto.Marshal 13 var _ = fmt.Errorf 14 var _ = math.Inf 15 16 // KeyRange is the encoded index key range, low is closed, high is open. (low <= x < high) 17 type KeyRange struct { 18 Low []byte `protobuf:"bytes,1,opt,name=low" json:"low,omitempty"` 19 High []byte `protobuf:"bytes,2,opt,name=high" json:"high,omitempty"` 20 XXX_unrecognized []byte `json:"-"` 21 } 22 23 func (m *KeyRange) Reset() { *m = KeyRange{} } 24 func (m *KeyRange) String() string { return proto.CompactTextString(m) } 25 func (*KeyRange) ProtoMessage() {} 26 func (*KeyRange) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} } 27 28 func (m *KeyRange) GetLow() []byte { 29 if m != nil { 30 return m.Low 31 } 32 return nil 33 } 34 35 func (m *KeyRange) GetHigh() []byte { 36 if m != nil { 37 return m.High 38 } 39 return nil 40 } 41 42 // ByItem type for group by and order by. 43 type ByItem struct { 44 Expr *Expr `protobuf:"bytes,1,opt,name=expr" json:"expr,omitempty"` 45 Desc *bool `protobuf:"varint,2,opt,name=desc" json:"desc,omitempty"` 46 XXX_unrecognized []byte `json:"-"` 47 } 48 49 func (m *ByItem) Reset() { *m = ByItem{} } 50 func (m *ByItem) String() string { return proto.CompactTextString(m) } 51 func (*ByItem) ProtoMessage() {} 52 func (*ByItem) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} } 53 54 func (m *ByItem) GetExpr() *Expr { 55 if m != nil { 56 return m.Expr 57 } 58 return nil 59 } 60 61 func (m *ByItem) GetDesc() bool { 62 if m != nil && m.Desc != nil { 63 return *m.Desc 64 } 65 return false 66 } 67 68 // SelectRequest works like a simplified select statement. 69 type SelectRequest struct { 70 // transaction start timestamp. 71 StartTs *uint64 `protobuf:"varint,1,opt,name=start_ts" json:"start_ts,omitempty"` 72 // If table_info is not null, it represents a table scan, index_info would be null. 73 TableInfo *TableInfo `protobuf:"bytes,2,opt,name=table_info" json:"table_info,omitempty"` 74 // If index_info is not null, it represents an index scan, table_info would be null. 75 IndexInfo *IndexInfo `protobuf:"bytes,3,opt,name=index_info" json:"index_info,omitempty"` 76 // fields to be selected, fields type can be column reference for simple scan. 77 // or aggregation function. If no fields specified, only handle will be returned. 78 Fields []*Expr `protobuf:"bytes,4,rep,name=fields" json:"fields,omitempty"` 79 // disjoint handle ranges to be scanned. 80 Ranges []*KeyRange `protobuf:"bytes,5,rep,name=ranges" json:"ranges,omitempty"` 81 // distinct result. 82 Distinct *bool `protobuf:"varint,6,opt,name=distinct" json:"distinct,omitempty"` 83 // where condition. 84 Where *Expr `protobuf:"bytes,7,opt,name=where" json:"where,omitempty"` 85 // group by clause. 86 GroupBy []*ByItem `protobuf:"bytes,8,rep,name=group_by" json:"group_by,omitempty"` 87 // having clause. 88 Having *Expr `protobuf:"bytes,9,opt,name=having" json:"having,omitempty"` 89 // order by clause. 90 OrderBy []*ByItem `protobuf:"bytes,10,rep,name=order_by" json:"order_by,omitempty"` 91 // limit the result to be returned. 92 Limit *int64 `protobuf:"varint,12,opt,name=limit" json:"limit,omitempty"` 93 XXX_unrecognized []byte `json:"-"` 94 } 95 96 func (m *SelectRequest) Reset() { *m = SelectRequest{} } 97 func (m *SelectRequest) String() string { return proto.CompactTextString(m) } 98 func (*SelectRequest) ProtoMessage() {} 99 func (*SelectRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} } 100 101 func (m *SelectRequest) GetStartTs() uint64 { 102 if m != nil && m.StartTs != nil { 103 return *m.StartTs 104 } 105 return 0 106 } 107 108 func (m *SelectRequest) GetTableInfo() *TableInfo { 109 if m != nil { 110 return m.TableInfo 111 } 112 return nil 113 } 114 115 func (m *SelectRequest) GetIndexInfo() *IndexInfo { 116 if m != nil { 117 return m.IndexInfo 118 } 119 return nil 120 } 121 122 func (m *SelectRequest) GetFields() []*Expr { 123 if m != nil { 124 return m.Fields 125 } 126 return nil 127 } 128 129 func (m *SelectRequest) GetRanges() []*KeyRange { 130 if m != nil { 131 return m.Ranges 132 } 133 return nil 134 } 135 136 func (m *SelectRequest) GetDistinct() bool { 137 if m != nil && m.Distinct != nil { 138 return *m.Distinct 139 } 140 return false 141 } 142 143 func (m *SelectRequest) GetWhere() *Expr { 144 if m != nil { 145 return m.Where 146 } 147 return nil 148 } 149 150 func (m *SelectRequest) GetGroupBy() []*ByItem { 151 if m != nil { 152 return m.GroupBy 153 } 154 return nil 155 } 156 157 func (m *SelectRequest) GetHaving() *Expr { 158 if m != nil { 159 return m.Having 160 } 161 return nil 162 } 163 164 func (m *SelectRequest) GetOrderBy() []*ByItem { 165 if m != nil { 166 return m.OrderBy 167 } 168 return nil 169 } 170 171 func (m *SelectRequest) GetLimit() int64 { 172 if m != nil && m.Limit != nil { 173 return *m.Limit 174 } 175 return 0 176 } 177 178 // values are all in text format. 179 type Row struct { 180 Handle []byte `protobuf:"bytes,1,opt,name=handle" json:"handle,omitempty"` 181 Data []byte `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"` 182 XXX_unrecognized []byte `json:"-"` 183 } 184 185 func (m *Row) Reset() { *m = Row{} } 186 func (m *Row) String() string { return proto.CompactTextString(m) } 187 func (*Row) ProtoMessage() {} 188 func (*Row) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} } 189 190 func (m *Row) GetHandle() []byte { 191 if m != nil { 192 return m.Handle 193 } 194 return nil 195 } 196 197 func (m *Row) GetData() []byte { 198 if m != nil { 199 return m.Data 200 } 201 return nil 202 } 203 204 type Error struct { 205 Code *int32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"` 206 Msg *string `protobuf:"bytes,2,opt,name=msg" json:"msg,omitempty"` 207 XXX_unrecognized []byte `json:"-"` 208 } 209 210 func (m *Error) Reset() { *m = Error{} } 211 func (m *Error) String() string { return proto.CompactTextString(m) } 212 func (*Error) ProtoMessage() {} 213 func (*Error) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} } 214 215 func (m *Error) GetCode() int32 { 216 if m != nil && m.Code != nil { 217 return *m.Code 218 } 219 return 0 220 } 221 222 func (m *Error) GetMsg() string { 223 if m != nil && m.Msg != nil { 224 return *m.Msg 225 } 226 return "" 227 } 228 229 // Response for SelectRequest. 230 type SelectResponse struct { 231 Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` 232 // Result rows. 233 Rows []*Row `protobuf:"bytes,2,rep,name=rows" json:"rows,omitempty"` 234 XXX_unrecognized []byte `json:"-"` 235 } 236 237 func (m *SelectResponse) Reset() { *m = SelectResponse{} } 238 func (m *SelectResponse) String() string { return proto.CompactTextString(m) } 239 func (*SelectResponse) ProtoMessage() {} 240 func (*SelectResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} } 241 242 func (m *SelectResponse) GetError() *Error { 243 if m != nil { 244 return m.Error 245 } 246 return nil 247 } 248 249 func (m *SelectResponse) GetRows() []*Row { 250 if m != nil { 251 return m.Rows 252 } 253 return nil 254 } 255 256 func init() { 257 proto.RegisterType((*KeyRange)(nil), "tipb.KeyRange") 258 proto.RegisterType((*ByItem)(nil), "tipb.ByItem") 259 proto.RegisterType((*SelectRequest)(nil), "tipb.SelectRequest") 260 proto.RegisterType((*Row)(nil), "tipb.Row") 261 proto.RegisterType((*Error)(nil), "tipb.Error") 262 proto.RegisterType((*SelectResponse)(nil), "tipb.SelectResponse") 263 } 264 265 var fileDescriptor2 = []byte{ 266 // 397 bytes of a gzipped FileDescriptorProto 267 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x91, 0xcd, 0x6a, 0xdc, 0x30, 268 0x14, 0x85, 0x99, 0xd8, 0x9e, 0x7a, 0xae, 0x9d, 0x69,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