1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: hdfs.proto |
3 | |
4 | #include "hdfs.pb.h" |
5 | |
6 | #include <algorithm> |
7 | |
8 | #include <google/protobuf/stubs/common.h> |
9 | #include <google/protobuf/stubs/port.h> |
10 | #include <google/protobuf/io/coded_stream.h> |
11 | #include <google/protobuf/wire_format_lite_inl.h> |
12 | #include <google/protobuf/descriptor.h> |
13 | #include <google/protobuf/generated_message_reflection.h> |
14 | #include <google/protobuf/reflection_ops.h> |
15 | #include <google/protobuf/wire_format.h> |
16 | // This is a temporary google only hack |
17 | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
18 | #include "third_party/protobuf/version.h" |
19 | #endif |
20 | // @@protoc_insertion_point(includes) |
21 | |
22 | namespace protobuf_Security_2eproto { |
23 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_Security_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TokenProto; |
24 | } // namespace protobuf_Security_2eproto |
25 | namespace protobuf_hdfs_2eproto { |
26 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_hdfs_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BlockKeyProto; |
27 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_hdfs_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BlockProto; |
28 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_hdfs_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DatanodeIDProto; |
29 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_hdfs_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ExtendedBlockProto; |
30 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_hdfs_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_FsPermissionProto; |
31 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_hdfs_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RemoteEditLogProto; |
32 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_hdfs_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SnapshotDiffReportEntryProto; |
33 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_hdfs_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StorageInfoProto; |
34 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_hdfs_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_BlockWithLocationsProto; |
35 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_hdfs_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_CheckpointCommandProto; |
36 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_hdfs_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_CheckpointSignatureProto; |
37 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_hdfs_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DatanodeInfoProto; |
38 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_hdfs_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_LocatedBlocksProto; |
39 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_hdfs_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NamespaceInfoProto; |
40 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_hdfs_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_SnapshottableDirectoryStatusProto; |
41 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_hdfs_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_HdfsFileStatusProto; |
42 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_hdfs_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_LocatedBlockProto; |
43 | } // namespace protobuf_hdfs_2eproto |
44 | namespace Hdfs { |
45 | namespace Internal { |
46 | class ExtendedBlockProtoDefaultTypeInternal { |
47 | public: |
48 | ::google::protobuf::internal::ExplicitlyConstructed<ExtendedBlockProto> |
49 | _instance; |
50 | } _ExtendedBlockProto_default_instance_; |
51 | class DatanodeIDProtoDefaultTypeInternal { |
52 | public: |
53 | ::google::protobuf::internal::ExplicitlyConstructed<DatanodeIDProto> |
54 | _instance; |
55 | } _DatanodeIDProto_default_instance_; |
56 | class DatanodeInfosProtoDefaultTypeInternal { |
57 | public: |
58 | ::google::protobuf::internal::ExplicitlyConstructed<DatanodeInfosProto> |
59 | _instance; |
60 | } _DatanodeInfosProto_default_instance_; |
61 | class DatanodeInfoProtoDefaultTypeInternal { |
62 | public: |
63 | ::google::protobuf::internal::ExplicitlyConstructed<DatanodeInfoProto> |
64 | _instance; |
65 | } _DatanodeInfoProto_default_instance_; |
66 | class ContentSummaryProtoDefaultTypeInternal { |
67 | public: |
68 | ::google::protobuf::internal::ExplicitlyConstructed<ContentSummaryProto> |
69 | _instance; |
70 | } _ContentSummaryProto_default_instance_; |
71 | class CorruptFileBlocksProtoDefaultTypeInternal { |
72 | public: |
73 | ::google::protobuf::internal::ExplicitlyConstructed<CorruptFileBlocksProto> |
74 | _instance; |
75 | } _CorruptFileBlocksProto_default_instance_; |
76 | class FsPermissionProtoDefaultTypeInternal { |
77 | public: |
78 | ::google::protobuf::internal::ExplicitlyConstructed<FsPermissionProto> |
79 | _instance; |
80 | } _FsPermissionProto_default_instance_; |
81 | class StorageUuidsProtoDefaultTypeInternal { |
82 | public: |
83 | ::google::protobuf::internal::ExplicitlyConstructed<StorageUuidsProto> |
84 | _instance; |
85 | } _StorageUuidsProto_default_instance_; |
86 | class LocatedBlockProtoDefaultTypeInternal { |
87 | public: |
88 | ::google::protobuf::internal::ExplicitlyConstructed<LocatedBlockProto> |
89 | _instance; |
90 | } _LocatedBlockProto_default_instance_; |
91 | class DataEncryptionKeyProtoDefaultTypeInternal { |
92 | public: |
93 | ::google::protobuf::internal::ExplicitlyConstructed<DataEncryptionKeyProto> |
94 | _instance; |
95 | } _DataEncryptionKeyProto_default_instance_; |
96 | class LocatedBlocksProtoDefaultTypeInternal { |
97 | public: |
98 | ::google::protobuf::internal::ExplicitlyConstructed<LocatedBlocksProto> |
99 | _instance; |
100 | } _LocatedBlocksProto_default_instance_; |
101 | class HdfsFileStatusProtoDefaultTypeInternal { |
102 | public: |
103 | ::google::protobuf::internal::ExplicitlyConstructed<HdfsFileStatusProto> |
104 | _instance; |
105 | } _HdfsFileStatusProto_default_instance_; |
106 | class FsServerDefaultsProtoDefaultTypeInternal { |
107 | public: |
108 | ::google::protobuf::internal::ExplicitlyConstructed<FsServerDefaultsProto> |
109 | _instance; |
110 | } _FsServerDefaultsProto_default_instance_; |
111 | class DirectoryListingProtoDefaultTypeInternal { |
112 | public: |
113 | ::google::protobuf::internal::ExplicitlyConstructed<DirectoryListingProto> |
114 | _instance; |
115 | } _DirectoryListingProto_default_instance_; |
116 | class SnapshottableDirectoryStatusProtoDefaultTypeInternal { |
117 | public: |
118 | ::google::protobuf::internal::ExplicitlyConstructed<SnapshottableDirectoryStatusProto> |
119 | _instance; |
120 | } _SnapshottableDirectoryStatusProto_default_instance_; |
121 | class SnapshottableDirectoryListingProtoDefaultTypeInternal { |
122 | public: |
123 | ::google::protobuf::internal::ExplicitlyConstructed<SnapshottableDirectoryListingProto> |
124 | _instance; |
125 | } _SnapshottableDirectoryListingProto_default_instance_; |
126 | class SnapshotDiffReportEntryProtoDefaultTypeInternal { |
127 | public: |
128 | ::google::protobuf::internal::ExplicitlyConstructed<SnapshotDiffReportEntryProto> |
129 | _instance; |
130 | } _SnapshotDiffReportEntryProto_default_instance_; |
131 | class SnapshotDiffReportProtoDefaultTypeInternal { |
132 | public: |
133 | ::google::protobuf::internal::ExplicitlyConstructed<SnapshotDiffReportProto> |
134 | _instance; |
135 | } _SnapshotDiffReportProto_default_instance_; |
136 | class StorageInfoProtoDefaultTypeInternal { |
137 | public: |
138 | ::google::protobuf::internal::ExplicitlyConstructed<StorageInfoProto> |
139 | _instance; |
140 | } _StorageInfoProto_default_instance_; |
141 | class NamenodeRegistrationProtoDefaultTypeInternal { |
142 | public: |
143 | ::google::protobuf::internal::ExplicitlyConstructed<NamenodeRegistrationProto> |
144 | _instance; |
145 | } _NamenodeRegistrationProto_default_instance_; |
146 | class CheckpointSignatureProtoDefaultTypeInternal { |
147 | public: |
148 | ::google::protobuf::internal::ExplicitlyConstructed<CheckpointSignatureProto> |
149 | _instance; |
150 | } _CheckpointSignatureProto_default_instance_; |
151 | class NamenodeCommandProtoDefaultTypeInternal { |
152 | public: |
153 | ::google::protobuf::internal::ExplicitlyConstructed<NamenodeCommandProto> |
154 | _instance; |
155 | } _NamenodeCommandProto_default_instance_; |
156 | class CheckpointCommandProtoDefaultTypeInternal { |
157 | public: |
158 | ::google::protobuf::internal::ExplicitlyConstructed<CheckpointCommandProto> |
159 | _instance; |
160 | } _CheckpointCommandProto_default_instance_; |
161 | class BlockProtoDefaultTypeInternal { |
162 | public: |
163 | ::google::protobuf::internal::ExplicitlyConstructed<BlockProto> |
164 | _instance; |
165 | } _BlockProto_default_instance_; |
166 | class BlockWithLocationsProtoDefaultTypeInternal { |
167 | public: |
168 | ::google::protobuf::internal::ExplicitlyConstructed<BlockWithLocationsProto> |
169 | _instance; |
170 | } _BlockWithLocationsProto_default_instance_; |
171 | class BlocksWithLocationsProtoDefaultTypeInternal { |
172 | public: |
173 | ::google::protobuf::internal::ExplicitlyConstructed<BlocksWithLocationsProto> |
174 | _instance; |
175 | } _BlocksWithLocationsProto_default_instance_; |
176 | class RemoteEditLogProtoDefaultTypeInternal { |
177 | public: |
178 | ::google::protobuf::internal::ExplicitlyConstructed<RemoteEditLogProto> |
179 | _instance; |
180 | } _RemoteEditLogProto_default_instance_; |
181 | class RemoteEditLogManifestProtoDefaultTypeInternal { |
182 | public: |
183 | ::google::protobuf::internal::ExplicitlyConstructed<RemoteEditLogManifestProto> |
184 | _instance; |
185 | } _RemoteEditLogManifestProto_default_instance_; |
186 | class NamespaceInfoProtoDefaultTypeInternal { |
187 | public: |
188 | ::google::protobuf::internal::ExplicitlyConstructed<NamespaceInfoProto> |
189 | _instance; |
190 | } _NamespaceInfoProto_default_instance_; |
191 | class BlockKeyProtoDefaultTypeInternal { |
192 | public: |
193 | ::google::protobuf::internal::ExplicitlyConstructed<BlockKeyProto> |
194 | _instance; |
195 | } _BlockKeyProto_default_instance_; |
196 | class ExportedBlockKeysProtoDefaultTypeInternal { |
197 | public: |
198 | ::google::protobuf::internal::ExplicitlyConstructed<ExportedBlockKeysProto> |
199 | _instance; |
200 | } _ExportedBlockKeysProto_default_instance_; |
201 | class RecoveringBlockProtoDefaultTypeInternal { |
202 | public: |
203 | ::google::protobuf::internal::ExplicitlyConstructed<RecoveringBlockProto> |
204 | _instance; |
205 | } _RecoveringBlockProto_default_instance_; |
206 | class VersionRequestProtoDefaultTypeInternal { |
207 | public: |
208 | ::google::protobuf::internal::ExplicitlyConstructed<VersionRequestProto> |
209 | _instance; |
210 | } _VersionRequestProto_default_instance_; |
211 | class VersionResponseProtoDefaultTypeInternal { |
212 | public: |
213 | ::google::protobuf::internal::ExplicitlyConstructed<VersionResponseProto> |
214 | _instance; |
215 | } _VersionResponseProto_default_instance_; |
216 | class SnapshotInfoProtoDefaultTypeInternal { |
217 | public: |
218 | ::google::protobuf::internal::ExplicitlyConstructed<SnapshotInfoProto> |
219 | _instance; |
220 | } _SnapshotInfoProto_default_instance_; |
221 | } // namespace Internal |
222 | } // namespace Hdfs |
223 | namespace protobuf_hdfs_2eproto { |
224 | static void InitDefaultsExtendedBlockProto() { |
225 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
226 | |
227 | { |
228 | void* ptr = &::Hdfs::Internal::_ExtendedBlockProto_default_instance_; |
229 | new (ptr) ::Hdfs::Internal::ExtendedBlockProto(); |
230 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
231 | } |
232 | ::Hdfs::Internal::ExtendedBlockProto::InitAsDefaultInstance(); |
233 | } |
234 | |
235 | ::google::protobuf::internal::SCCInfo<0> scc_info_ExtendedBlockProto = |
236 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsExtendedBlockProto}, {}}; |
237 | |
238 | static void InitDefaultsDatanodeIDProto() { |
239 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
240 | |
241 | { |
242 | void* ptr = &::Hdfs::Internal::_DatanodeIDProto_default_instance_; |
243 | new (ptr) ::Hdfs::Internal::DatanodeIDProto(); |
244 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
245 | } |
246 | ::Hdfs::Internal::DatanodeIDProto::InitAsDefaultInstance(); |
247 | } |
248 | |
249 | ::google::protobuf::internal::SCCInfo<0> scc_info_DatanodeIDProto = |
250 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDatanodeIDProto}, {}}; |
251 | |
252 | static void InitDefaultsDatanodeInfosProto() { |
253 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
254 | |
255 | { |
256 | void* ptr = &::Hdfs::Internal::_DatanodeInfosProto_default_instance_; |
257 | new (ptr) ::Hdfs::Internal::DatanodeInfosProto(); |
258 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
259 | } |
260 | ::Hdfs::Internal::DatanodeInfosProto::InitAsDefaultInstance(); |
261 | } |
262 | |
263 | ::google::protobuf::internal::SCCInfo<1> scc_info_DatanodeInfosProto = |
264 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDatanodeInfosProto}, { |
265 | &protobuf_hdfs_2eproto::scc_info_DatanodeInfoProto.base,}}; |
266 | |
267 | static void InitDefaultsDatanodeInfoProto() { |
268 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
269 | |
270 | { |
271 | void* ptr = &::Hdfs::Internal::_DatanodeInfoProto_default_instance_; |
272 | new (ptr) ::Hdfs::Internal::DatanodeInfoProto(); |
273 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
274 | } |
275 | ::Hdfs::Internal::DatanodeInfoProto::InitAsDefaultInstance(); |
276 | } |
277 | |
278 | ::google::protobuf::internal::SCCInfo<1> scc_info_DatanodeInfoProto = |
279 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDatanodeInfoProto}, { |
280 | &protobuf_hdfs_2eproto::scc_info_DatanodeIDProto.base,}}; |
281 | |
282 | static void InitDefaultsContentSummaryProto() { |
283 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
284 | |
285 | { |
286 | void* ptr = &::Hdfs::Internal::_ContentSummaryProto_default_instance_; |
287 | new (ptr) ::Hdfs::Internal::ContentSummaryProto(); |
288 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
289 | } |
290 | ::Hdfs::Internal::ContentSummaryProto::InitAsDefaultInstance(); |
291 | } |
292 | |
293 | ::google::protobuf::internal::SCCInfo<0> scc_info_ContentSummaryProto = |
294 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContentSummaryProto}, {}}; |
295 | |
296 | static void InitDefaultsCorruptFileBlocksProto() { |
297 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
298 | |
299 | { |
300 | void* ptr = &::Hdfs::Internal::_CorruptFileBlocksProto_default_instance_; |
301 | new (ptr) ::Hdfs::Internal::CorruptFileBlocksProto(); |
302 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
303 | } |
304 | ::Hdfs::Internal::CorruptFileBlocksProto::InitAsDefaultInstance(); |
305 | } |
306 | |
307 | ::google::protobuf::internal::SCCInfo<0> scc_info_CorruptFileBlocksProto = |
308 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCorruptFileBlocksProto}, {}}; |
309 | |
310 | static void InitDefaultsFsPermissionProto() { |
311 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
312 | |
313 | { |
314 | void* ptr = &::Hdfs::Internal::_FsPermissionProto_default_instance_; |
315 | new (ptr) ::Hdfs::Internal::FsPermissionProto(); |
316 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
317 | } |
318 | ::Hdfs::Internal::FsPermissionProto::InitAsDefaultInstance(); |
319 | } |
320 | |
321 | ::google::protobuf::internal::SCCInfo<0> scc_info_FsPermissionProto = |
322 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFsPermissionProto}, {}}; |
323 | |
324 | static void InitDefaultsStorageUuidsProto() { |
325 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
326 | |
327 | { |
328 | void* ptr = &::Hdfs::Internal::_StorageUuidsProto_default_instance_; |
329 | new (ptr) ::Hdfs::Internal::StorageUuidsProto(); |
330 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
331 | } |
332 | ::Hdfs::Internal::StorageUuidsProto::InitAsDefaultInstance(); |
333 | } |
334 | |
335 | ::google::protobuf::internal::SCCInfo<0> scc_info_StorageUuidsProto = |
336 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStorageUuidsProto}, {}}; |
337 | |
338 | static void InitDefaultsLocatedBlockProto() { |
339 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
340 | |
341 | { |
342 | void* ptr = &::Hdfs::Internal::_LocatedBlockProto_default_instance_; |
343 | new (ptr) ::Hdfs::Internal::LocatedBlockProto(); |
344 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
345 | } |
346 | ::Hdfs::Internal::LocatedBlockProto::InitAsDefaultInstance(); |
347 | } |
348 | |
349 | ::google::protobuf::internal::SCCInfo<3> scc_info_LocatedBlockProto = |
350 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsLocatedBlockProto}, { |
351 | &protobuf_hdfs_2eproto::scc_info_ExtendedBlockProto.base, |
352 | &protobuf_hdfs_2eproto::scc_info_DatanodeInfoProto.base, |
353 | &protobuf_Security_2eproto::scc_info_TokenProto.base,}}; |
354 | |
355 | static void InitDefaultsDataEncryptionKeyProto() { |
356 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
357 | |
358 | { |
359 | void* ptr = &::Hdfs::Internal::_DataEncryptionKeyProto_default_instance_; |
360 | new (ptr) ::Hdfs::Internal::DataEncryptionKeyProto(); |
361 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
362 | } |
363 | ::Hdfs::Internal::DataEncryptionKeyProto::InitAsDefaultInstance(); |
364 | } |
365 | |
366 | ::google::protobuf::internal::SCCInfo<0> scc_info_DataEncryptionKeyProto = |
367 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDataEncryptionKeyProto}, {}}; |
368 | |
369 | static void InitDefaultsLocatedBlocksProto() { |
370 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
371 | |
372 | { |
373 | void* ptr = &::Hdfs::Internal::_LocatedBlocksProto_default_instance_; |
374 | new (ptr) ::Hdfs::Internal::LocatedBlocksProto(); |
375 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
376 | } |
377 | ::Hdfs::Internal::LocatedBlocksProto::InitAsDefaultInstance(); |
378 | } |
379 | |
380 | ::google::protobuf::internal::SCCInfo<1> scc_info_LocatedBlocksProto = |
381 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsLocatedBlocksProto}, { |
382 | &protobuf_hdfs_2eproto::scc_info_LocatedBlockProto.base,}}; |
383 | |
384 | static void InitDefaultsHdfsFileStatusProto() { |
385 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
386 | |
387 | { |
388 | void* ptr = &::Hdfs::Internal::_HdfsFileStatusProto_default_instance_; |
389 | new (ptr) ::Hdfs::Internal::HdfsFileStatusProto(); |
390 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
391 | } |
392 | ::Hdfs::Internal::HdfsFileStatusProto::InitAsDefaultInstance(); |
393 | } |
394 | |
395 | ::google::protobuf::internal::SCCInfo<2> scc_info_HdfsFileStatusProto = |
396 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHdfsFileStatusProto}, { |
397 | &protobuf_hdfs_2eproto::scc_info_FsPermissionProto.base, |
398 | &protobuf_hdfs_2eproto::scc_info_LocatedBlocksProto.base,}}; |
399 | |
400 | static void InitDefaultsFsServerDefaultsProto() { |
401 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
402 | |
403 | { |
404 | void* ptr = &::Hdfs::Internal::_FsServerDefaultsProto_default_instance_; |
405 | new (ptr) ::Hdfs::Internal::FsServerDefaultsProto(); |
406 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
407 | } |
408 | ::Hdfs::Internal::FsServerDefaultsProto::InitAsDefaultInstance(); |
409 | } |
410 | |
411 | ::google::protobuf::internal::SCCInfo<0> scc_info_FsServerDefaultsProto = |
412 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFsServerDefaultsProto}, {}}; |
413 | |
414 | static void InitDefaultsDirectoryListingProto() { |
415 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
416 | |
417 | { |
418 | void* ptr = &::Hdfs::Internal::_DirectoryListingProto_default_instance_; |
419 | new (ptr) ::Hdfs::Internal::DirectoryListingProto(); |
420 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
421 | } |
422 | ::Hdfs::Internal::DirectoryListingProto::InitAsDefaultInstance(); |
423 | } |
424 | |
425 | ::google::protobuf::internal::SCCInfo<1> scc_info_DirectoryListingProto = |
426 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDirectoryListingProto}, { |
427 | &protobuf_hdfs_2eproto::scc_info_HdfsFileStatusProto.base,}}; |
428 | |
429 | static void InitDefaultsSnapshottableDirectoryStatusProto() { |
430 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
431 | |
432 | { |
433 | void* ptr = &::Hdfs::Internal::_SnapshottableDirectoryStatusProto_default_instance_; |
434 | new (ptr) ::Hdfs::Internal::SnapshottableDirectoryStatusProto(); |
435 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
436 | } |
437 | ::Hdfs::Internal::SnapshottableDirectoryStatusProto::InitAsDefaultInstance(); |
438 | } |
439 | |
440 | ::google::protobuf::internal::SCCInfo<1> scc_info_SnapshottableDirectoryStatusProto = |
441 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSnapshottableDirectoryStatusProto}, { |
442 | &protobuf_hdfs_2eproto::scc_info_HdfsFileStatusProto.base,}}; |
443 | |
444 | static void InitDefaultsSnapshottableDirectoryListingProto() { |
445 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
446 | |
447 | { |
448 | void* ptr = &::Hdfs::Internal::_SnapshottableDirectoryListingProto_default_instance_; |
449 | new (ptr) ::Hdfs::Internal::SnapshottableDirectoryListingProto(); |
450 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
451 | } |
452 | ::Hdfs::Internal::SnapshottableDirectoryListingProto::InitAsDefaultInstance(); |
453 | } |
454 | |
455 | ::google::protobuf::internal::SCCInfo<1> scc_info_SnapshottableDirectoryListingProto = |
456 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSnapshottableDirectoryListingProto}, { |
457 | &protobuf_hdfs_2eproto::scc_info_SnapshottableDirectoryStatusProto.base,}}; |
458 | |
459 | static void InitDefaultsSnapshotDiffReportEntryProto() { |
460 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
461 | |
462 | { |
463 | void* ptr = &::Hdfs::Internal::_SnapshotDiffReportEntryProto_default_instance_; |
464 | new (ptr) ::Hdfs::Internal::SnapshotDiffReportEntryProto(); |
465 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
466 | } |
467 | ::Hdfs::Internal::SnapshotDiffReportEntryProto::InitAsDefaultInstance(); |
468 | } |
469 | |
470 | ::google::protobuf::internal::SCCInfo<0> scc_info_SnapshotDiffReportEntryProto = |
471 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSnapshotDiffReportEntryProto}, {}}; |
472 | |
473 | static void InitDefaultsSnapshotDiffReportProto() { |
474 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
475 | |
476 | { |
477 | void* ptr = &::Hdfs::Internal::_SnapshotDiffReportProto_default_instance_; |
478 | new (ptr) ::Hdfs::Internal::SnapshotDiffReportProto(); |
479 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
480 | } |
481 | ::Hdfs::Internal::SnapshotDiffReportProto::InitAsDefaultInstance(); |
482 | } |
483 | |
484 | ::google::protobuf::internal::SCCInfo<1> scc_info_SnapshotDiffReportProto = |
485 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSnapshotDiffReportProto}, { |
486 | &protobuf_hdfs_2eproto::scc_info_SnapshotDiffReportEntryProto.base,}}; |
487 | |
488 | static void InitDefaultsStorageInfoProto() { |
489 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
490 | |
491 | { |
492 | void* ptr = &::Hdfs::Internal::_StorageInfoProto_default_instance_; |
493 | new (ptr) ::Hdfs::Internal::StorageInfoProto(); |
494 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
495 | } |
496 | ::Hdfs::Internal::StorageInfoProto::InitAsDefaultInstance(); |
497 | } |
498 | |
499 | ::google::protobuf::internal::SCCInfo<0> scc_info_StorageInfoProto = |
500 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStorageInfoProto}, {}}; |
501 | |
502 | static void InitDefaultsNamenodeRegistrationProto() { |
503 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
504 | |
505 | { |
506 | void* ptr = &::Hdfs::Internal::_NamenodeRegistrationProto_default_instance_; |
507 | new (ptr) ::Hdfs::Internal::NamenodeRegistrationProto(); |
508 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
509 | } |
510 | ::Hdfs::Internal::NamenodeRegistrationProto::InitAsDefaultInstance(); |
511 | } |
512 | |
513 | ::google::protobuf::internal::SCCInfo<1> scc_info_NamenodeRegistrationProto = |
514 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNamenodeRegistrationProto}, { |
515 | &protobuf_hdfs_2eproto::scc_info_StorageInfoProto.base,}}; |
516 | |
517 | static void InitDefaultsCheckpointSignatureProto() { |
518 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
519 | |
520 | { |
521 | void* ptr = &::Hdfs::Internal::_CheckpointSignatureProto_default_instance_; |
522 | new (ptr) ::Hdfs::Internal::CheckpointSignatureProto(); |
523 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
524 | } |
525 | ::Hdfs::Internal::CheckpointSignatureProto::InitAsDefaultInstance(); |
526 | } |
527 | |
528 | ::google::protobuf::internal::SCCInfo<1> scc_info_CheckpointSignatureProto = |
529 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCheckpointSignatureProto}, { |
530 | &protobuf_hdfs_2eproto::scc_info_StorageInfoProto.base,}}; |
531 | |
532 | static void InitDefaultsNamenodeCommandProto() { |
533 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
534 | |
535 | { |
536 | void* ptr = &::Hdfs::Internal::_NamenodeCommandProto_default_instance_; |
537 | new (ptr) ::Hdfs::Internal::NamenodeCommandProto(); |
538 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
539 | } |
540 | ::Hdfs::Internal::NamenodeCommandProto::InitAsDefaultInstance(); |
541 | } |
542 | |
543 | ::google::protobuf::internal::SCCInfo<1> scc_info_NamenodeCommandProto = |
544 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNamenodeCommandProto}, { |
545 | &protobuf_hdfs_2eproto::scc_info_CheckpointCommandProto.base,}}; |
546 | |
547 | static void InitDefaultsCheckpointCommandProto() { |
548 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
549 | |
550 | { |
551 | void* ptr = &::Hdfs::Internal::_CheckpointCommandProto_default_instance_; |
552 | new (ptr) ::Hdfs::Internal::CheckpointCommandProto(); |
553 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
554 | } |
555 | ::Hdfs::Internal::CheckpointCommandProto::InitAsDefaultInstance(); |
556 | } |
557 | |
558 | ::google::protobuf::internal::SCCInfo<1> scc_info_CheckpointCommandProto = |
559 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCheckpointCommandProto}, { |
560 | &protobuf_hdfs_2eproto::scc_info_CheckpointSignatureProto.base,}}; |
561 | |
562 | static void InitDefaultsBlockProto() { |
563 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
564 | |
565 | { |
566 | void* ptr = &::Hdfs::Internal::_BlockProto_default_instance_; |
567 | new (ptr) ::Hdfs::Internal::BlockProto(); |
568 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
569 | } |
570 | ::Hdfs::Internal::BlockProto::InitAsDefaultInstance(); |
571 | } |
572 | |
573 | ::google::protobuf::internal::SCCInfo<0> scc_info_BlockProto = |
574 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBlockProto}, {}}; |
575 | |
576 | static void InitDefaultsBlockWithLocationsProto() { |
577 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
578 | |
579 | { |
580 | void* ptr = &::Hdfs::Internal::_BlockWithLocationsProto_default_instance_; |
581 | new (ptr) ::Hdfs::Internal::BlockWithLocationsProto(); |
582 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
583 | } |
584 | ::Hdfs::Internal::BlockWithLocationsProto::InitAsDefaultInstance(); |
585 | } |
586 | |
587 | ::google::protobuf::internal::SCCInfo<1> scc_info_BlockWithLocationsProto = |
588 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBlockWithLocationsProto}, { |
589 | &protobuf_hdfs_2eproto::scc_info_BlockProto.base,}}; |
590 | |
591 | static void InitDefaultsBlocksWithLocationsProto() { |
592 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
593 | |
594 | { |
595 | void* ptr = &::Hdfs::Internal::_BlocksWithLocationsProto_default_instance_; |
596 | new (ptr) ::Hdfs::Internal::BlocksWithLocationsProto(); |
597 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
598 | } |
599 | ::Hdfs::Internal::BlocksWithLocationsProto::InitAsDefaultInstance(); |
600 | } |
601 | |
602 | ::google::protobuf::internal::SCCInfo<1> scc_info_BlocksWithLocationsProto = |
603 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBlocksWithLocationsProto}, { |
604 | &protobuf_hdfs_2eproto::scc_info_BlockWithLocationsProto.base,}}; |
605 | |
606 | static void InitDefaultsRemoteEditLogProto() { |
607 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
608 | |
609 | { |
610 | void* ptr = &::Hdfs::Internal::_RemoteEditLogProto_default_instance_; |
611 | new (ptr) ::Hdfs::Internal::RemoteEditLogProto(); |
612 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
613 | } |
614 | ::Hdfs::Internal::RemoteEditLogProto::InitAsDefaultInstance(); |
615 | } |
616 | |
617 | ::google::protobuf::internal::SCCInfo<0> scc_info_RemoteEditLogProto = |
618 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRemoteEditLogProto}, {}}; |
619 | |
620 | static void InitDefaultsRemoteEditLogManifestProto() { |
621 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
622 | |
623 | { |
624 | void* ptr = &::Hdfs::Internal::_RemoteEditLogManifestProto_default_instance_; |
625 | new (ptr) ::Hdfs::Internal::RemoteEditLogManifestProto(); |
626 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
627 | } |
628 | ::Hdfs::Internal::RemoteEditLogManifestProto::InitAsDefaultInstance(); |
629 | } |
630 | |
631 | ::google::protobuf::internal::SCCInfo<1> scc_info_RemoteEditLogManifestProto = |
632 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRemoteEditLogManifestProto}, { |
633 | &protobuf_hdfs_2eproto::scc_info_RemoteEditLogProto.base,}}; |
634 | |
635 | static void InitDefaultsNamespaceInfoProto() { |
636 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
637 | |
638 | { |
639 | void* ptr = &::Hdfs::Internal::_NamespaceInfoProto_default_instance_; |
640 | new (ptr) ::Hdfs::Internal::NamespaceInfoProto(); |
641 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
642 | } |
643 | ::Hdfs::Internal::NamespaceInfoProto::InitAsDefaultInstance(); |
644 | } |
645 | |
646 | ::google::protobuf::internal::SCCInfo<1> scc_info_NamespaceInfoProto = |
647 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNamespaceInfoProto}, { |
648 | &protobuf_hdfs_2eproto::scc_info_StorageInfoProto.base,}}; |
649 | |
650 | static void InitDefaultsBlockKeyProto() { |
651 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
652 | |
653 | { |
654 | void* ptr = &::Hdfs::Internal::_BlockKeyProto_default_instance_; |
655 | new (ptr) ::Hdfs::Internal::BlockKeyProto(); |
656 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
657 | } |
658 | ::Hdfs::Internal::BlockKeyProto::InitAsDefaultInstance(); |
659 | } |
660 | |
661 | ::google::protobuf::internal::SCCInfo<0> scc_info_BlockKeyProto = |
662 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBlockKeyProto}, {}}; |
663 | |
664 | static void InitDefaultsExportedBlockKeysProto() { |
665 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
666 | |
667 | { |
668 | void* ptr = &::Hdfs::Internal::_ExportedBlockKeysProto_default_instance_; |
669 | new (ptr) ::Hdfs::Internal::ExportedBlockKeysProto(); |
670 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
671 | } |
672 | ::Hdfs::Internal::ExportedBlockKeysProto::InitAsDefaultInstance(); |
673 | } |
674 | |
675 | ::google::protobuf::internal::SCCInfo<1> scc_info_ExportedBlockKeysProto = |
676 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExportedBlockKeysProto}, { |
677 | &protobuf_hdfs_2eproto::scc_info_BlockKeyProto.base,}}; |
678 | |
679 | static void InitDefaultsRecoveringBlockProto() { |
680 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
681 | |
682 | { |
683 | void* ptr = &::Hdfs::Internal::_RecoveringBlockProto_default_instance_; |
684 | new (ptr) ::Hdfs::Internal::RecoveringBlockProto(); |
685 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
686 | } |
687 | ::Hdfs::Internal::RecoveringBlockProto::InitAsDefaultInstance(); |
688 | } |
689 | |
690 | ::google::protobuf::internal::SCCInfo<1> scc_info_RecoveringBlockProto = |
691 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRecoveringBlockProto}, { |
692 | &protobuf_hdfs_2eproto::scc_info_LocatedBlockProto.base,}}; |
693 | |
694 | static void InitDefaultsVersionRequestProto() { |
695 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
696 | |
697 | { |
698 | void* ptr = &::Hdfs::Internal::_VersionRequestProto_default_instance_; |
699 | new (ptr) ::Hdfs::Internal::VersionRequestProto(); |
700 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
701 | } |
702 | ::Hdfs::Internal::VersionRequestProto::InitAsDefaultInstance(); |
703 | } |
704 | |
705 | ::google::protobuf::internal::SCCInfo<0> scc_info_VersionRequestProto = |
706 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsVersionRequestProto}, {}}; |
707 | |
708 | static void InitDefaultsVersionResponseProto() { |
709 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
710 | |
711 | { |
712 | void* ptr = &::Hdfs::Internal::_VersionResponseProto_default_instance_; |
713 | new (ptr) ::Hdfs::Internal::VersionResponseProto(); |
714 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
715 | } |
716 | ::Hdfs::Internal::VersionResponseProto::InitAsDefaultInstance(); |
717 | } |
718 | |
719 | ::google::protobuf::internal::SCCInfo<1> scc_info_VersionResponseProto = |
720 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsVersionResponseProto}, { |
721 | &protobuf_hdfs_2eproto::scc_info_NamespaceInfoProto.base,}}; |
722 | |
723 | static void InitDefaultsSnapshotInfoProto() { |
724 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
725 | |
726 | { |
727 | void* ptr = &::Hdfs::Internal::_SnapshotInfoProto_default_instance_; |
728 | new (ptr) ::Hdfs::Internal::SnapshotInfoProto(); |
729 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
730 | } |
731 | ::Hdfs::Internal::SnapshotInfoProto::InitAsDefaultInstance(); |
732 | } |
733 | |
734 | ::google::protobuf::internal::SCCInfo<1> scc_info_SnapshotInfoProto = |
735 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSnapshotInfoProto}, { |
736 | &protobuf_hdfs_2eproto::scc_info_FsPermissionProto.base,}}; |
737 | |
738 | void InitDefaults() { |
739 | ::google::protobuf::internal::InitSCC(&scc_info_ExtendedBlockProto.base); |
740 | ::google::protobuf::internal::InitSCC(&scc_info_DatanodeIDProto.base); |
741 | ::google::protobuf::internal::InitSCC(&scc_info_DatanodeInfosProto.base); |
742 | ::google::protobuf::internal::InitSCC(&scc_info_DatanodeInfoProto.base); |
743 | ::google::protobuf::internal::InitSCC(&scc_info_ContentSummaryProto.base); |
744 | ::google::protobuf::internal::InitSCC(&scc_info_CorruptFileBlocksProto.base); |
745 | ::google::protobuf::internal::InitSCC(&scc_info_FsPermissionProto.base); |
746 | ::google::protobuf::internal::InitSCC(&scc_info_StorageUuidsProto.base); |
747 | ::google::protobuf::internal::InitSCC(&scc_info_LocatedBlockProto.base); |
748 | ::google::protobuf::internal::InitSCC(&scc_info_DataEncryptionKeyProto.base); |
749 | ::google::protobuf::internal::InitSCC(&scc_info_LocatedBlocksProto.base); |
750 | ::google::protobuf::internal::InitSCC(&scc_info_HdfsFileStatusProto.base); |
751 | ::google::protobuf::internal::InitSCC(&scc_info_FsServerDefaultsProto.base); |
752 | ::google::protobuf::internal::InitSCC(&scc_info_DirectoryListingProto.base); |
753 | ::google::protobuf::internal::InitSCC(&scc_info_SnapshottableDirectoryStatusProto.base); |
754 | ::google::protobuf::internal::InitSCC(&scc_info_SnapshottableDirectoryListingProto.base); |
755 | ::google::protobuf::internal::InitSCC(&scc_info_SnapshotDiffReportEntryProto.base); |
756 | ::google::protobuf::internal::InitSCC(&scc_info_SnapshotDiffReportProto.base); |
757 | ::google::protobuf::internal::InitSCC(&scc_info_StorageInfoProto.base); |
758 | ::google::protobuf::internal::InitSCC(&scc_info_NamenodeRegistrationProto.base); |
759 | ::google::protobuf::internal::InitSCC(&scc_info_CheckpointSignatureProto.base); |
760 | ::google::protobuf::internal::InitSCC(&scc_info_NamenodeCommandProto.base); |
761 | ::google::protobuf::internal::InitSCC(&scc_info_CheckpointCommandProto.base); |
762 | ::google::protobuf::internal::InitSCC(&scc_info_BlockProto.base); |
763 | ::google::protobuf::internal::InitSCC(&scc_info_BlockWithLocationsProto.base); |
764 | ::google::protobuf::internal::InitSCC(&scc_info_BlocksWithLocationsProto.base); |
765 | ::google::protobuf::internal::InitSCC(&scc_info_RemoteEditLogProto.base); |
766 | ::google::protobuf::internal::InitSCC(&scc_info_RemoteEditLogManifestProto.base); |
767 | ::google::protobuf::internal::InitSCC(&scc_info_NamespaceInfoProto.base); |
768 | ::google::protobuf::internal::InitSCC(&scc_info_BlockKeyProto.base); |
769 | ::google::protobuf::internal::InitSCC(&scc_info_ExportedBlockKeysProto.base); |
770 | ::google::protobuf::internal::InitSCC(&scc_info_RecoveringBlockProto.base); |
771 | ::google::protobuf::internal::InitSCC(&scc_info_VersionRequestProto.base); |
772 | ::google::protobuf::internal::InitSCC(&scc_info_VersionResponseProto.base); |
773 | ::google::protobuf::internal::InitSCC(&scc_info_SnapshotInfoProto.base); |
774 | } |
775 | |
776 | ::google::protobuf::Metadata file_level_metadata[35]; |
777 | const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[7]; |
778 | |
779 | const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
780 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ExtendedBlockProto, _has_bits_), |
781 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ExtendedBlockProto, _internal_metadata_), |
782 | ~0u, // no _extensions_ |
783 | ~0u, // no _oneof_case_ |
784 | ~0u, // no _weak_field_map_ |
785 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ExtendedBlockProto, poolid_), |
786 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ExtendedBlockProto, blockid_), |
787 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ExtendedBlockProto, generationstamp_), |
788 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ExtendedBlockProto, numbytes_), |
789 | 0, |
790 | 1, |
791 | 2, |
792 | 3, |
793 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeIDProto, _has_bits_), |
794 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeIDProto, _internal_metadata_), |
795 | ~0u, // no _extensions_ |
796 | ~0u, // no _oneof_case_ |
797 | ~0u, // no _weak_field_map_ |
798 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeIDProto, ipaddr_), |
799 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeIDProto, hostname_), |
800 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeIDProto, datanodeuuid_), |
801 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeIDProto, xferport_), |
802 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeIDProto, infoport_), |
803 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeIDProto, ipcport_), |
804 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeIDProto, infosecureport_), |
805 | 0, |
806 | 1, |
807 | 2, |
808 | 3, |
809 | 4, |
810 | 5, |
811 | 6, |
812 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeInfosProto, _has_bits_), |
813 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeInfosProto, _internal_metadata_), |
814 | ~0u, // no _extensions_ |
815 | ~0u, // no _oneof_case_ |
816 | ~0u, // no _weak_field_map_ |
817 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeInfosProto, datanodes_), |
818 | ~0u, |
819 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeInfoProto, _has_bits_), |
820 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeInfoProto, _internal_metadata_), |
821 | ~0u, // no _extensions_ |
822 | ~0u, // no _oneof_case_ |
823 | ~0u, // no _weak_field_map_ |
824 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeInfoProto, id_), |
825 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeInfoProto, capacity_), |
826 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeInfoProto, dfsused_), |
827 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeInfoProto, remaining_), |
828 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeInfoProto, blockpoolused_), |
829 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeInfoProto, lastupdate_), |
830 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeInfoProto, xceivercount_), |
831 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeInfoProto, location_), |
832 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeInfoProto, adminstate_), |
833 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeInfoProto, cachecapacity_), |
834 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DatanodeInfoProto, cacheused_), |
835 | 1, |
836 | 2, |
837 | 3, |
838 | 4, |
839 | 5, |
840 | 6, |
841 | 7, |
842 | 0, |
843 | 8, |
844 | 9, |
845 | 10, |
846 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ContentSummaryProto, _has_bits_), |
847 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ContentSummaryProto, _internal_metadata_), |
848 | ~0u, // no _extensions_ |
849 | ~0u, // no _oneof_case_ |
850 | ~0u, // no _weak_field_map_ |
851 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ContentSummaryProto, length_), |
852 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ContentSummaryProto, filecount_), |
853 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ContentSummaryProto, directorycount_), |
854 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ContentSummaryProto, quota_), |
855 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ContentSummaryProto, spaceconsumed_), |
856 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ContentSummaryProto, spacequota_), |
857 | 0, |
858 | 1, |
859 | 2, |
860 | 3, |
861 | 4, |
862 | 5, |
863 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CorruptFileBlocksProto, _has_bits_), |
864 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CorruptFileBlocksProto, _internal_metadata_), |
865 | ~0u, // no _extensions_ |
866 | ~0u, // no _oneof_case_ |
867 | ~0u, // no _weak_field_map_ |
868 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CorruptFileBlocksProto, files_), |
869 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CorruptFileBlocksProto, cookie_), |
870 | ~0u, |
871 | 0, |
872 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::FsPermissionProto, _has_bits_), |
873 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::FsPermissionProto, _internal_metadata_), |
874 | ~0u, // no _extensions_ |
875 | ~0u, // no _oneof_case_ |
876 | ~0u, // no _weak_field_map_ |
877 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::FsPermissionProto, perm_), |
878 | 0, |
879 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::StorageUuidsProto, _has_bits_), |
880 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::StorageUuidsProto, _internal_metadata_), |
881 | ~0u, // no _extensions_ |
882 | ~0u, // no _oneof_case_ |
883 | ~0u, // no _weak_field_map_ |
884 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::StorageUuidsProto, storageuuids_), |
885 | ~0u, |
886 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::LocatedBlockProto, _has_bits_), |
887 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::LocatedBlockProto, _internal_metadata_), |
888 | ~0u, // no _extensions_ |
889 | ~0u, // no _oneof_case_ |
890 | ~0u, // no _weak_field_map_ |
891 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::LocatedBlockProto, b_), |
892 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::LocatedBlockProto, offset_), |
893 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::LocatedBlockProto, locs_), |
894 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::LocatedBlockProto, corrupt_), |
895 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::LocatedBlockProto, blocktoken_), |
896 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::LocatedBlockProto, iscached_), |
897 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::LocatedBlockProto, storagetypes_), |
898 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::LocatedBlockProto, storageids_), |
899 | 0, |
900 | 2, |
901 | ~0u, |
902 | 3, |
903 | 1, |
904 | ~0u, |
905 | ~0u, |
906 | ~0u, |
907 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DataEncryptionKeyProto, _has_bits_), |
908 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DataEncryptionKeyProto, _internal_metadata_), |
909 | ~0u, // no _extensions_ |
910 | ~0u, // no _oneof_case_ |
911 | ~0u, // no _weak_field_map_ |
912 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DataEncryptionKeyProto, keyid_), |
913 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DataEncryptionKeyProto, blockpoolid_), |
914 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DataEncryptionKeyProto, nonce_), |
915 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DataEncryptionKeyProto, encryptionkey_), |
916 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DataEncryptionKeyProto, expirydate_), |
917 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DataEncryptionKeyProto, encryptionalgorithm_), |
918 | 5, |
919 | 0, |
920 | 1, |
921 | 2, |
922 | 4, |
923 | 3, |
924 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::LocatedBlocksProto, _has_bits_), |
925 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::LocatedBlocksProto, _internal_metadata_), |
926 | ~0u, // no _extensions_ |
927 | ~0u, // no _oneof_case_ |
928 | ~0u, // no _weak_field_map_ |
929 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::LocatedBlocksProto, filelength_), |
930 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::LocatedBlocksProto, blocks_), |
931 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::LocatedBlocksProto, underconstruction_), |
932 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::LocatedBlocksProto, lastblock_), |
933 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::LocatedBlocksProto, islastblockcomplete_), |
934 | 1, |
935 | ~0u, |
936 | 2, |
937 | 0, |
938 | 3, |
939 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::HdfsFileStatusProto, _has_bits_), |
940 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::HdfsFileStatusProto, _internal_metadata_), |
941 | ~0u, // no _extensions_ |
942 | ~0u, // no _oneof_case_ |
943 | ~0u, // no _weak_field_map_ |
944 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::HdfsFileStatusProto, filetype_), |
945 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::HdfsFileStatusProto, path_), |
946 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::HdfsFileStatusProto, length_), |
947 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::HdfsFileStatusProto, permission_), |
948 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::HdfsFileStatusProto, owner_), |
949 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::HdfsFileStatusProto, group_), |
950 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::HdfsFileStatusProto, modification_time_), |
951 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::HdfsFileStatusProto, access_time_), |
952 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::HdfsFileStatusProto, symlink_), |
953 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::HdfsFileStatusProto, block_replication_), |
954 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::HdfsFileStatusProto, blocksize_), |
955 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::HdfsFileStatusProto, locations_), |
956 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::HdfsFileStatusProto, fileid_), |
957 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::HdfsFileStatusProto, childrennum_), |
958 | 12, |
959 | 0, |
960 | 6, |
961 | 4, |
962 | 1, |
963 | 2, |
964 | 7, |
965 | 8, |
966 | 3, |
967 | 11, |
968 | 9, |
969 | 5, |
970 | 10, |
971 | 13, |
972 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::FsServerDefaultsProto, _has_bits_), |
973 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::FsServerDefaultsProto, _internal_metadata_), |
974 | ~0u, // no _extensions_ |
975 | ~0u, // no _oneof_case_ |
976 | ~0u, // no _weak_field_map_ |
977 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::FsServerDefaultsProto, blocksize_), |
978 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::FsServerDefaultsProto, bytesperchecksum_), |
979 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::FsServerDefaultsProto, writepacketsize_), |
980 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::FsServerDefaultsProto, replication_), |
981 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::FsServerDefaultsProto, filebuffersize_), |
982 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::FsServerDefaultsProto, encryptdatatransfer_), |
983 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::FsServerDefaultsProto, trashinterval_), |
984 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::FsServerDefaultsProto, checksumtype_), |
985 | 0, |
986 | 1, |
987 | 2, |
988 | 3, |
989 | 4, |
990 | 6, |
991 | 5, |
992 | 7, |
993 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DirectoryListingProto, _has_bits_), |
994 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DirectoryListingProto, _internal_metadata_), |
995 | ~0u, // no _extensions_ |
996 | ~0u, // no _oneof_case_ |
997 | ~0u, // no _weak_field_map_ |
998 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DirectoryListingProto, partiallisting_), |
999 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::DirectoryListingProto, remainingentries_), |
1000 | ~0u, |
1001 | 0, |
1002 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshottableDirectoryStatusProto, _has_bits_), |
1003 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshottableDirectoryStatusProto, _internal_metadata_), |
1004 | ~0u, // no _extensions_ |
1005 | ~0u, // no _oneof_case_ |
1006 | ~0u, // no _weak_field_map_ |
1007 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshottableDirectoryStatusProto, dirstatus_), |
1008 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshottableDirectoryStatusProto, snapshot_quota_), |
1009 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshottableDirectoryStatusProto, snapshot_number_), |
1010 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshottableDirectoryStatusProto, parent_fullpath_), |
1011 | 1, |
1012 | 2, |
1013 | 3, |
1014 | 0, |
1015 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshottableDirectoryListingProto, _has_bits_), |
1016 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshottableDirectoryListingProto, _internal_metadata_), |
1017 | ~0u, // no _extensions_ |
1018 | ~0u, // no _oneof_case_ |
1019 | ~0u, // no _weak_field_map_ |
1020 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshottableDirectoryListingProto, snapshottabledirlisting_), |
1021 | ~0u, |
1022 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshotDiffReportEntryProto, _has_bits_), |
1023 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshotDiffReportEntryProto, _internal_metadata_), |
1024 | ~0u, // no _extensions_ |
1025 | ~0u, // no _oneof_case_ |
1026 | ~0u, // no _weak_field_map_ |
1027 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshotDiffReportEntryProto, fullpath_), |
1028 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshotDiffReportEntryProto, modificationlabel_), |
1029 | 0, |
1030 | 1, |
1031 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshotDiffReportProto, _has_bits_), |
1032 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshotDiffReportProto, _internal_metadata_), |
1033 | ~0u, // no _extensions_ |
1034 | ~0u, // no _oneof_case_ |
1035 | ~0u, // no _weak_field_map_ |
1036 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshotDiffReportProto, snapshotroot_), |
1037 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshotDiffReportProto, fromsnapshot_), |
1038 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshotDiffReportProto, tosnapshot_), |
1039 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshotDiffReportProto, diffreportentries_), |
1040 | 0, |
1041 | 1, |
1042 | 2, |
1043 | ~0u, |
1044 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::StorageInfoProto, _has_bits_), |
1045 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::StorageInfoProto, _internal_metadata_), |
1046 | ~0u, // no _extensions_ |
1047 | ~0u, // no _oneof_case_ |
1048 | ~0u, // no _weak_field_map_ |
1049 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::StorageInfoProto, layoutversion_), |
1050 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::StorageInfoProto, namespceid_), |
1051 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::StorageInfoProto, clusterid_), |
1052 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::StorageInfoProto, ctime_), |
1053 | 1, |
1054 | 2, |
1055 | 0, |
1056 | 3, |
1057 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::NamenodeRegistrationProto, _has_bits_), |
1058 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::NamenodeRegistrationProto, _internal_metadata_), |
1059 | ~0u, // no _extensions_ |
1060 | ~0u, // no _oneof_case_ |
1061 | ~0u, // no _weak_field_map_ |
1062 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::NamenodeRegistrationProto, rpcaddress_), |
1063 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::NamenodeRegistrationProto, httpaddress_), |
1064 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::NamenodeRegistrationProto, storageinfo_), |
1065 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::NamenodeRegistrationProto, role_), |
1066 | 0, |
1067 | 1, |
1068 | 2, |
1069 | 3, |
1070 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CheckpointSignatureProto, _has_bits_), |
1071 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CheckpointSignatureProto, _internal_metadata_), |
1072 | ~0u, // no _extensions_ |
1073 | ~0u, // no _oneof_case_ |
1074 | ~0u, // no _weak_field_map_ |
1075 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CheckpointSignatureProto, blockpoolid_), |
1076 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CheckpointSignatureProto, mostrecentcheckpointtxid_), |
1077 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CheckpointSignatureProto, cursegmenttxid_), |
1078 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CheckpointSignatureProto, storageinfo_), |
1079 | 0, |
1080 | 2, |
1081 | 3, |
1082 | 1, |
1083 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::NamenodeCommandProto, _has_bits_), |
1084 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::NamenodeCommandProto, _internal_metadata_), |
1085 | ~0u, // no _extensions_ |
1086 | ~0u, // no _oneof_case_ |
1087 | ~0u, // no _weak_field_map_ |
1088 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::NamenodeCommandProto, action_), |
1089 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::NamenodeCommandProto, type_), |
1090 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::NamenodeCommandProto, checkpointcmd_), |
1091 | 1, |
1092 | 2, |
1093 | 0, |
1094 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CheckpointCommandProto, _has_bits_), |
1095 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CheckpointCommandProto, _internal_metadata_), |
1096 | ~0u, // no _extensions_ |
1097 | ~0u, // no _oneof_case_ |
1098 | ~0u, // no _weak_field_map_ |
1099 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CheckpointCommandProto, signature_), |
1100 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CheckpointCommandProto, needtoreturnimage_), |
1101 | 0, |
1102 | 1, |
1103 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::BlockProto, _has_bits_), |
1104 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::BlockProto, _internal_metadata_), |
1105 | ~0u, // no _extensions_ |
1106 | ~0u, // no _oneof_case_ |
1107 | ~0u, // no _weak_field_map_ |
1108 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::BlockProto, blockid_), |
1109 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::BlockProto, genstamp_), |
1110 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::BlockProto, numbytes_), |
1111 | 0, |
1112 | 1, |
1113 | 2, |
1114 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::BlockWithLocationsProto, _has_bits_), |
1115 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::BlockWithLocationsProto, _internal_metadata_), |
1116 | ~0u, // no _extensions_ |
1117 | ~0u, // no _oneof_case_ |
1118 | ~0u, // no _weak_field_map_ |
1119 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::BlockWithLocationsProto, block_), |
1120 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::BlockWithLocationsProto, datanodeuuids_), |
1121 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::BlockWithLocationsProto, storageuuids_), |
1122 | 0, |
1123 | ~0u, |
1124 | ~0u, |
1125 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::BlocksWithLocationsProto, _has_bits_), |
1126 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::BlocksWithLocationsProto, _internal_metadata_), |
1127 | ~0u, // no _extensions_ |
1128 | ~0u, // no _oneof_case_ |
1129 | ~0u, // no _weak_field_map_ |
1130 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::BlocksWithLocationsProto, blocks_), |
1131 | ~0u, |
1132 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::RemoteEditLogProto, _has_bits_), |
1133 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::RemoteEditLogProto, _internal_metadata_), |
1134 | ~0u, // no _extensions_ |
1135 | ~0u, // no _oneof_case_ |
1136 | ~0u, // no _weak_field_map_ |
1137 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::RemoteEditLogProto, starttxid_), |
1138 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::RemoteEditLogProto, endtxid_), |
1139 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::RemoteEditLogProto, isinprogress_), |
1140 | 0, |
1141 | 1, |
1142 | 2, |
1143 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::RemoteEditLogManifestProto, _has_bits_), |
1144 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::RemoteEditLogManifestProto, _internal_metadata_), |
1145 | ~0u, // no _extensions_ |
1146 | ~0u, // no _oneof_case_ |
1147 | ~0u, // no _weak_field_map_ |
1148 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::RemoteEditLogManifestProto, logs_), |
1149 | ~0u, |
1150 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::NamespaceInfoProto, _has_bits_), |
1151 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::NamespaceInfoProto, _internal_metadata_), |
1152 | ~0u, // no _extensions_ |
1153 | ~0u, // no _oneof_case_ |
1154 | ~0u, // no _weak_field_map_ |
1155 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::NamespaceInfoProto, buildversion_), |
1156 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::NamespaceInfoProto, unused_), |
1157 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::NamespaceInfoProto, blockpoolid_), |
1158 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::NamespaceInfoProto, storageinfo_), |
1159 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::NamespaceInfoProto, softwareversion_), |
1160 | 0, |
1161 | 4, |
1162 | 1, |
1163 | 3, |
1164 | 2, |
1165 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::BlockKeyProto, _has_bits_), |
1166 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::BlockKeyProto, _internal_metadata_), |
1167 | ~0u, // no _extensions_ |
1168 | ~0u, // no _oneof_case_ |
1169 | ~0u, // no _weak_field_map_ |
1170 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::BlockKeyProto, keyid_), |
1171 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::BlockKeyProto, expirydate_), |
1172 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::BlockKeyProto, keybytes_), |
1173 | 2, |
1174 | 1, |
1175 | 0, |
1176 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ExportedBlockKeysProto, _has_bits_), |
1177 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ExportedBlockKeysProto, _internal_metadata_), |
1178 | ~0u, // no _extensions_ |
1179 | ~0u, // no _oneof_case_ |
1180 | ~0u, // no _weak_field_map_ |
1181 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ExportedBlockKeysProto, isblocktokenenabled_), |
1182 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ExportedBlockKeysProto, keyupdateinterval_), |
1183 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ExportedBlockKeysProto, tokenlifetime_), |
1184 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ExportedBlockKeysProto, currentkey_), |
1185 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::ExportedBlockKeysProto, allkeys_), |
1186 | 3, |
1187 | 1, |
1188 | 2, |
1189 | 0, |
1190 | ~0u, |
1191 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::RecoveringBlockProto, _has_bits_), |
1192 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::RecoveringBlockProto, _internal_metadata_), |
1193 | ~0u, // no _extensions_ |
1194 | ~0u, // no _oneof_case_ |
1195 | ~0u, // no _weak_field_map_ |
1196 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::RecoveringBlockProto, newgenstamp_), |
1197 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::RecoveringBlockProto, block_), |
1198 | 1, |
1199 | 0, |
1200 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::VersionRequestProto, _has_bits_), |
1201 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::VersionRequestProto, _internal_metadata_), |
1202 | ~0u, // no _extensions_ |
1203 | ~0u, // no _oneof_case_ |
1204 | ~0u, // no _weak_field_map_ |
1205 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::VersionResponseProto, _has_bits_), |
1206 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::VersionResponseProto, _internal_metadata_), |
1207 | ~0u, // no _extensions_ |
1208 | ~0u, // no _oneof_case_ |
1209 | ~0u, // no _weak_field_map_ |
1210 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::VersionResponseProto, info_), |
1211 | 0, |
1212 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshotInfoProto, _has_bits_), |
1213 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshotInfoProto, _internal_metadata_), |
1214 | ~0u, // no _extensions_ |
1215 | ~0u, // no _oneof_case_ |
1216 | ~0u, // no _weak_field_map_ |
1217 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshotInfoProto, snapshotname_), |
1218 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshotInfoProto, snapshotroot_), |
1219 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshotInfoProto, permission_), |
1220 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshotInfoProto, owner_), |
1221 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshotInfoProto, group_), |
1222 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::SnapshotInfoProto, createtime_), |
1223 | 0, |
1224 | 1, |
1225 | 5, |
1226 | 2, |
1227 | 3, |
1228 | 4, |
1229 | }; |
1230 | static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
1231 | { 0, 9, sizeof(::Hdfs::Internal::ExtendedBlockProto)}, |
1232 | { 13, 25, sizeof(::Hdfs::Internal::DatanodeIDProto)}, |
1233 | { 32, 38, sizeof(::Hdfs::Internal::DatanodeInfosProto)}, |
1234 | { 39, 55, sizeof(::Hdfs::Internal::DatanodeInfoProto)}, |
1235 | { 66, 77, sizeof(::Hdfs::Internal::ContentSummaryProto)}, |
1236 | { 83, 90, sizeof(::Hdfs::Internal::CorruptFileBlocksProto)}, |
1237 | { 92, 98, sizeof(::Hdfs::Internal::FsPermissionProto)}, |
1238 | { 99, 105, sizeof(::Hdfs::Internal::StorageUuidsProto)}, |
1239 | { 106, 119, sizeof(::Hdfs::Internal::LocatedBlockProto)}, |
1240 | { 127, 138, sizeof(::Hdfs::Internal::DataEncryptionKeyProto)}, |
1241 | { 144, 154, sizeof(::Hdfs::Internal::LocatedBlocksProto)}, |
1242 | { 159, 178, sizeof(::Hdfs::Internal::HdfsFileStatusProto)}, |
1243 | { 192, 205, sizeof(::Hdfs::Internal::FsServerDefaultsProto)}, |
1244 | { 213, 220, sizeof(::Hdfs::Internal::DirectoryListingProto)}, |
1245 | { 222, 231, sizeof(::Hdfs::Internal::SnapshottableDirectoryStatusProto)}, |
1246 | { 235, 241, sizeof(::Hdfs::Internal::SnapshottableDirectoryListingProto)}, |
1247 | { 242, 249, sizeof(::Hdfs::Internal::SnapshotDiffReportEntryProto)}, |
1248 | { 251, 260, sizeof(::Hdfs::Internal::SnapshotDiffReportProto)}, |
1249 | { 264, 273, sizeof(::Hdfs::Internal::StorageInfoProto)}, |
1250 | { 277, 286, sizeof(::Hdfs::Internal::NamenodeRegistrationProto)}, |
1251 | { 290, 299, sizeof(::Hdfs::Internal::CheckpointSignatureProto)}, |
1252 | { 303, 311, sizeof(::Hdfs::Internal::NamenodeCommandProto)}, |
1253 | { 314, 321, sizeof(::Hdfs::Internal::CheckpointCommandProto)}, |
1254 | { 323, 331, sizeof(::Hdfs::Internal::BlockProto)}, |
1255 | { 334, 342, sizeof(::Hdfs::Internal::BlockWithLocationsProto)}, |
1256 | { 345, 351, sizeof(::Hdfs::Internal::BlocksWithLocationsProto)}, |
1257 | { 352, 360, sizeof(::Hdfs::Internal::RemoteEditLogProto)}, |
1258 | { 363, 369, sizeof(::Hdfs::Internal::RemoteEditLogManifestProto)}, |
1259 | { 370, 380, sizeof(::Hdfs::Internal::NamespaceInfoProto)}, |
1260 | { 385, 393, sizeof(::Hdfs::Internal::BlockKeyProto)}, |
1261 | { 396, 406, sizeof(::Hdfs::Internal::ExportedBlockKeysProto)}, |
1262 | { 411, 418, sizeof(::Hdfs::Internal::RecoveringBlockProto)}, |
1263 | { 420, 425, sizeof(::Hdfs::Internal::VersionRequestProto)}, |
1264 | { 425, 431, sizeof(::Hdfs::Internal::VersionResponseProto)}, |
1265 | { 432, 443, sizeof(::Hdfs::Internal::SnapshotInfoProto)}, |
1266 | }; |
1267 | |
1268 | static ::google::protobuf::Message const * const file_default_instances[] = { |
1269 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_ExtendedBlockProto_default_instance_), |
1270 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_DatanodeIDProto_default_instance_), |
1271 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_DatanodeInfosProto_default_instance_), |
1272 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_DatanodeInfoProto_default_instance_), |
1273 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_ContentSummaryProto_default_instance_), |
1274 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_CorruptFileBlocksProto_default_instance_), |
1275 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_FsPermissionProto_default_instance_), |
1276 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_StorageUuidsProto_default_instance_), |
1277 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_LocatedBlockProto_default_instance_), |
1278 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_DataEncryptionKeyProto_default_instance_), |
1279 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_LocatedBlocksProto_default_instance_), |
1280 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_HdfsFileStatusProto_default_instance_), |
1281 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_FsServerDefaultsProto_default_instance_), |
1282 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_DirectoryListingProto_default_instance_), |
1283 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_SnapshottableDirectoryStatusProto_default_instance_), |
1284 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_SnapshottableDirectoryListingProto_default_instance_), |
1285 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_SnapshotDiffReportEntryProto_default_instance_), |
1286 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_SnapshotDiffReportProto_default_instance_), |
1287 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_StorageInfoProto_default_instance_), |
1288 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_NamenodeRegistrationProto_default_instance_), |
1289 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_CheckpointSignatureProto_default_instance_), |
1290 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_NamenodeCommandProto_default_instance_), |
1291 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_CheckpointCommandProto_default_instance_), |
1292 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_BlockProto_default_instance_), |
1293 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_BlockWithLocationsProto_default_instance_), |
1294 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_BlocksWithLocationsProto_default_instance_), |
1295 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_RemoteEditLogProto_default_instance_), |
1296 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_RemoteEditLogManifestProto_default_instance_), |
1297 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_NamespaceInfoProto_default_instance_), |
1298 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_BlockKeyProto_default_instance_), |
1299 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_ExportedBlockKeysProto_default_instance_), |
1300 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_RecoveringBlockProto_default_instance_), |
1301 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_VersionRequestProto_default_instance_), |
1302 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_VersionResponseProto_default_instance_), |
1303 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_SnapshotInfoProto_default_instance_), |
1304 | }; |
1305 | |
1306 | void protobuf_AssignDescriptors() { |
1307 | AddDescriptors(); |
1308 | AssignDescriptors( |
1309 | "hdfs.proto" , schemas, file_default_instances, TableStruct::offsets, |
1310 | file_level_metadata, file_level_enum_descriptors, NULL); |
1311 | } |
1312 | |
1313 | void protobuf_AssignDescriptorsOnce() { |
1314 | static ::google::protobuf::internal::once_flag once; |
1315 | ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); |
1316 | } |
1317 | |
1318 | void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; |
1319 | void protobuf_RegisterTypes(const ::std::string&) { |
1320 | protobuf_AssignDescriptorsOnce(); |
1321 | ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 35); |
1322 | } |
1323 | |
1324 | void AddDescriptorsImpl() { |
1325 | InitDefaults(); |
1326 | static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
1327 | "\n\nhdfs.proto\022\rHdfs.Internal\032\016Security.pr" |
1328 | "oto\"c\n\022ExtendedBlockProto\022\016\n\006poolId\030\001 \002(" |
1329 | "\t\022\017\n\007blockId\030\002 \002(\004\022\027\n\017generationStamp\030\003 " |
1330 | "\002(\004\022\023\n\010numBytes\030\004 \001(\004:\0010\"\231\001\n\017DatanodeIDP" |
1331 | "roto\022\016\n\006ipAddr\030\001 \002(\t\022\020\n\010hostName\030\002 \002(\t\022\024" |
1332 | "\n\014datanodeUuid\030\003 \002(\t\022\020\n\010xferPort\030\004 \002(\r\022\020" |
1333 | "\n\010infoPort\030\005 \002(\r\022\017\n\007ipcPort\030\006 \002(\r\022\031\n\016inf" |
1334 | "oSecurePort\030\007 \001(\r:\0010\"I\n\022DatanodeInfosPro" |
1335 | "to\0223\n\tdatanodes\030\001 \003(\0132 .Hdfs.Internal.Da" |
1336 | "tanodeInfoProto\"\236\003\n\021DatanodeInfoProto\022*\n" |
1337 | "\002id\030\001 \002(\0132\036.Hdfs.Internal.DatanodeIDProt" |
1338 | "o\022\023\n\010capacity\030\002 \001(\004:\0010\022\022\n\007dfsUsed\030\003 \001(\004:" |
1339 | "\0010\022\024\n\tremaining\030\004 \001(\004:\0010\022\030\n\rblockPoolUse" |
1340 | "d\030\005 \001(\004:\0010\022\025\n\nlastUpdate\030\006 \001(\004:\0010\022\027\n\014xce" |
1341 | "iverCount\030\007 \001(\r:\0010\022\020\n\010location\030\010 \001(\t\022G\n\n" |
1342 | "adminState\030\n \001(\0162+.Hdfs.Internal.Datanod" |
1343 | "eInfoProto.AdminState:\006NORMAL\022\030\n\rcacheCa" |
1344 | "pacity\030\013 \001(\004:\0010\022\024\n\tcacheUsed\030\014 \001(\004:\0010\"I\n" |
1345 | "\nAdminState\022\n\n\006NORMAL\020\000\022\033\n\027DECOMMISSION_" |
1346 | "INPROGRESS\020\001\022\022\n\016DECOMMISSIONED\020\002\"\212\001\n\023Con" |
1347 | "tentSummaryProto\022\016\n\006length\030\001 \002(\004\022\021\n\tfile" |
1348 | "Count\030\002 \002(\004\022\026\n\016directoryCount\030\003 \002(\004\022\r\n\005q" |
1349 | "uota\030\004 \002(\004\022\025\n\rspaceConsumed\030\005 \002(\004\022\022\n\nspa" |
1350 | "ceQuota\030\006 \002(\004\"7\n\026CorruptFileBlocksProto\022" |
1351 | "\r\n\005files\030\001 \003(\t\022\016\n\006cookie\030\002 \002(\t\"!\n\021FsPerm" |
1352 | "issionProto\022\014\n\004perm\030\001 \002(\r\")\n\021StorageUuid" |
1353 | "sProto\022\024\n\014storageUuids\030\001 \003(\t\"\242\002\n\021Located" |
1354 | "BlockProto\022,\n\001b\030\001 \002(\0132!.Hdfs.Internal.Ex" |
1355 | "tendedBlockProto\022\016\n\006offset\030\002 \002(\004\022.\n\004locs" |
1356 | "\030\003 \003(\0132 .Hdfs.Internal.DatanodeInfoProto" |
1357 | "\022\017\n\007corrupt\030\004 \002(\010\022-\n\nblockToken\030\005 \002(\0132\031." |
1358 | "Hdfs.Internal.TokenProto\022\024\n\010isCached\030\006 \003" |
1359 | "(\010B\002\020\001\0225\n\014storageTypes\030\007 \003(\0162\037.Hdfs.Inte" |
1360 | "rnal.StorageTypeProto\022\022\n\nstorageIDs\030\010 \003(" |
1361 | "\t\"\223\001\n\026DataEncryptionKeyProto\022\r\n\005keyId\030\001 " |
1362 | "\002(\r\022\023\n\013blockPoolId\030\002 \002(\t\022\r\n\005nonce\030\003 \002(\014\022" |
1363 | "\025\n\rencryptionKey\030\004 \002(\014\022\022\n\nexpiryDate\030\005 \002" |
1364 | "(\004\022\033\n\023encryptionAlgorithm\030\006 \001(\t\"\307\001\n\022Loca" |
1365 | "tedBlocksProto\022\022\n\nfileLength\030\001 \002(\004\0220\n\006bl" |
1366 | "ocks\030\002 \003(\0132 .Hdfs.Internal.LocatedBlockP" |
1367 | "roto\022\031\n\021underConstruction\030\003 \002(\010\0223\n\tlastB" |
1368 | "lock\030\004 \001(\0132 .Hdfs.Internal.LocatedBlockP" |
1369 | "roto\022\033\n\023isLastBlockComplete\030\005 \002(\010\"\322\003\n\023Hd" |
1370 | "fsFileStatusProto\022=\n\010fileType\030\001 \002(\0162+.Hd" |
1371 | "fs.Internal.HdfsFileStatusProto.FileType" |
1372 | "\022\014\n\004path\030\002 \002(\014\022\016\n\006length\030\003 \002(\004\0224\n\npermis" |
1373 | "sion\030\004 \002(\0132 .Hdfs.Internal.FsPermissionP" |
1374 | "roto\022\r\n\005owner\030\005 \002(\t\022\r\n\005group\030\006 \002(\t\022\031\n\021mo" |
1375 | "dification_time\030\007 \002(\004\022\023\n\013access_time\030\010 \002" |
1376 | "(\004\022\017\n\007symlink\030\t \001(\014\022\034\n\021block_replication" |
1377 | "\030\n \001(\r:\0010\022\024\n\tblocksize\030\013 \001(\004:\0010\0224\n\tlocat" |
1378 | "ions\030\014 \001(\0132!.Hdfs.Internal.LocatedBlocks" |
1379 | "Proto\022\021\n\006fileId\030\r \001(\004:\0010\022\027\n\013childrenNum\030" |
1380 | "\016 \001(\005:\002-1\"3\n\010FileType\022\n\n\006IS_DIR\020\001\022\013\n\007IS_" |
1381 | "FILE\020\002\022\016\n\nIS_SYMLINK\020\003\"\220\002\n\025FsServerDefau" |
1382 | "ltsProto\022\021\n\tblockSize\030\001 \002(\004\022\030\n\020bytesPerC" |
1383 | "hecksum\030\002 \002(\r\022\027\n\017writePacketSize\030\003 \002(\r\022\023" |
1384 | "\n\013replication\030\004 \002(\r\022\026\n\016fileBufferSize\030\005 " |
1385 | "\002(\r\022\"\n\023encryptDataTransfer\030\006 \001(\010:\005false\022" |
1386 | "\030\n\rtrashInterval\030\007 \001(\004:\0010\022F\n\014checksumTyp" |
1387 | "e\030\010 \001(\0162 .Hdfs.Internal.ChecksumTypeProt" |
1388 | "o:\016CHECKSUM_CRC32\"m\n\025DirectoryListingPro" |
1389 | "to\022:\n\016partialListing\030\001 \003(\0132\".Hdfs.Intern" |
1390 | "al.HdfsFileStatusProto\022\030\n\020remainingEntri" |
1391 | "es\030\002 \002(\r\"\244\001\n!SnapshottableDirectoryStatu" |
1392 | "sProto\0225\n\tdirStatus\030\001 \002(\0132\".Hdfs.Interna" |
1393 | "l.HdfsFileStatusProto\022\026\n\016snapshot_quota\030" |
1394 | "\002 \002(\r\022\027\n\017snapshot_number\030\003 \002(\r\022\027\n\017parent" |
1395 | "_fullpath\030\004 \002(\014\"w\n\"SnapshottableDirector" |
1396 | "yListingProto\022Q\n\027snapshottableDirListing" |
1397 | "\030\001 \003(\01320.Hdfs.Internal.SnapshottableDire" |
1398 | "ctoryStatusProto\"K\n\034SnapshotDiffReportEn" |
1399 | "tryProto\022\020\n\010fullpath\030\001 \002(\014\022\031\n\021modificati" |
1400 | "onLabel\030\002 \002(\t\"\241\001\n\027SnapshotDiffReportProt" |
1401 | "o\022\024\n\014snapshotRoot\030\001 \002(\t\022\024\n\014fromSnapshot\030" |
1402 | "\002 \002(\t\022\022\n\ntoSnapshot\030\003 \002(\t\022F\n\021diffReportE" |
1403 | "ntries\030\004 \003(\0132+.Hdfs.Internal.SnapshotDif" |
1404 | "fReportEntryProto\"_\n\020StorageInfoProto\022\025\n" |
1405 | "\rlayoutVersion\030\001 \002(\r\022\022\n\nnamespceID\030\002 \002(\r" |
1406 | "\022\021\n\tclusterID\030\003 \002(\t\022\r\n\005cTime\030\004 \002(\004\"\215\002\n\031N" |
1407 | "amenodeRegistrationProto\022\022\n\nrpcAddress\030\001" |
1408 | " \002(\t\022\023\n\013httpAddress\030\002 \002(\t\0224\n\013storageInfo" |
1409 | "\030\003 \002(\0132\037.Hdfs.Internal.StorageInfoProto\022" |
1410 | "R\n\004role\030\004 \001(\0162:.Hdfs.Internal.NamenodeRe" |
1411 | "gistrationProto.NamenodeRoleProto:\010NAMEN" |
1412 | "ODE\"=\n\021NamenodeRoleProto\022\014\n\010NAMENODE\020\001\022\n" |
1413 | "\n\006BACKUP\020\002\022\016\n\nCHECKPOINT\020\003\"\237\001\n\030Checkpoin" |
1414 | "tSignatureProto\022\023\n\013blockPoolId\030\001 \002(\t\022 \n\030" |
1415 | "mostRecentCheckpointTxId\030\002 \002(\004\022\026\n\016curSeg" |
1416 | "mentTxId\030\003 \002(\004\0224\n\013storageInfo\030\004 \002(\0132\037.Hd" |
1417 | "fs.Internal.StorageInfoProto\"\320\001\n\024Namenod" |
1418 | "eCommandProto\022\016\n\006action\030\001 \002(\r\0226\n\004type\030\002 " |
1419 | "\002(\0162(.Hdfs.Internal.NamenodeCommandProto" |
1420 | ".Type\022<\n\rcheckpointCmd\030\003 \001(\0132%.Hdfs.Inte" |
1421 | "rnal.CheckpointCommandProto\"2\n\004Type\022\023\n\017N" |
1422 | "amenodeCommand\020\000\022\025\n\021CheckPointCommand\020\001\"" |
1423 | "o\n\026CheckpointCommandProto\022:\n\tsignature\030\001" |
1424 | " \002(\0132\'.Hdfs.Internal.CheckpointSignature" |
1425 | "Proto\022\031\n\021needToReturnImage\030\002 \002(\010\"D\n\nBloc" |
1426 | "kProto\022\017\n\007blockId\030\001 \002(\004\022\020\n\010genStamp\030\002 \002(" |
1427 | "\004\022\023\n\010numBytes\030\003 \001(\004:\0010\"p\n\027BlockWithLocat" |
1428 | "ionsProto\022(\n\005block\030\001 \002(\0132\031.Hdfs.Internal" |
1429 | ".BlockProto\022\025\n\rdatanodeUuids\030\002 \003(\t\022\024\n\014st" |
1430 | "orageUuids\030\003 \003(\t\"R\n\030BlocksWithLocationsP" |
1431 | "roto\0226\n\006blocks\030\001 \003(\0132&.Hdfs.Internal.Blo" |
1432 | "ckWithLocationsProto\"U\n\022RemoteEditLogPro" |
1433 | "to\022\021\n\tstartTxId\030\001 \002(\004\022\017\n\007endTxId\030\002 \002(\004\022\033" |
1434 | "\n\014isInProgress\030\003 \001(\010:\005false\"M\n\032RemoteEdi" |
1435 | "tLogManifestProto\022/\n\004logs\030\001 \003(\0132!.Hdfs.I" |
1436 | "nternal.RemoteEditLogProto\"\236\001\n\022Namespace" |
1437 | "InfoProto\022\024\n\014buildVersion\030\001 \002(\t\022\016\n\006unuse" |
1438 | "d\030\002 \002(\r\022\023\n\013blockPoolID\030\003 \002(\t\0224\n\013storageI" |
1439 | "nfo\030\004 \002(\0132\037.Hdfs.Internal.StorageInfoPro" |
1440 | "to\022\027\n\017softwareVersion\030\005 \002(\t\"D\n\rBlockKeyP" |
1441 | "roto\022\r\n\005keyId\030\001 \002(\r\022\022\n\nexpiryDate\030\002 \002(\004\022" |
1442 | "\020\n\010keyBytes\030\003 \001(\014\"\310\001\n\026ExportedBlockKeysP" |
1443 | "roto\022\033\n\023isBlockTokenEnabled\030\001 \002(\010\022\031\n\021key" |
1444 | "UpdateInterval\030\002 \002(\004\022\025\n\rtokenLifeTime\030\003 " |
1445 | "\002(\004\0220\n\ncurrentKey\030\004 \002(\0132\034.Hdfs.Internal." |
1446 | "BlockKeyProto\022-\n\007allKeys\030\005 \003(\0132\034.Hdfs.In" |
1447 | "ternal.BlockKeyProto\"\\\n\024RecoveringBlockP" |
1448 | "roto\022\023\n\013newGenStamp\030\001 \002(\004\022/\n\005block\030\002 \002(\013" |
1449 | "2 .Hdfs.Internal.LocatedBlockProto\"\025\n\023Ve" |
1450 | "rsionRequestProto\"G\n\024VersionResponseProt" |
1451 | "o\022/\n\004info\030\001 \002(\0132!.Hdfs.Internal.Namespac" |
1452 | "eInfoProto\"\247\001\n\021SnapshotInfoProto\022\024\n\014snap" |
1453 | "shotName\030\001 \002(\t\022\024\n\014snapshotRoot\030\002 \002(\t\0224\n\n" |
1454 | "permission\030\003 \002(\0132 .Hdfs.Internal.FsPermi" |
1455 | "ssionProto\022\r\n\005owner\030\004 \002(\t\022\r\n\005group\030\005 \002(\t" |
1456 | "\022\022\n\ncreateTime\030\006 \002(\t*%\n\020StorageTypeProto" |
1457 | "\022\010\n\004DISK\020\001\022\007\n\003SSD\020\002*O\n\021ChecksumTypeProto" |
1458 | "\022\021\n\rCHECKSUM_NULL\020\000\022\022\n\016CHECKSUM_CRC32\020\001\022" |
1459 | "\023\n\017CHECKSUM_CRC32C\020\002*L\n\021ReplicaStateProt" |
1460 | "o\022\r\n\tFINALIZED\020\000\022\007\n\003RBW\020\001\022\007\n\003RWR\020\002\022\007\n\003RU" |
1461 | "R\020\003\022\r\n\tTEMPORARY\020\004B6\n%org.apache.hadoop." |
1462 | "hdfs.protocol.protoB\nHdfsProtos\240\001\001" |
1463 | }; |
1464 | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
1465 | descriptor, 5434); |
1466 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
1467 | "hdfs.proto" , &protobuf_RegisterTypes); |
1468 | ::protobuf_Security_2eproto::AddDescriptors(); |
1469 | } |
1470 | |
1471 | void AddDescriptors() { |
1472 | static ::google::protobuf::internal::once_flag once; |
1473 | ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); |
1474 | } |
1475 | // Force AddDescriptors() to be called at dynamic initialization time. |
1476 | struct StaticDescriptorInitializer { |
1477 | StaticDescriptorInitializer() { |
1478 | AddDescriptors(); |
1479 | } |
1480 | } static_descriptor_initializer; |
1481 | } // namespace protobuf_hdfs_2eproto |
1482 | namespace Hdfs { |
1483 | namespace Internal { |
1484 | const ::google::protobuf::EnumDescriptor* DatanodeInfoProto_AdminState_descriptor() { |
1485 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
1486 | return protobuf_hdfs_2eproto::file_level_enum_descriptors[0]; |
1487 | } |
1488 | bool DatanodeInfoProto_AdminState_IsValid(int value) { |
1489 | switch (value) { |
1490 | case 0: |
1491 | case 1: |
1492 | case 2: |
1493 | return true; |
1494 | default: |
1495 | return false; |
1496 | } |
1497 | } |
1498 | |
1499 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1500 | const DatanodeInfoProto_AdminState DatanodeInfoProto::NORMAL; |
1501 | const DatanodeInfoProto_AdminState DatanodeInfoProto::DECOMMISSION_INPROGRESS; |
1502 | const DatanodeInfoProto_AdminState DatanodeInfoProto::DECOMMISSIONED; |
1503 | const DatanodeInfoProto_AdminState DatanodeInfoProto::AdminState_MIN; |
1504 | const DatanodeInfoProto_AdminState DatanodeInfoProto::AdminState_MAX; |
1505 | const int DatanodeInfoProto::AdminState_ARRAYSIZE; |
1506 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1507 | const ::google::protobuf::EnumDescriptor* HdfsFileStatusProto_FileType_descriptor() { |
1508 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
1509 | return protobuf_hdfs_2eproto::file_level_enum_descriptors[1]; |
1510 | } |
1511 | bool HdfsFileStatusProto_FileType_IsValid(int value) { |
1512 | switch (value) { |
1513 | case 1: |
1514 | case 2: |
1515 | case 3: |
1516 | return true; |
1517 | default: |
1518 | return false; |
1519 | } |
1520 | } |
1521 | |
1522 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1523 | const HdfsFileStatusProto_FileType HdfsFileStatusProto::IS_DIR; |
1524 | const HdfsFileStatusProto_FileType HdfsFileStatusProto::IS_FILE; |
1525 | const HdfsFileStatusProto_FileType HdfsFileStatusProto::IS_SYMLINK; |
1526 | const HdfsFileStatusProto_FileType HdfsFileStatusProto::FileType_MIN; |
1527 | const HdfsFileStatusProto_FileType HdfsFileStatusProto::FileType_MAX; |
1528 | const int HdfsFileStatusProto::FileType_ARRAYSIZE; |
1529 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1530 | const ::google::protobuf::EnumDescriptor* NamenodeRegistrationProto_NamenodeRoleProto_descriptor() { |
1531 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
1532 | return protobuf_hdfs_2eproto::file_level_enum_descriptors[2]; |
1533 | } |
1534 | bool NamenodeRegistrationProto_NamenodeRoleProto_IsValid(int value) { |
1535 | switch (value) { |
1536 | case 1: |
1537 | case 2: |
1538 | case 3: |
1539 | return true; |
1540 | default: |
1541 | return false; |
1542 | } |
1543 | } |
1544 | |
1545 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1546 | const NamenodeRegistrationProto_NamenodeRoleProto NamenodeRegistrationProto::NAMENODE; |
1547 | const NamenodeRegistrationProto_NamenodeRoleProto NamenodeRegistrationProto::BACKUP; |
1548 | const NamenodeRegistrationProto_NamenodeRoleProto NamenodeRegistrationProto::CHECKPOINT; |
1549 | const NamenodeRegistrationProto_NamenodeRoleProto NamenodeRegistrationProto::NamenodeRoleProto_MIN; |
1550 | const NamenodeRegistrationProto_NamenodeRoleProto NamenodeRegistrationProto::NamenodeRoleProto_MAX; |
1551 | const int NamenodeRegistrationProto::NamenodeRoleProto_ARRAYSIZE; |
1552 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1553 | const ::google::protobuf::EnumDescriptor* NamenodeCommandProto_Type_descriptor() { |
1554 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
1555 | return protobuf_hdfs_2eproto::file_level_enum_descriptors[3]; |
1556 | } |
1557 | bool NamenodeCommandProto_Type_IsValid(int value) { |
1558 | switch (value) { |
1559 | case 0: |
1560 | case 1: |
1561 | return true; |
1562 | default: |
1563 | return false; |
1564 | } |
1565 | } |
1566 | |
1567 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1568 | const NamenodeCommandProto_Type NamenodeCommandProto::NamenodeCommand; |
1569 | const NamenodeCommandProto_Type NamenodeCommandProto::CheckPointCommand; |
1570 | const NamenodeCommandProto_Type NamenodeCommandProto::Type_MIN; |
1571 | const NamenodeCommandProto_Type NamenodeCommandProto::Type_MAX; |
1572 | const int NamenodeCommandProto::Type_ARRAYSIZE; |
1573 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1574 | const ::google::protobuf::EnumDescriptor* StorageTypeProto_descriptor() { |
1575 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
1576 | return protobuf_hdfs_2eproto::file_level_enum_descriptors[4]; |
1577 | } |
1578 | bool StorageTypeProto_IsValid(int value) { |
1579 | switch (value) { |
1580 | case 1: |
1581 | case 2: |
1582 | return true; |
1583 | default: |
1584 | return false; |
1585 | } |
1586 | } |
1587 | |
1588 | const ::google::protobuf::EnumDescriptor* ChecksumTypeProto_descriptor() { |
1589 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
1590 | return protobuf_hdfs_2eproto::file_level_enum_descriptors[5]; |
1591 | } |
1592 | bool ChecksumTypeProto_IsValid(int value) { |
1593 | switch (value) { |
1594 | case 0: |
1595 | case 1: |
1596 | case 2: |
1597 | return true; |
1598 | default: |
1599 | return false; |
1600 | } |
1601 | } |
1602 | |
1603 | const ::google::protobuf::EnumDescriptor* ReplicaStateProto_descriptor() { |
1604 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
1605 | return protobuf_hdfs_2eproto::file_level_enum_descriptors[6]; |
1606 | } |
1607 | bool ReplicaStateProto_IsValid(int value) { |
1608 | switch (value) { |
1609 | case 0: |
1610 | case 1: |
1611 | case 2: |
1612 | case 3: |
1613 | case 4: |
1614 | return true; |
1615 | default: |
1616 | return false; |
1617 | } |
1618 | } |
1619 | |
1620 | |
1621 | // =================================================================== |
1622 | |
1623 | void ExtendedBlockProto::InitAsDefaultInstance() { |
1624 | } |
1625 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1626 | const int ExtendedBlockProto::kPoolIdFieldNumber; |
1627 | const int ExtendedBlockProto::kBlockIdFieldNumber; |
1628 | const int ExtendedBlockProto::kGenerationStampFieldNumber; |
1629 | const int ExtendedBlockProto::kNumBytesFieldNumber; |
1630 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1631 | |
1632 | ExtendedBlockProto::ExtendedBlockProto() |
1633 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1634 | ::google::protobuf::internal::InitSCC( |
1635 | &protobuf_hdfs_2eproto::scc_info_ExtendedBlockProto.base); |
1636 | SharedCtor(); |
1637 | // @@protoc_insertion_point(constructor:Hdfs.Internal.ExtendedBlockProto) |
1638 | } |
1639 | ExtendedBlockProto::ExtendedBlockProto(const ExtendedBlockProto& from) |
1640 | : ::google::protobuf::Message(), |
1641 | _internal_metadata_(NULL), |
1642 | _has_bits_(from._has_bits_) { |
1643 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1644 | poolid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1645 | if (from.has_poolid()) { |
1646 | poolid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.poolid_); |
1647 | } |
1648 | ::memcpy(&blockid_, &from.blockid_, |
1649 | static_cast<size_t>(reinterpret_cast<char*>(&numbytes_) - |
1650 | reinterpret_cast<char*>(&blockid_)) + sizeof(numbytes_)); |
1651 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.ExtendedBlockProto) |
1652 | } |
1653 | |
1654 | void ExtendedBlockProto::SharedCtor() { |
1655 | poolid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1656 | ::memset(&blockid_, 0, static_cast<size_t>( |
1657 | reinterpret_cast<char*>(&numbytes_) - |
1658 | reinterpret_cast<char*>(&blockid_)) + sizeof(numbytes_)); |
1659 | } |
1660 | |
1661 | ExtendedBlockProto::~ExtendedBlockProto() { |
1662 | // @@protoc_insertion_point(destructor:Hdfs.Internal.ExtendedBlockProto) |
1663 | SharedDtor(); |
1664 | } |
1665 | |
1666 | void ExtendedBlockProto::SharedDtor() { |
1667 | poolid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1668 | } |
1669 | |
1670 | void ExtendedBlockProto::SetCachedSize(int size) const { |
1671 | _cached_size_.Set(size); |
1672 | } |
1673 | const ::google::protobuf::Descriptor* ExtendedBlockProto::descriptor() { |
1674 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
1675 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1676 | } |
1677 | |
1678 | const ExtendedBlockProto& ExtendedBlockProto::default_instance() { |
1679 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_ExtendedBlockProto.base); |
1680 | return *internal_default_instance(); |
1681 | } |
1682 | |
1683 | |
1684 | void ExtendedBlockProto::Clear() { |
1685 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.ExtendedBlockProto) |
1686 | ::google::protobuf::uint32 cached_has_bits = 0; |
1687 | // Prevent compiler warnings about cached_has_bits being unused |
1688 | (void) cached_has_bits; |
1689 | |
1690 | cached_has_bits = _has_bits_[0]; |
1691 | if (cached_has_bits & 0x00000001u) { |
1692 | poolid_.ClearNonDefaultToEmptyNoArena(); |
1693 | } |
1694 | if (cached_has_bits & 14u) { |
1695 | ::memset(&blockid_, 0, static_cast<size_t>( |
1696 | reinterpret_cast<char*>(&numbytes_) - |
1697 | reinterpret_cast<char*>(&blockid_)) + sizeof(numbytes_)); |
1698 | } |
1699 | _has_bits_.Clear(); |
1700 | _internal_metadata_.Clear(); |
1701 | } |
1702 | |
1703 | bool ExtendedBlockProto::MergePartialFromCodedStream( |
1704 | ::google::protobuf::io::CodedInputStream* input) { |
1705 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1706 | ::google::protobuf::uint32 tag; |
1707 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.ExtendedBlockProto) |
1708 | for (;;) { |
1709 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1710 | tag = p.first; |
1711 | if (!p.second) goto handle_unusual; |
1712 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1713 | // required string poolId = 1; |
1714 | case 1: { |
1715 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1716 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1717 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
1718 | input, this->mutable_poolid())); |
1719 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1720 | this->poolid().data(), static_cast<int>(this->poolid().length()), |
1721 | ::google::protobuf::internal::WireFormat::PARSE, |
1722 | "Hdfs.Internal.ExtendedBlockProto.poolId" ); |
1723 | } else { |
1724 | goto handle_unusual; |
1725 | } |
1726 | break; |
1727 | } |
1728 | |
1729 | // required uint64 blockId = 2; |
1730 | case 2: { |
1731 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1732 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
1733 | set_has_blockid(); |
1734 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1735 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
1736 | input, &blockid_))); |
1737 | } else { |
1738 | goto handle_unusual; |
1739 | } |
1740 | break; |
1741 | } |
1742 | |
1743 | // required uint64 generationStamp = 3; |
1744 | case 3: { |
1745 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1746 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
1747 | set_has_generationstamp(); |
1748 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1749 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
1750 | input, &generationstamp_))); |
1751 | } else { |
1752 | goto handle_unusual; |
1753 | } |
1754 | break; |
1755 | } |
1756 | |
1757 | // optional uint64 numBytes = 4 [default = 0]; |
1758 | case 4: { |
1759 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1760 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
1761 | set_has_numbytes(); |
1762 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1763 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
1764 | input, &numbytes_))); |
1765 | } else { |
1766 | goto handle_unusual; |
1767 | } |
1768 | break; |
1769 | } |
1770 | |
1771 | default: { |
1772 | handle_unusual: |
1773 | if (tag == 0) { |
1774 | goto success; |
1775 | } |
1776 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1777 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1778 | break; |
1779 | } |
1780 | } |
1781 | } |
1782 | success: |
1783 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.ExtendedBlockProto) |
1784 | return true; |
1785 | failure: |
1786 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.ExtendedBlockProto) |
1787 | return false; |
1788 | #undef DO_ |
1789 | } |
1790 | |
1791 | void ExtendedBlockProto::SerializeWithCachedSizes( |
1792 | ::google::protobuf::io::CodedOutputStream* output) const { |
1793 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.ExtendedBlockProto) |
1794 | ::google::protobuf::uint32 cached_has_bits = 0; |
1795 | (void) cached_has_bits; |
1796 | |
1797 | cached_has_bits = _has_bits_[0]; |
1798 | // required string poolId = 1; |
1799 | if (cached_has_bits & 0x00000001u) { |
1800 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1801 | this->poolid().data(), static_cast<int>(this->poolid().length()), |
1802 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1803 | "Hdfs.Internal.ExtendedBlockProto.poolId" ); |
1804 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
1805 | 1, this->poolid(), output); |
1806 | } |
1807 | |
1808 | // required uint64 blockId = 2; |
1809 | if (cached_has_bits & 0x00000002u) { |
1810 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->blockid(), output); |
1811 | } |
1812 | |
1813 | // required uint64 generationStamp = 3; |
1814 | if (cached_has_bits & 0x00000004u) { |
1815 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->generationstamp(), output); |
1816 | } |
1817 | |
1818 | // optional uint64 numBytes = 4 [default = 0]; |
1819 | if (cached_has_bits & 0x00000008u) { |
1820 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->numbytes(), output); |
1821 | } |
1822 | |
1823 | if (_internal_metadata_.have_unknown_fields()) { |
1824 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1825 | _internal_metadata_.unknown_fields(), output); |
1826 | } |
1827 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.ExtendedBlockProto) |
1828 | } |
1829 | |
1830 | ::google::protobuf::uint8* ExtendedBlockProto::InternalSerializeWithCachedSizesToArray( |
1831 | bool deterministic, ::google::protobuf::uint8* target) const { |
1832 | (void)deterministic; // Unused |
1833 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.ExtendedBlockProto) |
1834 | ::google::protobuf::uint32 cached_has_bits = 0; |
1835 | (void) cached_has_bits; |
1836 | |
1837 | cached_has_bits = _has_bits_[0]; |
1838 | // required string poolId = 1; |
1839 | if (cached_has_bits & 0x00000001u) { |
1840 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1841 | this->poolid().data(), static_cast<int>(this->poolid().length()), |
1842 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1843 | "Hdfs.Internal.ExtendedBlockProto.poolId" ); |
1844 | target = |
1845 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
1846 | 1, this->poolid(), target); |
1847 | } |
1848 | |
1849 | // required uint64 blockId = 2; |
1850 | if (cached_has_bits & 0x00000002u) { |
1851 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->blockid(), target); |
1852 | } |
1853 | |
1854 | // required uint64 generationStamp = 3; |
1855 | if (cached_has_bits & 0x00000004u) { |
1856 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->generationstamp(), target); |
1857 | } |
1858 | |
1859 | // optional uint64 numBytes = 4 [default = 0]; |
1860 | if (cached_has_bits & 0x00000008u) { |
1861 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->numbytes(), target); |
1862 | } |
1863 | |
1864 | if (_internal_metadata_.have_unknown_fields()) { |
1865 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1866 | _internal_metadata_.unknown_fields(), target); |
1867 | } |
1868 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.ExtendedBlockProto) |
1869 | return target; |
1870 | } |
1871 | |
1872 | size_t ExtendedBlockProto::RequiredFieldsByteSizeFallback() const { |
1873 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.ExtendedBlockProto) |
1874 | size_t total_size = 0; |
1875 | |
1876 | if (has_poolid()) { |
1877 | // required string poolId = 1; |
1878 | total_size += 1 + |
1879 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1880 | this->poolid()); |
1881 | } |
1882 | |
1883 | if (has_blockid()) { |
1884 | // required uint64 blockId = 2; |
1885 | total_size += 1 + |
1886 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1887 | this->blockid()); |
1888 | } |
1889 | |
1890 | if (has_generationstamp()) { |
1891 | // required uint64 generationStamp = 3; |
1892 | total_size += 1 + |
1893 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1894 | this->generationstamp()); |
1895 | } |
1896 | |
1897 | return total_size; |
1898 | } |
1899 | size_t ExtendedBlockProto::ByteSizeLong() const { |
1900 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.ExtendedBlockProto) |
1901 | size_t total_size = 0; |
1902 | |
1903 | if (_internal_metadata_.have_unknown_fields()) { |
1904 | total_size += |
1905 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1906 | _internal_metadata_.unknown_fields()); |
1907 | } |
1908 | if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. |
1909 | // required string poolId = 1; |
1910 | total_size += 1 + |
1911 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1912 | this->poolid()); |
1913 | |
1914 | // required uint64 blockId = 2; |
1915 | total_size += 1 + |
1916 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1917 | this->blockid()); |
1918 | |
1919 | // required uint64 generationStamp = 3; |
1920 | total_size += 1 + |
1921 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1922 | this->generationstamp()); |
1923 | |
1924 | } else { |
1925 | total_size += RequiredFieldsByteSizeFallback(); |
1926 | } |
1927 | // optional uint64 numBytes = 4 [default = 0]; |
1928 | if (has_numbytes()) { |
1929 | total_size += 1 + |
1930 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1931 | this->numbytes()); |
1932 | } |
1933 | |
1934 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1935 | SetCachedSize(cached_size); |
1936 | return total_size; |
1937 | } |
1938 | |
1939 | void ExtendedBlockProto::MergeFrom(const ::google::protobuf::Message& from) { |
1940 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.ExtendedBlockProto) |
1941 | GOOGLE_DCHECK_NE(&from, this); |
1942 | const ExtendedBlockProto* source = |
1943 | ::google::protobuf::internal::DynamicCastToGenerated<const ExtendedBlockProto>( |
1944 | &from); |
1945 | if (source == NULL) { |
1946 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.ExtendedBlockProto) |
1947 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1948 | } else { |
1949 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.ExtendedBlockProto) |
1950 | MergeFrom(*source); |
1951 | } |
1952 | } |
1953 | |
1954 | void ExtendedBlockProto::MergeFrom(const ExtendedBlockProto& from) { |
1955 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.ExtendedBlockProto) |
1956 | GOOGLE_DCHECK_NE(&from, this); |
1957 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1958 | ::google::protobuf::uint32 cached_has_bits = 0; |
1959 | (void) cached_has_bits; |
1960 | |
1961 | cached_has_bits = from._has_bits_[0]; |
1962 | if (cached_has_bits & 15u) { |
1963 | if (cached_has_bits & 0x00000001u) { |
1964 | set_has_poolid(); |
1965 | poolid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.poolid_); |
1966 | } |
1967 | if (cached_has_bits & 0x00000002u) { |
1968 | blockid_ = from.blockid_; |
1969 | } |
1970 | if (cached_has_bits & 0x00000004u) { |
1971 | generationstamp_ = from.generationstamp_; |
1972 | } |
1973 | if (cached_has_bits & 0x00000008u) { |
1974 | numbytes_ = from.numbytes_; |
1975 | } |
1976 | _has_bits_[0] |= cached_has_bits; |
1977 | } |
1978 | } |
1979 | |
1980 | void ExtendedBlockProto::CopyFrom(const ::google::protobuf::Message& from) { |
1981 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.ExtendedBlockProto) |
1982 | if (&from == this) return; |
1983 | Clear(); |
1984 | MergeFrom(from); |
1985 | } |
1986 | |
1987 | void ExtendedBlockProto::CopyFrom(const ExtendedBlockProto& from) { |
1988 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.ExtendedBlockProto) |
1989 | if (&from == this) return; |
1990 | Clear(); |
1991 | MergeFrom(from); |
1992 | } |
1993 | |
1994 | bool ExtendedBlockProto::IsInitialized() const { |
1995 | if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; |
1996 | return true; |
1997 | } |
1998 | |
1999 | void ExtendedBlockProto::Swap(ExtendedBlockProto* other) { |
2000 | if (other == this) return; |
2001 | InternalSwap(other); |
2002 | } |
2003 | void ExtendedBlockProto::InternalSwap(ExtendedBlockProto* other) { |
2004 | using std::swap; |
2005 | poolid_.Swap(&other->poolid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2006 | GetArenaNoVirtual()); |
2007 | swap(blockid_, other->blockid_); |
2008 | swap(generationstamp_, other->generationstamp_); |
2009 | swap(numbytes_, other->numbytes_); |
2010 | swap(_has_bits_[0], other->_has_bits_[0]); |
2011 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2012 | } |
2013 | |
2014 | ::google::protobuf::Metadata ExtendedBlockProto::GetMetadata() const { |
2015 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
2016 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
2017 | } |
2018 | |
2019 | |
2020 | // =================================================================== |
2021 | |
2022 | void DatanodeIDProto::InitAsDefaultInstance() { |
2023 | } |
2024 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2025 | const int DatanodeIDProto::kIpAddrFieldNumber; |
2026 | const int DatanodeIDProto::kHostNameFieldNumber; |
2027 | const int DatanodeIDProto::kDatanodeUuidFieldNumber; |
2028 | const int DatanodeIDProto::kXferPortFieldNumber; |
2029 | const int DatanodeIDProto::kInfoPortFieldNumber; |
2030 | const int DatanodeIDProto::kIpcPortFieldNumber; |
2031 | const int DatanodeIDProto::kInfoSecurePortFieldNumber; |
2032 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2033 | |
2034 | DatanodeIDProto::DatanodeIDProto() |
2035 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2036 | ::google::protobuf::internal::InitSCC( |
2037 | &protobuf_hdfs_2eproto::scc_info_DatanodeIDProto.base); |
2038 | SharedCtor(); |
2039 | // @@protoc_insertion_point(constructor:Hdfs.Internal.DatanodeIDProto) |
2040 | } |
2041 | DatanodeIDProto::DatanodeIDProto(const DatanodeIDProto& from) |
2042 | : ::google::protobuf::Message(), |
2043 | _internal_metadata_(NULL), |
2044 | _has_bits_(from._has_bits_) { |
2045 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2046 | ipaddr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2047 | if (from.has_ipaddr()) { |
2048 | ipaddr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ipaddr_); |
2049 | } |
2050 | hostname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2051 | if (from.has_hostname()) { |
2052 | hostname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hostname_); |
2053 | } |
2054 | datanodeuuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2055 | if (from.has_datanodeuuid()) { |
2056 | datanodeuuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.datanodeuuid_); |
2057 | } |
2058 | ::memcpy(&xferport_, &from.xferport_, |
2059 | static_cast<size_t>(reinterpret_cast<char*>(&infosecureport_) - |
2060 | reinterpret_cast<char*>(&xferport_)) + sizeof(infosecureport_)); |
2061 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.DatanodeIDProto) |
2062 | } |
2063 | |
2064 | void DatanodeIDProto::SharedCtor() { |
2065 | ipaddr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2066 | hostname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2067 | datanodeuuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2068 | ::memset(&xferport_, 0, static_cast<size_t>( |
2069 | reinterpret_cast<char*>(&infosecureport_) - |
2070 | reinterpret_cast<char*>(&xferport_)) + sizeof(infosecureport_)); |
2071 | } |
2072 | |
2073 | DatanodeIDProto::~DatanodeIDProto() { |
2074 | // @@protoc_insertion_point(destructor:Hdfs.Internal.DatanodeIDProto) |
2075 | SharedDtor(); |
2076 | } |
2077 | |
2078 | void DatanodeIDProto::SharedDtor() { |
2079 | ipaddr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2080 | hostname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2081 | datanodeuuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2082 | } |
2083 | |
2084 | void DatanodeIDProto::SetCachedSize(int size) const { |
2085 | _cached_size_.Set(size); |
2086 | } |
2087 | const ::google::protobuf::Descriptor* DatanodeIDProto::descriptor() { |
2088 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
2089 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2090 | } |
2091 | |
2092 | const DatanodeIDProto& DatanodeIDProto::default_instance() { |
2093 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_DatanodeIDProto.base); |
2094 | return *internal_default_instance(); |
2095 | } |
2096 | |
2097 | |
2098 | void DatanodeIDProto::Clear() { |
2099 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.DatanodeIDProto) |
2100 | ::google::protobuf::uint32 cached_has_bits = 0; |
2101 | // Prevent compiler warnings about cached_has_bits being unused |
2102 | (void) cached_has_bits; |
2103 | |
2104 | cached_has_bits = _has_bits_[0]; |
2105 | if (cached_has_bits & 7u) { |
2106 | if (cached_has_bits & 0x00000001u) { |
2107 | ipaddr_.ClearNonDefaultToEmptyNoArena(); |
2108 | } |
2109 | if (cached_has_bits & 0x00000002u) { |
2110 | hostname_.ClearNonDefaultToEmptyNoArena(); |
2111 | } |
2112 | if (cached_has_bits & 0x00000004u) { |
2113 | datanodeuuid_.ClearNonDefaultToEmptyNoArena(); |
2114 | } |
2115 | } |
2116 | if (cached_has_bits & 120u) { |
2117 | ::memset(&xferport_, 0, static_cast<size_t>( |
2118 | reinterpret_cast<char*>(&infosecureport_) - |
2119 | reinterpret_cast<char*>(&xferport_)) + sizeof(infosecureport_)); |
2120 | } |
2121 | _has_bits_.Clear(); |
2122 | _internal_metadata_.Clear(); |
2123 | } |
2124 | |
2125 | bool DatanodeIDProto::MergePartialFromCodedStream( |
2126 | ::google::protobuf::io::CodedInputStream* input) { |
2127 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2128 | ::google::protobuf::uint32 tag; |
2129 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.DatanodeIDProto) |
2130 | for (;;) { |
2131 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2132 | tag = p.first; |
2133 | if (!p.second) goto handle_unusual; |
2134 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2135 | // required string ipAddr = 1; |
2136 | case 1: { |
2137 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2138 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2139 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2140 | input, this->mutable_ipaddr())); |
2141 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2142 | this->ipaddr().data(), static_cast<int>(this->ipaddr().length()), |
2143 | ::google::protobuf::internal::WireFormat::PARSE, |
2144 | "Hdfs.Internal.DatanodeIDProto.ipAddr" ); |
2145 | } else { |
2146 | goto handle_unusual; |
2147 | } |
2148 | break; |
2149 | } |
2150 | |
2151 | // required string hostName = 2; |
2152 | case 2: { |
2153 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2154 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
2155 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2156 | input, this->mutable_hostname())); |
2157 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2158 | this->hostname().data(), static_cast<int>(this->hostname().length()), |
2159 | ::google::protobuf::internal::WireFormat::PARSE, |
2160 | "Hdfs.Internal.DatanodeIDProto.hostName" ); |
2161 | } else { |
2162 | goto handle_unusual; |
2163 | } |
2164 | break; |
2165 | } |
2166 | |
2167 | // required string datanodeUuid = 3; |
2168 | case 3: { |
2169 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2170 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
2171 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2172 | input, this->mutable_datanodeuuid())); |
2173 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2174 | this->datanodeuuid().data(), static_cast<int>(this->datanodeuuid().length()), |
2175 | ::google::protobuf::internal::WireFormat::PARSE, |
2176 | "Hdfs.Internal.DatanodeIDProto.datanodeUuid" ); |
2177 | } else { |
2178 | goto handle_unusual; |
2179 | } |
2180 | break; |
2181 | } |
2182 | |
2183 | // required uint32 xferPort = 4; |
2184 | case 4: { |
2185 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2186 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
2187 | set_has_xferport(); |
2188 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2189 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
2190 | input, &xferport_))); |
2191 | } else { |
2192 | goto handle_unusual; |
2193 | } |
2194 | break; |
2195 | } |
2196 | |
2197 | // required uint32 infoPort = 5; |
2198 | case 5: { |
2199 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2200 | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
2201 | set_has_infoport(); |
2202 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2203 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
2204 | input, &infoport_))); |
2205 | } else { |
2206 | goto handle_unusual; |
2207 | } |
2208 | break; |
2209 | } |
2210 | |
2211 | // required uint32 ipcPort = 6; |
2212 | case 6: { |
2213 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2214 | static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { |
2215 | set_has_ipcport(); |
2216 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2217 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
2218 | input, &ipcport_))); |
2219 | } else { |
2220 | goto handle_unusual; |
2221 | } |
2222 | break; |
2223 | } |
2224 | |
2225 | // optional uint32 infoSecurePort = 7 [default = 0]; |
2226 | case 7: { |
2227 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2228 | static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { |
2229 | set_has_infosecureport(); |
2230 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2231 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
2232 | input, &infosecureport_))); |
2233 | } else { |
2234 | goto handle_unusual; |
2235 | } |
2236 | break; |
2237 | } |
2238 | |
2239 | default: { |
2240 | handle_unusual: |
2241 | if (tag == 0) { |
2242 | goto success; |
2243 | } |
2244 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2245 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2246 | break; |
2247 | } |
2248 | } |
2249 | } |
2250 | success: |
2251 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.DatanodeIDProto) |
2252 | return true; |
2253 | failure: |
2254 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.DatanodeIDProto) |
2255 | return false; |
2256 | #undef DO_ |
2257 | } |
2258 | |
2259 | void DatanodeIDProto::SerializeWithCachedSizes( |
2260 | ::google::protobuf::io::CodedOutputStream* output) const { |
2261 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.DatanodeIDProto) |
2262 | ::google::protobuf::uint32 cached_has_bits = 0; |
2263 | (void) cached_has_bits; |
2264 | |
2265 | cached_has_bits = _has_bits_[0]; |
2266 | // required string ipAddr = 1; |
2267 | if (cached_has_bits & 0x00000001u) { |
2268 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2269 | this->ipaddr().data(), static_cast<int>(this->ipaddr().length()), |
2270 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2271 | "Hdfs.Internal.DatanodeIDProto.ipAddr" ); |
2272 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2273 | 1, this->ipaddr(), output); |
2274 | } |
2275 | |
2276 | // required string hostName = 2; |
2277 | if (cached_has_bits & 0x00000002u) { |
2278 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2279 | this->hostname().data(), static_cast<int>(this->hostname().length()), |
2280 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2281 | "Hdfs.Internal.DatanodeIDProto.hostName" ); |
2282 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2283 | 2, this->hostname(), output); |
2284 | } |
2285 | |
2286 | // required string datanodeUuid = 3; |
2287 | if (cached_has_bits & 0x00000004u) { |
2288 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2289 | this->datanodeuuid().data(), static_cast<int>(this->datanodeuuid().length()), |
2290 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2291 | "Hdfs.Internal.DatanodeIDProto.datanodeUuid" ); |
2292 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2293 | 3, this->datanodeuuid(), output); |
2294 | } |
2295 | |
2296 | // required uint32 xferPort = 4; |
2297 | if (cached_has_bits & 0x00000008u) { |
2298 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->xferport(), output); |
2299 | } |
2300 | |
2301 | // required uint32 infoPort = 5; |
2302 | if (cached_has_bits & 0x00000010u) { |
2303 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->infoport(), output); |
2304 | } |
2305 | |
2306 | // required uint32 ipcPort = 6; |
2307 | if (cached_has_bits & 0x00000020u) { |
2308 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->ipcport(), output); |
2309 | } |
2310 | |
2311 | // optional uint32 infoSecurePort = 7 [default = 0]; |
2312 | if (cached_has_bits & 0x00000040u) { |
2313 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->infosecureport(), output); |
2314 | } |
2315 | |
2316 | if (_internal_metadata_.have_unknown_fields()) { |
2317 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2318 | _internal_metadata_.unknown_fields(), output); |
2319 | } |
2320 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.DatanodeIDProto) |
2321 | } |
2322 | |
2323 | ::google::protobuf::uint8* DatanodeIDProto::InternalSerializeWithCachedSizesToArray( |
2324 | bool deterministic, ::google::protobuf::uint8* target) const { |
2325 | (void)deterministic; // Unused |
2326 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.DatanodeIDProto) |
2327 | ::google::protobuf::uint32 cached_has_bits = 0; |
2328 | (void) cached_has_bits; |
2329 | |
2330 | cached_has_bits = _has_bits_[0]; |
2331 | // required string ipAddr = 1; |
2332 | if (cached_has_bits & 0x00000001u) { |
2333 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2334 | this->ipaddr().data(), static_cast<int>(this->ipaddr().length()), |
2335 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2336 | "Hdfs.Internal.DatanodeIDProto.ipAddr" ); |
2337 | target = |
2338 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2339 | 1, this->ipaddr(), target); |
2340 | } |
2341 | |
2342 | // required string hostName = 2; |
2343 | if (cached_has_bits & 0x00000002u) { |
2344 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2345 | this->hostname().data(), static_cast<int>(this->hostname().length()), |
2346 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2347 | "Hdfs.Internal.DatanodeIDProto.hostName" ); |
2348 | target = |
2349 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2350 | 2, this->hostname(), target); |
2351 | } |
2352 | |
2353 | // required string datanodeUuid = 3; |
2354 | if (cached_has_bits & 0x00000004u) { |
2355 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2356 | this->datanodeuuid().data(), static_cast<int>(this->datanodeuuid().length()), |
2357 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2358 | "Hdfs.Internal.DatanodeIDProto.datanodeUuid" ); |
2359 | target = |
2360 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2361 | 3, this->datanodeuuid(), target); |
2362 | } |
2363 | |
2364 | // required uint32 xferPort = 4; |
2365 | if (cached_has_bits & 0x00000008u) { |
2366 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->xferport(), target); |
2367 | } |
2368 | |
2369 | // required uint32 infoPort = 5; |
2370 | if (cached_has_bits & 0x00000010u) { |
2371 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->infoport(), target); |
2372 | } |
2373 | |
2374 | // required uint32 ipcPort = 6; |
2375 | if (cached_has_bits & 0x00000020u) { |
2376 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->ipcport(), target); |
2377 | } |
2378 | |
2379 | // optional uint32 infoSecurePort = 7 [default = 0]; |
2380 | if (cached_has_bits & 0x00000040u) { |
2381 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->infosecureport(), target); |
2382 | } |
2383 | |
2384 | if (_internal_metadata_.have_unknown_fields()) { |
2385 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2386 | _internal_metadata_.unknown_fields(), target); |
2387 | } |
2388 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.DatanodeIDProto) |
2389 | return target; |
2390 | } |
2391 | |
2392 | size_t DatanodeIDProto::RequiredFieldsByteSizeFallback() const { |
2393 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.DatanodeIDProto) |
2394 | size_t total_size = 0; |
2395 | |
2396 | if (has_ipaddr()) { |
2397 | // required string ipAddr = 1; |
2398 | total_size += 1 + |
2399 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2400 | this->ipaddr()); |
2401 | } |
2402 | |
2403 | if (has_hostname()) { |
2404 | // required string hostName = 2; |
2405 | total_size += 1 + |
2406 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2407 | this->hostname()); |
2408 | } |
2409 | |
2410 | if (has_datanodeuuid()) { |
2411 | // required string datanodeUuid = 3; |
2412 | total_size += 1 + |
2413 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2414 | this->datanodeuuid()); |
2415 | } |
2416 | |
2417 | if (has_xferport()) { |
2418 | // required uint32 xferPort = 4; |
2419 | total_size += 1 + |
2420 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
2421 | this->xferport()); |
2422 | } |
2423 | |
2424 | if (has_infoport()) { |
2425 | // required uint32 infoPort = 5; |
2426 | total_size += 1 + |
2427 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
2428 | this->infoport()); |
2429 | } |
2430 | |
2431 | if (has_ipcport()) { |
2432 | // required uint32 ipcPort = 6; |
2433 | total_size += 1 + |
2434 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
2435 | this->ipcport()); |
2436 | } |
2437 | |
2438 | return total_size; |
2439 | } |
2440 | size_t DatanodeIDProto::ByteSizeLong() const { |
2441 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.DatanodeIDProto) |
2442 | size_t total_size = 0; |
2443 | |
2444 | if (_internal_metadata_.have_unknown_fields()) { |
2445 | total_size += |
2446 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2447 | _internal_metadata_.unknown_fields()); |
2448 | } |
2449 | if (((_has_bits_[0] & 0x0000003f) ^ 0x0000003f) == 0) { // All required fields are present. |
2450 | // required string ipAddr = 1; |
2451 | total_size += 1 + |
2452 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2453 | this->ipaddr()); |
2454 | |
2455 | // required string hostName = 2; |
2456 | total_size += 1 + |
2457 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2458 | this->hostname()); |
2459 | |
2460 | // required string datanodeUuid = 3; |
2461 | total_size += 1 + |
2462 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2463 | this->datanodeuuid()); |
2464 | |
2465 | // required uint32 xferPort = 4; |
2466 | total_size += 1 + |
2467 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
2468 | this->xferport()); |
2469 | |
2470 | // required uint32 infoPort = 5; |
2471 | total_size += 1 + |
2472 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
2473 | this->infoport()); |
2474 | |
2475 | // required uint32 ipcPort = 6; |
2476 | total_size += 1 + |
2477 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
2478 | this->ipcport()); |
2479 | |
2480 | } else { |
2481 | total_size += RequiredFieldsByteSizeFallback(); |
2482 | } |
2483 | // optional uint32 infoSecurePort = 7 [default = 0]; |
2484 | if (has_infosecureport()) { |
2485 | total_size += 1 + |
2486 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
2487 | this->infosecureport()); |
2488 | } |
2489 | |
2490 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2491 | SetCachedSize(cached_size); |
2492 | return total_size; |
2493 | } |
2494 | |
2495 | void DatanodeIDProto::MergeFrom(const ::google::protobuf::Message& from) { |
2496 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.DatanodeIDProto) |
2497 | GOOGLE_DCHECK_NE(&from, this); |
2498 | const DatanodeIDProto* source = |
2499 | ::google::protobuf::internal::DynamicCastToGenerated<const DatanodeIDProto>( |
2500 | &from); |
2501 | if (source == NULL) { |
2502 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.DatanodeIDProto) |
2503 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2504 | } else { |
2505 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.DatanodeIDProto) |
2506 | MergeFrom(*source); |
2507 | } |
2508 | } |
2509 | |
2510 | void DatanodeIDProto::MergeFrom(const DatanodeIDProto& from) { |
2511 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.DatanodeIDProto) |
2512 | GOOGLE_DCHECK_NE(&from, this); |
2513 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2514 | ::google::protobuf::uint32 cached_has_bits = 0; |
2515 | (void) cached_has_bits; |
2516 | |
2517 | cached_has_bits = from._has_bits_[0]; |
2518 | if (cached_has_bits & 127u) { |
2519 | if (cached_has_bits & 0x00000001u) { |
2520 | set_has_ipaddr(); |
2521 | ipaddr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ipaddr_); |
2522 | } |
2523 | if (cached_has_bits & 0x00000002u) { |
2524 | set_has_hostname(); |
2525 | hostname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hostname_); |
2526 | } |
2527 | if (cached_has_bits & 0x00000004u) { |
2528 | set_has_datanodeuuid(); |
2529 | datanodeuuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.datanodeuuid_); |
2530 | } |
2531 | if (cached_has_bits & 0x00000008u) { |
2532 | xferport_ = from.xferport_; |
2533 | } |
2534 | if (cached_has_bits & 0x00000010u) { |
2535 | infoport_ = from.infoport_; |
2536 | } |
2537 | if (cached_has_bits & 0x00000020u) { |
2538 | ipcport_ = from.ipcport_; |
2539 | } |
2540 | if (cached_has_bits & 0x00000040u) { |
2541 | infosecureport_ = from.infosecureport_; |
2542 | } |
2543 | _has_bits_[0] |= cached_has_bits; |
2544 | } |
2545 | } |
2546 | |
2547 | void DatanodeIDProto::CopyFrom(const ::google::protobuf::Message& from) { |
2548 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.DatanodeIDProto) |
2549 | if (&from == this) return; |
2550 | Clear(); |
2551 | MergeFrom(from); |
2552 | } |
2553 | |
2554 | void DatanodeIDProto::CopyFrom(const DatanodeIDProto& from) { |
2555 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.DatanodeIDProto) |
2556 | if (&from == this) return; |
2557 | Clear(); |
2558 | MergeFrom(from); |
2559 | } |
2560 | |
2561 | bool DatanodeIDProto::IsInitialized() const { |
2562 | if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false; |
2563 | return true; |
2564 | } |
2565 | |
2566 | void DatanodeIDProto::Swap(DatanodeIDProto* other) { |
2567 | if (other == this) return; |
2568 | InternalSwap(other); |
2569 | } |
2570 | void DatanodeIDProto::InternalSwap(DatanodeIDProto* other) { |
2571 | using std::swap; |
2572 | ipaddr_.Swap(&other->ipaddr_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2573 | GetArenaNoVirtual()); |
2574 | hostname_.Swap(&other->hostname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2575 | GetArenaNoVirtual()); |
2576 | datanodeuuid_.Swap(&other->datanodeuuid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2577 | GetArenaNoVirtual()); |
2578 | swap(xferport_, other->xferport_); |
2579 | swap(infoport_, other->infoport_); |
2580 | swap(ipcport_, other->ipcport_); |
2581 | swap(infosecureport_, other->infosecureport_); |
2582 | swap(_has_bits_[0], other->_has_bits_[0]); |
2583 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2584 | } |
2585 | |
2586 | ::google::protobuf::Metadata DatanodeIDProto::GetMetadata() const { |
2587 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
2588 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
2589 | } |
2590 | |
2591 | |
2592 | // =================================================================== |
2593 | |
2594 | void DatanodeInfosProto::InitAsDefaultInstance() { |
2595 | } |
2596 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2597 | const int DatanodeInfosProto::kDatanodesFieldNumber; |
2598 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2599 | |
2600 | DatanodeInfosProto::DatanodeInfosProto() |
2601 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2602 | ::google::protobuf::internal::InitSCC( |
2603 | &protobuf_hdfs_2eproto::scc_info_DatanodeInfosProto.base); |
2604 | SharedCtor(); |
2605 | // @@protoc_insertion_point(constructor:Hdfs.Internal.DatanodeInfosProto) |
2606 | } |
2607 | DatanodeInfosProto::DatanodeInfosProto(const DatanodeInfosProto& from) |
2608 | : ::google::protobuf::Message(), |
2609 | _internal_metadata_(NULL), |
2610 | _has_bits_(from._has_bits_), |
2611 | datanodes_(from.datanodes_) { |
2612 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2613 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.DatanodeInfosProto) |
2614 | } |
2615 | |
2616 | void DatanodeInfosProto::SharedCtor() { |
2617 | } |
2618 | |
2619 | DatanodeInfosProto::~DatanodeInfosProto() { |
2620 | // @@protoc_insertion_point(destructor:Hdfs.Internal.DatanodeInfosProto) |
2621 | SharedDtor(); |
2622 | } |
2623 | |
2624 | void DatanodeInfosProto::SharedDtor() { |
2625 | } |
2626 | |
2627 | void DatanodeInfosProto::SetCachedSize(int size) const { |
2628 | _cached_size_.Set(size); |
2629 | } |
2630 | const ::google::protobuf::Descriptor* DatanodeInfosProto::descriptor() { |
2631 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
2632 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2633 | } |
2634 | |
2635 | const DatanodeInfosProto& DatanodeInfosProto::default_instance() { |
2636 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_DatanodeInfosProto.base); |
2637 | return *internal_default_instance(); |
2638 | } |
2639 | |
2640 | |
2641 | void DatanodeInfosProto::Clear() { |
2642 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.DatanodeInfosProto) |
2643 | ::google::protobuf::uint32 cached_has_bits = 0; |
2644 | // Prevent compiler warnings about cached_has_bits being unused |
2645 | (void) cached_has_bits; |
2646 | |
2647 | datanodes_.Clear(); |
2648 | _has_bits_.Clear(); |
2649 | _internal_metadata_.Clear(); |
2650 | } |
2651 | |
2652 | bool DatanodeInfosProto::MergePartialFromCodedStream( |
2653 | ::google::protobuf::io::CodedInputStream* input) { |
2654 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2655 | ::google::protobuf::uint32 tag; |
2656 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.DatanodeInfosProto) |
2657 | for (;;) { |
2658 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2659 | tag = p.first; |
2660 | if (!p.second) goto handle_unusual; |
2661 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2662 | // repeated .Hdfs.Internal.DatanodeInfoProto datanodes = 1; |
2663 | case 1: { |
2664 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2665 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2666 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2667 | input, add_datanodes())); |
2668 | } else { |
2669 | goto handle_unusual; |
2670 | } |
2671 | break; |
2672 | } |
2673 | |
2674 | default: { |
2675 | handle_unusual: |
2676 | if (tag == 0) { |
2677 | goto success; |
2678 | } |
2679 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2680 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2681 | break; |
2682 | } |
2683 | } |
2684 | } |
2685 | success: |
2686 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.DatanodeInfosProto) |
2687 | return true; |
2688 | failure: |
2689 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.DatanodeInfosProto) |
2690 | return false; |
2691 | #undef DO_ |
2692 | } |
2693 | |
2694 | void DatanodeInfosProto::SerializeWithCachedSizes( |
2695 | ::google::protobuf::io::CodedOutputStream* output) const { |
2696 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.DatanodeInfosProto) |
2697 | ::google::protobuf::uint32 cached_has_bits = 0; |
2698 | (void) cached_has_bits; |
2699 | |
2700 | // repeated .Hdfs.Internal.DatanodeInfoProto datanodes = 1; |
2701 | for (unsigned int i = 0, |
2702 | n = static_cast<unsigned int>(this->datanodes_size()); i < n; i++) { |
2703 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2704 | 1, |
2705 | this->datanodes(static_cast<int>(i)), |
2706 | output); |
2707 | } |
2708 | |
2709 | if (_internal_metadata_.have_unknown_fields()) { |
2710 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2711 | _internal_metadata_.unknown_fields(), output); |
2712 | } |
2713 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.DatanodeInfosProto) |
2714 | } |
2715 | |
2716 | ::google::protobuf::uint8* DatanodeInfosProto::InternalSerializeWithCachedSizesToArray( |
2717 | bool deterministic, ::google::protobuf::uint8* target) const { |
2718 | (void)deterministic; // Unused |
2719 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.DatanodeInfosProto) |
2720 | ::google::protobuf::uint32 cached_has_bits = 0; |
2721 | (void) cached_has_bits; |
2722 | |
2723 | // repeated .Hdfs.Internal.DatanodeInfoProto datanodes = 1; |
2724 | for (unsigned int i = 0, |
2725 | n = static_cast<unsigned int>(this->datanodes_size()); i < n; i++) { |
2726 | target = ::google::protobuf::internal::WireFormatLite:: |
2727 | InternalWriteMessageToArray( |
2728 | 1, this->datanodes(static_cast<int>(i)), deterministic, target); |
2729 | } |
2730 | |
2731 | if (_internal_metadata_.have_unknown_fields()) { |
2732 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2733 | _internal_metadata_.unknown_fields(), target); |
2734 | } |
2735 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.DatanodeInfosProto) |
2736 | return target; |
2737 | } |
2738 | |
2739 | size_t DatanodeInfosProto::ByteSizeLong() const { |
2740 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.DatanodeInfosProto) |
2741 | size_t total_size = 0; |
2742 | |
2743 | if (_internal_metadata_.have_unknown_fields()) { |
2744 | total_size += |
2745 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2746 | _internal_metadata_.unknown_fields()); |
2747 | } |
2748 | // repeated .Hdfs.Internal.DatanodeInfoProto datanodes = 1; |
2749 | { |
2750 | unsigned int count = static_cast<unsigned int>(this->datanodes_size()); |
2751 | total_size += 1UL * count; |
2752 | for (unsigned int i = 0; i < count; i++) { |
2753 | total_size += |
2754 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2755 | this->datanodes(static_cast<int>(i))); |
2756 | } |
2757 | } |
2758 | |
2759 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2760 | SetCachedSize(cached_size); |
2761 | return total_size; |
2762 | } |
2763 | |
2764 | void DatanodeInfosProto::MergeFrom(const ::google::protobuf::Message& from) { |
2765 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.DatanodeInfosProto) |
2766 | GOOGLE_DCHECK_NE(&from, this); |
2767 | const DatanodeInfosProto* source = |
2768 | ::google::protobuf::internal::DynamicCastToGenerated<const DatanodeInfosProto>( |
2769 | &from); |
2770 | if (source == NULL) { |
2771 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.DatanodeInfosProto) |
2772 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2773 | } else { |
2774 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.DatanodeInfosProto) |
2775 | MergeFrom(*source); |
2776 | } |
2777 | } |
2778 | |
2779 | void DatanodeInfosProto::MergeFrom(const DatanodeInfosProto& from) { |
2780 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.DatanodeInfosProto) |
2781 | GOOGLE_DCHECK_NE(&from, this); |
2782 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2783 | ::google::protobuf::uint32 cached_has_bits = 0; |
2784 | (void) cached_has_bits; |
2785 | |
2786 | datanodes_.MergeFrom(from.datanodes_); |
2787 | } |
2788 | |
2789 | void DatanodeInfosProto::CopyFrom(const ::google::protobuf::Message& from) { |
2790 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.DatanodeInfosProto) |
2791 | if (&from == this) return; |
2792 | Clear(); |
2793 | MergeFrom(from); |
2794 | } |
2795 | |
2796 | void DatanodeInfosProto::CopyFrom(const DatanodeInfosProto& from) { |
2797 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.DatanodeInfosProto) |
2798 | if (&from == this) return; |
2799 | Clear(); |
2800 | MergeFrom(from); |
2801 | } |
2802 | |
2803 | bool DatanodeInfosProto::IsInitialized() const { |
2804 | if (!::google::protobuf::internal::AllAreInitialized(this->datanodes())) return false; |
2805 | return true; |
2806 | } |
2807 | |
2808 | void DatanodeInfosProto::Swap(DatanodeInfosProto* other) { |
2809 | if (other == this) return; |
2810 | InternalSwap(other); |
2811 | } |
2812 | void DatanodeInfosProto::InternalSwap(DatanodeInfosProto* other) { |
2813 | using std::swap; |
2814 | CastToBase(&datanodes_)->InternalSwap(CastToBase(&other->datanodes_)); |
2815 | swap(_has_bits_[0], other->_has_bits_[0]); |
2816 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2817 | } |
2818 | |
2819 | ::google::protobuf::Metadata DatanodeInfosProto::GetMetadata() const { |
2820 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
2821 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
2822 | } |
2823 | |
2824 | |
2825 | // =================================================================== |
2826 | |
2827 | void DatanodeInfoProto::InitAsDefaultInstance() { |
2828 | ::Hdfs::Internal::_DatanodeInfoProto_default_instance_._instance.get_mutable()->id_ = const_cast< ::Hdfs::Internal::DatanodeIDProto*>( |
2829 | ::Hdfs::Internal::DatanodeIDProto::internal_default_instance()); |
2830 | } |
2831 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2832 | const int DatanodeInfoProto::kIdFieldNumber; |
2833 | const int DatanodeInfoProto::kCapacityFieldNumber; |
2834 | const int DatanodeInfoProto::kDfsUsedFieldNumber; |
2835 | const int DatanodeInfoProto::kRemainingFieldNumber; |
2836 | const int DatanodeInfoProto::kBlockPoolUsedFieldNumber; |
2837 | const int DatanodeInfoProto::kLastUpdateFieldNumber; |
2838 | const int DatanodeInfoProto::kXceiverCountFieldNumber; |
2839 | const int DatanodeInfoProto::kLocationFieldNumber; |
2840 | const int DatanodeInfoProto::kAdminStateFieldNumber; |
2841 | const int DatanodeInfoProto::kCacheCapacityFieldNumber; |
2842 | const int DatanodeInfoProto::kCacheUsedFieldNumber; |
2843 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2844 | |
2845 | DatanodeInfoProto::DatanodeInfoProto() |
2846 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2847 | ::google::protobuf::internal::InitSCC( |
2848 | &protobuf_hdfs_2eproto::scc_info_DatanodeInfoProto.base); |
2849 | SharedCtor(); |
2850 | // @@protoc_insertion_point(constructor:Hdfs.Internal.DatanodeInfoProto) |
2851 | } |
2852 | DatanodeInfoProto::DatanodeInfoProto(const DatanodeInfoProto& from) |
2853 | : ::google::protobuf::Message(), |
2854 | _internal_metadata_(NULL), |
2855 | _has_bits_(from._has_bits_) { |
2856 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2857 | location_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2858 | if (from.has_location()) { |
2859 | location_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.location_); |
2860 | } |
2861 | if (from.has_id()) { |
2862 | id_ = new ::Hdfs::Internal::DatanodeIDProto(*from.id_); |
2863 | } else { |
2864 | id_ = NULL; |
2865 | } |
2866 | ::memcpy(&capacity_, &from.capacity_, |
2867 | static_cast<size_t>(reinterpret_cast<char*>(&cacheused_) - |
2868 | reinterpret_cast<char*>(&capacity_)) + sizeof(cacheused_)); |
2869 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.DatanodeInfoProto) |
2870 | } |
2871 | |
2872 | void DatanodeInfoProto::SharedCtor() { |
2873 | location_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2874 | ::memset(&id_, 0, static_cast<size_t>( |
2875 | reinterpret_cast<char*>(&cacheused_) - |
2876 | reinterpret_cast<char*>(&id_)) + sizeof(cacheused_)); |
2877 | } |
2878 | |
2879 | DatanodeInfoProto::~DatanodeInfoProto() { |
2880 | // @@protoc_insertion_point(destructor:Hdfs.Internal.DatanodeInfoProto) |
2881 | SharedDtor(); |
2882 | } |
2883 | |
2884 | void DatanodeInfoProto::SharedDtor() { |
2885 | location_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2886 | if (this != internal_default_instance()) delete id_; |
2887 | } |
2888 | |
2889 | void DatanodeInfoProto::SetCachedSize(int size) const { |
2890 | _cached_size_.Set(size); |
2891 | } |
2892 | const ::google::protobuf::Descriptor* DatanodeInfoProto::descriptor() { |
2893 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
2894 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2895 | } |
2896 | |
2897 | const DatanodeInfoProto& DatanodeInfoProto::default_instance() { |
2898 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_DatanodeInfoProto.base); |
2899 | return *internal_default_instance(); |
2900 | } |
2901 | |
2902 | |
2903 | void DatanodeInfoProto::Clear() { |
2904 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.DatanodeInfoProto) |
2905 | ::google::protobuf::uint32 cached_has_bits = 0; |
2906 | // Prevent compiler warnings about cached_has_bits being unused |
2907 | (void) cached_has_bits; |
2908 | |
2909 | cached_has_bits = _has_bits_[0]; |
2910 | if (cached_has_bits & 3u) { |
2911 | if (cached_has_bits & 0x00000001u) { |
2912 | location_.ClearNonDefaultToEmptyNoArena(); |
2913 | } |
2914 | if (cached_has_bits & 0x00000002u) { |
2915 | GOOGLE_DCHECK(id_ != NULL); |
2916 | id_->Clear(); |
2917 | } |
2918 | } |
2919 | if (cached_has_bits & 252u) { |
2920 | ::memset(&capacity_, 0, static_cast<size_t>( |
2921 | reinterpret_cast<char*>(&xceivercount_) - |
2922 | reinterpret_cast<char*>(&capacity_)) + sizeof(xceivercount_)); |
2923 | } |
2924 | if (cached_has_bits & 1792u) { |
2925 | ::memset(&adminstate_, 0, static_cast<size_t>( |
2926 | reinterpret_cast<char*>(&cacheused_) - |
2927 | reinterpret_cast<char*>(&adminstate_)) + sizeof(cacheused_)); |
2928 | } |
2929 | _has_bits_.Clear(); |
2930 | _internal_metadata_.Clear(); |
2931 | } |
2932 | |
2933 | bool DatanodeInfoProto::MergePartialFromCodedStream( |
2934 | ::google::protobuf::io::CodedInputStream* input) { |
2935 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2936 | ::google::protobuf::uint32 tag; |
2937 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.DatanodeInfoProto) |
2938 | for (;;) { |
2939 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2940 | tag = p.first; |
2941 | if (!p.second) goto handle_unusual; |
2942 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2943 | // required .Hdfs.Internal.DatanodeIDProto id = 1; |
2944 | case 1: { |
2945 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2946 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2947 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2948 | input, mutable_id())); |
2949 | } else { |
2950 | goto handle_unusual; |
2951 | } |
2952 | break; |
2953 | } |
2954 | |
2955 | // optional uint64 capacity = 2 [default = 0]; |
2956 | case 2: { |
2957 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2958 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
2959 | set_has_capacity(); |
2960 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2961 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
2962 | input, &capacity_))); |
2963 | } else { |
2964 | goto handle_unusual; |
2965 | } |
2966 | break; |
2967 | } |
2968 | |
2969 | // optional uint64 dfsUsed = 3 [default = 0]; |
2970 | case 3: { |
2971 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2972 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
2973 | set_has_dfsused(); |
2974 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2975 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
2976 | input, &dfsused_))); |
2977 | } else { |
2978 | goto handle_unusual; |
2979 | } |
2980 | break; |
2981 | } |
2982 | |
2983 | // optional uint64 remaining = 4 [default = 0]; |
2984 | case 4: { |
2985 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2986 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
2987 | set_has_remaining(); |
2988 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2989 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
2990 | input, &remaining_))); |
2991 | } else { |
2992 | goto handle_unusual; |
2993 | } |
2994 | break; |
2995 | } |
2996 | |
2997 | // optional uint64 blockPoolUsed = 5 [default = 0]; |
2998 | case 5: { |
2999 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3000 | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
3001 | set_has_blockpoolused(); |
3002 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3003 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
3004 | input, &blockpoolused_))); |
3005 | } else { |
3006 | goto handle_unusual; |
3007 | } |
3008 | break; |
3009 | } |
3010 | |
3011 | // optional uint64 lastUpdate = 6 [default = 0]; |
3012 | case 6: { |
3013 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3014 | static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { |
3015 | set_has_lastupdate(); |
3016 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3017 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
3018 | input, &lastupdate_))); |
3019 | } else { |
3020 | goto handle_unusual; |
3021 | } |
3022 | break; |
3023 | } |
3024 | |
3025 | // optional uint32 xceiverCount = 7 [default = 0]; |
3026 | case 7: { |
3027 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3028 | static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { |
3029 | set_has_xceivercount(); |
3030 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3031 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
3032 | input, &xceivercount_))); |
3033 | } else { |
3034 | goto handle_unusual; |
3035 | } |
3036 | break; |
3037 | } |
3038 | |
3039 | // optional string location = 8; |
3040 | case 8: { |
3041 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3042 | static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { |
3043 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
3044 | input, this->mutable_location())); |
3045 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3046 | this->location().data(), static_cast<int>(this->location().length()), |
3047 | ::google::protobuf::internal::WireFormat::PARSE, |
3048 | "Hdfs.Internal.DatanodeInfoProto.location" ); |
3049 | } else { |
3050 | goto handle_unusual; |
3051 | } |
3052 | break; |
3053 | } |
3054 | |
3055 | // optional .Hdfs.Internal.DatanodeInfoProto.AdminState adminState = 10 [default = NORMAL]; |
3056 | case 10: { |
3057 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3058 | static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { |
3059 | int value; |
3060 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3061 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
3062 | input, &value))); |
3063 | if (::Hdfs::Internal::DatanodeInfoProto_AdminState_IsValid(value)) { |
3064 | set_adminstate(static_cast< ::Hdfs::Internal::DatanodeInfoProto_AdminState >(value)); |
3065 | } else { |
3066 | mutable_unknown_fields()->AddVarint( |
3067 | 10, static_cast< ::google::protobuf::uint64>(value)); |
3068 | } |
3069 | } else { |
3070 | goto handle_unusual; |
3071 | } |
3072 | break; |
3073 | } |
3074 | |
3075 | // optional uint64 cacheCapacity = 11 [default = 0]; |
3076 | case 11: { |
3077 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3078 | static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) { |
3079 | set_has_cachecapacity(); |
3080 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3081 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
3082 | input, &cachecapacity_))); |
3083 | } else { |
3084 | goto handle_unusual; |
3085 | } |
3086 | break; |
3087 | } |
3088 | |
3089 | // optional uint64 cacheUsed = 12 [default = 0]; |
3090 | case 12: { |
3091 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3092 | static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { |
3093 | set_has_cacheused(); |
3094 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3095 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
3096 | input, &cacheused_))); |
3097 | } else { |
3098 | goto handle_unusual; |
3099 | } |
3100 | break; |
3101 | } |
3102 | |
3103 | default: { |
3104 | handle_unusual: |
3105 | if (tag == 0) { |
3106 | goto success; |
3107 | } |
3108 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3109 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3110 | break; |
3111 | } |
3112 | } |
3113 | } |
3114 | success: |
3115 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.DatanodeInfoProto) |
3116 | return true; |
3117 | failure: |
3118 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.DatanodeInfoProto) |
3119 | return false; |
3120 | #undef DO_ |
3121 | } |
3122 | |
3123 | void DatanodeInfoProto::SerializeWithCachedSizes( |
3124 | ::google::protobuf::io::CodedOutputStream* output) const { |
3125 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.DatanodeInfoProto) |
3126 | ::google::protobuf::uint32 cached_has_bits = 0; |
3127 | (void) cached_has_bits; |
3128 | |
3129 | cached_has_bits = _has_bits_[0]; |
3130 | // required .Hdfs.Internal.DatanodeIDProto id = 1; |
3131 | if (cached_has_bits & 0x00000002u) { |
3132 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3133 | 1, this->_internal_id(), output); |
3134 | } |
3135 | |
3136 | // optional uint64 capacity = 2 [default = 0]; |
3137 | if (cached_has_bits & 0x00000004u) { |
3138 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->capacity(), output); |
3139 | } |
3140 | |
3141 | // optional uint64 dfsUsed = 3 [default = 0]; |
3142 | if (cached_has_bits & 0x00000008u) { |
3143 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->dfsused(), output); |
3144 | } |
3145 | |
3146 | // optional uint64 remaining = 4 [default = 0]; |
3147 | if (cached_has_bits & 0x00000010u) { |
3148 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->remaining(), output); |
3149 | } |
3150 | |
3151 | // optional uint64 blockPoolUsed = 5 [default = 0]; |
3152 | if (cached_has_bits & 0x00000020u) { |
3153 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->blockpoolused(), output); |
3154 | } |
3155 | |
3156 | // optional uint64 lastUpdate = 6 [default = 0]; |
3157 | if (cached_has_bits & 0x00000040u) { |
3158 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->lastupdate(), output); |
3159 | } |
3160 | |
3161 | // optional uint32 xceiverCount = 7 [default = 0]; |
3162 | if (cached_has_bits & 0x00000080u) { |
3163 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->xceivercount(), output); |
3164 | } |
3165 | |
3166 | // optional string location = 8; |
3167 | if (cached_has_bits & 0x00000001u) { |
3168 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3169 | this->location().data(), static_cast<int>(this->location().length()), |
3170 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3171 | "Hdfs.Internal.DatanodeInfoProto.location" ); |
3172 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
3173 | 8, this->location(), output); |
3174 | } |
3175 | |
3176 | // optional .Hdfs.Internal.DatanodeInfoProto.AdminState adminState = 10 [default = NORMAL]; |
3177 | if (cached_has_bits & 0x00000100u) { |
3178 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
3179 | 10, this->adminstate(), output); |
3180 | } |
3181 | |
3182 | // optional uint64 cacheCapacity = 11 [default = 0]; |
3183 | if (cached_has_bits & 0x00000200u) { |
3184 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->cachecapacity(), output); |
3185 | } |
3186 | |
3187 | // optional uint64 cacheUsed = 12 [default = 0]; |
3188 | if (cached_has_bits & 0x00000400u) { |
3189 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(12, this->cacheused(), output); |
3190 | } |
3191 | |
3192 | if (_internal_metadata_.have_unknown_fields()) { |
3193 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3194 | _internal_metadata_.unknown_fields(), output); |
3195 | } |
3196 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.DatanodeInfoProto) |
3197 | } |
3198 | |
3199 | ::google::protobuf::uint8* DatanodeInfoProto::InternalSerializeWithCachedSizesToArray( |
3200 | bool deterministic, ::google::protobuf::uint8* target) const { |
3201 | (void)deterministic; // Unused |
3202 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.DatanodeInfoProto) |
3203 | ::google::protobuf::uint32 cached_has_bits = 0; |
3204 | (void) cached_has_bits; |
3205 | |
3206 | cached_has_bits = _has_bits_[0]; |
3207 | // required .Hdfs.Internal.DatanodeIDProto id = 1; |
3208 | if (cached_has_bits & 0x00000002u) { |
3209 | target = ::google::protobuf::internal::WireFormatLite:: |
3210 | InternalWriteMessageToArray( |
3211 | 1, this->_internal_id(), deterministic, target); |
3212 | } |
3213 | |
3214 | // optional uint64 capacity = 2 [default = 0]; |
3215 | if (cached_has_bits & 0x00000004u) { |
3216 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->capacity(), target); |
3217 | } |
3218 | |
3219 | // optional uint64 dfsUsed = 3 [default = 0]; |
3220 | if (cached_has_bits & 0x00000008u) { |
3221 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->dfsused(), target); |
3222 | } |
3223 | |
3224 | // optional uint64 remaining = 4 [default = 0]; |
3225 | if (cached_has_bits & 0x00000010u) { |
3226 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->remaining(), target); |
3227 | } |
3228 | |
3229 | // optional uint64 blockPoolUsed = 5 [default = 0]; |
3230 | if (cached_has_bits & 0x00000020u) { |
3231 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->blockpoolused(), target); |
3232 | } |
3233 | |
3234 | // optional uint64 lastUpdate = 6 [default = 0]; |
3235 | if (cached_has_bits & 0x00000040u) { |
3236 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->lastupdate(), target); |
3237 | } |
3238 | |
3239 | // optional uint32 xceiverCount = 7 [default = 0]; |
3240 | if (cached_has_bits & 0x00000080u) { |
3241 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->xceivercount(), target); |
3242 | } |
3243 | |
3244 | // optional string location = 8; |
3245 | if (cached_has_bits & 0x00000001u) { |
3246 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3247 | this->location().data(), static_cast<int>(this->location().length()), |
3248 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3249 | "Hdfs.Internal.DatanodeInfoProto.location" ); |
3250 | target = |
3251 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
3252 | 8, this->location(), target); |
3253 | } |
3254 | |
3255 | // optional .Hdfs.Internal.DatanodeInfoProto.AdminState adminState = 10 [default = NORMAL]; |
3256 | if (cached_has_bits & 0x00000100u) { |
3257 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
3258 | 10, this->adminstate(), target); |
3259 | } |
3260 | |
3261 | // optional uint64 cacheCapacity = 11 [default = 0]; |
3262 | if (cached_has_bits & 0x00000200u) { |
3263 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->cachecapacity(), target); |
3264 | } |
3265 | |
3266 | // optional uint64 cacheUsed = 12 [default = 0]; |
3267 | if (cached_has_bits & 0x00000400u) { |
3268 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(12, this->cacheused(), target); |
3269 | } |
3270 | |
3271 | if (_internal_metadata_.have_unknown_fields()) { |
3272 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3273 | _internal_metadata_.unknown_fields(), target); |
3274 | } |
3275 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.DatanodeInfoProto) |
3276 | return target; |
3277 | } |
3278 | |
3279 | size_t DatanodeInfoProto::ByteSizeLong() const { |
3280 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.DatanodeInfoProto) |
3281 | size_t total_size = 0; |
3282 | |
3283 | if (_internal_metadata_.have_unknown_fields()) { |
3284 | total_size += |
3285 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3286 | _internal_metadata_.unknown_fields()); |
3287 | } |
3288 | // required .Hdfs.Internal.DatanodeIDProto id = 1; |
3289 | if (has_id()) { |
3290 | total_size += 1 + |
3291 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3292 | *id_); |
3293 | } |
3294 | // optional string location = 8; |
3295 | if (has_location()) { |
3296 | total_size += 1 + |
3297 | ::google::protobuf::internal::WireFormatLite::StringSize( |
3298 | this->location()); |
3299 | } |
3300 | |
3301 | if (_has_bits_[0 / 32] & 252u) { |
3302 | // optional uint64 capacity = 2 [default = 0]; |
3303 | if (has_capacity()) { |
3304 | total_size += 1 + |
3305 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3306 | this->capacity()); |
3307 | } |
3308 | |
3309 | // optional uint64 dfsUsed = 3 [default = 0]; |
3310 | if (has_dfsused()) { |
3311 | total_size += 1 + |
3312 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3313 | this->dfsused()); |
3314 | } |
3315 | |
3316 | // optional uint64 remaining = 4 [default = 0]; |
3317 | if (has_remaining()) { |
3318 | total_size += 1 + |
3319 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3320 | this->remaining()); |
3321 | } |
3322 | |
3323 | // optional uint64 blockPoolUsed = 5 [default = 0]; |
3324 | if (has_blockpoolused()) { |
3325 | total_size += 1 + |
3326 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3327 | this->blockpoolused()); |
3328 | } |
3329 | |
3330 | // optional uint64 lastUpdate = 6 [default = 0]; |
3331 | if (has_lastupdate()) { |
3332 | total_size += 1 + |
3333 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3334 | this->lastupdate()); |
3335 | } |
3336 | |
3337 | // optional uint32 xceiverCount = 7 [default = 0]; |
3338 | if (has_xceivercount()) { |
3339 | total_size += 1 + |
3340 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
3341 | this->xceivercount()); |
3342 | } |
3343 | |
3344 | } |
3345 | if (_has_bits_[8 / 32] & 1792u) { |
3346 | // optional .Hdfs.Internal.DatanodeInfoProto.AdminState adminState = 10 [default = NORMAL]; |
3347 | if (has_adminstate()) { |
3348 | total_size += 1 + |
3349 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->adminstate()); |
3350 | } |
3351 | |
3352 | // optional uint64 cacheCapacity = 11 [default = 0]; |
3353 | if (has_cachecapacity()) { |
3354 | total_size += 1 + |
3355 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3356 | this->cachecapacity()); |
3357 | } |
3358 | |
3359 | // optional uint64 cacheUsed = 12 [default = 0]; |
3360 | if (has_cacheused()) { |
3361 | total_size += 1 + |
3362 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3363 | this->cacheused()); |
3364 | } |
3365 | |
3366 | } |
3367 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3368 | SetCachedSize(cached_size); |
3369 | return total_size; |
3370 | } |
3371 | |
3372 | void DatanodeInfoProto::MergeFrom(const ::google::protobuf::Message& from) { |
3373 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.DatanodeInfoProto) |
3374 | GOOGLE_DCHECK_NE(&from, this); |
3375 | const DatanodeInfoProto* source = |
3376 | ::google::protobuf::internal::DynamicCastToGenerated<const DatanodeInfoProto>( |
3377 | &from); |
3378 | if (source == NULL) { |
3379 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.DatanodeInfoProto) |
3380 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3381 | } else { |
3382 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.DatanodeInfoProto) |
3383 | MergeFrom(*source); |
3384 | } |
3385 | } |
3386 | |
3387 | void DatanodeInfoProto::MergeFrom(const DatanodeInfoProto& from) { |
3388 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.DatanodeInfoProto) |
3389 | GOOGLE_DCHECK_NE(&from, this); |
3390 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3391 | ::google::protobuf::uint32 cached_has_bits = 0; |
3392 | (void) cached_has_bits; |
3393 | |
3394 | cached_has_bits = from._has_bits_[0]; |
3395 | if (cached_has_bits & 255u) { |
3396 | if (cached_has_bits & 0x00000001u) { |
3397 | set_has_location(); |
3398 | location_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.location_); |
3399 | } |
3400 | if (cached_has_bits & 0x00000002u) { |
3401 | mutable_id()->::Hdfs::Internal::DatanodeIDProto::MergeFrom(from.id()); |
3402 | } |
3403 | if (cached_has_bits & 0x00000004u) { |
3404 | capacity_ = from.capacity_; |
3405 | } |
3406 | if (cached_has_bits & 0x00000008u) { |
3407 | dfsused_ = from.dfsused_; |
3408 | } |
3409 | if (cached_has_bits & 0x00000010u) { |
3410 | remaining_ = from.remaining_; |
3411 | } |
3412 | if (cached_has_bits & 0x00000020u) { |
3413 | blockpoolused_ = from.blockpoolused_; |
3414 | } |
3415 | if (cached_has_bits & 0x00000040u) { |
3416 | lastupdate_ = from.lastupdate_; |
3417 | } |
3418 | if (cached_has_bits & 0x00000080u) { |
3419 | xceivercount_ = from.xceivercount_; |
3420 | } |
3421 | _has_bits_[0] |= cached_has_bits; |
3422 | } |
3423 | if (cached_has_bits & 1792u) { |
3424 | if (cached_has_bits & 0x00000100u) { |
3425 | adminstate_ = from.adminstate_; |
3426 | } |
3427 | if (cached_has_bits & 0x00000200u) { |
3428 | cachecapacity_ = from.cachecapacity_; |
3429 | } |
3430 | if (cached_has_bits & 0x00000400u) { |
3431 | cacheused_ = from.cacheused_; |
3432 | } |
3433 | _has_bits_[0] |= cached_has_bits; |
3434 | } |
3435 | } |
3436 | |
3437 | void DatanodeInfoProto::CopyFrom(const ::google::protobuf::Message& from) { |
3438 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.DatanodeInfoProto) |
3439 | if (&from == this) return; |
3440 | Clear(); |
3441 | MergeFrom(from); |
3442 | } |
3443 | |
3444 | void DatanodeInfoProto::CopyFrom(const DatanodeInfoProto& from) { |
3445 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.DatanodeInfoProto) |
3446 | if (&from == this) return; |
3447 | Clear(); |
3448 | MergeFrom(from); |
3449 | } |
3450 | |
3451 | bool DatanodeInfoProto::IsInitialized() const { |
3452 | if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; |
3453 | if (has_id()) { |
3454 | if (!this->id_->IsInitialized()) return false; |
3455 | } |
3456 | return true; |
3457 | } |
3458 | |
3459 | void DatanodeInfoProto::Swap(DatanodeInfoProto* other) { |
3460 | if (other == this) return; |
3461 | InternalSwap(other); |
3462 | } |
3463 | void DatanodeInfoProto::InternalSwap(DatanodeInfoProto* other) { |
3464 | using std::swap; |
3465 | location_.Swap(&other->location_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
3466 | GetArenaNoVirtual()); |
3467 | swap(id_, other->id_); |
3468 | swap(capacity_, other->capacity_); |
3469 | swap(dfsused_, other->dfsused_); |
3470 | swap(remaining_, other->remaining_); |
3471 | swap(blockpoolused_, other->blockpoolused_); |
3472 | swap(lastupdate_, other->lastupdate_); |
3473 | swap(xceivercount_, other->xceivercount_); |
3474 | swap(adminstate_, other->adminstate_); |
3475 | swap(cachecapacity_, other->cachecapacity_); |
3476 | swap(cacheused_, other->cacheused_); |
3477 | swap(_has_bits_[0], other->_has_bits_[0]); |
3478 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3479 | } |
3480 | |
3481 | ::google::protobuf::Metadata DatanodeInfoProto::GetMetadata() const { |
3482 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
3483 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
3484 | } |
3485 | |
3486 | |
3487 | // =================================================================== |
3488 | |
3489 | void ContentSummaryProto::InitAsDefaultInstance() { |
3490 | } |
3491 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3492 | const int ContentSummaryProto::kLengthFieldNumber; |
3493 | const int ContentSummaryProto::kFileCountFieldNumber; |
3494 | const int ContentSummaryProto::kDirectoryCountFieldNumber; |
3495 | const int ContentSummaryProto::kQuotaFieldNumber; |
3496 | const int ContentSummaryProto::kSpaceConsumedFieldNumber; |
3497 | const int ContentSummaryProto::kSpaceQuotaFieldNumber; |
3498 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3499 | |
3500 | ContentSummaryProto::ContentSummaryProto() |
3501 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3502 | ::google::protobuf::internal::InitSCC( |
3503 | &protobuf_hdfs_2eproto::scc_info_ContentSummaryProto.base); |
3504 | SharedCtor(); |
3505 | // @@protoc_insertion_point(constructor:Hdfs.Internal.ContentSummaryProto) |
3506 | } |
3507 | ContentSummaryProto::ContentSummaryProto(const ContentSummaryProto& from) |
3508 | : ::google::protobuf::Message(), |
3509 | _internal_metadata_(NULL), |
3510 | _has_bits_(from._has_bits_) { |
3511 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3512 | ::memcpy(&length_, &from.length_, |
3513 | static_cast<size_t>(reinterpret_cast<char*>(&spacequota_) - |
3514 | reinterpret_cast<char*>(&length_)) + sizeof(spacequota_)); |
3515 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.ContentSummaryProto) |
3516 | } |
3517 | |
3518 | void ContentSummaryProto::SharedCtor() { |
3519 | ::memset(&length_, 0, static_cast<size_t>( |
3520 | reinterpret_cast<char*>(&spacequota_) - |
3521 | reinterpret_cast<char*>(&length_)) + sizeof(spacequota_)); |
3522 | } |
3523 | |
3524 | ContentSummaryProto::~ContentSummaryProto() { |
3525 | // @@protoc_insertion_point(destructor:Hdfs.Internal.ContentSummaryProto) |
3526 | SharedDtor(); |
3527 | } |
3528 | |
3529 | void ContentSummaryProto::SharedDtor() { |
3530 | } |
3531 | |
3532 | void ContentSummaryProto::SetCachedSize(int size) const { |
3533 | _cached_size_.Set(size); |
3534 | } |
3535 | const ::google::protobuf::Descriptor* ContentSummaryProto::descriptor() { |
3536 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
3537 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3538 | } |
3539 | |
3540 | const ContentSummaryProto& ContentSummaryProto::default_instance() { |
3541 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_ContentSummaryProto.base); |
3542 | return *internal_default_instance(); |
3543 | } |
3544 | |
3545 | |
3546 | void ContentSummaryProto::Clear() { |
3547 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.ContentSummaryProto) |
3548 | ::google::protobuf::uint32 cached_has_bits = 0; |
3549 | // Prevent compiler warnings about cached_has_bits being unused |
3550 | (void) cached_has_bits; |
3551 | |
3552 | cached_has_bits = _has_bits_[0]; |
3553 | if (cached_has_bits & 63u) { |
3554 | ::memset(&length_, 0, static_cast<size_t>( |
3555 | reinterpret_cast<char*>(&spacequota_) - |
3556 | reinterpret_cast<char*>(&length_)) + sizeof(spacequota_)); |
3557 | } |
3558 | _has_bits_.Clear(); |
3559 | _internal_metadata_.Clear(); |
3560 | } |
3561 | |
3562 | bool ContentSummaryProto::MergePartialFromCodedStream( |
3563 | ::google::protobuf::io::CodedInputStream* input) { |
3564 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
3565 | ::google::protobuf::uint32 tag; |
3566 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.ContentSummaryProto) |
3567 | for (;;) { |
3568 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3569 | tag = p.first; |
3570 | if (!p.second) goto handle_unusual; |
3571 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3572 | // required uint64 length = 1; |
3573 | case 1: { |
3574 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3575 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
3576 | set_has_length(); |
3577 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3578 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
3579 | input, &length_))); |
3580 | } else { |
3581 | goto handle_unusual; |
3582 | } |
3583 | break; |
3584 | } |
3585 | |
3586 | // required uint64 fileCount = 2; |
3587 | case 2: { |
3588 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3589 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
3590 | set_has_filecount(); |
3591 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3592 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
3593 | input, &filecount_))); |
3594 | } else { |
3595 | goto handle_unusual; |
3596 | } |
3597 | break; |
3598 | } |
3599 | |
3600 | // required uint64 directoryCount = 3; |
3601 | case 3: { |
3602 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3603 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
3604 | set_has_directorycount(); |
3605 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3606 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
3607 | input, &directorycount_))); |
3608 | } else { |
3609 | goto handle_unusual; |
3610 | } |
3611 | break; |
3612 | } |
3613 | |
3614 | // required uint64 quota = 4; |
3615 | case 4: { |
3616 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3617 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
3618 | set_has_quota(); |
3619 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3620 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
3621 | input, "a_))); |
3622 | } else { |
3623 | goto handle_unusual; |
3624 | } |
3625 | break; |
3626 | } |
3627 | |
3628 | // required uint64 spaceConsumed = 5; |
3629 | case 5: { |
3630 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3631 | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
3632 | set_has_spaceconsumed(); |
3633 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3634 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
3635 | input, &spaceconsumed_))); |
3636 | } else { |
3637 | goto handle_unusual; |
3638 | } |
3639 | break; |
3640 | } |
3641 | |
3642 | // required uint64 spaceQuota = 6; |
3643 | case 6: { |
3644 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3645 | static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { |
3646 | set_has_spacequota(); |
3647 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3648 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
3649 | input, &spacequota_))); |
3650 | } else { |
3651 | goto handle_unusual; |
3652 | } |
3653 | break; |
3654 | } |
3655 | |
3656 | default: { |
3657 | handle_unusual: |
3658 | if (tag == 0) { |
3659 | goto success; |
3660 | } |
3661 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3662 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3663 | break; |
3664 | } |
3665 | } |
3666 | } |
3667 | success: |
3668 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.ContentSummaryProto) |
3669 | return true; |
3670 | failure: |
3671 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.ContentSummaryProto) |
3672 | return false; |
3673 | #undef DO_ |
3674 | } |
3675 | |
3676 | void ContentSummaryProto::SerializeWithCachedSizes( |
3677 | ::google::protobuf::io::CodedOutputStream* output) const { |
3678 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.ContentSummaryProto) |
3679 | ::google::protobuf::uint32 cached_has_bits = 0; |
3680 | (void) cached_has_bits; |
3681 | |
3682 | cached_has_bits = _has_bits_[0]; |
3683 | // required uint64 length = 1; |
3684 | if (cached_has_bits & 0x00000001u) { |
3685 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->length(), output); |
3686 | } |
3687 | |
3688 | // required uint64 fileCount = 2; |
3689 | if (cached_has_bits & 0x00000002u) { |
3690 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->filecount(), output); |
3691 | } |
3692 | |
3693 | // required uint64 directoryCount = 3; |
3694 | if (cached_has_bits & 0x00000004u) { |
3695 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->directorycount(), output); |
3696 | } |
3697 | |
3698 | // required uint64 quota = 4; |
3699 | if (cached_has_bits & 0x00000008u) { |
3700 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->quota(), output); |
3701 | } |
3702 | |
3703 | // required uint64 spaceConsumed = 5; |
3704 | if (cached_has_bits & 0x00000010u) { |
3705 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->spaceconsumed(), output); |
3706 | } |
3707 | |
3708 | // required uint64 spaceQuota = 6; |
3709 | if (cached_has_bits & 0x00000020u) { |
3710 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->spacequota(), output); |
3711 | } |
3712 | |
3713 | if (_internal_metadata_.have_unknown_fields()) { |
3714 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3715 | _internal_metadata_.unknown_fields(), output); |
3716 | } |
3717 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.ContentSummaryProto) |
3718 | } |
3719 | |
3720 | ::google::protobuf::uint8* ContentSummaryProto::InternalSerializeWithCachedSizesToArray( |
3721 | bool deterministic, ::google::protobuf::uint8* target) const { |
3722 | (void)deterministic; // Unused |
3723 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.ContentSummaryProto) |
3724 | ::google::protobuf::uint32 cached_has_bits = 0; |
3725 | (void) cached_has_bits; |
3726 | |
3727 | cached_has_bits = _has_bits_[0]; |
3728 | // required uint64 length = 1; |
3729 | if (cached_has_bits & 0x00000001u) { |
3730 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->length(), target); |
3731 | } |
3732 | |
3733 | // required uint64 fileCount = 2; |
3734 | if (cached_has_bits & 0x00000002u) { |
3735 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->filecount(), target); |
3736 | } |
3737 | |
3738 | // required uint64 directoryCount = 3; |
3739 | if (cached_has_bits & 0x00000004u) { |
3740 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->directorycount(), target); |
3741 | } |
3742 | |
3743 | // required uint64 quota = 4; |
3744 | if (cached_has_bits & 0x00000008u) { |
3745 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->quota(), target); |
3746 | } |
3747 | |
3748 | // required uint64 spaceConsumed = 5; |
3749 | if (cached_has_bits & 0x00000010u) { |
3750 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->spaceconsumed(), target); |
3751 | } |
3752 | |
3753 | // required uint64 spaceQuota = 6; |
3754 | if (cached_has_bits & 0x00000020u) { |
3755 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->spacequota(), target); |
3756 | } |
3757 | |
3758 | if (_internal_metadata_.have_unknown_fields()) { |
3759 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3760 | _internal_metadata_.unknown_fields(), target); |
3761 | } |
3762 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.ContentSummaryProto) |
3763 | return target; |
3764 | } |
3765 | |
3766 | size_t ContentSummaryProto::RequiredFieldsByteSizeFallback() const { |
3767 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.ContentSummaryProto) |
3768 | size_t total_size = 0; |
3769 | |
3770 | if (has_length()) { |
3771 | // required uint64 length = 1; |
3772 | total_size += 1 + |
3773 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3774 | this->length()); |
3775 | } |
3776 | |
3777 | if (has_filecount()) { |
3778 | // required uint64 fileCount = 2; |
3779 | total_size += 1 + |
3780 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3781 | this->filecount()); |
3782 | } |
3783 | |
3784 | if (has_directorycount()) { |
3785 | // required uint64 directoryCount = 3; |
3786 | total_size += 1 + |
3787 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3788 | this->directorycount()); |
3789 | } |
3790 | |
3791 | if (has_quota()) { |
3792 | // required uint64 quota = 4; |
3793 | total_size += 1 + |
3794 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3795 | this->quota()); |
3796 | } |
3797 | |
3798 | if (has_spaceconsumed()) { |
3799 | // required uint64 spaceConsumed = 5; |
3800 | total_size += 1 + |
3801 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3802 | this->spaceconsumed()); |
3803 | } |
3804 | |
3805 | if (has_spacequota()) { |
3806 | // required uint64 spaceQuota = 6; |
3807 | total_size += 1 + |
3808 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3809 | this->spacequota()); |
3810 | } |
3811 | |
3812 | return total_size; |
3813 | } |
3814 | size_t ContentSummaryProto::ByteSizeLong() const { |
3815 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.ContentSummaryProto) |
3816 | size_t total_size = 0; |
3817 | |
3818 | if (_internal_metadata_.have_unknown_fields()) { |
3819 | total_size += |
3820 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3821 | _internal_metadata_.unknown_fields()); |
3822 | } |
3823 | if (((_has_bits_[0] & 0x0000003f) ^ 0x0000003f) == 0) { // All required fields are present. |
3824 | // required uint64 length = 1; |
3825 | total_size += 1 + |
3826 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3827 | this->length()); |
3828 | |
3829 | // required uint64 fileCount = 2; |
3830 | total_size += 1 + |
3831 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3832 | this->filecount()); |
3833 | |
3834 | // required uint64 directoryCount = 3; |
3835 | total_size += 1 + |
3836 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3837 | this->directorycount()); |
3838 | |
3839 | // required uint64 quota = 4; |
3840 | total_size += 1 + |
3841 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3842 | this->quota()); |
3843 | |
3844 | // required uint64 spaceConsumed = 5; |
3845 | total_size += 1 + |
3846 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3847 | this->spaceconsumed()); |
3848 | |
3849 | // required uint64 spaceQuota = 6; |
3850 | total_size += 1 + |
3851 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3852 | this->spacequota()); |
3853 | |
3854 | } else { |
3855 | total_size += RequiredFieldsByteSizeFallback(); |
3856 | } |
3857 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3858 | SetCachedSize(cached_size); |
3859 | return total_size; |
3860 | } |
3861 | |
3862 | void ContentSummaryProto::MergeFrom(const ::google::protobuf::Message& from) { |
3863 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.ContentSummaryProto) |
3864 | GOOGLE_DCHECK_NE(&from, this); |
3865 | const ContentSummaryProto* source = |
3866 | ::google::protobuf::internal::DynamicCastToGenerated<const ContentSummaryProto>( |
3867 | &from); |
3868 | if (source == NULL) { |
3869 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.ContentSummaryProto) |
3870 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3871 | } else { |
3872 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.ContentSummaryProto) |
3873 | MergeFrom(*source); |
3874 | } |
3875 | } |
3876 | |
3877 | void ContentSummaryProto::MergeFrom(const ContentSummaryProto& from) { |
3878 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.ContentSummaryProto) |
3879 | GOOGLE_DCHECK_NE(&from, this); |
3880 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3881 | ::google::protobuf::uint32 cached_has_bits = 0; |
3882 | (void) cached_has_bits; |
3883 | |
3884 | cached_has_bits = from._has_bits_[0]; |
3885 | if (cached_has_bits & 63u) { |
3886 | if (cached_has_bits & 0x00000001u) { |
3887 | length_ = from.length_; |
3888 | } |
3889 | if (cached_has_bits & 0x00000002u) { |
3890 | filecount_ = from.filecount_; |
3891 | } |
3892 | if (cached_has_bits & 0x00000004u) { |
3893 | directorycount_ = from.directorycount_; |
3894 | } |
3895 | if (cached_has_bits & 0x00000008u) { |
3896 | quota_ = from.quota_; |
3897 | } |
3898 | if (cached_has_bits & 0x00000010u) { |
3899 | spaceconsumed_ = from.spaceconsumed_; |
3900 | } |
3901 | if (cached_has_bits & 0x00000020u) { |
3902 | spacequota_ = from.spacequota_; |
3903 | } |
3904 | _has_bits_[0] |= cached_has_bits; |
3905 | } |
3906 | } |
3907 | |
3908 | void ContentSummaryProto::CopyFrom(const ::google::protobuf::Message& from) { |
3909 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.ContentSummaryProto) |
3910 | if (&from == this) return; |
3911 | Clear(); |
3912 | MergeFrom(from); |
3913 | } |
3914 | |
3915 | void ContentSummaryProto::CopyFrom(const ContentSummaryProto& from) { |
3916 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.ContentSummaryProto) |
3917 | if (&from == this) return; |
3918 | Clear(); |
3919 | MergeFrom(from); |
3920 | } |
3921 | |
3922 | bool ContentSummaryProto::IsInitialized() const { |
3923 | if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false; |
3924 | return true; |
3925 | } |
3926 | |
3927 | void ContentSummaryProto::Swap(ContentSummaryProto* other) { |
3928 | if (other == this) return; |
3929 | InternalSwap(other); |
3930 | } |
3931 | void ContentSummaryProto::InternalSwap(ContentSummaryProto* other) { |
3932 | using std::swap; |
3933 | swap(length_, other->length_); |
3934 | swap(filecount_, other->filecount_); |
3935 | swap(directorycount_, other->directorycount_); |
3936 | swap(quota_, other->quota_); |
3937 | swap(spaceconsumed_, other->spaceconsumed_); |
3938 | swap(spacequota_, other->spacequota_); |
3939 | swap(_has_bits_[0], other->_has_bits_[0]); |
3940 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3941 | } |
3942 | |
3943 | ::google::protobuf::Metadata ContentSummaryProto::GetMetadata() const { |
3944 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
3945 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
3946 | } |
3947 | |
3948 | |
3949 | // =================================================================== |
3950 | |
3951 | void CorruptFileBlocksProto::InitAsDefaultInstance() { |
3952 | } |
3953 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3954 | const int CorruptFileBlocksProto::kFilesFieldNumber; |
3955 | const int CorruptFileBlocksProto::kCookieFieldNumber; |
3956 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3957 | |
3958 | CorruptFileBlocksProto::CorruptFileBlocksProto() |
3959 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3960 | ::google::protobuf::internal::InitSCC( |
3961 | &protobuf_hdfs_2eproto::scc_info_CorruptFileBlocksProto.base); |
3962 | SharedCtor(); |
3963 | // @@protoc_insertion_point(constructor:Hdfs.Internal.CorruptFileBlocksProto) |
3964 | } |
3965 | CorruptFileBlocksProto::CorruptFileBlocksProto(const CorruptFileBlocksProto& from) |
3966 | : ::google::protobuf::Message(), |
3967 | _internal_metadata_(NULL), |
3968 | _has_bits_(from._has_bits_), |
3969 | files_(from.files_) { |
3970 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3971 | cookie_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3972 | if (from.has_cookie()) { |
3973 | cookie_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cookie_); |
3974 | } |
3975 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.CorruptFileBlocksProto) |
3976 | } |
3977 | |
3978 | void CorruptFileBlocksProto::SharedCtor() { |
3979 | cookie_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3980 | } |
3981 | |
3982 | CorruptFileBlocksProto::~CorruptFileBlocksProto() { |
3983 | // @@protoc_insertion_point(destructor:Hdfs.Internal.CorruptFileBlocksProto) |
3984 | SharedDtor(); |
3985 | } |
3986 | |
3987 | void CorruptFileBlocksProto::SharedDtor() { |
3988 | cookie_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3989 | } |
3990 | |
3991 | void CorruptFileBlocksProto::SetCachedSize(int size) const { |
3992 | _cached_size_.Set(size); |
3993 | } |
3994 | const ::google::protobuf::Descriptor* CorruptFileBlocksProto::descriptor() { |
3995 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
3996 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3997 | } |
3998 | |
3999 | const CorruptFileBlocksProto& CorruptFileBlocksProto::default_instance() { |
4000 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_CorruptFileBlocksProto.base); |
4001 | return *internal_default_instance(); |
4002 | } |
4003 | |
4004 | |
4005 | void CorruptFileBlocksProto::Clear() { |
4006 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.CorruptFileBlocksProto) |
4007 | ::google::protobuf::uint32 cached_has_bits = 0; |
4008 | // Prevent compiler warnings about cached_has_bits being unused |
4009 | (void) cached_has_bits; |
4010 | |
4011 | files_.Clear(); |
4012 | cached_has_bits = _has_bits_[0]; |
4013 | if (cached_has_bits & 0x00000001u) { |
4014 | cookie_.ClearNonDefaultToEmptyNoArena(); |
4015 | } |
4016 | _has_bits_.Clear(); |
4017 | _internal_metadata_.Clear(); |
4018 | } |
4019 | |
4020 | bool CorruptFileBlocksProto::MergePartialFromCodedStream( |
4021 | ::google::protobuf::io::CodedInputStream* input) { |
4022 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4023 | ::google::protobuf::uint32 tag; |
4024 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.CorruptFileBlocksProto) |
4025 | for (;;) { |
4026 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4027 | tag = p.first; |
4028 | if (!p.second) goto handle_unusual; |
4029 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4030 | // repeated string files = 1; |
4031 | case 1: { |
4032 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4033 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4034 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
4035 | input, this->add_files())); |
4036 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4037 | this->files(this->files_size() - 1).data(), |
4038 | static_cast<int>(this->files(this->files_size() - 1).length()), |
4039 | ::google::protobuf::internal::WireFormat::PARSE, |
4040 | "Hdfs.Internal.CorruptFileBlocksProto.files" ); |
4041 | } else { |
4042 | goto handle_unusual; |
4043 | } |
4044 | break; |
4045 | } |
4046 | |
4047 | // required string cookie = 2; |
4048 | case 2: { |
4049 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4050 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
4051 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
4052 | input, this->mutable_cookie())); |
4053 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4054 | this->cookie().data(), static_cast<int>(this->cookie().length()), |
4055 | ::google::protobuf::internal::WireFormat::PARSE, |
4056 | "Hdfs.Internal.CorruptFileBlocksProto.cookie" ); |
4057 | } else { |
4058 | goto handle_unusual; |
4059 | } |
4060 | break; |
4061 | } |
4062 | |
4063 | default: { |
4064 | handle_unusual: |
4065 | if (tag == 0) { |
4066 | goto success; |
4067 | } |
4068 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4069 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4070 | break; |
4071 | } |
4072 | } |
4073 | } |
4074 | success: |
4075 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.CorruptFileBlocksProto) |
4076 | return true; |
4077 | failure: |
4078 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.CorruptFileBlocksProto) |
4079 | return false; |
4080 | #undef DO_ |
4081 | } |
4082 | |
4083 | void CorruptFileBlocksProto::SerializeWithCachedSizes( |
4084 | ::google::protobuf::io::CodedOutputStream* output) const { |
4085 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.CorruptFileBlocksProto) |
4086 | ::google::protobuf::uint32 cached_has_bits = 0; |
4087 | (void) cached_has_bits; |
4088 | |
4089 | // repeated string files = 1; |
4090 | for (int i = 0, n = this->files_size(); i < n; i++) { |
4091 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4092 | this->files(i).data(), static_cast<int>(this->files(i).length()), |
4093 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
4094 | "Hdfs.Internal.CorruptFileBlocksProto.files" ); |
4095 | ::google::protobuf::internal::WireFormatLite::WriteString( |
4096 | 1, this->files(i), output); |
4097 | } |
4098 | |
4099 | cached_has_bits = _has_bits_[0]; |
4100 | // required string cookie = 2; |
4101 | if (cached_has_bits & 0x00000001u) { |
4102 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4103 | this->cookie().data(), static_cast<int>(this->cookie().length()), |
4104 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
4105 | "Hdfs.Internal.CorruptFileBlocksProto.cookie" ); |
4106 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
4107 | 2, this->cookie(), output); |
4108 | } |
4109 | |
4110 | if (_internal_metadata_.have_unknown_fields()) { |
4111 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4112 | _internal_metadata_.unknown_fields(), output); |
4113 | } |
4114 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.CorruptFileBlocksProto) |
4115 | } |
4116 | |
4117 | ::google::protobuf::uint8* CorruptFileBlocksProto::InternalSerializeWithCachedSizesToArray( |
4118 | bool deterministic, ::google::protobuf::uint8* target) const { |
4119 | (void)deterministic; // Unused |
4120 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.CorruptFileBlocksProto) |
4121 | ::google::protobuf::uint32 cached_has_bits = 0; |
4122 | (void) cached_has_bits; |
4123 | |
4124 | // repeated string files = 1; |
4125 | for (int i = 0, n = this->files_size(); i < n; i++) { |
4126 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4127 | this->files(i).data(), static_cast<int>(this->files(i).length()), |
4128 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
4129 | "Hdfs.Internal.CorruptFileBlocksProto.files" ); |
4130 | target = ::google::protobuf::internal::WireFormatLite:: |
4131 | WriteStringToArray(1, this->files(i), target); |
4132 | } |
4133 | |
4134 | cached_has_bits = _has_bits_[0]; |
4135 | // required string cookie = 2; |
4136 | if (cached_has_bits & 0x00000001u) { |
4137 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4138 | this->cookie().data(), static_cast<int>(this->cookie().length()), |
4139 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
4140 | "Hdfs.Internal.CorruptFileBlocksProto.cookie" ); |
4141 | target = |
4142 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
4143 | 2, this->cookie(), target); |
4144 | } |
4145 | |
4146 | if (_internal_metadata_.have_unknown_fields()) { |
4147 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4148 | _internal_metadata_.unknown_fields(), target); |
4149 | } |
4150 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.CorruptFileBlocksProto) |
4151 | return target; |
4152 | } |
4153 | |
4154 | size_t CorruptFileBlocksProto::ByteSizeLong() const { |
4155 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.CorruptFileBlocksProto) |
4156 | size_t total_size = 0; |
4157 | |
4158 | if (_internal_metadata_.have_unknown_fields()) { |
4159 | total_size += |
4160 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4161 | _internal_metadata_.unknown_fields()); |
4162 | } |
4163 | // required string cookie = 2; |
4164 | if (has_cookie()) { |
4165 | total_size += 1 + |
4166 | ::google::protobuf::internal::WireFormatLite::StringSize( |
4167 | this->cookie()); |
4168 | } |
4169 | // repeated string files = 1; |
4170 | total_size += 1 * |
4171 | ::google::protobuf::internal::FromIntSize(this->files_size()); |
4172 | for (int i = 0, n = this->files_size(); i < n; i++) { |
4173 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
4174 | this->files(i)); |
4175 | } |
4176 | |
4177 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4178 | SetCachedSize(cached_size); |
4179 | return total_size; |
4180 | } |
4181 | |
4182 | void CorruptFileBlocksProto::MergeFrom(const ::google::protobuf::Message& from) { |
4183 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.CorruptFileBlocksProto) |
4184 | GOOGLE_DCHECK_NE(&from, this); |
4185 | const CorruptFileBlocksProto* source = |
4186 | ::google::protobuf::internal::DynamicCastToGenerated<const CorruptFileBlocksProto>( |
4187 | &from); |
4188 | if (source == NULL) { |
4189 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.CorruptFileBlocksProto) |
4190 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4191 | } else { |
4192 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.CorruptFileBlocksProto) |
4193 | MergeFrom(*source); |
4194 | } |
4195 | } |
4196 | |
4197 | void CorruptFileBlocksProto::MergeFrom(const CorruptFileBlocksProto& from) { |
4198 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.CorruptFileBlocksProto) |
4199 | GOOGLE_DCHECK_NE(&from, this); |
4200 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4201 | ::google::protobuf::uint32 cached_has_bits = 0; |
4202 | (void) cached_has_bits; |
4203 | |
4204 | files_.MergeFrom(from.files_); |
4205 | if (from.has_cookie()) { |
4206 | set_has_cookie(); |
4207 | cookie_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cookie_); |
4208 | } |
4209 | } |
4210 | |
4211 | void CorruptFileBlocksProto::CopyFrom(const ::google::protobuf::Message& from) { |
4212 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.CorruptFileBlocksProto) |
4213 | if (&from == this) return; |
4214 | Clear(); |
4215 | MergeFrom(from); |
4216 | } |
4217 | |
4218 | void CorruptFileBlocksProto::CopyFrom(const CorruptFileBlocksProto& from) { |
4219 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.CorruptFileBlocksProto) |
4220 | if (&from == this) return; |
4221 | Clear(); |
4222 | MergeFrom(from); |
4223 | } |
4224 | |
4225 | bool CorruptFileBlocksProto::IsInitialized() const { |
4226 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
4227 | return true; |
4228 | } |
4229 | |
4230 | void CorruptFileBlocksProto::Swap(CorruptFileBlocksProto* other) { |
4231 | if (other == this) return; |
4232 | InternalSwap(other); |
4233 | } |
4234 | void CorruptFileBlocksProto::InternalSwap(CorruptFileBlocksProto* other) { |
4235 | using std::swap; |
4236 | files_.InternalSwap(CastToBase(&other->files_)); |
4237 | cookie_.Swap(&other->cookie_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
4238 | GetArenaNoVirtual()); |
4239 | swap(_has_bits_[0], other->_has_bits_[0]); |
4240 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4241 | } |
4242 | |
4243 | ::google::protobuf::Metadata CorruptFileBlocksProto::GetMetadata() const { |
4244 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
4245 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
4246 | } |
4247 | |
4248 | |
4249 | // =================================================================== |
4250 | |
4251 | void FsPermissionProto::InitAsDefaultInstance() { |
4252 | } |
4253 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4254 | const int FsPermissionProto::kPermFieldNumber; |
4255 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4256 | |
4257 | FsPermissionProto::FsPermissionProto() |
4258 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4259 | ::google::protobuf::internal::InitSCC( |
4260 | &protobuf_hdfs_2eproto::scc_info_FsPermissionProto.base); |
4261 | SharedCtor(); |
4262 | // @@protoc_insertion_point(constructor:Hdfs.Internal.FsPermissionProto) |
4263 | } |
4264 | FsPermissionProto::FsPermissionProto(const FsPermissionProto& from) |
4265 | : ::google::protobuf::Message(), |
4266 | _internal_metadata_(NULL), |
4267 | _has_bits_(from._has_bits_) { |
4268 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4269 | perm_ = from.perm_; |
4270 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.FsPermissionProto) |
4271 | } |
4272 | |
4273 | void FsPermissionProto::SharedCtor() { |
4274 | perm_ = 0u; |
4275 | } |
4276 | |
4277 | FsPermissionProto::~FsPermissionProto() { |
4278 | // @@protoc_insertion_point(destructor:Hdfs.Internal.FsPermissionProto) |
4279 | SharedDtor(); |
4280 | } |
4281 | |
4282 | void FsPermissionProto::SharedDtor() { |
4283 | } |
4284 | |
4285 | void FsPermissionProto::SetCachedSize(int size) const { |
4286 | _cached_size_.Set(size); |
4287 | } |
4288 | const ::google::protobuf::Descriptor* FsPermissionProto::descriptor() { |
4289 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
4290 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4291 | } |
4292 | |
4293 | const FsPermissionProto& FsPermissionProto::default_instance() { |
4294 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_FsPermissionProto.base); |
4295 | return *internal_default_instance(); |
4296 | } |
4297 | |
4298 | |
4299 | void FsPermissionProto::Clear() { |
4300 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.FsPermissionProto) |
4301 | ::google::protobuf::uint32 cached_has_bits = 0; |
4302 | // Prevent compiler warnings about cached_has_bits being unused |
4303 | (void) cached_has_bits; |
4304 | |
4305 | perm_ = 0u; |
4306 | _has_bits_.Clear(); |
4307 | _internal_metadata_.Clear(); |
4308 | } |
4309 | |
4310 | bool FsPermissionProto::MergePartialFromCodedStream( |
4311 | ::google::protobuf::io::CodedInputStream* input) { |
4312 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4313 | ::google::protobuf::uint32 tag; |
4314 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.FsPermissionProto) |
4315 | for (;;) { |
4316 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4317 | tag = p.first; |
4318 | if (!p.second) goto handle_unusual; |
4319 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4320 | // required uint32 perm = 1; |
4321 | case 1: { |
4322 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4323 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
4324 | set_has_perm(); |
4325 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4326 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
4327 | input, &perm_))); |
4328 | } else { |
4329 | goto handle_unusual; |
4330 | } |
4331 | break; |
4332 | } |
4333 | |
4334 | default: { |
4335 | handle_unusual: |
4336 | if (tag == 0) { |
4337 | goto success; |
4338 | } |
4339 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4340 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4341 | break; |
4342 | } |
4343 | } |
4344 | } |
4345 | success: |
4346 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.FsPermissionProto) |
4347 | return true; |
4348 | failure: |
4349 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.FsPermissionProto) |
4350 | return false; |
4351 | #undef DO_ |
4352 | } |
4353 | |
4354 | void FsPermissionProto::SerializeWithCachedSizes( |
4355 | ::google::protobuf::io::CodedOutputStream* output) const { |
4356 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.FsPermissionProto) |
4357 | ::google::protobuf::uint32 cached_has_bits = 0; |
4358 | (void) cached_has_bits; |
4359 | |
4360 | cached_has_bits = _has_bits_[0]; |
4361 | // required uint32 perm = 1; |
4362 | if (cached_has_bits & 0x00000001u) { |
4363 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->perm(), output); |
4364 | } |
4365 | |
4366 | if (_internal_metadata_.have_unknown_fields()) { |
4367 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4368 | _internal_metadata_.unknown_fields(), output); |
4369 | } |
4370 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.FsPermissionProto) |
4371 | } |
4372 | |
4373 | ::google::protobuf::uint8* FsPermissionProto::InternalSerializeWithCachedSizesToArray( |
4374 | bool deterministic, ::google::protobuf::uint8* target) const { |
4375 | (void)deterministic; // Unused |
4376 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.FsPermissionProto) |
4377 | ::google::protobuf::uint32 cached_has_bits = 0; |
4378 | (void) cached_has_bits; |
4379 | |
4380 | cached_has_bits = _has_bits_[0]; |
4381 | // required uint32 perm = 1; |
4382 | if (cached_has_bits & 0x00000001u) { |
4383 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->perm(), target); |
4384 | } |
4385 | |
4386 | if (_internal_metadata_.have_unknown_fields()) { |
4387 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4388 | _internal_metadata_.unknown_fields(), target); |
4389 | } |
4390 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.FsPermissionProto) |
4391 | return target; |
4392 | } |
4393 | |
4394 | size_t FsPermissionProto::ByteSizeLong() const { |
4395 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.FsPermissionProto) |
4396 | size_t total_size = 0; |
4397 | |
4398 | if (_internal_metadata_.have_unknown_fields()) { |
4399 | total_size += |
4400 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4401 | _internal_metadata_.unknown_fields()); |
4402 | } |
4403 | // required uint32 perm = 1; |
4404 | if (has_perm()) { |
4405 | total_size += 1 + |
4406 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
4407 | this->perm()); |
4408 | } |
4409 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4410 | SetCachedSize(cached_size); |
4411 | return total_size; |
4412 | } |
4413 | |
4414 | void FsPermissionProto::MergeFrom(const ::google::protobuf::Message& from) { |
4415 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.FsPermissionProto) |
4416 | GOOGLE_DCHECK_NE(&from, this); |
4417 | const FsPermissionProto* source = |
4418 | ::google::protobuf::internal::DynamicCastToGenerated<const FsPermissionProto>( |
4419 | &from); |
4420 | if (source == NULL) { |
4421 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.FsPermissionProto) |
4422 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4423 | } else { |
4424 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.FsPermissionProto) |
4425 | MergeFrom(*source); |
4426 | } |
4427 | } |
4428 | |
4429 | void FsPermissionProto::MergeFrom(const FsPermissionProto& from) { |
4430 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.FsPermissionProto) |
4431 | GOOGLE_DCHECK_NE(&from, this); |
4432 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4433 | ::google::protobuf::uint32 cached_has_bits = 0; |
4434 | (void) cached_has_bits; |
4435 | |
4436 | if (from.has_perm()) { |
4437 | set_perm(from.perm()); |
4438 | } |
4439 | } |
4440 | |
4441 | void FsPermissionProto::CopyFrom(const ::google::protobuf::Message& from) { |
4442 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.FsPermissionProto) |
4443 | if (&from == this) return; |
4444 | Clear(); |
4445 | MergeFrom(from); |
4446 | } |
4447 | |
4448 | void FsPermissionProto::CopyFrom(const FsPermissionProto& from) { |
4449 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.FsPermissionProto) |
4450 | if (&from == this) return; |
4451 | Clear(); |
4452 | MergeFrom(from); |
4453 | } |
4454 | |
4455 | bool FsPermissionProto::IsInitialized() const { |
4456 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
4457 | return true; |
4458 | } |
4459 | |
4460 | void FsPermissionProto::Swap(FsPermissionProto* other) { |
4461 | if (other == this) return; |
4462 | InternalSwap(other); |
4463 | } |
4464 | void FsPermissionProto::InternalSwap(FsPermissionProto* other) { |
4465 | using std::swap; |
4466 | swap(perm_, other->perm_); |
4467 | swap(_has_bits_[0], other->_has_bits_[0]); |
4468 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4469 | } |
4470 | |
4471 | ::google::protobuf::Metadata FsPermissionProto::GetMetadata() const { |
4472 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
4473 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
4474 | } |
4475 | |
4476 | |
4477 | // =================================================================== |
4478 | |
4479 | void StorageUuidsProto::InitAsDefaultInstance() { |
4480 | } |
4481 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4482 | const int StorageUuidsProto::kStorageUuidsFieldNumber; |
4483 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4484 | |
4485 | StorageUuidsProto::StorageUuidsProto() |
4486 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4487 | ::google::protobuf::internal::InitSCC( |
4488 | &protobuf_hdfs_2eproto::scc_info_StorageUuidsProto.base); |
4489 | SharedCtor(); |
4490 | // @@protoc_insertion_point(constructor:Hdfs.Internal.StorageUuidsProto) |
4491 | } |
4492 | StorageUuidsProto::StorageUuidsProto(const StorageUuidsProto& from) |
4493 | : ::google::protobuf::Message(), |
4494 | _internal_metadata_(NULL), |
4495 | _has_bits_(from._has_bits_), |
4496 | storageuuids_(from.storageuuids_) { |
4497 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4498 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.StorageUuidsProto) |
4499 | } |
4500 | |
4501 | void StorageUuidsProto::SharedCtor() { |
4502 | } |
4503 | |
4504 | StorageUuidsProto::~StorageUuidsProto() { |
4505 | // @@protoc_insertion_point(destructor:Hdfs.Internal.StorageUuidsProto) |
4506 | SharedDtor(); |
4507 | } |
4508 | |
4509 | void StorageUuidsProto::SharedDtor() { |
4510 | } |
4511 | |
4512 | void StorageUuidsProto::SetCachedSize(int size) const { |
4513 | _cached_size_.Set(size); |
4514 | } |
4515 | const ::google::protobuf::Descriptor* StorageUuidsProto::descriptor() { |
4516 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
4517 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4518 | } |
4519 | |
4520 | const StorageUuidsProto& StorageUuidsProto::default_instance() { |
4521 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_StorageUuidsProto.base); |
4522 | return *internal_default_instance(); |
4523 | } |
4524 | |
4525 | |
4526 | void StorageUuidsProto::Clear() { |
4527 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.StorageUuidsProto) |
4528 | ::google::protobuf::uint32 cached_has_bits = 0; |
4529 | // Prevent compiler warnings about cached_has_bits being unused |
4530 | (void) cached_has_bits; |
4531 | |
4532 | storageuuids_.Clear(); |
4533 | _has_bits_.Clear(); |
4534 | _internal_metadata_.Clear(); |
4535 | } |
4536 | |
4537 | bool StorageUuidsProto::MergePartialFromCodedStream( |
4538 | ::google::protobuf::io::CodedInputStream* input) { |
4539 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4540 | ::google::protobuf::uint32 tag; |
4541 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.StorageUuidsProto) |
4542 | for (;;) { |
4543 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4544 | tag = p.first; |
4545 | if (!p.second) goto handle_unusual; |
4546 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4547 | // repeated string storageUuids = 1; |
4548 | case 1: { |
4549 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4550 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4551 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
4552 | input, this->add_storageuuids())); |
4553 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4554 | this->storageuuids(this->storageuuids_size() - 1).data(), |
4555 | static_cast<int>(this->storageuuids(this->storageuuids_size() - 1).length()), |
4556 | ::google::protobuf::internal::WireFormat::PARSE, |
4557 | "Hdfs.Internal.StorageUuidsProto.storageUuids" ); |
4558 | } else { |
4559 | goto handle_unusual; |
4560 | } |
4561 | break; |
4562 | } |
4563 | |
4564 | default: { |
4565 | handle_unusual: |
4566 | if (tag == 0) { |
4567 | goto success; |
4568 | } |
4569 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4570 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4571 | break; |
4572 | } |
4573 | } |
4574 | } |
4575 | success: |
4576 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.StorageUuidsProto) |
4577 | return true; |
4578 | failure: |
4579 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.StorageUuidsProto) |
4580 | return false; |
4581 | #undef DO_ |
4582 | } |
4583 | |
4584 | void StorageUuidsProto::SerializeWithCachedSizes( |
4585 | ::google::protobuf::io::CodedOutputStream* output) const { |
4586 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.StorageUuidsProto) |
4587 | ::google::protobuf::uint32 cached_has_bits = 0; |
4588 | (void) cached_has_bits; |
4589 | |
4590 | // repeated string storageUuids = 1; |
4591 | for (int i = 0, n = this->storageuuids_size(); i < n; i++) { |
4592 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4593 | this->storageuuids(i).data(), static_cast<int>(this->storageuuids(i).length()), |
4594 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
4595 | "Hdfs.Internal.StorageUuidsProto.storageUuids" ); |
4596 | ::google::protobuf::internal::WireFormatLite::WriteString( |
4597 | 1, this->storageuuids(i), output); |
4598 | } |
4599 | |
4600 | if (_internal_metadata_.have_unknown_fields()) { |
4601 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4602 | _internal_metadata_.unknown_fields(), output); |
4603 | } |
4604 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.StorageUuidsProto) |
4605 | } |
4606 | |
4607 | ::google::protobuf::uint8* StorageUuidsProto::InternalSerializeWithCachedSizesToArray( |
4608 | bool deterministic, ::google::protobuf::uint8* target) const { |
4609 | (void)deterministic; // Unused |
4610 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.StorageUuidsProto) |
4611 | ::google::protobuf::uint32 cached_has_bits = 0; |
4612 | (void) cached_has_bits; |
4613 | |
4614 | // repeated string storageUuids = 1; |
4615 | for (int i = 0, n = this->storageuuids_size(); i < n; i++) { |
4616 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4617 | this->storageuuids(i).data(), static_cast<int>(this->storageuuids(i).length()), |
4618 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
4619 | "Hdfs.Internal.StorageUuidsProto.storageUuids" ); |
4620 | target = ::google::protobuf::internal::WireFormatLite:: |
4621 | WriteStringToArray(1, this->storageuuids(i), target); |
4622 | } |
4623 | |
4624 | if (_internal_metadata_.have_unknown_fields()) { |
4625 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4626 | _internal_metadata_.unknown_fields(), target); |
4627 | } |
4628 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.StorageUuidsProto) |
4629 | return target; |
4630 | } |
4631 | |
4632 | size_t StorageUuidsProto::ByteSizeLong() const { |
4633 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.StorageUuidsProto) |
4634 | size_t total_size = 0; |
4635 | |
4636 | if (_internal_metadata_.have_unknown_fields()) { |
4637 | total_size += |
4638 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4639 | _internal_metadata_.unknown_fields()); |
4640 | } |
4641 | // repeated string storageUuids = 1; |
4642 | total_size += 1 * |
4643 | ::google::protobuf::internal::FromIntSize(this->storageuuids_size()); |
4644 | for (int i = 0, n = this->storageuuids_size(); i < n; i++) { |
4645 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
4646 | this->storageuuids(i)); |
4647 | } |
4648 | |
4649 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4650 | SetCachedSize(cached_size); |
4651 | return total_size; |
4652 | } |
4653 | |
4654 | void StorageUuidsProto::MergeFrom(const ::google::protobuf::Message& from) { |
4655 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.StorageUuidsProto) |
4656 | GOOGLE_DCHECK_NE(&from, this); |
4657 | const StorageUuidsProto* source = |
4658 | ::google::protobuf::internal::DynamicCastToGenerated<const StorageUuidsProto>( |
4659 | &from); |
4660 | if (source == NULL) { |
4661 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.StorageUuidsProto) |
4662 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4663 | } else { |
4664 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.StorageUuidsProto) |
4665 | MergeFrom(*source); |
4666 | } |
4667 | } |
4668 | |
4669 | void StorageUuidsProto::MergeFrom(const StorageUuidsProto& from) { |
4670 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.StorageUuidsProto) |
4671 | GOOGLE_DCHECK_NE(&from, this); |
4672 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4673 | ::google::protobuf::uint32 cached_has_bits = 0; |
4674 | (void) cached_has_bits; |
4675 | |
4676 | storageuuids_.MergeFrom(from.storageuuids_); |
4677 | } |
4678 | |
4679 | void StorageUuidsProto::CopyFrom(const ::google::protobuf::Message& from) { |
4680 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.StorageUuidsProto) |
4681 | if (&from == this) return; |
4682 | Clear(); |
4683 | MergeFrom(from); |
4684 | } |
4685 | |
4686 | void StorageUuidsProto::CopyFrom(const StorageUuidsProto& from) { |
4687 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.StorageUuidsProto) |
4688 | if (&from == this) return; |
4689 | Clear(); |
4690 | MergeFrom(from); |
4691 | } |
4692 | |
4693 | bool StorageUuidsProto::IsInitialized() const { |
4694 | return true; |
4695 | } |
4696 | |
4697 | void StorageUuidsProto::Swap(StorageUuidsProto* other) { |
4698 | if (other == this) return; |
4699 | InternalSwap(other); |
4700 | } |
4701 | void StorageUuidsProto::InternalSwap(StorageUuidsProto* other) { |
4702 | using std::swap; |
4703 | storageuuids_.InternalSwap(CastToBase(&other->storageuuids_)); |
4704 | swap(_has_bits_[0], other->_has_bits_[0]); |
4705 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4706 | } |
4707 | |
4708 | ::google::protobuf::Metadata StorageUuidsProto::GetMetadata() const { |
4709 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
4710 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
4711 | } |
4712 | |
4713 | |
4714 | // =================================================================== |
4715 | |
4716 | void LocatedBlockProto::InitAsDefaultInstance() { |
4717 | ::Hdfs::Internal::_LocatedBlockProto_default_instance_._instance.get_mutable()->b_ = const_cast< ::Hdfs::Internal::ExtendedBlockProto*>( |
4718 | ::Hdfs::Internal::ExtendedBlockProto::internal_default_instance()); |
4719 | ::Hdfs::Internal::_LocatedBlockProto_default_instance_._instance.get_mutable()->blocktoken_ = const_cast< ::Hdfs::Internal::TokenProto*>( |
4720 | ::Hdfs::Internal::TokenProto::internal_default_instance()); |
4721 | } |
4722 | void LocatedBlockProto::clear_blocktoken() { |
4723 | if (blocktoken_ != NULL) blocktoken_->Clear(); |
4724 | clear_has_blocktoken(); |
4725 | } |
4726 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4727 | const int LocatedBlockProto::kBFieldNumber; |
4728 | const int LocatedBlockProto::kOffsetFieldNumber; |
4729 | const int LocatedBlockProto::kLocsFieldNumber; |
4730 | const int LocatedBlockProto::kCorruptFieldNumber; |
4731 | const int LocatedBlockProto::kBlockTokenFieldNumber; |
4732 | const int LocatedBlockProto::kIsCachedFieldNumber; |
4733 | const int LocatedBlockProto::kStorageTypesFieldNumber; |
4734 | const int LocatedBlockProto::kStorageIDsFieldNumber; |
4735 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4736 | |
4737 | LocatedBlockProto::LocatedBlockProto() |
4738 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4739 | ::google::protobuf::internal::InitSCC( |
4740 | &protobuf_hdfs_2eproto::scc_info_LocatedBlockProto.base); |
4741 | SharedCtor(); |
4742 | // @@protoc_insertion_point(constructor:Hdfs.Internal.LocatedBlockProto) |
4743 | } |
4744 | LocatedBlockProto::LocatedBlockProto(const LocatedBlockProto& from) |
4745 | : ::google::protobuf::Message(), |
4746 | _internal_metadata_(NULL), |
4747 | _has_bits_(from._has_bits_), |
4748 | locs_(from.locs_), |
4749 | iscached_(from.iscached_), |
4750 | storagetypes_(from.storagetypes_), |
4751 | storageids_(from.storageids_) { |
4752 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4753 | if (from.has_b()) { |
4754 | b_ = new ::Hdfs::Internal::ExtendedBlockProto(*from.b_); |
4755 | } else { |
4756 | b_ = NULL; |
4757 | } |
4758 | if (from.has_blocktoken()) { |
4759 | blocktoken_ = new ::Hdfs::Internal::TokenProto(*from.blocktoken_); |
4760 | } else { |
4761 | blocktoken_ = NULL; |
4762 | } |
4763 | ::memcpy(&offset_, &from.offset_, |
4764 | static_cast<size_t>(reinterpret_cast<char*>(&corrupt_) - |
4765 | reinterpret_cast<char*>(&offset_)) + sizeof(corrupt_)); |
4766 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.LocatedBlockProto) |
4767 | } |
4768 | |
4769 | void LocatedBlockProto::SharedCtor() { |
4770 | ::memset(&b_, 0, static_cast<size_t>( |
4771 | reinterpret_cast<char*>(&corrupt_) - |
4772 | reinterpret_cast<char*>(&b_)) + sizeof(corrupt_)); |
4773 | } |
4774 | |
4775 | LocatedBlockProto::~LocatedBlockProto() { |
4776 | // @@protoc_insertion_point(destructor:Hdfs.Internal.LocatedBlockProto) |
4777 | SharedDtor(); |
4778 | } |
4779 | |
4780 | void LocatedBlockProto::SharedDtor() { |
4781 | if (this != internal_default_instance()) delete b_; |
4782 | if (this != internal_default_instance()) delete blocktoken_; |
4783 | } |
4784 | |
4785 | void LocatedBlockProto::SetCachedSize(int size) const { |
4786 | _cached_size_.Set(size); |
4787 | } |
4788 | const ::google::protobuf::Descriptor* LocatedBlockProto::descriptor() { |
4789 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
4790 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4791 | } |
4792 | |
4793 | const LocatedBlockProto& LocatedBlockProto::default_instance() { |
4794 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_LocatedBlockProto.base); |
4795 | return *internal_default_instance(); |
4796 | } |
4797 | |
4798 | |
4799 | void LocatedBlockProto::Clear() { |
4800 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.LocatedBlockProto) |
4801 | ::google::protobuf::uint32 cached_has_bits = 0; |
4802 | // Prevent compiler warnings about cached_has_bits being unused |
4803 | (void) cached_has_bits; |
4804 | |
4805 | locs_.Clear(); |
4806 | iscached_.Clear(); |
4807 | storagetypes_.Clear(); |
4808 | storageids_.Clear(); |
4809 | cached_has_bits = _has_bits_[0]; |
4810 | if (cached_has_bits & 3u) { |
4811 | if (cached_has_bits & 0x00000001u) { |
4812 | GOOGLE_DCHECK(b_ != NULL); |
4813 | b_->Clear(); |
4814 | } |
4815 | if (cached_has_bits & 0x00000002u) { |
4816 | GOOGLE_DCHECK(blocktoken_ != NULL); |
4817 | blocktoken_->Clear(); |
4818 | } |
4819 | } |
4820 | if (cached_has_bits & 12u) { |
4821 | ::memset(&offset_, 0, static_cast<size_t>( |
4822 | reinterpret_cast<char*>(&corrupt_) - |
4823 | reinterpret_cast<char*>(&offset_)) + sizeof(corrupt_)); |
4824 | } |
4825 | _has_bits_.Clear(); |
4826 | _internal_metadata_.Clear(); |
4827 | } |
4828 | |
4829 | bool LocatedBlockProto::MergePartialFromCodedStream( |
4830 | ::google::protobuf::io::CodedInputStream* input) { |
4831 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4832 | ::google::protobuf::uint32 tag; |
4833 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.LocatedBlockProto) |
4834 | for (;;) { |
4835 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4836 | tag = p.first; |
4837 | if (!p.second) goto handle_unusual; |
4838 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4839 | // required .Hdfs.Internal.ExtendedBlockProto b = 1; |
4840 | case 1: { |
4841 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4842 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4843 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4844 | input, mutable_b())); |
4845 | } else { |
4846 | goto handle_unusual; |
4847 | } |
4848 | break; |
4849 | } |
4850 | |
4851 | // required uint64 offset = 2; |
4852 | case 2: { |
4853 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4854 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
4855 | set_has_offset(); |
4856 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4857 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
4858 | input, &offset_))); |
4859 | } else { |
4860 | goto handle_unusual; |
4861 | } |
4862 | break; |
4863 | } |
4864 | |
4865 | // repeated .Hdfs.Internal.DatanodeInfoProto locs = 3; |
4866 | case 3: { |
4867 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4868 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
4869 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4870 | input, add_locs())); |
4871 | } else { |
4872 | goto handle_unusual; |
4873 | } |
4874 | break; |
4875 | } |
4876 | |
4877 | // required bool corrupt = 4; |
4878 | case 4: { |
4879 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4880 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
4881 | set_has_corrupt(); |
4882 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4883 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
4884 | input, &corrupt_))); |
4885 | } else { |
4886 | goto handle_unusual; |
4887 | } |
4888 | break; |
4889 | } |
4890 | |
4891 | // required .Hdfs.Internal.TokenProto blockToken = 5; |
4892 | case 5: { |
4893 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4894 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
4895 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4896 | input, mutable_blocktoken())); |
4897 | } else { |
4898 | goto handle_unusual; |
4899 | } |
4900 | break; |
4901 | } |
4902 | |
4903 | // repeated bool isCached = 6 [packed = true]; |
4904 | case 6: { |
4905 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4906 | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
4907 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
4908 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
4909 | input, this->mutable_iscached()))); |
4910 | } else if ( |
4911 | static_cast< ::google::protobuf::uint8>(tag) == |
4912 | static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { |
4913 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
4914 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
4915 | 1, 50u, input, this->mutable_iscached()))); |
4916 | } else { |
4917 | goto handle_unusual; |
4918 | } |
4919 | break; |
4920 | } |
4921 | |
4922 | // repeated .Hdfs.Internal.StorageTypeProto storageTypes = 7; |
4923 | case 7: { |
4924 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4925 | static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { |
4926 | int value; |
4927 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4928 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
4929 | input, &value))); |
4930 | if (::Hdfs::Internal::StorageTypeProto_IsValid(value)) { |
4931 | add_storagetypes(static_cast< ::Hdfs::Internal::StorageTypeProto >(value)); |
4932 | } else { |
4933 | mutable_unknown_fields()->AddVarint( |
4934 | 7, static_cast< ::google::protobuf::uint64>(value)); |
4935 | } |
4936 | } else if ( |
4937 | static_cast< ::google::protobuf::uint8>(tag) == |
4938 | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
4939 | DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns( |
4940 | input, |
4941 | 7, |
4942 | ::Hdfs::Internal::StorageTypeProto_IsValid, |
4943 | mutable_unknown_fields(), |
4944 | this->mutable_storagetypes()))); |
4945 | } else { |
4946 | goto handle_unusual; |
4947 | } |
4948 | break; |
4949 | } |
4950 | |
4951 | // repeated string storageIDs = 8; |
4952 | case 8: { |
4953 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4954 | static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { |
4955 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
4956 | input, this->add_storageids())); |
4957 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4958 | this->storageids(this->storageids_size() - 1).data(), |
4959 | static_cast<int>(this->storageids(this->storageids_size() - 1).length()), |
4960 | ::google::protobuf::internal::WireFormat::PARSE, |
4961 | "Hdfs.Internal.LocatedBlockProto.storageIDs" ); |
4962 | } else { |
4963 | goto handle_unusual; |
4964 | } |
4965 | break; |
4966 | } |
4967 | |
4968 | default: { |
4969 | handle_unusual: |
4970 | if (tag == 0) { |
4971 | goto success; |
4972 | } |
4973 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4974 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4975 | break; |
4976 | } |
4977 | } |
4978 | } |
4979 | success: |
4980 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.LocatedBlockProto) |
4981 | return true; |
4982 | failure: |
4983 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.LocatedBlockProto) |
4984 | return false; |
4985 | #undef DO_ |
4986 | } |
4987 | |
4988 | void LocatedBlockProto::SerializeWithCachedSizes( |
4989 | ::google::protobuf::io::CodedOutputStream* output) const { |
4990 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.LocatedBlockProto) |
4991 | ::google::protobuf::uint32 cached_has_bits = 0; |
4992 | (void) cached_has_bits; |
4993 | |
4994 | cached_has_bits = _has_bits_[0]; |
4995 | // required .Hdfs.Internal.ExtendedBlockProto b = 1; |
4996 | if (cached_has_bits & 0x00000001u) { |
4997 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4998 | 1, this->_internal_b(), output); |
4999 | } |
5000 | |
5001 | // required uint64 offset = 2; |
5002 | if (cached_has_bits & 0x00000004u) { |
5003 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->offset(), output); |
5004 | } |
5005 | |
5006 | // repeated .Hdfs.Internal.DatanodeInfoProto locs = 3; |
5007 | for (unsigned int i = 0, |
5008 | n = static_cast<unsigned int>(this->locs_size()); i < n; i++) { |
5009 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5010 | 3, |
5011 | this->locs(static_cast<int>(i)), |
5012 | output); |
5013 | } |
5014 | |
5015 | // required bool corrupt = 4; |
5016 | if (cached_has_bits & 0x00000008u) { |
5017 | ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->corrupt(), output); |
5018 | } |
5019 | |
5020 | // required .Hdfs.Internal.TokenProto blockToken = 5; |
5021 | if (cached_has_bits & 0x00000002u) { |
5022 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5023 | 5, this->_internal_blocktoken(), output); |
5024 | } |
5025 | |
5026 | // repeated bool isCached = 6 [packed = true]; |
5027 | if (this->iscached_size() > 0) { |
5028 | ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
5029 | output->WriteVarint32(static_cast< ::google::protobuf::uint32>( |
5030 | _iscached_cached_byte_size_)); |
5031 | ::google::protobuf::internal::WireFormatLite::WriteBoolArray( |
5032 | this->iscached().data(), this->iscached_size(), output); |
5033 | } |
5034 | |
5035 | // repeated .Hdfs.Internal.StorageTypeProto storageTypes = 7; |
5036 | for (int i = 0, n = this->storagetypes_size(); i < n; i++) { |
5037 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
5038 | 7, this->storagetypes(i), output); |
5039 | } |
5040 | |
5041 | // repeated string storageIDs = 8; |
5042 | for (int i = 0, n = this->storageids_size(); i < n; i++) { |
5043 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5044 | this->storageids(i).data(), static_cast<int>(this->storageids(i).length()), |
5045 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
5046 | "Hdfs.Internal.LocatedBlockProto.storageIDs" ); |
5047 | ::google::protobuf::internal::WireFormatLite::WriteString( |
5048 | 8, this->storageids(i), output); |
5049 | } |
5050 | |
5051 | if (_internal_metadata_.have_unknown_fields()) { |
5052 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5053 | _internal_metadata_.unknown_fields(), output); |
5054 | } |
5055 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.LocatedBlockProto) |
5056 | } |
5057 | |
5058 | ::google::protobuf::uint8* LocatedBlockProto::InternalSerializeWithCachedSizesToArray( |
5059 | bool deterministic, ::google::protobuf::uint8* target) const { |
5060 | (void)deterministic; // Unused |
5061 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.LocatedBlockProto) |
5062 | ::google::protobuf::uint32 cached_has_bits = 0; |
5063 | (void) cached_has_bits; |
5064 | |
5065 | cached_has_bits = _has_bits_[0]; |
5066 | // required .Hdfs.Internal.ExtendedBlockProto b = 1; |
5067 | if (cached_has_bits & 0x00000001u) { |
5068 | target = ::google::protobuf::internal::WireFormatLite:: |
5069 | InternalWriteMessageToArray( |
5070 | 1, this->_internal_b(), deterministic, target); |
5071 | } |
5072 | |
5073 | // required uint64 offset = 2; |
5074 | if (cached_has_bits & 0x00000004u) { |
5075 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->offset(), target); |
5076 | } |
5077 | |
5078 | // repeated .Hdfs.Internal.DatanodeInfoProto locs = 3; |
5079 | for (unsigned int i = 0, |
5080 | n = static_cast<unsigned int>(this->locs_size()); i < n; i++) { |
5081 | target = ::google::protobuf::internal::WireFormatLite:: |
5082 | InternalWriteMessageToArray( |
5083 | 3, this->locs(static_cast<int>(i)), deterministic, target); |
5084 | } |
5085 | |
5086 | // required bool corrupt = 4; |
5087 | if (cached_has_bits & 0x00000008u) { |
5088 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->corrupt(), target); |
5089 | } |
5090 | |
5091 | // required .Hdfs.Internal.TokenProto blockToken = 5; |
5092 | if (cached_has_bits & 0x00000002u) { |
5093 | target = ::google::protobuf::internal::WireFormatLite:: |
5094 | InternalWriteMessageToArray( |
5095 | 5, this->_internal_blocktoken(), deterministic, target); |
5096 | } |
5097 | |
5098 | // repeated bool isCached = 6 [packed = true]; |
5099 | if (this->iscached_size() > 0) { |
5100 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
5101 | 6, |
5102 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
5103 | target); |
5104 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
5105 | static_cast< ::google::protobuf::int32>( |
5106 | _iscached_cached_byte_size_), target); |
5107 | target = ::google::protobuf::internal::WireFormatLite:: |
5108 | WriteBoolNoTagToArray(this->iscached_, target); |
5109 | } |
5110 | |
5111 | // repeated .Hdfs.Internal.StorageTypeProto storageTypes = 7; |
5112 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
5113 | 7, this->storagetypes_, target); |
5114 | |
5115 | // repeated string storageIDs = 8; |
5116 | for (int i = 0, n = this->storageids_size(); i < n; i++) { |
5117 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5118 | this->storageids(i).data(), static_cast<int>(this->storageids(i).length()), |
5119 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
5120 | "Hdfs.Internal.LocatedBlockProto.storageIDs" ); |
5121 | target = ::google::protobuf::internal::WireFormatLite:: |
5122 | WriteStringToArray(8, this->storageids(i), target); |
5123 | } |
5124 | |
5125 | if (_internal_metadata_.have_unknown_fields()) { |
5126 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5127 | _internal_metadata_.unknown_fields(), target); |
5128 | } |
5129 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.LocatedBlockProto) |
5130 | return target; |
5131 | } |
5132 | |
5133 | size_t LocatedBlockProto::RequiredFieldsByteSizeFallback() const { |
5134 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.LocatedBlockProto) |
5135 | size_t total_size = 0; |
5136 | |
5137 | if (has_b()) { |
5138 | // required .Hdfs.Internal.ExtendedBlockProto b = 1; |
5139 | total_size += 1 + |
5140 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5141 | *b_); |
5142 | } |
5143 | |
5144 | if (has_blocktoken()) { |
5145 | // required .Hdfs.Internal.TokenProto blockToken = 5; |
5146 | total_size += 1 + |
5147 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5148 | *blocktoken_); |
5149 | } |
5150 | |
5151 | if (has_offset()) { |
5152 | // required uint64 offset = 2; |
5153 | total_size += 1 + |
5154 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
5155 | this->offset()); |
5156 | } |
5157 | |
5158 | if (has_corrupt()) { |
5159 | // required bool corrupt = 4; |
5160 | total_size += 1 + 1; |
5161 | } |
5162 | |
5163 | return total_size; |
5164 | } |
5165 | size_t LocatedBlockProto::ByteSizeLong() const { |
5166 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.LocatedBlockProto) |
5167 | size_t total_size = 0; |
5168 | |
5169 | if (_internal_metadata_.have_unknown_fields()) { |
5170 | total_size += |
5171 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5172 | _internal_metadata_.unknown_fields()); |
5173 | } |
5174 | if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. |
5175 | // required .Hdfs.Internal.ExtendedBlockProto b = 1; |
5176 | total_size += 1 + |
5177 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5178 | *b_); |
5179 | |
5180 | // required .Hdfs.Internal.TokenProto blockToken = 5; |
5181 | total_size += 1 + |
5182 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5183 | *blocktoken_); |
5184 | |
5185 | // required uint64 offset = 2; |
5186 | total_size += 1 + |
5187 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
5188 | this->offset()); |
5189 | |
5190 | // required bool corrupt = 4; |
5191 | total_size += 1 + 1; |
5192 | |
5193 | } else { |
5194 | total_size += RequiredFieldsByteSizeFallback(); |
5195 | } |
5196 | // repeated .Hdfs.Internal.DatanodeInfoProto locs = 3; |
5197 | { |
5198 | unsigned int count = static_cast<unsigned int>(this->locs_size()); |
5199 | total_size += 1UL * count; |
5200 | for (unsigned int i = 0; i < count; i++) { |
5201 | total_size += |
5202 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5203 | this->locs(static_cast<int>(i))); |
5204 | } |
5205 | } |
5206 | |
5207 | // repeated bool isCached = 6 [packed = true]; |
5208 | { |
5209 | unsigned int count = static_cast<unsigned int>(this->iscached_size()); |
5210 | size_t data_size = 1UL * count; |
5211 | if (data_size > 0) { |
5212 | total_size += 1 + |
5213 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
5214 | static_cast< ::google::protobuf::int32>(data_size)); |
5215 | } |
5216 | int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
5217 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5218 | _iscached_cached_byte_size_ = cached_size; |
5219 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5220 | total_size += data_size; |
5221 | } |
5222 | |
5223 | // repeated .Hdfs.Internal.StorageTypeProto storageTypes = 7; |
5224 | { |
5225 | size_t data_size = 0; |
5226 | unsigned int count = static_cast<unsigned int>(this->storagetypes_size());for (unsigned int i = 0; i < count; i++) { |
5227 | data_size += ::google::protobuf::internal::WireFormatLite::EnumSize( |
5228 | this->storagetypes(static_cast<int>(i))); |
5229 | } |
5230 | total_size += (1UL * count) + data_size; |
5231 | } |
5232 | |
5233 | // repeated string storageIDs = 8; |
5234 | total_size += 1 * |
5235 | ::google::protobuf::internal::FromIntSize(this->storageids_size()); |
5236 | for (int i = 0, n = this->storageids_size(); i < n; i++) { |
5237 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
5238 | this->storageids(i)); |
5239 | } |
5240 | |
5241 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5242 | SetCachedSize(cached_size); |
5243 | return total_size; |
5244 | } |
5245 | |
5246 | void LocatedBlockProto::MergeFrom(const ::google::protobuf::Message& from) { |
5247 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.LocatedBlockProto) |
5248 | GOOGLE_DCHECK_NE(&from, this); |
5249 | const LocatedBlockProto* source = |
5250 | ::google::protobuf::internal::DynamicCastToGenerated<const LocatedBlockProto>( |
5251 | &from); |
5252 | if (source == NULL) { |
5253 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.LocatedBlockProto) |
5254 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5255 | } else { |
5256 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.LocatedBlockProto) |
5257 | MergeFrom(*source); |
5258 | } |
5259 | } |
5260 | |
5261 | void LocatedBlockProto::MergeFrom(const LocatedBlockProto& from) { |
5262 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.LocatedBlockProto) |
5263 | GOOGLE_DCHECK_NE(&from, this); |
5264 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5265 | ::google::protobuf::uint32 cached_has_bits = 0; |
5266 | (void) cached_has_bits; |
5267 | |
5268 | locs_.MergeFrom(from.locs_); |
5269 | iscached_.MergeFrom(from.iscached_); |
5270 | storagetypes_.MergeFrom(from.storagetypes_); |
5271 | storageids_.MergeFrom(from.storageids_); |
5272 | cached_has_bits = from._has_bits_[0]; |
5273 | if (cached_has_bits & 15u) { |
5274 | if (cached_has_bits & 0x00000001u) { |
5275 | mutable_b()->::Hdfs::Internal::ExtendedBlockProto::MergeFrom(from.b()); |
5276 | } |
5277 | if (cached_has_bits & 0x00000002u) { |
5278 | mutable_blocktoken()->::Hdfs::Internal::TokenProto::MergeFrom(from.blocktoken()); |
5279 | } |
5280 | if (cached_has_bits & 0x00000004u) { |
5281 | offset_ = from.offset_; |
5282 | } |
5283 | if (cached_has_bits & 0x00000008u) { |
5284 | corrupt_ = from.corrupt_; |
5285 | } |
5286 | _has_bits_[0] |= cached_has_bits; |
5287 | } |
5288 | } |
5289 | |
5290 | void LocatedBlockProto::CopyFrom(const ::google::protobuf::Message& from) { |
5291 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.LocatedBlockProto) |
5292 | if (&from == this) return; |
5293 | Clear(); |
5294 | MergeFrom(from); |
5295 | } |
5296 | |
5297 | void LocatedBlockProto::CopyFrom(const LocatedBlockProto& from) { |
5298 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.LocatedBlockProto) |
5299 | if (&from == this) return; |
5300 | Clear(); |
5301 | MergeFrom(from); |
5302 | } |
5303 | |
5304 | bool LocatedBlockProto::IsInitialized() const { |
5305 | if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; |
5306 | if (!::google::protobuf::internal::AllAreInitialized(this->locs())) return false; |
5307 | if (has_b()) { |
5308 | if (!this->b_->IsInitialized()) return false; |
5309 | } |
5310 | if (has_blocktoken()) { |
5311 | if (!this->blocktoken_->IsInitialized()) return false; |
5312 | } |
5313 | return true; |
5314 | } |
5315 | |
5316 | void LocatedBlockProto::Swap(LocatedBlockProto* other) { |
5317 | if (other == this) return; |
5318 | InternalSwap(other); |
5319 | } |
5320 | void LocatedBlockProto::InternalSwap(LocatedBlockProto* other) { |
5321 | using std::swap; |
5322 | CastToBase(&locs_)->InternalSwap(CastToBase(&other->locs_)); |
5323 | iscached_.InternalSwap(&other->iscached_); |
5324 | storagetypes_.InternalSwap(&other->storagetypes_); |
5325 | storageids_.InternalSwap(CastToBase(&other->storageids_)); |
5326 | swap(b_, other->b_); |
5327 | swap(blocktoken_, other->blocktoken_); |
5328 | swap(offset_, other->offset_); |
5329 | swap(corrupt_, other->corrupt_); |
5330 | swap(_has_bits_[0], other->_has_bits_[0]); |
5331 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5332 | } |
5333 | |
5334 | ::google::protobuf::Metadata LocatedBlockProto::GetMetadata() const { |
5335 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
5336 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
5337 | } |
5338 | |
5339 | |
5340 | // =================================================================== |
5341 | |
5342 | void DataEncryptionKeyProto::InitAsDefaultInstance() { |
5343 | } |
5344 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5345 | const int DataEncryptionKeyProto::kKeyIdFieldNumber; |
5346 | const int DataEncryptionKeyProto::kBlockPoolIdFieldNumber; |
5347 | const int DataEncryptionKeyProto::kNonceFieldNumber; |
5348 | const int DataEncryptionKeyProto::kEncryptionKeyFieldNumber; |
5349 | const int DataEncryptionKeyProto::kExpiryDateFieldNumber; |
5350 | const int DataEncryptionKeyProto::kEncryptionAlgorithmFieldNumber; |
5351 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5352 | |
5353 | DataEncryptionKeyProto::DataEncryptionKeyProto() |
5354 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5355 | ::google::protobuf::internal::InitSCC( |
5356 | &protobuf_hdfs_2eproto::scc_info_DataEncryptionKeyProto.base); |
5357 | SharedCtor(); |
5358 | // @@protoc_insertion_point(constructor:Hdfs.Internal.DataEncryptionKeyProto) |
5359 | } |
5360 | DataEncryptionKeyProto::DataEncryptionKeyProto(const DataEncryptionKeyProto& from) |
5361 | : ::google::protobuf::Message(), |
5362 | _internal_metadata_(NULL), |
5363 | _has_bits_(from._has_bits_) { |
5364 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5365 | blockpoolid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5366 | if (from.has_blockpoolid()) { |
5367 | blockpoolid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.blockpoolid_); |
5368 | } |
5369 | nonce_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5370 | if (from.has_nonce()) { |
5371 | nonce_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.nonce_); |
5372 | } |
5373 | encryptionkey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5374 | if (from.has_encryptionkey()) { |
5375 | encryptionkey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.encryptionkey_); |
5376 | } |
5377 | encryptionalgorithm_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5378 | if (from.has_encryptionalgorithm()) { |
5379 | encryptionalgorithm_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.encryptionalgorithm_); |
5380 | } |
5381 | ::memcpy(&expirydate_, &from.expirydate_, |
5382 | static_cast<size_t>(reinterpret_cast<char*>(&keyid_) - |
5383 | reinterpret_cast<char*>(&expirydate_)) + sizeof(keyid_)); |
5384 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.DataEncryptionKeyProto) |
5385 | } |
5386 | |
5387 | void DataEncryptionKeyProto::SharedCtor() { |
5388 | blockpoolid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5389 | nonce_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5390 | encryptionkey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5391 | encryptionalgorithm_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5392 | ::memset(&expirydate_, 0, static_cast<size_t>( |
5393 | reinterpret_cast<char*>(&keyid_) - |
5394 | reinterpret_cast<char*>(&expirydate_)) + sizeof(keyid_)); |
5395 | } |
5396 | |
5397 | DataEncryptionKeyProto::~DataEncryptionKeyProto() { |
5398 | // @@protoc_insertion_point(destructor:Hdfs.Internal.DataEncryptionKeyProto) |
5399 | SharedDtor(); |
5400 | } |
5401 | |
5402 | void DataEncryptionKeyProto::SharedDtor() { |
5403 | blockpoolid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5404 | nonce_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5405 | encryptionkey_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5406 | encryptionalgorithm_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5407 | } |
5408 | |
5409 | void DataEncryptionKeyProto::SetCachedSize(int size) const { |
5410 | _cached_size_.Set(size); |
5411 | } |
5412 | const ::google::protobuf::Descriptor* DataEncryptionKeyProto::descriptor() { |
5413 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
5414 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
5415 | } |
5416 | |
5417 | const DataEncryptionKeyProto& DataEncryptionKeyProto::default_instance() { |
5418 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_DataEncryptionKeyProto.base); |
5419 | return *internal_default_instance(); |
5420 | } |
5421 | |
5422 | |
5423 | void DataEncryptionKeyProto::Clear() { |
5424 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.DataEncryptionKeyProto) |
5425 | ::google::protobuf::uint32 cached_has_bits = 0; |
5426 | // Prevent compiler warnings about cached_has_bits being unused |
5427 | (void) cached_has_bits; |
5428 | |
5429 | cached_has_bits = _has_bits_[0]; |
5430 | if (cached_has_bits & 15u) { |
5431 | if (cached_has_bits & 0x00000001u) { |
5432 | blockpoolid_.ClearNonDefaultToEmptyNoArena(); |
5433 | } |
5434 | if (cached_has_bits & 0x00000002u) { |
5435 | nonce_.ClearNonDefaultToEmptyNoArena(); |
5436 | } |
5437 | if (cached_has_bits & 0x00000004u) { |
5438 | encryptionkey_.ClearNonDefaultToEmptyNoArena(); |
5439 | } |
5440 | if (cached_has_bits & 0x00000008u) { |
5441 | encryptionalgorithm_.ClearNonDefaultToEmptyNoArena(); |
5442 | } |
5443 | } |
5444 | if (cached_has_bits & 48u) { |
5445 | ::memset(&expirydate_, 0, static_cast<size_t>( |
5446 | reinterpret_cast<char*>(&keyid_) - |
5447 | reinterpret_cast<char*>(&expirydate_)) + sizeof(keyid_)); |
5448 | } |
5449 | _has_bits_.Clear(); |
5450 | _internal_metadata_.Clear(); |
5451 | } |
5452 | |
5453 | bool DataEncryptionKeyProto::MergePartialFromCodedStream( |
5454 | ::google::protobuf::io::CodedInputStream* input) { |
5455 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
5456 | ::google::protobuf::uint32 tag; |
5457 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.DataEncryptionKeyProto) |
5458 | for (;;) { |
5459 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5460 | tag = p.first; |
5461 | if (!p.second) goto handle_unusual; |
5462 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5463 | // required uint32 keyId = 1; |
5464 | case 1: { |
5465 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5466 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
5467 | set_has_keyid(); |
5468 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5469 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
5470 | input, &keyid_))); |
5471 | } else { |
5472 | goto handle_unusual; |
5473 | } |
5474 | break; |
5475 | } |
5476 | |
5477 | // required string blockPoolId = 2; |
5478 | case 2: { |
5479 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5480 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
5481 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
5482 | input, this->mutable_blockpoolid())); |
5483 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5484 | this->blockpoolid().data(), static_cast<int>(this->blockpoolid().length()), |
5485 | ::google::protobuf::internal::WireFormat::PARSE, |
5486 | "Hdfs.Internal.DataEncryptionKeyProto.blockPoolId" ); |
5487 | } else { |
5488 | goto handle_unusual; |
5489 | } |
5490 | break; |
5491 | } |
5492 | |
5493 | // required bytes nonce = 3; |
5494 | case 3: { |
5495 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5496 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
5497 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
5498 | input, this->mutable_nonce())); |
5499 | } else { |
5500 | goto handle_unusual; |
5501 | } |
5502 | break; |
5503 | } |
5504 | |
5505 | // required bytes encryptionKey = 4; |
5506 | case 4: { |
5507 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5508 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
5509 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
5510 | input, this->mutable_encryptionkey())); |
5511 | } else { |
5512 | goto handle_unusual; |
5513 | } |
5514 | break; |
5515 | } |
5516 | |
5517 | // required uint64 expiryDate = 5; |
5518 | case 5: { |
5519 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5520 | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
5521 | set_has_expirydate(); |
5522 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5523 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
5524 | input, &expirydate_))); |
5525 | } else { |
5526 | goto handle_unusual; |
5527 | } |
5528 | break; |
5529 | } |
5530 | |
5531 | // optional string encryptionAlgorithm = 6; |
5532 | case 6: { |
5533 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5534 | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
5535 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
5536 | input, this->mutable_encryptionalgorithm())); |
5537 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5538 | this->encryptionalgorithm().data(), static_cast<int>(this->encryptionalgorithm().length()), |
5539 | ::google::protobuf::internal::WireFormat::PARSE, |
5540 | "Hdfs.Internal.DataEncryptionKeyProto.encryptionAlgorithm" ); |
5541 | } else { |
5542 | goto handle_unusual; |
5543 | } |
5544 | break; |
5545 | } |
5546 | |
5547 | default: { |
5548 | handle_unusual: |
5549 | if (tag == 0) { |
5550 | goto success; |
5551 | } |
5552 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
5553 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5554 | break; |
5555 | } |
5556 | } |
5557 | } |
5558 | success: |
5559 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.DataEncryptionKeyProto) |
5560 | return true; |
5561 | failure: |
5562 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.DataEncryptionKeyProto) |
5563 | return false; |
5564 | #undef DO_ |
5565 | } |
5566 | |
5567 | void DataEncryptionKeyProto::SerializeWithCachedSizes( |
5568 | ::google::protobuf::io::CodedOutputStream* output) const { |
5569 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.DataEncryptionKeyProto) |
5570 | ::google::protobuf::uint32 cached_has_bits = 0; |
5571 | (void) cached_has_bits; |
5572 | |
5573 | cached_has_bits = _has_bits_[0]; |
5574 | // required uint32 keyId = 1; |
5575 | if (cached_has_bits & 0x00000020u) { |
5576 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->keyid(), output); |
5577 | } |
5578 | |
5579 | // required string blockPoolId = 2; |
5580 | if (cached_has_bits & 0x00000001u) { |
5581 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5582 | this->blockpoolid().data(), static_cast<int>(this->blockpoolid().length()), |
5583 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
5584 | "Hdfs.Internal.DataEncryptionKeyProto.blockPoolId" ); |
5585 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
5586 | 2, this->blockpoolid(), output); |
5587 | } |
5588 | |
5589 | // required bytes nonce = 3; |
5590 | if (cached_has_bits & 0x00000002u) { |
5591 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
5592 | 3, this->nonce(), output); |
5593 | } |
5594 | |
5595 | // required bytes encryptionKey = 4; |
5596 | if (cached_has_bits & 0x00000004u) { |
5597 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
5598 | 4, this->encryptionkey(), output); |
5599 | } |
5600 | |
5601 | // required uint64 expiryDate = 5; |
5602 | if (cached_has_bits & 0x00000010u) { |
5603 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->expirydate(), output); |
5604 | } |
5605 | |
5606 | // optional string encryptionAlgorithm = 6; |
5607 | if (cached_has_bits & 0x00000008u) { |
5608 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5609 | this->encryptionalgorithm().data(), static_cast<int>(this->encryptionalgorithm().length()), |
5610 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
5611 | "Hdfs.Internal.DataEncryptionKeyProto.encryptionAlgorithm" ); |
5612 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
5613 | 6, this->encryptionalgorithm(), output); |
5614 | } |
5615 | |
5616 | if (_internal_metadata_.have_unknown_fields()) { |
5617 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5618 | _internal_metadata_.unknown_fields(), output); |
5619 | } |
5620 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.DataEncryptionKeyProto) |
5621 | } |
5622 | |
5623 | ::google::protobuf::uint8* DataEncryptionKeyProto::InternalSerializeWithCachedSizesToArray( |
5624 | bool deterministic, ::google::protobuf::uint8* target) const { |
5625 | (void)deterministic; // Unused |
5626 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.DataEncryptionKeyProto) |
5627 | ::google::protobuf::uint32 cached_has_bits = 0; |
5628 | (void) cached_has_bits; |
5629 | |
5630 | cached_has_bits = _has_bits_[0]; |
5631 | // required uint32 keyId = 1; |
5632 | if (cached_has_bits & 0x00000020u) { |
5633 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->keyid(), target); |
5634 | } |
5635 | |
5636 | // required string blockPoolId = 2; |
5637 | if (cached_has_bits & 0x00000001u) { |
5638 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5639 | this->blockpoolid().data(), static_cast<int>(this->blockpoolid().length()), |
5640 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
5641 | "Hdfs.Internal.DataEncryptionKeyProto.blockPoolId" ); |
5642 | target = |
5643 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
5644 | 2, this->blockpoolid(), target); |
5645 | } |
5646 | |
5647 | // required bytes nonce = 3; |
5648 | if (cached_has_bits & 0x00000002u) { |
5649 | target = |
5650 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
5651 | 3, this->nonce(), target); |
5652 | } |
5653 | |
5654 | // required bytes encryptionKey = 4; |
5655 | if (cached_has_bits & 0x00000004u) { |
5656 | target = |
5657 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
5658 | 4, this->encryptionkey(), target); |
5659 | } |
5660 | |
5661 | // required uint64 expiryDate = 5; |
5662 | if (cached_has_bits & 0x00000010u) { |
5663 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->expirydate(), target); |
5664 | } |
5665 | |
5666 | // optional string encryptionAlgorithm = 6; |
5667 | if (cached_has_bits & 0x00000008u) { |
5668 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5669 | this->encryptionalgorithm().data(), static_cast<int>(this->encryptionalgorithm().length()), |
5670 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
5671 | "Hdfs.Internal.DataEncryptionKeyProto.encryptionAlgorithm" ); |
5672 | target = |
5673 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
5674 | 6, this->encryptionalgorithm(), target); |
5675 | } |
5676 | |
5677 | if (_internal_metadata_.have_unknown_fields()) { |
5678 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5679 | _internal_metadata_.unknown_fields(), target); |
5680 | } |
5681 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.DataEncryptionKeyProto) |
5682 | return target; |
5683 | } |
5684 | |
5685 | size_t DataEncryptionKeyProto::RequiredFieldsByteSizeFallback() const { |
5686 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.DataEncryptionKeyProto) |
5687 | size_t total_size = 0; |
5688 | |
5689 | if (has_blockpoolid()) { |
5690 | // required string blockPoolId = 2; |
5691 | total_size += 1 + |
5692 | ::google::protobuf::internal::WireFormatLite::StringSize( |
5693 | this->blockpoolid()); |
5694 | } |
5695 | |
5696 | if (has_nonce()) { |
5697 | // required bytes nonce = 3; |
5698 | total_size += 1 + |
5699 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
5700 | this->nonce()); |
5701 | } |
5702 | |
5703 | if (has_encryptionkey()) { |
5704 | // required bytes encryptionKey = 4; |
5705 | total_size += 1 + |
5706 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
5707 | this->encryptionkey()); |
5708 | } |
5709 | |
5710 | if (has_expirydate()) { |
5711 | // required uint64 expiryDate = 5; |
5712 | total_size += 1 + |
5713 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
5714 | this->expirydate()); |
5715 | } |
5716 | |
5717 | if (has_keyid()) { |
5718 | // required uint32 keyId = 1; |
5719 | total_size += 1 + |
5720 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
5721 | this->keyid()); |
5722 | } |
5723 | |
5724 | return total_size; |
5725 | } |
5726 | size_t DataEncryptionKeyProto::ByteSizeLong() const { |
5727 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.DataEncryptionKeyProto) |
5728 | size_t total_size = 0; |
5729 | |
5730 | if (_internal_metadata_.have_unknown_fields()) { |
5731 | total_size += |
5732 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5733 | _internal_metadata_.unknown_fields()); |
5734 | } |
5735 | if (((_has_bits_[0] & 0x00000037) ^ 0x00000037) == 0) { // All required fields are present. |
5736 | // required string blockPoolId = 2; |
5737 | total_size += 1 + |
5738 | ::google::protobuf::internal::WireFormatLite::StringSize( |
5739 | this->blockpoolid()); |
5740 | |
5741 | // required bytes nonce = 3; |
5742 | total_size += 1 + |
5743 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
5744 | this->nonce()); |
5745 | |
5746 | // required bytes encryptionKey = 4; |
5747 | total_size += 1 + |
5748 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
5749 | this->encryptionkey()); |
5750 | |
5751 | // required uint64 expiryDate = 5; |
5752 | total_size += 1 + |
5753 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
5754 | this->expirydate()); |
5755 | |
5756 | // required uint32 keyId = 1; |
5757 | total_size += 1 + |
5758 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
5759 | this->keyid()); |
5760 | |
5761 | } else { |
5762 | total_size += RequiredFieldsByteSizeFallback(); |
5763 | } |
5764 | // optional string encryptionAlgorithm = 6; |
5765 | if (has_encryptionalgorithm()) { |
5766 | total_size += 1 + |
5767 | ::google::protobuf::internal::WireFormatLite::StringSize( |
5768 | this->encryptionalgorithm()); |
5769 | } |
5770 | |
5771 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5772 | SetCachedSize(cached_size); |
5773 | return total_size; |
5774 | } |
5775 | |
5776 | void DataEncryptionKeyProto::MergeFrom(const ::google::protobuf::Message& from) { |
5777 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.DataEncryptionKeyProto) |
5778 | GOOGLE_DCHECK_NE(&from, this); |
5779 | const DataEncryptionKeyProto* source = |
5780 | ::google::protobuf::internal::DynamicCastToGenerated<const DataEncryptionKeyProto>( |
5781 | &from); |
5782 | if (source == NULL) { |
5783 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.DataEncryptionKeyProto) |
5784 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5785 | } else { |
5786 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.DataEncryptionKeyProto) |
5787 | MergeFrom(*source); |
5788 | } |
5789 | } |
5790 | |
5791 | void DataEncryptionKeyProto::MergeFrom(const DataEncryptionKeyProto& from) { |
5792 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.DataEncryptionKeyProto) |
5793 | GOOGLE_DCHECK_NE(&from, this); |
5794 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5795 | ::google::protobuf::uint32 cached_has_bits = 0; |
5796 | (void) cached_has_bits; |
5797 | |
5798 | cached_has_bits = from._has_bits_[0]; |
5799 | if (cached_has_bits & 63u) { |
5800 | if (cached_has_bits & 0x00000001u) { |
5801 | set_has_blockpoolid(); |
5802 | blockpoolid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.blockpoolid_); |
5803 | } |
5804 | if (cached_has_bits & 0x00000002u) { |
5805 | set_has_nonce(); |
5806 | nonce_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.nonce_); |
5807 | } |
5808 | if (cached_has_bits & 0x00000004u) { |
5809 | set_has_encryptionkey(); |
5810 | encryptionkey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.encryptionkey_); |
5811 | } |
5812 | if (cached_has_bits & 0x00000008u) { |
5813 | set_has_encryptionalgorithm(); |
5814 | encryptionalgorithm_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.encryptionalgorithm_); |
5815 | } |
5816 | if (cached_has_bits & 0x00000010u) { |
5817 | expirydate_ = from.expirydate_; |
5818 | } |
5819 | if (cached_has_bits & 0x00000020u) { |
5820 | keyid_ = from.keyid_; |
5821 | } |
5822 | _has_bits_[0] |= cached_has_bits; |
5823 | } |
5824 | } |
5825 | |
5826 | void DataEncryptionKeyProto::CopyFrom(const ::google::protobuf::Message& from) { |
5827 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.DataEncryptionKeyProto) |
5828 | if (&from == this) return; |
5829 | Clear(); |
5830 | MergeFrom(from); |
5831 | } |
5832 | |
5833 | void DataEncryptionKeyProto::CopyFrom(const DataEncryptionKeyProto& from) { |
5834 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.DataEncryptionKeyProto) |
5835 | if (&from == this) return; |
5836 | Clear(); |
5837 | MergeFrom(from); |
5838 | } |
5839 | |
5840 | bool DataEncryptionKeyProto::IsInitialized() const { |
5841 | if ((_has_bits_[0] & 0x00000037) != 0x00000037) return false; |
5842 | return true; |
5843 | } |
5844 | |
5845 | void DataEncryptionKeyProto::Swap(DataEncryptionKeyProto* other) { |
5846 | if (other == this) return; |
5847 | InternalSwap(other); |
5848 | } |
5849 | void DataEncryptionKeyProto::InternalSwap(DataEncryptionKeyProto* other) { |
5850 | using std::swap; |
5851 | blockpoolid_.Swap(&other->blockpoolid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
5852 | GetArenaNoVirtual()); |
5853 | nonce_.Swap(&other->nonce_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
5854 | GetArenaNoVirtual()); |
5855 | encryptionkey_.Swap(&other->encryptionkey_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
5856 | GetArenaNoVirtual()); |
5857 | encryptionalgorithm_.Swap(&other->encryptionalgorithm_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
5858 | GetArenaNoVirtual()); |
5859 | swap(expirydate_, other->expirydate_); |
5860 | swap(keyid_, other->keyid_); |
5861 | swap(_has_bits_[0], other->_has_bits_[0]); |
5862 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5863 | } |
5864 | |
5865 | ::google::protobuf::Metadata DataEncryptionKeyProto::GetMetadata() const { |
5866 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
5867 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
5868 | } |
5869 | |
5870 | |
5871 | // =================================================================== |
5872 | |
5873 | void LocatedBlocksProto::InitAsDefaultInstance() { |
5874 | ::Hdfs::Internal::_LocatedBlocksProto_default_instance_._instance.get_mutable()->lastblock_ = const_cast< ::Hdfs::Internal::LocatedBlockProto*>( |
5875 | ::Hdfs::Internal::LocatedBlockProto::internal_default_instance()); |
5876 | } |
5877 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5878 | const int LocatedBlocksProto::kFileLengthFieldNumber; |
5879 | const int LocatedBlocksProto::kBlocksFieldNumber; |
5880 | const int LocatedBlocksProto::kUnderConstructionFieldNumber; |
5881 | const int LocatedBlocksProto::kLastBlockFieldNumber; |
5882 | const int LocatedBlocksProto::kIsLastBlockCompleteFieldNumber; |
5883 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5884 | |
5885 | LocatedBlocksProto::LocatedBlocksProto() |
5886 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5887 | ::google::protobuf::internal::InitSCC( |
5888 | &protobuf_hdfs_2eproto::scc_info_LocatedBlocksProto.base); |
5889 | SharedCtor(); |
5890 | // @@protoc_insertion_point(constructor:Hdfs.Internal.LocatedBlocksProto) |
5891 | } |
5892 | LocatedBlocksProto::LocatedBlocksProto(const LocatedBlocksProto& from) |
5893 | : ::google::protobuf::Message(), |
5894 | _internal_metadata_(NULL), |
5895 | _has_bits_(from._has_bits_), |
5896 | blocks_(from.blocks_) { |
5897 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5898 | if (from.has_lastblock()) { |
5899 | lastblock_ = new ::Hdfs::Internal::LocatedBlockProto(*from.lastblock_); |
5900 | } else { |
5901 | lastblock_ = NULL; |
5902 | } |
5903 | ::memcpy(&filelength_, &from.filelength_, |
5904 | static_cast<size_t>(reinterpret_cast<char*>(&islastblockcomplete_) - |
5905 | reinterpret_cast<char*>(&filelength_)) + sizeof(islastblockcomplete_)); |
5906 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.LocatedBlocksProto) |
5907 | } |
5908 | |
5909 | void LocatedBlocksProto::SharedCtor() { |
5910 | ::memset(&lastblock_, 0, static_cast<size_t>( |
5911 | reinterpret_cast<char*>(&islastblockcomplete_) - |
5912 | reinterpret_cast<char*>(&lastblock_)) + sizeof(islastblockcomplete_)); |
5913 | } |
5914 | |
5915 | LocatedBlocksProto::~LocatedBlocksProto() { |
5916 | // @@protoc_insertion_point(destructor:Hdfs.Internal.LocatedBlocksProto) |
5917 | SharedDtor(); |
5918 | } |
5919 | |
5920 | void LocatedBlocksProto::SharedDtor() { |
5921 | if (this != internal_default_instance()) delete lastblock_; |
5922 | } |
5923 | |
5924 | void LocatedBlocksProto::SetCachedSize(int size) const { |
5925 | _cached_size_.Set(size); |
5926 | } |
5927 | const ::google::protobuf::Descriptor* LocatedBlocksProto::descriptor() { |
5928 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
5929 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
5930 | } |
5931 | |
5932 | const LocatedBlocksProto& LocatedBlocksProto::default_instance() { |
5933 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_LocatedBlocksProto.base); |
5934 | return *internal_default_instance(); |
5935 | } |
5936 | |
5937 | |
5938 | void LocatedBlocksProto::Clear() { |
5939 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.LocatedBlocksProto) |
5940 | ::google::protobuf::uint32 cached_has_bits = 0; |
5941 | // Prevent compiler warnings about cached_has_bits being unused |
5942 | (void) cached_has_bits; |
5943 | |
5944 | blocks_.Clear(); |
5945 | cached_has_bits = _has_bits_[0]; |
5946 | if (cached_has_bits & 0x00000001u) { |
5947 | GOOGLE_DCHECK(lastblock_ != NULL); |
5948 | lastblock_->Clear(); |
5949 | } |
5950 | if (cached_has_bits & 14u) { |
5951 | ::memset(&filelength_, 0, static_cast<size_t>( |
5952 | reinterpret_cast<char*>(&islastblockcomplete_) - |
5953 | reinterpret_cast<char*>(&filelength_)) + sizeof(islastblockcomplete_)); |
5954 | } |
5955 | _has_bits_.Clear(); |
5956 | _internal_metadata_.Clear(); |
5957 | } |
5958 | |
5959 | bool LocatedBlocksProto::MergePartialFromCodedStream( |
5960 | ::google::protobuf::io::CodedInputStream* input) { |
5961 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
5962 | ::google::protobuf::uint32 tag; |
5963 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.LocatedBlocksProto) |
5964 | for (;;) { |
5965 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5966 | tag = p.first; |
5967 | if (!p.second) goto handle_unusual; |
5968 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5969 | // required uint64 fileLength = 1; |
5970 | case 1: { |
5971 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5972 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
5973 | set_has_filelength(); |
5974 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5975 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
5976 | input, &filelength_))); |
5977 | } else { |
5978 | goto handle_unusual; |
5979 | } |
5980 | break; |
5981 | } |
5982 | |
5983 | // repeated .Hdfs.Internal.LocatedBlockProto blocks = 2; |
5984 | case 2: { |
5985 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5986 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
5987 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5988 | input, add_blocks())); |
5989 | } else { |
5990 | goto handle_unusual; |
5991 | } |
5992 | break; |
5993 | } |
5994 | |
5995 | // required bool underConstruction = 3; |
5996 | case 3: { |
5997 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5998 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
5999 | set_has_underconstruction(); |
6000 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6001 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
6002 | input, &underconstruction_))); |
6003 | } else { |
6004 | goto handle_unusual; |
6005 | } |
6006 | break; |
6007 | } |
6008 | |
6009 | // optional .Hdfs.Internal.LocatedBlockProto lastBlock = 4; |
6010 | case 4: { |
6011 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6012 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
6013 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
6014 | input, mutable_lastblock())); |
6015 | } else { |
6016 | goto handle_unusual; |
6017 | } |
6018 | break; |
6019 | } |
6020 | |
6021 | // required bool isLastBlockComplete = 5; |
6022 | case 5: { |
6023 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6024 | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
6025 | set_has_islastblockcomplete(); |
6026 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6027 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
6028 | input, &islastblockcomplete_))); |
6029 | } else { |
6030 | goto handle_unusual; |
6031 | } |
6032 | break; |
6033 | } |
6034 | |
6035 | default: { |
6036 | handle_unusual: |
6037 | if (tag == 0) { |
6038 | goto success; |
6039 | } |
6040 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
6041 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6042 | break; |
6043 | } |
6044 | } |
6045 | } |
6046 | success: |
6047 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.LocatedBlocksProto) |
6048 | return true; |
6049 | failure: |
6050 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.LocatedBlocksProto) |
6051 | return false; |
6052 | #undef DO_ |
6053 | } |
6054 | |
6055 | void LocatedBlocksProto::SerializeWithCachedSizes( |
6056 | ::google::protobuf::io::CodedOutputStream* output) const { |
6057 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.LocatedBlocksProto) |
6058 | ::google::protobuf::uint32 cached_has_bits = 0; |
6059 | (void) cached_has_bits; |
6060 | |
6061 | cached_has_bits = _has_bits_[0]; |
6062 | // required uint64 fileLength = 1; |
6063 | if (cached_has_bits & 0x00000002u) { |
6064 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->filelength(), output); |
6065 | } |
6066 | |
6067 | // repeated .Hdfs.Internal.LocatedBlockProto blocks = 2; |
6068 | for (unsigned int i = 0, |
6069 | n = static_cast<unsigned int>(this->blocks_size()); i < n; i++) { |
6070 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6071 | 2, |
6072 | this->blocks(static_cast<int>(i)), |
6073 | output); |
6074 | } |
6075 | |
6076 | // required bool underConstruction = 3; |
6077 | if (cached_has_bits & 0x00000004u) { |
6078 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->underconstruction(), output); |
6079 | } |
6080 | |
6081 | // optional .Hdfs.Internal.LocatedBlockProto lastBlock = 4; |
6082 | if (cached_has_bits & 0x00000001u) { |
6083 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6084 | 4, this->_internal_lastblock(), output); |
6085 | } |
6086 | |
6087 | // required bool isLastBlockComplete = 5; |
6088 | if (cached_has_bits & 0x00000008u) { |
6089 | ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->islastblockcomplete(), output); |
6090 | } |
6091 | |
6092 | if (_internal_metadata_.have_unknown_fields()) { |
6093 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
6094 | _internal_metadata_.unknown_fields(), output); |
6095 | } |
6096 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.LocatedBlocksProto) |
6097 | } |
6098 | |
6099 | ::google::protobuf::uint8* LocatedBlocksProto::InternalSerializeWithCachedSizesToArray( |
6100 | bool deterministic, ::google::protobuf::uint8* target) const { |
6101 | (void)deterministic; // Unused |
6102 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.LocatedBlocksProto) |
6103 | ::google::protobuf::uint32 cached_has_bits = 0; |
6104 | (void) cached_has_bits; |
6105 | |
6106 | cached_has_bits = _has_bits_[0]; |
6107 | // required uint64 fileLength = 1; |
6108 | if (cached_has_bits & 0x00000002u) { |
6109 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->filelength(), target); |
6110 | } |
6111 | |
6112 | // repeated .Hdfs.Internal.LocatedBlockProto blocks = 2; |
6113 | for (unsigned int i = 0, |
6114 | n = static_cast<unsigned int>(this->blocks_size()); i < n; i++) { |
6115 | target = ::google::protobuf::internal::WireFormatLite:: |
6116 | InternalWriteMessageToArray( |
6117 | 2, this->blocks(static_cast<int>(i)), deterministic, target); |
6118 | } |
6119 | |
6120 | // required bool underConstruction = 3; |
6121 | if (cached_has_bits & 0x00000004u) { |
6122 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->underconstruction(), target); |
6123 | } |
6124 | |
6125 | // optional .Hdfs.Internal.LocatedBlockProto lastBlock = 4; |
6126 | if (cached_has_bits & 0x00000001u) { |
6127 | target = ::google::protobuf::internal::WireFormatLite:: |
6128 | InternalWriteMessageToArray( |
6129 | 4, this->_internal_lastblock(), deterministic, target); |
6130 | } |
6131 | |
6132 | // required bool isLastBlockComplete = 5; |
6133 | if (cached_has_bits & 0x00000008u) { |
6134 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->islastblockcomplete(), target); |
6135 | } |
6136 | |
6137 | if (_internal_metadata_.have_unknown_fields()) { |
6138 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
6139 | _internal_metadata_.unknown_fields(), target); |
6140 | } |
6141 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.LocatedBlocksProto) |
6142 | return target; |
6143 | } |
6144 | |
6145 | size_t LocatedBlocksProto::RequiredFieldsByteSizeFallback() const { |
6146 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.LocatedBlocksProto) |
6147 | size_t total_size = 0; |
6148 | |
6149 | if (has_filelength()) { |
6150 | // required uint64 fileLength = 1; |
6151 | total_size += 1 + |
6152 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6153 | this->filelength()); |
6154 | } |
6155 | |
6156 | if (has_underconstruction()) { |
6157 | // required bool underConstruction = 3; |
6158 | total_size += 1 + 1; |
6159 | } |
6160 | |
6161 | if (has_islastblockcomplete()) { |
6162 | // required bool isLastBlockComplete = 5; |
6163 | total_size += 1 + 1; |
6164 | } |
6165 | |
6166 | return total_size; |
6167 | } |
6168 | size_t LocatedBlocksProto::ByteSizeLong() const { |
6169 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.LocatedBlocksProto) |
6170 | size_t total_size = 0; |
6171 | |
6172 | if (_internal_metadata_.have_unknown_fields()) { |
6173 | total_size += |
6174 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
6175 | _internal_metadata_.unknown_fields()); |
6176 | } |
6177 | if (((_has_bits_[0] & 0x0000000e) ^ 0x0000000e) == 0) { // All required fields are present. |
6178 | // required uint64 fileLength = 1; |
6179 | total_size += 1 + |
6180 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6181 | this->filelength()); |
6182 | |
6183 | // required bool underConstruction = 3; |
6184 | total_size += 1 + 1; |
6185 | |
6186 | // required bool isLastBlockComplete = 5; |
6187 | total_size += 1 + 1; |
6188 | |
6189 | } else { |
6190 | total_size += RequiredFieldsByteSizeFallback(); |
6191 | } |
6192 | // repeated .Hdfs.Internal.LocatedBlockProto blocks = 2; |
6193 | { |
6194 | unsigned int count = static_cast<unsigned int>(this->blocks_size()); |
6195 | total_size += 1UL * count; |
6196 | for (unsigned int i = 0; i < count; i++) { |
6197 | total_size += |
6198 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6199 | this->blocks(static_cast<int>(i))); |
6200 | } |
6201 | } |
6202 | |
6203 | // optional .Hdfs.Internal.LocatedBlockProto lastBlock = 4; |
6204 | if (has_lastblock()) { |
6205 | total_size += 1 + |
6206 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6207 | *lastblock_); |
6208 | } |
6209 | |
6210 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
6211 | SetCachedSize(cached_size); |
6212 | return total_size; |
6213 | } |
6214 | |
6215 | void LocatedBlocksProto::MergeFrom(const ::google::protobuf::Message& from) { |
6216 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.LocatedBlocksProto) |
6217 | GOOGLE_DCHECK_NE(&from, this); |
6218 | const LocatedBlocksProto* source = |
6219 | ::google::protobuf::internal::DynamicCastToGenerated<const LocatedBlocksProto>( |
6220 | &from); |
6221 | if (source == NULL) { |
6222 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.LocatedBlocksProto) |
6223 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
6224 | } else { |
6225 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.LocatedBlocksProto) |
6226 | MergeFrom(*source); |
6227 | } |
6228 | } |
6229 | |
6230 | void LocatedBlocksProto::MergeFrom(const LocatedBlocksProto& from) { |
6231 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.LocatedBlocksProto) |
6232 | GOOGLE_DCHECK_NE(&from, this); |
6233 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6234 | ::google::protobuf::uint32 cached_has_bits = 0; |
6235 | (void) cached_has_bits; |
6236 | |
6237 | blocks_.MergeFrom(from.blocks_); |
6238 | cached_has_bits = from._has_bits_[0]; |
6239 | if (cached_has_bits & 15u) { |
6240 | if (cached_has_bits & 0x00000001u) { |
6241 | mutable_lastblock()->::Hdfs::Internal::LocatedBlockProto::MergeFrom(from.lastblock()); |
6242 | } |
6243 | if (cached_has_bits & 0x00000002u) { |
6244 | filelength_ = from.filelength_; |
6245 | } |
6246 | if (cached_has_bits & 0x00000004u) { |
6247 | underconstruction_ = from.underconstruction_; |
6248 | } |
6249 | if (cached_has_bits & 0x00000008u) { |
6250 | islastblockcomplete_ = from.islastblockcomplete_; |
6251 | } |
6252 | _has_bits_[0] |= cached_has_bits; |
6253 | } |
6254 | } |
6255 | |
6256 | void LocatedBlocksProto::CopyFrom(const ::google::protobuf::Message& from) { |
6257 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.LocatedBlocksProto) |
6258 | if (&from == this) return; |
6259 | Clear(); |
6260 | MergeFrom(from); |
6261 | } |
6262 | |
6263 | void LocatedBlocksProto::CopyFrom(const LocatedBlocksProto& from) { |
6264 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.LocatedBlocksProto) |
6265 | if (&from == this) return; |
6266 | Clear(); |
6267 | MergeFrom(from); |
6268 | } |
6269 | |
6270 | bool LocatedBlocksProto::IsInitialized() const { |
6271 | if ((_has_bits_[0] & 0x0000000e) != 0x0000000e) return false; |
6272 | if (!::google::protobuf::internal::AllAreInitialized(this->blocks())) return false; |
6273 | if (has_lastblock()) { |
6274 | if (!this->lastblock_->IsInitialized()) return false; |
6275 | } |
6276 | return true; |
6277 | } |
6278 | |
6279 | void LocatedBlocksProto::Swap(LocatedBlocksProto* other) { |
6280 | if (other == this) return; |
6281 | InternalSwap(other); |
6282 | } |
6283 | void LocatedBlocksProto::InternalSwap(LocatedBlocksProto* other) { |
6284 | using std::swap; |
6285 | CastToBase(&blocks_)->InternalSwap(CastToBase(&other->blocks_)); |
6286 | swap(lastblock_, other->lastblock_); |
6287 | swap(filelength_, other->filelength_); |
6288 | swap(underconstruction_, other->underconstruction_); |
6289 | swap(islastblockcomplete_, other->islastblockcomplete_); |
6290 | swap(_has_bits_[0], other->_has_bits_[0]); |
6291 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6292 | } |
6293 | |
6294 | ::google::protobuf::Metadata LocatedBlocksProto::GetMetadata() const { |
6295 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
6296 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
6297 | } |
6298 | |
6299 | |
6300 | // =================================================================== |
6301 | |
6302 | void HdfsFileStatusProto::InitAsDefaultInstance() { |
6303 | ::Hdfs::Internal::_HdfsFileStatusProto_default_instance_._instance.get_mutable()->permission_ = const_cast< ::Hdfs::Internal::FsPermissionProto*>( |
6304 | ::Hdfs::Internal::FsPermissionProto::internal_default_instance()); |
6305 | ::Hdfs::Internal::_HdfsFileStatusProto_default_instance_._instance.get_mutable()->locations_ = const_cast< ::Hdfs::Internal::LocatedBlocksProto*>( |
6306 | ::Hdfs::Internal::LocatedBlocksProto::internal_default_instance()); |
6307 | } |
6308 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
6309 | const int HdfsFileStatusProto::kFileTypeFieldNumber; |
6310 | const int HdfsFileStatusProto::kPathFieldNumber; |
6311 | const int HdfsFileStatusProto::kLengthFieldNumber; |
6312 | const int HdfsFileStatusProto::kPermissionFieldNumber; |
6313 | const int HdfsFileStatusProto::kOwnerFieldNumber; |
6314 | const int HdfsFileStatusProto::kGroupFieldNumber; |
6315 | const int HdfsFileStatusProto::kModificationTimeFieldNumber; |
6316 | const int HdfsFileStatusProto::kAccessTimeFieldNumber; |
6317 | const int HdfsFileStatusProto::kSymlinkFieldNumber; |
6318 | const int HdfsFileStatusProto::kBlockReplicationFieldNumber; |
6319 | const int HdfsFileStatusProto::kBlocksizeFieldNumber; |
6320 | const int HdfsFileStatusProto::kLocationsFieldNumber; |
6321 | const int HdfsFileStatusProto::kFileIdFieldNumber; |
6322 | const int HdfsFileStatusProto::kChildrenNumFieldNumber; |
6323 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
6324 | |
6325 | HdfsFileStatusProto::HdfsFileStatusProto() |
6326 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
6327 | ::google::protobuf::internal::InitSCC( |
6328 | &protobuf_hdfs_2eproto::scc_info_HdfsFileStatusProto.base); |
6329 | SharedCtor(); |
6330 | // @@protoc_insertion_point(constructor:Hdfs.Internal.HdfsFileStatusProto) |
6331 | } |
6332 | HdfsFileStatusProto::HdfsFileStatusProto(const HdfsFileStatusProto& from) |
6333 | : ::google::protobuf::Message(), |
6334 | _internal_metadata_(NULL), |
6335 | _has_bits_(from._has_bits_) { |
6336 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6337 | path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6338 | if (from.has_path()) { |
6339 | path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.path_); |
6340 | } |
6341 | owner_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6342 | if (from.has_owner()) { |
6343 | owner_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_); |
6344 | } |
6345 | group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6346 | if (from.has_group()) { |
6347 | group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.group_); |
6348 | } |
6349 | symlink_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6350 | if (from.has_symlink()) { |
6351 | symlink_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.symlink_); |
6352 | } |
6353 | if (from.has_permission()) { |
6354 | permission_ = new ::Hdfs::Internal::FsPermissionProto(*from.permission_); |
6355 | } else { |
6356 | permission_ = NULL; |
6357 | } |
6358 | if (from.has_locations()) { |
6359 | locations_ = new ::Hdfs::Internal::LocatedBlocksProto(*from.locations_); |
6360 | } else { |
6361 | locations_ = NULL; |
6362 | } |
6363 | ::memcpy(&length_, &from.length_, |
6364 | static_cast<size_t>(reinterpret_cast<char*>(&childrennum_) - |
6365 | reinterpret_cast<char*>(&length_)) + sizeof(childrennum_)); |
6366 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.HdfsFileStatusProto) |
6367 | } |
6368 | |
6369 | void HdfsFileStatusProto::SharedCtor() { |
6370 | path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6371 | owner_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6372 | group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6373 | symlink_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6374 | ::memset(&permission_, 0, static_cast<size_t>( |
6375 | reinterpret_cast<char*>(&block_replication_) - |
6376 | reinterpret_cast<char*>(&permission_)) + sizeof(block_replication_)); |
6377 | filetype_ = 1; |
6378 | childrennum_ = -1; |
6379 | } |
6380 | |
6381 | HdfsFileStatusProto::~HdfsFileStatusProto() { |
6382 | // @@protoc_insertion_point(destructor:Hdfs.Internal.HdfsFileStatusProto) |
6383 | SharedDtor(); |
6384 | } |
6385 | |
6386 | void HdfsFileStatusProto::SharedDtor() { |
6387 | path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6388 | owner_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6389 | group_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6390 | symlink_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
6391 | if (this != internal_default_instance()) delete permission_; |
6392 | if (this != internal_default_instance()) delete locations_; |
6393 | } |
6394 | |
6395 | void HdfsFileStatusProto::SetCachedSize(int size) const { |
6396 | _cached_size_.Set(size); |
6397 | } |
6398 | const ::google::protobuf::Descriptor* HdfsFileStatusProto::descriptor() { |
6399 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
6400 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
6401 | } |
6402 | |
6403 | const HdfsFileStatusProto& HdfsFileStatusProto::default_instance() { |
6404 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_HdfsFileStatusProto.base); |
6405 | return *internal_default_instance(); |
6406 | } |
6407 | |
6408 | |
6409 | void HdfsFileStatusProto::Clear() { |
6410 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.HdfsFileStatusProto) |
6411 | ::google::protobuf::uint32 cached_has_bits = 0; |
6412 | // Prevent compiler warnings about cached_has_bits being unused |
6413 | (void) cached_has_bits; |
6414 | |
6415 | cached_has_bits = _has_bits_[0]; |
6416 | if (cached_has_bits & 63u) { |
6417 | if (cached_has_bits & 0x00000001u) { |
6418 | path_.ClearNonDefaultToEmptyNoArena(); |
6419 | } |
6420 | if (cached_has_bits & 0x00000002u) { |
6421 | owner_.ClearNonDefaultToEmptyNoArena(); |
6422 | } |
6423 | if (cached_has_bits & 0x00000004u) { |
6424 | group_.ClearNonDefaultToEmptyNoArena(); |
6425 | } |
6426 | if (cached_has_bits & 0x00000008u) { |
6427 | symlink_.ClearNonDefaultToEmptyNoArena(); |
6428 | } |
6429 | if (cached_has_bits & 0x00000010u) { |
6430 | GOOGLE_DCHECK(permission_ != NULL); |
6431 | permission_->Clear(); |
6432 | } |
6433 | if (cached_has_bits & 0x00000020u) { |
6434 | GOOGLE_DCHECK(locations_ != NULL); |
6435 | locations_->Clear(); |
6436 | } |
6437 | } |
6438 | if (cached_has_bits & 192u) { |
6439 | ::memset(&length_, 0, static_cast<size_t>( |
6440 | reinterpret_cast<char*>(&modification_time_) - |
6441 | reinterpret_cast<char*>(&length_)) + sizeof(modification_time_)); |
6442 | } |
6443 | if (cached_has_bits & 16128u) { |
6444 | ::memset(&access_time_, 0, static_cast<size_t>( |
6445 | reinterpret_cast<char*>(&block_replication_) - |
6446 | reinterpret_cast<char*>(&access_time_)) + sizeof(block_replication_)); |
6447 | filetype_ = 1; |
6448 | childrennum_ = -1; |
6449 | } |
6450 | _has_bits_.Clear(); |
6451 | _internal_metadata_.Clear(); |
6452 | } |
6453 | |
6454 | bool HdfsFileStatusProto::MergePartialFromCodedStream( |
6455 | ::google::protobuf::io::CodedInputStream* input) { |
6456 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
6457 | ::google::protobuf::uint32 tag; |
6458 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.HdfsFileStatusProto) |
6459 | for (;;) { |
6460 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
6461 | tag = p.first; |
6462 | if (!p.second) goto handle_unusual; |
6463 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
6464 | // required .Hdfs.Internal.HdfsFileStatusProto.FileType fileType = 1; |
6465 | case 1: { |
6466 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6467 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
6468 | int value; |
6469 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6470 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
6471 | input, &value))); |
6472 | if (::Hdfs::Internal::HdfsFileStatusProto_FileType_IsValid(value)) { |
6473 | set_filetype(static_cast< ::Hdfs::Internal::HdfsFileStatusProto_FileType >(value)); |
6474 | } else { |
6475 | mutable_unknown_fields()->AddVarint( |
6476 | 1, static_cast< ::google::protobuf::uint64>(value)); |
6477 | } |
6478 | } else { |
6479 | goto handle_unusual; |
6480 | } |
6481 | break; |
6482 | } |
6483 | |
6484 | // required bytes path = 2; |
6485 | case 2: { |
6486 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6487 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
6488 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
6489 | input, this->mutable_path())); |
6490 | } else { |
6491 | goto handle_unusual; |
6492 | } |
6493 | break; |
6494 | } |
6495 | |
6496 | // required uint64 length = 3; |
6497 | case 3: { |
6498 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6499 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
6500 | set_has_length(); |
6501 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6502 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
6503 | input, &length_))); |
6504 | } else { |
6505 | goto handle_unusual; |
6506 | } |
6507 | break; |
6508 | } |
6509 | |
6510 | // required .Hdfs.Internal.FsPermissionProto permission = 4; |
6511 | case 4: { |
6512 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6513 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
6514 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
6515 | input, mutable_permission())); |
6516 | } else { |
6517 | goto handle_unusual; |
6518 | } |
6519 | break; |
6520 | } |
6521 | |
6522 | // required string owner = 5; |
6523 | case 5: { |
6524 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6525 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
6526 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6527 | input, this->mutable_owner())); |
6528 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6529 | this->owner().data(), static_cast<int>(this->owner().length()), |
6530 | ::google::protobuf::internal::WireFormat::PARSE, |
6531 | "Hdfs.Internal.HdfsFileStatusProto.owner" ); |
6532 | } else { |
6533 | goto handle_unusual; |
6534 | } |
6535 | break; |
6536 | } |
6537 | |
6538 | // required string group = 6; |
6539 | case 6: { |
6540 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6541 | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
6542 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6543 | input, this->mutable_group())); |
6544 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6545 | this->group().data(), static_cast<int>(this->group().length()), |
6546 | ::google::protobuf::internal::WireFormat::PARSE, |
6547 | "Hdfs.Internal.HdfsFileStatusProto.group" ); |
6548 | } else { |
6549 | goto handle_unusual; |
6550 | } |
6551 | break; |
6552 | } |
6553 | |
6554 | // required uint64 modification_time = 7; |
6555 | case 7: { |
6556 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6557 | static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { |
6558 | set_has_modification_time(); |
6559 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6560 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
6561 | input, &modification_time_))); |
6562 | } else { |
6563 | goto handle_unusual; |
6564 | } |
6565 | break; |
6566 | } |
6567 | |
6568 | // required uint64 access_time = 8; |
6569 | case 8: { |
6570 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6571 | static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { |
6572 | set_has_access_time(); |
6573 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6574 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
6575 | input, &access_time_))); |
6576 | } else { |
6577 | goto handle_unusual; |
6578 | } |
6579 | break; |
6580 | } |
6581 | |
6582 | // optional bytes symlink = 9; |
6583 | case 9: { |
6584 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6585 | static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { |
6586 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
6587 | input, this->mutable_symlink())); |
6588 | } else { |
6589 | goto handle_unusual; |
6590 | } |
6591 | break; |
6592 | } |
6593 | |
6594 | // optional uint32 block_replication = 10 [default = 0]; |
6595 | case 10: { |
6596 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6597 | static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { |
6598 | set_has_block_replication(); |
6599 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6600 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
6601 | input, &block_replication_))); |
6602 | } else { |
6603 | goto handle_unusual; |
6604 | } |
6605 | break; |
6606 | } |
6607 | |
6608 | // optional uint64 blocksize = 11 [default = 0]; |
6609 | case 11: { |
6610 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6611 | static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) { |
6612 | set_has_blocksize(); |
6613 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6614 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
6615 | input, &blocksize_))); |
6616 | } else { |
6617 | goto handle_unusual; |
6618 | } |
6619 | break; |
6620 | } |
6621 | |
6622 | // optional .Hdfs.Internal.LocatedBlocksProto locations = 12; |
6623 | case 12: { |
6624 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6625 | static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { |
6626 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
6627 | input, mutable_locations())); |
6628 | } else { |
6629 | goto handle_unusual; |
6630 | } |
6631 | break; |
6632 | } |
6633 | |
6634 | // optional uint64 fileId = 13 [default = 0]; |
6635 | case 13: { |
6636 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6637 | static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) { |
6638 | set_has_fileid(); |
6639 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6640 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
6641 | input, &fileid_))); |
6642 | } else { |
6643 | goto handle_unusual; |
6644 | } |
6645 | break; |
6646 | } |
6647 | |
6648 | // optional int32 childrenNum = 14 [default = -1]; |
6649 | case 14: { |
6650 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6651 | static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) { |
6652 | set_has_childrennum(); |
6653 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6654 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
6655 | input, &childrennum_))); |
6656 | } else { |
6657 | goto handle_unusual; |
6658 | } |
6659 | break; |
6660 | } |
6661 | |
6662 | default: { |
6663 | handle_unusual: |
6664 | if (tag == 0) { |
6665 | goto success; |
6666 | } |
6667 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
6668 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6669 | break; |
6670 | } |
6671 | } |
6672 | } |
6673 | success: |
6674 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.HdfsFileStatusProto) |
6675 | return true; |
6676 | failure: |
6677 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.HdfsFileStatusProto) |
6678 | return false; |
6679 | #undef DO_ |
6680 | } |
6681 | |
6682 | void HdfsFileStatusProto::SerializeWithCachedSizes( |
6683 | ::google::protobuf::io::CodedOutputStream* output) const { |
6684 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.HdfsFileStatusProto) |
6685 | ::google::protobuf::uint32 cached_has_bits = 0; |
6686 | (void) cached_has_bits; |
6687 | |
6688 | cached_has_bits = _has_bits_[0]; |
6689 | // required .Hdfs.Internal.HdfsFileStatusProto.FileType fileType = 1; |
6690 | if (cached_has_bits & 0x00001000u) { |
6691 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
6692 | 1, this->filetype(), output); |
6693 | } |
6694 | |
6695 | // required bytes path = 2; |
6696 | if (cached_has_bits & 0x00000001u) { |
6697 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
6698 | 2, this->path(), output); |
6699 | } |
6700 | |
6701 | // required uint64 length = 3; |
6702 | if (cached_has_bits & 0x00000040u) { |
6703 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->length(), output); |
6704 | } |
6705 | |
6706 | // required .Hdfs.Internal.FsPermissionProto permission = 4; |
6707 | if (cached_has_bits & 0x00000010u) { |
6708 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6709 | 4, this->_internal_permission(), output); |
6710 | } |
6711 | |
6712 | // required string owner = 5; |
6713 | if (cached_has_bits & 0x00000002u) { |
6714 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6715 | this->owner().data(), static_cast<int>(this->owner().length()), |
6716 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
6717 | "Hdfs.Internal.HdfsFileStatusProto.owner" ); |
6718 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6719 | 5, this->owner(), output); |
6720 | } |
6721 | |
6722 | // required string group = 6; |
6723 | if (cached_has_bits & 0x00000004u) { |
6724 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6725 | this->group().data(), static_cast<int>(this->group().length()), |
6726 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
6727 | "Hdfs.Internal.HdfsFileStatusProto.group" ); |
6728 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6729 | 6, this->group(), output); |
6730 | } |
6731 | |
6732 | // required uint64 modification_time = 7; |
6733 | if (cached_has_bits & 0x00000080u) { |
6734 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->modification_time(), output); |
6735 | } |
6736 | |
6737 | // required uint64 access_time = 8; |
6738 | if (cached_has_bits & 0x00000100u) { |
6739 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->access_time(), output); |
6740 | } |
6741 | |
6742 | // optional bytes symlink = 9; |
6743 | if (cached_has_bits & 0x00000008u) { |
6744 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
6745 | 9, this->symlink(), output); |
6746 | } |
6747 | |
6748 | // optional uint32 block_replication = 10 [default = 0]; |
6749 | if (cached_has_bits & 0x00000800u) { |
6750 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->block_replication(), output); |
6751 | } |
6752 | |
6753 | // optional uint64 blocksize = 11 [default = 0]; |
6754 | if (cached_has_bits & 0x00000200u) { |
6755 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->blocksize(), output); |
6756 | } |
6757 | |
6758 | // optional .Hdfs.Internal.LocatedBlocksProto locations = 12; |
6759 | if (cached_has_bits & 0x00000020u) { |
6760 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6761 | 12, this->_internal_locations(), output); |
6762 | } |
6763 | |
6764 | // optional uint64 fileId = 13 [default = 0]; |
6765 | if (cached_has_bits & 0x00000400u) { |
6766 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(13, this->fileid(), output); |
6767 | } |
6768 | |
6769 | // optional int32 childrenNum = 14 [default = -1]; |
6770 | if (cached_has_bits & 0x00002000u) { |
6771 | ::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->childrennum(), output); |
6772 | } |
6773 | |
6774 | if (_internal_metadata_.have_unknown_fields()) { |
6775 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
6776 | _internal_metadata_.unknown_fields(), output); |
6777 | } |
6778 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.HdfsFileStatusProto) |
6779 | } |
6780 | |
6781 | ::google::protobuf::uint8* HdfsFileStatusProto::InternalSerializeWithCachedSizesToArray( |
6782 | bool deterministic, ::google::protobuf::uint8* target) const { |
6783 | (void)deterministic; // Unused |
6784 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.HdfsFileStatusProto) |
6785 | ::google::protobuf::uint32 cached_has_bits = 0; |
6786 | (void) cached_has_bits; |
6787 | |
6788 | cached_has_bits = _has_bits_[0]; |
6789 | // required .Hdfs.Internal.HdfsFileStatusProto.FileType fileType = 1; |
6790 | if (cached_has_bits & 0x00001000u) { |
6791 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
6792 | 1, this->filetype(), target); |
6793 | } |
6794 | |
6795 | // required bytes path = 2; |
6796 | if (cached_has_bits & 0x00000001u) { |
6797 | target = |
6798 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
6799 | 2, this->path(), target); |
6800 | } |
6801 | |
6802 | // required uint64 length = 3; |
6803 | if (cached_has_bits & 0x00000040u) { |
6804 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->length(), target); |
6805 | } |
6806 | |
6807 | // required .Hdfs.Internal.FsPermissionProto permission = 4; |
6808 | if (cached_has_bits & 0x00000010u) { |
6809 | target = ::google::protobuf::internal::WireFormatLite:: |
6810 | InternalWriteMessageToArray( |
6811 | 4, this->_internal_permission(), deterministic, target); |
6812 | } |
6813 | |
6814 | // required string owner = 5; |
6815 | if (cached_has_bits & 0x00000002u) { |
6816 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6817 | this->owner().data(), static_cast<int>(this->owner().length()), |
6818 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
6819 | "Hdfs.Internal.HdfsFileStatusProto.owner" ); |
6820 | target = |
6821 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6822 | 5, this->owner(), target); |
6823 | } |
6824 | |
6825 | // required string group = 6; |
6826 | if (cached_has_bits & 0x00000004u) { |
6827 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6828 | this->group().data(), static_cast<int>(this->group().length()), |
6829 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
6830 | "Hdfs.Internal.HdfsFileStatusProto.group" ); |
6831 | target = |
6832 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6833 | 6, this->group(), target); |
6834 | } |
6835 | |
6836 | // required uint64 modification_time = 7; |
6837 | if (cached_has_bits & 0x00000080u) { |
6838 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->modification_time(), target); |
6839 | } |
6840 | |
6841 | // required uint64 access_time = 8; |
6842 | if (cached_has_bits & 0x00000100u) { |
6843 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->access_time(), target); |
6844 | } |
6845 | |
6846 | // optional bytes symlink = 9; |
6847 | if (cached_has_bits & 0x00000008u) { |
6848 | target = |
6849 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
6850 | 9, this->symlink(), target); |
6851 | } |
6852 | |
6853 | // optional uint32 block_replication = 10 [default = 0]; |
6854 | if (cached_has_bits & 0x00000800u) { |
6855 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->block_replication(), target); |
6856 | } |
6857 | |
6858 | // optional uint64 blocksize = 11 [default = 0]; |
6859 | if (cached_has_bits & 0x00000200u) { |
6860 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->blocksize(), target); |
6861 | } |
6862 | |
6863 | // optional .Hdfs.Internal.LocatedBlocksProto locations = 12; |
6864 | if (cached_has_bits & 0x00000020u) { |
6865 | target = ::google::protobuf::internal::WireFormatLite:: |
6866 | InternalWriteMessageToArray( |
6867 | 12, this->_internal_locations(), deterministic, target); |
6868 | } |
6869 | |
6870 | // optional uint64 fileId = 13 [default = 0]; |
6871 | if (cached_has_bits & 0x00000400u) { |
6872 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(13, this->fileid(), target); |
6873 | } |
6874 | |
6875 | // optional int32 childrenNum = 14 [default = -1]; |
6876 | if (cached_has_bits & 0x00002000u) { |
6877 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->childrennum(), target); |
6878 | } |
6879 | |
6880 | if (_internal_metadata_.have_unknown_fields()) { |
6881 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
6882 | _internal_metadata_.unknown_fields(), target); |
6883 | } |
6884 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.HdfsFileStatusProto) |
6885 | return target; |
6886 | } |
6887 | |
6888 | size_t HdfsFileStatusProto::RequiredFieldsByteSizeFallback() const { |
6889 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.HdfsFileStatusProto) |
6890 | size_t total_size = 0; |
6891 | |
6892 | if (has_path()) { |
6893 | // required bytes path = 2; |
6894 | total_size += 1 + |
6895 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
6896 | this->path()); |
6897 | } |
6898 | |
6899 | if (has_owner()) { |
6900 | // required string owner = 5; |
6901 | total_size += 1 + |
6902 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6903 | this->owner()); |
6904 | } |
6905 | |
6906 | if (has_group()) { |
6907 | // required string group = 6; |
6908 | total_size += 1 + |
6909 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6910 | this->group()); |
6911 | } |
6912 | |
6913 | if (has_permission()) { |
6914 | // required .Hdfs.Internal.FsPermissionProto permission = 4; |
6915 | total_size += 1 + |
6916 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6917 | *permission_); |
6918 | } |
6919 | |
6920 | if (has_length()) { |
6921 | // required uint64 length = 3; |
6922 | total_size += 1 + |
6923 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6924 | this->length()); |
6925 | } |
6926 | |
6927 | if (has_modification_time()) { |
6928 | // required uint64 modification_time = 7; |
6929 | total_size += 1 + |
6930 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6931 | this->modification_time()); |
6932 | } |
6933 | |
6934 | if (has_access_time()) { |
6935 | // required uint64 access_time = 8; |
6936 | total_size += 1 + |
6937 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6938 | this->access_time()); |
6939 | } |
6940 | |
6941 | if (has_filetype()) { |
6942 | // required .Hdfs.Internal.HdfsFileStatusProto.FileType fileType = 1; |
6943 | total_size += 1 + |
6944 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->filetype()); |
6945 | } |
6946 | |
6947 | return total_size; |
6948 | } |
6949 | size_t HdfsFileStatusProto::ByteSizeLong() const { |
6950 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.HdfsFileStatusProto) |
6951 | size_t total_size = 0; |
6952 | |
6953 | if (_internal_metadata_.have_unknown_fields()) { |
6954 | total_size += |
6955 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
6956 | _internal_metadata_.unknown_fields()); |
6957 | } |
6958 | if (((_has_bits_[0] & 0x000011d7) ^ 0x000011d7) == 0) { // All required fields are present. |
6959 | // required bytes path = 2; |
6960 | total_size += 1 + |
6961 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
6962 | this->path()); |
6963 | |
6964 | // required string owner = 5; |
6965 | total_size += 1 + |
6966 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6967 | this->owner()); |
6968 | |
6969 | // required string group = 6; |
6970 | total_size += 1 + |
6971 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6972 | this->group()); |
6973 | |
6974 | // required .Hdfs.Internal.FsPermissionProto permission = 4; |
6975 | total_size += 1 + |
6976 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6977 | *permission_); |
6978 | |
6979 | // required uint64 length = 3; |
6980 | total_size += 1 + |
6981 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6982 | this->length()); |
6983 | |
6984 | // required uint64 modification_time = 7; |
6985 | total_size += 1 + |
6986 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6987 | this->modification_time()); |
6988 | |
6989 | // required uint64 access_time = 8; |
6990 | total_size += 1 + |
6991 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6992 | this->access_time()); |
6993 | |
6994 | // required .Hdfs.Internal.HdfsFileStatusProto.FileType fileType = 1; |
6995 | total_size += 1 + |
6996 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->filetype()); |
6997 | |
6998 | } else { |
6999 | total_size += RequiredFieldsByteSizeFallback(); |
7000 | } |
7001 | // optional bytes symlink = 9; |
7002 | if (has_symlink()) { |
7003 | total_size += 1 + |
7004 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
7005 | this->symlink()); |
7006 | } |
7007 | |
7008 | // optional .Hdfs.Internal.LocatedBlocksProto locations = 12; |
7009 | if (has_locations()) { |
7010 | total_size += 1 + |
7011 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
7012 | *locations_); |
7013 | } |
7014 | |
7015 | if (_has_bits_[8 / 32] & 3584u) { |
7016 | // optional uint64 blocksize = 11 [default = 0]; |
7017 | if (has_blocksize()) { |
7018 | total_size += 1 + |
7019 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
7020 | this->blocksize()); |
7021 | } |
7022 | |
7023 | // optional uint64 fileId = 13 [default = 0]; |
7024 | if (has_fileid()) { |
7025 | total_size += 1 + |
7026 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
7027 | this->fileid()); |
7028 | } |
7029 | |
7030 | // optional uint32 block_replication = 10 [default = 0]; |
7031 | if (has_block_replication()) { |
7032 | total_size += 1 + |
7033 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
7034 | this->block_replication()); |
7035 | } |
7036 | |
7037 | } |
7038 | // optional int32 childrenNum = 14 [default = -1]; |
7039 | if (has_childrennum()) { |
7040 | total_size += 1 + |
7041 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
7042 | this->childrennum()); |
7043 | } |
7044 | |
7045 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7046 | SetCachedSize(cached_size); |
7047 | return total_size; |
7048 | } |
7049 | |
7050 | void HdfsFileStatusProto::MergeFrom(const ::google::protobuf::Message& from) { |
7051 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.HdfsFileStatusProto) |
7052 | GOOGLE_DCHECK_NE(&from, this); |
7053 | const HdfsFileStatusProto* source = |
7054 | ::google::protobuf::internal::DynamicCastToGenerated<const HdfsFileStatusProto>( |
7055 | &from); |
7056 | if (source == NULL) { |
7057 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.HdfsFileStatusProto) |
7058 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7059 | } else { |
7060 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.HdfsFileStatusProto) |
7061 | MergeFrom(*source); |
7062 | } |
7063 | } |
7064 | |
7065 | void HdfsFileStatusProto::MergeFrom(const HdfsFileStatusProto& from) { |
7066 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.HdfsFileStatusProto) |
7067 | GOOGLE_DCHECK_NE(&from, this); |
7068 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7069 | ::google::protobuf::uint32 cached_has_bits = 0; |
7070 | (void) cached_has_bits; |
7071 | |
7072 | cached_has_bits = from._has_bits_[0]; |
7073 | if (cached_has_bits & 255u) { |
7074 | if (cached_has_bits & 0x00000001u) { |
7075 | set_has_path(); |
7076 | path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.path_); |
7077 | } |
7078 | if (cached_has_bits & 0x00000002u) { |
7079 | set_has_owner(); |
7080 | owner_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_); |
7081 | } |
7082 | if (cached_has_bits & 0x00000004u) { |
7083 | set_has_group(); |
7084 | group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.group_); |
7085 | } |
7086 | if (cached_has_bits & 0x00000008u) { |
7087 | set_has_symlink(); |
7088 | symlink_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.symlink_); |
7089 | } |
7090 | if (cached_has_bits & 0x00000010u) { |
7091 | mutable_permission()->::Hdfs::Internal::FsPermissionProto::MergeFrom(from.permission()); |
7092 | } |
7093 | if (cached_has_bits & 0x00000020u) { |
7094 | mutable_locations()->::Hdfs::Internal::LocatedBlocksProto::MergeFrom(from.locations()); |
7095 | } |
7096 | if (cached_has_bits & 0x00000040u) { |
7097 | length_ = from.length_; |
7098 | } |
7099 | if (cached_has_bits & 0x00000080u) { |
7100 | modification_time_ = from.modification_time_; |
7101 | } |
7102 | _has_bits_[0] |= cached_has_bits; |
7103 | } |
7104 | if (cached_has_bits & 16128u) { |
7105 | if (cached_has_bits & 0x00000100u) { |
7106 | access_time_ = from.access_time_; |
7107 | } |
7108 | if (cached_has_bits & 0x00000200u) { |
7109 | blocksize_ = from.blocksize_; |
7110 | } |
7111 | if (cached_has_bits & 0x00000400u) { |
7112 | fileid_ = from.fileid_; |
7113 | } |
7114 | if (cached_has_bits & 0x00000800u) { |
7115 | block_replication_ = from.block_replication_; |
7116 | } |
7117 | if (cached_has_bits & 0x00001000u) { |
7118 | filetype_ = from.filetype_; |
7119 | } |
7120 | if (cached_has_bits & 0x00002000u) { |
7121 | childrennum_ = from.childrennum_; |
7122 | } |
7123 | _has_bits_[0] |= cached_has_bits; |
7124 | } |
7125 | } |
7126 | |
7127 | void HdfsFileStatusProto::CopyFrom(const ::google::protobuf::Message& from) { |
7128 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.HdfsFileStatusProto) |
7129 | if (&from == this) return; |
7130 | Clear(); |
7131 | MergeFrom(from); |
7132 | } |
7133 | |
7134 | void HdfsFileStatusProto::CopyFrom(const HdfsFileStatusProto& from) { |
7135 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.HdfsFileStatusProto) |
7136 | if (&from == this) return; |
7137 | Clear(); |
7138 | MergeFrom(from); |
7139 | } |
7140 | |
7141 | bool HdfsFileStatusProto::IsInitialized() const { |
7142 | if ((_has_bits_[0] & 0x000011d7) != 0x000011d7) return false; |
7143 | if (has_permission()) { |
7144 | if (!this->permission_->IsInitialized()) return false; |
7145 | } |
7146 | if (has_locations()) { |
7147 | if (!this->locations_->IsInitialized()) return false; |
7148 | } |
7149 | return true; |
7150 | } |
7151 | |
7152 | void HdfsFileStatusProto::Swap(HdfsFileStatusProto* other) { |
7153 | if (other == this) return; |
7154 | InternalSwap(other); |
7155 | } |
7156 | void HdfsFileStatusProto::InternalSwap(HdfsFileStatusProto* other) { |
7157 | using std::swap; |
7158 | path_.Swap(&other->path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7159 | GetArenaNoVirtual()); |
7160 | owner_.Swap(&other->owner_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7161 | GetArenaNoVirtual()); |
7162 | group_.Swap(&other->group_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7163 | GetArenaNoVirtual()); |
7164 | symlink_.Swap(&other->symlink_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7165 | GetArenaNoVirtual()); |
7166 | swap(permission_, other->permission_); |
7167 | swap(locations_, other->locations_); |
7168 | swap(length_, other->length_); |
7169 | swap(modification_time_, other->modification_time_); |
7170 | swap(access_time_, other->access_time_); |
7171 | swap(blocksize_, other->blocksize_); |
7172 | swap(fileid_, other->fileid_); |
7173 | swap(block_replication_, other->block_replication_); |
7174 | swap(filetype_, other->filetype_); |
7175 | swap(childrennum_, other->childrennum_); |
7176 | swap(_has_bits_[0], other->_has_bits_[0]); |
7177 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7178 | } |
7179 | |
7180 | ::google::protobuf::Metadata HdfsFileStatusProto::GetMetadata() const { |
7181 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
7182 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
7183 | } |
7184 | |
7185 | |
7186 | // =================================================================== |
7187 | |
7188 | void FsServerDefaultsProto::InitAsDefaultInstance() { |
7189 | } |
7190 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7191 | const int FsServerDefaultsProto::kBlockSizeFieldNumber; |
7192 | const int FsServerDefaultsProto::kBytesPerChecksumFieldNumber; |
7193 | const int FsServerDefaultsProto::kWritePacketSizeFieldNumber; |
7194 | const int FsServerDefaultsProto::kReplicationFieldNumber; |
7195 | const int FsServerDefaultsProto::kFileBufferSizeFieldNumber; |
7196 | const int FsServerDefaultsProto::kEncryptDataTransferFieldNumber; |
7197 | const int FsServerDefaultsProto::kTrashIntervalFieldNumber; |
7198 | const int FsServerDefaultsProto::kChecksumTypeFieldNumber; |
7199 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7200 | |
7201 | FsServerDefaultsProto::FsServerDefaultsProto() |
7202 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
7203 | ::google::protobuf::internal::InitSCC( |
7204 | &protobuf_hdfs_2eproto::scc_info_FsServerDefaultsProto.base); |
7205 | SharedCtor(); |
7206 | // @@protoc_insertion_point(constructor:Hdfs.Internal.FsServerDefaultsProto) |
7207 | } |
7208 | FsServerDefaultsProto::FsServerDefaultsProto(const FsServerDefaultsProto& from) |
7209 | : ::google::protobuf::Message(), |
7210 | _internal_metadata_(NULL), |
7211 | _has_bits_(from._has_bits_) { |
7212 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7213 | ::memcpy(&blocksize_, &from.blocksize_, |
7214 | static_cast<size_t>(reinterpret_cast<char*>(&checksumtype_) - |
7215 | reinterpret_cast<char*>(&blocksize_)) + sizeof(checksumtype_)); |
7216 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.FsServerDefaultsProto) |
7217 | } |
7218 | |
7219 | void FsServerDefaultsProto::SharedCtor() { |
7220 | ::memset(&blocksize_, 0, static_cast<size_t>( |
7221 | reinterpret_cast<char*>(&encryptdatatransfer_) - |
7222 | reinterpret_cast<char*>(&blocksize_)) + sizeof(encryptdatatransfer_)); |
7223 | checksumtype_ = 1; |
7224 | } |
7225 | |
7226 | FsServerDefaultsProto::~FsServerDefaultsProto() { |
7227 | // @@protoc_insertion_point(destructor:Hdfs.Internal.FsServerDefaultsProto) |
7228 | SharedDtor(); |
7229 | } |
7230 | |
7231 | void FsServerDefaultsProto::SharedDtor() { |
7232 | } |
7233 | |
7234 | void FsServerDefaultsProto::SetCachedSize(int size) const { |
7235 | _cached_size_.Set(size); |
7236 | } |
7237 | const ::google::protobuf::Descriptor* FsServerDefaultsProto::descriptor() { |
7238 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
7239 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
7240 | } |
7241 | |
7242 | const FsServerDefaultsProto& FsServerDefaultsProto::default_instance() { |
7243 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_FsServerDefaultsProto.base); |
7244 | return *internal_default_instance(); |
7245 | } |
7246 | |
7247 | |
7248 | void FsServerDefaultsProto::Clear() { |
7249 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.FsServerDefaultsProto) |
7250 | ::google::protobuf::uint32 cached_has_bits = 0; |
7251 | // Prevent compiler warnings about cached_has_bits being unused |
7252 | (void) cached_has_bits; |
7253 | |
7254 | cached_has_bits = _has_bits_[0]; |
7255 | if (cached_has_bits & 255u) { |
7256 | ::memset(&blocksize_, 0, static_cast<size_t>( |
7257 | reinterpret_cast<char*>(&encryptdatatransfer_) - |
7258 | reinterpret_cast<char*>(&blocksize_)) + sizeof(encryptdatatransfer_)); |
7259 | checksumtype_ = 1; |
7260 | } |
7261 | _has_bits_.Clear(); |
7262 | _internal_metadata_.Clear(); |
7263 | } |
7264 | |
7265 | bool FsServerDefaultsProto::MergePartialFromCodedStream( |
7266 | ::google::protobuf::io::CodedInputStream* input) { |
7267 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
7268 | ::google::protobuf::uint32 tag; |
7269 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.FsServerDefaultsProto) |
7270 | for (;;) { |
7271 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7272 | tag = p.first; |
7273 | if (!p.second) goto handle_unusual; |
7274 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7275 | // required uint64 blockSize = 1; |
7276 | case 1: { |
7277 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7278 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
7279 | set_has_blocksize(); |
7280 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7281 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
7282 | input, &blocksize_))); |
7283 | } else { |
7284 | goto handle_unusual; |
7285 | } |
7286 | break; |
7287 | } |
7288 | |
7289 | // required uint32 bytesPerChecksum = 2; |
7290 | case 2: { |
7291 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7292 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
7293 | set_has_bytesperchecksum(); |
7294 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7295 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
7296 | input, &bytesperchecksum_))); |
7297 | } else { |
7298 | goto handle_unusual; |
7299 | } |
7300 | break; |
7301 | } |
7302 | |
7303 | // required uint32 writePacketSize = 3; |
7304 | case 3: { |
7305 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7306 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
7307 | set_has_writepacketsize(); |
7308 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7309 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
7310 | input, &writepacketsize_))); |
7311 | } else { |
7312 | goto handle_unusual; |
7313 | } |
7314 | break; |
7315 | } |
7316 | |
7317 | // required uint32 replication = 4; |
7318 | case 4: { |
7319 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7320 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
7321 | set_has_replication(); |
7322 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7323 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
7324 | input, &replication_))); |
7325 | } else { |
7326 | goto handle_unusual; |
7327 | } |
7328 | break; |
7329 | } |
7330 | |
7331 | // required uint32 fileBufferSize = 5; |
7332 | case 5: { |
7333 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7334 | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
7335 | set_has_filebuffersize(); |
7336 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7337 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
7338 | input, &filebuffersize_))); |
7339 | } else { |
7340 | goto handle_unusual; |
7341 | } |
7342 | break; |
7343 | } |
7344 | |
7345 | // optional bool encryptDataTransfer = 6 [default = false]; |
7346 | case 6: { |
7347 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7348 | static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { |
7349 | set_has_encryptdatatransfer(); |
7350 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7351 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
7352 | input, &encryptdatatransfer_))); |
7353 | } else { |
7354 | goto handle_unusual; |
7355 | } |
7356 | break; |
7357 | } |
7358 | |
7359 | // optional uint64 trashInterval = 7 [default = 0]; |
7360 | case 7: { |
7361 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7362 | static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { |
7363 | set_has_trashinterval(); |
7364 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7365 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
7366 | input, &trashinterval_))); |
7367 | } else { |
7368 | goto handle_unusual; |
7369 | } |
7370 | break; |
7371 | } |
7372 | |
7373 | // optional .Hdfs.Internal.ChecksumTypeProto checksumType = 8 [default = CHECKSUM_CRC32]; |
7374 | case 8: { |
7375 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7376 | static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { |
7377 | int value; |
7378 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7379 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
7380 | input, &value))); |
7381 | if (::Hdfs::Internal::ChecksumTypeProto_IsValid(value)) { |
7382 | set_checksumtype(static_cast< ::Hdfs::Internal::ChecksumTypeProto >(value)); |
7383 | } else { |
7384 | mutable_unknown_fields()->AddVarint( |
7385 | 8, static_cast< ::google::protobuf::uint64>(value)); |
7386 | } |
7387 | } else { |
7388 | goto handle_unusual; |
7389 | } |
7390 | break; |
7391 | } |
7392 | |
7393 | default: { |
7394 | handle_unusual: |
7395 | if (tag == 0) { |
7396 | goto success; |
7397 | } |
7398 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
7399 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7400 | break; |
7401 | } |
7402 | } |
7403 | } |
7404 | success: |
7405 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.FsServerDefaultsProto) |
7406 | return true; |
7407 | failure: |
7408 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.FsServerDefaultsProto) |
7409 | return false; |
7410 | #undef DO_ |
7411 | } |
7412 | |
7413 | void FsServerDefaultsProto::SerializeWithCachedSizes( |
7414 | ::google::protobuf::io::CodedOutputStream* output) const { |
7415 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.FsServerDefaultsProto) |
7416 | ::google::protobuf::uint32 cached_has_bits = 0; |
7417 | (void) cached_has_bits; |
7418 | |
7419 | cached_has_bits = _has_bits_[0]; |
7420 | // required uint64 blockSize = 1; |
7421 | if (cached_has_bits & 0x00000001u) { |
7422 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->blocksize(), output); |
7423 | } |
7424 | |
7425 | // required uint32 bytesPerChecksum = 2; |
7426 | if (cached_has_bits & 0x00000002u) { |
7427 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->bytesperchecksum(), output); |
7428 | } |
7429 | |
7430 | // required uint32 writePacketSize = 3; |
7431 | if (cached_has_bits & 0x00000004u) { |
7432 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->writepacketsize(), output); |
7433 | } |
7434 | |
7435 | // required uint32 replication = 4; |
7436 | if (cached_has_bits & 0x00000008u) { |
7437 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->replication(), output); |
7438 | } |
7439 | |
7440 | // required uint32 fileBufferSize = 5; |
7441 | if (cached_has_bits & 0x00000010u) { |
7442 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->filebuffersize(), output); |
7443 | } |
7444 | |
7445 | // optional bool encryptDataTransfer = 6 [default = false]; |
7446 | if (cached_has_bits & 0x00000040u) { |
7447 | ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->encryptdatatransfer(), output); |
7448 | } |
7449 | |
7450 | // optional uint64 trashInterval = 7 [default = 0]; |
7451 | if (cached_has_bits & 0x00000020u) { |
7452 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->trashinterval(), output); |
7453 | } |
7454 | |
7455 | // optional .Hdfs.Internal.ChecksumTypeProto checksumType = 8 [default = CHECKSUM_CRC32]; |
7456 | if (cached_has_bits & 0x00000080u) { |
7457 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
7458 | 8, this->checksumtype(), output); |
7459 | } |
7460 | |
7461 | if (_internal_metadata_.have_unknown_fields()) { |
7462 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
7463 | _internal_metadata_.unknown_fields(), output); |
7464 | } |
7465 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.FsServerDefaultsProto) |
7466 | } |
7467 | |
7468 | ::google::protobuf::uint8* FsServerDefaultsProto::InternalSerializeWithCachedSizesToArray( |
7469 | bool deterministic, ::google::protobuf::uint8* target) const { |
7470 | (void)deterministic; // Unused |
7471 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.FsServerDefaultsProto) |
7472 | ::google::protobuf::uint32 cached_has_bits = 0; |
7473 | (void) cached_has_bits; |
7474 | |
7475 | cached_has_bits = _has_bits_[0]; |
7476 | // required uint64 blockSize = 1; |
7477 | if (cached_has_bits & 0x00000001u) { |
7478 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->blocksize(), target); |
7479 | } |
7480 | |
7481 | // required uint32 bytesPerChecksum = 2; |
7482 | if (cached_has_bits & 0x00000002u) { |
7483 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->bytesperchecksum(), target); |
7484 | } |
7485 | |
7486 | // required uint32 writePacketSize = 3; |
7487 | if (cached_has_bits & 0x00000004u) { |
7488 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->writepacketsize(), target); |
7489 | } |
7490 | |
7491 | // required uint32 replication = 4; |
7492 | if (cached_has_bits & 0x00000008u) { |
7493 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->replication(), target); |
7494 | } |
7495 | |
7496 | // required uint32 fileBufferSize = 5; |
7497 | if (cached_has_bits & 0x00000010u) { |
7498 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->filebuffersize(), target); |
7499 | } |
7500 | |
7501 | // optional bool encryptDataTransfer = 6 [default = false]; |
7502 | if (cached_has_bits & 0x00000040u) { |
7503 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->encryptdatatransfer(), target); |
7504 | } |
7505 | |
7506 | // optional uint64 trashInterval = 7 [default = 0]; |
7507 | if (cached_has_bits & 0x00000020u) { |
7508 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->trashinterval(), target); |
7509 | } |
7510 | |
7511 | // optional .Hdfs.Internal.ChecksumTypeProto checksumType = 8 [default = CHECKSUM_CRC32]; |
7512 | if (cached_has_bits & 0x00000080u) { |
7513 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
7514 | 8, this->checksumtype(), target); |
7515 | } |
7516 | |
7517 | if (_internal_metadata_.have_unknown_fields()) { |
7518 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
7519 | _internal_metadata_.unknown_fields(), target); |
7520 | } |
7521 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.FsServerDefaultsProto) |
7522 | return target; |
7523 | } |
7524 | |
7525 | size_t FsServerDefaultsProto::RequiredFieldsByteSizeFallback() const { |
7526 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.FsServerDefaultsProto) |
7527 | size_t total_size = 0; |
7528 | |
7529 | if (has_blocksize()) { |
7530 | // required uint64 blockSize = 1; |
7531 | total_size += 1 + |
7532 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
7533 | this->blocksize()); |
7534 | } |
7535 | |
7536 | if (has_bytesperchecksum()) { |
7537 | // required uint32 bytesPerChecksum = 2; |
7538 | total_size += 1 + |
7539 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
7540 | this->bytesperchecksum()); |
7541 | } |
7542 | |
7543 | if (has_writepacketsize()) { |
7544 | // required uint32 writePacketSize = 3; |
7545 | total_size += 1 + |
7546 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
7547 | this->writepacketsize()); |
7548 | } |
7549 | |
7550 | if (has_replication()) { |
7551 | // required uint32 replication = 4; |
7552 | total_size += 1 + |
7553 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
7554 | this->replication()); |
7555 | } |
7556 | |
7557 | if (has_filebuffersize()) { |
7558 | // required uint32 fileBufferSize = 5; |
7559 | total_size += 1 + |
7560 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
7561 | this->filebuffersize()); |
7562 | } |
7563 | |
7564 | return total_size; |
7565 | } |
7566 | size_t FsServerDefaultsProto::ByteSizeLong() const { |
7567 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.FsServerDefaultsProto) |
7568 | size_t total_size = 0; |
7569 | |
7570 | if (_internal_metadata_.have_unknown_fields()) { |
7571 | total_size += |
7572 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
7573 | _internal_metadata_.unknown_fields()); |
7574 | } |
7575 | if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present. |
7576 | // required uint64 blockSize = 1; |
7577 | total_size += 1 + |
7578 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
7579 | this->blocksize()); |
7580 | |
7581 | // required uint32 bytesPerChecksum = 2; |
7582 | total_size += 1 + |
7583 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
7584 | this->bytesperchecksum()); |
7585 | |
7586 | // required uint32 writePacketSize = 3; |
7587 | total_size += 1 + |
7588 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
7589 | this->writepacketsize()); |
7590 | |
7591 | // required uint32 replication = 4; |
7592 | total_size += 1 + |
7593 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
7594 | this->replication()); |
7595 | |
7596 | // required uint32 fileBufferSize = 5; |
7597 | total_size += 1 + |
7598 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
7599 | this->filebuffersize()); |
7600 | |
7601 | } else { |
7602 | total_size += RequiredFieldsByteSizeFallback(); |
7603 | } |
7604 | if (_has_bits_[0 / 32] & 224u) { |
7605 | // optional uint64 trashInterval = 7 [default = 0]; |
7606 | if (has_trashinterval()) { |
7607 | total_size += 1 + |
7608 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
7609 | this->trashinterval()); |
7610 | } |
7611 | |
7612 | // optional bool encryptDataTransfer = 6 [default = false]; |
7613 | if (has_encryptdatatransfer()) { |
7614 | total_size += 1 + 1; |
7615 | } |
7616 | |
7617 | // optional .Hdfs.Internal.ChecksumTypeProto checksumType = 8 [default = CHECKSUM_CRC32]; |
7618 | if (has_checksumtype()) { |
7619 | total_size += 1 + |
7620 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->checksumtype()); |
7621 | } |
7622 | |
7623 | } |
7624 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7625 | SetCachedSize(cached_size); |
7626 | return total_size; |
7627 | } |
7628 | |
7629 | void FsServerDefaultsProto::MergeFrom(const ::google::protobuf::Message& from) { |
7630 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.FsServerDefaultsProto) |
7631 | GOOGLE_DCHECK_NE(&from, this); |
7632 | const FsServerDefaultsProto* source = |
7633 | ::google::protobuf::internal::DynamicCastToGenerated<const FsServerDefaultsProto>( |
7634 | &from); |
7635 | if (source == NULL) { |
7636 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.FsServerDefaultsProto) |
7637 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7638 | } else { |
7639 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.FsServerDefaultsProto) |
7640 | MergeFrom(*source); |
7641 | } |
7642 | } |
7643 | |
7644 | void FsServerDefaultsProto::MergeFrom(const FsServerDefaultsProto& from) { |
7645 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.FsServerDefaultsProto) |
7646 | GOOGLE_DCHECK_NE(&from, this); |
7647 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7648 | ::google::protobuf::uint32 cached_has_bits = 0; |
7649 | (void) cached_has_bits; |
7650 | |
7651 | cached_has_bits = from._has_bits_[0]; |
7652 | if (cached_has_bits & 255u) { |
7653 | if (cached_has_bits & 0x00000001u) { |
7654 | blocksize_ = from.blocksize_; |
7655 | } |
7656 | if (cached_has_bits & 0x00000002u) { |
7657 | bytesperchecksum_ = from.bytesperchecksum_; |
7658 | } |
7659 | if (cached_has_bits & 0x00000004u) { |
7660 | writepacketsize_ = from.writepacketsize_; |
7661 | } |
7662 | if (cached_has_bits & 0x00000008u) { |
7663 | replication_ = from.replication_; |
7664 | } |
7665 | if (cached_has_bits & 0x00000010u) { |
7666 | filebuffersize_ = from.filebuffersize_; |
7667 | } |
7668 | if (cached_has_bits & 0x00000020u) { |
7669 | trashinterval_ = from.trashinterval_; |
7670 | } |
7671 | if (cached_has_bits & 0x00000040u) { |
7672 | encryptdatatransfer_ = from.encryptdatatransfer_; |
7673 | } |
7674 | if (cached_has_bits & 0x00000080u) { |
7675 | checksumtype_ = from.checksumtype_; |
7676 | } |
7677 | _has_bits_[0] |= cached_has_bits; |
7678 | } |
7679 | } |
7680 | |
7681 | void FsServerDefaultsProto::CopyFrom(const ::google::protobuf::Message& from) { |
7682 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.FsServerDefaultsProto) |
7683 | if (&from == this) return; |
7684 | Clear(); |
7685 | MergeFrom(from); |
7686 | } |
7687 | |
7688 | void FsServerDefaultsProto::CopyFrom(const FsServerDefaultsProto& from) { |
7689 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.FsServerDefaultsProto) |
7690 | if (&from == this) return; |
7691 | Clear(); |
7692 | MergeFrom(from); |
7693 | } |
7694 | |
7695 | bool FsServerDefaultsProto::IsInitialized() const { |
7696 | if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; |
7697 | return true; |
7698 | } |
7699 | |
7700 | void FsServerDefaultsProto::Swap(FsServerDefaultsProto* other) { |
7701 | if (other == this) return; |
7702 | InternalSwap(other); |
7703 | } |
7704 | void FsServerDefaultsProto::InternalSwap(FsServerDefaultsProto* other) { |
7705 | using std::swap; |
7706 | swap(blocksize_, other->blocksize_); |
7707 | swap(bytesperchecksum_, other->bytesperchecksum_); |
7708 | swap(writepacketsize_, other->writepacketsize_); |
7709 | swap(replication_, other->replication_); |
7710 | swap(filebuffersize_, other->filebuffersize_); |
7711 | swap(trashinterval_, other->trashinterval_); |
7712 | swap(encryptdatatransfer_, other->encryptdatatransfer_); |
7713 | swap(checksumtype_, other->checksumtype_); |
7714 | swap(_has_bits_[0], other->_has_bits_[0]); |
7715 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7716 | } |
7717 | |
7718 | ::google::protobuf::Metadata FsServerDefaultsProto::GetMetadata() const { |
7719 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
7720 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
7721 | } |
7722 | |
7723 | |
7724 | // =================================================================== |
7725 | |
7726 | void DirectoryListingProto::InitAsDefaultInstance() { |
7727 | } |
7728 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7729 | const int DirectoryListingProto::kPartialListingFieldNumber; |
7730 | const int DirectoryListingProto::kRemainingEntriesFieldNumber; |
7731 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7732 | |
7733 | DirectoryListingProto::DirectoryListingProto() |
7734 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
7735 | ::google::protobuf::internal::InitSCC( |
7736 | &protobuf_hdfs_2eproto::scc_info_DirectoryListingProto.base); |
7737 | SharedCtor(); |
7738 | // @@protoc_insertion_point(constructor:Hdfs.Internal.DirectoryListingProto) |
7739 | } |
7740 | DirectoryListingProto::DirectoryListingProto(const DirectoryListingProto& from) |
7741 | : ::google::protobuf::Message(), |
7742 | _internal_metadata_(NULL), |
7743 | _has_bits_(from._has_bits_), |
7744 | partiallisting_(from.partiallisting_) { |
7745 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7746 | remainingentries_ = from.remainingentries_; |
7747 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.DirectoryListingProto) |
7748 | } |
7749 | |
7750 | void DirectoryListingProto::SharedCtor() { |
7751 | remainingentries_ = 0u; |
7752 | } |
7753 | |
7754 | DirectoryListingProto::~DirectoryListingProto() { |
7755 | // @@protoc_insertion_point(destructor:Hdfs.Internal.DirectoryListingProto) |
7756 | SharedDtor(); |
7757 | } |
7758 | |
7759 | void DirectoryListingProto::SharedDtor() { |
7760 | } |
7761 | |
7762 | void DirectoryListingProto::SetCachedSize(int size) const { |
7763 | _cached_size_.Set(size); |
7764 | } |
7765 | const ::google::protobuf::Descriptor* DirectoryListingProto::descriptor() { |
7766 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
7767 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
7768 | } |
7769 | |
7770 | const DirectoryListingProto& DirectoryListingProto::default_instance() { |
7771 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_DirectoryListingProto.base); |
7772 | return *internal_default_instance(); |
7773 | } |
7774 | |
7775 | |
7776 | void DirectoryListingProto::Clear() { |
7777 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.DirectoryListingProto) |
7778 | ::google::protobuf::uint32 cached_has_bits = 0; |
7779 | // Prevent compiler warnings about cached_has_bits being unused |
7780 | (void) cached_has_bits; |
7781 | |
7782 | partiallisting_.Clear(); |
7783 | remainingentries_ = 0u; |
7784 | _has_bits_.Clear(); |
7785 | _internal_metadata_.Clear(); |
7786 | } |
7787 | |
7788 | bool DirectoryListingProto::MergePartialFromCodedStream( |
7789 | ::google::protobuf::io::CodedInputStream* input) { |
7790 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
7791 | ::google::protobuf::uint32 tag; |
7792 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.DirectoryListingProto) |
7793 | for (;;) { |
7794 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7795 | tag = p.first; |
7796 | if (!p.second) goto handle_unusual; |
7797 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7798 | // repeated .Hdfs.Internal.HdfsFileStatusProto partialListing = 1; |
7799 | case 1: { |
7800 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7801 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
7802 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
7803 | input, add_partiallisting())); |
7804 | } else { |
7805 | goto handle_unusual; |
7806 | } |
7807 | break; |
7808 | } |
7809 | |
7810 | // required uint32 remainingEntries = 2; |
7811 | case 2: { |
7812 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7813 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
7814 | set_has_remainingentries(); |
7815 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7816 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
7817 | input, &remainingentries_))); |
7818 | } else { |
7819 | goto handle_unusual; |
7820 | } |
7821 | break; |
7822 | } |
7823 | |
7824 | default: { |
7825 | handle_unusual: |
7826 | if (tag == 0) { |
7827 | goto success; |
7828 | } |
7829 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
7830 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7831 | break; |
7832 | } |
7833 | } |
7834 | } |
7835 | success: |
7836 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.DirectoryListingProto) |
7837 | return true; |
7838 | failure: |
7839 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.DirectoryListingProto) |
7840 | return false; |
7841 | #undef DO_ |
7842 | } |
7843 | |
7844 | void DirectoryListingProto::SerializeWithCachedSizes( |
7845 | ::google::protobuf::io::CodedOutputStream* output) const { |
7846 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.DirectoryListingProto) |
7847 | ::google::protobuf::uint32 cached_has_bits = 0; |
7848 | (void) cached_has_bits; |
7849 | |
7850 | // repeated .Hdfs.Internal.HdfsFileStatusProto partialListing = 1; |
7851 | for (unsigned int i = 0, |
7852 | n = static_cast<unsigned int>(this->partiallisting_size()); i < n; i++) { |
7853 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
7854 | 1, |
7855 | this->partiallisting(static_cast<int>(i)), |
7856 | output); |
7857 | } |
7858 | |
7859 | cached_has_bits = _has_bits_[0]; |
7860 | // required uint32 remainingEntries = 2; |
7861 | if (cached_has_bits & 0x00000001u) { |
7862 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->remainingentries(), output); |
7863 | } |
7864 | |
7865 | if (_internal_metadata_.have_unknown_fields()) { |
7866 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
7867 | _internal_metadata_.unknown_fields(), output); |
7868 | } |
7869 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.DirectoryListingProto) |
7870 | } |
7871 | |
7872 | ::google::protobuf::uint8* DirectoryListingProto::InternalSerializeWithCachedSizesToArray( |
7873 | bool deterministic, ::google::protobuf::uint8* target) const { |
7874 | (void)deterministic; // Unused |
7875 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.DirectoryListingProto) |
7876 | ::google::protobuf::uint32 cached_has_bits = 0; |
7877 | (void) cached_has_bits; |
7878 | |
7879 | // repeated .Hdfs.Internal.HdfsFileStatusProto partialListing = 1; |
7880 | for (unsigned int i = 0, |
7881 | n = static_cast<unsigned int>(this->partiallisting_size()); i < n; i++) { |
7882 | target = ::google::protobuf::internal::WireFormatLite:: |
7883 | InternalWriteMessageToArray( |
7884 | 1, this->partiallisting(static_cast<int>(i)), deterministic, target); |
7885 | } |
7886 | |
7887 | cached_has_bits = _has_bits_[0]; |
7888 | // required uint32 remainingEntries = 2; |
7889 | if (cached_has_bits & 0x00000001u) { |
7890 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->remainingentries(), target); |
7891 | } |
7892 | |
7893 | if (_internal_metadata_.have_unknown_fields()) { |
7894 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
7895 | _internal_metadata_.unknown_fields(), target); |
7896 | } |
7897 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.DirectoryListingProto) |
7898 | return target; |
7899 | } |
7900 | |
7901 | size_t DirectoryListingProto::ByteSizeLong() const { |
7902 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.DirectoryListingProto) |
7903 | size_t total_size = 0; |
7904 | |
7905 | if (_internal_metadata_.have_unknown_fields()) { |
7906 | total_size += |
7907 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
7908 | _internal_metadata_.unknown_fields()); |
7909 | } |
7910 | // required uint32 remainingEntries = 2; |
7911 | if (has_remainingentries()) { |
7912 | total_size += 1 + |
7913 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
7914 | this->remainingentries()); |
7915 | } |
7916 | // repeated .Hdfs.Internal.HdfsFileStatusProto partialListing = 1; |
7917 | { |
7918 | unsigned int count = static_cast<unsigned int>(this->partiallisting_size()); |
7919 | total_size += 1UL * count; |
7920 | for (unsigned int i = 0; i < count; i++) { |
7921 | total_size += |
7922 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
7923 | this->partiallisting(static_cast<int>(i))); |
7924 | } |
7925 | } |
7926 | |
7927 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7928 | SetCachedSize(cached_size); |
7929 | return total_size; |
7930 | } |
7931 | |
7932 | void DirectoryListingProto::MergeFrom(const ::google::protobuf::Message& from) { |
7933 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.DirectoryListingProto) |
7934 | GOOGLE_DCHECK_NE(&from, this); |
7935 | const DirectoryListingProto* source = |
7936 | ::google::protobuf::internal::DynamicCastToGenerated<const DirectoryListingProto>( |
7937 | &from); |
7938 | if (source == NULL) { |
7939 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.DirectoryListingProto) |
7940 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7941 | } else { |
7942 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.DirectoryListingProto) |
7943 | MergeFrom(*source); |
7944 | } |
7945 | } |
7946 | |
7947 | void DirectoryListingProto::MergeFrom(const DirectoryListingProto& from) { |
7948 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.DirectoryListingProto) |
7949 | GOOGLE_DCHECK_NE(&from, this); |
7950 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7951 | ::google::protobuf::uint32 cached_has_bits = 0; |
7952 | (void) cached_has_bits; |
7953 | |
7954 | partiallisting_.MergeFrom(from.partiallisting_); |
7955 | if (from.has_remainingentries()) { |
7956 | set_remainingentries(from.remainingentries()); |
7957 | } |
7958 | } |
7959 | |
7960 | void DirectoryListingProto::CopyFrom(const ::google::protobuf::Message& from) { |
7961 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.DirectoryListingProto) |
7962 | if (&from == this) return; |
7963 | Clear(); |
7964 | MergeFrom(from); |
7965 | } |
7966 | |
7967 | void DirectoryListingProto::CopyFrom(const DirectoryListingProto& from) { |
7968 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.DirectoryListingProto) |
7969 | if (&from == this) return; |
7970 | Clear(); |
7971 | MergeFrom(from); |
7972 | } |
7973 | |
7974 | bool DirectoryListingProto::IsInitialized() const { |
7975 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
7976 | if (!::google::protobuf::internal::AllAreInitialized(this->partiallisting())) return false; |
7977 | return true; |
7978 | } |
7979 | |
7980 | void DirectoryListingProto::Swap(DirectoryListingProto* other) { |
7981 | if (other == this) return; |
7982 | InternalSwap(other); |
7983 | } |
7984 | void DirectoryListingProto::InternalSwap(DirectoryListingProto* other) { |
7985 | using std::swap; |
7986 | CastToBase(&partiallisting_)->InternalSwap(CastToBase(&other->partiallisting_)); |
7987 | swap(remainingentries_, other->remainingentries_); |
7988 | swap(_has_bits_[0], other->_has_bits_[0]); |
7989 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7990 | } |
7991 | |
7992 | ::google::protobuf::Metadata DirectoryListingProto::GetMetadata() const { |
7993 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
7994 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
7995 | } |
7996 | |
7997 | |
7998 | // =================================================================== |
7999 | |
8000 | void SnapshottableDirectoryStatusProto::InitAsDefaultInstance() { |
8001 | ::Hdfs::Internal::_SnapshottableDirectoryStatusProto_default_instance_._instance.get_mutable()->dirstatus_ = const_cast< ::Hdfs::Internal::HdfsFileStatusProto*>( |
8002 | ::Hdfs::Internal::HdfsFileStatusProto::internal_default_instance()); |
8003 | } |
8004 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8005 | const int SnapshottableDirectoryStatusProto::kDirStatusFieldNumber; |
8006 | const int SnapshottableDirectoryStatusProto::kSnapshotQuotaFieldNumber; |
8007 | const int SnapshottableDirectoryStatusProto::kSnapshotNumberFieldNumber; |
8008 | const int SnapshottableDirectoryStatusProto::kParentFullpathFieldNumber; |
8009 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8010 | |
8011 | SnapshottableDirectoryStatusProto::SnapshottableDirectoryStatusProto() |
8012 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8013 | ::google::protobuf::internal::InitSCC( |
8014 | &protobuf_hdfs_2eproto::scc_info_SnapshottableDirectoryStatusProto.base); |
8015 | SharedCtor(); |
8016 | // @@protoc_insertion_point(constructor:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8017 | } |
8018 | SnapshottableDirectoryStatusProto::SnapshottableDirectoryStatusProto(const SnapshottableDirectoryStatusProto& from) |
8019 | : ::google::protobuf::Message(), |
8020 | _internal_metadata_(NULL), |
8021 | _has_bits_(from._has_bits_) { |
8022 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8023 | parent_fullpath_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8024 | if (from.has_parent_fullpath()) { |
8025 | parent_fullpath_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_fullpath_); |
8026 | } |
8027 | if (from.has_dirstatus()) { |
8028 | dirstatus_ = new ::Hdfs::Internal::HdfsFileStatusProto(*from.dirstatus_); |
8029 | } else { |
8030 | dirstatus_ = NULL; |
8031 | } |
8032 | ::memcpy(&snapshot_quota_, &from.snapshot_quota_, |
8033 | static_cast<size_t>(reinterpret_cast<char*>(&snapshot_number_) - |
8034 | reinterpret_cast<char*>(&snapshot_quota_)) + sizeof(snapshot_number_)); |
8035 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8036 | } |
8037 | |
8038 | void SnapshottableDirectoryStatusProto::SharedCtor() { |
8039 | parent_fullpath_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8040 | ::memset(&dirstatus_, 0, static_cast<size_t>( |
8041 | reinterpret_cast<char*>(&snapshot_number_) - |
8042 | reinterpret_cast<char*>(&dirstatus_)) + sizeof(snapshot_number_)); |
8043 | } |
8044 | |
8045 | SnapshottableDirectoryStatusProto::~SnapshottableDirectoryStatusProto() { |
8046 | // @@protoc_insertion_point(destructor:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8047 | SharedDtor(); |
8048 | } |
8049 | |
8050 | void SnapshottableDirectoryStatusProto::SharedDtor() { |
8051 | parent_fullpath_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8052 | if (this != internal_default_instance()) delete dirstatus_; |
8053 | } |
8054 | |
8055 | void SnapshottableDirectoryStatusProto::SetCachedSize(int size) const { |
8056 | _cached_size_.Set(size); |
8057 | } |
8058 | const ::google::protobuf::Descriptor* SnapshottableDirectoryStatusProto::descriptor() { |
8059 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
8060 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
8061 | } |
8062 | |
8063 | const SnapshottableDirectoryStatusProto& SnapshottableDirectoryStatusProto::default_instance() { |
8064 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_SnapshottableDirectoryStatusProto.base); |
8065 | return *internal_default_instance(); |
8066 | } |
8067 | |
8068 | |
8069 | void SnapshottableDirectoryStatusProto::Clear() { |
8070 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8071 | ::google::protobuf::uint32 cached_has_bits = 0; |
8072 | // Prevent compiler warnings about cached_has_bits being unused |
8073 | (void) cached_has_bits; |
8074 | |
8075 | cached_has_bits = _has_bits_[0]; |
8076 | if (cached_has_bits & 3u) { |
8077 | if (cached_has_bits & 0x00000001u) { |
8078 | parent_fullpath_.ClearNonDefaultToEmptyNoArena(); |
8079 | } |
8080 | if (cached_has_bits & 0x00000002u) { |
8081 | GOOGLE_DCHECK(dirstatus_ != NULL); |
8082 | dirstatus_->Clear(); |
8083 | } |
8084 | } |
8085 | if (cached_has_bits & 12u) { |
8086 | ::memset(&snapshot_quota_, 0, static_cast<size_t>( |
8087 | reinterpret_cast<char*>(&snapshot_number_) - |
8088 | reinterpret_cast<char*>(&snapshot_quota_)) + sizeof(snapshot_number_)); |
8089 | } |
8090 | _has_bits_.Clear(); |
8091 | _internal_metadata_.Clear(); |
8092 | } |
8093 | |
8094 | bool SnapshottableDirectoryStatusProto::MergePartialFromCodedStream( |
8095 | ::google::protobuf::io::CodedInputStream* input) { |
8096 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
8097 | ::google::protobuf::uint32 tag; |
8098 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8099 | for (;;) { |
8100 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8101 | tag = p.first; |
8102 | if (!p.second) goto handle_unusual; |
8103 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
8104 | // required .Hdfs.Internal.HdfsFileStatusProto dirStatus = 1; |
8105 | case 1: { |
8106 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8107 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
8108 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
8109 | input, mutable_dirstatus())); |
8110 | } else { |
8111 | goto handle_unusual; |
8112 | } |
8113 | break; |
8114 | } |
8115 | |
8116 | // required uint32 snapshot_quota = 2; |
8117 | case 2: { |
8118 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8119 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
8120 | set_has_snapshot_quota(); |
8121 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8122 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
8123 | input, &snapshot_quota_))); |
8124 | } else { |
8125 | goto handle_unusual; |
8126 | } |
8127 | break; |
8128 | } |
8129 | |
8130 | // required uint32 snapshot_number = 3; |
8131 | case 3: { |
8132 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8133 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
8134 | set_has_snapshot_number(); |
8135 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8136 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
8137 | input, &snapshot_number_))); |
8138 | } else { |
8139 | goto handle_unusual; |
8140 | } |
8141 | break; |
8142 | } |
8143 | |
8144 | // required bytes parent_fullpath = 4; |
8145 | case 4: { |
8146 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8147 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
8148 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
8149 | input, this->mutable_parent_fullpath())); |
8150 | } else { |
8151 | goto handle_unusual; |
8152 | } |
8153 | break; |
8154 | } |
8155 | |
8156 | default: { |
8157 | handle_unusual: |
8158 | if (tag == 0) { |
8159 | goto success; |
8160 | } |
8161 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
8162 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8163 | break; |
8164 | } |
8165 | } |
8166 | } |
8167 | success: |
8168 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8169 | return true; |
8170 | failure: |
8171 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8172 | return false; |
8173 | #undef DO_ |
8174 | } |
8175 | |
8176 | void SnapshottableDirectoryStatusProto::SerializeWithCachedSizes( |
8177 | ::google::protobuf::io::CodedOutputStream* output) const { |
8178 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8179 | ::google::protobuf::uint32 cached_has_bits = 0; |
8180 | (void) cached_has_bits; |
8181 | |
8182 | cached_has_bits = _has_bits_[0]; |
8183 | // required .Hdfs.Internal.HdfsFileStatusProto dirStatus = 1; |
8184 | if (cached_has_bits & 0x00000002u) { |
8185 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
8186 | 1, this->_internal_dirstatus(), output); |
8187 | } |
8188 | |
8189 | // required uint32 snapshot_quota = 2; |
8190 | if (cached_has_bits & 0x00000004u) { |
8191 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->snapshot_quota(), output); |
8192 | } |
8193 | |
8194 | // required uint32 snapshot_number = 3; |
8195 | if (cached_has_bits & 0x00000008u) { |
8196 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->snapshot_number(), output); |
8197 | } |
8198 | |
8199 | // required bytes parent_fullpath = 4; |
8200 | if (cached_has_bits & 0x00000001u) { |
8201 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
8202 | 4, this->parent_fullpath(), output); |
8203 | } |
8204 | |
8205 | if (_internal_metadata_.have_unknown_fields()) { |
8206 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8207 | _internal_metadata_.unknown_fields(), output); |
8208 | } |
8209 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8210 | } |
8211 | |
8212 | ::google::protobuf::uint8* SnapshottableDirectoryStatusProto::InternalSerializeWithCachedSizesToArray( |
8213 | bool deterministic, ::google::protobuf::uint8* target) const { |
8214 | (void)deterministic; // Unused |
8215 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8216 | ::google::protobuf::uint32 cached_has_bits = 0; |
8217 | (void) cached_has_bits; |
8218 | |
8219 | cached_has_bits = _has_bits_[0]; |
8220 | // required .Hdfs.Internal.HdfsFileStatusProto dirStatus = 1; |
8221 | if (cached_has_bits & 0x00000002u) { |
8222 | target = ::google::protobuf::internal::WireFormatLite:: |
8223 | InternalWriteMessageToArray( |
8224 | 1, this->_internal_dirstatus(), deterministic, target); |
8225 | } |
8226 | |
8227 | // required uint32 snapshot_quota = 2; |
8228 | if (cached_has_bits & 0x00000004u) { |
8229 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->snapshot_quota(), target); |
8230 | } |
8231 | |
8232 | // required uint32 snapshot_number = 3; |
8233 | if (cached_has_bits & 0x00000008u) { |
8234 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->snapshot_number(), target); |
8235 | } |
8236 | |
8237 | // required bytes parent_fullpath = 4; |
8238 | if (cached_has_bits & 0x00000001u) { |
8239 | target = |
8240 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
8241 | 4, this->parent_fullpath(), target); |
8242 | } |
8243 | |
8244 | if (_internal_metadata_.have_unknown_fields()) { |
8245 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
8246 | _internal_metadata_.unknown_fields(), target); |
8247 | } |
8248 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8249 | return target; |
8250 | } |
8251 | |
8252 | size_t SnapshottableDirectoryStatusProto::RequiredFieldsByteSizeFallback() const { |
8253 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8254 | size_t total_size = 0; |
8255 | |
8256 | if (has_parent_fullpath()) { |
8257 | // required bytes parent_fullpath = 4; |
8258 | total_size += 1 + |
8259 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
8260 | this->parent_fullpath()); |
8261 | } |
8262 | |
8263 | if (has_dirstatus()) { |
8264 | // required .Hdfs.Internal.HdfsFileStatusProto dirStatus = 1; |
8265 | total_size += 1 + |
8266 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
8267 | *dirstatus_); |
8268 | } |
8269 | |
8270 | if (has_snapshot_quota()) { |
8271 | // required uint32 snapshot_quota = 2; |
8272 | total_size += 1 + |
8273 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
8274 | this->snapshot_quota()); |
8275 | } |
8276 | |
8277 | if (has_snapshot_number()) { |
8278 | // required uint32 snapshot_number = 3; |
8279 | total_size += 1 + |
8280 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
8281 | this->snapshot_number()); |
8282 | } |
8283 | |
8284 | return total_size; |
8285 | } |
8286 | size_t SnapshottableDirectoryStatusProto::ByteSizeLong() const { |
8287 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8288 | size_t total_size = 0; |
8289 | |
8290 | if (_internal_metadata_.have_unknown_fields()) { |
8291 | total_size += |
8292 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
8293 | _internal_metadata_.unknown_fields()); |
8294 | } |
8295 | if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. |
8296 | // required bytes parent_fullpath = 4; |
8297 | total_size += 1 + |
8298 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
8299 | this->parent_fullpath()); |
8300 | |
8301 | // required .Hdfs.Internal.HdfsFileStatusProto dirStatus = 1; |
8302 | total_size += 1 + |
8303 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
8304 | *dirstatus_); |
8305 | |
8306 | // required uint32 snapshot_quota = 2; |
8307 | total_size += 1 + |
8308 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
8309 | this->snapshot_quota()); |
8310 | |
8311 | // required uint32 snapshot_number = 3; |
8312 | total_size += 1 + |
8313 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
8314 | this->snapshot_number()); |
8315 | |
8316 | } else { |
8317 | total_size += RequiredFieldsByteSizeFallback(); |
8318 | } |
8319 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8320 | SetCachedSize(cached_size); |
8321 | return total_size; |
8322 | } |
8323 | |
8324 | void SnapshottableDirectoryStatusProto::MergeFrom(const ::google::protobuf::Message& from) { |
8325 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8326 | GOOGLE_DCHECK_NE(&from, this); |
8327 | const SnapshottableDirectoryStatusProto* source = |
8328 | ::google::protobuf::internal::DynamicCastToGenerated<const SnapshottableDirectoryStatusProto>( |
8329 | &from); |
8330 | if (source == NULL) { |
8331 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8332 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8333 | } else { |
8334 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8335 | MergeFrom(*source); |
8336 | } |
8337 | } |
8338 | |
8339 | void SnapshottableDirectoryStatusProto::MergeFrom(const SnapshottableDirectoryStatusProto& from) { |
8340 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8341 | GOOGLE_DCHECK_NE(&from, this); |
8342 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8343 | ::google::protobuf::uint32 cached_has_bits = 0; |
8344 | (void) cached_has_bits; |
8345 | |
8346 | cached_has_bits = from._has_bits_[0]; |
8347 | if (cached_has_bits & 15u) { |
8348 | if (cached_has_bits & 0x00000001u) { |
8349 | set_has_parent_fullpath(); |
8350 | parent_fullpath_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_fullpath_); |
8351 | } |
8352 | if (cached_has_bits & 0x00000002u) { |
8353 | mutable_dirstatus()->::Hdfs::Internal::HdfsFileStatusProto::MergeFrom(from.dirstatus()); |
8354 | } |
8355 | if (cached_has_bits & 0x00000004u) { |
8356 | snapshot_quota_ = from.snapshot_quota_; |
8357 | } |
8358 | if (cached_has_bits & 0x00000008u) { |
8359 | snapshot_number_ = from.snapshot_number_; |
8360 | } |
8361 | _has_bits_[0] |= cached_has_bits; |
8362 | } |
8363 | } |
8364 | |
8365 | void SnapshottableDirectoryStatusProto::CopyFrom(const ::google::protobuf::Message& from) { |
8366 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8367 | if (&from == this) return; |
8368 | Clear(); |
8369 | MergeFrom(from); |
8370 | } |
8371 | |
8372 | void SnapshottableDirectoryStatusProto::CopyFrom(const SnapshottableDirectoryStatusProto& from) { |
8373 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.SnapshottableDirectoryStatusProto) |
8374 | if (&from == this) return; |
8375 | Clear(); |
8376 | MergeFrom(from); |
8377 | } |
8378 | |
8379 | bool SnapshottableDirectoryStatusProto::IsInitialized() const { |
8380 | if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; |
8381 | if (has_dirstatus()) { |
8382 | if (!this->dirstatus_->IsInitialized()) return false; |
8383 | } |
8384 | return true; |
8385 | } |
8386 | |
8387 | void SnapshottableDirectoryStatusProto::Swap(SnapshottableDirectoryStatusProto* other) { |
8388 | if (other == this) return; |
8389 | InternalSwap(other); |
8390 | } |
8391 | void SnapshottableDirectoryStatusProto::InternalSwap(SnapshottableDirectoryStatusProto* other) { |
8392 | using std::swap; |
8393 | parent_fullpath_.Swap(&other->parent_fullpath_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
8394 | GetArenaNoVirtual()); |
8395 | swap(dirstatus_, other->dirstatus_); |
8396 | swap(snapshot_quota_, other->snapshot_quota_); |
8397 | swap(snapshot_number_, other->snapshot_number_); |
8398 | swap(_has_bits_[0], other->_has_bits_[0]); |
8399 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8400 | } |
8401 | |
8402 | ::google::protobuf::Metadata SnapshottableDirectoryStatusProto::GetMetadata() const { |
8403 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
8404 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
8405 | } |
8406 | |
8407 | |
8408 | // =================================================================== |
8409 | |
8410 | void SnapshottableDirectoryListingProto::InitAsDefaultInstance() { |
8411 | } |
8412 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8413 | const int SnapshottableDirectoryListingProto::kSnapshottableDirListingFieldNumber; |
8414 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8415 | |
8416 | SnapshottableDirectoryListingProto::SnapshottableDirectoryListingProto() |
8417 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8418 | ::google::protobuf::internal::InitSCC( |
8419 | &protobuf_hdfs_2eproto::scc_info_SnapshottableDirectoryListingProto.base); |
8420 | SharedCtor(); |
8421 | // @@protoc_insertion_point(constructor:Hdfs.Internal.SnapshottableDirectoryListingProto) |
8422 | } |
8423 | SnapshottableDirectoryListingProto::SnapshottableDirectoryListingProto(const SnapshottableDirectoryListingProto& from) |
8424 | : ::google::protobuf::Message(), |
8425 | _internal_metadata_(NULL), |
8426 | _has_bits_(from._has_bits_), |
8427 | snapshottabledirlisting_(from.snapshottabledirlisting_) { |
8428 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8429 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.SnapshottableDirectoryListingProto) |
8430 | } |
8431 | |
8432 | void SnapshottableDirectoryListingProto::SharedCtor() { |
8433 | } |
8434 | |
8435 | SnapshottableDirectoryListingProto::~SnapshottableDirectoryListingProto() { |
8436 | // @@protoc_insertion_point(destructor:Hdfs.Internal.SnapshottableDirectoryListingProto) |
8437 | SharedDtor(); |
8438 | } |
8439 | |
8440 | void SnapshottableDirectoryListingProto::SharedDtor() { |
8441 | } |
8442 | |
8443 | void SnapshottableDirectoryListingProto::SetCachedSize(int size) const { |
8444 | _cached_size_.Set(size); |
8445 | } |
8446 | const ::google::protobuf::Descriptor* SnapshottableDirectoryListingProto::descriptor() { |
8447 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
8448 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
8449 | } |
8450 | |
8451 | const SnapshottableDirectoryListingProto& SnapshottableDirectoryListingProto::default_instance() { |
8452 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_SnapshottableDirectoryListingProto.base); |
8453 | return *internal_default_instance(); |
8454 | } |
8455 | |
8456 | |
8457 | void SnapshottableDirectoryListingProto::Clear() { |
8458 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.SnapshottableDirectoryListingProto) |
8459 | ::google::protobuf::uint32 cached_has_bits = 0; |
8460 | // Prevent compiler warnings about cached_has_bits being unused |
8461 | (void) cached_has_bits; |
8462 | |
8463 | snapshottabledirlisting_.Clear(); |
8464 | _has_bits_.Clear(); |
8465 | _internal_metadata_.Clear(); |
8466 | } |
8467 | |
8468 | bool SnapshottableDirectoryListingProto::MergePartialFromCodedStream( |
8469 | ::google::protobuf::io::CodedInputStream* input) { |
8470 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
8471 | ::google::protobuf::uint32 tag; |
8472 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.SnapshottableDirectoryListingProto) |
8473 | for (;;) { |
8474 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8475 | tag = p.first; |
8476 | if (!p.second) goto handle_unusual; |
8477 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
8478 | // repeated .Hdfs.Internal.SnapshottableDirectoryStatusProto snapshottableDirListing = 1; |
8479 | case 1: { |
8480 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8481 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
8482 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
8483 | input, add_snapshottabledirlisting())); |
8484 | } else { |
8485 | goto handle_unusual; |
8486 | } |
8487 | break; |
8488 | } |
8489 | |
8490 | default: { |
8491 | handle_unusual: |
8492 | if (tag == 0) { |
8493 | goto success; |
8494 | } |
8495 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
8496 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8497 | break; |
8498 | } |
8499 | } |
8500 | } |
8501 | success: |
8502 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.SnapshottableDirectoryListingProto) |
8503 | return true; |
8504 | failure: |
8505 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.SnapshottableDirectoryListingProto) |
8506 | return false; |
8507 | #undef DO_ |
8508 | } |
8509 | |
8510 | void SnapshottableDirectoryListingProto::SerializeWithCachedSizes( |
8511 | ::google::protobuf::io::CodedOutputStream* output) const { |
8512 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.SnapshottableDirectoryListingProto) |
8513 | ::google::protobuf::uint32 cached_has_bits = 0; |
8514 | (void) cached_has_bits; |
8515 | |
8516 | // repeated .Hdfs.Internal.SnapshottableDirectoryStatusProto snapshottableDirListing = 1; |
8517 | for (unsigned int i = 0, |
8518 | n = static_cast<unsigned int>(this->snapshottabledirlisting_size()); i < n; i++) { |
8519 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
8520 | 1, |
8521 | this->snapshottabledirlisting(static_cast<int>(i)), |
8522 | output); |
8523 | } |
8524 | |
8525 | if (_internal_metadata_.have_unknown_fields()) { |
8526 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8527 | _internal_metadata_.unknown_fields(), output); |
8528 | } |
8529 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.SnapshottableDirectoryListingProto) |
8530 | } |
8531 | |
8532 | ::google::protobuf::uint8* SnapshottableDirectoryListingProto::InternalSerializeWithCachedSizesToArray( |
8533 | bool deterministic, ::google::protobuf::uint8* target) const { |
8534 | (void)deterministic; // Unused |
8535 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.SnapshottableDirectoryListingProto) |
8536 | ::google::protobuf::uint32 cached_has_bits = 0; |
8537 | (void) cached_has_bits; |
8538 | |
8539 | // repeated .Hdfs.Internal.SnapshottableDirectoryStatusProto snapshottableDirListing = 1; |
8540 | for (unsigned int i = 0, |
8541 | n = static_cast<unsigned int>(this->snapshottabledirlisting_size()); i < n; i++) { |
8542 | target = ::google::protobuf::internal::WireFormatLite:: |
8543 | InternalWriteMessageToArray( |
8544 | 1, this->snapshottabledirlisting(static_cast<int>(i)), deterministic, target); |
8545 | } |
8546 | |
8547 | if (_internal_metadata_.have_unknown_fields()) { |
8548 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
8549 | _internal_metadata_.unknown_fields(), target); |
8550 | } |
8551 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.SnapshottableDirectoryListingProto) |
8552 | return target; |
8553 | } |
8554 | |
8555 | size_t SnapshottableDirectoryListingProto::ByteSizeLong() const { |
8556 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.SnapshottableDirectoryListingProto) |
8557 | size_t total_size = 0; |
8558 | |
8559 | if (_internal_metadata_.have_unknown_fields()) { |
8560 | total_size += |
8561 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
8562 | _internal_metadata_.unknown_fields()); |
8563 | } |
8564 | // repeated .Hdfs.Internal.SnapshottableDirectoryStatusProto snapshottableDirListing = 1; |
8565 | { |
8566 | unsigned int count = static_cast<unsigned int>(this->snapshottabledirlisting_size()); |
8567 | total_size += 1UL * count; |
8568 | for (unsigned int i = 0; i < count; i++) { |
8569 | total_size += |
8570 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
8571 | this->snapshottabledirlisting(static_cast<int>(i))); |
8572 | } |
8573 | } |
8574 | |
8575 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8576 | SetCachedSize(cached_size); |
8577 | return total_size; |
8578 | } |
8579 | |
8580 | void SnapshottableDirectoryListingProto::MergeFrom(const ::google::protobuf::Message& from) { |
8581 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.SnapshottableDirectoryListingProto) |
8582 | GOOGLE_DCHECK_NE(&from, this); |
8583 | const SnapshottableDirectoryListingProto* source = |
8584 | ::google::protobuf::internal::DynamicCastToGenerated<const SnapshottableDirectoryListingProto>( |
8585 | &from); |
8586 | if (source == NULL) { |
8587 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.SnapshottableDirectoryListingProto) |
8588 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8589 | } else { |
8590 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.SnapshottableDirectoryListingProto) |
8591 | MergeFrom(*source); |
8592 | } |
8593 | } |
8594 | |
8595 | void SnapshottableDirectoryListingProto::MergeFrom(const SnapshottableDirectoryListingProto& from) { |
8596 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.SnapshottableDirectoryListingProto) |
8597 | GOOGLE_DCHECK_NE(&from, this); |
8598 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8599 | ::google::protobuf::uint32 cached_has_bits = 0; |
8600 | (void) cached_has_bits; |
8601 | |
8602 | snapshottabledirlisting_.MergeFrom(from.snapshottabledirlisting_); |
8603 | } |
8604 | |
8605 | void SnapshottableDirectoryListingProto::CopyFrom(const ::google::protobuf::Message& from) { |
8606 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.SnapshottableDirectoryListingProto) |
8607 | if (&from == this) return; |
8608 | Clear(); |
8609 | MergeFrom(from); |
8610 | } |
8611 | |
8612 | void SnapshottableDirectoryListingProto::CopyFrom(const SnapshottableDirectoryListingProto& from) { |
8613 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.SnapshottableDirectoryListingProto) |
8614 | if (&from == this) return; |
8615 | Clear(); |
8616 | MergeFrom(from); |
8617 | } |
8618 | |
8619 | bool SnapshottableDirectoryListingProto::IsInitialized() const { |
8620 | if (!::google::protobuf::internal::AllAreInitialized(this->snapshottabledirlisting())) return false; |
8621 | return true; |
8622 | } |
8623 | |
8624 | void SnapshottableDirectoryListingProto::Swap(SnapshottableDirectoryListingProto* other) { |
8625 | if (other == this) return; |
8626 | InternalSwap(other); |
8627 | } |
8628 | void SnapshottableDirectoryListingProto::InternalSwap(SnapshottableDirectoryListingProto* other) { |
8629 | using std::swap; |
8630 | CastToBase(&snapshottabledirlisting_)->InternalSwap(CastToBase(&other->snapshottabledirlisting_)); |
8631 | swap(_has_bits_[0], other->_has_bits_[0]); |
8632 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8633 | } |
8634 | |
8635 | ::google::protobuf::Metadata SnapshottableDirectoryListingProto::GetMetadata() const { |
8636 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
8637 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
8638 | } |
8639 | |
8640 | |
8641 | // =================================================================== |
8642 | |
8643 | void SnapshotDiffReportEntryProto::InitAsDefaultInstance() { |
8644 | } |
8645 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8646 | const int SnapshotDiffReportEntryProto::kFullpathFieldNumber; |
8647 | const int SnapshotDiffReportEntryProto::kModificationLabelFieldNumber; |
8648 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8649 | |
8650 | SnapshotDiffReportEntryProto::SnapshotDiffReportEntryProto() |
8651 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8652 | ::google::protobuf::internal::InitSCC( |
8653 | &protobuf_hdfs_2eproto::scc_info_SnapshotDiffReportEntryProto.base); |
8654 | SharedCtor(); |
8655 | // @@protoc_insertion_point(constructor:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8656 | } |
8657 | SnapshotDiffReportEntryProto::SnapshotDiffReportEntryProto(const SnapshotDiffReportEntryProto& from) |
8658 | : ::google::protobuf::Message(), |
8659 | _internal_metadata_(NULL), |
8660 | _has_bits_(from._has_bits_) { |
8661 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8662 | fullpath_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8663 | if (from.has_fullpath()) { |
8664 | fullpath_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fullpath_); |
8665 | } |
8666 | modificationlabel_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8667 | if (from.has_modificationlabel()) { |
8668 | modificationlabel_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.modificationlabel_); |
8669 | } |
8670 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8671 | } |
8672 | |
8673 | void SnapshotDiffReportEntryProto::SharedCtor() { |
8674 | fullpath_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8675 | modificationlabel_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8676 | } |
8677 | |
8678 | SnapshotDiffReportEntryProto::~SnapshotDiffReportEntryProto() { |
8679 | // @@protoc_insertion_point(destructor:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8680 | SharedDtor(); |
8681 | } |
8682 | |
8683 | void SnapshotDiffReportEntryProto::SharedDtor() { |
8684 | fullpath_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8685 | modificationlabel_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8686 | } |
8687 | |
8688 | void SnapshotDiffReportEntryProto::SetCachedSize(int size) const { |
8689 | _cached_size_.Set(size); |
8690 | } |
8691 | const ::google::protobuf::Descriptor* SnapshotDiffReportEntryProto::descriptor() { |
8692 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
8693 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
8694 | } |
8695 | |
8696 | const SnapshotDiffReportEntryProto& SnapshotDiffReportEntryProto::default_instance() { |
8697 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_SnapshotDiffReportEntryProto.base); |
8698 | return *internal_default_instance(); |
8699 | } |
8700 | |
8701 | |
8702 | void SnapshotDiffReportEntryProto::Clear() { |
8703 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8704 | ::google::protobuf::uint32 cached_has_bits = 0; |
8705 | // Prevent compiler warnings about cached_has_bits being unused |
8706 | (void) cached_has_bits; |
8707 | |
8708 | cached_has_bits = _has_bits_[0]; |
8709 | if (cached_has_bits & 3u) { |
8710 | if (cached_has_bits & 0x00000001u) { |
8711 | fullpath_.ClearNonDefaultToEmptyNoArena(); |
8712 | } |
8713 | if (cached_has_bits & 0x00000002u) { |
8714 | modificationlabel_.ClearNonDefaultToEmptyNoArena(); |
8715 | } |
8716 | } |
8717 | _has_bits_.Clear(); |
8718 | _internal_metadata_.Clear(); |
8719 | } |
8720 | |
8721 | bool SnapshotDiffReportEntryProto::MergePartialFromCodedStream( |
8722 | ::google::protobuf::io::CodedInputStream* input) { |
8723 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
8724 | ::google::protobuf::uint32 tag; |
8725 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8726 | for (;;) { |
8727 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8728 | tag = p.first; |
8729 | if (!p.second) goto handle_unusual; |
8730 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
8731 | // required bytes fullpath = 1; |
8732 | case 1: { |
8733 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8734 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
8735 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
8736 | input, this->mutable_fullpath())); |
8737 | } else { |
8738 | goto handle_unusual; |
8739 | } |
8740 | break; |
8741 | } |
8742 | |
8743 | // required string modificationLabel = 2; |
8744 | case 2: { |
8745 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8746 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
8747 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
8748 | input, this->mutable_modificationlabel())); |
8749 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8750 | this->modificationlabel().data(), static_cast<int>(this->modificationlabel().length()), |
8751 | ::google::protobuf::internal::WireFormat::PARSE, |
8752 | "Hdfs.Internal.SnapshotDiffReportEntryProto.modificationLabel" ); |
8753 | } else { |
8754 | goto handle_unusual; |
8755 | } |
8756 | break; |
8757 | } |
8758 | |
8759 | default: { |
8760 | handle_unusual: |
8761 | if (tag == 0) { |
8762 | goto success; |
8763 | } |
8764 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
8765 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8766 | break; |
8767 | } |
8768 | } |
8769 | } |
8770 | success: |
8771 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8772 | return true; |
8773 | failure: |
8774 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8775 | return false; |
8776 | #undef DO_ |
8777 | } |
8778 | |
8779 | void SnapshotDiffReportEntryProto::SerializeWithCachedSizes( |
8780 | ::google::protobuf::io::CodedOutputStream* output) const { |
8781 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8782 | ::google::protobuf::uint32 cached_has_bits = 0; |
8783 | (void) cached_has_bits; |
8784 | |
8785 | cached_has_bits = _has_bits_[0]; |
8786 | // required bytes fullpath = 1; |
8787 | if (cached_has_bits & 0x00000001u) { |
8788 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
8789 | 1, this->fullpath(), output); |
8790 | } |
8791 | |
8792 | // required string modificationLabel = 2; |
8793 | if (cached_has_bits & 0x00000002u) { |
8794 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8795 | this->modificationlabel().data(), static_cast<int>(this->modificationlabel().length()), |
8796 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
8797 | "Hdfs.Internal.SnapshotDiffReportEntryProto.modificationLabel" ); |
8798 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
8799 | 2, this->modificationlabel(), output); |
8800 | } |
8801 | |
8802 | if (_internal_metadata_.have_unknown_fields()) { |
8803 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8804 | _internal_metadata_.unknown_fields(), output); |
8805 | } |
8806 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8807 | } |
8808 | |
8809 | ::google::protobuf::uint8* SnapshotDiffReportEntryProto::InternalSerializeWithCachedSizesToArray( |
8810 | bool deterministic, ::google::protobuf::uint8* target) const { |
8811 | (void)deterministic; // Unused |
8812 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8813 | ::google::protobuf::uint32 cached_has_bits = 0; |
8814 | (void) cached_has_bits; |
8815 | |
8816 | cached_has_bits = _has_bits_[0]; |
8817 | // required bytes fullpath = 1; |
8818 | if (cached_has_bits & 0x00000001u) { |
8819 | target = |
8820 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
8821 | 1, this->fullpath(), target); |
8822 | } |
8823 | |
8824 | // required string modificationLabel = 2; |
8825 | if (cached_has_bits & 0x00000002u) { |
8826 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8827 | this->modificationlabel().data(), static_cast<int>(this->modificationlabel().length()), |
8828 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
8829 | "Hdfs.Internal.SnapshotDiffReportEntryProto.modificationLabel" ); |
8830 | target = |
8831 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
8832 | 2, this->modificationlabel(), target); |
8833 | } |
8834 | |
8835 | if (_internal_metadata_.have_unknown_fields()) { |
8836 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
8837 | _internal_metadata_.unknown_fields(), target); |
8838 | } |
8839 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8840 | return target; |
8841 | } |
8842 | |
8843 | size_t SnapshotDiffReportEntryProto::RequiredFieldsByteSizeFallback() const { |
8844 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8845 | size_t total_size = 0; |
8846 | |
8847 | if (has_fullpath()) { |
8848 | // required bytes fullpath = 1; |
8849 | total_size += 1 + |
8850 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
8851 | this->fullpath()); |
8852 | } |
8853 | |
8854 | if (has_modificationlabel()) { |
8855 | // required string modificationLabel = 2; |
8856 | total_size += 1 + |
8857 | ::google::protobuf::internal::WireFormatLite::StringSize( |
8858 | this->modificationlabel()); |
8859 | } |
8860 | |
8861 | return total_size; |
8862 | } |
8863 | size_t SnapshotDiffReportEntryProto::ByteSizeLong() const { |
8864 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8865 | size_t total_size = 0; |
8866 | |
8867 | if (_internal_metadata_.have_unknown_fields()) { |
8868 | total_size += |
8869 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
8870 | _internal_metadata_.unknown_fields()); |
8871 | } |
8872 | if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
8873 | // required bytes fullpath = 1; |
8874 | total_size += 1 + |
8875 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
8876 | this->fullpath()); |
8877 | |
8878 | // required string modificationLabel = 2; |
8879 | total_size += 1 + |
8880 | ::google::protobuf::internal::WireFormatLite::StringSize( |
8881 | this->modificationlabel()); |
8882 | |
8883 | } else { |
8884 | total_size += RequiredFieldsByteSizeFallback(); |
8885 | } |
8886 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8887 | SetCachedSize(cached_size); |
8888 | return total_size; |
8889 | } |
8890 | |
8891 | void SnapshotDiffReportEntryProto::MergeFrom(const ::google::protobuf::Message& from) { |
8892 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8893 | GOOGLE_DCHECK_NE(&from, this); |
8894 | const SnapshotDiffReportEntryProto* source = |
8895 | ::google::protobuf::internal::DynamicCastToGenerated<const SnapshotDiffReportEntryProto>( |
8896 | &from); |
8897 | if (source == NULL) { |
8898 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8899 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8900 | } else { |
8901 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8902 | MergeFrom(*source); |
8903 | } |
8904 | } |
8905 | |
8906 | void SnapshotDiffReportEntryProto::MergeFrom(const SnapshotDiffReportEntryProto& from) { |
8907 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8908 | GOOGLE_DCHECK_NE(&from, this); |
8909 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8910 | ::google::protobuf::uint32 cached_has_bits = 0; |
8911 | (void) cached_has_bits; |
8912 | |
8913 | cached_has_bits = from._has_bits_[0]; |
8914 | if (cached_has_bits & 3u) { |
8915 | if (cached_has_bits & 0x00000001u) { |
8916 | set_has_fullpath(); |
8917 | fullpath_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fullpath_); |
8918 | } |
8919 | if (cached_has_bits & 0x00000002u) { |
8920 | set_has_modificationlabel(); |
8921 | modificationlabel_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.modificationlabel_); |
8922 | } |
8923 | } |
8924 | } |
8925 | |
8926 | void SnapshotDiffReportEntryProto::CopyFrom(const ::google::protobuf::Message& from) { |
8927 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8928 | if (&from == this) return; |
8929 | Clear(); |
8930 | MergeFrom(from); |
8931 | } |
8932 | |
8933 | void SnapshotDiffReportEntryProto::CopyFrom(const SnapshotDiffReportEntryProto& from) { |
8934 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.SnapshotDiffReportEntryProto) |
8935 | if (&from == this) return; |
8936 | Clear(); |
8937 | MergeFrom(from); |
8938 | } |
8939 | |
8940 | bool SnapshotDiffReportEntryProto::IsInitialized() const { |
8941 | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
8942 | return true; |
8943 | } |
8944 | |
8945 | void SnapshotDiffReportEntryProto::Swap(SnapshotDiffReportEntryProto* other) { |
8946 | if (other == this) return; |
8947 | InternalSwap(other); |
8948 | } |
8949 | void SnapshotDiffReportEntryProto::InternalSwap(SnapshotDiffReportEntryProto* other) { |
8950 | using std::swap; |
8951 | fullpath_.Swap(&other->fullpath_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
8952 | GetArenaNoVirtual()); |
8953 | modificationlabel_.Swap(&other->modificationlabel_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
8954 | GetArenaNoVirtual()); |
8955 | swap(_has_bits_[0], other->_has_bits_[0]); |
8956 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8957 | } |
8958 | |
8959 | ::google::protobuf::Metadata SnapshotDiffReportEntryProto::GetMetadata() const { |
8960 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
8961 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
8962 | } |
8963 | |
8964 | |
8965 | // =================================================================== |
8966 | |
8967 | void SnapshotDiffReportProto::InitAsDefaultInstance() { |
8968 | } |
8969 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8970 | const int SnapshotDiffReportProto::kSnapshotRootFieldNumber; |
8971 | const int SnapshotDiffReportProto::kFromSnapshotFieldNumber; |
8972 | const int SnapshotDiffReportProto::kToSnapshotFieldNumber; |
8973 | const int SnapshotDiffReportProto::kDiffReportEntriesFieldNumber; |
8974 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8975 | |
8976 | SnapshotDiffReportProto::SnapshotDiffReportProto() |
8977 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8978 | ::google::protobuf::internal::InitSCC( |
8979 | &protobuf_hdfs_2eproto::scc_info_SnapshotDiffReportProto.base); |
8980 | SharedCtor(); |
8981 | // @@protoc_insertion_point(constructor:Hdfs.Internal.SnapshotDiffReportProto) |
8982 | } |
8983 | SnapshotDiffReportProto::SnapshotDiffReportProto(const SnapshotDiffReportProto& from) |
8984 | : ::google::protobuf::Message(), |
8985 | _internal_metadata_(NULL), |
8986 | _has_bits_(from._has_bits_), |
8987 | diffreportentries_(from.diffreportentries_) { |
8988 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8989 | snapshotroot_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8990 | if (from.has_snapshotroot()) { |
8991 | snapshotroot_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshotroot_); |
8992 | } |
8993 | fromsnapshot_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8994 | if (from.has_fromsnapshot()) { |
8995 | fromsnapshot_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fromsnapshot_); |
8996 | } |
8997 | tosnapshot_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
8998 | if (from.has_tosnapshot()) { |
8999 | tosnapshot_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tosnapshot_); |
9000 | } |
9001 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.SnapshotDiffReportProto) |
9002 | } |
9003 | |
9004 | void SnapshotDiffReportProto::SharedCtor() { |
9005 | snapshotroot_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9006 | fromsnapshot_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9007 | tosnapshot_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9008 | } |
9009 | |
9010 | SnapshotDiffReportProto::~SnapshotDiffReportProto() { |
9011 | // @@protoc_insertion_point(destructor:Hdfs.Internal.SnapshotDiffReportProto) |
9012 | SharedDtor(); |
9013 | } |
9014 | |
9015 | void SnapshotDiffReportProto::SharedDtor() { |
9016 | snapshotroot_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9017 | fromsnapshot_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9018 | tosnapshot_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9019 | } |
9020 | |
9021 | void SnapshotDiffReportProto::SetCachedSize(int size) const { |
9022 | _cached_size_.Set(size); |
9023 | } |
9024 | const ::google::protobuf::Descriptor* SnapshotDiffReportProto::descriptor() { |
9025 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
9026 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
9027 | } |
9028 | |
9029 | const SnapshotDiffReportProto& SnapshotDiffReportProto::default_instance() { |
9030 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_SnapshotDiffReportProto.base); |
9031 | return *internal_default_instance(); |
9032 | } |
9033 | |
9034 | |
9035 | void SnapshotDiffReportProto::Clear() { |
9036 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.SnapshotDiffReportProto) |
9037 | ::google::protobuf::uint32 cached_has_bits = 0; |
9038 | // Prevent compiler warnings about cached_has_bits being unused |
9039 | (void) cached_has_bits; |
9040 | |
9041 | diffreportentries_.Clear(); |
9042 | cached_has_bits = _has_bits_[0]; |
9043 | if (cached_has_bits & 7u) { |
9044 | if (cached_has_bits & 0x00000001u) { |
9045 | snapshotroot_.ClearNonDefaultToEmptyNoArena(); |
9046 | } |
9047 | if (cached_has_bits & 0x00000002u) { |
9048 | fromsnapshot_.ClearNonDefaultToEmptyNoArena(); |
9049 | } |
9050 | if (cached_has_bits & 0x00000004u) { |
9051 | tosnapshot_.ClearNonDefaultToEmptyNoArena(); |
9052 | } |
9053 | } |
9054 | _has_bits_.Clear(); |
9055 | _internal_metadata_.Clear(); |
9056 | } |
9057 | |
9058 | bool SnapshotDiffReportProto::MergePartialFromCodedStream( |
9059 | ::google::protobuf::io::CodedInputStream* input) { |
9060 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
9061 | ::google::protobuf::uint32 tag; |
9062 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.SnapshotDiffReportProto) |
9063 | for (;;) { |
9064 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9065 | tag = p.first; |
9066 | if (!p.second) goto handle_unusual; |
9067 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
9068 | // required string snapshotRoot = 1; |
9069 | case 1: { |
9070 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9071 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
9072 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
9073 | input, this->mutable_snapshotroot())); |
9074 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9075 | this->snapshotroot().data(), static_cast<int>(this->snapshotroot().length()), |
9076 | ::google::protobuf::internal::WireFormat::PARSE, |
9077 | "Hdfs.Internal.SnapshotDiffReportProto.snapshotRoot" ); |
9078 | } else { |
9079 | goto handle_unusual; |
9080 | } |
9081 | break; |
9082 | } |
9083 | |
9084 | // required string fromSnapshot = 2; |
9085 | case 2: { |
9086 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9087 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
9088 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
9089 | input, this->mutable_fromsnapshot())); |
9090 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9091 | this->fromsnapshot().data(), static_cast<int>(this->fromsnapshot().length()), |
9092 | ::google::protobuf::internal::WireFormat::PARSE, |
9093 | "Hdfs.Internal.SnapshotDiffReportProto.fromSnapshot" ); |
9094 | } else { |
9095 | goto handle_unusual; |
9096 | } |
9097 | break; |
9098 | } |
9099 | |
9100 | // required string toSnapshot = 3; |
9101 | case 3: { |
9102 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9103 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
9104 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
9105 | input, this->mutable_tosnapshot())); |
9106 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9107 | this->tosnapshot().data(), static_cast<int>(this->tosnapshot().length()), |
9108 | ::google::protobuf::internal::WireFormat::PARSE, |
9109 | "Hdfs.Internal.SnapshotDiffReportProto.toSnapshot" ); |
9110 | } else { |
9111 | goto handle_unusual; |
9112 | } |
9113 | break; |
9114 | } |
9115 | |
9116 | // repeated .Hdfs.Internal.SnapshotDiffReportEntryProto diffReportEntries = 4; |
9117 | case 4: { |
9118 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9119 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
9120 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
9121 | input, add_diffreportentries())); |
9122 | } else { |
9123 | goto handle_unusual; |
9124 | } |
9125 | break; |
9126 | } |
9127 | |
9128 | default: { |
9129 | handle_unusual: |
9130 | if (tag == 0) { |
9131 | goto success; |
9132 | } |
9133 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
9134 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9135 | break; |
9136 | } |
9137 | } |
9138 | } |
9139 | success: |
9140 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.SnapshotDiffReportProto) |
9141 | return true; |
9142 | failure: |
9143 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.SnapshotDiffReportProto) |
9144 | return false; |
9145 | #undef DO_ |
9146 | } |
9147 | |
9148 | void SnapshotDiffReportProto::SerializeWithCachedSizes( |
9149 | ::google::protobuf::io::CodedOutputStream* output) const { |
9150 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.SnapshotDiffReportProto) |
9151 | ::google::protobuf::uint32 cached_has_bits = 0; |
9152 | (void) cached_has_bits; |
9153 | |
9154 | cached_has_bits = _has_bits_[0]; |
9155 | // required string snapshotRoot = 1; |
9156 | if (cached_has_bits & 0x00000001u) { |
9157 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9158 | this->snapshotroot().data(), static_cast<int>(this->snapshotroot().length()), |
9159 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
9160 | "Hdfs.Internal.SnapshotDiffReportProto.snapshotRoot" ); |
9161 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
9162 | 1, this->snapshotroot(), output); |
9163 | } |
9164 | |
9165 | // required string fromSnapshot = 2; |
9166 | if (cached_has_bits & 0x00000002u) { |
9167 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9168 | this->fromsnapshot().data(), static_cast<int>(this->fromsnapshot().length()), |
9169 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
9170 | "Hdfs.Internal.SnapshotDiffReportProto.fromSnapshot" ); |
9171 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
9172 | 2, this->fromsnapshot(), output); |
9173 | } |
9174 | |
9175 | // required string toSnapshot = 3; |
9176 | if (cached_has_bits & 0x00000004u) { |
9177 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9178 | this->tosnapshot().data(), static_cast<int>(this->tosnapshot().length()), |
9179 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
9180 | "Hdfs.Internal.SnapshotDiffReportProto.toSnapshot" ); |
9181 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
9182 | 3, this->tosnapshot(), output); |
9183 | } |
9184 | |
9185 | // repeated .Hdfs.Internal.SnapshotDiffReportEntryProto diffReportEntries = 4; |
9186 | for (unsigned int i = 0, |
9187 | n = static_cast<unsigned int>(this->diffreportentries_size()); i < n; i++) { |
9188 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
9189 | 4, |
9190 | this->diffreportentries(static_cast<int>(i)), |
9191 | output); |
9192 | } |
9193 | |
9194 | if (_internal_metadata_.have_unknown_fields()) { |
9195 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
9196 | _internal_metadata_.unknown_fields(), output); |
9197 | } |
9198 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.SnapshotDiffReportProto) |
9199 | } |
9200 | |
9201 | ::google::protobuf::uint8* SnapshotDiffReportProto::InternalSerializeWithCachedSizesToArray( |
9202 | bool deterministic, ::google::protobuf::uint8* target) const { |
9203 | (void)deterministic; // Unused |
9204 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.SnapshotDiffReportProto) |
9205 | ::google::protobuf::uint32 cached_has_bits = 0; |
9206 | (void) cached_has_bits; |
9207 | |
9208 | cached_has_bits = _has_bits_[0]; |
9209 | // required string snapshotRoot = 1; |
9210 | if (cached_has_bits & 0x00000001u) { |
9211 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9212 | this->snapshotroot().data(), static_cast<int>(this->snapshotroot().length()), |
9213 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
9214 | "Hdfs.Internal.SnapshotDiffReportProto.snapshotRoot" ); |
9215 | target = |
9216 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
9217 | 1, this->snapshotroot(), target); |
9218 | } |
9219 | |
9220 | // required string fromSnapshot = 2; |
9221 | if (cached_has_bits & 0x00000002u) { |
9222 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9223 | this->fromsnapshot().data(), static_cast<int>(this->fromsnapshot().length()), |
9224 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
9225 | "Hdfs.Internal.SnapshotDiffReportProto.fromSnapshot" ); |
9226 | target = |
9227 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
9228 | 2, this->fromsnapshot(), target); |
9229 | } |
9230 | |
9231 | // required string toSnapshot = 3; |
9232 | if (cached_has_bits & 0x00000004u) { |
9233 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9234 | this->tosnapshot().data(), static_cast<int>(this->tosnapshot().length()), |
9235 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
9236 | "Hdfs.Internal.SnapshotDiffReportProto.toSnapshot" ); |
9237 | target = |
9238 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
9239 | 3, this->tosnapshot(), target); |
9240 | } |
9241 | |
9242 | // repeated .Hdfs.Internal.SnapshotDiffReportEntryProto diffReportEntries = 4; |
9243 | for (unsigned int i = 0, |
9244 | n = static_cast<unsigned int>(this->diffreportentries_size()); i < n; i++) { |
9245 | target = ::google::protobuf::internal::WireFormatLite:: |
9246 | InternalWriteMessageToArray( |
9247 | 4, this->diffreportentries(static_cast<int>(i)), deterministic, target); |
9248 | } |
9249 | |
9250 | if (_internal_metadata_.have_unknown_fields()) { |
9251 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
9252 | _internal_metadata_.unknown_fields(), target); |
9253 | } |
9254 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.SnapshotDiffReportProto) |
9255 | return target; |
9256 | } |
9257 | |
9258 | size_t SnapshotDiffReportProto::RequiredFieldsByteSizeFallback() const { |
9259 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.SnapshotDiffReportProto) |
9260 | size_t total_size = 0; |
9261 | |
9262 | if (has_snapshotroot()) { |
9263 | // required string snapshotRoot = 1; |
9264 | total_size += 1 + |
9265 | ::google::protobuf::internal::WireFormatLite::StringSize( |
9266 | this->snapshotroot()); |
9267 | } |
9268 | |
9269 | if (has_fromsnapshot()) { |
9270 | // required string fromSnapshot = 2; |
9271 | total_size += 1 + |
9272 | ::google::protobuf::internal::WireFormatLite::StringSize( |
9273 | this->fromsnapshot()); |
9274 | } |
9275 | |
9276 | if (has_tosnapshot()) { |
9277 | // required string toSnapshot = 3; |
9278 | total_size += 1 + |
9279 | ::google::protobuf::internal::WireFormatLite::StringSize( |
9280 | this->tosnapshot()); |
9281 | } |
9282 | |
9283 | return total_size; |
9284 | } |
9285 | size_t SnapshotDiffReportProto::ByteSizeLong() const { |
9286 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.SnapshotDiffReportProto) |
9287 | size_t total_size = 0; |
9288 | |
9289 | if (_internal_metadata_.have_unknown_fields()) { |
9290 | total_size += |
9291 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
9292 | _internal_metadata_.unknown_fields()); |
9293 | } |
9294 | if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. |
9295 | // required string snapshotRoot = 1; |
9296 | total_size += 1 + |
9297 | ::google::protobuf::internal::WireFormatLite::StringSize( |
9298 | this->snapshotroot()); |
9299 | |
9300 | // required string fromSnapshot = 2; |
9301 | total_size += 1 + |
9302 | ::google::protobuf::internal::WireFormatLite::StringSize( |
9303 | this->fromsnapshot()); |
9304 | |
9305 | // required string toSnapshot = 3; |
9306 | total_size += 1 + |
9307 | ::google::protobuf::internal::WireFormatLite::StringSize( |
9308 | this->tosnapshot()); |
9309 | |
9310 | } else { |
9311 | total_size += RequiredFieldsByteSizeFallback(); |
9312 | } |
9313 | // repeated .Hdfs.Internal.SnapshotDiffReportEntryProto diffReportEntries = 4; |
9314 | { |
9315 | unsigned int count = static_cast<unsigned int>(this->diffreportentries_size()); |
9316 | total_size += 1UL * count; |
9317 | for (unsigned int i = 0; i < count; i++) { |
9318 | total_size += |
9319 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
9320 | this->diffreportentries(static_cast<int>(i))); |
9321 | } |
9322 | } |
9323 | |
9324 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
9325 | SetCachedSize(cached_size); |
9326 | return total_size; |
9327 | } |
9328 | |
9329 | void SnapshotDiffReportProto::MergeFrom(const ::google::protobuf::Message& from) { |
9330 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.SnapshotDiffReportProto) |
9331 | GOOGLE_DCHECK_NE(&from, this); |
9332 | const SnapshotDiffReportProto* source = |
9333 | ::google::protobuf::internal::DynamicCastToGenerated<const SnapshotDiffReportProto>( |
9334 | &from); |
9335 | if (source == NULL) { |
9336 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.SnapshotDiffReportProto) |
9337 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
9338 | } else { |
9339 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.SnapshotDiffReportProto) |
9340 | MergeFrom(*source); |
9341 | } |
9342 | } |
9343 | |
9344 | void SnapshotDiffReportProto::MergeFrom(const SnapshotDiffReportProto& from) { |
9345 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.SnapshotDiffReportProto) |
9346 | GOOGLE_DCHECK_NE(&from, this); |
9347 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9348 | ::google::protobuf::uint32 cached_has_bits = 0; |
9349 | (void) cached_has_bits; |
9350 | |
9351 | diffreportentries_.MergeFrom(from.diffreportentries_); |
9352 | cached_has_bits = from._has_bits_[0]; |
9353 | if (cached_has_bits & 7u) { |
9354 | if (cached_has_bits & 0x00000001u) { |
9355 | set_has_snapshotroot(); |
9356 | snapshotroot_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshotroot_); |
9357 | } |
9358 | if (cached_has_bits & 0x00000002u) { |
9359 | set_has_fromsnapshot(); |
9360 | fromsnapshot_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fromsnapshot_); |
9361 | } |
9362 | if (cached_has_bits & 0x00000004u) { |
9363 | set_has_tosnapshot(); |
9364 | tosnapshot_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tosnapshot_); |
9365 | } |
9366 | } |
9367 | } |
9368 | |
9369 | void SnapshotDiffReportProto::CopyFrom(const ::google::protobuf::Message& from) { |
9370 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.SnapshotDiffReportProto) |
9371 | if (&from == this) return; |
9372 | Clear(); |
9373 | MergeFrom(from); |
9374 | } |
9375 | |
9376 | void SnapshotDiffReportProto::CopyFrom(const SnapshotDiffReportProto& from) { |
9377 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.SnapshotDiffReportProto) |
9378 | if (&from == this) return; |
9379 | Clear(); |
9380 | MergeFrom(from); |
9381 | } |
9382 | |
9383 | bool SnapshotDiffReportProto::IsInitialized() const { |
9384 | if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; |
9385 | if (!::google::protobuf::internal::AllAreInitialized(this->diffreportentries())) return false; |
9386 | return true; |
9387 | } |
9388 | |
9389 | void SnapshotDiffReportProto::Swap(SnapshotDiffReportProto* other) { |
9390 | if (other == this) return; |
9391 | InternalSwap(other); |
9392 | } |
9393 | void SnapshotDiffReportProto::InternalSwap(SnapshotDiffReportProto* other) { |
9394 | using std::swap; |
9395 | CastToBase(&diffreportentries_)->InternalSwap(CastToBase(&other->diffreportentries_)); |
9396 | snapshotroot_.Swap(&other->snapshotroot_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
9397 | GetArenaNoVirtual()); |
9398 | fromsnapshot_.Swap(&other->fromsnapshot_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
9399 | GetArenaNoVirtual()); |
9400 | tosnapshot_.Swap(&other->tosnapshot_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
9401 | GetArenaNoVirtual()); |
9402 | swap(_has_bits_[0], other->_has_bits_[0]); |
9403 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9404 | } |
9405 | |
9406 | ::google::protobuf::Metadata SnapshotDiffReportProto::GetMetadata() const { |
9407 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
9408 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
9409 | } |
9410 | |
9411 | |
9412 | // =================================================================== |
9413 | |
9414 | void StorageInfoProto::InitAsDefaultInstance() { |
9415 | } |
9416 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
9417 | const int StorageInfoProto::kLayoutVersionFieldNumber; |
9418 | const int StorageInfoProto::kNamespceIDFieldNumber; |
9419 | const int StorageInfoProto::kClusterIDFieldNumber; |
9420 | const int StorageInfoProto::kCTimeFieldNumber; |
9421 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
9422 | |
9423 | StorageInfoProto::StorageInfoProto() |
9424 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
9425 | ::google::protobuf::internal::InitSCC( |
9426 | &protobuf_hdfs_2eproto::scc_info_StorageInfoProto.base); |
9427 | SharedCtor(); |
9428 | // @@protoc_insertion_point(constructor:Hdfs.Internal.StorageInfoProto) |
9429 | } |
9430 | StorageInfoProto::StorageInfoProto(const StorageInfoProto& from) |
9431 | : ::google::protobuf::Message(), |
9432 | _internal_metadata_(NULL), |
9433 | _has_bits_(from._has_bits_) { |
9434 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9435 | clusterid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9436 | if (from.has_clusterid()) { |
9437 | clusterid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.clusterid_); |
9438 | } |
9439 | ::memcpy(&layoutversion_, &from.layoutversion_, |
9440 | static_cast<size_t>(reinterpret_cast<char*>(&ctime_) - |
9441 | reinterpret_cast<char*>(&layoutversion_)) + sizeof(ctime_)); |
9442 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.StorageInfoProto) |
9443 | } |
9444 | |
9445 | void StorageInfoProto::SharedCtor() { |
9446 | clusterid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9447 | ::memset(&layoutversion_, 0, static_cast<size_t>( |
9448 | reinterpret_cast<char*>(&ctime_) - |
9449 | reinterpret_cast<char*>(&layoutversion_)) + sizeof(ctime_)); |
9450 | } |
9451 | |
9452 | StorageInfoProto::~StorageInfoProto() { |
9453 | // @@protoc_insertion_point(destructor:Hdfs.Internal.StorageInfoProto) |
9454 | SharedDtor(); |
9455 | } |
9456 | |
9457 | void StorageInfoProto::SharedDtor() { |
9458 | clusterid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9459 | } |
9460 | |
9461 | void StorageInfoProto::SetCachedSize(int size) const { |
9462 | _cached_size_.Set(size); |
9463 | } |
9464 | const ::google::protobuf::Descriptor* StorageInfoProto::descriptor() { |
9465 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
9466 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
9467 | } |
9468 | |
9469 | const StorageInfoProto& StorageInfoProto::default_instance() { |
9470 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_StorageInfoProto.base); |
9471 | return *internal_default_instance(); |
9472 | } |
9473 | |
9474 | |
9475 | void StorageInfoProto::Clear() { |
9476 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.StorageInfoProto) |
9477 | ::google::protobuf::uint32 cached_has_bits = 0; |
9478 | // Prevent compiler warnings about cached_has_bits being unused |
9479 | (void) cached_has_bits; |
9480 | |
9481 | cached_has_bits = _has_bits_[0]; |
9482 | if (cached_has_bits & 0x00000001u) { |
9483 | clusterid_.ClearNonDefaultToEmptyNoArena(); |
9484 | } |
9485 | if (cached_has_bits & 14u) { |
9486 | ::memset(&layoutversion_, 0, static_cast<size_t>( |
9487 | reinterpret_cast<char*>(&ctime_) - |
9488 | reinterpret_cast<char*>(&layoutversion_)) + sizeof(ctime_)); |
9489 | } |
9490 | _has_bits_.Clear(); |
9491 | _internal_metadata_.Clear(); |
9492 | } |
9493 | |
9494 | bool StorageInfoProto::MergePartialFromCodedStream( |
9495 | ::google::protobuf::io::CodedInputStream* input) { |
9496 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
9497 | ::google::protobuf::uint32 tag; |
9498 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.StorageInfoProto) |
9499 | for (;;) { |
9500 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9501 | tag = p.first; |
9502 | if (!p.second) goto handle_unusual; |
9503 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
9504 | // required uint32 layoutVersion = 1; |
9505 | case 1: { |
9506 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9507 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
9508 | set_has_layoutversion(); |
9509 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9510 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
9511 | input, &layoutversion_))); |
9512 | } else { |
9513 | goto handle_unusual; |
9514 | } |
9515 | break; |
9516 | } |
9517 | |
9518 | // required uint32 namespceID = 2; |
9519 | case 2: { |
9520 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9521 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
9522 | set_has_namespceid(); |
9523 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9524 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
9525 | input, &namespceid_))); |
9526 | } else { |
9527 | goto handle_unusual; |
9528 | } |
9529 | break; |
9530 | } |
9531 | |
9532 | // required string clusterID = 3; |
9533 | case 3: { |
9534 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9535 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
9536 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
9537 | input, this->mutable_clusterid())); |
9538 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9539 | this->clusterid().data(), static_cast<int>(this->clusterid().length()), |
9540 | ::google::protobuf::internal::WireFormat::PARSE, |
9541 | "Hdfs.Internal.StorageInfoProto.clusterID" ); |
9542 | } else { |
9543 | goto handle_unusual; |
9544 | } |
9545 | break; |
9546 | } |
9547 | |
9548 | // required uint64 cTime = 4; |
9549 | case 4: { |
9550 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9551 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
9552 | set_has_ctime(); |
9553 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9554 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
9555 | input, &ctime_))); |
9556 | } else { |
9557 | goto handle_unusual; |
9558 | } |
9559 | break; |
9560 | } |
9561 | |
9562 | default: { |
9563 | handle_unusual: |
9564 | if (tag == 0) { |
9565 | goto success; |
9566 | } |
9567 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
9568 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9569 | break; |
9570 | } |
9571 | } |
9572 | } |
9573 | success: |
9574 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.StorageInfoProto) |
9575 | return true; |
9576 | failure: |
9577 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.StorageInfoProto) |
9578 | return false; |
9579 | #undef DO_ |
9580 | } |
9581 | |
9582 | void StorageInfoProto::SerializeWithCachedSizes( |
9583 | ::google::protobuf::io::CodedOutputStream* output) const { |
9584 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.StorageInfoProto) |
9585 | ::google::protobuf::uint32 cached_has_bits = 0; |
9586 | (void) cached_has_bits; |
9587 | |
9588 | cached_has_bits = _has_bits_[0]; |
9589 | // required uint32 layoutVersion = 1; |
9590 | if (cached_has_bits & 0x00000002u) { |
9591 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->layoutversion(), output); |
9592 | } |
9593 | |
9594 | // required uint32 namespceID = 2; |
9595 | if (cached_has_bits & 0x00000004u) { |
9596 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->namespceid(), output); |
9597 | } |
9598 | |
9599 | // required string clusterID = 3; |
9600 | if (cached_has_bits & 0x00000001u) { |
9601 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9602 | this->clusterid().data(), static_cast<int>(this->clusterid().length()), |
9603 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
9604 | "Hdfs.Internal.StorageInfoProto.clusterID" ); |
9605 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
9606 | 3, this->clusterid(), output); |
9607 | } |
9608 | |
9609 | // required uint64 cTime = 4; |
9610 | if (cached_has_bits & 0x00000008u) { |
9611 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->ctime(), output); |
9612 | } |
9613 | |
9614 | if (_internal_metadata_.have_unknown_fields()) { |
9615 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
9616 | _internal_metadata_.unknown_fields(), output); |
9617 | } |
9618 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.StorageInfoProto) |
9619 | } |
9620 | |
9621 | ::google::protobuf::uint8* StorageInfoProto::InternalSerializeWithCachedSizesToArray( |
9622 | bool deterministic, ::google::protobuf::uint8* target) const { |
9623 | (void)deterministic; // Unused |
9624 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.StorageInfoProto) |
9625 | ::google::protobuf::uint32 cached_has_bits = 0; |
9626 | (void) cached_has_bits; |
9627 | |
9628 | cached_has_bits = _has_bits_[0]; |
9629 | // required uint32 layoutVersion = 1; |
9630 | if (cached_has_bits & 0x00000002u) { |
9631 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->layoutversion(), target); |
9632 | } |
9633 | |
9634 | // required uint32 namespceID = 2; |
9635 | if (cached_has_bits & 0x00000004u) { |
9636 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->namespceid(), target); |
9637 | } |
9638 | |
9639 | // required string clusterID = 3; |
9640 | if (cached_has_bits & 0x00000001u) { |
9641 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9642 | this->clusterid().data(), static_cast<int>(this->clusterid().length()), |
9643 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
9644 | "Hdfs.Internal.StorageInfoProto.clusterID" ); |
9645 | target = |
9646 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
9647 | 3, this->clusterid(), target); |
9648 | } |
9649 | |
9650 | // required uint64 cTime = 4; |
9651 | if (cached_has_bits & 0x00000008u) { |
9652 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->ctime(), target); |
9653 | } |
9654 | |
9655 | if (_internal_metadata_.have_unknown_fields()) { |
9656 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
9657 | _internal_metadata_.unknown_fields(), target); |
9658 | } |
9659 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.StorageInfoProto) |
9660 | return target; |
9661 | } |
9662 | |
9663 | size_t StorageInfoProto::RequiredFieldsByteSizeFallback() const { |
9664 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.StorageInfoProto) |
9665 | size_t total_size = 0; |
9666 | |
9667 | if (has_clusterid()) { |
9668 | // required string clusterID = 3; |
9669 | total_size += 1 + |
9670 | ::google::protobuf::internal::WireFormatLite::StringSize( |
9671 | this->clusterid()); |
9672 | } |
9673 | |
9674 | if (has_layoutversion()) { |
9675 | // required uint32 layoutVersion = 1; |
9676 | total_size += 1 + |
9677 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
9678 | this->layoutversion()); |
9679 | } |
9680 | |
9681 | if (has_namespceid()) { |
9682 | // required uint32 namespceID = 2; |
9683 | total_size += 1 + |
9684 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
9685 | this->namespceid()); |
9686 | } |
9687 | |
9688 | if (has_ctime()) { |
9689 | // required uint64 cTime = 4; |
9690 | total_size += 1 + |
9691 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
9692 | this->ctime()); |
9693 | } |
9694 | |
9695 | return total_size; |
9696 | } |
9697 | size_t StorageInfoProto::ByteSizeLong() const { |
9698 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.StorageInfoProto) |
9699 | size_t total_size = 0; |
9700 | |
9701 | if (_internal_metadata_.have_unknown_fields()) { |
9702 | total_size += |
9703 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
9704 | _internal_metadata_.unknown_fields()); |
9705 | } |
9706 | if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. |
9707 | // required string clusterID = 3; |
9708 | total_size += 1 + |
9709 | ::google::protobuf::internal::WireFormatLite::StringSize( |
9710 | this->clusterid()); |
9711 | |
9712 | // required uint32 layoutVersion = 1; |
9713 | total_size += 1 + |
9714 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
9715 | this->layoutversion()); |
9716 | |
9717 | // required uint32 namespceID = 2; |
9718 | total_size += 1 + |
9719 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
9720 | this->namespceid()); |
9721 | |
9722 | // required uint64 cTime = 4; |
9723 | total_size += 1 + |
9724 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
9725 | this->ctime()); |
9726 | |
9727 | } else { |
9728 | total_size += RequiredFieldsByteSizeFallback(); |
9729 | } |
9730 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
9731 | SetCachedSize(cached_size); |
9732 | return total_size; |
9733 | } |
9734 | |
9735 | void StorageInfoProto::MergeFrom(const ::google::protobuf::Message& from) { |
9736 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.StorageInfoProto) |
9737 | GOOGLE_DCHECK_NE(&from, this); |
9738 | const StorageInfoProto* source = |
9739 | ::google::protobuf::internal::DynamicCastToGenerated<const StorageInfoProto>( |
9740 | &from); |
9741 | if (source == NULL) { |
9742 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.StorageInfoProto) |
9743 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
9744 | } else { |
9745 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.StorageInfoProto) |
9746 | MergeFrom(*source); |
9747 | } |
9748 | } |
9749 | |
9750 | void StorageInfoProto::MergeFrom(const StorageInfoProto& from) { |
9751 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.StorageInfoProto) |
9752 | GOOGLE_DCHECK_NE(&from, this); |
9753 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9754 | ::google::protobuf::uint32 cached_has_bits = 0; |
9755 | (void) cached_has_bits; |
9756 | |
9757 | cached_has_bits = from._has_bits_[0]; |
9758 | if (cached_has_bits & 15u) { |
9759 | if (cached_has_bits & 0x00000001u) { |
9760 | set_has_clusterid(); |
9761 | clusterid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.clusterid_); |
9762 | } |
9763 | if (cached_has_bits & 0x00000002u) { |
9764 | layoutversion_ = from.layoutversion_; |
9765 | } |
9766 | if (cached_has_bits & 0x00000004u) { |
9767 | namespceid_ = from.namespceid_; |
9768 | } |
9769 | if (cached_has_bits & 0x00000008u) { |
9770 | ctime_ = from.ctime_; |
9771 | } |
9772 | _has_bits_[0] |= cached_has_bits; |
9773 | } |
9774 | } |
9775 | |
9776 | void StorageInfoProto::CopyFrom(const ::google::protobuf::Message& from) { |
9777 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.StorageInfoProto) |
9778 | if (&from == this) return; |
9779 | Clear(); |
9780 | MergeFrom(from); |
9781 | } |
9782 | |
9783 | void StorageInfoProto::CopyFrom(const StorageInfoProto& from) { |
9784 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.StorageInfoProto) |
9785 | if (&from == this) return; |
9786 | Clear(); |
9787 | MergeFrom(from); |
9788 | } |
9789 | |
9790 | bool StorageInfoProto::IsInitialized() const { |
9791 | if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; |
9792 | return true; |
9793 | } |
9794 | |
9795 | void StorageInfoProto::Swap(StorageInfoProto* other) { |
9796 | if (other == this) return; |
9797 | InternalSwap(other); |
9798 | } |
9799 | void StorageInfoProto::InternalSwap(StorageInfoProto* other) { |
9800 | using std::swap; |
9801 | clusterid_.Swap(&other->clusterid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
9802 | GetArenaNoVirtual()); |
9803 | swap(layoutversion_, other->layoutversion_); |
9804 | swap(namespceid_, other->namespceid_); |
9805 | swap(ctime_, other->ctime_); |
9806 | swap(_has_bits_[0], other->_has_bits_[0]); |
9807 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9808 | } |
9809 | |
9810 | ::google::protobuf::Metadata StorageInfoProto::GetMetadata() const { |
9811 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
9812 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
9813 | } |
9814 | |
9815 | |
9816 | // =================================================================== |
9817 | |
9818 | void NamenodeRegistrationProto::InitAsDefaultInstance() { |
9819 | ::Hdfs::Internal::_NamenodeRegistrationProto_default_instance_._instance.get_mutable()->storageinfo_ = const_cast< ::Hdfs::Internal::StorageInfoProto*>( |
9820 | ::Hdfs::Internal::StorageInfoProto::internal_default_instance()); |
9821 | } |
9822 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
9823 | const int NamenodeRegistrationProto::kRpcAddressFieldNumber; |
9824 | const int NamenodeRegistrationProto::kHttpAddressFieldNumber; |
9825 | const int NamenodeRegistrationProto::kStorageInfoFieldNumber; |
9826 | const int NamenodeRegistrationProto::kRoleFieldNumber; |
9827 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
9828 | |
9829 | NamenodeRegistrationProto::NamenodeRegistrationProto() |
9830 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
9831 | ::google::protobuf::internal::InitSCC( |
9832 | &protobuf_hdfs_2eproto::scc_info_NamenodeRegistrationProto.base); |
9833 | SharedCtor(); |
9834 | // @@protoc_insertion_point(constructor:Hdfs.Internal.NamenodeRegistrationProto) |
9835 | } |
9836 | NamenodeRegistrationProto::NamenodeRegistrationProto(const NamenodeRegistrationProto& from) |
9837 | : ::google::protobuf::Message(), |
9838 | _internal_metadata_(NULL), |
9839 | _has_bits_(from._has_bits_) { |
9840 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9841 | rpcaddress_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9842 | if (from.has_rpcaddress()) { |
9843 | rpcaddress_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rpcaddress_); |
9844 | } |
9845 | httpaddress_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9846 | if (from.has_httpaddress()) { |
9847 | httpaddress_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.httpaddress_); |
9848 | } |
9849 | if (from.has_storageinfo()) { |
9850 | storageinfo_ = new ::Hdfs::Internal::StorageInfoProto(*from.storageinfo_); |
9851 | } else { |
9852 | storageinfo_ = NULL; |
9853 | } |
9854 | role_ = from.role_; |
9855 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.NamenodeRegistrationProto) |
9856 | } |
9857 | |
9858 | void NamenodeRegistrationProto::SharedCtor() { |
9859 | rpcaddress_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9860 | httpaddress_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9861 | storageinfo_ = NULL; |
9862 | role_ = 1; |
9863 | } |
9864 | |
9865 | NamenodeRegistrationProto::~NamenodeRegistrationProto() { |
9866 | // @@protoc_insertion_point(destructor:Hdfs.Internal.NamenodeRegistrationProto) |
9867 | SharedDtor(); |
9868 | } |
9869 | |
9870 | void NamenodeRegistrationProto::SharedDtor() { |
9871 | rpcaddress_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9872 | httpaddress_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
9873 | if (this != internal_default_instance()) delete storageinfo_; |
9874 | } |
9875 | |
9876 | void NamenodeRegistrationProto::SetCachedSize(int size) const { |
9877 | _cached_size_.Set(size); |
9878 | } |
9879 | const ::google::protobuf::Descriptor* NamenodeRegistrationProto::descriptor() { |
9880 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
9881 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
9882 | } |
9883 | |
9884 | const NamenodeRegistrationProto& NamenodeRegistrationProto::default_instance() { |
9885 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_NamenodeRegistrationProto.base); |
9886 | return *internal_default_instance(); |
9887 | } |
9888 | |
9889 | |
9890 | void NamenodeRegistrationProto::Clear() { |
9891 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.NamenodeRegistrationProto) |
9892 | ::google::protobuf::uint32 cached_has_bits = 0; |
9893 | // Prevent compiler warnings about cached_has_bits being unused |
9894 | (void) cached_has_bits; |
9895 | |
9896 | cached_has_bits = _has_bits_[0]; |
9897 | if (cached_has_bits & 15u) { |
9898 | if (cached_has_bits & 0x00000001u) { |
9899 | rpcaddress_.ClearNonDefaultToEmptyNoArena(); |
9900 | } |
9901 | if (cached_has_bits & 0x00000002u) { |
9902 | httpaddress_.ClearNonDefaultToEmptyNoArena(); |
9903 | } |
9904 | if (cached_has_bits & 0x00000004u) { |
9905 | GOOGLE_DCHECK(storageinfo_ != NULL); |
9906 | storageinfo_->Clear(); |
9907 | } |
9908 | role_ = 1; |
9909 | } |
9910 | _has_bits_.Clear(); |
9911 | _internal_metadata_.Clear(); |
9912 | } |
9913 | |
9914 | bool NamenodeRegistrationProto::MergePartialFromCodedStream( |
9915 | ::google::protobuf::io::CodedInputStream* input) { |
9916 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
9917 | ::google::protobuf::uint32 tag; |
9918 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.NamenodeRegistrationProto) |
9919 | for (;;) { |
9920 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9921 | tag = p.first; |
9922 | if (!p.second) goto handle_unusual; |
9923 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
9924 | // required string rpcAddress = 1; |
9925 | case 1: { |
9926 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9927 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
9928 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
9929 | input, this->mutable_rpcaddress())); |
9930 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9931 | this->rpcaddress().data(), static_cast<int>(this->rpcaddress().length()), |
9932 | ::google::protobuf::internal::WireFormat::PARSE, |
9933 | "Hdfs.Internal.NamenodeRegistrationProto.rpcAddress" ); |
9934 | } else { |
9935 | goto handle_unusual; |
9936 | } |
9937 | break; |
9938 | } |
9939 | |
9940 | // required string httpAddress = 2; |
9941 | case 2: { |
9942 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9943 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
9944 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
9945 | input, this->mutable_httpaddress())); |
9946 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
9947 | this->httpaddress().data(), static_cast<int>(this->httpaddress().length()), |
9948 | ::google::protobuf::internal::WireFormat::PARSE, |
9949 | "Hdfs.Internal.NamenodeRegistrationProto.httpAddress" ); |
9950 | } else { |
9951 | goto handle_unusual; |
9952 | } |
9953 | break; |
9954 | } |
9955 | |
9956 | // required .Hdfs.Internal.StorageInfoProto storageInfo = 3; |
9957 | case 3: { |
9958 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9959 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
9960 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
9961 | input, mutable_storageinfo())); |
9962 | } else { |
9963 | goto handle_unusual; |
9964 | } |
9965 | break; |
9966 | } |
9967 | |
9968 | // optional .Hdfs.Internal.NamenodeRegistrationProto.NamenodeRoleProto role = 4 [default = NAMENODE]; |
9969 | case 4: { |
9970 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9971 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
9972 | int value; |
9973 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9974 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
9975 | input, &value))); |
9976 | if (::Hdfs::Internal::NamenodeRegistrationProto_NamenodeRoleProto_IsValid(value)) { |
9977 | set_role(static_cast< ::Hdfs::Internal::NamenodeRegistrationProto_NamenodeRoleProto >(value)); |
9978 | } else { |
9979 | mutable_unknown_fields()->AddVarint( |
9980 | 4, static_cast< ::google::protobuf::uint64>(value)); |
9981 | } |
9982 | } else { |
9983 | goto handle_unusual; |
9984 | } |
9985 | break; |
9986 | } |
9987 | |
9988 | default: { |
9989 | handle_unusual: |
9990 | if (tag == 0) { |
9991 | goto success; |
9992 | } |
9993 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
9994 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9995 | break; |
9996 | } |
9997 | } |
9998 | } |
9999 | success: |
10000 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.NamenodeRegistrationProto) |
10001 | return true; |
10002 | failure: |
10003 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.NamenodeRegistrationProto) |
10004 | return false; |
10005 | #undef DO_ |
10006 | } |
10007 | |
10008 | void NamenodeRegistrationProto::SerializeWithCachedSizes( |
10009 | ::google::protobuf::io::CodedOutputStream* output) const { |
10010 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.NamenodeRegistrationProto) |
10011 | ::google::protobuf::uint32 cached_has_bits = 0; |
10012 | (void) cached_has_bits; |
10013 | |
10014 | cached_has_bits = _has_bits_[0]; |
10015 | // required string rpcAddress = 1; |
10016 | if (cached_has_bits & 0x00000001u) { |
10017 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
10018 | this->rpcaddress().data(), static_cast<int>(this->rpcaddress().length()), |
10019 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
10020 | "Hdfs.Internal.NamenodeRegistrationProto.rpcAddress" ); |
10021 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
10022 | 1, this->rpcaddress(), output); |
10023 | } |
10024 | |
10025 | // required string httpAddress = 2; |
10026 | if (cached_has_bits & 0x00000002u) { |
10027 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
10028 | this->httpaddress().data(), static_cast<int>(this->httpaddress().length()), |
10029 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
10030 | "Hdfs.Internal.NamenodeRegistrationProto.httpAddress" ); |
10031 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
10032 | 2, this->httpaddress(), output); |
10033 | } |
10034 | |
10035 | // required .Hdfs.Internal.StorageInfoProto storageInfo = 3; |
10036 | if (cached_has_bits & 0x00000004u) { |
10037 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
10038 | 3, this->_internal_storageinfo(), output); |
10039 | } |
10040 | |
10041 | // optional .Hdfs.Internal.NamenodeRegistrationProto.NamenodeRoleProto role = 4 [default = NAMENODE]; |
10042 | if (cached_has_bits & 0x00000008u) { |
10043 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
10044 | 4, this->role(), output); |
10045 | } |
10046 | |
10047 | if (_internal_metadata_.have_unknown_fields()) { |
10048 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
10049 | _internal_metadata_.unknown_fields(), output); |
10050 | } |
10051 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.NamenodeRegistrationProto) |
10052 | } |
10053 | |
10054 | ::google::protobuf::uint8* NamenodeRegistrationProto::InternalSerializeWithCachedSizesToArray( |
10055 | bool deterministic, ::google::protobuf::uint8* target) const { |
10056 | (void)deterministic; // Unused |
10057 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.NamenodeRegistrationProto) |
10058 | ::google::protobuf::uint32 cached_has_bits = 0; |
10059 | (void) cached_has_bits; |
10060 | |
10061 | cached_has_bits = _has_bits_[0]; |
10062 | // required string rpcAddress = 1; |
10063 | if (cached_has_bits & 0x00000001u) { |
10064 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
10065 | this->rpcaddress().data(), static_cast<int>(this->rpcaddress().length()), |
10066 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
10067 | "Hdfs.Internal.NamenodeRegistrationProto.rpcAddress" ); |
10068 | target = |
10069 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
10070 | 1, this->rpcaddress(), target); |
10071 | } |
10072 | |
10073 | // required string httpAddress = 2; |
10074 | if (cached_has_bits & 0x00000002u) { |
10075 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
10076 | this->httpaddress().data(), static_cast<int>(this->httpaddress().length()), |
10077 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
10078 | "Hdfs.Internal.NamenodeRegistrationProto.httpAddress" ); |
10079 | target = |
10080 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
10081 | 2, this->httpaddress(), target); |
10082 | } |
10083 | |
10084 | // required .Hdfs.Internal.StorageInfoProto storageInfo = 3; |
10085 | if (cached_has_bits & 0x00000004u) { |
10086 | target = ::google::protobuf::internal::WireFormatLite:: |
10087 | InternalWriteMessageToArray( |
10088 | 3, this->_internal_storageinfo(), deterministic, target); |
10089 | } |
10090 | |
10091 | // optional .Hdfs.Internal.NamenodeRegistrationProto.NamenodeRoleProto role = 4 [default = NAMENODE]; |
10092 | if (cached_has_bits & 0x00000008u) { |
10093 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
10094 | 4, this->role(), target); |
10095 | } |
10096 | |
10097 | if (_internal_metadata_.have_unknown_fields()) { |
10098 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
10099 | _internal_metadata_.unknown_fields(), target); |
10100 | } |
10101 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.NamenodeRegistrationProto) |
10102 | return target; |
10103 | } |
10104 | |
10105 | size_t NamenodeRegistrationProto::RequiredFieldsByteSizeFallback() const { |
10106 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.NamenodeRegistrationProto) |
10107 | size_t total_size = 0; |
10108 | |
10109 | if (has_rpcaddress()) { |
10110 | // required string rpcAddress = 1; |
10111 | total_size += 1 + |
10112 | ::google::protobuf::internal::WireFormatLite::StringSize( |
10113 | this->rpcaddress()); |
10114 | } |
10115 | |
10116 | if (has_httpaddress()) { |
10117 | // required string httpAddress = 2; |
10118 | total_size += 1 + |
10119 | ::google::protobuf::internal::WireFormatLite::StringSize( |
10120 | this->httpaddress()); |
10121 | } |
10122 | |
10123 | if (has_storageinfo()) { |
10124 | // required .Hdfs.Internal.StorageInfoProto storageInfo = 3; |
10125 | total_size += 1 + |
10126 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
10127 | *storageinfo_); |
10128 | } |
10129 | |
10130 | return total_size; |
10131 | } |
10132 | size_t NamenodeRegistrationProto::ByteSizeLong() const { |
10133 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.NamenodeRegistrationProto) |
10134 | size_t total_size = 0; |
10135 | |
10136 | if (_internal_metadata_.have_unknown_fields()) { |
10137 | total_size += |
10138 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
10139 | _internal_metadata_.unknown_fields()); |
10140 | } |
10141 | if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. |
10142 | // required string rpcAddress = 1; |
10143 | total_size += 1 + |
10144 | ::google::protobuf::internal::WireFormatLite::StringSize( |
10145 | this->rpcaddress()); |
10146 | |
10147 | // required string httpAddress = 2; |
10148 | total_size += 1 + |
10149 | ::google::protobuf::internal::WireFormatLite::StringSize( |
10150 | this->httpaddress()); |
10151 | |
10152 | // required .Hdfs.Internal.StorageInfoProto storageInfo = 3; |
10153 | total_size += 1 + |
10154 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
10155 | *storageinfo_); |
10156 | |
10157 | } else { |
10158 | total_size += RequiredFieldsByteSizeFallback(); |
10159 | } |
10160 | // optional .Hdfs.Internal.NamenodeRegistrationProto.NamenodeRoleProto role = 4 [default = NAMENODE]; |
10161 | if (has_role()) { |
10162 | total_size += 1 + |
10163 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->role()); |
10164 | } |
10165 | |
10166 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
10167 | SetCachedSize(cached_size); |
10168 | return total_size; |
10169 | } |
10170 | |
10171 | void NamenodeRegistrationProto::MergeFrom(const ::google::protobuf::Message& from) { |
10172 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.NamenodeRegistrationProto) |
10173 | GOOGLE_DCHECK_NE(&from, this); |
10174 | const NamenodeRegistrationProto* source = |
10175 | ::google::protobuf::internal::DynamicCastToGenerated<const NamenodeRegistrationProto>( |
10176 | &from); |
10177 | if (source == NULL) { |
10178 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.NamenodeRegistrationProto) |
10179 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
10180 | } else { |
10181 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.NamenodeRegistrationProto) |
10182 | MergeFrom(*source); |
10183 | } |
10184 | } |
10185 | |
10186 | void NamenodeRegistrationProto::MergeFrom(const NamenodeRegistrationProto& from) { |
10187 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.NamenodeRegistrationProto) |
10188 | GOOGLE_DCHECK_NE(&from, this); |
10189 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10190 | ::google::protobuf::uint32 cached_has_bits = 0; |
10191 | (void) cached_has_bits; |
10192 | |
10193 | cached_has_bits = from._has_bits_[0]; |
10194 | if (cached_has_bits & 15u) { |
10195 | if (cached_has_bits & 0x00000001u) { |
10196 | set_has_rpcaddress(); |
10197 | rpcaddress_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rpcaddress_); |
10198 | } |
10199 | if (cached_has_bits & 0x00000002u) { |
10200 | set_has_httpaddress(); |
10201 | httpaddress_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.httpaddress_); |
10202 | } |
10203 | if (cached_has_bits & 0x00000004u) { |
10204 | mutable_storageinfo()->::Hdfs::Internal::StorageInfoProto::MergeFrom(from.storageinfo()); |
10205 | } |
10206 | if (cached_has_bits & 0x00000008u) { |
10207 | role_ = from.role_; |
10208 | } |
10209 | _has_bits_[0] |= cached_has_bits; |
10210 | } |
10211 | } |
10212 | |
10213 | void NamenodeRegistrationProto::CopyFrom(const ::google::protobuf::Message& from) { |
10214 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.NamenodeRegistrationProto) |
10215 | if (&from == this) return; |
10216 | Clear(); |
10217 | MergeFrom(from); |
10218 | } |
10219 | |
10220 | void NamenodeRegistrationProto::CopyFrom(const NamenodeRegistrationProto& from) { |
10221 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.NamenodeRegistrationProto) |
10222 | if (&from == this) return; |
10223 | Clear(); |
10224 | MergeFrom(from); |
10225 | } |
10226 | |
10227 | bool NamenodeRegistrationProto::IsInitialized() const { |
10228 | if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; |
10229 | if (has_storageinfo()) { |
10230 | if (!this->storageinfo_->IsInitialized()) return false; |
10231 | } |
10232 | return true; |
10233 | } |
10234 | |
10235 | void NamenodeRegistrationProto::Swap(NamenodeRegistrationProto* other) { |
10236 | if (other == this) return; |
10237 | InternalSwap(other); |
10238 | } |
10239 | void NamenodeRegistrationProto::InternalSwap(NamenodeRegistrationProto* other) { |
10240 | using std::swap; |
10241 | rpcaddress_.Swap(&other->rpcaddress_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
10242 | GetArenaNoVirtual()); |
10243 | httpaddress_.Swap(&other->httpaddress_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
10244 | GetArenaNoVirtual()); |
10245 | swap(storageinfo_, other->storageinfo_); |
10246 | swap(role_, other->role_); |
10247 | swap(_has_bits_[0], other->_has_bits_[0]); |
10248 | _internal_metadata_.Swap(&other->_internal_metadata_); |
10249 | } |
10250 | |
10251 | ::google::protobuf::Metadata NamenodeRegistrationProto::GetMetadata() const { |
10252 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
10253 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
10254 | } |
10255 | |
10256 | |
10257 | // =================================================================== |
10258 | |
10259 | void CheckpointSignatureProto::InitAsDefaultInstance() { |
10260 | ::Hdfs::Internal::_CheckpointSignatureProto_default_instance_._instance.get_mutable()->storageinfo_ = const_cast< ::Hdfs::Internal::StorageInfoProto*>( |
10261 | ::Hdfs::Internal::StorageInfoProto::internal_default_instance()); |
10262 | } |
10263 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
10264 | const int CheckpointSignatureProto::kBlockPoolIdFieldNumber; |
10265 | const int CheckpointSignatureProto::kMostRecentCheckpointTxIdFieldNumber; |
10266 | const int CheckpointSignatureProto::kCurSegmentTxIdFieldNumber; |
10267 | const int CheckpointSignatureProto::kStorageInfoFieldNumber; |
10268 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
10269 | |
10270 | CheckpointSignatureProto::CheckpointSignatureProto() |
10271 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
10272 | ::google::protobuf::internal::InitSCC( |
10273 | &protobuf_hdfs_2eproto::scc_info_CheckpointSignatureProto.base); |
10274 | SharedCtor(); |
10275 | // @@protoc_insertion_point(constructor:Hdfs.Internal.CheckpointSignatureProto) |
10276 | } |
10277 | CheckpointSignatureProto::CheckpointSignatureProto(const CheckpointSignatureProto& from) |
10278 | : ::google::protobuf::Message(), |
10279 | _internal_metadata_(NULL), |
10280 | _has_bits_(from._has_bits_) { |
10281 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10282 | blockpoolid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10283 | if (from.has_blockpoolid()) { |
10284 | blockpoolid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.blockpoolid_); |
10285 | } |
10286 | if (from.has_storageinfo()) { |
10287 | storageinfo_ = new ::Hdfs::Internal::StorageInfoProto(*from.storageinfo_); |
10288 | } else { |
10289 | storageinfo_ = NULL; |
10290 | } |
10291 | ::memcpy(&mostrecentcheckpointtxid_, &from.mostrecentcheckpointtxid_, |
10292 | static_cast<size_t>(reinterpret_cast<char*>(&cursegmenttxid_) - |
10293 | reinterpret_cast<char*>(&mostrecentcheckpointtxid_)) + sizeof(cursegmenttxid_)); |
10294 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.CheckpointSignatureProto) |
10295 | } |
10296 | |
10297 | void CheckpointSignatureProto::SharedCtor() { |
10298 | blockpoolid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10299 | ::memset(&storageinfo_, 0, static_cast<size_t>( |
10300 | reinterpret_cast<char*>(&cursegmenttxid_) - |
10301 | reinterpret_cast<char*>(&storageinfo_)) + sizeof(cursegmenttxid_)); |
10302 | } |
10303 | |
10304 | CheckpointSignatureProto::~CheckpointSignatureProto() { |
10305 | // @@protoc_insertion_point(destructor:Hdfs.Internal.CheckpointSignatureProto) |
10306 | SharedDtor(); |
10307 | } |
10308 | |
10309 | void CheckpointSignatureProto::SharedDtor() { |
10310 | blockpoolid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
10311 | if (this != internal_default_instance()) delete storageinfo_; |
10312 | } |
10313 | |
10314 | void CheckpointSignatureProto::SetCachedSize(int size) const { |
10315 | _cached_size_.Set(size); |
10316 | } |
10317 | const ::google::protobuf::Descriptor* CheckpointSignatureProto::descriptor() { |
10318 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
10319 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
10320 | } |
10321 | |
10322 | const CheckpointSignatureProto& CheckpointSignatureProto::default_instance() { |
10323 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_CheckpointSignatureProto.base); |
10324 | return *internal_default_instance(); |
10325 | } |
10326 | |
10327 | |
10328 | void CheckpointSignatureProto::Clear() { |
10329 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.CheckpointSignatureProto) |
10330 | ::google::protobuf::uint32 cached_has_bits = 0; |
10331 | // Prevent compiler warnings about cached_has_bits being unused |
10332 | (void) cached_has_bits; |
10333 | |
10334 | cached_has_bits = _has_bits_[0]; |
10335 | if (cached_has_bits & 3u) { |
10336 | if (cached_has_bits & 0x00000001u) { |
10337 | blockpoolid_.ClearNonDefaultToEmptyNoArena(); |
10338 | } |
10339 | if (cached_has_bits & 0x00000002u) { |
10340 | GOOGLE_DCHECK(storageinfo_ != NULL); |
10341 | storageinfo_->Clear(); |
10342 | } |
10343 | } |
10344 | if (cached_has_bits & 12u) { |
10345 | ::memset(&mostrecentcheckpointtxid_, 0, static_cast<size_t>( |
10346 | reinterpret_cast<char*>(&cursegmenttxid_) - |
10347 | reinterpret_cast<char*>(&mostrecentcheckpointtxid_)) + sizeof(cursegmenttxid_)); |
10348 | } |
10349 | _has_bits_.Clear(); |
10350 | _internal_metadata_.Clear(); |
10351 | } |
10352 | |
10353 | bool CheckpointSignatureProto::MergePartialFromCodedStream( |
10354 | ::google::protobuf::io::CodedInputStream* input) { |
10355 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
10356 | ::google::protobuf::uint32 tag; |
10357 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.CheckpointSignatureProto) |
10358 | for (;;) { |
10359 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
10360 | tag = p.first; |
10361 | if (!p.second) goto handle_unusual; |
10362 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
10363 | // required string blockPoolId = 1; |
10364 | case 1: { |
10365 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10366 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
10367 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
10368 | input, this->mutable_blockpoolid())); |
10369 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
10370 | this->blockpoolid().data(), static_cast<int>(this->blockpoolid().length()), |
10371 | ::google::protobuf::internal::WireFormat::PARSE, |
10372 | "Hdfs.Internal.CheckpointSignatureProto.blockPoolId" ); |
10373 | } else { |
10374 | goto handle_unusual; |
10375 | } |
10376 | break; |
10377 | } |
10378 | |
10379 | // required uint64 mostRecentCheckpointTxId = 2; |
10380 | case 2: { |
10381 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10382 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
10383 | set_has_mostrecentcheckpointtxid(); |
10384 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10385 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
10386 | input, &mostrecentcheckpointtxid_))); |
10387 | } else { |
10388 | goto handle_unusual; |
10389 | } |
10390 | break; |
10391 | } |
10392 | |
10393 | // required uint64 curSegmentTxId = 3; |
10394 | case 3: { |
10395 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10396 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
10397 | set_has_cursegmenttxid(); |
10398 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10399 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
10400 | input, &cursegmenttxid_))); |
10401 | } else { |
10402 | goto handle_unusual; |
10403 | } |
10404 | break; |
10405 | } |
10406 | |
10407 | // required .Hdfs.Internal.StorageInfoProto storageInfo = 4; |
10408 | case 4: { |
10409 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10410 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
10411 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
10412 | input, mutable_storageinfo())); |
10413 | } else { |
10414 | goto handle_unusual; |
10415 | } |
10416 | break; |
10417 | } |
10418 | |
10419 | default: { |
10420 | handle_unusual: |
10421 | if (tag == 0) { |
10422 | goto success; |
10423 | } |
10424 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
10425 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
10426 | break; |
10427 | } |
10428 | } |
10429 | } |
10430 | success: |
10431 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.CheckpointSignatureProto) |
10432 | return true; |
10433 | failure: |
10434 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.CheckpointSignatureProto) |
10435 | return false; |
10436 | #undef DO_ |
10437 | } |
10438 | |
10439 | void CheckpointSignatureProto::SerializeWithCachedSizes( |
10440 | ::google::protobuf::io::CodedOutputStream* output) const { |
10441 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.CheckpointSignatureProto) |
10442 | ::google::protobuf::uint32 cached_has_bits = 0; |
10443 | (void) cached_has_bits; |
10444 | |
10445 | cached_has_bits = _has_bits_[0]; |
10446 | // required string blockPoolId = 1; |
10447 | if (cached_has_bits & 0x00000001u) { |
10448 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
10449 | this->blockpoolid().data(), static_cast<int>(this->blockpoolid().length()), |
10450 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
10451 | "Hdfs.Internal.CheckpointSignatureProto.blockPoolId" ); |
10452 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
10453 | 1, this->blockpoolid(), output); |
10454 | } |
10455 | |
10456 | // required uint64 mostRecentCheckpointTxId = 2; |
10457 | if (cached_has_bits & 0x00000004u) { |
10458 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->mostrecentcheckpointtxid(), output); |
10459 | } |
10460 | |
10461 | // required uint64 curSegmentTxId = 3; |
10462 | if (cached_has_bits & 0x00000008u) { |
10463 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->cursegmenttxid(), output); |
10464 | } |
10465 | |
10466 | // required .Hdfs.Internal.StorageInfoProto storageInfo = 4; |
10467 | if (cached_has_bits & 0x00000002u) { |
10468 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
10469 | 4, this->_internal_storageinfo(), output); |
10470 | } |
10471 | |
10472 | if (_internal_metadata_.have_unknown_fields()) { |
10473 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
10474 | _internal_metadata_.unknown_fields(), output); |
10475 | } |
10476 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.CheckpointSignatureProto) |
10477 | } |
10478 | |
10479 | ::google::protobuf::uint8* CheckpointSignatureProto::InternalSerializeWithCachedSizesToArray( |
10480 | bool deterministic, ::google::protobuf::uint8* target) const { |
10481 | (void)deterministic; // Unused |
10482 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.CheckpointSignatureProto) |
10483 | ::google::protobuf::uint32 cached_has_bits = 0; |
10484 | (void) cached_has_bits; |
10485 | |
10486 | cached_has_bits = _has_bits_[0]; |
10487 | // required string blockPoolId = 1; |
10488 | if (cached_has_bits & 0x00000001u) { |
10489 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
10490 | this->blockpoolid().data(), static_cast<int>(this->blockpoolid().length()), |
10491 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
10492 | "Hdfs.Internal.CheckpointSignatureProto.blockPoolId" ); |
10493 | target = |
10494 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
10495 | 1, this->blockpoolid(), target); |
10496 | } |
10497 | |
10498 | // required uint64 mostRecentCheckpointTxId = 2; |
10499 | if (cached_has_bits & 0x00000004u) { |
10500 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->mostrecentcheckpointtxid(), target); |
10501 | } |
10502 | |
10503 | // required uint64 curSegmentTxId = 3; |
10504 | if (cached_has_bits & 0x00000008u) { |
10505 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->cursegmenttxid(), target); |
10506 | } |
10507 | |
10508 | // required .Hdfs.Internal.StorageInfoProto storageInfo = 4; |
10509 | if (cached_has_bits & 0x00000002u) { |
10510 | target = ::google::protobuf::internal::WireFormatLite:: |
10511 | InternalWriteMessageToArray( |
10512 | 4, this->_internal_storageinfo(), deterministic, target); |
10513 | } |
10514 | |
10515 | if (_internal_metadata_.have_unknown_fields()) { |
10516 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
10517 | _internal_metadata_.unknown_fields(), target); |
10518 | } |
10519 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.CheckpointSignatureProto) |
10520 | return target; |
10521 | } |
10522 | |
10523 | size_t CheckpointSignatureProto::RequiredFieldsByteSizeFallback() const { |
10524 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.CheckpointSignatureProto) |
10525 | size_t total_size = 0; |
10526 | |
10527 | if (has_blockpoolid()) { |
10528 | // required string blockPoolId = 1; |
10529 | total_size += 1 + |
10530 | ::google::protobuf::internal::WireFormatLite::StringSize( |
10531 | this->blockpoolid()); |
10532 | } |
10533 | |
10534 | if (has_storageinfo()) { |
10535 | // required .Hdfs.Internal.StorageInfoProto storageInfo = 4; |
10536 | total_size += 1 + |
10537 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
10538 | *storageinfo_); |
10539 | } |
10540 | |
10541 | if (has_mostrecentcheckpointtxid()) { |
10542 | // required uint64 mostRecentCheckpointTxId = 2; |
10543 | total_size += 1 + |
10544 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
10545 | this->mostrecentcheckpointtxid()); |
10546 | } |
10547 | |
10548 | if (has_cursegmenttxid()) { |
10549 | // required uint64 curSegmentTxId = 3; |
10550 | total_size += 1 + |
10551 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
10552 | this->cursegmenttxid()); |
10553 | } |
10554 | |
10555 | return total_size; |
10556 | } |
10557 | size_t CheckpointSignatureProto::ByteSizeLong() const { |
10558 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.CheckpointSignatureProto) |
10559 | size_t total_size = 0; |
10560 | |
10561 | if (_internal_metadata_.have_unknown_fields()) { |
10562 | total_size += |
10563 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
10564 | _internal_metadata_.unknown_fields()); |
10565 | } |
10566 | if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. |
10567 | // required string blockPoolId = 1; |
10568 | total_size += 1 + |
10569 | ::google::protobuf::internal::WireFormatLite::StringSize( |
10570 | this->blockpoolid()); |
10571 | |
10572 | // required .Hdfs.Internal.StorageInfoProto storageInfo = 4; |
10573 | total_size += 1 + |
10574 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
10575 | *storageinfo_); |
10576 | |
10577 | // required uint64 mostRecentCheckpointTxId = 2; |
10578 | total_size += 1 + |
10579 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
10580 | this->mostrecentcheckpointtxid()); |
10581 | |
10582 | // required uint64 curSegmentTxId = 3; |
10583 | total_size += 1 + |
10584 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
10585 | this->cursegmenttxid()); |
10586 | |
10587 | } else { |
10588 | total_size += RequiredFieldsByteSizeFallback(); |
10589 | } |
10590 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
10591 | SetCachedSize(cached_size); |
10592 | return total_size; |
10593 | } |
10594 | |
10595 | void CheckpointSignatureProto::MergeFrom(const ::google::protobuf::Message& from) { |
10596 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.CheckpointSignatureProto) |
10597 | GOOGLE_DCHECK_NE(&from, this); |
10598 | const CheckpointSignatureProto* source = |
10599 | ::google::protobuf::internal::DynamicCastToGenerated<const CheckpointSignatureProto>( |
10600 | &from); |
10601 | if (source == NULL) { |
10602 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.CheckpointSignatureProto) |
10603 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
10604 | } else { |
10605 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.CheckpointSignatureProto) |
10606 | MergeFrom(*source); |
10607 | } |
10608 | } |
10609 | |
10610 | void CheckpointSignatureProto::MergeFrom(const CheckpointSignatureProto& from) { |
10611 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.CheckpointSignatureProto) |
10612 | GOOGLE_DCHECK_NE(&from, this); |
10613 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10614 | ::google::protobuf::uint32 cached_has_bits = 0; |
10615 | (void) cached_has_bits; |
10616 | |
10617 | cached_has_bits = from._has_bits_[0]; |
10618 | if (cached_has_bits & 15u) { |
10619 | if (cached_has_bits & 0x00000001u) { |
10620 | set_has_blockpoolid(); |
10621 | blockpoolid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.blockpoolid_); |
10622 | } |
10623 | if (cached_has_bits & 0x00000002u) { |
10624 | mutable_storageinfo()->::Hdfs::Internal::StorageInfoProto::MergeFrom(from.storageinfo()); |
10625 | } |
10626 | if (cached_has_bits & 0x00000004u) { |
10627 | mostrecentcheckpointtxid_ = from.mostrecentcheckpointtxid_; |
10628 | } |
10629 | if (cached_has_bits & 0x00000008u) { |
10630 | cursegmenttxid_ = from.cursegmenttxid_; |
10631 | } |
10632 | _has_bits_[0] |= cached_has_bits; |
10633 | } |
10634 | } |
10635 | |
10636 | void CheckpointSignatureProto::CopyFrom(const ::google::protobuf::Message& from) { |
10637 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.CheckpointSignatureProto) |
10638 | if (&from == this) return; |
10639 | Clear(); |
10640 | MergeFrom(from); |
10641 | } |
10642 | |
10643 | void CheckpointSignatureProto::CopyFrom(const CheckpointSignatureProto& from) { |
10644 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.CheckpointSignatureProto) |
10645 | if (&from == this) return; |
10646 | Clear(); |
10647 | MergeFrom(from); |
10648 | } |
10649 | |
10650 | bool CheckpointSignatureProto::IsInitialized() const { |
10651 | if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; |
10652 | if (has_storageinfo()) { |
10653 | if (!this->storageinfo_->IsInitialized()) return false; |
10654 | } |
10655 | return true; |
10656 | } |
10657 | |
10658 | void CheckpointSignatureProto::Swap(CheckpointSignatureProto* other) { |
10659 | if (other == this) return; |
10660 | InternalSwap(other); |
10661 | } |
10662 | void CheckpointSignatureProto::InternalSwap(CheckpointSignatureProto* other) { |
10663 | using std::swap; |
10664 | blockpoolid_.Swap(&other->blockpoolid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
10665 | GetArenaNoVirtual()); |
10666 | swap(storageinfo_, other->storageinfo_); |
10667 | swap(mostrecentcheckpointtxid_, other->mostrecentcheckpointtxid_); |
10668 | swap(cursegmenttxid_, other->cursegmenttxid_); |
10669 | swap(_has_bits_[0], other->_has_bits_[0]); |
10670 | _internal_metadata_.Swap(&other->_internal_metadata_); |
10671 | } |
10672 | |
10673 | ::google::protobuf::Metadata CheckpointSignatureProto::GetMetadata() const { |
10674 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
10675 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
10676 | } |
10677 | |
10678 | |
10679 | // =================================================================== |
10680 | |
10681 | void NamenodeCommandProto::InitAsDefaultInstance() { |
10682 | ::Hdfs::Internal::_NamenodeCommandProto_default_instance_._instance.get_mutable()->checkpointcmd_ = const_cast< ::Hdfs::Internal::CheckpointCommandProto*>( |
10683 | ::Hdfs::Internal::CheckpointCommandProto::internal_default_instance()); |
10684 | } |
10685 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
10686 | const int NamenodeCommandProto::kActionFieldNumber; |
10687 | const int NamenodeCommandProto::kTypeFieldNumber; |
10688 | const int NamenodeCommandProto::kCheckpointCmdFieldNumber; |
10689 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
10690 | |
10691 | NamenodeCommandProto::NamenodeCommandProto() |
10692 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
10693 | ::google::protobuf::internal::InitSCC( |
10694 | &protobuf_hdfs_2eproto::scc_info_NamenodeCommandProto.base); |
10695 | SharedCtor(); |
10696 | // @@protoc_insertion_point(constructor:Hdfs.Internal.NamenodeCommandProto) |
10697 | } |
10698 | NamenodeCommandProto::NamenodeCommandProto(const NamenodeCommandProto& from) |
10699 | : ::google::protobuf::Message(), |
10700 | _internal_metadata_(NULL), |
10701 | _has_bits_(from._has_bits_) { |
10702 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10703 | if (from.has_checkpointcmd()) { |
10704 | checkpointcmd_ = new ::Hdfs::Internal::CheckpointCommandProto(*from.checkpointcmd_); |
10705 | } else { |
10706 | checkpointcmd_ = NULL; |
10707 | } |
10708 | ::memcpy(&action_, &from.action_, |
10709 | static_cast<size_t>(reinterpret_cast<char*>(&type_) - |
10710 | reinterpret_cast<char*>(&action_)) + sizeof(type_)); |
10711 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.NamenodeCommandProto) |
10712 | } |
10713 | |
10714 | void NamenodeCommandProto::SharedCtor() { |
10715 | ::memset(&checkpointcmd_, 0, static_cast<size_t>( |
10716 | reinterpret_cast<char*>(&type_) - |
10717 | reinterpret_cast<char*>(&checkpointcmd_)) + sizeof(type_)); |
10718 | } |
10719 | |
10720 | NamenodeCommandProto::~NamenodeCommandProto() { |
10721 | // @@protoc_insertion_point(destructor:Hdfs.Internal.NamenodeCommandProto) |
10722 | SharedDtor(); |
10723 | } |
10724 | |
10725 | void NamenodeCommandProto::SharedDtor() { |
10726 | if (this != internal_default_instance()) delete checkpointcmd_; |
10727 | } |
10728 | |
10729 | void NamenodeCommandProto::SetCachedSize(int size) const { |
10730 | _cached_size_.Set(size); |
10731 | } |
10732 | const ::google::protobuf::Descriptor* NamenodeCommandProto::descriptor() { |
10733 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
10734 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
10735 | } |
10736 | |
10737 | const NamenodeCommandProto& NamenodeCommandProto::default_instance() { |
10738 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_NamenodeCommandProto.base); |
10739 | return *internal_default_instance(); |
10740 | } |
10741 | |
10742 | |
10743 | void NamenodeCommandProto::Clear() { |
10744 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.NamenodeCommandProto) |
10745 | ::google::protobuf::uint32 cached_has_bits = 0; |
10746 | // Prevent compiler warnings about cached_has_bits being unused |
10747 | (void) cached_has_bits; |
10748 | |
10749 | cached_has_bits = _has_bits_[0]; |
10750 | if (cached_has_bits & 0x00000001u) { |
10751 | GOOGLE_DCHECK(checkpointcmd_ != NULL); |
10752 | checkpointcmd_->Clear(); |
10753 | } |
10754 | if (cached_has_bits & 6u) { |
10755 | ::memset(&action_, 0, static_cast<size_t>( |
10756 | reinterpret_cast<char*>(&type_) - |
10757 | reinterpret_cast<char*>(&action_)) + sizeof(type_)); |
10758 | } |
10759 | _has_bits_.Clear(); |
10760 | _internal_metadata_.Clear(); |
10761 | } |
10762 | |
10763 | bool NamenodeCommandProto::MergePartialFromCodedStream( |
10764 | ::google::protobuf::io::CodedInputStream* input) { |
10765 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
10766 | ::google::protobuf::uint32 tag; |
10767 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.NamenodeCommandProto) |
10768 | for (;;) { |
10769 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
10770 | tag = p.first; |
10771 | if (!p.second) goto handle_unusual; |
10772 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
10773 | // required uint32 action = 1; |
10774 | case 1: { |
10775 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10776 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
10777 | set_has_action(); |
10778 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10779 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
10780 | input, &action_))); |
10781 | } else { |
10782 | goto handle_unusual; |
10783 | } |
10784 | break; |
10785 | } |
10786 | |
10787 | // required .Hdfs.Internal.NamenodeCommandProto.Type type = 2; |
10788 | case 2: { |
10789 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10790 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
10791 | int value; |
10792 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10793 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
10794 | input, &value))); |
10795 | if (::Hdfs::Internal::NamenodeCommandProto_Type_IsValid(value)) { |
10796 | set_type(static_cast< ::Hdfs::Internal::NamenodeCommandProto_Type >(value)); |
10797 | } else { |
10798 | mutable_unknown_fields()->AddVarint( |
10799 | 2, static_cast< ::google::protobuf::uint64>(value)); |
10800 | } |
10801 | } else { |
10802 | goto handle_unusual; |
10803 | } |
10804 | break; |
10805 | } |
10806 | |
10807 | // optional .Hdfs.Internal.CheckpointCommandProto checkpointCmd = 3; |
10808 | case 3: { |
10809 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10810 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
10811 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
10812 | input, mutable_checkpointcmd())); |
10813 | } else { |
10814 | goto handle_unusual; |
10815 | } |
10816 | break; |
10817 | } |
10818 | |
10819 | default: { |
10820 | handle_unusual: |
10821 | if (tag == 0) { |
10822 | goto success; |
10823 | } |
10824 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
10825 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
10826 | break; |
10827 | } |
10828 | } |
10829 | } |
10830 | success: |
10831 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.NamenodeCommandProto) |
10832 | return true; |
10833 | failure: |
10834 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.NamenodeCommandProto) |
10835 | return false; |
10836 | #undef DO_ |
10837 | } |
10838 | |
10839 | void NamenodeCommandProto::SerializeWithCachedSizes( |
10840 | ::google::protobuf::io::CodedOutputStream* output) const { |
10841 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.NamenodeCommandProto) |
10842 | ::google::protobuf::uint32 cached_has_bits = 0; |
10843 | (void) cached_has_bits; |
10844 | |
10845 | cached_has_bits = _has_bits_[0]; |
10846 | // required uint32 action = 1; |
10847 | if (cached_has_bits & 0x00000002u) { |
10848 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->action(), output); |
10849 | } |
10850 | |
10851 | // required .Hdfs.Internal.NamenodeCommandProto.Type type = 2; |
10852 | if (cached_has_bits & 0x00000004u) { |
10853 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
10854 | 2, this->type(), output); |
10855 | } |
10856 | |
10857 | // optional .Hdfs.Internal.CheckpointCommandProto checkpointCmd = 3; |
10858 | if (cached_has_bits & 0x00000001u) { |
10859 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
10860 | 3, this->_internal_checkpointcmd(), output); |
10861 | } |
10862 | |
10863 | if (_internal_metadata_.have_unknown_fields()) { |
10864 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
10865 | _internal_metadata_.unknown_fields(), output); |
10866 | } |
10867 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.NamenodeCommandProto) |
10868 | } |
10869 | |
10870 | ::google::protobuf::uint8* NamenodeCommandProto::InternalSerializeWithCachedSizesToArray( |
10871 | bool deterministic, ::google::protobuf::uint8* target) const { |
10872 | (void)deterministic; // Unused |
10873 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.NamenodeCommandProto) |
10874 | ::google::protobuf::uint32 cached_has_bits = 0; |
10875 | (void) cached_has_bits; |
10876 | |
10877 | cached_has_bits = _has_bits_[0]; |
10878 | // required uint32 action = 1; |
10879 | if (cached_has_bits & 0x00000002u) { |
10880 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->action(), target); |
10881 | } |
10882 | |
10883 | // required .Hdfs.Internal.NamenodeCommandProto.Type type = 2; |
10884 | if (cached_has_bits & 0x00000004u) { |
10885 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
10886 | 2, this->type(), target); |
10887 | } |
10888 | |
10889 | // optional .Hdfs.Internal.CheckpointCommandProto checkpointCmd = 3; |
10890 | if (cached_has_bits & 0x00000001u) { |
10891 | target = ::google::protobuf::internal::WireFormatLite:: |
10892 | InternalWriteMessageToArray( |
10893 | 3, this->_internal_checkpointcmd(), deterministic, target); |
10894 | } |
10895 | |
10896 | if (_internal_metadata_.have_unknown_fields()) { |
10897 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
10898 | _internal_metadata_.unknown_fields(), target); |
10899 | } |
10900 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.NamenodeCommandProto) |
10901 | return target; |
10902 | } |
10903 | |
10904 | size_t NamenodeCommandProto::RequiredFieldsByteSizeFallback() const { |
10905 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.NamenodeCommandProto) |
10906 | size_t total_size = 0; |
10907 | |
10908 | if (has_action()) { |
10909 | // required uint32 action = 1; |
10910 | total_size += 1 + |
10911 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
10912 | this->action()); |
10913 | } |
10914 | |
10915 | if (has_type()) { |
10916 | // required .Hdfs.Internal.NamenodeCommandProto.Type type = 2; |
10917 | total_size += 1 + |
10918 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); |
10919 | } |
10920 | |
10921 | return total_size; |
10922 | } |
10923 | size_t NamenodeCommandProto::ByteSizeLong() const { |
10924 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.NamenodeCommandProto) |
10925 | size_t total_size = 0; |
10926 | |
10927 | if (_internal_metadata_.have_unknown_fields()) { |
10928 | total_size += |
10929 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
10930 | _internal_metadata_.unknown_fields()); |
10931 | } |
10932 | if (((_has_bits_[0] & 0x00000006) ^ 0x00000006) == 0) { // All required fields are present. |
10933 | // required uint32 action = 1; |
10934 | total_size += 1 + |
10935 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
10936 | this->action()); |
10937 | |
10938 | // required .Hdfs.Internal.NamenodeCommandProto.Type type = 2; |
10939 | total_size += 1 + |
10940 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); |
10941 | |
10942 | } else { |
10943 | total_size += RequiredFieldsByteSizeFallback(); |
10944 | } |
10945 | // optional .Hdfs.Internal.CheckpointCommandProto checkpointCmd = 3; |
10946 | if (has_checkpointcmd()) { |
10947 | total_size += 1 + |
10948 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
10949 | *checkpointcmd_); |
10950 | } |
10951 | |
10952 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
10953 | SetCachedSize(cached_size); |
10954 | return total_size; |
10955 | } |
10956 | |
10957 | void NamenodeCommandProto::MergeFrom(const ::google::protobuf::Message& from) { |
10958 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.NamenodeCommandProto) |
10959 | GOOGLE_DCHECK_NE(&from, this); |
10960 | const NamenodeCommandProto* source = |
10961 | ::google::protobuf::internal::DynamicCastToGenerated<const NamenodeCommandProto>( |
10962 | &from); |
10963 | if (source == NULL) { |
10964 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.NamenodeCommandProto) |
10965 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
10966 | } else { |
10967 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.NamenodeCommandProto) |
10968 | MergeFrom(*source); |
10969 | } |
10970 | } |
10971 | |
10972 | void NamenodeCommandProto::MergeFrom(const NamenodeCommandProto& from) { |
10973 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.NamenodeCommandProto) |
10974 | GOOGLE_DCHECK_NE(&from, this); |
10975 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10976 | ::google::protobuf::uint32 cached_has_bits = 0; |
10977 | (void) cached_has_bits; |
10978 | |
10979 | cached_has_bits = from._has_bits_[0]; |
10980 | if (cached_has_bits & 7u) { |
10981 | if (cached_has_bits & 0x00000001u) { |
10982 | mutable_checkpointcmd()->::Hdfs::Internal::CheckpointCommandProto::MergeFrom(from.checkpointcmd()); |
10983 | } |
10984 | if (cached_has_bits & 0x00000002u) { |
10985 | action_ = from.action_; |
10986 | } |
10987 | if (cached_has_bits & 0x00000004u) { |
10988 | type_ = from.type_; |
10989 | } |
10990 | _has_bits_[0] |= cached_has_bits; |
10991 | } |
10992 | } |
10993 | |
10994 | void NamenodeCommandProto::CopyFrom(const ::google::protobuf::Message& from) { |
10995 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.NamenodeCommandProto) |
10996 | if (&from == this) return; |
10997 | Clear(); |
10998 | MergeFrom(from); |
10999 | } |
11000 | |
11001 | void NamenodeCommandProto::CopyFrom(const NamenodeCommandProto& from) { |
11002 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.NamenodeCommandProto) |
11003 | if (&from == this) return; |
11004 | Clear(); |
11005 | MergeFrom(from); |
11006 | } |
11007 | |
11008 | bool NamenodeCommandProto::IsInitialized() const { |
11009 | if ((_has_bits_[0] & 0x00000006) != 0x00000006) return false; |
11010 | if (has_checkpointcmd()) { |
11011 | if (!this->checkpointcmd_->IsInitialized()) return false; |
11012 | } |
11013 | return true; |
11014 | } |
11015 | |
11016 | void NamenodeCommandProto::Swap(NamenodeCommandProto* other) { |
11017 | if (other == this) return; |
11018 | InternalSwap(other); |
11019 | } |
11020 | void NamenodeCommandProto::InternalSwap(NamenodeCommandProto* other) { |
11021 | using std::swap; |
11022 | swap(checkpointcmd_, other->checkpointcmd_); |
11023 | swap(action_, other->action_); |
11024 | swap(type_, other->type_); |
11025 | swap(_has_bits_[0], other->_has_bits_[0]); |
11026 | _internal_metadata_.Swap(&other->_internal_metadata_); |
11027 | } |
11028 | |
11029 | ::google::protobuf::Metadata NamenodeCommandProto::GetMetadata() const { |
11030 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
11031 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
11032 | } |
11033 | |
11034 | |
11035 | // =================================================================== |
11036 | |
11037 | void CheckpointCommandProto::InitAsDefaultInstance() { |
11038 | ::Hdfs::Internal::_CheckpointCommandProto_default_instance_._instance.get_mutable()->signature_ = const_cast< ::Hdfs::Internal::CheckpointSignatureProto*>( |
11039 | ::Hdfs::Internal::CheckpointSignatureProto::internal_default_instance()); |
11040 | } |
11041 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
11042 | const int CheckpointCommandProto::kSignatureFieldNumber; |
11043 | const int CheckpointCommandProto::kNeedToReturnImageFieldNumber; |
11044 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
11045 | |
11046 | CheckpointCommandProto::CheckpointCommandProto() |
11047 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
11048 | ::google::protobuf::internal::InitSCC( |
11049 | &protobuf_hdfs_2eproto::scc_info_CheckpointCommandProto.base); |
11050 | SharedCtor(); |
11051 | // @@protoc_insertion_point(constructor:Hdfs.Internal.CheckpointCommandProto) |
11052 | } |
11053 | CheckpointCommandProto::CheckpointCommandProto(const CheckpointCommandProto& from) |
11054 | : ::google::protobuf::Message(), |
11055 | _internal_metadata_(NULL), |
11056 | _has_bits_(from._has_bits_) { |
11057 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11058 | if (from.has_signature()) { |
11059 | signature_ = new ::Hdfs::Internal::CheckpointSignatureProto(*from.signature_); |
11060 | } else { |
11061 | signature_ = NULL; |
11062 | } |
11063 | needtoreturnimage_ = from.needtoreturnimage_; |
11064 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.CheckpointCommandProto) |
11065 | } |
11066 | |
11067 | void CheckpointCommandProto::SharedCtor() { |
11068 | ::memset(&signature_, 0, static_cast<size_t>( |
11069 | reinterpret_cast<char*>(&needtoreturnimage_) - |
11070 | reinterpret_cast<char*>(&signature_)) + sizeof(needtoreturnimage_)); |
11071 | } |
11072 | |
11073 | CheckpointCommandProto::~CheckpointCommandProto() { |
11074 | // @@protoc_insertion_point(destructor:Hdfs.Internal.CheckpointCommandProto) |
11075 | SharedDtor(); |
11076 | } |
11077 | |
11078 | void CheckpointCommandProto::SharedDtor() { |
11079 | if (this != internal_default_instance()) delete signature_; |
11080 | } |
11081 | |
11082 | void CheckpointCommandProto::SetCachedSize(int size) const { |
11083 | _cached_size_.Set(size); |
11084 | } |
11085 | const ::google::protobuf::Descriptor* CheckpointCommandProto::descriptor() { |
11086 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
11087 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
11088 | } |
11089 | |
11090 | const CheckpointCommandProto& CheckpointCommandProto::default_instance() { |
11091 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_CheckpointCommandProto.base); |
11092 | return *internal_default_instance(); |
11093 | } |
11094 | |
11095 | |
11096 | void CheckpointCommandProto::Clear() { |
11097 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.CheckpointCommandProto) |
11098 | ::google::protobuf::uint32 cached_has_bits = 0; |
11099 | // Prevent compiler warnings about cached_has_bits being unused |
11100 | (void) cached_has_bits; |
11101 | |
11102 | cached_has_bits = _has_bits_[0]; |
11103 | if (cached_has_bits & 0x00000001u) { |
11104 | GOOGLE_DCHECK(signature_ != NULL); |
11105 | signature_->Clear(); |
11106 | } |
11107 | needtoreturnimage_ = false; |
11108 | _has_bits_.Clear(); |
11109 | _internal_metadata_.Clear(); |
11110 | } |
11111 | |
11112 | bool CheckpointCommandProto::MergePartialFromCodedStream( |
11113 | ::google::protobuf::io::CodedInputStream* input) { |
11114 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
11115 | ::google::protobuf::uint32 tag; |
11116 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.CheckpointCommandProto) |
11117 | for (;;) { |
11118 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
11119 | tag = p.first; |
11120 | if (!p.second) goto handle_unusual; |
11121 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
11122 | // required .Hdfs.Internal.CheckpointSignatureProto signature = 1; |
11123 | case 1: { |
11124 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11125 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
11126 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
11127 | input, mutable_signature())); |
11128 | } else { |
11129 | goto handle_unusual; |
11130 | } |
11131 | break; |
11132 | } |
11133 | |
11134 | // required bool needToReturnImage = 2; |
11135 | case 2: { |
11136 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11137 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
11138 | set_has_needtoreturnimage(); |
11139 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
11140 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
11141 | input, &needtoreturnimage_))); |
11142 | } else { |
11143 | goto handle_unusual; |
11144 | } |
11145 | break; |
11146 | } |
11147 | |
11148 | default: { |
11149 | handle_unusual: |
11150 | if (tag == 0) { |
11151 | goto success; |
11152 | } |
11153 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
11154 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
11155 | break; |
11156 | } |
11157 | } |
11158 | } |
11159 | success: |
11160 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.CheckpointCommandProto) |
11161 | return true; |
11162 | failure: |
11163 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.CheckpointCommandProto) |
11164 | return false; |
11165 | #undef DO_ |
11166 | } |
11167 | |
11168 | void CheckpointCommandProto::SerializeWithCachedSizes( |
11169 | ::google::protobuf::io::CodedOutputStream* output) const { |
11170 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.CheckpointCommandProto) |
11171 | ::google::protobuf::uint32 cached_has_bits = 0; |
11172 | (void) cached_has_bits; |
11173 | |
11174 | cached_has_bits = _has_bits_[0]; |
11175 | // required .Hdfs.Internal.CheckpointSignatureProto signature = 1; |
11176 | if (cached_has_bits & 0x00000001u) { |
11177 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
11178 | 1, this->_internal_signature(), output); |
11179 | } |
11180 | |
11181 | // required bool needToReturnImage = 2; |
11182 | if (cached_has_bits & 0x00000002u) { |
11183 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->needtoreturnimage(), output); |
11184 | } |
11185 | |
11186 | if (_internal_metadata_.have_unknown_fields()) { |
11187 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
11188 | _internal_metadata_.unknown_fields(), output); |
11189 | } |
11190 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.CheckpointCommandProto) |
11191 | } |
11192 | |
11193 | ::google::protobuf::uint8* CheckpointCommandProto::InternalSerializeWithCachedSizesToArray( |
11194 | bool deterministic, ::google::protobuf::uint8* target) const { |
11195 | (void)deterministic; // Unused |
11196 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.CheckpointCommandProto) |
11197 | ::google::protobuf::uint32 cached_has_bits = 0; |
11198 | (void) cached_has_bits; |
11199 | |
11200 | cached_has_bits = _has_bits_[0]; |
11201 | // required .Hdfs.Internal.CheckpointSignatureProto signature = 1; |
11202 | if (cached_has_bits & 0x00000001u) { |
11203 | target = ::google::protobuf::internal::WireFormatLite:: |
11204 | InternalWriteMessageToArray( |
11205 | 1, this->_internal_signature(), deterministic, target); |
11206 | } |
11207 | |
11208 | // required bool needToReturnImage = 2; |
11209 | if (cached_has_bits & 0x00000002u) { |
11210 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->needtoreturnimage(), target); |
11211 | } |
11212 | |
11213 | if (_internal_metadata_.have_unknown_fields()) { |
11214 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
11215 | _internal_metadata_.unknown_fields(), target); |
11216 | } |
11217 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.CheckpointCommandProto) |
11218 | return target; |
11219 | } |
11220 | |
11221 | size_t CheckpointCommandProto::RequiredFieldsByteSizeFallback() const { |
11222 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.CheckpointCommandProto) |
11223 | size_t total_size = 0; |
11224 | |
11225 | if (has_signature()) { |
11226 | // required .Hdfs.Internal.CheckpointSignatureProto signature = 1; |
11227 | total_size += 1 + |
11228 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
11229 | *signature_); |
11230 | } |
11231 | |
11232 | if (has_needtoreturnimage()) { |
11233 | // required bool needToReturnImage = 2; |
11234 | total_size += 1 + 1; |
11235 | } |
11236 | |
11237 | return total_size; |
11238 | } |
11239 | size_t CheckpointCommandProto::ByteSizeLong() const { |
11240 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.CheckpointCommandProto) |
11241 | size_t total_size = 0; |
11242 | |
11243 | if (_internal_metadata_.have_unknown_fields()) { |
11244 | total_size += |
11245 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
11246 | _internal_metadata_.unknown_fields()); |
11247 | } |
11248 | if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
11249 | // required .Hdfs.Internal.CheckpointSignatureProto signature = 1; |
11250 | total_size += 1 + |
11251 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
11252 | *signature_); |
11253 | |
11254 | // required bool needToReturnImage = 2; |
11255 | total_size += 1 + 1; |
11256 | |
11257 | } else { |
11258 | total_size += RequiredFieldsByteSizeFallback(); |
11259 | } |
11260 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
11261 | SetCachedSize(cached_size); |
11262 | return total_size; |
11263 | } |
11264 | |
11265 | void CheckpointCommandProto::MergeFrom(const ::google::protobuf::Message& from) { |
11266 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.CheckpointCommandProto) |
11267 | GOOGLE_DCHECK_NE(&from, this); |
11268 | const CheckpointCommandProto* source = |
11269 | ::google::protobuf::internal::DynamicCastToGenerated<const CheckpointCommandProto>( |
11270 | &from); |
11271 | if (source == NULL) { |
11272 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.CheckpointCommandProto) |
11273 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
11274 | } else { |
11275 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.CheckpointCommandProto) |
11276 | MergeFrom(*source); |
11277 | } |
11278 | } |
11279 | |
11280 | void CheckpointCommandProto::MergeFrom(const CheckpointCommandProto& from) { |
11281 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.CheckpointCommandProto) |
11282 | GOOGLE_DCHECK_NE(&from, this); |
11283 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11284 | ::google::protobuf::uint32 cached_has_bits = 0; |
11285 | (void) cached_has_bits; |
11286 | |
11287 | cached_has_bits = from._has_bits_[0]; |
11288 | if (cached_has_bits & 3u) { |
11289 | if (cached_has_bits & 0x00000001u) { |
11290 | mutable_signature()->::Hdfs::Internal::CheckpointSignatureProto::MergeFrom(from.signature()); |
11291 | } |
11292 | if (cached_has_bits & 0x00000002u) { |
11293 | needtoreturnimage_ = from.needtoreturnimage_; |
11294 | } |
11295 | _has_bits_[0] |= cached_has_bits; |
11296 | } |
11297 | } |
11298 | |
11299 | void CheckpointCommandProto::CopyFrom(const ::google::protobuf::Message& from) { |
11300 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.CheckpointCommandProto) |
11301 | if (&from == this) return; |
11302 | Clear(); |
11303 | MergeFrom(from); |
11304 | } |
11305 | |
11306 | void CheckpointCommandProto::CopyFrom(const CheckpointCommandProto& from) { |
11307 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.CheckpointCommandProto) |
11308 | if (&from == this) return; |
11309 | Clear(); |
11310 | MergeFrom(from); |
11311 | } |
11312 | |
11313 | bool CheckpointCommandProto::IsInitialized() const { |
11314 | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
11315 | if (has_signature()) { |
11316 | if (!this->signature_->IsInitialized()) return false; |
11317 | } |
11318 | return true; |
11319 | } |
11320 | |
11321 | void CheckpointCommandProto::Swap(CheckpointCommandProto* other) { |
11322 | if (other == this) return; |
11323 | InternalSwap(other); |
11324 | } |
11325 | void CheckpointCommandProto::InternalSwap(CheckpointCommandProto* other) { |
11326 | using std::swap; |
11327 | swap(signature_, other->signature_); |
11328 | swap(needtoreturnimage_, other->needtoreturnimage_); |
11329 | swap(_has_bits_[0], other->_has_bits_[0]); |
11330 | _internal_metadata_.Swap(&other->_internal_metadata_); |
11331 | } |
11332 | |
11333 | ::google::protobuf::Metadata CheckpointCommandProto::GetMetadata() const { |
11334 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
11335 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
11336 | } |
11337 | |
11338 | |
11339 | // =================================================================== |
11340 | |
11341 | void BlockProto::InitAsDefaultInstance() { |
11342 | } |
11343 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
11344 | const int BlockProto::kBlockIdFieldNumber; |
11345 | const int BlockProto::kGenStampFieldNumber; |
11346 | const int BlockProto::kNumBytesFieldNumber; |
11347 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
11348 | |
11349 | BlockProto::BlockProto() |
11350 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
11351 | ::google::protobuf::internal::InitSCC( |
11352 | &protobuf_hdfs_2eproto::scc_info_BlockProto.base); |
11353 | SharedCtor(); |
11354 | // @@protoc_insertion_point(constructor:Hdfs.Internal.BlockProto) |
11355 | } |
11356 | BlockProto::BlockProto(const BlockProto& from) |
11357 | : ::google::protobuf::Message(), |
11358 | _internal_metadata_(NULL), |
11359 | _has_bits_(from._has_bits_) { |
11360 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11361 | ::memcpy(&blockid_, &from.blockid_, |
11362 | static_cast<size_t>(reinterpret_cast<char*>(&numbytes_) - |
11363 | reinterpret_cast<char*>(&blockid_)) + sizeof(numbytes_)); |
11364 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.BlockProto) |
11365 | } |
11366 | |
11367 | void BlockProto::SharedCtor() { |
11368 | ::memset(&blockid_, 0, static_cast<size_t>( |
11369 | reinterpret_cast<char*>(&numbytes_) - |
11370 | reinterpret_cast<char*>(&blockid_)) + sizeof(numbytes_)); |
11371 | } |
11372 | |
11373 | BlockProto::~BlockProto() { |
11374 | // @@protoc_insertion_point(destructor:Hdfs.Internal.BlockProto) |
11375 | SharedDtor(); |
11376 | } |
11377 | |
11378 | void BlockProto::SharedDtor() { |
11379 | } |
11380 | |
11381 | void BlockProto::SetCachedSize(int size) const { |
11382 | _cached_size_.Set(size); |
11383 | } |
11384 | const ::google::protobuf::Descriptor* BlockProto::descriptor() { |
11385 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
11386 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
11387 | } |
11388 | |
11389 | const BlockProto& BlockProto::default_instance() { |
11390 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_BlockProto.base); |
11391 | return *internal_default_instance(); |
11392 | } |
11393 | |
11394 | |
11395 | void BlockProto::Clear() { |
11396 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.BlockProto) |
11397 | ::google::protobuf::uint32 cached_has_bits = 0; |
11398 | // Prevent compiler warnings about cached_has_bits being unused |
11399 | (void) cached_has_bits; |
11400 | |
11401 | cached_has_bits = _has_bits_[0]; |
11402 | if (cached_has_bits & 7u) { |
11403 | ::memset(&blockid_, 0, static_cast<size_t>( |
11404 | reinterpret_cast<char*>(&numbytes_) - |
11405 | reinterpret_cast<char*>(&blockid_)) + sizeof(numbytes_)); |
11406 | } |
11407 | _has_bits_.Clear(); |
11408 | _internal_metadata_.Clear(); |
11409 | } |
11410 | |
11411 | bool BlockProto::MergePartialFromCodedStream( |
11412 | ::google::protobuf::io::CodedInputStream* input) { |
11413 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
11414 | ::google::protobuf::uint32 tag; |
11415 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.BlockProto) |
11416 | for (;;) { |
11417 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
11418 | tag = p.first; |
11419 | if (!p.second) goto handle_unusual; |
11420 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
11421 | // required uint64 blockId = 1; |
11422 | case 1: { |
11423 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11424 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
11425 | set_has_blockid(); |
11426 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
11427 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
11428 | input, &blockid_))); |
11429 | } else { |
11430 | goto handle_unusual; |
11431 | } |
11432 | break; |
11433 | } |
11434 | |
11435 | // required uint64 genStamp = 2; |
11436 | case 2: { |
11437 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11438 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
11439 | set_has_genstamp(); |
11440 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
11441 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
11442 | input, &genstamp_))); |
11443 | } else { |
11444 | goto handle_unusual; |
11445 | } |
11446 | break; |
11447 | } |
11448 | |
11449 | // optional uint64 numBytes = 3 [default = 0]; |
11450 | case 3: { |
11451 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11452 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
11453 | set_has_numbytes(); |
11454 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
11455 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
11456 | input, &numbytes_))); |
11457 | } else { |
11458 | goto handle_unusual; |
11459 | } |
11460 | break; |
11461 | } |
11462 | |
11463 | default: { |
11464 | handle_unusual: |
11465 | if (tag == 0) { |
11466 | goto success; |
11467 | } |
11468 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
11469 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
11470 | break; |
11471 | } |
11472 | } |
11473 | } |
11474 | success: |
11475 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.BlockProto) |
11476 | return true; |
11477 | failure: |
11478 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.BlockProto) |
11479 | return false; |
11480 | #undef DO_ |
11481 | } |
11482 | |
11483 | void BlockProto::SerializeWithCachedSizes( |
11484 | ::google::protobuf::io::CodedOutputStream* output) const { |
11485 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.BlockProto) |
11486 | ::google::protobuf::uint32 cached_has_bits = 0; |
11487 | (void) cached_has_bits; |
11488 | |
11489 | cached_has_bits = _has_bits_[0]; |
11490 | // required uint64 blockId = 1; |
11491 | if (cached_has_bits & 0x00000001u) { |
11492 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->blockid(), output); |
11493 | } |
11494 | |
11495 | // required uint64 genStamp = 2; |
11496 | if (cached_has_bits & 0x00000002u) { |
11497 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->genstamp(), output); |
11498 | } |
11499 | |
11500 | // optional uint64 numBytes = 3 [default = 0]; |
11501 | if (cached_has_bits & 0x00000004u) { |
11502 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->numbytes(), output); |
11503 | } |
11504 | |
11505 | if (_internal_metadata_.have_unknown_fields()) { |
11506 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
11507 | _internal_metadata_.unknown_fields(), output); |
11508 | } |
11509 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.BlockProto) |
11510 | } |
11511 | |
11512 | ::google::protobuf::uint8* BlockProto::InternalSerializeWithCachedSizesToArray( |
11513 | bool deterministic, ::google::protobuf::uint8* target) const { |
11514 | (void)deterministic; // Unused |
11515 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.BlockProto) |
11516 | ::google::protobuf::uint32 cached_has_bits = 0; |
11517 | (void) cached_has_bits; |
11518 | |
11519 | cached_has_bits = _has_bits_[0]; |
11520 | // required uint64 blockId = 1; |
11521 | if (cached_has_bits & 0x00000001u) { |
11522 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->blockid(), target); |
11523 | } |
11524 | |
11525 | // required uint64 genStamp = 2; |
11526 | if (cached_has_bits & 0x00000002u) { |
11527 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->genstamp(), target); |
11528 | } |
11529 | |
11530 | // optional uint64 numBytes = 3 [default = 0]; |
11531 | if (cached_has_bits & 0x00000004u) { |
11532 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->numbytes(), target); |
11533 | } |
11534 | |
11535 | if (_internal_metadata_.have_unknown_fields()) { |
11536 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
11537 | _internal_metadata_.unknown_fields(), target); |
11538 | } |
11539 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.BlockProto) |
11540 | return target; |
11541 | } |
11542 | |
11543 | size_t BlockProto::RequiredFieldsByteSizeFallback() const { |
11544 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.BlockProto) |
11545 | size_t total_size = 0; |
11546 | |
11547 | if (has_blockid()) { |
11548 | // required uint64 blockId = 1; |
11549 | total_size += 1 + |
11550 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
11551 | this->blockid()); |
11552 | } |
11553 | |
11554 | if (has_genstamp()) { |
11555 | // required uint64 genStamp = 2; |
11556 | total_size += 1 + |
11557 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
11558 | this->genstamp()); |
11559 | } |
11560 | |
11561 | return total_size; |
11562 | } |
11563 | size_t BlockProto::ByteSizeLong() const { |
11564 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.BlockProto) |
11565 | size_t total_size = 0; |
11566 | |
11567 | if (_internal_metadata_.have_unknown_fields()) { |
11568 | total_size += |
11569 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
11570 | _internal_metadata_.unknown_fields()); |
11571 | } |
11572 | if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
11573 | // required uint64 blockId = 1; |
11574 | total_size += 1 + |
11575 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
11576 | this->blockid()); |
11577 | |
11578 | // required uint64 genStamp = 2; |
11579 | total_size += 1 + |
11580 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
11581 | this->genstamp()); |
11582 | |
11583 | } else { |
11584 | total_size += RequiredFieldsByteSizeFallback(); |
11585 | } |
11586 | // optional uint64 numBytes = 3 [default = 0]; |
11587 | if (has_numbytes()) { |
11588 | total_size += 1 + |
11589 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
11590 | this->numbytes()); |
11591 | } |
11592 | |
11593 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
11594 | SetCachedSize(cached_size); |
11595 | return total_size; |
11596 | } |
11597 | |
11598 | void BlockProto::MergeFrom(const ::google::protobuf::Message& from) { |
11599 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.BlockProto) |
11600 | GOOGLE_DCHECK_NE(&from, this); |
11601 | const BlockProto* source = |
11602 | ::google::protobuf::internal::DynamicCastToGenerated<const BlockProto>( |
11603 | &from); |
11604 | if (source == NULL) { |
11605 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.BlockProto) |
11606 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
11607 | } else { |
11608 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.BlockProto) |
11609 | MergeFrom(*source); |
11610 | } |
11611 | } |
11612 | |
11613 | void BlockProto::MergeFrom(const BlockProto& from) { |
11614 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.BlockProto) |
11615 | GOOGLE_DCHECK_NE(&from, this); |
11616 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11617 | ::google::protobuf::uint32 cached_has_bits = 0; |
11618 | (void) cached_has_bits; |
11619 | |
11620 | cached_has_bits = from._has_bits_[0]; |
11621 | if (cached_has_bits & 7u) { |
11622 | if (cached_has_bits & 0x00000001u) { |
11623 | blockid_ = from.blockid_; |
11624 | } |
11625 | if (cached_has_bits & 0x00000002u) { |
11626 | genstamp_ = from.genstamp_; |
11627 | } |
11628 | if (cached_has_bits & 0x00000004u) { |
11629 | numbytes_ = from.numbytes_; |
11630 | } |
11631 | _has_bits_[0] |= cached_has_bits; |
11632 | } |
11633 | } |
11634 | |
11635 | void BlockProto::CopyFrom(const ::google::protobuf::Message& from) { |
11636 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.BlockProto) |
11637 | if (&from == this) return; |
11638 | Clear(); |
11639 | MergeFrom(from); |
11640 | } |
11641 | |
11642 | void BlockProto::CopyFrom(const BlockProto& from) { |
11643 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.BlockProto) |
11644 | if (&from == this) return; |
11645 | Clear(); |
11646 | MergeFrom(from); |
11647 | } |
11648 | |
11649 | bool BlockProto::IsInitialized() const { |
11650 | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
11651 | return true; |
11652 | } |
11653 | |
11654 | void BlockProto::Swap(BlockProto* other) { |
11655 | if (other == this) return; |
11656 | InternalSwap(other); |
11657 | } |
11658 | void BlockProto::InternalSwap(BlockProto* other) { |
11659 | using std::swap; |
11660 | swap(blockid_, other->blockid_); |
11661 | swap(genstamp_, other->genstamp_); |
11662 | swap(numbytes_, other->numbytes_); |
11663 | swap(_has_bits_[0], other->_has_bits_[0]); |
11664 | _internal_metadata_.Swap(&other->_internal_metadata_); |
11665 | } |
11666 | |
11667 | ::google::protobuf::Metadata BlockProto::GetMetadata() const { |
11668 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
11669 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
11670 | } |
11671 | |
11672 | |
11673 | // =================================================================== |
11674 | |
11675 | void BlockWithLocationsProto::InitAsDefaultInstance() { |
11676 | ::Hdfs::Internal::_BlockWithLocationsProto_default_instance_._instance.get_mutable()->block_ = const_cast< ::Hdfs::Internal::BlockProto*>( |
11677 | ::Hdfs::Internal::BlockProto::internal_default_instance()); |
11678 | } |
11679 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
11680 | const int BlockWithLocationsProto::kBlockFieldNumber; |
11681 | const int BlockWithLocationsProto::kDatanodeUuidsFieldNumber; |
11682 | const int BlockWithLocationsProto::kStorageUuidsFieldNumber; |
11683 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
11684 | |
11685 | BlockWithLocationsProto::BlockWithLocationsProto() |
11686 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
11687 | ::google::protobuf::internal::InitSCC( |
11688 | &protobuf_hdfs_2eproto::scc_info_BlockWithLocationsProto.base); |
11689 | SharedCtor(); |
11690 | // @@protoc_insertion_point(constructor:Hdfs.Internal.BlockWithLocationsProto) |
11691 | } |
11692 | BlockWithLocationsProto::BlockWithLocationsProto(const BlockWithLocationsProto& from) |
11693 | : ::google::protobuf::Message(), |
11694 | _internal_metadata_(NULL), |
11695 | _has_bits_(from._has_bits_), |
11696 | datanodeuuids_(from.datanodeuuids_), |
11697 | storageuuids_(from.storageuuids_) { |
11698 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11699 | if (from.has_block()) { |
11700 | block_ = new ::Hdfs::Internal::BlockProto(*from.block_); |
11701 | } else { |
11702 | block_ = NULL; |
11703 | } |
11704 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.BlockWithLocationsProto) |
11705 | } |
11706 | |
11707 | void BlockWithLocationsProto::SharedCtor() { |
11708 | block_ = NULL; |
11709 | } |
11710 | |
11711 | BlockWithLocationsProto::~BlockWithLocationsProto() { |
11712 | // @@protoc_insertion_point(destructor:Hdfs.Internal.BlockWithLocationsProto) |
11713 | SharedDtor(); |
11714 | } |
11715 | |
11716 | void BlockWithLocationsProto::SharedDtor() { |
11717 | if (this != internal_default_instance()) delete block_; |
11718 | } |
11719 | |
11720 | void BlockWithLocationsProto::SetCachedSize(int size) const { |
11721 | _cached_size_.Set(size); |
11722 | } |
11723 | const ::google::protobuf::Descriptor* BlockWithLocationsProto::descriptor() { |
11724 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
11725 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
11726 | } |
11727 | |
11728 | const BlockWithLocationsProto& BlockWithLocationsProto::default_instance() { |
11729 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_BlockWithLocationsProto.base); |
11730 | return *internal_default_instance(); |
11731 | } |
11732 | |
11733 | |
11734 | void BlockWithLocationsProto::Clear() { |
11735 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.BlockWithLocationsProto) |
11736 | ::google::protobuf::uint32 cached_has_bits = 0; |
11737 | // Prevent compiler warnings about cached_has_bits being unused |
11738 | (void) cached_has_bits; |
11739 | |
11740 | datanodeuuids_.Clear(); |
11741 | storageuuids_.Clear(); |
11742 | cached_has_bits = _has_bits_[0]; |
11743 | if (cached_has_bits & 0x00000001u) { |
11744 | GOOGLE_DCHECK(block_ != NULL); |
11745 | block_->Clear(); |
11746 | } |
11747 | _has_bits_.Clear(); |
11748 | _internal_metadata_.Clear(); |
11749 | } |
11750 | |
11751 | bool BlockWithLocationsProto::MergePartialFromCodedStream( |
11752 | ::google::protobuf::io::CodedInputStream* input) { |
11753 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
11754 | ::google::protobuf::uint32 tag; |
11755 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.BlockWithLocationsProto) |
11756 | for (;;) { |
11757 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
11758 | tag = p.first; |
11759 | if (!p.second) goto handle_unusual; |
11760 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
11761 | // required .Hdfs.Internal.BlockProto block = 1; |
11762 | case 1: { |
11763 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11764 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
11765 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
11766 | input, mutable_block())); |
11767 | } else { |
11768 | goto handle_unusual; |
11769 | } |
11770 | break; |
11771 | } |
11772 | |
11773 | // repeated string datanodeUuids = 2; |
11774 | case 2: { |
11775 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11776 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
11777 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
11778 | input, this->add_datanodeuuids())); |
11779 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
11780 | this->datanodeuuids(this->datanodeuuids_size() - 1).data(), |
11781 | static_cast<int>(this->datanodeuuids(this->datanodeuuids_size() - 1).length()), |
11782 | ::google::protobuf::internal::WireFormat::PARSE, |
11783 | "Hdfs.Internal.BlockWithLocationsProto.datanodeUuids" ); |
11784 | } else { |
11785 | goto handle_unusual; |
11786 | } |
11787 | break; |
11788 | } |
11789 | |
11790 | // repeated string storageUuids = 3; |
11791 | case 3: { |
11792 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11793 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
11794 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
11795 | input, this->add_storageuuids())); |
11796 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
11797 | this->storageuuids(this->storageuuids_size() - 1).data(), |
11798 | static_cast<int>(this->storageuuids(this->storageuuids_size() - 1).length()), |
11799 | ::google::protobuf::internal::WireFormat::PARSE, |
11800 | "Hdfs.Internal.BlockWithLocationsProto.storageUuids" ); |
11801 | } else { |
11802 | goto handle_unusual; |
11803 | } |
11804 | break; |
11805 | } |
11806 | |
11807 | default: { |
11808 | handle_unusual: |
11809 | if (tag == 0) { |
11810 | goto success; |
11811 | } |
11812 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
11813 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
11814 | break; |
11815 | } |
11816 | } |
11817 | } |
11818 | success: |
11819 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.BlockWithLocationsProto) |
11820 | return true; |
11821 | failure: |
11822 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.BlockWithLocationsProto) |
11823 | return false; |
11824 | #undef DO_ |
11825 | } |
11826 | |
11827 | void BlockWithLocationsProto::SerializeWithCachedSizes( |
11828 | ::google::protobuf::io::CodedOutputStream* output) const { |
11829 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.BlockWithLocationsProto) |
11830 | ::google::protobuf::uint32 cached_has_bits = 0; |
11831 | (void) cached_has_bits; |
11832 | |
11833 | cached_has_bits = _has_bits_[0]; |
11834 | // required .Hdfs.Internal.BlockProto block = 1; |
11835 | if (cached_has_bits & 0x00000001u) { |
11836 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
11837 | 1, this->_internal_block(), output); |
11838 | } |
11839 | |
11840 | // repeated string datanodeUuids = 2; |
11841 | for (int i = 0, n = this->datanodeuuids_size(); i < n; i++) { |
11842 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
11843 | this->datanodeuuids(i).data(), static_cast<int>(this->datanodeuuids(i).length()), |
11844 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
11845 | "Hdfs.Internal.BlockWithLocationsProto.datanodeUuids" ); |
11846 | ::google::protobuf::internal::WireFormatLite::WriteString( |
11847 | 2, this->datanodeuuids(i), output); |
11848 | } |
11849 | |
11850 | // repeated string storageUuids = 3; |
11851 | for (int i = 0, n = this->storageuuids_size(); i < n; i++) { |
11852 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
11853 | this->storageuuids(i).data(), static_cast<int>(this->storageuuids(i).length()), |
11854 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
11855 | "Hdfs.Internal.BlockWithLocationsProto.storageUuids" ); |
11856 | ::google::protobuf::internal::WireFormatLite::WriteString( |
11857 | 3, this->storageuuids(i), output); |
11858 | } |
11859 | |
11860 | if (_internal_metadata_.have_unknown_fields()) { |
11861 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
11862 | _internal_metadata_.unknown_fields(), output); |
11863 | } |
11864 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.BlockWithLocationsProto) |
11865 | } |
11866 | |
11867 | ::google::protobuf::uint8* BlockWithLocationsProto::InternalSerializeWithCachedSizesToArray( |
11868 | bool deterministic, ::google::protobuf::uint8* target) const { |
11869 | (void)deterministic; // Unused |
11870 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.BlockWithLocationsProto) |
11871 | ::google::protobuf::uint32 cached_has_bits = 0; |
11872 | (void) cached_has_bits; |
11873 | |
11874 | cached_has_bits = _has_bits_[0]; |
11875 | // required .Hdfs.Internal.BlockProto block = 1; |
11876 | if (cached_has_bits & 0x00000001u) { |
11877 | target = ::google::protobuf::internal::WireFormatLite:: |
11878 | InternalWriteMessageToArray( |
11879 | 1, this->_internal_block(), deterministic, target); |
11880 | } |
11881 | |
11882 | // repeated string datanodeUuids = 2; |
11883 | for (int i = 0, n = this->datanodeuuids_size(); i < n; i++) { |
11884 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
11885 | this->datanodeuuids(i).data(), static_cast<int>(this->datanodeuuids(i).length()), |
11886 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
11887 | "Hdfs.Internal.BlockWithLocationsProto.datanodeUuids" ); |
11888 | target = ::google::protobuf::internal::WireFormatLite:: |
11889 | WriteStringToArray(2, this->datanodeuuids(i), target); |
11890 | } |
11891 | |
11892 | // repeated string storageUuids = 3; |
11893 | for (int i = 0, n = this->storageuuids_size(); i < n; i++) { |
11894 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
11895 | this->storageuuids(i).data(), static_cast<int>(this->storageuuids(i).length()), |
11896 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
11897 | "Hdfs.Internal.BlockWithLocationsProto.storageUuids" ); |
11898 | target = ::google::protobuf::internal::WireFormatLite:: |
11899 | WriteStringToArray(3, this->storageuuids(i), target); |
11900 | } |
11901 | |
11902 | if (_internal_metadata_.have_unknown_fields()) { |
11903 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
11904 | _internal_metadata_.unknown_fields(), target); |
11905 | } |
11906 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.BlockWithLocationsProto) |
11907 | return target; |
11908 | } |
11909 | |
11910 | size_t BlockWithLocationsProto::ByteSizeLong() const { |
11911 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.BlockWithLocationsProto) |
11912 | size_t total_size = 0; |
11913 | |
11914 | if (_internal_metadata_.have_unknown_fields()) { |
11915 | total_size += |
11916 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
11917 | _internal_metadata_.unknown_fields()); |
11918 | } |
11919 | // required .Hdfs.Internal.BlockProto block = 1; |
11920 | if (has_block()) { |
11921 | total_size += 1 + |
11922 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
11923 | *block_); |
11924 | } |
11925 | // repeated string datanodeUuids = 2; |
11926 | total_size += 1 * |
11927 | ::google::protobuf::internal::FromIntSize(this->datanodeuuids_size()); |
11928 | for (int i = 0, n = this->datanodeuuids_size(); i < n; i++) { |
11929 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
11930 | this->datanodeuuids(i)); |
11931 | } |
11932 | |
11933 | // repeated string storageUuids = 3; |
11934 | total_size += 1 * |
11935 | ::google::protobuf::internal::FromIntSize(this->storageuuids_size()); |
11936 | for (int i = 0, n = this->storageuuids_size(); i < n; i++) { |
11937 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
11938 | this->storageuuids(i)); |
11939 | } |
11940 | |
11941 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
11942 | SetCachedSize(cached_size); |
11943 | return total_size; |
11944 | } |
11945 | |
11946 | void BlockWithLocationsProto::MergeFrom(const ::google::protobuf::Message& from) { |
11947 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.BlockWithLocationsProto) |
11948 | GOOGLE_DCHECK_NE(&from, this); |
11949 | const BlockWithLocationsProto* source = |
11950 | ::google::protobuf::internal::DynamicCastToGenerated<const BlockWithLocationsProto>( |
11951 | &from); |
11952 | if (source == NULL) { |
11953 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.BlockWithLocationsProto) |
11954 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
11955 | } else { |
11956 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.BlockWithLocationsProto) |
11957 | MergeFrom(*source); |
11958 | } |
11959 | } |
11960 | |
11961 | void BlockWithLocationsProto::MergeFrom(const BlockWithLocationsProto& from) { |
11962 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.BlockWithLocationsProto) |
11963 | GOOGLE_DCHECK_NE(&from, this); |
11964 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11965 | ::google::protobuf::uint32 cached_has_bits = 0; |
11966 | (void) cached_has_bits; |
11967 | |
11968 | datanodeuuids_.MergeFrom(from.datanodeuuids_); |
11969 | storageuuids_.MergeFrom(from.storageuuids_); |
11970 | if (from.has_block()) { |
11971 | mutable_block()->::Hdfs::Internal::BlockProto::MergeFrom(from.block()); |
11972 | } |
11973 | } |
11974 | |
11975 | void BlockWithLocationsProto::CopyFrom(const ::google::protobuf::Message& from) { |
11976 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.BlockWithLocationsProto) |
11977 | if (&from == this) return; |
11978 | Clear(); |
11979 | MergeFrom(from); |
11980 | } |
11981 | |
11982 | void BlockWithLocationsProto::CopyFrom(const BlockWithLocationsProto& from) { |
11983 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.BlockWithLocationsProto) |
11984 | if (&from == this) return; |
11985 | Clear(); |
11986 | MergeFrom(from); |
11987 | } |
11988 | |
11989 | bool BlockWithLocationsProto::IsInitialized() const { |
11990 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
11991 | if (has_block()) { |
11992 | if (!this->block_->IsInitialized()) return false; |
11993 | } |
11994 | return true; |
11995 | } |
11996 | |
11997 | void BlockWithLocationsProto::Swap(BlockWithLocationsProto* other) { |
11998 | if (other == this) return; |
11999 | InternalSwap(other); |
12000 | } |
12001 | void BlockWithLocationsProto::InternalSwap(BlockWithLocationsProto* other) { |
12002 | using std::swap; |
12003 | datanodeuuids_.InternalSwap(CastToBase(&other->datanodeuuids_)); |
12004 | storageuuids_.InternalSwap(CastToBase(&other->storageuuids_)); |
12005 | swap(block_, other->block_); |
12006 | swap(_has_bits_[0], other->_has_bits_[0]); |
12007 | _internal_metadata_.Swap(&other->_internal_metadata_); |
12008 | } |
12009 | |
12010 | ::google::protobuf::Metadata BlockWithLocationsProto::GetMetadata() const { |
12011 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
12012 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
12013 | } |
12014 | |
12015 | |
12016 | // =================================================================== |
12017 | |
12018 | void BlocksWithLocationsProto::InitAsDefaultInstance() { |
12019 | } |
12020 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
12021 | const int BlocksWithLocationsProto::kBlocksFieldNumber; |
12022 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
12023 | |
12024 | BlocksWithLocationsProto::BlocksWithLocationsProto() |
12025 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
12026 | ::google::protobuf::internal::InitSCC( |
12027 | &protobuf_hdfs_2eproto::scc_info_BlocksWithLocationsProto.base); |
12028 | SharedCtor(); |
12029 | // @@protoc_insertion_point(constructor:Hdfs.Internal.BlocksWithLocationsProto) |
12030 | } |
12031 | BlocksWithLocationsProto::BlocksWithLocationsProto(const BlocksWithLocationsProto& from) |
12032 | : ::google::protobuf::Message(), |
12033 | _internal_metadata_(NULL), |
12034 | _has_bits_(from._has_bits_), |
12035 | blocks_(from.blocks_) { |
12036 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
12037 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.BlocksWithLocationsProto) |
12038 | } |
12039 | |
12040 | void BlocksWithLocationsProto::SharedCtor() { |
12041 | } |
12042 | |
12043 | BlocksWithLocationsProto::~BlocksWithLocationsProto() { |
12044 | // @@protoc_insertion_point(destructor:Hdfs.Internal.BlocksWithLocationsProto) |
12045 | SharedDtor(); |
12046 | } |
12047 | |
12048 | void BlocksWithLocationsProto::SharedDtor() { |
12049 | } |
12050 | |
12051 | void BlocksWithLocationsProto::SetCachedSize(int size) const { |
12052 | _cached_size_.Set(size); |
12053 | } |
12054 | const ::google::protobuf::Descriptor* BlocksWithLocationsProto::descriptor() { |
12055 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
12056 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
12057 | } |
12058 | |
12059 | const BlocksWithLocationsProto& BlocksWithLocationsProto::default_instance() { |
12060 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_BlocksWithLocationsProto.base); |
12061 | return *internal_default_instance(); |
12062 | } |
12063 | |
12064 | |
12065 | void BlocksWithLocationsProto::Clear() { |
12066 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.BlocksWithLocationsProto) |
12067 | ::google::protobuf::uint32 cached_has_bits = 0; |
12068 | // Prevent compiler warnings about cached_has_bits being unused |
12069 | (void) cached_has_bits; |
12070 | |
12071 | blocks_.Clear(); |
12072 | _has_bits_.Clear(); |
12073 | _internal_metadata_.Clear(); |
12074 | } |
12075 | |
12076 | bool BlocksWithLocationsProto::MergePartialFromCodedStream( |
12077 | ::google::protobuf::io::CodedInputStream* input) { |
12078 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
12079 | ::google::protobuf::uint32 tag; |
12080 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.BlocksWithLocationsProto) |
12081 | for (;;) { |
12082 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
12083 | tag = p.first; |
12084 | if (!p.second) goto handle_unusual; |
12085 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
12086 | // repeated .Hdfs.Internal.BlockWithLocationsProto blocks = 1; |
12087 | case 1: { |
12088 | if (static_cast< ::google::protobuf::uint8>(tag) == |
12089 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
12090 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
12091 | input, add_blocks())); |
12092 | } else { |
12093 | goto handle_unusual; |
12094 | } |
12095 | break; |
12096 | } |
12097 | |
12098 | default: { |
12099 | handle_unusual: |
12100 | if (tag == 0) { |
12101 | goto success; |
12102 | } |
12103 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
12104 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
12105 | break; |
12106 | } |
12107 | } |
12108 | } |
12109 | success: |
12110 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.BlocksWithLocationsProto) |
12111 | return true; |
12112 | failure: |
12113 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.BlocksWithLocationsProto) |
12114 | return false; |
12115 | #undef DO_ |
12116 | } |
12117 | |
12118 | void BlocksWithLocationsProto::SerializeWithCachedSizes( |
12119 | ::google::protobuf::io::CodedOutputStream* output) const { |
12120 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.BlocksWithLocationsProto) |
12121 | ::google::protobuf::uint32 cached_has_bits = 0; |
12122 | (void) cached_has_bits; |
12123 | |
12124 | // repeated .Hdfs.Internal.BlockWithLocationsProto blocks = 1; |
12125 | for (unsigned int i = 0, |
12126 | n = static_cast<unsigned int>(this->blocks_size()); i < n; i++) { |
12127 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
12128 | 1, |
12129 | this->blocks(static_cast<int>(i)), |
12130 | output); |
12131 | } |
12132 | |
12133 | if (_internal_metadata_.have_unknown_fields()) { |
12134 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
12135 | _internal_metadata_.unknown_fields(), output); |
12136 | } |
12137 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.BlocksWithLocationsProto) |
12138 | } |
12139 | |
12140 | ::google::protobuf::uint8* BlocksWithLocationsProto::InternalSerializeWithCachedSizesToArray( |
12141 | bool deterministic, ::google::protobuf::uint8* target) const { |
12142 | (void)deterministic; // Unused |
12143 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.BlocksWithLocationsProto) |
12144 | ::google::protobuf::uint32 cached_has_bits = 0; |
12145 | (void) cached_has_bits; |
12146 | |
12147 | // repeated .Hdfs.Internal.BlockWithLocationsProto blocks = 1; |
12148 | for (unsigned int i = 0, |
12149 | n = static_cast<unsigned int>(this->blocks_size()); i < n; i++) { |
12150 | target = ::google::protobuf::internal::WireFormatLite:: |
12151 | InternalWriteMessageToArray( |
12152 | 1, this->blocks(static_cast<int>(i)), deterministic, target); |
12153 | } |
12154 | |
12155 | if (_internal_metadata_.have_unknown_fields()) { |
12156 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
12157 | _internal_metadata_.unknown_fields(), target); |
12158 | } |
12159 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.BlocksWithLocationsProto) |
12160 | return target; |
12161 | } |
12162 | |
12163 | size_t BlocksWithLocationsProto::ByteSizeLong() const { |
12164 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.BlocksWithLocationsProto) |
12165 | size_t total_size = 0; |
12166 | |
12167 | if (_internal_metadata_.have_unknown_fields()) { |
12168 | total_size += |
12169 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
12170 | _internal_metadata_.unknown_fields()); |
12171 | } |
12172 | // repeated .Hdfs.Internal.BlockWithLocationsProto blocks = 1; |
12173 | { |
12174 | unsigned int count = static_cast<unsigned int>(this->blocks_size()); |
12175 | total_size += 1UL * count; |
12176 | for (unsigned int i = 0; i < count; i++) { |
12177 | total_size += |
12178 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
12179 | this->blocks(static_cast<int>(i))); |
12180 | } |
12181 | } |
12182 | |
12183 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
12184 | SetCachedSize(cached_size); |
12185 | return total_size; |
12186 | } |
12187 | |
12188 | void BlocksWithLocationsProto::MergeFrom(const ::google::protobuf::Message& from) { |
12189 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.BlocksWithLocationsProto) |
12190 | GOOGLE_DCHECK_NE(&from, this); |
12191 | const BlocksWithLocationsProto* source = |
12192 | ::google::protobuf::internal::DynamicCastToGenerated<const BlocksWithLocationsProto>( |
12193 | &from); |
12194 | if (source == NULL) { |
12195 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.BlocksWithLocationsProto) |
12196 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
12197 | } else { |
12198 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.BlocksWithLocationsProto) |
12199 | MergeFrom(*source); |
12200 | } |
12201 | } |
12202 | |
12203 | void BlocksWithLocationsProto::MergeFrom(const BlocksWithLocationsProto& from) { |
12204 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.BlocksWithLocationsProto) |
12205 | GOOGLE_DCHECK_NE(&from, this); |
12206 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
12207 | ::google::protobuf::uint32 cached_has_bits = 0; |
12208 | (void) cached_has_bits; |
12209 | |
12210 | blocks_.MergeFrom(from.blocks_); |
12211 | } |
12212 | |
12213 | void BlocksWithLocationsProto::CopyFrom(const ::google::protobuf::Message& from) { |
12214 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.BlocksWithLocationsProto) |
12215 | if (&from == this) return; |
12216 | Clear(); |
12217 | MergeFrom(from); |
12218 | } |
12219 | |
12220 | void BlocksWithLocationsProto::CopyFrom(const BlocksWithLocationsProto& from) { |
12221 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.BlocksWithLocationsProto) |
12222 | if (&from == this) return; |
12223 | Clear(); |
12224 | MergeFrom(from); |
12225 | } |
12226 | |
12227 | bool BlocksWithLocationsProto::IsInitialized() const { |
12228 | if (!::google::protobuf::internal::AllAreInitialized(this->blocks())) return false; |
12229 | return true; |
12230 | } |
12231 | |
12232 | void BlocksWithLocationsProto::Swap(BlocksWithLocationsProto* other) { |
12233 | if (other == this) return; |
12234 | InternalSwap(other); |
12235 | } |
12236 | void BlocksWithLocationsProto::InternalSwap(BlocksWithLocationsProto* other) { |
12237 | using std::swap; |
12238 | CastToBase(&blocks_)->InternalSwap(CastToBase(&other->blocks_)); |
12239 | swap(_has_bits_[0], other->_has_bits_[0]); |
12240 | _internal_metadata_.Swap(&other->_internal_metadata_); |
12241 | } |
12242 | |
12243 | ::google::protobuf::Metadata BlocksWithLocationsProto::GetMetadata() const { |
12244 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
12245 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
12246 | } |
12247 | |
12248 | |
12249 | // =================================================================== |
12250 | |
12251 | void RemoteEditLogProto::InitAsDefaultInstance() { |
12252 | } |
12253 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
12254 | const int RemoteEditLogProto::kStartTxIdFieldNumber; |
12255 | const int RemoteEditLogProto::kEndTxIdFieldNumber; |
12256 | const int RemoteEditLogProto::kIsInProgressFieldNumber; |
12257 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
12258 | |
12259 | RemoteEditLogProto::RemoteEditLogProto() |
12260 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
12261 | ::google::protobuf::internal::InitSCC( |
12262 | &protobuf_hdfs_2eproto::scc_info_RemoteEditLogProto.base); |
12263 | SharedCtor(); |
12264 | // @@protoc_insertion_point(constructor:Hdfs.Internal.RemoteEditLogProto) |
12265 | } |
12266 | RemoteEditLogProto::RemoteEditLogProto(const RemoteEditLogProto& from) |
12267 | : ::google::protobuf::Message(), |
12268 | _internal_metadata_(NULL), |
12269 | _has_bits_(from._has_bits_) { |
12270 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
12271 | ::memcpy(&starttxid_, &from.starttxid_, |
12272 | static_cast<size_t>(reinterpret_cast<char*>(&isinprogress_) - |
12273 | reinterpret_cast<char*>(&starttxid_)) + sizeof(isinprogress_)); |
12274 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.RemoteEditLogProto) |
12275 | } |
12276 | |
12277 | void RemoteEditLogProto::SharedCtor() { |
12278 | ::memset(&starttxid_, 0, static_cast<size_t>( |
12279 | reinterpret_cast<char*>(&isinprogress_) - |
12280 | reinterpret_cast<char*>(&starttxid_)) + sizeof(isinprogress_)); |
12281 | } |
12282 | |
12283 | RemoteEditLogProto::~RemoteEditLogProto() { |
12284 | // @@protoc_insertion_point(destructor:Hdfs.Internal.RemoteEditLogProto) |
12285 | SharedDtor(); |
12286 | } |
12287 | |
12288 | void RemoteEditLogProto::SharedDtor() { |
12289 | } |
12290 | |
12291 | void RemoteEditLogProto::SetCachedSize(int size) const { |
12292 | _cached_size_.Set(size); |
12293 | } |
12294 | const ::google::protobuf::Descriptor* RemoteEditLogProto::descriptor() { |
12295 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
12296 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
12297 | } |
12298 | |
12299 | const RemoteEditLogProto& RemoteEditLogProto::default_instance() { |
12300 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_RemoteEditLogProto.base); |
12301 | return *internal_default_instance(); |
12302 | } |
12303 | |
12304 | |
12305 | void RemoteEditLogProto::Clear() { |
12306 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.RemoteEditLogProto) |
12307 | ::google::protobuf::uint32 cached_has_bits = 0; |
12308 | // Prevent compiler warnings about cached_has_bits being unused |
12309 | (void) cached_has_bits; |
12310 | |
12311 | cached_has_bits = _has_bits_[0]; |
12312 | if (cached_has_bits & 7u) { |
12313 | ::memset(&starttxid_, 0, static_cast<size_t>( |
12314 | reinterpret_cast<char*>(&isinprogress_) - |
12315 | reinterpret_cast<char*>(&starttxid_)) + sizeof(isinprogress_)); |
12316 | } |
12317 | _has_bits_.Clear(); |
12318 | _internal_metadata_.Clear(); |
12319 | } |
12320 | |
12321 | bool RemoteEditLogProto::MergePartialFromCodedStream( |
12322 | ::google::protobuf::io::CodedInputStream* input) { |
12323 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
12324 | ::google::protobuf::uint32 tag; |
12325 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.RemoteEditLogProto) |
12326 | for (;;) { |
12327 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
12328 | tag = p.first; |
12329 | if (!p.second) goto handle_unusual; |
12330 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
12331 | // required uint64 startTxId = 1; |
12332 | case 1: { |
12333 | if (static_cast< ::google::protobuf::uint8>(tag) == |
12334 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
12335 | set_has_starttxid(); |
12336 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
12337 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
12338 | input, &starttxid_))); |
12339 | } else { |
12340 | goto handle_unusual; |
12341 | } |
12342 | break; |
12343 | } |
12344 | |
12345 | // required uint64 endTxId = 2; |
12346 | case 2: { |
12347 | if (static_cast< ::google::protobuf::uint8>(tag) == |
12348 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
12349 | set_has_endtxid(); |
12350 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
12351 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
12352 | input, &endtxid_))); |
12353 | } else { |
12354 | goto handle_unusual; |
12355 | } |
12356 | break; |
12357 | } |
12358 | |
12359 | // optional bool isInProgress = 3 [default = false]; |
12360 | case 3: { |
12361 | if (static_cast< ::google::protobuf::uint8>(tag) == |
12362 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
12363 | set_has_isinprogress(); |
12364 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
12365 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
12366 | input, &isinprogress_))); |
12367 | } else { |
12368 | goto handle_unusual; |
12369 | } |
12370 | break; |
12371 | } |
12372 | |
12373 | default: { |
12374 | handle_unusual: |
12375 | if (tag == 0) { |
12376 | goto success; |
12377 | } |
12378 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
12379 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
12380 | break; |
12381 | } |
12382 | } |
12383 | } |
12384 | success: |
12385 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.RemoteEditLogProto) |
12386 | return true; |
12387 | failure: |
12388 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.RemoteEditLogProto) |
12389 | return false; |
12390 | #undef DO_ |
12391 | } |
12392 | |
12393 | void RemoteEditLogProto::SerializeWithCachedSizes( |
12394 | ::google::protobuf::io::CodedOutputStream* output) const { |
12395 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.RemoteEditLogProto) |
12396 | ::google::protobuf::uint32 cached_has_bits = 0; |
12397 | (void) cached_has_bits; |
12398 | |
12399 | cached_has_bits = _has_bits_[0]; |
12400 | // required uint64 startTxId = 1; |
12401 | if (cached_has_bits & 0x00000001u) { |
12402 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->starttxid(), output); |
12403 | } |
12404 | |
12405 | // required uint64 endTxId = 2; |
12406 | if (cached_has_bits & 0x00000002u) { |
12407 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->endtxid(), output); |
12408 | } |
12409 | |
12410 | // optional bool isInProgress = 3 [default = false]; |
12411 | if (cached_has_bits & 0x00000004u) { |
12412 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->isinprogress(), output); |
12413 | } |
12414 | |
12415 | if (_internal_metadata_.have_unknown_fields()) { |
12416 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
12417 | _internal_metadata_.unknown_fields(), output); |
12418 | } |
12419 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.RemoteEditLogProto) |
12420 | } |
12421 | |
12422 | ::google::protobuf::uint8* RemoteEditLogProto::InternalSerializeWithCachedSizesToArray( |
12423 | bool deterministic, ::google::protobuf::uint8* target) const { |
12424 | (void)deterministic; // Unused |
12425 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.RemoteEditLogProto) |
12426 | ::google::protobuf::uint32 cached_has_bits = 0; |
12427 | (void) cached_has_bits; |
12428 | |
12429 | cached_has_bits = _has_bits_[0]; |
12430 | // required uint64 startTxId = 1; |
12431 | if (cached_has_bits & 0x00000001u) { |
12432 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->starttxid(), target); |
12433 | } |
12434 | |
12435 | // required uint64 endTxId = 2; |
12436 | if (cached_has_bits & 0x00000002u) { |
12437 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->endtxid(), target); |
12438 | } |
12439 | |
12440 | // optional bool isInProgress = 3 [default = false]; |
12441 | if (cached_has_bits & 0x00000004u) { |
12442 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->isinprogress(), target); |
12443 | } |
12444 | |
12445 | if (_internal_metadata_.have_unknown_fields()) { |
12446 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
12447 | _internal_metadata_.unknown_fields(), target); |
12448 | } |
12449 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.RemoteEditLogProto) |
12450 | return target; |
12451 | } |
12452 | |
12453 | size_t RemoteEditLogProto::RequiredFieldsByteSizeFallback() const { |
12454 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.RemoteEditLogProto) |
12455 | size_t total_size = 0; |
12456 | |
12457 | if (has_starttxid()) { |
12458 | // required uint64 startTxId = 1; |
12459 | total_size += 1 + |
12460 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
12461 | this->starttxid()); |
12462 | } |
12463 | |
12464 | if (has_endtxid()) { |
12465 | // required uint64 endTxId = 2; |
12466 | total_size += 1 + |
12467 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
12468 | this->endtxid()); |
12469 | } |
12470 | |
12471 | return total_size; |
12472 | } |
12473 | size_t RemoteEditLogProto::ByteSizeLong() const { |
12474 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.RemoteEditLogProto) |
12475 | size_t total_size = 0; |
12476 | |
12477 | if (_internal_metadata_.have_unknown_fields()) { |
12478 | total_size += |
12479 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
12480 | _internal_metadata_.unknown_fields()); |
12481 | } |
12482 | if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
12483 | // required uint64 startTxId = 1; |
12484 | total_size += 1 + |
12485 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
12486 | this->starttxid()); |
12487 | |
12488 | // required uint64 endTxId = 2; |
12489 | total_size += 1 + |
12490 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
12491 | this->endtxid()); |
12492 | |
12493 | } else { |
12494 | total_size += RequiredFieldsByteSizeFallback(); |
12495 | } |
12496 | // optional bool isInProgress = 3 [default = false]; |
12497 | if (has_isinprogress()) { |
12498 | total_size += 1 + 1; |
12499 | } |
12500 | |
12501 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
12502 | SetCachedSize(cached_size); |
12503 | return total_size; |
12504 | } |
12505 | |
12506 | void RemoteEditLogProto::MergeFrom(const ::google::protobuf::Message& from) { |
12507 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.RemoteEditLogProto) |
12508 | GOOGLE_DCHECK_NE(&from, this); |
12509 | const RemoteEditLogProto* source = |
12510 | ::google::protobuf::internal::DynamicCastToGenerated<const RemoteEditLogProto>( |
12511 | &from); |
12512 | if (source == NULL) { |
12513 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.RemoteEditLogProto) |
12514 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
12515 | } else { |
12516 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.RemoteEditLogProto) |
12517 | MergeFrom(*source); |
12518 | } |
12519 | } |
12520 | |
12521 | void RemoteEditLogProto::MergeFrom(const RemoteEditLogProto& from) { |
12522 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.RemoteEditLogProto) |
12523 | GOOGLE_DCHECK_NE(&from, this); |
12524 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
12525 | ::google::protobuf::uint32 cached_has_bits = 0; |
12526 | (void) cached_has_bits; |
12527 | |
12528 | cached_has_bits = from._has_bits_[0]; |
12529 | if (cached_has_bits & 7u) { |
12530 | if (cached_has_bits & 0x00000001u) { |
12531 | starttxid_ = from.starttxid_; |
12532 | } |
12533 | if (cached_has_bits & 0x00000002u) { |
12534 | endtxid_ = from.endtxid_; |
12535 | } |
12536 | if (cached_has_bits & 0x00000004u) { |
12537 | isinprogress_ = from.isinprogress_; |
12538 | } |
12539 | _has_bits_[0] |= cached_has_bits; |
12540 | } |
12541 | } |
12542 | |
12543 | void RemoteEditLogProto::CopyFrom(const ::google::protobuf::Message& from) { |
12544 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.RemoteEditLogProto) |
12545 | if (&from == this) return; |
12546 | Clear(); |
12547 | MergeFrom(from); |
12548 | } |
12549 | |
12550 | void RemoteEditLogProto::CopyFrom(const RemoteEditLogProto& from) { |
12551 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.RemoteEditLogProto) |
12552 | if (&from == this) return; |
12553 | Clear(); |
12554 | MergeFrom(from); |
12555 | } |
12556 | |
12557 | bool RemoteEditLogProto::IsInitialized() const { |
12558 | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
12559 | return true; |
12560 | } |
12561 | |
12562 | void RemoteEditLogProto::Swap(RemoteEditLogProto* other) { |
12563 | if (other == this) return; |
12564 | InternalSwap(other); |
12565 | } |
12566 | void RemoteEditLogProto::InternalSwap(RemoteEditLogProto* other) { |
12567 | using std::swap; |
12568 | swap(starttxid_, other->starttxid_); |
12569 | swap(endtxid_, other->endtxid_); |
12570 | swap(isinprogress_, other->isinprogress_); |
12571 | swap(_has_bits_[0], other->_has_bits_[0]); |
12572 | _internal_metadata_.Swap(&other->_internal_metadata_); |
12573 | } |
12574 | |
12575 | ::google::protobuf::Metadata RemoteEditLogProto::GetMetadata() const { |
12576 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
12577 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
12578 | } |
12579 | |
12580 | |
12581 | // =================================================================== |
12582 | |
12583 | void RemoteEditLogManifestProto::InitAsDefaultInstance() { |
12584 | } |
12585 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
12586 | const int RemoteEditLogManifestProto::kLogsFieldNumber; |
12587 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
12588 | |
12589 | RemoteEditLogManifestProto::RemoteEditLogManifestProto() |
12590 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
12591 | ::google::protobuf::internal::InitSCC( |
12592 | &protobuf_hdfs_2eproto::scc_info_RemoteEditLogManifestProto.base); |
12593 | SharedCtor(); |
12594 | // @@protoc_insertion_point(constructor:Hdfs.Internal.RemoteEditLogManifestProto) |
12595 | } |
12596 | RemoteEditLogManifestProto::RemoteEditLogManifestProto(const RemoteEditLogManifestProto& from) |
12597 | : ::google::protobuf::Message(), |
12598 | _internal_metadata_(NULL), |
12599 | _has_bits_(from._has_bits_), |
12600 | logs_(from.logs_) { |
12601 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
12602 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.RemoteEditLogManifestProto) |
12603 | } |
12604 | |
12605 | void RemoteEditLogManifestProto::SharedCtor() { |
12606 | } |
12607 | |
12608 | RemoteEditLogManifestProto::~RemoteEditLogManifestProto() { |
12609 | // @@protoc_insertion_point(destructor:Hdfs.Internal.RemoteEditLogManifestProto) |
12610 | SharedDtor(); |
12611 | } |
12612 | |
12613 | void RemoteEditLogManifestProto::SharedDtor() { |
12614 | } |
12615 | |
12616 | void RemoteEditLogManifestProto::SetCachedSize(int size) const { |
12617 | _cached_size_.Set(size); |
12618 | } |
12619 | const ::google::protobuf::Descriptor* RemoteEditLogManifestProto::descriptor() { |
12620 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
12621 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
12622 | } |
12623 | |
12624 | const RemoteEditLogManifestProto& RemoteEditLogManifestProto::default_instance() { |
12625 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_RemoteEditLogManifestProto.base); |
12626 | return *internal_default_instance(); |
12627 | } |
12628 | |
12629 | |
12630 | void RemoteEditLogManifestProto::Clear() { |
12631 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.RemoteEditLogManifestProto) |
12632 | ::google::protobuf::uint32 cached_has_bits = 0; |
12633 | // Prevent compiler warnings about cached_has_bits being unused |
12634 | (void) cached_has_bits; |
12635 | |
12636 | logs_.Clear(); |
12637 | _has_bits_.Clear(); |
12638 | _internal_metadata_.Clear(); |
12639 | } |
12640 | |
12641 | bool RemoteEditLogManifestProto::MergePartialFromCodedStream( |
12642 | ::google::protobuf::io::CodedInputStream* input) { |
12643 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
12644 | ::google::protobuf::uint32 tag; |
12645 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.RemoteEditLogManifestProto) |
12646 | for (;;) { |
12647 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
12648 | tag = p.first; |
12649 | if (!p.second) goto handle_unusual; |
12650 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
12651 | // repeated .Hdfs.Internal.RemoteEditLogProto logs = 1; |
12652 | case 1: { |
12653 | if (static_cast< ::google::protobuf::uint8>(tag) == |
12654 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
12655 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
12656 | input, add_logs())); |
12657 | } else { |
12658 | goto handle_unusual; |
12659 | } |
12660 | break; |
12661 | } |
12662 | |
12663 | default: { |
12664 | handle_unusual: |
12665 | if (tag == 0) { |
12666 | goto success; |
12667 | } |
12668 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
12669 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
12670 | break; |
12671 | } |
12672 | } |
12673 | } |
12674 | success: |
12675 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.RemoteEditLogManifestProto) |
12676 | return true; |
12677 | failure: |
12678 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.RemoteEditLogManifestProto) |
12679 | return false; |
12680 | #undef DO_ |
12681 | } |
12682 | |
12683 | void RemoteEditLogManifestProto::SerializeWithCachedSizes( |
12684 | ::google::protobuf::io::CodedOutputStream* output) const { |
12685 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.RemoteEditLogManifestProto) |
12686 | ::google::protobuf::uint32 cached_has_bits = 0; |
12687 | (void) cached_has_bits; |
12688 | |
12689 | // repeated .Hdfs.Internal.RemoteEditLogProto logs = 1; |
12690 | for (unsigned int i = 0, |
12691 | n = static_cast<unsigned int>(this->logs_size()); i < n; i++) { |
12692 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
12693 | 1, |
12694 | this->logs(static_cast<int>(i)), |
12695 | output); |
12696 | } |
12697 | |
12698 | if (_internal_metadata_.have_unknown_fields()) { |
12699 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
12700 | _internal_metadata_.unknown_fields(), output); |
12701 | } |
12702 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.RemoteEditLogManifestProto) |
12703 | } |
12704 | |
12705 | ::google::protobuf::uint8* RemoteEditLogManifestProto::InternalSerializeWithCachedSizesToArray( |
12706 | bool deterministic, ::google::protobuf::uint8* target) const { |
12707 | (void)deterministic; // Unused |
12708 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.RemoteEditLogManifestProto) |
12709 | ::google::protobuf::uint32 cached_has_bits = 0; |
12710 | (void) cached_has_bits; |
12711 | |
12712 | // repeated .Hdfs.Internal.RemoteEditLogProto logs = 1; |
12713 | for (unsigned int i = 0, |
12714 | n = static_cast<unsigned int>(this->logs_size()); i < n; i++) { |
12715 | target = ::google::protobuf::internal::WireFormatLite:: |
12716 | InternalWriteMessageToArray( |
12717 | 1, this->logs(static_cast<int>(i)), deterministic, target); |
12718 | } |
12719 | |
12720 | if (_internal_metadata_.have_unknown_fields()) { |
12721 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
12722 | _internal_metadata_.unknown_fields(), target); |
12723 | } |
12724 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.RemoteEditLogManifestProto) |
12725 | return target; |
12726 | } |
12727 | |
12728 | size_t RemoteEditLogManifestProto::ByteSizeLong() const { |
12729 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.RemoteEditLogManifestProto) |
12730 | size_t total_size = 0; |
12731 | |
12732 | if (_internal_metadata_.have_unknown_fields()) { |
12733 | total_size += |
12734 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
12735 | _internal_metadata_.unknown_fields()); |
12736 | } |
12737 | // repeated .Hdfs.Internal.RemoteEditLogProto logs = 1; |
12738 | { |
12739 | unsigned int count = static_cast<unsigned int>(this->logs_size()); |
12740 | total_size += 1UL * count; |
12741 | for (unsigned int i = 0; i < count; i++) { |
12742 | total_size += |
12743 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
12744 | this->logs(static_cast<int>(i))); |
12745 | } |
12746 | } |
12747 | |
12748 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
12749 | SetCachedSize(cached_size); |
12750 | return total_size; |
12751 | } |
12752 | |
12753 | void RemoteEditLogManifestProto::MergeFrom(const ::google::protobuf::Message& from) { |
12754 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.RemoteEditLogManifestProto) |
12755 | GOOGLE_DCHECK_NE(&from, this); |
12756 | const RemoteEditLogManifestProto* source = |
12757 | ::google::protobuf::internal::DynamicCastToGenerated<const RemoteEditLogManifestProto>( |
12758 | &from); |
12759 | if (source == NULL) { |
12760 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.RemoteEditLogManifestProto) |
12761 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
12762 | } else { |
12763 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.RemoteEditLogManifestProto) |
12764 | MergeFrom(*source); |
12765 | } |
12766 | } |
12767 | |
12768 | void RemoteEditLogManifestProto::MergeFrom(const RemoteEditLogManifestProto& from) { |
12769 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.RemoteEditLogManifestProto) |
12770 | GOOGLE_DCHECK_NE(&from, this); |
12771 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
12772 | ::google::protobuf::uint32 cached_has_bits = 0; |
12773 | (void) cached_has_bits; |
12774 | |
12775 | logs_.MergeFrom(from.logs_); |
12776 | } |
12777 | |
12778 | void RemoteEditLogManifestProto::CopyFrom(const ::google::protobuf::Message& from) { |
12779 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.RemoteEditLogManifestProto) |
12780 | if (&from == this) return; |
12781 | Clear(); |
12782 | MergeFrom(from); |
12783 | } |
12784 | |
12785 | void RemoteEditLogManifestProto::CopyFrom(const RemoteEditLogManifestProto& from) { |
12786 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.RemoteEditLogManifestProto) |
12787 | if (&from == this) return; |
12788 | Clear(); |
12789 | MergeFrom(from); |
12790 | } |
12791 | |
12792 | bool RemoteEditLogManifestProto::IsInitialized() const { |
12793 | if (!::google::protobuf::internal::AllAreInitialized(this->logs())) return false; |
12794 | return true; |
12795 | } |
12796 | |
12797 | void RemoteEditLogManifestProto::Swap(RemoteEditLogManifestProto* other) { |
12798 | if (other == this) return; |
12799 | InternalSwap(other); |
12800 | } |
12801 | void RemoteEditLogManifestProto::InternalSwap(RemoteEditLogManifestProto* other) { |
12802 | using std::swap; |
12803 | CastToBase(&logs_)->InternalSwap(CastToBase(&other->logs_)); |
12804 | swap(_has_bits_[0], other->_has_bits_[0]); |
12805 | _internal_metadata_.Swap(&other->_internal_metadata_); |
12806 | } |
12807 | |
12808 | ::google::protobuf::Metadata RemoteEditLogManifestProto::GetMetadata() const { |
12809 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
12810 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
12811 | } |
12812 | |
12813 | |
12814 | // =================================================================== |
12815 | |
12816 | void NamespaceInfoProto::InitAsDefaultInstance() { |
12817 | ::Hdfs::Internal::_NamespaceInfoProto_default_instance_._instance.get_mutable()->storageinfo_ = const_cast< ::Hdfs::Internal::StorageInfoProto*>( |
12818 | ::Hdfs::Internal::StorageInfoProto::internal_default_instance()); |
12819 | } |
12820 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
12821 | const int NamespaceInfoProto::kBuildVersionFieldNumber; |
12822 | const int NamespaceInfoProto::kUnusedFieldNumber; |
12823 | const int NamespaceInfoProto::kBlockPoolIDFieldNumber; |
12824 | const int NamespaceInfoProto::kStorageInfoFieldNumber; |
12825 | const int NamespaceInfoProto::kSoftwareVersionFieldNumber; |
12826 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
12827 | |
12828 | NamespaceInfoProto::NamespaceInfoProto() |
12829 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
12830 | ::google::protobuf::internal::InitSCC( |
12831 | &protobuf_hdfs_2eproto::scc_info_NamespaceInfoProto.base); |
12832 | SharedCtor(); |
12833 | // @@protoc_insertion_point(constructor:Hdfs.Internal.NamespaceInfoProto) |
12834 | } |
12835 | NamespaceInfoProto::NamespaceInfoProto(const NamespaceInfoProto& from) |
12836 | : ::google::protobuf::Message(), |
12837 | _internal_metadata_(NULL), |
12838 | _has_bits_(from._has_bits_) { |
12839 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
12840 | buildversion_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
12841 | if (from.has_buildversion()) { |
12842 | buildversion_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.buildversion_); |
12843 | } |
12844 | blockpoolid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
12845 | if (from.has_blockpoolid()) { |
12846 | blockpoolid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.blockpoolid_); |
12847 | } |
12848 | softwareversion_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
12849 | if (from.has_softwareversion()) { |
12850 | softwareversion_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.softwareversion_); |
12851 | } |
12852 | if (from.has_storageinfo()) { |
12853 | storageinfo_ = new ::Hdfs::Internal::StorageInfoProto(*from.storageinfo_); |
12854 | } else { |
12855 | storageinfo_ = NULL; |
12856 | } |
12857 | unused_ = from.unused_; |
12858 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.NamespaceInfoProto) |
12859 | } |
12860 | |
12861 | void NamespaceInfoProto::SharedCtor() { |
12862 | buildversion_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
12863 | blockpoolid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
12864 | softwareversion_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
12865 | ::memset(&storageinfo_, 0, static_cast<size_t>( |
12866 | reinterpret_cast<char*>(&unused_) - |
12867 | reinterpret_cast<char*>(&storageinfo_)) + sizeof(unused_)); |
12868 | } |
12869 | |
12870 | NamespaceInfoProto::~NamespaceInfoProto() { |
12871 | // @@protoc_insertion_point(destructor:Hdfs.Internal.NamespaceInfoProto) |
12872 | SharedDtor(); |
12873 | } |
12874 | |
12875 | void NamespaceInfoProto::SharedDtor() { |
12876 | buildversion_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
12877 | blockpoolid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
12878 | softwareversion_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
12879 | if (this != internal_default_instance()) delete storageinfo_; |
12880 | } |
12881 | |
12882 | void NamespaceInfoProto::SetCachedSize(int size) const { |
12883 | _cached_size_.Set(size); |
12884 | } |
12885 | const ::google::protobuf::Descriptor* NamespaceInfoProto::descriptor() { |
12886 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
12887 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
12888 | } |
12889 | |
12890 | const NamespaceInfoProto& NamespaceInfoProto::default_instance() { |
12891 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_NamespaceInfoProto.base); |
12892 | return *internal_default_instance(); |
12893 | } |
12894 | |
12895 | |
12896 | void NamespaceInfoProto::Clear() { |
12897 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.NamespaceInfoProto) |
12898 | ::google::protobuf::uint32 cached_has_bits = 0; |
12899 | // Prevent compiler warnings about cached_has_bits being unused |
12900 | (void) cached_has_bits; |
12901 | |
12902 | cached_has_bits = _has_bits_[0]; |
12903 | if (cached_has_bits & 15u) { |
12904 | if (cached_has_bits & 0x00000001u) { |
12905 | buildversion_.ClearNonDefaultToEmptyNoArena(); |
12906 | } |
12907 | if (cached_has_bits & 0x00000002u) { |
12908 | blockpoolid_.ClearNonDefaultToEmptyNoArena(); |
12909 | } |
12910 | if (cached_has_bits & 0x00000004u) { |
12911 | softwareversion_.ClearNonDefaultToEmptyNoArena(); |
12912 | } |
12913 | if (cached_has_bits & 0x00000008u) { |
12914 | GOOGLE_DCHECK(storageinfo_ != NULL); |
12915 | storageinfo_->Clear(); |
12916 | } |
12917 | } |
12918 | unused_ = 0u; |
12919 | _has_bits_.Clear(); |
12920 | _internal_metadata_.Clear(); |
12921 | } |
12922 | |
12923 | bool NamespaceInfoProto::MergePartialFromCodedStream( |
12924 | ::google::protobuf::io::CodedInputStream* input) { |
12925 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
12926 | ::google::protobuf::uint32 tag; |
12927 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.NamespaceInfoProto) |
12928 | for (;;) { |
12929 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
12930 | tag = p.first; |
12931 | if (!p.second) goto handle_unusual; |
12932 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
12933 | // required string buildVersion = 1; |
12934 | case 1: { |
12935 | if (static_cast< ::google::protobuf::uint8>(tag) == |
12936 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
12937 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
12938 | input, this->mutable_buildversion())); |
12939 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
12940 | this->buildversion().data(), static_cast<int>(this->buildversion().length()), |
12941 | ::google::protobuf::internal::WireFormat::PARSE, |
12942 | "Hdfs.Internal.NamespaceInfoProto.buildVersion" ); |
12943 | } else { |
12944 | goto handle_unusual; |
12945 | } |
12946 | break; |
12947 | } |
12948 | |
12949 | // required uint32 unused = 2; |
12950 | case 2: { |
12951 | if (static_cast< ::google::protobuf::uint8>(tag) == |
12952 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
12953 | set_has_unused(); |
12954 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
12955 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
12956 | input, &unused_))); |
12957 | } else { |
12958 | goto handle_unusual; |
12959 | } |
12960 | break; |
12961 | } |
12962 | |
12963 | // required string blockPoolID = 3; |
12964 | case 3: { |
12965 | if (static_cast< ::google::protobuf::uint8>(tag) == |
12966 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
12967 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
12968 | input, this->mutable_blockpoolid())); |
12969 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
12970 | this->blockpoolid().data(), static_cast<int>(this->blockpoolid().length()), |
12971 | ::google::protobuf::internal::WireFormat::PARSE, |
12972 | "Hdfs.Internal.NamespaceInfoProto.blockPoolID" ); |
12973 | } else { |
12974 | goto handle_unusual; |
12975 | } |
12976 | break; |
12977 | } |
12978 | |
12979 | // required .Hdfs.Internal.StorageInfoProto storageInfo = 4; |
12980 | case 4: { |
12981 | if (static_cast< ::google::protobuf::uint8>(tag) == |
12982 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
12983 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
12984 | input, mutable_storageinfo())); |
12985 | } else { |
12986 | goto handle_unusual; |
12987 | } |
12988 | break; |
12989 | } |
12990 | |
12991 | // required string softwareVersion = 5; |
12992 | case 5: { |
12993 | if (static_cast< ::google::protobuf::uint8>(tag) == |
12994 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
12995 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
12996 | input, this->mutable_softwareversion())); |
12997 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
12998 | this->softwareversion().data(), static_cast<int>(this->softwareversion().length()), |
12999 | ::google::protobuf::internal::WireFormat::PARSE, |
13000 | "Hdfs.Internal.NamespaceInfoProto.softwareVersion" ); |
13001 | } else { |
13002 | goto handle_unusual; |
13003 | } |
13004 | break; |
13005 | } |
13006 | |
13007 | default: { |
13008 | handle_unusual: |
13009 | if (tag == 0) { |
13010 | goto success; |
13011 | } |
13012 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
13013 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
13014 | break; |
13015 | } |
13016 | } |
13017 | } |
13018 | success: |
13019 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.NamespaceInfoProto) |
13020 | return true; |
13021 | failure: |
13022 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.NamespaceInfoProto) |
13023 | return false; |
13024 | #undef DO_ |
13025 | } |
13026 | |
13027 | void NamespaceInfoProto::SerializeWithCachedSizes( |
13028 | ::google::protobuf::io::CodedOutputStream* output) const { |
13029 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.NamespaceInfoProto) |
13030 | ::google::protobuf::uint32 cached_has_bits = 0; |
13031 | (void) cached_has_bits; |
13032 | |
13033 | cached_has_bits = _has_bits_[0]; |
13034 | // required string buildVersion = 1; |
13035 | if (cached_has_bits & 0x00000001u) { |
13036 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
13037 | this->buildversion().data(), static_cast<int>(this->buildversion().length()), |
13038 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
13039 | "Hdfs.Internal.NamespaceInfoProto.buildVersion" ); |
13040 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
13041 | 1, this->buildversion(), output); |
13042 | } |
13043 | |
13044 | // required uint32 unused = 2; |
13045 | if (cached_has_bits & 0x00000010u) { |
13046 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->unused(), output); |
13047 | } |
13048 | |
13049 | // required string blockPoolID = 3; |
13050 | if (cached_has_bits & 0x00000002u) { |
13051 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
13052 | this->blockpoolid().data(), static_cast<int>(this->blockpoolid().length()), |
13053 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
13054 | "Hdfs.Internal.NamespaceInfoProto.blockPoolID" ); |
13055 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
13056 | 3, this->blockpoolid(), output); |
13057 | } |
13058 | |
13059 | // required .Hdfs.Internal.StorageInfoProto storageInfo = 4; |
13060 | if (cached_has_bits & 0x00000008u) { |
13061 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
13062 | 4, this->_internal_storageinfo(), output); |
13063 | } |
13064 | |
13065 | // required string softwareVersion = 5; |
13066 | if (cached_has_bits & 0x00000004u) { |
13067 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
13068 | this->softwareversion().data(), static_cast<int>(this->softwareversion().length()), |
13069 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
13070 | "Hdfs.Internal.NamespaceInfoProto.softwareVersion" ); |
13071 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
13072 | 5, this->softwareversion(), output); |
13073 | } |
13074 | |
13075 | if (_internal_metadata_.have_unknown_fields()) { |
13076 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
13077 | _internal_metadata_.unknown_fields(), output); |
13078 | } |
13079 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.NamespaceInfoProto) |
13080 | } |
13081 | |
13082 | ::google::protobuf::uint8* NamespaceInfoProto::InternalSerializeWithCachedSizesToArray( |
13083 | bool deterministic, ::google::protobuf::uint8* target) const { |
13084 | (void)deterministic; // Unused |
13085 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.NamespaceInfoProto) |
13086 | ::google::protobuf::uint32 cached_has_bits = 0; |
13087 | (void) cached_has_bits; |
13088 | |
13089 | cached_has_bits = _has_bits_[0]; |
13090 | // required string buildVersion = 1; |
13091 | if (cached_has_bits & 0x00000001u) { |
13092 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
13093 | this->buildversion().data(), static_cast<int>(this->buildversion().length()), |
13094 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
13095 | "Hdfs.Internal.NamespaceInfoProto.buildVersion" ); |
13096 | target = |
13097 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
13098 | 1, this->buildversion(), target); |
13099 | } |
13100 | |
13101 | // required uint32 unused = 2; |
13102 | if (cached_has_bits & 0x00000010u) { |
13103 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->unused(), target); |
13104 | } |
13105 | |
13106 | // required string blockPoolID = 3; |
13107 | if (cached_has_bits & 0x00000002u) { |
13108 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
13109 | this->blockpoolid().data(), static_cast<int>(this->blockpoolid().length()), |
13110 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
13111 | "Hdfs.Internal.NamespaceInfoProto.blockPoolID" ); |
13112 | target = |
13113 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
13114 | 3, this->blockpoolid(), target); |
13115 | } |
13116 | |
13117 | // required .Hdfs.Internal.StorageInfoProto storageInfo = 4; |
13118 | if (cached_has_bits & 0x00000008u) { |
13119 | target = ::google::protobuf::internal::WireFormatLite:: |
13120 | InternalWriteMessageToArray( |
13121 | 4, this->_internal_storageinfo(), deterministic, target); |
13122 | } |
13123 | |
13124 | // required string softwareVersion = 5; |
13125 | if (cached_has_bits & 0x00000004u) { |
13126 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
13127 | this->softwareversion().data(), static_cast<int>(this->softwareversion().length()), |
13128 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
13129 | "Hdfs.Internal.NamespaceInfoProto.softwareVersion" ); |
13130 | target = |
13131 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
13132 | 5, this->softwareversion(), target); |
13133 | } |
13134 | |
13135 | if (_internal_metadata_.have_unknown_fields()) { |
13136 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
13137 | _internal_metadata_.unknown_fields(), target); |
13138 | } |
13139 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.NamespaceInfoProto) |
13140 | return target; |
13141 | } |
13142 | |
13143 | size_t NamespaceInfoProto::RequiredFieldsByteSizeFallback() const { |
13144 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.NamespaceInfoProto) |
13145 | size_t total_size = 0; |
13146 | |
13147 | if (has_buildversion()) { |
13148 | // required string buildVersion = 1; |
13149 | total_size += 1 + |
13150 | ::google::protobuf::internal::WireFormatLite::StringSize( |
13151 | this->buildversion()); |
13152 | } |
13153 | |
13154 | if (has_blockpoolid()) { |
13155 | // required string blockPoolID = 3; |
13156 | total_size += 1 + |
13157 | ::google::protobuf::internal::WireFormatLite::StringSize( |
13158 | this->blockpoolid()); |
13159 | } |
13160 | |
13161 | if (has_softwareversion()) { |
13162 | // required string softwareVersion = 5; |
13163 | total_size += 1 + |
13164 | ::google::protobuf::internal::WireFormatLite::StringSize( |
13165 | this->softwareversion()); |
13166 | } |
13167 | |
13168 | if (has_storageinfo()) { |
13169 | // required .Hdfs.Internal.StorageInfoProto storageInfo = 4; |
13170 | total_size += 1 + |
13171 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
13172 | *storageinfo_); |
13173 | } |
13174 | |
13175 | if (has_unused()) { |
13176 | // required uint32 unused = 2; |
13177 | total_size += 1 + |
13178 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
13179 | this->unused()); |
13180 | } |
13181 | |
13182 | return total_size; |
13183 | } |
13184 | size_t NamespaceInfoProto::ByteSizeLong() const { |
13185 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.NamespaceInfoProto) |
13186 | size_t total_size = 0; |
13187 | |
13188 | if (_internal_metadata_.have_unknown_fields()) { |
13189 | total_size += |
13190 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
13191 | _internal_metadata_.unknown_fields()); |
13192 | } |
13193 | if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present. |
13194 | // required string buildVersion = 1; |
13195 | total_size += 1 + |
13196 | ::google::protobuf::internal::WireFormatLite::StringSize( |
13197 | this->buildversion()); |
13198 | |
13199 | // required string blockPoolID = 3; |
13200 | total_size += 1 + |
13201 | ::google::protobuf::internal::WireFormatLite::StringSize( |
13202 | this->blockpoolid()); |
13203 | |
13204 | // required string softwareVersion = 5; |
13205 | total_size += 1 + |
13206 | ::google::protobuf::internal::WireFormatLite::StringSize( |
13207 | this->softwareversion()); |
13208 | |
13209 | // required .Hdfs.Internal.StorageInfoProto storageInfo = 4; |
13210 | total_size += 1 + |
13211 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
13212 | *storageinfo_); |
13213 | |
13214 | // required uint32 unused = 2; |
13215 | total_size += 1 + |
13216 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
13217 | this->unused()); |
13218 | |
13219 | } else { |
13220 | total_size += RequiredFieldsByteSizeFallback(); |
13221 | } |
13222 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
13223 | SetCachedSize(cached_size); |
13224 | return total_size; |
13225 | } |
13226 | |
13227 | void NamespaceInfoProto::MergeFrom(const ::google::protobuf::Message& from) { |
13228 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.NamespaceInfoProto) |
13229 | GOOGLE_DCHECK_NE(&from, this); |
13230 | const NamespaceInfoProto* source = |
13231 | ::google::protobuf::internal::DynamicCastToGenerated<const NamespaceInfoProto>( |
13232 | &from); |
13233 | if (source == NULL) { |
13234 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.NamespaceInfoProto) |
13235 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
13236 | } else { |
13237 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.NamespaceInfoProto) |
13238 | MergeFrom(*source); |
13239 | } |
13240 | } |
13241 | |
13242 | void NamespaceInfoProto::MergeFrom(const NamespaceInfoProto& from) { |
13243 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.NamespaceInfoProto) |
13244 | GOOGLE_DCHECK_NE(&from, this); |
13245 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
13246 | ::google::protobuf::uint32 cached_has_bits = 0; |
13247 | (void) cached_has_bits; |
13248 | |
13249 | cached_has_bits = from._has_bits_[0]; |
13250 | if (cached_has_bits & 31u) { |
13251 | if (cached_has_bits & 0x00000001u) { |
13252 | set_has_buildversion(); |
13253 | buildversion_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.buildversion_); |
13254 | } |
13255 | if (cached_has_bits & 0x00000002u) { |
13256 | set_has_blockpoolid(); |
13257 | blockpoolid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.blockpoolid_); |
13258 | } |
13259 | if (cached_has_bits & 0x00000004u) { |
13260 | set_has_softwareversion(); |
13261 | softwareversion_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.softwareversion_); |
13262 | } |
13263 | if (cached_has_bits & 0x00000008u) { |
13264 | mutable_storageinfo()->::Hdfs::Internal::StorageInfoProto::MergeFrom(from.storageinfo()); |
13265 | } |
13266 | if (cached_has_bits & 0x00000010u) { |
13267 | unused_ = from.unused_; |
13268 | } |
13269 | _has_bits_[0] |= cached_has_bits; |
13270 | } |
13271 | } |
13272 | |
13273 | void NamespaceInfoProto::CopyFrom(const ::google::protobuf::Message& from) { |
13274 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.NamespaceInfoProto) |
13275 | if (&from == this) return; |
13276 | Clear(); |
13277 | MergeFrom(from); |
13278 | } |
13279 | |
13280 | void NamespaceInfoProto::CopyFrom(const NamespaceInfoProto& from) { |
13281 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.NamespaceInfoProto) |
13282 | if (&from == this) return; |
13283 | Clear(); |
13284 | MergeFrom(from); |
13285 | } |
13286 | |
13287 | bool NamespaceInfoProto::IsInitialized() const { |
13288 | if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; |
13289 | if (has_storageinfo()) { |
13290 | if (!this->storageinfo_->IsInitialized()) return false; |
13291 | } |
13292 | return true; |
13293 | } |
13294 | |
13295 | void NamespaceInfoProto::Swap(NamespaceInfoProto* other) { |
13296 | if (other == this) return; |
13297 | InternalSwap(other); |
13298 | } |
13299 | void NamespaceInfoProto::InternalSwap(NamespaceInfoProto* other) { |
13300 | using std::swap; |
13301 | buildversion_.Swap(&other->buildversion_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
13302 | GetArenaNoVirtual()); |
13303 | blockpoolid_.Swap(&other->blockpoolid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
13304 | GetArenaNoVirtual()); |
13305 | softwareversion_.Swap(&other->softwareversion_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
13306 | GetArenaNoVirtual()); |
13307 | swap(storageinfo_, other->storageinfo_); |
13308 | swap(unused_, other->unused_); |
13309 | swap(_has_bits_[0], other->_has_bits_[0]); |
13310 | _internal_metadata_.Swap(&other->_internal_metadata_); |
13311 | } |
13312 | |
13313 | ::google::protobuf::Metadata NamespaceInfoProto::GetMetadata() const { |
13314 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
13315 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
13316 | } |
13317 | |
13318 | |
13319 | // =================================================================== |
13320 | |
13321 | void BlockKeyProto::InitAsDefaultInstance() { |
13322 | } |
13323 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
13324 | const int BlockKeyProto::kKeyIdFieldNumber; |
13325 | const int BlockKeyProto::kExpiryDateFieldNumber; |
13326 | const int BlockKeyProto::kKeyBytesFieldNumber; |
13327 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
13328 | |
13329 | BlockKeyProto::BlockKeyProto() |
13330 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
13331 | ::google::protobuf::internal::InitSCC( |
13332 | &protobuf_hdfs_2eproto::scc_info_BlockKeyProto.base); |
13333 | SharedCtor(); |
13334 | // @@protoc_insertion_point(constructor:Hdfs.Internal.BlockKeyProto) |
13335 | } |
13336 | BlockKeyProto::BlockKeyProto(const BlockKeyProto& from) |
13337 | : ::google::protobuf::Message(), |
13338 | _internal_metadata_(NULL), |
13339 | _has_bits_(from._has_bits_) { |
13340 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
13341 | keybytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
13342 | if (from.has_keybytes()) { |
13343 | keybytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.keybytes_); |
13344 | } |
13345 | ::memcpy(&expirydate_, &from.expirydate_, |
13346 | static_cast<size_t>(reinterpret_cast<char*>(&keyid_) - |
13347 | reinterpret_cast<char*>(&expirydate_)) + sizeof(keyid_)); |
13348 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.BlockKeyProto) |
13349 | } |
13350 | |
13351 | void BlockKeyProto::SharedCtor() { |
13352 | keybytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
13353 | ::memset(&expirydate_, 0, static_cast<size_t>( |
13354 | reinterpret_cast<char*>(&keyid_) - |
13355 | reinterpret_cast<char*>(&expirydate_)) + sizeof(keyid_)); |
13356 | } |
13357 | |
13358 | BlockKeyProto::~BlockKeyProto() { |
13359 | // @@protoc_insertion_point(destructor:Hdfs.Internal.BlockKeyProto) |
13360 | SharedDtor(); |
13361 | } |
13362 | |
13363 | void BlockKeyProto::SharedDtor() { |
13364 | keybytes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
13365 | } |
13366 | |
13367 | void BlockKeyProto::SetCachedSize(int size) const { |
13368 | _cached_size_.Set(size); |
13369 | } |
13370 | const ::google::protobuf::Descriptor* BlockKeyProto::descriptor() { |
13371 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
13372 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
13373 | } |
13374 | |
13375 | const BlockKeyProto& BlockKeyProto::default_instance() { |
13376 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_BlockKeyProto.base); |
13377 | return *internal_default_instance(); |
13378 | } |
13379 | |
13380 | |
13381 | void BlockKeyProto::Clear() { |
13382 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.BlockKeyProto) |
13383 | ::google::protobuf::uint32 cached_has_bits = 0; |
13384 | // Prevent compiler warnings about cached_has_bits being unused |
13385 | (void) cached_has_bits; |
13386 | |
13387 | cached_has_bits = _has_bits_[0]; |
13388 | if (cached_has_bits & 0x00000001u) { |
13389 | keybytes_.ClearNonDefaultToEmptyNoArena(); |
13390 | } |
13391 | if (cached_has_bits & 6u) { |
13392 | ::memset(&expirydate_, 0, static_cast<size_t>( |
13393 | reinterpret_cast<char*>(&keyid_) - |
13394 | reinterpret_cast<char*>(&expirydate_)) + sizeof(keyid_)); |
13395 | } |
13396 | _has_bits_.Clear(); |
13397 | _internal_metadata_.Clear(); |
13398 | } |
13399 | |
13400 | bool BlockKeyProto::MergePartialFromCodedStream( |
13401 | ::google::protobuf::io::CodedInputStream* input) { |
13402 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
13403 | ::google::protobuf::uint32 tag; |
13404 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.BlockKeyProto) |
13405 | for (;;) { |
13406 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
13407 | tag = p.first; |
13408 | if (!p.second) goto handle_unusual; |
13409 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
13410 | // required uint32 keyId = 1; |
13411 | case 1: { |
13412 | if (static_cast< ::google::protobuf::uint8>(tag) == |
13413 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
13414 | set_has_keyid(); |
13415 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
13416 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
13417 | input, &keyid_))); |
13418 | } else { |
13419 | goto handle_unusual; |
13420 | } |
13421 | break; |
13422 | } |
13423 | |
13424 | // required uint64 expiryDate = 2; |
13425 | case 2: { |
13426 | if (static_cast< ::google::protobuf::uint8>(tag) == |
13427 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
13428 | set_has_expirydate(); |
13429 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
13430 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
13431 | input, &expirydate_))); |
13432 | } else { |
13433 | goto handle_unusual; |
13434 | } |
13435 | break; |
13436 | } |
13437 | |
13438 | // optional bytes keyBytes = 3; |
13439 | case 3: { |
13440 | if (static_cast< ::google::protobuf::uint8>(tag) == |
13441 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
13442 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
13443 | input, this->mutable_keybytes())); |
13444 | } else { |
13445 | goto handle_unusual; |
13446 | } |
13447 | break; |
13448 | } |
13449 | |
13450 | default: { |
13451 | handle_unusual: |
13452 | if (tag == 0) { |
13453 | goto success; |
13454 | } |
13455 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
13456 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
13457 | break; |
13458 | } |
13459 | } |
13460 | } |
13461 | success: |
13462 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.BlockKeyProto) |
13463 | return true; |
13464 | failure: |
13465 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.BlockKeyProto) |
13466 | return false; |
13467 | #undef DO_ |
13468 | } |
13469 | |
13470 | void BlockKeyProto::SerializeWithCachedSizes( |
13471 | ::google::protobuf::io::CodedOutputStream* output) const { |
13472 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.BlockKeyProto) |
13473 | ::google::protobuf::uint32 cached_has_bits = 0; |
13474 | (void) cached_has_bits; |
13475 | |
13476 | cached_has_bits = _has_bits_[0]; |
13477 | // required uint32 keyId = 1; |
13478 | if (cached_has_bits & 0x00000004u) { |
13479 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->keyid(), output); |
13480 | } |
13481 | |
13482 | // required uint64 expiryDate = 2; |
13483 | if (cached_has_bits & 0x00000002u) { |
13484 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->expirydate(), output); |
13485 | } |
13486 | |
13487 | // optional bytes keyBytes = 3; |
13488 | if (cached_has_bits & 0x00000001u) { |
13489 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
13490 | 3, this->keybytes(), output); |
13491 | } |
13492 | |
13493 | if (_internal_metadata_.have_unknown_fields()) { |
13494 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
13495 | _internal_metadata_.unknown_fields(), output); |
13496 | } |
13497 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.BlockKeyProto) |
13498 | } |
13499 | |
13500 | ::google::protobuf::uint8* BlockKeyProto::InternalSerializeWithCachedSizesToArray( |
13501 | bool deterministic, ::google::protobuf::uint8* target) const { |
13502 | (void)deterministic; // Unused |
13503 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.BlockKeyProto) |
13504 | ::google::protobuf::uint32 cached_has_bits = 0; |
13505 | (void) cached_has_bits; |
13506 | |
13507 | cached_has_bits = _has_bits_[0]; |
13508 | // required uint32 keyId = 1; |
13509 | if (cached_has_bits & 0x00000004u) { |
13510 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->keyid(), target); |
13511 | } |
13512 | |
13513 | // required uint64 expiryDate = 2; |
13514 | if (cached_has_bits & 0x00000002u) { |
13515 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->expirydate(), target); |
13516 | } |
13517 | |
13518 | // optional bytes keyBytes = 3; |
13519 | if (cached_has_bits & 0x00000001u) { |
13520 | target = |
13521 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
13522 | 3, this->keybytes(), target); |
13523 | } |
13524 | |
13525 | if (_internal_metadata_.have_unknown_fields()) { |
13526 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
13527 | _internal_metadata_.unknown_fields(), target); |
13528 | } |
13529 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.BlockKeyProto) |
13530 | return target; |
13531 | } |
13532 | |
13533 | size_t BlockKeyProto::RequiredFieldsByteSizeFallback() const { |
13534 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.BlockKeyProto) |
13535 | size_t total_size = 0; |
13536 | |
13537 | if (has_expirydate()) { |
13538 | // required uint64 expiryDate = 2; |
13539 | total_size += 1 + |
13540 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
13541 | this->expirydate()); |
13542 | } |
13543 | |
13544 | if (has_keyid()) { |
13545 | // required uint32 keyId = 1; |
13546 | total_size += 1 + |
13547 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
13548 | this->keyid()); |
13549 | } |
13550 | |
13551 | return total_size; |
13552 | } |
13553 | size_t BlockKeyProto::ByteSizeLong() const { |
13554 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.BlockKeyProto) |
13555 | size_t total_size = 0; |
13556 | |
13557 | if (_internal_metadata_.have_unknown_fields()) { |
13558 | total_size += |
13559 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
13560 | _internal_metadata_.unknown_fields()); |
13561 | } |
13562 | if (((_has_bits_[0] & 0x00000006) ^ 0x00000006) == 0) { // All required fields are present. |
13563 | // required uint64 expiryDate = 2; |
13564 | total_size += 1 + |
13565 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
13566 | this->expirydate()); |
13567 | |
13568 | // required uint32 keyId = 1; |
13569 | total_size += 1 + |
13570 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
13571 | this->keyid()); |
13572 | |
13573 | } else { |
13574 | total_size += RequiredFieldsByteSizeFallback(); |
13575 | } |
13576 | // optional bytes keyBytes = 3; |
13577 | if (has_keybytes()) { |
13578 | total_size += 1 + |
13579 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
13580 | this->keybytes()); |
13581 | } |
13582 | |
13583 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
13584 | SetCachedSize(cached_size); |
13585 | return total_size; |
13586 | } |
13587 | |
13588 | void BlockKeyProto::MergeFrom(const ::google::protobuf::Message& from) { |
13589 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.BlockKeyProto) |
13590 | GOOGLE_DCHECK_NE(&from, this); |
13591 | const BlockKeyProto* source = |
13592 | ::google::protobuf::internal::DynamicCastToGenerated<const BlockKeyProto>( |
13593 | &from); |
13594 | if (source == NULL) { |
13595 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.BlockKeyProto) |
13596 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
13597 | } else { |
13598 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.BlockKeyProto) |
13599 | MergeFrom(*source); |
13600 | } |
13601 | } |
13602 | |
13603 | void BlockKeyProto::MergeFrom(const BlockKeyProto& from) { |
13604 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.BlockKeyProto) |
13605 | GOOGLE_DCHECK_NE(&from, this); |
13606 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
13607 | ::google::protobuf::uint32 cached_has_bits = 0; |
13608 | (void) cached_has_bits; |
13609 | |
13610 | cached_has_bits = from._has_bits_[0]; |
13611 | if (cached_has_bits & 7u) { |
13612 | if (cached_has_bits & 0x00000001u) { |
13613 | set_has_keybytes(); |
13614 | keybytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.keybytes_); |
13615 | } |
13616 | if (cached_has_bits & 0x00000002u) { |
13617 | expirydate_ = from.expirydate_; |
13618 | } |
13619 | if (cached_has_bits & 0x00000004u) { |
13620 | keyid_ = from.keyid_; |
13621 | } |
13622 | _has_bits_[0] |= cached_has_bits; |
13623 | } |
13624 | } |
13625 | |
13626 | void BlockKeyProto::CopyFrom(const ::google::protobuf::Message& from) { |
13627 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.BlockKeyProto) |
13628 | if (&from == this) return; |
13629 | Clear(); |
13630 | MergeFrom(from); |
13631 | } |
13632 | |
13633 | void BlockKeyProto::CopyFrom(const BlockKeyProto& from) { |
13634 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.BlockKeyProto) |
13635 | if (&from == this) return; |
13636 | Clear(); |
13637 | MergeFrom(from); |
13638 | } |
13639 | |
13640 | bool BlockKeyProto::IsInitialized() const { |
13641 | if ((_has_bits_[0] & 0x00000006) != 0x00000006) return false; |
13642 | return true; |
13643 | } |
13644 | |
13645 | void BlockKeyProto::Swap(BlockKeyProto* other) { |
13646 | if (other == this) return; |
13647 | InternalSwap(other); |
13648 | } |
13649 | void BlockKeyProto::InternalSwap(BlockKeyProto* other) { |
13650 | using std::swap; |
13651 | keybytes_.Swap(&other->keybytes_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
13652 | GetArenaNoVirtual()); |
13653 | swap(expirydate_, other->expirydate_); |
13654 | swap(keyid_, other->keyid_); |
13655 | swap(_has_bits_[0], other->_has_bits_[0]); |
13656 | _internal_metadata_.Swap(&other->_internal_metadata_); |
13657 | } |
13658 | |
13659 | ::google::protobuf::Metadata BlockKeyProto::GetMetadata() const { |
13660 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
13661 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
13662 | } |
13663 | |
13664 | |
13665 | // =================================================================== |
13666 | |
13667 | void ExportedBlockKeysProto::InitAsDefaultInstance() { |
13668 | ::Hdfs::Internal::_ExportedBlockKeysProto_default_instance_._instance.get_mutable()->currentkey_ = const_cast< ::Hdfs::Internal::BlockKeyProto*>( |
13669 | ::Hdfs::Internal::BlockKeyProto::internal_default_instance()); |
13670 | } |
13671 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
13672 | const int ExportedBlockKeysProto::kIsBlockTokenEnabledFieldNumber; |
13673 | const int ExportedBlockKeysProto::kKeyUpdateIntervalFieldNumber; |
13674 | const int ExportedBlockKeysProto::kTokenLifeTimeFieldNumber; |
13675 | const int ExportedBlockKeysProto::kCurrentKeyFieldNumber; |
13676 | const int ExportedBlockKeysProto::kAllKeysFieldNumber; |
13677 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
13678 | |
13679 | ExportedBlockKeysProto::ExportedBlockKeysProto() |
13680 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
13681 | ::google::protobuf::internal::InitSCC( |
13682 | &protobuf_hdfs_2eproto::scc_info_ExportedBlockKeysProto.base); |
13683 | SharedCtor(); |
13684 | // @@protoc_insertion_point(constructor:Hdfs.Internal.ExportedBlockKeysProto) |
13685 | } |
13686 | ExportedBlockKeysProto::ExportedBlockKeysProto(const ExportedBlockKeysProto& from) |
13687 | : ::google::protobuf::Message(), |
13688 | _internal_metadata_(NULL), |
13689 | _has_bits_(from._has_bits_), |
13690 | allkeys_(from.allkeys_) { |
13691 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
13692 | if (from.has_currentkey()) { |
13693 | currentkey_ = new ::Hdfs::Internal::BlockKeyProto(*from.currentkey_); |
13694 | } else { |
13695 | currentkey_ = NULL; |
13696 | } |
13697 | ::memcpy(&keyupdateinterval_, &from.keyupdateinterval_, |
13698 | static_cast<size_t>(reinterpret_cast<char*>(&isblocktokenenabled_) - |
13699 | reinterpret_cast<char*>(&keyupdateinterval_)) + sizeof(isblocktokenenabled_)); |
13700 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.ExportedBlockKeysProto) |
13701 | } |
13702 | |
13703 | void ExportedBlockKeysProto::SharedCtor() { |
13704 | ::memset(¤tkey_, 0, static_cast<size_t>( |
13705 | reinterpret_cast<char*>(&isblocktokenenabled_) - |
13706 | reinterpret_cast<char*>(¤tkey_)) + sizeof(isblocktokenenabled_)); |
13707 | } |
13708 | |
13709 | ExportedBlockKeysProto::~ExportedBlockKeysProto() { |
13710 | // @@protoc_insertion_point(destructor:Hdfs.Internal.ExportedBlockKeysProto) |
13711 | SharedDtor(); |
13712 | } |
13713 | |
13714 | void ExportedBlockKeysProto::SharedDtor() { |
13715 | if (this != internal_default_instance()) delete currentkey_; |
13716 | } |
13717 | |
13718 | void ExportedBlockKeysProto::SetCachedSize(int size) const { |
13719 | _cached_size_.Set(size); |
13720 | } |
13721 | const ::google::protobuf::Descriptor* ExportedBlockKeysProto::descriptor() { |
13722 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
13723 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
13724 | } |
13725 | |
13726 | const ExportedBlockKeysProto& ExportedBlockKeysProto::default_instance() { |
13727 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_ExportedBlockKeysProto.base); |
13728 | return *internal_default_instance(); |
13729 | } |
13730 | |
13731 | |
13732 | void ExportedBlockKeysProto::Clear() { |
13733 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.ExportedBlockKeysProto) |
13734 | ::google::protobuf::uint32 cached_has_bits = 0; |
13735 | // Prevent compiler warnings about cached_has_bits being unused |
13736 | (void) cached_has_bits; |
13737 | |
13738 | allkeys_.Clear(); |
13739 | cached_has_bits = _has_bits_[0]; |
13740 | if (cached_has_bits & 0x00000001u) { |
13741 | GOOGLE_DCHECK(currentkey_ != NULL); |
13742 | currentkey_->Clear(); |
13743 | } |
13744 | if (cached_has_bits & 14u) { |
13745 | ::memset(&keyupdateinterval_, 0, static_cast<size_t>( |
13746 | reinterpret_cast<char*>(&isblocktokenenabled_) - |
13747 | reinterpret_cast<char*>(&keyupdateinterval_)) + sizeof(isblocktokenenabled_)); |
13748 | } |
13749 | _has_bits_.Clear(); |
13750 | _internal_metadata_.Clear(); |
13751 | } |
13752 | |
13753 | bool ExportedBlockKeysProto::MergePartialFromCodedStream( |
13754 | ::google::protobuf::io::CodedInputStream* input) { |
13755 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
13756 | ::google::protobuf::uint32 tag; |
13757 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.ExportedBlockKeysProto) |
13758 | for (;;) { |
13759 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
13760 | tag = p.first; |
13761 | if (!p.second) goto handle_unusual; |
13762 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
13763 | // required bool isBlockTokenEnabled = 1; |
13764 | case 1: { |
13765 | if (static_cast< ::google::protobuf::uint8>(tag) == |
13766 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
13767 | set_has_isblocktokenenabled(); |
13768 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
13769 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
13770 | input, &isblocktokenenabled_))); |
13771 | } else { |
13772 | goto handle_unusual; |
13773 | } |
13774 | break; |
13775 | } |
13776 | |
13777 | // required uint64 keyUpdateInterval = 2; |
13778 | case 2: { |
13779 | if (static_cast< ::google::protobuf::uint8>(tag) == |
13780 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
13781 | set_has_keyupdateinterval(); |
13782 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
13783 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
13784 | input, &keyupdateinterval_))); |
13785 | } else { |
13786 | goto handle_unusual; |
13787 | } |
13788 | break; |
13789 | } |
13790 | |
13791 | // required uint64 tokenLifeTime = 3; |
13792 | case 3: { |
13793 | if (static_cast< ::google::protobuf::uint8>(tag) == |
13794 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
13795 | set_has_tokenlifetime(); |
13796 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
13797 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
13798 | input, &tokenlifetime_))); |
13799 | } else { |
13800 | goto handle_unusual; |
13801 | } |
13802 | break; |
13803 | } |
13804 | |
13805 | // required .Hdfs.Internal.BlockKeyProto currentKey = 4; |
13806 | case 4: { |
13807 | if (static_cast< ::google::protobuf::uint8>(tag) == |
13808 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
13809 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
13810 | input, mutable_currentkey())); |
13811 | } else { |
13812 | goto handle_unusual; |
13813 | } |
13814 | break; |
13815 | } |
13816 | |
13817 | // repeated .Hdfs.Internal.BlockKeyProto allKeys = 5; |
13818 | case 5: { |
13819 | if (static_cast< ::google::protobuf::uint8>(tag) == |
13820 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
13821 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
13822 | input, add_allkeys())); |
13823 | } else { |
13824 | goto handle_unusual; |
13825 | } |
13826 | break; |
13827 | } |
13828 | |
13829 | default: { |
13830 | handle_unusual: |
13831 | if (tag == 0) { |
13832 | goto success; |
13833 | } |
13834 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
13835 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
13836 | break; |
13837 | } |
13838 | } |
13839 | } |
13840 | success: |
13841 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.ExportedBlockKeysProto) |
13842 | return true; |
13843 | failure: |
13844 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.ExportedBlockKeysProto) |
13845 | return false; |
13846 | #undef DO_ |
13847 | } |
13848 | |
13849 | void ExportedBlockKeysProto::SerializeWithCachedSizes( |
13850 | ::google::protobuf::io::CodedOutputStream* output) const { |
13851 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.ExportedBlockKeysProto) |
13852 | ::google::protobuf::uint32 cached_has_bits = 0; |
13853 | (void) cached_has_bits; |
13854 | |
13855 | cached_has_bits = _has_bits_[0]; |
13856 | // required bool isBlockTokenEnabled = 1; |
13857 | if (cached_has_bits & 0x00000008u) { |
13858 | ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->isblocktokenenabled(), output); |
13859 | } |
13860 | |
13861 | // required uint64 keyUpdateInterval = 2; |
13862 | if (cached_has_bits & 0x00000002u) { |
13863 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->keyupdateinterval(), output); |
13864 | } |
13865 | |
13866 | // required uint64 tokenLifeTime = 3; |
13867 | if (cached_has_bits & 0x00000004u) { |
13868 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->tokenlifetime(), output); |
13869 | } |
13870 | |
13871 | // required .Hdfs.Internal.BlockKeyProto currentKey = 4; |
13872 | if (cached_has_bits & 0x00000001u) { |
13873 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
13874 | 4, this->_internal_currentkey(), output); |
13875 | } |
13876 | |
13877 | // repeated .Hdfs.Internal.BlockKeyProto allKeys = 5; |
13878 | for (unsigned int i = 0, |
13879 | n = static_cast<unsigned int>(this->allkeys_size()); i < n; i++) { |
13880 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
13881 | 5, |
13882 | this->allkeys(static_cast<int>(i)), |
13883 | output); |
13884 | } |
13885 | |
13886 | if (_internal_metadata_.have_unknown_fields()) { |
13887 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
13888 | _internal_metadata_.unknown_fields(), output); |
13889 | } |
13890 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.ExportedBlockKeysProto) |
13891 | } |
13892 | |
13893 | ::google::protobuf::uint8* ExportedBlockKeysProto::InternalSerializeWithCachedSizesToArray( |
13894 | bool deterministic, ::google::protobuf::uint8* target) const { |
13895 | (void)deterministic; // Unused |
13896 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.ExportedBlockKeysProto) |
13897 | ::google::protobuf::uint32 cached_has_bits = 0; |
13898 | (void) cached_has_bits; |
13899 | |
13900 | cached_has_bits = _has_bits_[0]; |
13901 | // required bool isBlockTokenEnabled = 1; |
13902 | if (cached_has_bits & 0x00000008u) { |
13903 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->isblocktokenenabled(), target); |
13904 | } |
13905 | |
13906 | // required uint64 keyUpdateInterval = 2; |
13907 | if (cached_has_bits & 0x00000002u) { |
13908 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->keyupdateinterval(), target); |
13909 | } |
13910 | |
13911 | // required uint64 tokenLifeTime = 3; |
13912 | if (cached_has_bits & 0x00000004u) { |
13913 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->tokenlifetime(), target); |
13914 | } |
13915 | |
13916 | // required .Hdfs.Internal.BlockKeyProto currentKey = 4; |
13917 | if (cached_has_bits & 0x00000001u) { |
13918 | target = ::google::protobuf::internal::WireFormatLite:: |
13919 | InternalWriteMessageToArray( |
13920 | 4, this->_internal_currentkey(), deterministic, target); |
13921 | } |
13922 | |
13923 | // repeated .Hdfs.Internal.BlockKeyProto allKeys = 5; |
13924 | for (unsigned int i = 0, |
13925 | n = static_cast<unsigned int>(this->allkeys_size()); i < n; i++) { |
13926 | target = ::google::protobuf::internal::WireFormatLite:: |
13927 | InternalWriteMessageToArray( |
13928 | 5, this->allkeys(static_cast<int>(i)), deterministic, target); |
13929 | } |
13930 | |
13931 | if (_internal_metadata_.have_unknown_fields()) { |
13932 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
13933 | _internal_metadata_.unknown_fields(), target); |
13934 | } |
13935 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.ExportedBlockKeysProto) |
13936 | return target; |
13937 | } |
13938 | |
13939 | size_t ExportedBlockKeysProto::RequiredFieldsByteSizeFallback() const { |
13940 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.ExportedBlockKeysProto) |
13941 | size_t total_size = 0; |
13942 | |
13943 | if (has_currentkey()) { |
13944 | // required .Hdfs.Internal.BlockKeyProto currentKey = 4; |
13945 | total_size += 1 + |
13946 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
13947 | *currentkey_); |
13948 | } |
13949 | |
13950 | if (has_keyupdateinterval()) { |
13951 | // required uint64 keyUpdateInterval = 2; |
13952 | total_size += 1 + |
13953 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
13954 | this->keyupdateinterval()); |
13955 | } |
13956 | |
13957 | if (has_tokenlifetime()) { |
13958 | // required uint64 tokenLifeTime = 3; |
13959 | total_size += 1 + |
13960 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
13961 | this->tokenlifetime()); |
13962 | } |
13963 | |
13964 | if (has_isblocktokenenabled()) { |
13965 | // required bool isBlockTokenEnabled = 1; |
13966 | total_size += 1 + 1; |
13967 | } |
13968 | |
13969 | return total_size; |
13970 | } |
13971 | size_t ExportedBlockKeysProto::ByteSizeLong() const { |
13972 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.ExportedBlockKeysProto) |
13973 | size_t total_size = 0; |
13974 | |
13975 | if (_internal_metadata_.have_unknown_fields()) { |
13976 | total_size += |
13977 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
13978 | _internal_metadata_.unknown_fields()); |
13979 | } |
13980 | if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. |
13981 | // required .Hdfs.Internal.BlockKeyProto currentKey = 4; |
13982 | total_size += 1 + |
13983 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
13984 | *currentkey_); |
13985 | |
13986 | // required uint64 keyUpdateInterval = 2; |
13987 | total_size += 1 + |
13988 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
13989 | this->keyupdateinterval()); |
13990 | |
13991 | // required uint64 tokenLifeTime = 3; |
13992 | total_size += 1 + |
13993 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
13994 | this->tokenlifetime()); |
13995 | |
13996 | // required bool isBlockTokenEnabled = 1; |
13997 | total_size += 1 + 1; |
13998 | |
13999 | } else { |
14000 | total_size += RequiredFieldsByteSizeFallback(); |
14001 | } |
14002 | // repeated .Hdfs.Internal.BlockKeyProto allKeys = 5; |
14003 | { |
14004 | unsigned int count = static_cast<unsigned int>(this->allkeys_size()); |
14005 | total_size += 1UL * count; |
14006 | for (unsigned int i = 0; i < count; i++) { |
14007 | total_size += |
14008 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
14009 | this->allkeys(static_cast<int>(i))); |
14010 | } |
14011 | } |
14012 | |
14013 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
14014 | SetCachedSize(cached_size); |
14015 | return total_size; |
14016 | } |
14017 | |
14018 | void ExportedBlockKeysProto::MergeFrom(const ::google::protobuf::Message& from) { |
14019 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.ExportedBlockKeysProto) |
14020 | GOOGLE_DCHECK_NE(&from, this); |
14021 | const ExportedBlockKeysProto* source = |
14022 | ::google::protobuf::internal::DynamicCastToGenerated<const ExportedBlockKeysProto>( |
14023 | &from); |
14024 | if (source == NULL) { |
14025 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.ExportedBlockKeysProto) |
14026 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
14027 | } else { |
14028 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.ExportedBlockKeysProto) |
14029 | MergeFrom(*source); |
14030 | } |
14031 | } |
14032 | |
14033 | void ExportedBlockKeysProto::MergeFrom(const ExportedBlockKeysProto& from) { |
14034 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.ExportedBlockKeysProto) |
14035 | GOOGLE_DCHECK_NE(&from, this); |
14036 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
14037 | ::google::protobuf::uint32 cached_has_bits = 0; |
14038 | (void) cached_has_bits; |
14039 | |
14040 | allkeys_.MergeFrom(from.allkeys_); |
14041 | cached_has_bits = from._has_bits_[0]; |
14042 | if (cached_has_bits & 15u) { |
14043 | if (cached_has_bits & 0x00000001u) { |
14044 | mutable_currentkey()->::Hdfs::Internal::BlockKeyProto::MergeFrom(from.currentkey()); |
14045 | } |
14046 | if (cached_has_bits & 0x00000002u) { |
14047 | keyupdateinterval_ = from.keyupdateinterval_; |
14048 | } |
14049 | if (cached_has_bits & 0x00000004u) { |
14050 | tokenlifetime_ = from.tokenlifetime_; |
14051 | } |
14052 | if (cached_has_bits & 0x00000008u) { |
14053 | isblocktokenenabled_ = from.isblocktokenenabled_; |
14054 | } |
14055 | _has_bits_[0] |= cached_has_bits; |
14056 | } |
14057 | } |
14058 | |
14059 | void ExportedBlockKeysProto::CopyFrom(const ::google::protobuf::Message& from) { |
14060 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.ExportedBlockKeysProto) |
14061 | if (&from == this) return; |
14062 | Clear(); |
14063 | MergeFrom(from); |
14064 | } |
14065 | |
14066 | void ExportedBlockKeysProto::CopyFrom(const ExportedBlockKeysProto& from) { |
14067 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.ExportedBlockKeysProto) |
14068 | if (&from == this) return; |
14069 | Clear(); |
14070 | MergeFrom(from); |
14071 | } |
14072 | |
14073 | bool ExportedBlockKeysProto::IsInitialized() const { |
14074 | if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; |
14075 | if (!::google::protobuf::internal::AllAreInitialized(this->allkeys())) return false; |
14076 | if (has_currentkey()) { |
14077 | if (!this->currentkey_->IsInitialized()) return false; |
14078 | } |
14079 | return true; |
14080 | } |
14081 | |
14082 | void ExportedBlockKeysProto::Swap(ExportedBlockKeysProto* other) { |
14083 | if (other == this) return; |
14084 | InternalSwap(other); |
14085 | } |
14086 | void ExportedBlockKeysProto::InternalSwap(ExportedBlockKeysProto* other) { |
14087 | using std::swap; |
14088 | CastToBase(&allkeys_)->InternalSwap(CastToBase(&other->allkeys_)); |
14089 | swap(currentkey_, other->currentkey_); |
14090 | swap(keyupdateinterval_, other->keyupdateinterval_); |
14091 | swap(tokenlifetime_, other->tokenlifetime_); |
14092 | swap(isblocktokenenabled_, other->isblocktokenenabled_); |
14093 | swap(_has_bits_[0], other->_has_bits_[0]); |
14094 | _internal_metadata_.Swap(&other->_internal_metadata_); |
14095 | } |
14096 | |
14097 | ::google::protobuf::Metadata ExportedBlockKeysProto::GetMetadata() const { |
14098 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
14099 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
14100 | } |
14101 | |
14102 | |
14103 | // =================================================================== |
14104 | |
14105 | void RecoveringBlockProto::InitAsDefaultInstance() { |
14106 | ::Hdfs::Internal::_RecoveringBlockProto_default_instance_._instance.get_mutable()->block_ = const_cast< ::Hdfs::Internal::LocatedBlockProto*>( |
14107 | ::Hdfs::Internal::LocatedBlockProto::internal_default_instance()); |
14108 | } |
14109 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
14110 | const int RecoveringBlockProto::kNewGenStampFieldNumber; |
14111 | const int RecoveringBlockProto::kBlockFieldNumber; |
14112 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
14113 | |
14114 | RecoveringBlockProto::RecoveringBlockProto() |
14115 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
14116 | ::google::protobuf::internal::InitSCC( |
14117 | &protobuf_hdfs_2eproto::scc_info_RecoveringBlockProto.base); |
14118 | SharedCtor(); |
14119 | // @@protoc_insertion_point(constructor:Hdfs.Internal.RecoveringBlockProto) |
14120 | } |
14121 | RecoveringBlockProto::RecoveringBlockProto(const RecoveringBlockProto& from) |
14122 | : ::google::protobuf::Message(), |
14123 | _internal_metadata_(NULL), |
14124 | _has_bits_(from._has_bits_) { |
14125 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
14126 | if (from.has_block()) { |
14127 | block_ = new ::Hdfs::Internal::LocatedBlockProto(*from.block_); |
14128 | } else { |
14129 | block_ = NULL; |
14130 | } |
14131 | newgenstamp_ = from.newgenstamp_; |
14132 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.RecoveringBlockProto) |
14133 | } |
14134 | |
14135 | void RecoveringBlockProto::SharedCtor() { |
14136 | ::memset(&block_, 0, static_cast<size_t>( |
14137 | reinterpret_cast<char*>(&newgenstamp_) - |
14138 | reinterpret_cast<char*>(&block_)) + sizeof(newgenstamp_)); |
14139 | } |
14140 | |
14141 | RecoveringBlockProto::~RecoveringBlockProto() { |
14142 | // @@protoc_insertion_point(destructor:Hdfs.Internal.RecoveringBlockProto) |
14143 | SharedDtor(); |
14144 | } |
14145 | |
14146 | void RecoveringBlockProto::SharedDtor() { |
14147 | if (this != internal_default_instance()) delete block_; |
14148 | } |
14149 | |
14150 | void RecoveringBlockProto::SetCachedSize(int size) const { |
14151 | _cached_size_.Set(size); |
14152 | } |
14153 | const ::google::protobuf::Descriptor* RecoveringBlockProto::descriptor() { |
14154 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
14155 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
14156 | } |
14157 | |
14158 | const RecoveringBlockProto& RecoveringBlockProto::default_instance() { |
14159 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_RecoveringBlockProto.base); |
14160 | return *internal_default_instance(); |
14161 | } |
14162 | |
14163 | |
14164 | void RecoveringBlockProto::Clear() { |
14165 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.RecoveringBlockProto) |
14166 | ::google::protobuf::uint32 cached_has_bits = 0; |
14167 | // Prevent compiler warnings about cached_has_bits being unused |
14168 | (void) cached_has_bits; |
14169 | |
14170 | cached_has_bits = _has_bits_[0]; |
14171 | if (cached_has_bits & 0x00000001u) { |
14172 | GOOGLE_DCHECK(block_ != NULL); |
14173 | block_->Clear(); |
14174 | } |
14175 | newgenstamp_ = GOOGLE_ULONGLONG(0); |
14176 | _has_bits_.Clear(); |
14177 | _internal_metadata_.Clear(); |
14178 | } |
14179 | |
14180 | bool RecoveringBlockProto::MergePartialFromCodedStream( |
14181 | ::google::protobuf::io::CodedInputStream* input) { |
14182 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
14183 | ::google::protobuf::uint32 tag; |
14184 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.RecoveringBlockProto) |
14185 | for (;;) { |
14186 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
14187 | tag = p.first; |
14188 | if (!p.second) goto handle_unusual; |
14189 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
14190 | // required uint64 newGenStamp = 1; |
14191 | case 1: { |
14192 | if (static_cast< ::google::protobuf::uint8>(tag) == |
14193 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
14194 | set_has_newgenstamp(); |
14195 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
14196 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
14197 | input, &newgenstamp_))); |
14198 | } else { |
14199 | goto handle_unusual; |
14200 | } |
14201 | break; |
14202 | } |
14203 | |
14204 | // required .Hdfs.Internal.LocatedBlockProto block = 2; |
14205 | case 2: { |
14206 | if (static_cast< ::google::protobuf::uint8>(tag) == |
14207 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
14208 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
14209 | input, mutable_block())); |
14210 | } else { |
14211 | goto handle_unusual; |
14212 | } |
14213 | break; |
14214 | } |
14215 | |
14216 | default: { |
14217 | handle_unusual: |
14218 | if (tag == 0) { |
14219 | goto success; |
14220 | } |
14221 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
14222 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
14223 | break; |
14224 | } |
14225 | } |
14226 | } |
14227 | success: |
14228 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.RecoveringBlockProto) |
14229 | return true; |
14230 | failure: |
14231 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.RecoveringBlockProto) |
14232 | return false; |
14233 | #undef DO_ |
14234 | } |
14235 | |
14236 | void RecoveringBlockProto::SerializeWithCachedSizes( |
14237 | ::google::protobuf::io::CodedOutputStream* output) const { |
14238 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.RecoveringBlockProto) |
14239 | ::google::protobuf::uint32 cached_has_bits = 0; |
14240 | (void) cached_has_bits; |
14241 | |
14242 | cached_has_bits = _has_bits_[0]; |
14243 | // required uint64 newGenStamp = 1; |
14244 | if (cached_has_bits & 0x00000002u) { |
14245 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->newgenstamp(), output); |
14246 | } |
14247 | |
14248 | // required .Hdfs.Internal.LocatedBlockProto block = 2; |
14249 | if (cached_has_bits & 0x00000001u) { |
14250 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
14251 | 2, this->_internal_block(), output); |
14252 | } |
14253 | |
14254 | if (_internal_metadata_.have_unknown_fields()) { |
14255 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
14256 | _internal_metadata_.unknown_fields(), output); |
14257 | } |
14258 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.RecoveringBlockProto) |
14259 | } |
14260 | |
14261 | ::google::protobuf::uint8* RecoveringBlockProto::InternalSerializeWithCachedSizesToArray( |
14262 | bool deterministic, ::google::protobuf::uint8* target) const { |
14263 | (void)deterministic; // Unused |
14264 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.RecoveringBlockProto) |
14265 | ::google::protobuf::uint32 cached_has_bits = 0; |
14266 | (void) cached_has_bits; |
14267 | |
14268 | cached_has_bits = _has_bits_[0]; |
14269 | // required uint64 newGenStamp = 1; |
14270 | if (cached_has_bits & 0x00000002u) { |
14271 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->newgenstamp(), target); |
14272 | } |
14273 | |
14274 | // required .Hdfs.Internal.LocatedBlockProto block = 2; |
14275 | if (cached_has_bits & 0x00000001u) { |
14276 | target = ::google::protobuf::internal::WireFormatLite:: |
14277 | InternalWriteMessageToArray( |
14278 | 2, this->_internal_block(), deterministic, target); |
14279 | } |
14280 | |
14281 | if (_internal_metadata_.have_unknown_fields()) { |
14282 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
14283 | _internal_metadata_.unknown_fields(), target); |
14284 | } |
14285 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.RecoveringBlockProto) |
14286 | return target; |
14287 | } |
14288 | |
14289 | size_t RecoveringBlockProto::RequiredFieldsByteSizeFallback() const { |
14290 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.RecoveringBlockProto) |
14291 | size_t total_size = 0; |
14292 | |
14293 | if (has_block()) { |
14294 | // required .Hdfs.Internal.LocatedBlockProto block = 2; |
14295 | total_size += 1 + |
14296 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
14297 | *block_); |
14298 | } |
14299 | |
14300 | if (has_newgenstamp()) { |
14301 | // required uint64 newGenStamp = 1; |
14302 | total_size += 1 + |
14303 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
14304 | this->newgenstamp()); |
14305 | } |
14306 | |
14307 | return total_size; |
14308 | } |
14309 | size_t RecoveringBlockProto::ByteSizeLong() const { |
14310 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.RecoveringBlockProto) |
14311 | size_t total_size = 0; |
14312 | |
14313 | if (_internal_metadata_.have_unknown_fields()) { |
14314 | total_size += |
14315 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
14316 | _internal_metadata_.unknown_fields()); |
14317 | } |
14318 | if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
14319 | // required .Hdfs.Internal.LocatedBlockProto block = 2; |
14320 | total_size += 1 + |
14321 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
14322 | *block_); |
14323 | |
14324 | // required uint64 newGenStamp = 1; |
14325 | total_size += 1 + |
14326 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
14327 | this->newgenstamp()); |
14328 | |
14329 | } else { |
14330 | total_size += RequiredFieldsByteSizeFallback(); |
14331 | } |
14332 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
14333 | SetCachedSize(cached_size); |
14334 | return total_size; |
14335 | } |
14336 | |
14337 | void RecoveringBlockProto::MergeFrom(const ::google::protobuf::Message& from) { |
14338 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.RecoveringBlockProto) |
14339 | GOOGLE_DCHECK_NE(&from, this); |
14340 | const RecoveringBlockProto* source = |
14341 | ::google::protobuf::internal::DynamicCastToGenerated<const RecoveringBlockProto>( |
14342 | &from); |
14343 | if (source == NULL) { |
14344 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.RecoveringBlockProto) |
14345 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
14346 | } else { |
14347 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.RecoveringBlockProto) |
14348 | MergeFrom(*source); |
14349 | } |
14350 | } |
14351 | |
14352 | void RecoveringBlockProto::MergeFrom(const RecoveringBlockProto& from) { |
14353 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.RecoveringBlockProto) |
14354 | GOOGLE_DCHECK_NE(&from, this); |
14355 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
14356 | ::google::protobuf::uint32 cached_has_bits = 0; |
14357 | (void) cached_has_bits; |
14358 | |
14359 | cached_has_bits = from._has_bits_[0]; |
14360 | if (cached_has_bits & 3u) { |
14361 | if (cached_has_bits & 0x00000001u) { |
14362 | mutable_block()->::Hdfs::Internal::LocatedBlockProto::MergeFrom(from.block()); |
14363 | } |
14364 | if (cached_has_bits & 0x00000002u) { |
14365 | newgenstamp_ = from.newgenstamp_; |
14366 | } |
14367 | _has_bits_[0] |= cached_has_bits; |
14368 | } |
14369 | } |
14370 | |
14371 | void RecoveringBlockProto::CopyFrom(const ::google::protobuf::Message& from) { |
14372 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.RecoveringBlockProto) |
14373 | if (&from == this) return; |
14374 | Clear(); |
14375 | MergeFrom(from); |
14376 | } |
14377 | |
14378 | void RecoveringBlockProto::CopyFrom(const RecoveringBlockProto& from) { |
14379 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.RecoveringBlockProto) |
14380 | if (&from == this) return; |
14381 | Clear(); |
14382 | MergeFrom(from); |
14383 | } |
14384 | |
14385 | bool RecoveringBlockProto::IsInitialized() const { |
14386 | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
14387 | if (has_block()) { |
14388 | if (!this->block_->IsInitialized()) return false; |
14389 | } |
14390 | return true; |
14391 | } |
14392 | |
14393 | void RecoveringBlockProto::Swap(RecoveringBlockProto* other) { |
14394 | if (other == this) return; |
14395 | InternalSwap(other); |
14396 | } |
14397 | void RecoveringBlockProto::InternalSwap(RecoveringBlockProto* other) { |
14398 | using std::swap; |
14399 | swap(block_, other->block_); |
14400 | swap(newgenstamp_, other->newgenstamp_); |
14401 | swap(_has_bits_[0], other->_has_bits_[0]); |
14402 | _internal_metadata_.Swap(&other->_internal_metadata_); |
14403 | } |
14404 | |
14405 | ::google::protobuf::Metadata RecoveringBlockProto::GetMetadata() const { |
14406 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
14407 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
14408 | } |
14409 | |
14410 | |
14411 | // =================================================================== |
14412 | |
14413 | void VersionRequestProto::InitAsDefaultInstance() { |
14414 | } |
14415 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
14416 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
14417 | |
14418 | VersionRequestProto::VersionRequestProto() |
14419 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
14420 | ::google::protobuf::internal::InitSCC( |
14421 | &protobuf_hdfs_2eproto::scc_info_VersionRequestProto.base); |
14422 | SharedCtor(); |
14423 | // @@protoc_insertion_point(constructor:Hdfs.Internal.VersionRequestProto) |
14424 | } |
14425 | VersionRequestProto::VersionRequestProto(const VersionRequestProto& from) |
14426 | : ::google::protobuf::Message(), |
14427 | _internal_metadata_(NULL), |
14428 | _has_bits_(from._has_bits_) { |
14429 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
14430 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.VersionRequestProto) |
14431 | } |
14432 | |
14433 | void VersionRequestProto::SharedCtor() { |
14434 | } |
14435 | |
14436 | VersionRequestProto::~VersionRequestProto() { |
14437 | // @@protoc_insertion_point(destructor:Hdfs.Internal.VersionRequestProto) |
14438 | SharedDtor(); |
14439 | } |
14440 | |
14441 | void VersionRequestProto::SharedDtor() { |
14442 | } |
14443 | |
14444 | void VersionRequestProto::SetCachedSize(int size) const { |
14445 | _cached_size_.Set(size); |
14446 | } |
14447 | const ::google::protobuf::Descriptor* VersionRequestProto::descriptor() { |
14448 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
14449 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
14450 | } |
14451 | |
14452 | const VersionRequestProto& VersionRequestProto::default_instance() { |
14453 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_VersionRequestProto.base); |
14454 | return *internal_default_instance(); |
14455 | } |
14456 | |
14457 | |
14458 | void VersionRequestProto::Clear() { |
14459 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.VersionRequestProto) |
14460 | ::google::protobuf::uint32 cached_has_bits = 0; |
14461 | // Prevent compiler warnings about cached_has_bits being unused |
14462 | (void) cached_has_bits; |
14463 | |
14464 | _has_bits_.Clear(); |
14465 | _internal_metadata_.Clear(); |
14466 | } |
14467 | |
14468 | bool VersionRequestProto::MergePartialFromCodedStream( |
14469 | ::google::protobuf::io::CodedInputStream* input) { |
14470 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
14471 | ::google::protobuf::uint32 tag; |
14472 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.VersionRequestProto) |
14473 | for (;;) { |
14474 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
14475 | tag = p.first; |
14476 | if (!p.second) goto handle_unusual; |
14477 | handle_unusual: |
14478 | if (tag == 0) { |
14479 | goto success; |
14480 | } |
14481 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
14482 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
14483 | } |
14484 | success: |
14485 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.VersionRequestProto) |
14486 | return true; |
14487 | failure: |
14488 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.VersionRequestProto) |
14489 | return false; |
14490 | #undef DO_ |
14491 | } |
14492 | |
14493 | void VersionRequestProto::SerializeWithCachedSizes( |
14494 | ::google::protobuf::io::CodedOutputStream* output) const { |
14495 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.VersionRequestProto) |
14496 | ::google::protobuf::uint32 cached_has_bits = 0; |
14497 | (void) cached_has_bits; |
14498 | |
14499 | if (_internal_metadata_.have_unknown_fields()) { |
14500 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
14501 | _internal_metadata_.unknown_fields(), output); |
14502 | } |
14503 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.VersionRequestProto) |
14504 | } |
14505 | |
14506 | ::google::protobuf::uint8* VersionRequestProto::InternalSerializeWithCachedSizesToArray( |
14507 | bool deterministic, ::google::protobuf::uint8* target) const { |
14508 | (void)deterministic; // Unused |
14509 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.VersionRequestProto) |
14510 | ::google::protobuf::uint32 cached_has_bits = 0; |
14511 | (void) cached_has_bits; |
14512 | |
14513 | if (_internal_metadata_.have_unknown_fields()) { |
14514 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
14515 | _internal_metadata_.unknown_fields(), target); |
14516 | } |
14517 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.VersionRequestProto) |
14518 | return target; |
14519 | } |
14520 | |
14521 | size_t VersionRequestProto::ByteSizeLong() const { |
14522 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.VersionRequestProto) |
14523 | size_t total_size = 0; |
14524 | |
14525 | if (_internal_metadata_.have_unknown_fields()) { |
14526 | total_size += |
14527 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
14528 | _internal_metadata_.unknown_fields()); |
14529 | } |
14530 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
14531 | SetCachedSize(cached_size); |
14532 | return total_size; |
14533 | } |
14534 | |
14535 | void VersionRequestProto::MergeFrom(const ::google::protobuf::Message& from) { |
14536 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.VersionRequestProto) |
14537 | GOOGLE_DCHECK_NE(&from, this); |
14538 | const VersionRequestProto* source = |
14539 | ::google::protobuf::internal::DynamicCastToGenerated<const VersionRequestProto>( |
14540 | &from); |
14541 | if (source == NULL) { |
14542 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.VersionRequestProto) |
14543 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
14544 | } else { |
14545 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.VersionRequestProto) |
14546 | MergeFrom(*source); |
14547 | } |
14548 | } |
14549 | |
14550 | void VersionRequestProto::MergeFrom(const VersionRequestProto& from) { |
14551 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.VersionRequestProto) |
14552 | GOOGLE_DCHECK_NE(&from, this); |
14553 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
14554 | ::google::protobuf::uint32 cached_has_bits = 0; |
14555 | (void) cached_has_bits; |
14556 | |
14557 | } |
14558 | |
14559 | void VersionRequestProto::CopyFrom(const ::google::protobuf::Message& from) { |
14560 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.VersionRequestProto) |
14561 | if (&from == this) return; |
14562 | Clear(); |
14563 | MergeFrom(from); |
14564 | } |
14565 | |
14566 | void VersionRequestProto::CopyFrom(const VersionRequestProto& from) { |
14567 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.VersionRequestProto) |
14568 | if (&from == this) return; |
14569 | Clear(); |
14570 | MergeFrom(from); |
14571 | } |
14572 | |
14573 | bool VersionRequestProto::IsInitialized() const { |
14574 | return true; |
14575 | } |
14576 | |
14577 | void VersionRequestProto::Swap(VersionRequestProto* other) { |
14578 | if (other == this) return; |
14579 | InternalSwap(other); |
14580 | } |
14581 | void VersionRequestProto::InternalSwap(VersionRequestProto* other) { |
14582 | using std::swap; |
14583 | swap(_has_bits_[0], other->_has_bits_[0]); |
14584 | _internal_metadata_.Swap(&other->_internal_metadata_); |
14585 | } |
14586 | |
14587 | ::google::protobuf::Metadata VersionRequestProto::GetMetadata() const { |
14588 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
14589 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
14590 | } |
14591 | |
14592 | |
14593 | // =================================================================== |
14594 | |
14595 | void VersionResponseProto::InitAsDefaultInstance() { |
14596 | ::Hdfs::Internal::_VersionResponseProto_default_instance_._instance.get_mutable()->info_ = const_cast< ::Hdfs::Internal::NamespaceInfoProto*>( |
14597 | ::Hdfs::Internal::NamespaceInfoProto::internal_default_instance()); |
14598 | } |
14599 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
14600 | const int VersionResponseProto::kInfoFieldNumber; |
14601 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
14602 | |
14603 | VersionResponseProto::VersionResponseProto() |
14604 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
14605 | ::google::protobuf::internal::InitSCC( |
14606 | &protobuf_hdfs_2eproto::scc_info_VersionResponseProto.base); |
14607 | SharedCtor(); |
14608 | // @@protoc_insertion_point(constructor:Hdfs.Internal.VersionResponseProto) |
14609 | } |
14610 | VersionResponseProto::VersionResponseProto(const VersionResponseProto& from) |
14611 | : ::google::protobuf::Message(), |
14612 | _internal_metadata_(NULL), |
14613 | _has_bits_(from._has_bits_) { |
14614 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
14615 | if (from.has_info()) { |
14616 | info_ = new ::Hdfs::Internal::NamespaceInfoProto(*from.info_); |
14617 | } else { |
14618 | info_ = NULL; |
14619 | } |
14620 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.VersionResponseProto) |
14621 | } |
14622 | |
14623 | void VersionResponseProto::SharedCtor() { |
14624 | info_ = NULL; |
14625 | } |
14626 | |
14627 | VersionResponseProto::~VersionResponseProto() { |
14628 | // @@protoc_insertion_point(destructor:Hdfs.Internal.VersionResponseProto) |
14629 | SharedDtor(); |
14630 | } |
14631 | |
14632 | void VersionResponseProto::SharedDtor() { |
14633 | if (this != internal_default_instance()) delete info_; |
14634 | } |
14635 | |
14636 | void VersionResponseProto::SetCachedSize(int size) const { |
14637 | _cached_size_.Set(size); |
14638 | } |
14639 | const ::google::protobuf::Descriptor* VersionResponseProto::descriptor() { |
14640 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
14641 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
14642 | } |
14643 | |
14644 | const VersionResponseProto& VersionResponseProto::default_instance() { |
14645 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_VersionResponseProto.base); |
14646 | return *internal_default_instance(); |
14647 | } |
14648 | |
14649 | |
14650 | void VersionResponseProto::Clear() { |
14651 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.VersionResponseProto) |
14652 | ::google::protobuf::uint32 cached_has_bits = 0; |
14653 | // Prevent compiler warnings about cached_has_bits being unused |
14654 | (void) cached_has_bits; |
14655 | |
14656 | cached_has_bits = _has_bits_[0]; |
14657 | if (cached_has_bits & 0x00000001u) { |
14658 | GOOGLE_DCHECK(info_ != NULL); |
14659 | info_->Clear(); |
14660 | } |
14661 | _has_bits_.Clear(); |
14662 | _internal_metadata_.Clear(); |
14663 | } |
14664 | |
14665 | bool VersionResponseProto::MergePartialFromCodedStream( |
14666 | ::google::protobuf::io::CodedInputStream* input) { |
14667 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
14668 | ::google::protobuf::uint32 tag; |
14669 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.VersionResponseProto) |
14670 | for (;;) { |
14671 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
14672 | tag = p.first; |
14673 | if (!p.second) goto handle_unusual; |
14674 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
14675 | // required .Hdfs.Internal.NamespaceInfoProto info = 1; |
14676 | case 1: { |
14677 | if (static_cast< ::google::protobuf::uint8>(tag) == |
14678 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
14679 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
14680 | input, mutable_info())); |
14681 | } else { |
14682 | goto handle_unusual; |
14683 | } |
14684 | break; |
14685 | } |
14686 | |
14687 | default: { |
14688 | handle_unusual: |
14689 | if (tag == 0) { |
14690 | goto success; |
14691 | } |
14692 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
14693 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
14694 | break; |
14695 | } |
14696 | } |
14697 | } |
14698 | success: |
14699 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.VersionResponseProto) |
14700 | return true; |
14701 | failure: |
14702 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.VersionResponseProto) |
14703 | return false; |
14704 | #undef DO_ |
14705 | } |
14706 | |
14707 | void VersionResponseProto::SerializeWithCachedSizes( |
14708 | ::google::protobuf::io::CodedOutputStream* output) const { |
14709 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.VersionResponseProto) |
14710 | ::google::protobuf::uint32 cached_has_bits = 0; |
14711 | (void) cached_has_bits; |
14712 | |
14713 | cached_has_bits = _has_bits_[0]; |
14714 | // required .Hdfs.Internal.NamespaceInfoProto info = 1; |
14715 | if (cached_has_bits & 0x00000001u) { |
14716 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
14717 | 1, this->_internal_info(), output); |
14718 | } |
14719 | |
14720 | if (_internal_metadata_.have_unknown_fields()) { |
14721 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
14722 | _internal_metadata_.unknown_fields(), output); |
14723 | } |
14724 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.VersionResponseProto) |
14725 | } |
14726 | |
14727 | ::google::protobuf::uint8* VersionResponseProto::InternalSerializeWithCachedSizesToArray( |
14728 | bool deterministic, ::google::protobuf::uint8* target) const { |
14729 | (void)deterministic; // Unused |
14730 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.VersionResponseProto) |
14731 | ::google::protobuf::uint32 cached_has_bits = 0; |
14732 | (void) cached_has_bits; |
14733 | |
14734 | cached_has_bits = _has_bits_[0]; |
14735 | // required .Hdfs.Internal.NamespaceInfoProto info = 1; |
14736 | if (cached_has_bits & 0x00000001u) { |
14737 | target = ::google::protobuf::internal::WireFormatLite:: |
14738 | InternalWriteMessageToArray( |
14739 | 1, this->_internal_info(), deterministic, target); |
14740 | } |
14741 | |
14742 | if (_internal_metadata_.have_unknown_fields()) { |
14743 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
14744 | _internal_metadata_.unknown_fields(), target); |
14745 | } |
14746 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.VersionResponseProto) |
14747 | return target; |
14748 | } |
14749 | |
14750 | size_t VersionResponseProto::ByteSizeLong() const { |
14751 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.VersionResponseProto) |
14752 | size_t total_size = 0; |
14753 | |
14754 | if (_internal_metadata_.have_unknown_fields()) { |
14755 | total_size += |
14756 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
14757 | _internal_metadata_.unknown_fields()); |
14758 | } |
14759 | // required .Hdfs.Internal.NamespaceInfoProto info = 1; |
14760 | if (has_info()) { |
14761 | total_size += 1 + |
14762 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
14763 | *info_); |
14764 | } |
14765 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
14766 | SetCachedSize(cached_size); |
14767 | return total_size; |
14768 | } |
14769 | |
14770 | void VersionResponseProto::MergeFrom(const ::google::protobuf::Message& from) { |
14771 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.VersionResponseProto) |
14772 | GOOGLE_DCHECK_NE(&from, this); |
14773 | const VersionResponseProto* source = |
14774 | ::google::protobuf::internal::DynamicCastToGenerated<const VersionResponseProto>( |
14775 | &from); |
14776 | if (source == NULL) { |
14777 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.VersionResponseProto) |
14778 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
14779 | } else { |
14780 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.VersionResponseProto) |
14781 | MergeFrom(*source); |
14782 | } |
14783 | } |
14784 | |
14785 | void VersionResponseProto::MergeFrom(const VersionResponseProto& from) { |
14786 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.VersionResponseProto) |
14787 | GOOGLE_DCHECK_NE(&from, this); |
14788 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
14789 | ::google::protobuf::uint32 cached_has_bits = 0; |
14790 | (void) cached_has_bits; |
14791 | |
14792 | if (from.has_info()) { |
14793 | mutable_info()->::Hdfs::Internal::NamespaceInfoProto::MergeFrom(from.info()); |
14794 | } |
14795 | } |
14796 | |
14797 | void VersionResponseProto::CopyFrom(const ::google::protobuf::Message& from) { |
14798 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.VersionResponseProto) |
14799 | if (&from == this) return; |
14800 | Clear(); |
14801 | MergeFrom(from); |
14802 | } |
14803 | |
14804 | void VersionResponseProto::CopyFrom(const VersionResponseProto& from) { |
14805 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.VersionResponseProto) |
14806 | if (&from == this) return; |
14807 | Clear(); |
14808 | MergeFrom(from); |
14809 | } |
14810 | |
14811 | bool VersionResponseProto::IsInitialized() const { |
14812 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
14813 | if (has_info()) { |
14814 | if (!this->info_->IsInitialized()) return false; |
14815 | } |
14816 | return true; |
14817 | } |
14818 | |
14819 | void VersionResponseProto::Swap(VersionResponseProto* other) { |
14820 | if (other == this) return; |
14821 | InternalSwap(other); |
14822 | } |
14823 | void VersionResponseProto::InternalSwap(VersionResponseProto* other) { |
14824 | using std::swap; |
14825 | swap(info_, other->info_); |
14826 | swap(_has_bits_[0], other->_has_bits_[0]); |
14827 | _internal_metadata_.Swap(&other->_internal_metadata_); |
14828 | } |
14829 | |
14830 | ::google::protobuf::Metadata VersionResponseProto::GetMetadata() const { |
14831 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
14832 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
14833 | } |
14834 | |
14835 | |
14836 | // =================================================================== |
14837 | |
14838 | void SnapshotInfoProto::InitAsDefaultInstance() { |
14839 | ::Hdfs::Internal::_SnapshotInfoProto_default_instance_._instance.get_mutable()->permission_ = const_cast< ::Hdfs::Internal::FsPermissionProto*>( |
14840 | ::Hdfs::Internal::FsPermissionProto::internal_default_instance()); |
14841 | } |
14842 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
14843 | const int SnapshotInfoProto::kSnapshotNameFieldNumber; |
14844 | const int SnapshotInfoProto::kSnapshotRootFieldNumber; |
14845 | const int SnapshotInfoProto::kPermissionFieldNumber; |
14846 | const int SnapshotInfoProto::kOwnerFieldNumber; |
14847 | const int SnapshotInfoProto::kGroupFieldNumber; |
14848 | const int SnapshotInfoProto::kCreateTimeFieldNumber; |
14849 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
14850 | |
14851 | SnapshotInfoProto::SnapshotInfoProto() |
14852 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
14853 | ::google::protobuf::internal::InitSCC( |
14854 | &protobuf_hdfs_2eproto::scc_info_SnapshotInfoProto.base); |
14855 | SharedCtor(); |
14856 | // @@protoc_insertion_point(constructor:Hdfs.Internal.SnapshotInfoProto) |
14857 | } |
14858 | SnapshotInfoProto::SnapshotInfoProto(const SnapshotInfoProto& from) |
14859 | : ::google::protobuf::Message(), |
14860 | _internal_metadata_(NULL), |
14861 | _has_bits_(from._has_bits_) { |
14862 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
14863 | snapshotname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
14864 | if (from.has_snapshotname()) { |
14865 | snapshotname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshotname_); |
14866 | } |
14867 | snapshotroot_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
14868 | if (from.has_snapshotroot()) { |
14869 | snapshotroot_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshotroot_); |
14870 | } |
14871 | owner_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
14872 | if (from.has_owner()) { |
14873 | owner_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_); |
14874 | } |
14875 | group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
14876 | if (from.has_group()) { |
14877 | group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.group_); |
14878 | } |
14879 | createtime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
14880 | if (from.has_createtime()) { |
14881 | createtime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.createtime_); |
14882 | } |
14883 | if (from.has_permission()) { |
14884 | permission_ = new ::Hdfs::Internal::FsPermissionProto(*from.permission_); |
14885 | } else { |
14886 | permission_ = NULL; |
14887 | } |
14888 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.SnapshotInfoProto) |
14889 | } |
14890 | |
14891 | void SnapshotInfoProto::SharedCtor() { |
14892 | snapshotname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
14893 | snapshotroot_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
14894 | owner_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
14895 | group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
14896 | createtime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
14897 | permission_ = NULL; |
14898 | } |
14899 | |
14900 | SnapshotInfoProto::~SnapshotInfoProto() { |
14901 | // @@protoc_insertion_point(destructor:Hdfs.Internal.SnapshotInfoProto) |
14902 | SharedDtor(); |
14903 | } |
14904 | |
14905 | void SnapshotInfoProto::SharedDtor() { |
14906 | snapshotname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
14907 | snapshotroot_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
14908 | owner_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
14909 | group_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
14910 | createtime_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
14911 | if (this != internal_default_instance()) delete permission_; |
14912 | } |
14913 | |
14914 | void SnapshotInfoProto::SetCachedSize(int size) const { |
14915 | _cached_size_.Set(size); |
14916 | } |
14917 | const ::google::protobuf::Descriptor* SnapshotInfoProto::descriptor() { |
14918 | ::protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
14919 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
14920 | } |
14921 | |
14922 | const SnapshotInfoProto& SnapshotInfoProto::default_instance() { |
14923 | ::google::protobuf::internal::InitSCC(&protobuf_hdfs_2eproto::scc_info_SnapshotInfoProto.base); |
14924 | return *internal_default_instance(); |
14925 | } |
14926 | |
14927 | |
14928 | void SnapshotInfoProto::Clear() { |
14929 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.SnapshotInfoProto) |
14930 | ::google::protobuf::uint32 cached_has_bits = 0; |
14931 | // Prevent compiler warnings about cached_has_bits being unused |
14932 | (void) cached_has_bits; |
14933 | |
14934 | cached_has_bits = _has_bits_[0]; |
14935 | if (cached_has_bits & 63u) { |
14936 | if (cached_has_bits & 0x00000001u) { |
14937 | snapshotname_.ClearNonDefaultToEmptyNoArena(); |
14938 | } |
14939 | if (cached_has_bits & 0x00000002u) { |
14940 | snapshotroot_.ClearNonDefaultToEmptyNoArena(); |
14941 | } |
14942 | if (cached_has_bits & 0x00000004u) { |
14943 | owner_.ClearNonDefaultToEmptyNoArena(); |
14944 | } |
14945 | if (cached_has_bits & 0x00000008u) { |
14946 | group_.ClearNonDefaultToEmptyNoArena(); |
14947 | } |
14948 | if (cached_has_bits & 0x00000010u) { |
14949 | createtime_.ClearNonDefaultToEmptyNoArena(); |
14950 | } |
14951 | if (cached_has_bits & 0x00000020u) { |
14952 | GOOGLE_DCHECK(permission_ != NULL); |
14953 | permission_->Clear(); |
14954 | } |
14955 | } |
14956 | _has_bits_.Clear(); |
14957 | _internal_metadata_.Clear(); |
14958 | } |
14959 | |
14960 | bool SnapshotInfoProto::MergePartialFromCodedStream( |
14961 | ::google::protobuf::io::CodedInputStream* input) { |
14962 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
14963 | ::google::protobuf::uint32 tag; |
14964 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.SnapshotInfoProto) |
14965 | for (;;) { |
14966 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
14967 | tag = p.first; |
14968 | if (!p.second) goto handle_unusual; |
14969 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
14970 | // required string snapshotName = 1; |
14971 | case 1: { |
14972 | if (static_cast< ::google::protobuf::uint8>(tag) == |
14973 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
14974 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
14975 | input, this->mutable_snapshotname())); |
14976 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
14977 | this->snapshotname().data(), static_cast<int>(this->snapshotname().length()), |
14978 | ::google::protobuf::internal::WireFormat::PARSE, |
14979 | "Hdfs.Internal.SnapshotInfoProto.snapshotName" ); |
14980 | } else { |
14981 | goto handle_unusual; |
14982 | } |
14983 | break; |
14984 | } |
14985 | |
14986 | // required string snapshotRoot = 2; |
14987 | case 2: { |
14988 | if (static_cast< ::google::protobuf::uint8>(tag) == |
14989 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
14990 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
14991 | input, this->mutable_snapshotroot())); |
14992 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
14993 | this->snapshotroot().data(), static_cast<int>(this->snapshotroot().length()), |
14994 | ::google::protobuf::internal::WireFormat::PARSE, |
14995 | "Hdfs.Internal.SnapshotInfoProto.snapshotRoot" ); |
14996 | } else { |
14997 | goto handle_unusual; |
14998 | } |
14999 | break; |
15000 | } |
15001 | |
15002 | // required .Hdfs.Internal.FsPermissionProto permission = 3; |
15003 | case 3: { |
15004 | if (static_cast< ::google::protobuf::uint8>(tag) == |
15005 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
15006 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
15007 | input, mutable_permission())); |
15008 | } else { |
15009 | goto handle_unusual; |
15010 | } |
15011 | break; |
15012 | } |
15013 | |
15014 | // required string owner = 4; |
15015 | case 4: { |
15016 | if (static_cast< ::google::protobuf::uint8>(tag) == |
15017 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
15018 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
15019 | input, this->mutable_owner())); |
15020 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
15021 | this->owner().data(), static_cast<int>(this->owner().length()), |
15022 | ::google::protobuf::internal::WireFormat::PARSE, |
15023 | "Hdfs.Internal.SnapshotInfoProto.owner" ); |
15024 | } else { |
15025 | goto handle_unusual; |
15026 | } |
15027 | break; |
15028 | } |
15029 | |
15030 | // required string group = 5; |
15031 | case 5: { |
15032 | if (static_cast< ::google::protobuf::uint8>(tag) == |
15033 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
15034 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
15035 | input, this->mutable_group())); |
15036 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
15037 | this->group().data(), static_cast<int>(this->group().length()), |
15038 | ::google::protobuf::internal::WireFormat::PARSE, |
15039 | "Hdfs.Internal.SnapshotInfoProto.group" ); |
15040 | } else { |
15041 | goto handle_unusual; |
15042 | } |
15043 | break; |
15044 | } |
15045 | |
15046 | // required string createTime = 6; |
15047 | case 6: { |
15048 | if (static_cast< ::google::protobuf::uint8>(tag) == |
15049 | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
15050 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
15051 | input, this->mutable_createtime())); |
15052 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
15053 | this->createtime().data(), static_cast<int>(this->createtime().length()), |
15054 | ::google::protobuf::internal::WireFormat::PARSE, |
15055 | "Hdfs.Internal.SnapshotInfoProto.createTime" ); |
15056 | } else { |
15057 | goto handle_unusual; |
15058 | } |
15059 | break; |
15060 | } |
15061 | |
15062 | default: { |
15063 | handle_unusual: |
15064 | if (tag == 0) { |
15065 | goto success; |
15066 | } |
15067 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
15068 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
15069 | break; |
15070 | } |
15071 | } |
15072 | } |
15073 | success: |
15074 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.SnapshotInfoProto) |
15075 | return true; |
15076 | failure: |
15077 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.SnapshotInfoProto) |
15078 | return false; |
15079 | #undef DO_ |
15080 | } |
15081 | |
15082 | void SnapshotInfoProto::SerializeWithCachedSizes( |
15083 | ::google::protobuf::io::CodedOutputStream* output) const { |
15084 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.SnapshotInfoProto) |
15085 | ::google::protobuf::uint32 cached_has_bits = 0; |
15086 | (void) cached_has_bits; |
15087 | |
15088 | cached_has_bits = _has_bits_[0]; |
15089 | // required string snapshotName = 1; |
15090 | if (cached_has_bits & 0x00000001u) { |
15091 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
15092 | this->snapshotname().data(), static_cast<int>(this->snapshotname().length()), |
15093 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
15094 | "Hdfs.Internal.SnapshotInfoProto.snapshotName" ); |
15095 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
15096 | 1, this->snapshotname(), output); |
15097 | } |
15098 | |
15099 | // required string snapshotRoot = 2; |
15100 | if (cached_has_bits & 0x00000002u) { |
15101 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
15102 | this->snapshotroot().data(), static_cast<int>(this->snapshotroot().length()), |
15103 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
15104 | "Hdfs.Internal.SnapshotInfoProto.snapshotRoot" ); |
15105 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
15106 | 2, this->snapshotroot(), output); |
15107 | } |
15108 | |
15109 | // required .Hdfs.Internal.FsPermissionProto permission = 3; |
15110 | if (cached_has_bits & 0x00000020u) { |
15111 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
15112 | 3, this->_internal_permission(), output); |
15113 | } |
15114 | |
15115 | // required string owner = 4; |
15116 | if (cached_has_bits & 0x00000004u) { |
15117 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
15118 | this->owner().data(), static_cast<int>(this->owner().length()), |
15119 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
15120 | "Hdfs.Internal.SnapshotInfoProto.owner" ); |
15121 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
15122 | 4, this->owner(), output); |
15123 | } |
15124 | |
15125 | // required string group = 5; |
15126 | if (cached_has_bits & 0x00000008u) { |
15127 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
15128 | this->group().data(), static_cast<int>(this->group().length()), |
15129 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
15130 | "Hdfs.Internal.SnapshotInfoProto.group" ); |
15131 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
15132 | 5, this->group(), output); |
15133 | } |
15134 | |
15135 | // required string createTime = 6; |
15136 | if (cached_has_bits & 0x00000010u) { |
15137 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
15138 | this->createtime().data(), static_cast<int>(this->createtime().length()), |
15139 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
15140 | "Hdfs.Internal.SnapshotInfoProto.createTime" ); |
15141 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
15142 | 6, this->createtime(), output); |
15143 | } |
15144 | |
15145 | if (_internal_metadata_.have_unknown_fields()) { |
15146 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
15147 | _internal_metadata_.unknown_fields(), output); |
15148 | } |
15149 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.SnapshotInfoProto) |
15150 | } |
15151 | |
15152 | ::google::protobuf::uint8* SnapshotInfoProto::InternalSerializeWithCachedSizesToArray( |
15153 | bool deterministic, ::google::protobuf::uint8* target) const { |
15154 | (void)deterministic; // Unused |
15155 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.SnapshotInfoProto) |
15156 | ::google::protobuf::uint32 cached_has_bits = 0; |
15157 | (void) cached_has_bits; |
15158 | |
15159 | cached_has_bits = _has_bits_[0]; |
15160 | // required string snapshotName = 1; |
15161 | if (cached_has_bits & 0x00000001u) { |
15162 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
15163 | this->snapshotname().data(), static_cast<int>(this->snapshotname().length()), |
15164 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
15165 | "Hdfs.Internal.SnapshotInfoProto.snapshotName" ); |
15166 | target = |
15167 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
15168 | 1, this->snapshotname(), target); |
15169 | } |
15170 | |
15171 | // required string snapshotRoot = 2; |
15172 | if (cached_has_bits & 0x00000002u) { |
15173 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
15174 | this->snapshotroot().data(), static_cast<int>(this->snapshotroot().length()), |
15175 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
15176 | "Hdfs.Internal.SnapshotInfoProto.snapshotRoot" ); |
15177 | target = |
15178 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
15179 | 2, this->snapshotroot(), target); |
15180 | } |
15181 | |
15182 | // required .Hdfs.Internal.FsPermissionProto permission = 3; |
15183 | if (cached_has_bits & 0x00000020u) { |
15184 | target = ::google::protobuf::internal::WireFormatLite:: |
15185 | InternalWriteMessageToArray( |
15186 | 3, this->_internal_permission(), deterministic, target); |
15187 | } |
15188 | |
15189 | // required string owner = 4; |
15190 | if (cached_has_bits & 0x00000004u) { |
15191 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
15192 | this->owner().data(), static_cast<int>(this->owner().length()), |
15193 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
15194 | "Hdfs.Internal.SnapshotInfoProto.owner" ); |
15195 | target = |
15196 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
15197 | 4, this->owner(), target); |
15198 | } |
15199 | |
15200 | // required string group = 5; |
15201 | if (cached_has_bits & 0x00000008u) { |
15202 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
15203 | this->group().data(), static_cast<int>(this->group().length()), |
15204 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
15205 | "Hdfs.Internal.SnapshotInfoProto.group" ); |
15206 | target = |
15207 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
15208 | 5, this->group(), target); |
15209 | } |
15210 | |
15211 | // required string createTime = 6; |
15212 | if (cached_has_bits & 0x00000010u) { |
15213 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
15214 | this->createtime().data(), static_cast<int>(this->createtime().length()), |
15215 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
15216 | "Hdfs.Internal.SnapshotInfoProto.createTime" ); |
15217 | target = |
15218 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
15219 | 6, this->createtime(), target); |
15220 | } |
15221 | |
15222 | if (_internal_metadata_.have_unknown_fields()) { |
15223 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
15224 | _internal_metadata_.unknown_fields(), target); |
15225 | } |
15226 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.SnapshotInfoProto) |
15227 | return target; |
15228 | } |
15229 | |
15230 | size_t SnapshotInfoProto::RequiredFieldsByteSizeFallback() const { |
15231 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.SnapshotInfoProto) |
15232 | size_t total_size = 0; |
15233 | |
15234 | if (has_snapshotname()) { |
15235 | // required string snapshotName = 1; |
15236 | total_size += 1 + |
15237 | ::google::protobuf::internal::WireFormatLite::StringSize( |
15238 | this->snapshotname()); |
15239 | } |
15240 | |
15241 | if (has_snapshotroot()) { |
15242 | // required string snapshotRoot = 2; |
15243 | total_size += 1 + |
15244 | ::google::protobuf::internal::WireFormatLite::StringSize( |
15245 | this->snapshotroot()); |
15246 | } |
15247 | |
15248 | if (has_owner()) { |
15249 | // required string owner = 4; |
15250 | total_size += 1 + |
15251 | ::google::protobuf::internal::WireFormatLite::StringSize( |
15252 | this->owner()); |
15253 | } |
15254 | |
15255 | if (has_group()) { |
15256 | // required string group = 5; |
15257 | total_size += 1 + |
15258 | ::google::protobuf::internal::WireFormatLite::StringSize( |
15259 | this->group()); |
15260 | } |
15261 | |
15262 | if (has_createtime()) { |
15263 | // required string createTime = 6; |
15264 | total_size += 1 + |
15265 | ::google::protobuf::internal::WireFormatLite::StringSize( |
15266 | this->createtime()); |
15267 | } |
15268 | |
15269 | if (has_permission()) { |
15270 | // required .Hdfs.Internal.FsPermissionProto permission = 3; |
15271 | total_size += 1 + |
15272 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
15273 | *permission_); |
15274 | } |
15275 | |
15276 | return total_size; |
15277 | } |
15278 | size_t SnapshotInfoProto::ByteSizeLong() const { |
15279 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.SnapshotInfoProto) |
15280 | size_t total_size = 0; |
15281 | |
15282 | if (_internal_metadata_.have_unknown_fields()) { |
15283 | total_size += |
15284 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
15285 | _internal_metadata_.unknown_fields()); |
15286 | } |
15287 | if (((_has_bits_[0] & 0x0000003f) ^ 0x0000003f) == 0) { // All required fields are present. |
15288 | // required string snapshotName = 1; |
15289 | total_size += 1 + |
15290 | ::google::protobuf::internal::WireFormatLite::StringSize( |
15291 | this->snapshotname()); |
15292 | |
15293 | // required string snapshotRoot = 2; |
15294 | total_size += 1 + |
15295 | ::google::protobuf::internal::WireFormatLite::StringSize( |
15296 | this->snapshotroot()); |
15297 | |
15298 | // required string owner = 4; |
15299 | total_size += 1 + |
15300 | ::google::protobuf::internal::WireFormatLite::StringSize( |
15301 | this->owner()); |
15302 | |
15303 | // required string group = 5; |
15304 | total_size += 1 + |
15305 | ::google::protobuf::internal::WireFormatLite::StringSize( |
15306 | this->group()); |
15307 | |
15308 | // required string createTime = 6; |
15309 | total_size += 1 + |
15310 | ::google::protobuf::internal::WireFormatLite::StringSize( |
15311 | this->createtime()); |
15312 | |
15313 | // required .Hdfs.Internal.FsPermissionProto permission = 3; |
15314 | total_size += 1 + |
15315 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
15316 | *permission_); |
15317 | |
15318 | } else { |
15319 | total_size += RequiredFieldsByteSizeFallback(); |
15320 | } |
15321 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
15322 | SetCachedSize(cached_size); |
15323 | return total_size; |
15324 | } |
15325 | |
15326 | void SnapshotInfoProto::MergeFrom(const ::google::protobuf::Message& from) { |
15327 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.SnapshotInfoProto) |
15328 | GOOGLE_DCHECK_NE(&from, this); |
15329 | const SnapshotInfoProto* source = |
15330 | ::google::protobuf::internal::DynamicCastToGenerated<const SnapshotInfoProto>( |
15331 | &from); |
15332 | if (source == NULL) { |
15333 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.SnapshotInfoProto) |
15334 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
15335 | } else { |
15336 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.SnapshotInfoProto) |
15337 | MergeFrom(*source); |
15338 | } |
15339 | } |
15340 | |
15341 | void SnapshotInfoProto::MergeFrom(const SnapshotInfoProto& from) { |
15342 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.SnapshotInfoProto) |
15343 | GOOGLE_DCHECK_NE(&from, this); |
15344 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
15345 | ::google::protobuf::uint32 cached_has_bits = 0; |
15346 | (void) cached_has_bits; |
15347 | |
15348 | cached_has_bits = from._has_bits_[0]; |
15349 | if (cached_has_bits & 63u) { |
15350 | if (cached_has_bits & 0x00000001u) { |
15351 | set_has_snapshotname(); |
15352 | snapshotname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshotname_); |
15353 | } |
15354 | if (cached_has_bits & 0x00000002u) { |
15355 | set_has_snapshotroot(); |
15356 | snapshotroot_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshotroot_); |
15357 | } |
15358 | if (cached_has_bits & 0x00000004u) { |
15359 | set_has_owner(); |
15360 | owner_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_); |
15361 | } |
15362 | if (cached_has_bits & 0x00000008u) { |
15363 | set_has_group(); |
15364 | group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.group_); |
15365 | } |
15366 | if (cached_has_bits & 0x00000010u) { |
15367 | set_has_createtime(); |
15368 | createtime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.createtime_); |
15369 | } |
15370 | if (cached_has_bits & 0x00000020u) { |
15371 | mutable_permission()->::Hdfs::Internal::FsPermissionProto::MergeFrom(from.permission()); |
15372 | } |
15373 | } |
15374 | } |
15375 | |
15376 | void SnapshotInfoProto::CopyFrom(const ::google::protobuf::Message& from) { |
15377 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.SnapshotInfoProto) |
15378 | if (&from == this) return; |
15379 | Clear(); |
15380 | MergeFrom(from); |
15381 | } |
15382 | |
15383 | void SnapshotInfoProto::CopyFrom(const SnapshotInfoProto& from) { |
15384 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.SnapshotInfoProto) |
15385 | if (&from == this) return; |
15386 | Clear(); |
15387 | MergeFrom(from); |
15388 | } |
15389 | |
15390 | bool SnapshotInfoProto::IsInitialized() const { |
15391 | if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false; |
15392 | if (has_permission()) { |
15393 | if (!this->permission_->IsInitialized()) return false; |
15394 | } |
15395 | return true; |
15396 | } |
15397 | |
15398 | void SnapshotInfoProto::Swap(SnapshotInfoProto* other) { |
15399 | if (other == this) return; |
15400 | InternalSwap(other); |
15401 | } |
15402 | void SnapshotInfoProto::InternalSwap(SnapshotInfoProto* other) { |
15403 | using std::swap; |
15404 | snapshotname_.Swap(&other->snapshotname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
15405 | GetArenaNoVirtual()); |
15406 | snapshotroot_.Swap(&other->snapshotroot_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
15407 | GetArenaNoVirtual()); |
15408 | owner_.Swap(&other->owner_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
15409 | GetArenaNoVirtual()); |
15410 | group_.Swap(&other->group_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
15411 | GetArenaNoVirtual()); |
15412 | createtime_.Swap(&other->createtime_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
15413 | GetArenaNoVirtual()); |
15414 | swap(permission_, other->permission_); |
15415 | swap(_has_bits_[0], other->_has_bits_[0]); |
15416 | _internal_metadata_.Swap(&other->_internal_metadata_); |
15417 | } |
15418 | |
15419 | ::google::protobuf::Metadata SnapshotInfoProto::GetMetadata() const { |
15420 | protobuf_hdfs_2eproto::protobuf_AssignDescriptorsOnce(); |
15421 | return ::protobuf_hdfs_2eproto::file_level_metadata[kIndexInFileMessages]; |
15422 | } |
15423 | |
15424 | |
15425 | // @@protoc_insertion_point(namespace_scope) |
15426 | } // namespace Internal |
15427 | } // namespace Hdfs |
15428 | namespace google { |
15429 | namespace protobuf { |
15430 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::ExtendedBlockProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::ExtendedBlockProto >(Arena* arena) { |
15431 | return Arena::CreateInternal< ::Hdfs::Internal::ExtendedBlockProto >(arena); |
15432 | } |
15433 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::DatanodeIDProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::DatanodeIDProto >(Arena* arena) { |
15434 | return Arena::CreateInternal< ::Hdfs::Internal::DatanodeIDProto >(arena); |
15435 | } |
15436 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::DatanodeInfosProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::DatanodeInfosProto >(Arena* arena) { |
15437 | return Arena::CreateInternal< ::Hdfs::Internal::DatanodeInfosProto >(arena); |
15438 | } |
15439 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::DatanodeInfoProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::DatanodeInfoProto >(Arena* arena) { |
15440 | return Arena::CreateInternal< ::Hdfs::Internal::DatanodeInfoProto >(arena); |
15441 | } |
15442 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::ContentSummaryProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::ContentSummaryProto >(Arena* arena) { |
15443 | return Arena::CreateInternal< ::Hdfs::Internal::ContentSummaryProto >(arena); |
15444 | } |
15445 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::CorruptFileBlocksProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::CorruptFileBlocksProto >(Arena* arena) { |
15446 | return Arena::CreateInternal< ::Hdfs::Internal::CorruptFileBlocksProto >(arena); |
15447 | } |
15448 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::FsPermissionProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::FsPermissionProto >(Arena* arena) { |
15449 | return Arena::CreateInternal< ::Hdfs::Internal::FsPermissionProto >(arena); |
15450 | } |
15451 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::StorageUuidsProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::StorageUuidsProto >(Arena* arena) { |
15452 | return Arena::CreateInternal< ::Hdfs::Internal::StorageUuidsProto >(arena); |
15453 | } |
15454 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::LocatedBlockProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::LocatedBlockProto >(Arena* arena) { |
15455 | return Arena::CreateInternal< ::Hdfs::Internal::LocatedBlockProto >(arena); |
15456 | } |
15457 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::DataEncryptionKeyProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::DataEncryptionKeyProto >(Arena* arena) { |
15458 | return Arena::CreateInternal< ::Hdfs::Internal::DataEncryptionKeyProto >(arena); |
15459 | } |
15460 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::LocatedBlocksProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::LocatedBlocksProto >(Arena* arena) { |
15461 | return Arena::CreateInternal< ::Hdfs::Internal::LocatedBlocksProto >(arena); |
15462 | } |
15463 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::HdfsFileStatusProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::HdfsFileStatusProto >(Arena* arena) { |
15464 | return Arena::CreateInternal< ::Hdfs::Internal::HdfsFileStatusProto >(arena); |
15465 | } |
15466 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::FsServerDefaultsProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::FsServerDefaultsProto >(Arena* arena) { |
15467 | return Arena::CreateInternal< ::Hdfs::Internal::FsServerDefaultsProto >(arena); |
15468 | } |
15469 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::DirectoryListingProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::DirectoryListingProto >(Arena* arena) { |
15470 | return Arena::CreateInternal< ::Hdfs::Internal::DirectoryListingProto >(arena); |
15471 | } |
15472 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::SnapshottableDirectoryStatusProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::SnapshottableDirectoryStatusProto >(Arena* arena) { |
15473 | return Arena::CreateInternal< ::Hdfs::Internal::SnapshottableDirectoryStatusProto >(arena); |
15474 | } |
15475 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::SnapshottableDirectoryListingProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::SnapshottableDirectoryListingProto >(Arena* arena) { |
15476 | return Arena::CreateInternal< ::Hdfs::Internal::SnapshottableDirectoryListingProto >(arena); |
15477 | } |
15478 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::SnapshotDiffReportEntryProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::SnapshotDiffReportEntryProto >(Arena* arena) { |
15479 | return Arena::CreateInternal< ::Hdfs::Internal::SnapshotDiffReportEntryProto >(arena); |
15480 | } |
15481 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::SnapshotDiffReportProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::SnapshotDiffReportProto >(Arena* arena) { |
15482 | return Arena::CreateInternal< ::Hdfs::Internal::SnapshotDiffReportProto >(arena); |
15483 | } |
15484 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::StorageInfoProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::StorageInfoProto >(Arena* arena) { |
15485 | return Arena::CreateInternal< ::Hdfs::Internal::StorageInfoProto >(arena); |
15486 | } |
15487 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::NamenodeRegistrationProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::NamenodeRegistrationProto >(Arena* arena) { |
15488 | return Arena::CreateInternal< ::Hdfs::Internal::NamenodeRegistrationProto >(arena); |
15489 | } |
15490 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::CheckpointSignatureProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::CheckpointSignatureProto >(Arena* arena) { |
15491 | return Arena::CreateInternal< ::Hdfs::Internal::CheckpointSignatureProto >(arena); |
15492 | } |
15493 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::NamenodeCommandProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::NamenodeCommandProto >(Arena* arena) { |
15494 | return Arena::CreateInternal< ::Hdfs::Internal::NamenodeCommandProto >(arena); |
15495 | } |
15496 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::CheckpointCommandProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::CheckpointCommandProto >(Arena* arena) { |
15497 | return Arena::CreateInternal< ::Hdfs::Internal::CheckpointCommandProto >(arena); |
15498 | } |
15499 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::BlockProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::BlockProto >(Arena* arena) { |
15500 | return Arena::CreateInternal< ::Hdfs::Internal::BlockProto >(arena); |
15501 | } |
15502 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::BlockWithLocationsProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::BlockWithLocationsProto >(Arena* arena) { |
15503 | return Arena::CreateInternal< ::Hdfs::Internal::BlockWithLocationsProto >(arena); |
15504 | } |
15505 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::BlocksWithLocationsProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::BlocksWithLocationsProto >(Arena* arena) { |
15506 | return Arena::CreateInternal< ::Hdfs::Internal::BlocksWithLocationsProto >(arena); |
15507 | } |
15508 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::RemoteEditLogProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::RemoteEditLogProto >(Arena* arena) { |
15509 | return Arena::CreateInternal< ::Hdfs::Internal::RemoteEditLogProto >(arena); |
15510 | } |
15511 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::RemoteEditLogManifestProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::RemoteEditLogManifestProto >(Arena* arena) { |
15512 | return Arena::CreateInternal< ::Hdfs::Internal::RemoteEditLogManifestProto >(arena); |
15513 | } |
15514 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::NamespaceInfoProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::NamespaceInfoProto >(Arena* arena) { |
15515 | return Arena::CreateInternal< ::Hdfs::Internal::NamespaceInfoProto >(arena); |
15516 | } |
15517 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::BlockKeyProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::BlockKeyProto >(Arena* arena) { |
15518 | return Arena::CreateInternal< ::Hdfs::Internal::BlockKeyProto >(arena); |
15519 | } |
15520 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::ExportedBlockKeysProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::ExportedBlockKeysProto >(Arena* arena) { |
15521 | return Arena::CreateInternal< ::Hdfs::Internal::ExportedBlockKeysProto >(arena); |
15522 | } |
15523 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::RecoveringBlockProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::RecoveringBlockProto >(Arena* arena) { |
15524 | return Arena::CreateInternal< ::Hdfs::Internal::RecoveringBlockProto >(arena); |
15525 | } |
15526 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::VersionRequestProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::VersionRequestProto >(Arena* arena) { |
15527 | return Arena::CreateInternal< ::Hdfs::Internal::VersionRequestProto >(arena); |
15528 | } |
15529 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::VersionResponseProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::VersionResponseProto >(Arena* arena) { |
15530 | return Arena::CreateInternal< ::Hdfs::Internal::VersionResponseProto >(arena); |
15531 | } |
15532 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::SnapshotInfoProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::SnapshotInfoProto >(Arena* arena) { |
15533 | return Arena::CreateInternal< ::Hdfs::Internal::SnapshotInfoProto >(arena); |
15534 | } |
15535 | } // namespace protobuf |
15536 | } // namespace google |
15537 | |
15538 | // @@protoc_insertion_point(global_scope) |
15539 | |