github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/pingcap/go-hbase/proto/Snapshot.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: Snapshot.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 SnapshotFileInfo_Type int32 15 16 const ( 17 SnapshotFileInfo_HFILE SnapshotFileInfo_Type = 1 18 SnapshotFileInfo_WAL SnapshotFileInfo_Type = 2 19 ) 20 21 var SnapshotFileInfo_Type_name = map[int32]string{ 22 1: "HFILE", 23 2: "WAL", 24 } 25 var SnapshotFileInfo_Type_value = map[string]int32{ 26 "HFILE": 1, 27 "WAL": 2, 28 } 29 30 func (x SnapshotFileInfo_Type) Enum() *SnapshotFileInfo_Type { 31 p := new(SnapshotFileInfo_Type) 32 *p = x 33 return p 34 } 35 func (x SnapshotFileInfo_Type) String() string { 36 return proto1.EnumName(SnapshotFileInfo_Type_name, int32(x)) 37 } 38 func (x *SnapshotFileInfo_Type) UnmarshalJSON(data []byte) error { 39 value, err := proto1.UnmarshalJSONEnum(SnapshotFileInfo_Type_value, data, "SnapshotFileInfo_Type") 40 if err != nil { 41 return err 42 } 43 *x = SnapshotFileInfo_Type(value) 44 return nil 45 } 46 47 type SnapshotFileInfo struct { 48 Type *SnapshotFileInfo_Type `protobuf:"varint,1,req,name=type,enum=proto.SnapshotFileInfo_Type" json:"type,omitempty"` 49 Hfile *string `protobuf:"bytes,3,opt,name=hfile" json:"hfile,omitempty"` 50 WalServer *string `protobuf:"bytes,4,opt,name=wal_server" json:"wal_server,omitempty"` 51 WalName *string `protobuf:"bytes,5,opt,name=wal_name" json:"wal_name,omitempty"` 52 XXX_unrecognized []byte `json:"-"` 53 } 54 55 func (m *SnapshotFileInfo) Reset() { *m = SnapshotFileInfo{} } 56 func (m *SnapshotFileInfo) String() string { return proto1.CompactTextString(m) } 57 func (*SnapshotFileInfo) ProtoMessage() {} 58 59 func (m *SnapshotFileInfo) GetType() SnapshotFileInfo_Type { 60 if m != nil && m.Type != nil { 61 return *m.Type 62 } 63 return SnapshotFileInfo_HFILE 64 } 65 66 func (m *SnapshotFileInfo) GetHfile() string { 67 if m != nil && m.Hfile != nil { 68 return *m.Hfile 69 } 70 return "" 71 } 72 73 func (m *SnapshotFileInfo) GetWalServer() string { 74 if m != nil && m.WalServer != nil { 75 return *m.WalServer 76 } 77 return "" 78 } 79 80 func (m *SnapshotFileInfo) GetWalName() string { 81 if m != nil && m.WalName != nil { 82 return *m.WalName 83 } 84 return "" 85 } 86 87 type SnapshotRegionManifest struct { 88 Version *int32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` 89 RegionInfo *RegionInfo `protobuf:"bytes,2,req,name=region_info" json:"region_info,omitempty"` 90 FamilyFiles []*SnapshotRegionManifest_FamilyFiles `protobuf:"bytes,3,rep,name=family_files" json:"family_files,omitempty"` 91 XXX_unrecognized []byte `json:"-"` 92 } 93 94 func (m *SnapshotRegionManifest) Reset() { *m = SnapshotRegionManifest{} } 95 func (m *SnapshotRegionManifest) String() string { return proto1.CompactTextString(m) } 96 func (*SnapshotRegionManifest) ProtoMessage() {} 97 98 func (m *SnapshotRegionManifest) GetVersion() int32 { 99 if m != nil && m.Version != nil { 100 return *m.Version 101 } 102 return 0 103 } 104 105 func (m *SnapshotRegionManifest) GetRegionInfo() *RegionInfo { 106 if m != nil { 107 return m.RegionInfo 108 } 109 return nil 110 } 111 112 func (m *SnapshotRegionManifest) GetFamilyFiles() []*SnapshotRegionManifest_FamilyFiles { 113 if m != nil { 114 return m.FamilyFiles 115 } 116 return nil 117 } 118 119 type SnapshotRegionManifest_StoreFile struct { 120 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 121 Reference *Reference `protobuf:"bytes,2,opt,name=reference" json:"reference,omitempty"` 122 // TODO: Add checksums or other fields to verify the file 123 FileSize *uint64 `protobuf:"varint,3,opt,name=file_size" json:"file_size,omitempty"` 124 XXX_unrecognized []byte `json:"-"` 125 } 126 127 func (m *SnapshotRegionManifest_StoreFile) Reset() { *m = SnapshotRegionManifest_StoreFile{} } 128 func (m *SnapshotRegionManifest_StoreFile) String() string { return proto1.CompactTextString(m) } 129 func (*SnapshotRegionManifest_StoreFile) ProtoMessage() {} 130 131 func (m *SnapshotRegionManifest_StoreFile) GetName() string { 132 if m != nil && m.Name != nil { 133 return *m.Name 134 } 135 return "" 136 } 137 138 func (m *SnapshotRegionManifest_StoreFile) GetReference() *Reference { 139 if m != nil { 140 return m.Reference 141 } 142 return nil 143 } 144 145 func (m *SnapshotRegionManifest_StoreFile) GetFileSize() uint64 { 146 if m != nil && m.FileSize != nil { 147 return *m.FileSize 148 } 149 return 0 150 } 151 152 type SnapshotRegionManifest_FamilyFiles struct { 153 FamilyName []byte `protobuf:"bytes,1,req,name=family_name" json:"family_name,omitempty"` 154 StoreFiles []*SnapshotRegionManifest_StoreFile `protobuf:"bytes,2,rep,name=store_files" json:"store_files,omitempty"` 155 XXX_unrecognized []byte `json:"-"` 156 } 157 158 func (m *SnapshotRegionManifest_FamilyFiles) Reset() { *m = SnapshotRegionManifest_FamilyFiles{} } 159 func (m *SnapshotRegionManifest_FamilyFiles) String() string { return proto1.CompactTextString(m) } 160 func (*SnapshotRegionManifest_FamilyFiles) ProtoMessage() {} 161 162 func (m *SnapshotRegionManifest_FamilyFiles) GetFamilyName() []byte { 163 if m != nil { 164 return m.FamilyName 165 } 166 return nil 167 } 168 169 func (m *SnapshotRegionManifest_FamilyFiles) GetStoreFiles() []*SnapshotRegionManifest_StoreFile { 170 if m != nil { 171 return m.StoreFiles 172 } 173 return nil 174 } 175 176 type SnapshotDataManifest struct { 177 TableSchema *TableSchema `protobuf:"bytes,1,req,name=table_schema" json:"table_schema,omitempty"` 178 RegionManifests []*SnapshotRegionManifest `protobuf:"bytes,2,rep,name=region_manifests" json:"region_manifests,omitempty"` 179 XXX_unrecognized []byte `json:"-"` 180 } 181 182 func (m *SnapshotDataManifest) Reset() { *m = SnapshotDataManifest{} } 183 func (m *SnapshotDataManifest) String() string { return proto1.CompactTextString(m) } 184 func (*SnapshotDataManifest) ProtoMessage() {} 185 186 func (m *SnapshotDataManifest) GetTableSchema() *TableSchema { 187 if m != nil { 188 return m.TableSchema 189 } 190 return nil 191 } 192 193 func (m *SnapshotDataManifest) GetRegionManifests() []*SnapshotRegionManifest { 194 if m != nil { 195 return m.RegionManifests 196 } 197 return nil 198 } 199 200 func init() { 201 proto1.RegisterEnum("proto.SnapshotFileInfo_Type", SnapshotFileInfo_Type_name, SnapshotFileInfo_Type_value) 202 }