github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/pingcap/tipb/go-tipb/schema.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: schema.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 type TableInfo struct { 17 TableId *int64 `protobuf:"varint,1,opt,name=table_id" json:"table_id,omitempty"` 18 Columns []*ColumnInfo `protobuf:"bytes,2,rep,name=columns" json:"columns,omitempty"` 19 XXX_unrecognized []byte `json:"-"` 20 } 21 22 func (m *TableInfo) Reset() { *m = TableInfo{} } 23 func (m *TableInfo) String() string { return proto.CompactTextString(m) } 24 func (*TableInfo) ProtoMessage() {} 25 func (*TableInfo) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} } 26 27 func (m *TableInfo) GetTableId() int64 { 28 if m != nil && m.TableId != nil { 29 return *m.TableId 30 } 31 return 0 32 } 33 34 func (m *TableInfo) GetColumns() []*ColumnInfo { 35 if m != nil { 36 return m.Columns 37 } 38 return nil 39 } 40 41 type ColumnInfo struct { 42 ColumnId *int64 `protobuf:"varint,1,opt,name=column_id" json:"column_id,omitempty"` 43 Tp *int32 `protobuf:"varint,2,opt,name=tp" json:"tp,omitempty"` 44 Collation *int32 `protobuf:"varint,3,opt,name=collation" json:"collation,omitempty"` 45 ColumnLen *int32 `protobuf:"varint,4,opt,name=columnLen" json:"columnLen,omitempty"` 46 Decimal *int32 `protobuf:"varint,5,opt,name=decimal" json:"decimal,omitempty"` 47 Flag *int32 `protobuf:"varint,6,opt,name=flag" json:"flag,omitempty"` 48 Elems []string `protobuf:"bytes,7,rep,name=elems" json:"elems,omitempty"` 49 PkHandle *bool `protobuf:"varint,21,opt,name=pk_handle" json:"pk_handle,omitempty"` 50 XXX_unrecognized []byte `json:"-"` 51 } 52 53 func (m *ColumnInfo) Reset() { *m = ColumnInfo{} } 54 func (m *ColumnInfo) String() string { return proto.CompactTextString(m) } 55 func (*ColumnInfo) ProtoMessage() {} 56 func (*ColumnInfo) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} } 57 58 func (m *ColumnInfo) GetColumnId() int64 { 59 if m != nil && m.ColumnId != nil { 60 return *m.ColumnId 61 } 62 return 0 63 } 64 65 func (m *ColumnInfo) GetTp() int32 { 66 if m != nil && m.Tp != nil { 67 return *m.Tp 68 } 69 return 0 70 } 71 72 func (m *ColumnInfo) GetCollation() int32 { 73 if m != nil && m.Collation != nil { 74 return *m.Collation 75 } 76 return 0 77 } 78 79 func (m *ColumnInfo) GetColumnLen() int32 { 80 if m != nil && m.ColumnLen != nil { 81 return *m.ColumnLen 82 } 83 return 0 84 } 85 86 func (m *ColumnInfo) GetDecimal() int32 { 87 if m != nil && m.Decimal != nil { 88 return *m.Decimal 89 } 90 return 0 91 } 92 93 func (m *ColumnInfo) GetFlag() int32 { 94 if m != nil && m.Flag != nil { 95 return *m.Flag 96 } 97 return 0 98 } 99 100 func (m *ColumnInfo) GetElems() []string { 101 if m != nil { 102 return m.Elems 103 } 104 return nil 105 } 106 107 func (m *ColumnInfo) GetPkHandle() bool { 108 if m != nil && m.PkHandle != nil { 109 return *m.PkHandle 110 } 111 return false 112 } 113 114 type IndexInfo struct { 115 TableId *int64 `protobuf:"varint,1,opt,name=table_id" json:"table_id,omitempty"` 116 IndexId *int64 `protobuf:"varint,2,opt,name=index_id" json:"index_id,omitempty"` 117 Columns []*ColumnInfo `protobuf:"bytes,3,rep,name=columns" json:"columns,omitempty"` 118 Unique *bool `protobuf:"varint,4,opt,name=unique" json:"unique,omitempty"` 119 XXX_unrecognized []byte `json:"-"` 120 } 121 122 func (m *IndexInfo) Reset() { *m = IndexInfo{} } 123 func (m *IndexInfo) String() string { return proto.CompactTextString(m) } 124 func (*IndexInfo) ProtoMessage() {} 125 func (*IndexInfo) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} } 126 127 func (m *IndexInfo) GetTableId() int64 { 128 if m != nil && m.TableId != nil { 129 return *m.TableId 130 } 131 return 0 132 } 133 134 func (m *IndexInfo) GetIndexId() int64 { 135 if m != nil && m.IndexId != nil { 136 return *m.IndexId 137 } 138 return 0 139 } 140 141 func (m *IndexInfo) GetColumns() []*ColumnInfo { 142 if m != nil { 143 return m.Columns 144 } 145 return nil 146 } 147 148 func (m *IndexInfo) GetUnique() bool { 149 if m != nil && m.Unique != nil { 150 return *m.Unique 151 } 152 return false 153 } 154 155 func init() { 156 proto.RegisterType((*TableInfo)(nil), "tipb.TableInfo") 157 proto.RegisterType((*ColumnInfo)(nil), "tipb.ColumnInfo") 158 proto.RegisterType((*IndexInfo)(nil), "tipb.IndexInfo") 159 } 160 161 var fileDescriptor1 = []byte{ 162 // 249 bytes of a gzipped FileDescriptorProto 163 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x8f, 0x3d, 0x4f, 0xc3, 0x30, 164 0x10, 0x86, 0x95, 0xaf, 0x26, 0x39, 0x0a, 0x14, 0x4b, 0x95, 0xcc, 0x56, 0x32, 0x65, 0xca, 0xc0, 165 0x2f, 0x40, 0x30, 0x55, 0x62, 0x60, 0x60, 0xaf, 0x1c, 0xfb, 0xda, 0x5a, 0xf8, 0x0b, 0xe2, 0x48, 166 0xfc, 0x0e, 0x7e, 0x31, 0xb6, 0x41, 0x2a, 0x42, 0x30, 0xbe, 0xcf, 0xdd, 0x73, 0xba, 0x17, 0x96, 167 0x13, 0x3f, 0xa2, 0x66, 0x83, 0x7b, 0xb3, 0xde, 0x92, 0xd2, 0x4b, 0x37, 0x76, 0x77, 0xd0, 0x3e, 168 0xb3, 0x51, 0xe1, 0xd6, 0xec, 0x2d, 0x59, 0x41, 0xe3, 0x63, 0xd8, 0x49, 0x41, 0xb3, 0x4d, 0xd6, 169 0x17, 0xe4, 0x06, 0x6a, 0x6e, 0xd5, 0xac, 0xcd, 0x44, 0xf3, 0x4d, 0xd1, 0x9f, 0xdd, 0xae, 0x86, 170 0xa8, 0x0d, 0x0f, 0x09, 0x46, 0xa9, 0xfb, 0xc8, 0x00, 0x4e, 0x91, 0x5c, 0x41, 0xfb, 0x65, 0x9c, 171 0x8e, 0x00, 0xe4, 0xde, 0x05, 0x3f, 0xeb, 0xab, 0xef, 0xb1, 0x62, 0x5e, 0x5a, 0x43, 0x8b, 0x1f, 172 0x28, 0x18, 0x8f, 0x68, 0x68, 0x99, 0xd0, 0x25, 0xd4, 0x02, 0xb9, 0xd4, 0x4c, 0xd1, 0x2a, 0x81, 173 0x25, 0x94, 0x7b, 0xc5, 0x0e, 0x74, 0x91, 0xd2, 0x39, 0x54, 0xa8, 0x50, 0x4f, 0xb4, 0x0e, 0x3f, 174 0xb5, 0xf1, 0x80, 0x7b, 0xd9, 0x1d, 0x99, 0x11, 0x0a, 0xe9, 0x3a, 0x6c, 0x34, 0xdd, 0x08, 0xed, 175 0xd6, 0x08, 0x7c, 0xff, 0xa7, 0x56, 0x20, 0x32, 0x8e, 0x23, 0xc9, 0x7f, 0x17, 0x2d, 0xfe, 0x2e, 176 0x4a, 0x2e, 0x60, 0x31, 0x1b, 0xf9, 0x3a, 0x63, 0x7a, 0xb2, 0xb9, 0xbf, 0x86, 0x35, 0xb7, 0x7a, 177 0x70, 0xd2, 0x1c, 0x38, 0x73, 0x61, 0x5d, 0x8c, 0xc9, 0x79, 0xca, 0x3e, 0x03, 0x00, 0x00, 0xff, 178 0xff, 0xca, 0x33, 0x46, 0xc7, 0x6a, 0x01, 0x00, 0x00, 179 }