github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/pingcap/go-hbase/proto/FS.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: FS.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 Reference_Range int32 15 16 const ( 17 Reference_TOP Reference_Range = 0 18 Reference_BOTTOM Reference_Range = 1 19 ) 20 21 var Reference_Range_name = map[int32]string{ 22 0: "TOP", 23 1: "BOTTOM", 24 } 25 var Reference_Range_value = map[string]int32{ 26 "TOP": 0, 27 "BOTTOM": 1, 28 } 29 30 func (x Reference_Range) Enum() *Reference_Range { 31 p := new(Reference_Range) 32 *p = x 33 return p 34 } 35 func (x Reference_Range) String() string { 36 return proto1.EnumName(Reference_Range_name, int32(x)) 37 } 38 func (x *Reference_Range) UnmarshalJSON(data []byte) error { 39 value, err := proto1.UnmarshalJSONEnum(Reference_Range_value, data, "Reference_Range") 40 if err != nil { 41 return err 42 } 43 *x = Reference_Range(value) 44 return nil 45 } 46 47 // * 48 // The ${HBASE_ROOTDIR}/hbase.version file content 49 type HBaseVersionFileContent struct { 50 Version *string `protobuf:"bytes,1,req,name=version" json:"version,omitempty"` 51 XXX_unrecognized []byte `json:"-"` 52 } 53 54 func (m *HBaseVersionFileContent) Reset() { *m = HBaseVersionFileContent{} } 55 func (m *HBaseVersionFileContent) String() string { return proto1.CompactTextString(m) } 56 func (*HBaseVersionFileContent) ProtoMessage() {} 57 58 func (m *HBaseVersionFileContent) GetVersion() string { 59 if m != nil && m.Version != nil { 60 return *m.Version 61 } 62 return "" 63 } 64 65 // * 66 // Reference file content used when we split an hfile under a region. 67 type Reference struct { 68 Splitkey []byte `protobuf:"bytes,1,req,name=splitkey" json:"splitkey,omitempty"` 69 Range *Reference_Range `protobuf:"varint,2,req,name=range,enum=proto.Reference_Range" json:"range,omitempty"` 70 XXX_unrecognized []byte `json:"-"` 71 } 72 73 func (m *Reference) Reset() { *m = Reference{} } 74 func (m *Reference) String() string { return proto1.CompactTextString(m) } 75 func (*Reference) ProtoMessage() {} 76 77 func (m *Reference) GetSplitkey() []byte { 78 if m != nil { 79 return m.Splitkey 80 } 81 return nil 82 } 83 84 func (m *Reference) GetRange() Reference_Range { 85 if m != nil && m.Range != nil { 86 return *m.Range 87 } 88 return Reference_TOP 89 } 90 91 func init() { 92 proto1.RegisterEnum("proto.Reference_Range", Reference_Range_name, Reference_Range_value) 93 }