github.com/tsuna/gohbase@v0.0.0-20250731002811-4ffcadfba63e/pb/FS.pb.go (about) 1 //* 2 // Licensed to the Apache Software Foundation (ASF) under one 3 // or more contributor license agreements. See the NOTICE file 4 // distributed with this work for additional information 5 // regarding copyright ownership. The ASF licenses this file 6 // to you under the Apache License, Version 2.0 (the 7 // "License"); you may not use this file except in compliance 8 // with the License. You may obtain a copy of the License at 9 // 10 // http://www.apache.org/licenses/LICENSE-2.0 11 // 12 // Unless required by applicable law or agreed to in writing, software 13 // distributed under the License is distributed on an "AS IS" BASIS, 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 // See the License for the specific language governing permissions and 16 // limitations under the License. 17 18 // This file contains protocol buffers that are written into the filesystem 19 20 // Code generated by protoc-gen-go. DO NOT EDIT. 21 // versions: 22 // protoc-gen-go v1.36.4 23 // protoc v5.28.3 24 // source: FS.proto 25 26 package pb 27 28 import ( 29 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 30 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 31 reflect "reflect" 32 sync "sync" 33 unsafe "unsafe" 34 ) 35 36 const ( 37 // Verify that this generated code is sufficiently up-to-date. 38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 39 // Verify that runtime/protoimpl is sufficiently up-to-date. 40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 41 ) 42 43 type Reference_Range int32 44 45 const ( 46 Reference_TOP Reference_Range = 0 47 Reference_BOTTOM Reference_Range = 1 48 ) 49 50 // Enum value maps for Reference_Range. 51 var ( 52 Reference_Range_name = map[int32]string{ 53 0: "TOP", 54 1: "BOTTOM", 55 } 56 Reference_Range_value = map[string]int32{ 57 "TOP": 0, 58 "BOTTOM": 1, 59 } 60 ) 61 62 func (x Reference_Range) Enum() *Reference_Range { 63 p := new(Reference_Range) 64 *p = x 65 return p 66 } 67 68 func (x Reference_Range) String() string { 69 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 70 } 71 72 func (Reference_Range) Descriptor() protoreflect.EnumDescriptor { 73 return file_FS_proto_enumTypes[0].Descriptor() 74 } 75 76 func (Reference_Range) Type() protoreflect.EnumType { 77 return &file_FS_proto_enumTypes[0] 78 } 79 80 func (x Reference_Range) Number() protoreflect.EnumNumber { 81 return protoreflect.EnumNumber(x) 82 } 83 84 // Deprecated: Do not use. 85 func (x *Reference_Range) UnmarshalJSON(b []byte) error { 86 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 87 if err != nil { 88 return err 89 } 90 *x = Reference_Range(num) 91 return nil 92 } 93 94 // Deprecated: Use Reference_Range.Descriptor instead. 95 func (Reference_Range) EnumDescriptor() ([]byte, []int) { 96 return file_FS_proto_rawDescGZIP(), []int{1, 0} 97 } 98 99 // * 100 // The ${HBASE_ROOTDIR}/hbase.version file content 101 type HBaseVersionFileContent struct { 102 state protoimpl.MessageState `protogen:"open.v1"` 103 Version *string `protobuf:"bytes,1,req,name=version" json:"version,omitempty"` 104 unknownFields protoimpl.UnknownFields 105 sizeCache protoimpl.SizeCache 106 } 107 108 func (x *HBaseVersionFileContent) Reset() { 109 *x = HBaseVersionFileContent{} 110 mi := &file_FS_proto_msgTypes[0] 111 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 112 ms.StoreMessageInfo(mi) 113 } 114 115 func (x *HBaseVersionFileContent) String() string { 116 return protoimpl.X.MessageStringOf(x) 117 } 118 119 func (*HBaseVersionFileContent) ProtoMessage() {} 120 121 func (x *HBaseVersionFileContent) ProtoReflect() protoreflect.Message { 122 mi := &file_FS_proto_msgTypes[0] 123 if x != nil { 124 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 125 if ms.LoadMessageInfo() == nil { 126 ms.StoreMessageInfo(mi) 127 } 128 return ms 129 } 130 return mi.MessageOf(x) 131 } 132 133 // Deprecated: Use HBaseVersionFileContent.ProtoReflect.Descriptor instead. 134 func (*HBaseVersionFileContent) Descriptor() ([]byte, []int) { 135 return file_FS_proto_rawDescGZIP(), []int{0} 136 } 137 138 func (x *HBaseVersionFileContent) GetVersion() string { 139 if x != nil && x.Version != nil { 140 return *x.Version 141 } 142 return "" 143 } 144 145 // * 146 // Reference file content used when we split an hfile under a region. 147 type Reference struct { 148 state protoimpl.MessageState `protogen:"open.v1"` 149 Splitkey []byte `protobuf:"bytes,1,req,name=splitkey" json:"splitkey,omitempty"` 150 Range *Reference_Range `protobuf:"varint,2,req,name=range,enum=pb.Reference_Range" json:"range,omitempty"` 151 unknownFields protoimpl.UnknownFields 152 sizeCache protoimpl.SizeCache 153 } 154 155 func (x *Reference) Reset() { 156 *x = Reference{} 157 mi := &file_FS_proto_msgTypes[1] 158 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 159 ms.StoreMessageInfo(mi) 160 } 161 162 func (x *Reference) String() string { 163 return protoimpl.X.MessageStringOf(x) 164 } 165 166 func (*Reference) ProtoMessage() {} 167 168 func (x *Reference) ProtoReflect() protoreflect.Message { 169 mi := &file_FS_proto_msgTypes[1] 170 if x != nil { 171 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 172 if ms.LoadMessageInfo() == nil { 173 ms.StoreMessageInfo(mi) 174 } 175 return ms 176 } 177 return mi.MessageOf(x) 178 } 179 180 // Deprecated: Use Reference.ProtoReflect.Descriptor instead. 181 func (*Reference) Descriptor() ([]byte, []int) { 182 return file_FS_proto_rawDescGZIP(), []int{1} 183 } 184 185 func (x *Reference) GetSplitkey() []byte { 186 if x != nil { 187 return x.Splitkey 188 } 189 return nil 190 } 191 192 func (x *Reference) GetRange() Reference_Range { 193 if x != nil && x.Range != nil { 194 return *x.Range 195 } 196 return Reference_TOP 197 } 198 199 var File_FS_proto protoreflect.FileDescriptor 200 201 var file_FS_proto_rawDesc = string([]byte{ 202 0x0a, 0x08, 0x46, 0x53, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x33, 203 0x0a, 0x17, 0x48, 0x42, 0x61, 0x73, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x46, 0x69, 204 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 205 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 206 0x69, 0x6f, 0x6e, 0x22, 0x70, 0x0a, 0x09, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 207 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x02, 208 0x28, 0x0c, 0x52, 0x08, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x6b, 0x65, 0x79, 0x12, 0x29, 0x0a, 0x05, 209 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x70, 0x62, 210 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 211 0x52, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x22, 0x1c, 0x0a, 0x05, 0x52, 0x61, 0x6e, 0x67, 0x65, 212 0x12, 0x07, 0x0a, 0x03, 0x54, 0x4f, 0x50, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x4f, 0x54, 213 0x54, 0x4f, 0x4d, 0x10, 0x01, 0x42, 0x42, 0x0a, 0x2a, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x61, 214 0x63, 0x68, 0x65, 0x2e, 0x68, 0x61, 0x64, 0x6f, 0x6f, 0x70, 0x2e, 0x68, 0x62, 0x61, 0x73, 0x65, 215 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 216 0x74, 0x65, 0x64, 0x42, 0x08, 0x46, 0x53, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x48, 0x01, 0x5a, 217 0x05, 0x2e, 0x2e, 0x2f, 0x70, 0x62, 0xa0, 0x01, 0x01, 218 }) 219 220 var ( 221 file_FS_proto_rawDescOnce sync.Once 222 file_FS_proto_rawDescData []byte 223 ) 224 225 func file_FS_proto_rawDescGZIP() []byte { 226 file_FS_proto_rawDescOnce.Do(func() { 227 file_FS_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_FS_proto_rawDesc), len(file_FS_proto_rawDesc))) 228 }) 229 return file_FS_proto_rawDescData 230 } 231 232 var file_FS_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 233 var file_FS_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 234 var file_FS_proto_goTypes = []any{ 235 (Reference_Range)(0), // 0: pb.Reference.Range 236 (*HBaseVersionFileContent)(nil), // 1: pb.HBaseVersionFileContent 237 (*Reference)(nil), // 2: pb.Reference 238 } 239 var file_FS_proto_depIdxs = []int32{ 240 0, // 0: pb.Reference.range:type_name -> pb.Reference.Range 241 1, // [1:1] is the sub-list for method output_type 242 1, // [1:1] is the sub-list for method input_type 243 1, // [1:1] is the sub-list for extension type_name 244 1, // [1:1] is the sub-list for extension extendee 245 0, // [0:1] is the sub-list for field type_name 246 } 247 248 func init() { file_FS_proto_init() } 249 func file_FS_proto_init() { 250 if File_FS_proto != nil { 251 return 252 } 253 type x struct{} 254 out := protoimpl.TypeBuilder{ 255 File: protoimpl.DescBuilder{ 256 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 257 RawDescriptor: unsafe.Slice(unsafe.StringData(file_FS_proto_rawDesc), len(file_FS_proto_rawDesc)), 258 NumEnums: 1, 259 NumMessages: 2, 260 NumExtensions: 0, 261 NumServices: 0, 262 }, 263 GoTypes: file_FS_proto_goTypes, 264 DependencyIndexes: file_FS_proto_depIdxs, 265 EnumInfos: file_FS_proto_enumTypes, 266 MessageInfos: file_FS_proto_msgTypes, 267 }.Build() 268 File_FS_proto = out.File 269 file_FS_proto_goTypes = nil 270 file_FS_proto_depIdxs = nil 271 }