1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: Security.proto |
3 | |
4 | #include "Security.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 Hdfs { |
26 | namespace Internal { |
27 | class TokenProtoDefaultTypeInternal { |
28 | public: |
29 | ::google::protobuf::internal::ExplicitlyConstructed<TokenProto> |
30 | _instance; |
31 | } _TokenProto_default_instance_; |
32 | class GetDelegationTokenRequestProtoDefaultTypeInternal { |
33 | public: |
34 | ::google::protobuf::internal::ExplicitlyConstructed<GetDelegationTokenRequestProto> |
35 | _instance; |
36 | } _GetDelegationTokenRequestProto_default_instance_; |
37 | class GetDelegationTokenResponseProtoDefaultTypeInternal { |
38 | public: |
39 | ::google::protobuf::internal::ExplicitlyConstructed<GetDelegationTokenResponseProto> |
40 | _instance; |
41 | } _GetDelegationTokenResponseProto_default_instance_; |
42 | class RenewDelegationTokenRequestProtoDefaultTypeInternal { |
43 | public: |
44 | ::google::protobuf::internal::ExplicitlyConstructed<RenewDelegationTokenRequestProto> |
45 | _instance; |
46 | } _RenewDelegationTokenRequestProto_default_instance_; |
47 | class RenewDelegationTokenResponseProtoDefaultTypeInternal { |
48 | public: |
49 | ::google::protobuf::internal::ExplicitlyConstructed<RenewDelegationTokenResponseProto> |
50 | _instance; |
51 | } _RenewDelegationTokenResponseProto_default_instance_; |
52 | class CancelDelegationTokenRequestProtoDefaultTypeInternal { |
53 | public: |
54 | ::google::protobuf::internal::ExplicitlyConstructed<CancelDelegationTokenRequestProto> |
55 | _instance; |
56 | } _CancelDelegationTokenRequestProto_default_instance_; |
57 | class CancelDelegationTokenResponseProtoDefaultTypeInternal { |
58 | public: |
59 | ::google::protobuf::internal::ExplicitlyConstructed<CancelDelegationTokenResponseProto> |
60 | _instance; |
61 | } _CancelDelegationTokenResponseProto_default_instance_; |
62 | } // namespace Internal |
63 | } // namespace Hdfs |
64 | namespace protobuf_Security_2eproto { |
65 | static void InitDefaultsTokenProto() { |
66 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
67 | |
68 | { |
69 | void* ptr = &::Hdfs::Internal::_TokenProto_default_instance_; |
70 | new (ptr) ::Hdfs::Internal::TokenProto(); |
71 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
72 | } |
73 | ::Hdfs::Internal::TokenProto::InitAsDefaultInstance(); |
74 | } |
75 | |
76 | ::google::protobuf::internal::SCCInfo<0> scc_info_TokenProto = |
77 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTokenProto}, {}}; |
78 | |
79 | static void InitDefaultsGetDelegationTokenRequestProto() { |
80 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
81 | |
82 | { |
83 | void* ptr = &::Hdfs::Internal::_GetDelegationTokenRequestProto_default_instance_; |
84 | new (ptr) ::Hdfs::Internal::GetDelegationTokenRequestProto(); |
85 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
86 | } |
87 | ::Hdfs::Internal::GetDelegationTokenRequestProto::InitAsDefaultInstance(); |
88 | } |
89 | |
90 | ::google::protobuf::internal::SCCInfo<0> scc_info_GetDelegationTokenRequestProto = |
91 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetDelegationTokenRequestProto}, {}}; |
92 | |
93 | static void InitDefaultsGetDelegationTokenResponseProto() { |
94 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
95 | |
96 | { |
97 | void* ptr = &::Hdfs::Internal::_GetDelegationTokenResponseProto_default_instance_; |
98 | new (ptr) ::Hdfs::Internal::GetDelegationTokenResponseProto(); |
99 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
100 | } |
101 | ::Hdfs::Internal::GetDelegationTokenResponseProto::InitAsDefaultInstance(); |
102 | } |
103 | |
104 | ::google::protobuf::internal::SCCInfo<1> scc_info_GetDelegationTokenResponseProto = |
105 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetDelegationTokenResponseProto}, { |
106 | &protobuf_Security_2eproto::scc_info_TokenProto.base,}}; |
107 | |
108 | static void InitDefaultsRenewDelegationTokenRequestProto() { |
109 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
110 | |
111 | { |
112 | void* ptr = &::Hdfs::Internal::_RenewDelegationTokenRequestProto_default_instance_; |
113 | new (ptr) ::Hdfs::Internal::RenewDelegationTokenRequestProto(); |
114 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
115 | } |
116 | ::Hdfs::Internal::RenewDelegationTokenRequestProto::InitAsDefaultInstance(); |
117 | } |
118 | |
119 | ::google::protobuf::internal::SCCInfo<1> scc_info_RenewDelegationTokenRequestProto = |
120 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRenewDelegationTokenRequestProto}, { |
121 | &protobuf_Security_2eproto::scc_info_TokenProto.base,}}; |
122 | |
123 | static void InitDefaultsRenewDelegationTokenResponseProto() { |
124 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
125 | |
126 | { |
127 | void* ptr = &::Hdfs::Internal::_RenewDelegationTokenResponseProto_default_instance_; |
128 | new (ptr) ::Hdfs::Internal::RenewDelegationTokenResponseProto(); |
129 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
130 | } |
131 | ::Hdfs::Internal::RenewDelegationTokenResponseProto::InitAsDefaultInstance(); |
132 | } |
133 | |
134 | ::google::protobuf::internal::SCCInfo<0> scc_info_RenewDelegationTokenResponseProto = |
135 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRenewDelegationTokenResponseProto}, {}}; |
136 | |
137 | static void InitDefaultsCancelDelegationTokenRequestProto() { |
138 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
139 | |
140 | { |
141 | void* ptr = &::Hdfs::Internal::_CancelDelegationTokenRequestProto_default_instance_; |
142 | new (ptr) ::Hdfs::Internal::CancelDelegationTokenRequestProto(); |
143 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
144 | } |
145 | ::Hdfs::Internal::CancelDelegationTokenRequestProto::InitAsDefaultInstance(); |
146 | } |
147 | |
148 | ::google::protobuf::internal::SCCInfo<1> scc_info_CancelDelegationTokenRequestProto = |
149 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCancelDelegationTokenRequestProto}, { |
150 | &protobuf_Security_2eproto::scc_info_TokenProto.base,}}; |
151 | |
152 | static void InitDefaultsCancelDelegationTokenResponseProto() { |
153 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
154 | |
155 | { |
156 | void* ptr = &::Hdfs::Internal::_CancelDelegationTokenResponseProto_default_instance_; |
157 | new (ptr) ::Hdfs::Internal::CancelDelegationTokenResponseProto(); |
158 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
159 | } |
160 | ::Hdfs::Internal::CancelDelegationTokenResponseProto::InitAsDefaultInstance(); |
161 | } |
162 | |
163 | ::google::protobuf::internal::SCCInfo<0> scc_info_CancelDelegationTokenResponseProto = |
164 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCancelDelegationTokenResponseProto}, {}}; |
165 | |
166 | void InitDefaults() { |
167 | ::google::protobuf::internal::InitSCC(&scc_info_TokenProto.base); |
168 | ::google::protobuf::internal::InitSCC(&scc_info_GetDelegationTokenRequestProto.base); |
169 | ::google::protobuf::internal::InitSCC(&scc_info_GetDelegationTokenResponseProto.base); |
170 | ::google::protobuf::internal::InitSCC(&scc_info_RenewDelegationTokenRequestProto.base); |
171 | ::google::protobuf::internal::InitSCC(&scc_info_RenewDelegationTokenResponseProto.base); |
172 | ::google::protobuf::internal::InitSCC(&scc_info_CancelDelegationTokenRequestProto.base); |
173 | ::google::protobuf::internal::InitSCC(&scc_info_CancelDelegationTokenResponseProto.base); |
174 | } |
175 | |
176 | ::google::protobuf::Metadata file_level_metadata[7]; |
177 | |
178 | const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
179 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::TokenProto, _has_bits_), |
180 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::TokenProto, _internal_metadata_), |
181 | ~0u, // no _extensions_ |
182 | ~0u, // no _oneof_case_ |
183 | ~0u, // no _weak_field_map_ |
184 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::TokenProto, identifier_), |
185 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::TokenProto, password_), |
186 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::TokenProto, kind_), |
187 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::TokenProto, service_), |
188 | 0, |
189 | 1, |
190 | 2, |
191 | 3, |
192 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::GetDelegationTokenRequestProto, _has_bits_), |
193 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::GetDelegationTokenRequestProto, _internal_metadata_), |
194 | ~0u, // no _extensions_ |
195 | ~0u, // no _oneof_case_ |
196 | ~0u, // no _weak_field_map_ |
197 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::GetDelegationTokenRequestProto, renewer_), |
198 | 0, |
199 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::GetDelegationTokenResponseProto, _has_bits_), |
200 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::GetDelegationTokenResponseProto, _internal_metadata_), |
201 | ~0u, // no _extensions_ |
202 | ~0u, // no _oneof_case_ |
203 | ~0u, // no _weak_field_map_ |
204 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::GetDelegationTokenResponseProto, token_), |
205 | 0, |
206 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::RenewDelegationTokenRequestProto, _has_bits_), |
207 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::RenewDelegationTokenRequestProto, _internal_metadata_), |
208 | ~0u, // no _extensions_ |
209 | ~0u, // no _oneof_case_ |
210 | ~0u, // no _weak_field_map_ |
211 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::RenewDelegationTokenRequestProto, token_), |
212 | 0, |
213 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::RenewDelegationTokenResponseProto, _has_bits_), |
214 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::RenewDelegationTokenResponseProto, _internal_metadata_), |
215 | ~0u, // no _extensions_ |
216 | ~0u, // no _oneof_case_ |
217 | ~0u, // no _weak_field_map_ |
218 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::RenewDelegationTokenResponseProto, newexpirytime_), |
219 | 0, |
220 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CancelDelegationTokenRequestProto, _has_bits_), |
221 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CancelDelegationTokenRequestProto, _internal_metadata_), |
222 | ~0u, // no _extensions_ |
223 | ~0u, // no _oneof_case_ |
224 | ~0u, // no _weak_field_map_ |
225 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CancelDelegationTokenRequestProto, token_), |
226 | 0, |
227 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CancelDelegationTokenResponseProto, _has_bits_), |
228 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hdfs::Internal::CancelDelegationTokenResponseProto, _internal_metadata_), |
229 | ~0u, // no _extensions_ |
230 | ~0u, // no _oneof_case_ |
231 | ~0u, // no _weak_field_map_ |
232 | }; |
233 | static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
234 | { 0, 9, sizeof(::Hdfs::Internal::TokenProto)}, |
235 | { 13, 19, sizeof(::Hdfs::Internal::GetDelegationTokenRequestProto)}, |
236 | { 20, 26, sizeof(::Hdfs::Internal::GetDelegationTokenResponseProto)}, |
237 | { 27, 33, sizeof(::Hdfs::Internal::RenewDelegationTokenRequestProto)}, |
238 | { 34, 40, sizeof(::Hdfs::Internal::RenewDelegationTokenResponseProto)}, |
239 | { 41, 47, sizeof(::Hdfs::Internal::CancelDelegationTokenRequestProto)}, |
240 | { 48, 53, sizeof(::Hdfs::Internal::CancelDelegationTokenResponseProto)}, |
241 | }; |
242 | |
243 | static ::google::protobuf::Message const * const file_default_instances[] = { |
244 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_TokenProto_default_instance_), |
245 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_GetDelegationTokenRequestProto_default_instance_), |
246 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_GetDelegationTokenResponseProto_default_instance_), |
247 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_RenewDelegationTokenRequestProto_default_instance_), |
248 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_RenewDelegationTokenResponseProto_default_instance_), |
249 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_CancelDelegationTokenRequestProto_default_instance_), |
250 | reinterpret_cast<const ::google::protobuf::Message*>(&::Hdfs::Internal::_CancelDelegationTokenResponseProto_default_instance_), |
251 | }; |
252 | |
253 | void protobuf_AssignDescriptors() { |
254 | AddDescriptors(); |
255 | AssignDescriptors( |
256 | "Security.proto" , schemas, file_default_instances, TableStruct::offsets, |
257 | file_level_metadata, NULL, NULL); |
258 | } |
259 | |
260 | void protobuf_AssignDescriptorsOnce() { |
261 | static ::google::protobuf::internal::once_flag once; |
262 | ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); |
263 | } |
264 | |
265 | void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; |
266 | void protobuf_RegisterTypes(const ::std::string&) { |
267 | protobuf_AssignDescriptorsOnce(); |
268 | ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 7); |
269 | } |
270 | |
271 | void AddDescriptorsImpl() { |
272 | InitDefaults(); |
273 | static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
274 | "\n\016Security.proto\022\rHdfs.Internal\"Q\n\nToken" |
275 | "Proto\022\022\n\nidentifier\030\001 \002(\014\022\020\n\010password\030\002 " |
276 | "\002(\014\022\014\n\004kind\030\003 \002(\t\022\017\n\007service\030\004 \002(\t\"1\n\036Ge" |
277 | "tDelegationTokenRequestProto\022\017\n\007renewer\030" |
278 | "\001 \002(\t\"K\n\037GetDelegationTokenResponseProto" |
279 | "\022(\n\005token\030\001 \001(\0132\031.Hdfs.Internal.TokenPro" |
280 | "to\"L\n RenewDelegationTokenRequestProto\022(" |
281 | "\n\005token\030\001 \002(\0132\031.Hdfs.Internal.TokenProto" |
282 | "\":\n!RenewDelegationTokenResponseProto\022\025\n" |
283 | "\rnewExpiryTime\030\001 \002(\004\"M\n!CancelDelegation" |
284 | "TokenRequestProto\022(\n\005token\030\001 \002(\0132\031.Hdfs." |
285 | "Internal.TokenProto\"$\n\"CancelDelegationT" |
286 | "okenResponseProtoB8\n org.apache.hadoop.s" |
287 | "ecurity.protoB\016SecurityProtos\210\001\001\240\001\001" |
288 | }; |
289 | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
290 | descriptor, 555); |
291 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
292 | "Security.proto" , &protobuf_RegisterTypes); |
293 | } |
294 | |
295 | void AddDescriptors() { |
296 | static ::google::protobuf::internal::once_flag once; |
297 | ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); |
298 | } |
299 | // Force AddDescriptors() to be called at dynamic initialization time. |
300 | struct StaticDescriptorInitializer { |
301 | StaticDescriptorInitializer() { |
302 | AddDescriptors(); |
303 | } |
304 | } static_descriptor_initializer; |
305 | } // namespace protobuf_Security_2eproto |
306 | namespace Hdfs { |
307 | namespace Internal { |
308 | |
309 | // =================================================================== |
310 | |
311 | void TokenProto::InitAsDefaultInstance() { |
312 | } |
313 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
314 | const int TokenProto::kIdentifierFieldNumber; |
315 | const int TokenProto::kPasswordFieldNumber; |
316 | const int TokenProto::kKindFieldNumber; |
317 | const int TokenProto::kServiceFieldNumber; |
318 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
319 | |
320 | TokenProto::TokenProto() |
321 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
322 | ::google::protobuf::internal::InitSCC( |
323 | &protobuf_Security_2eproto::scc_info_TokenProto.base); |
324 | SharedCtor(); |
325 | // @@protoc_insertion_point(constructor:Hdfs.Internal.TokenProto) |
326 | } |
327 | TokenProto::TokenProto(const TokenProto& from) |
328 | : ::google::protobuf::Message(), |
329 | _internal_metadata_(NULL), |
330 | _has_bits_(from._has_bits_) { |
331 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
332 | identifier_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
333 | if (from.has_identifier()) { |
334 | identifier_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.identifier_); |
335 | } |
336 | password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
337 | if (from.has_password()) { |
338 | password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_); |
339 | } |
340 | kind_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
341 | if (from.has_kind()) { |
342 | kind_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kind_); |
343 | } |
344 | service_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
345 | if (from.has_service()) { |
346 | service_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.service_); |
347 | } |
348 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.TokenProto) |
349 | } |
350 | |
351 | void TokenProto::SharedCtor() { |
352 | identifier_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
353 | password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
354 | kind_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
355 | service_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
356 | } |
357 | |
358 | TokenProto::~TokenProto() { |
359 | // @@protoc_insertion_point(destructor:Hdfs.Internal.TokenProto) |
360 | SharedDtor(); |
361 | } |
362 | |
363 | void TokenProto::SharedDtor() { |
364 | identifier_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
365 | password_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
366 | kind_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
367 | service_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
368 | } |
369 | |
370 | void TokenProto::SetCachedSize(int size) const { |
371 | _cached_size_.Set(size); |
372 | } |
373 | const ::google::protobuf::Descriptor* TokenProto::descriptor() { |
374 | ::protobuf_Security_2eproto::protobuf_AssignDescriptorsOnce(); |
375 | return ::protobuf_Security_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
376 | } |
377 | |
378 | const TokenProto& TokenProto::default_instance() { |
379 | ::google::protobuf::internal::InitSCC(&protobuf_Security_2eproto::scc_info_TokenProto.base); |
380 | return *internal_default_instance(); |
381 | } |
382 | |
383 | |
384 | void TokenProto::Clear() { |
385 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.TokenProto) |
386 | ::google::protobuf::uint32 cached_has_bits = 0; |
387 | // Prevent compiler warnings about cached_has_bits being unused |
388 | (void) cached_has_bits; |
389 | |
390 | cached_has_bits = _has_bits_[0]; |
391 | if (cached_has_bits & 15u) { |
392 | if (cached_has_bits & 0x00000001u) { |
393 | identifier_.ClearNonDefaultToEmptyNoArena(); |
394 | } |
395 | if (cached_has_bits & 0x00000002u) { |
396 | password_.ClearNonDefaultToEmptyNoArena(); |
397 | } |
398 | if (cached_has_bits & 0x00000004u) { |
399 | kind_.ClearNonDefaultToEmptyNoArena(); |
400 | } |
401 | if (cached_has_bits & 0x00000008u) { |
402 | service_.ClearNonDefaultToEmptyNoArena(); |
403 | } |
404 | } |
405 | _has_bits_.Clear(); |
406 | _internal_metadata_.Clear(); |
407 | } |
408 | |
409 | bool TokenProto::MergePartialFromCodedStream( |
410 | ::google::protobuf::io::CodedInputStream* input) { |
411 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
412 | ::google::protobuf::uint32 tag; |
413 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.TokenProto) |
414 | for (;;) { |
415 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
416 | tag = p.first; |
417 | if (!p.second) goto handle_unusual; |
418 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
419 | // required bytes identifier = 1; |
420 | case 1: { |
421 | if (static_cast< ::google::protobuf::uint8>(tag) == |
422 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
423 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
424 | input, this->mutable_identifier())); |
425 | } else { |
426 | goto handle_unusual; |
427 | } |
428 | break; |
429 | } |
430 | |
431 | // required bytes password = 2; |
432 | case 2: { |
433 | if (static_cast< ::google::protobuf::uint8>(tag) == |
434 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
435 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
436 | input, this->mutable_password())); |
437 | } else { |
438 | goto handle_unusual; |
439 | } |
440 | break; |
441 | } |
442 | |
443 | // required string kind = 3; |
444 | case 3: { |
445 | if (static_cast< ::google::protobuf::uint8>(tag) == |
446 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
447 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
448 | input, this->mutable_kind())); |
449 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
450 | this->kind().data(), static_cast<int>(this->kind().length()), |
451 | ::google::protobuf::internal::WireFormat::PARSE, |
452 | "Hdfs.Internal.TokenProto.kind" ); |
453 | } else { |
454 | goto handle_unusual; |
455 | } |
456 | break; |
457 | } |
458 | |
459 | // required string service = 4; |
460 | case 4: { |
461 | if (static_cast< ::google::protobuf::uint8>(tag) == |
462 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
463 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
464 | input, this->mutable_service())); |
465 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
466 | this->service().data(), static_cast<int>(this->service().length()), |
467 | ::google::protobuf::internal::WireFormat::PARSE, |
468 | "Hdfs.Internal.TokenProto.service" ); |
469 | } else { |
470 | goto handle_unusual; |
471 | } |
472 | break; |
473 | } |
474 | |
475 | default: { |
476 | handle_unusual: |
477 | if (tag == 0) { |
478 | goto success; |
479 | } |
480 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
481 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
482 | break; |
483 | } |
484 | } |
485 | } |
486 | success: |
487 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.TokenProto) |
488 | return true; |
489 | failure: |
490 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.TokenProto) |
491 | return false; |
492 | #undef DO_ |
493 | } |
494 | |
495 | void TokenProto::SerializeWithCachedSizes( |
496 | ::google::protobuf::io::CodedOutputStream* output) const { |
497 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.TokenProto) |
498 | ::google::protobuf::uint32 cached_has_bits = 0; |
499 | (void) cached_has_bits; |
500 | |
501 | cached_has_bits = _has_bits_[0]; |
502 | // required bytes identifier = 1; |
503 | if (cached_has_bits & 0x00000001u) { |
504 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
505 | 1, this->identifier(), output); |
506 | } |
507 | |
508 | // required bytes password = 2; |
509 | if (cached_has_bits & 0x00000002u) { |
510 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
511 | 2, this->password(), output); |
512 | } |
513 | |
514 | // required string kind = 3; |
515 | if (cached_has_bits & 0x00000004u) { |
516 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
517 | this->kind().data(), static_cast<int>(this->kind().length()), |
518 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
519 | "Hdfs.Internal.TokenProto.kind" ); |
520 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
521 | 3, this->kind(), output); |
522 | } |
523 | |
524 | // required string service = 4; |
525 | if (cached_has_bits & 0x00000008u) { |
526 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
527 | this->service().data(), static_cast<int>(this->service().length()), |
528 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
529 | "Hdfs.Internal.TokenProto.service" ); |
530 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
531 | 4, this->service(), output); |
532 | } |
533 | |
534 | if (_internal_metadata_.have_unknown_fields()) { |
535 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
536 | _internal_metadata_.unknown_fields(), output); |
537 | } |
538 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.TokenProto) |
539 | } |
540 | |
541 | ::google::protobuf::uint8* TokenProto::InternalSerializeWithCachedSizesToArray( |
542 | bool deterministic, ::google::protobuf::uint8* target) const { |
543 | (void)deterministic; // Unused |
544 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.TokenProto) |
545 | ::google::protobuf::uint32 cached_has_bits = 0; |
546 | (void) cached_has_bits; |
547 | |
548 | cached_has_bits = _has_bits_[0]; |
549 | // required bytes identifier = 1; |
550 | if (cached_has_bits & 0x00000001u) { |
551 | target = |
552 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
553 | 1, this->identifier(), target); |
554 | } |
555 | |
556 | // required bytes password = 2; |
557 | if (cached_has_bits & 0x00000002u) { |
558 | target = |
559 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
560 | 2, this->password(), target); |
561 | } |
562 | |
563 | // required string kind = 3; |
564 | if (cached_has_bits & 0x00000004u) { |
565 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
566 | this->kind().data(), static_cast<int>(this->kind().length()), |
567 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
568 | "Hdfs.Internal.TokenProto.kind" ); |
569 | target = |
570 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
571 | 3, this->kind(), target); |
572 | } |
573 | |
574 | // required string service = 4; |
575 | if (cached_has_bits & 0x00000008u) { |
576 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
577 | this->service().data(), static_cast<int>(this->service().length()), |
578 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
579 | "Hdfs.Internal.TokenProto.service" ); |
580 | target = |
581 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
582 | 4, this->service(), target); |
583 | } |
584 | |
585 | if (_internal_metadata_.have_unknown_fields()) { |
586 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
587 | _internal_metadata_.unknown_fields(), target); |
588 | } |
589 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.TokenProto) |
590 | return target; |
591 | } |
592 | |
593 | size_t TokenProto::RequiredFieldsByteSizeFallback() const { |
594 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hdfs.Internal.TokenProto) |
595 | size_t total_size = 0; |
596 | |
597 | if (has_identifier()) { |
598 | // required bytes identifier = 1; |
599 | total_size += 1 + |
600 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
601 | this->identifier()); |
602 | } |
603 | |
604 | if (has_password()) { |
605 | // required bytes password = 2; |
606 | total_size += 1 + |
607 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
608 | this->password()); |
609 | } |
610 | |
611 | if (has_kind()) { |
612 | // required string kind = 3; |
613 | total_size += 1 + |
614 | ::google::protobuf::internal::WireFormatLite::StringSize( |
615 | this->kind()); |
616 | } |
617 | |
618 | if (has_service()) { |
619 | // required string service = 4; |
620 | total_size += 1 + |
621 | ::google::protobuf::internal::WireFormatLite::StringSize( |
622 | this->service()); |
623 | } |
624 | |
625 | return total_size; |
626 | } |
627 | size_t TokenProto::ByteSizeLong() const { |
628 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.TokenProto) |
629 | size_t total_size = 0; |
630 | |
631 | if (_internal_metadata_.have_unknown_fields()) { |
632 | total_size += |
633 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
634 | _internal_metadata_.unknown_fields()); |
635 | } |
636 | if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. |
637 | // required bytes identifier = 1; |
638 | total_size += 1 + |
639 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
640 | this->identifier()); |
641 | |
642 | // required bytes password = 2; |
643 | total_size += 1 + |
644 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
645 | this->password()); |
646 | |
647 | // required string kind = 3; |
648 | total_size += 1 + |
649 | ::google::protobuf::internal::WireFormatLite::StringSize( |
650 | this->kind()); |
651 | |
652 | // required string service = 4; |
653 | total_size += 1 + |
654 | ::google::protobuf::internal::WireFormatLite::StringSize( |
655 | this->service()); |
656 | |
657 | } else { |
658 | total_size += RequiredFieldsByteSizeFallback(); |
659 | } |
660 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
661 | SetCachedSize(cached_size); |
662 | return total_size; |
663 | } |
664 | |
665 | void TokenProto::MergeFrom(const ::google::protobuf::Message& from) { |
666 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.TokenProto) |
667 | GOOGLE_DCHECK_NE(&from, this); |
668 | const TokenProto* source = |
669 | ::google::protobuf::internal::DynamicCastToGenerated<const TokenProto>( |
670 | &from); |
671 | if (source == NULL) { |
672 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.TokenProto) |
673 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
674 | } else { |
675 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.TokenProto) |
676 | MergeFrom(*source); |
677 | } |
678 | } |
679 | |
680 | void TokenProto::MergeFrom(const TokenProto& from) { |
681 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.TokenProto) |
682 | GOOGLE_DCHECK_NE(&from, this); |
683 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
684 | ::google::protobuf::uint32 cached_has_bits = 0; |
685 | (void) cached_has_bits; |
686 | |
687 | cached_has_bits = from._has_bits_[0]; |
688 | if (cached_has_bits & 15u) { |
689 | if (cached_has_bits & 0x00000001u) { |
690 | set_has_identifier(); |
691 | identifier_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.identifier_); |
692 | } |
693 | if (cached_has_bits & 0x00000002u) { |
694 | set_has_password(); |
695 | password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_); |
696 | } |
697 | if (cached_has_bits & 0x00000004u) { |
698 | set_has_kind(); |
699 | kind_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kind_); |
700 | } |
701 | if (cached_has_bits & 0x00000008u) { |
702 | set_has_service(); |
703 | service_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.service_); |
704 | } |
705 | } |
706 | } |
707 | |
708 | void TokenProto::CopyFrom(const ::google::protobuf::Message& from) { |
709 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.TokenProto) |
710 | if (&from == this) return; |
711 | Clear(); |
712 | MergeFrom(from); |
713 | } |
714 | |
715 | void TokenProto::CopyFrom(const TokenProto& from) { |
716 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.TokenProto) |
717 | if (&from == this) return; |
718 | Clear(); |
719 | MergeFrom(from); |
720 | } |
721 | |
722 | bool TokenProto::IsInitialized() const { |
723 | if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; |
724 | return true; |
725 | } |
726 | |
727 | void TokenProto::Swap(TokenProto* other) { |
728 | if (other == this) return; |
729 | InternalSwap(other); |
730 | } |
731 | void TokenProto::InternalSwap(TokenProto* other) { |
732 | using std::swap; |
733 | identifier_.Swap(&other->identifier_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
734 | GetArenaNoVirtual()); |
735 | password_.Swap(&other->password_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
736 | GetArenaNoVirtual()); |
737 | kind_.Swap(&other->kind_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
738 | GetArenaNoVirtual()); |
739 | service_.Swap(&other->service_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
740 | GetArenaNoVirtual()); |
741 | swap(_has_bits_[0], other->_has_bits_[0]); |
742 | _internal_metadata_.Swap(&other->_internal_metadata_); |
743 | } |
744 | |
745 | ::google::protobuf::Metadata TokenProto::GetMetadata() const { |
746 | protobuf_Security_2eproto::protobuf_AssignDescriptorsOnce(); |
747 | return ::protobuf_Security_2eproto::file_level_metadata[kIndexInFileMessages]; |
748 | } |
749 | |
750 | |
751 | // =================================================================== |
752 | |
753 | void GetDelegationTokenRequestProto::InitAsDefaultInstance() { |
754 | } |
755 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
756 | const int GetDelegationTokenRequestProto::kRenewerFieldNumber; |
757 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
758 | |
759 | GetDelegationTokenRequestProto::GetDelegationTokenRequestProto() |
760 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
761 | ::google::protobuf::internal::InitSCC( |
762 | &protobuf_Security_2eproto::scc_info_GetDelegationTokenRequestProto.base); |
763 | SharedCtor(); |
764 | // @@protoc_insertion_point(constructor:Hdfs.Internal.GetDelegationTokenRequestProto) |
765 | } |
766 | GetDelegationTokenRequestProto::GetDelegationTokenRequestProto(const GetDelegationTokenRequestProto& from) |
767 | : ::google::protobuf::Message(), |
768 | _internal_metadata_(NULL), |
769 | _has_bits_(from._has_bits_) { |
770 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
771 | renewer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
772 | if (from.has_renewer()) { |
773 | renewer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.renewer_); |
774 | } |
775 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.GetDelegationTokenRequestProto) |
776 | } |
777 | |
778 | void GetDelegationTokenRequestProto::SharedCtor() { |
779 | renewer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
780 | } |
781 | |
782 | GetDelegationTokenRequestProto::~GetDelegationTokenRequestProto() { |
783 | // @@protoc_insertion_point(destructor:Hdfs.Internal.GetDelegationTokenRequestProto) |
784 | SharedDtor(); |
785 | } |
786 | |
787 | void GetDelegationTokenRequestProto::SharedDtor() { |
788 | renewer_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
789 | } |
790 | |
791 | void GetDelegationTokenRequestProto::SetCachedSize(int size) const { |
792 | _cached_size_.Set(size); |
793 | } |
794 | const ::google::protobuf::Descriptor* GetDelegationTokenRequestProto::descriptor() { |
795 | ::protobuf_Security_2eproto::protobuf_AssignDescriptorsOnce(); |
796 | return ::protobuf_Security_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
797 | } |
798 | |
799 | const GetDelegationTokenRequestProto& GetDelegationTokenRequestProto::default_instance() { |
800 | ::google::protobuf::internal::InitSCC(&protobuf_Security_2eproto::scc_info_GetDelegationTokenRequestProto.base); |
801 | return *internal_default_instance(); |
802 | } |
803 | |
804 | |
805 | void GetDelegationTokenRequestProto::Clear() { |
806 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.GetDelegationTokenRequestProto) |
807 | ::google::protobuf::uint32 cached_has_bits = 0; |
808 | // Prevent compiler warnings about cached_has_bits being unused |
809 | (void) cached_has_bits; |
810 | |
811 | cached_has_bits = _has_bits_[0]; |
812 | if (cached_has_bits & 0x00000001u) { |
813 | renewer_.ClearNonDefaultToEmptyNoArena(); |
814 | } |
815 | _has_bits_.Clear(); |
816 | _internal_metadata_.Clear(); |
817 | } |
818 | |
819 | bool GetDelegationTokenRequestProto::MergePartialFromCodedStream( |
820 | ::google::protobuf::io::CodedInputStream* input) { |
821 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
822 | ::google::protobuf::uint32 tag; |
823 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.GetDelegationTokenRequestProto) |
824 | for (;;) { |
825 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
826 | tag = p.first; |
827 | if (!p.second) goto handle_unusual; |
828 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
829 | // required string renewer = 1; |
830 | case 1: { |
831 | if (static_cast< ::google::protobuf::uint8>(tag) == |
832 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
833 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
834 | input, this->mutable_renewer())); |
835 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
836 | this->renewer().data(), static_cast<int>(this->renewer().length()), |
837 | ::google::protobuf::internal::WireFormat::PARSE, |
838 | "Hdfs.Internal.GetDelegationTokenRequestProto.renewer" ); |
839 | } else { |
840 | goto handle_unusual; |
841 | } |
842 | break; |
843 | } |
844 | |
845 | default: { |
846 | handle_unusual: |
847 | if (tag == 0) { |
848 | goto success; |
849 | } |
850 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
851 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
852 | break; |
853 | } |
854 | } |
855 | } |
856 | success: |
857 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.GetDelegationTokenRequestProto) |
858 | return true; |
859 | failure: |
860 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.GetDelegationTokenRequestProto) |
861 | return false; |
862 | #undef DO_ |
863 | } |
864 | |
865 | void GetDelegationTokenRequestProto::SerializeWithCachedSizes( |
866 | ::google::protobuf::io::CodedOutputStream* output) const { |
867 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.GetDelegationTokenRequestProto) |
868 | ::google::protobuf::uint32 cached_has_bits = 0; |
869 | (void) cached_has_bits; |
870 | |
871 | cached_has_bits = _has_bits_[0]; |
872 | // required string renewer = 1; |
873 | if (cached_has_bits & 0x00000001u) { |
874 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
875 | this->renewer().data(), static_cast<int>(this->renewer().length()), |
876 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
877 | "Hdfs.Internal.GetDelegationTokenRequestProto.renewer" ); |
878 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
879 | 1, this->renewer(), output); |
880 | } |
881 | |
882 | if (_internal_metadata_.have_unknown_fields()) { |
883 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
884 | _internal_metadata_.unknown_fields(), output); |
885 | } |
886 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.GetDelegationTokenRequestProto) |
887 | } |
888 | |
889 | ::google::protobuf::uint8* GetDelegationTokenRequestProto::InternalSerializeWithCachedSizesToArray( |
890 | bool deterministic, ::google::protobuf::uint8* target) const { |
891 | (void)deterministic; // Unused |
892 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.GetDelegationTokenRequestProto) |
893 | ::google::protobuf::uint32 cached_has_bits = 0; |
894 | (void) cached_has_bits; |
895 | |
896 | cached_has_bits = _has_bits_[0]; |
897 | // required string renewer = 1; |
898 | if (cached_has_bits & 0x00000001u) { |
899 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
900 | this->renewer().data(), static_cast<int>(this->renewer().length()), |
901 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
902 | "Hdfs.Internal.GetDelegationTokenRequestProto.renewer" ); |
903 | target = |
904 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
905 | 1, this->renewer(), target); |
906 | } |
907 | |
908 | if (_internal_metadata_.have_unknown_fields()) { |
909 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
910 | _internal_metadata_.unknown_fields(), target); |
911 | } |
912 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.GetDelegationTokenRequestProto) |
913 | return target; |
914 | } |
915 | |
916 | size_t GetDelegationTokenRequestProto::ByteSizeLong() const { |
917 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.GetDelegationTokenRequestProto) |
918 | size_t total_size = 0; |
919 | |
920 | if (_internal_metadata_.have_unknown_fields()) { |
921 | total_size += |
922 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
923 | _internal_metadata_.unknown_fields()); |
924 | } |
925 | // required string renewer = 1; |
926 | if (has_renewer()) { |
927 | total_size += 1 + |
928 | ::google::protobuf::internal::WireFormatLite::StringSize( |
929 | this->renewer()); |
930 | } |
931 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
932 | SetCachedSize(cached_size); |
933 | return total_size; |
934 | } |
935 | |
936 | void GetDelegationTokenRequestProto::MergeFrom(const ::google::protobuf::Message& from) { |
937 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.GetDelegationTokenRequestProto) |
938 | GOOGLE_DCHECK_NE(&from, this); |
939 | const GetDelegationTokenRequestProto* source = |
940 | ::google::protobuf::internal::DynamicCastToGenerated<const GetDelegationTokenRequestProto>( |
941 | &from); |
942 | if (source == NULL) { |
943 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.GetDelegationTokenRequestProto) |
944 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
945 | } else { |
946 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.GetDelegationTokenRequestProto) |
947 | MergeFrom(*source); |
948 | } |
949 | } |
950 | |
951 | void GetDelegationTokenRequestProto::MergeFrom(const GetDelegationTokenRequestProto& from) { |
952 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.GetDelegationTokenRequestProto) |
953 | GOOGLE_DCHECK_NE(&from, this); |
954 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
955 | ::google::protobuf::uint32 cached_has_bits = 0; |
956 | (void) cached_has_bits; |
957 | |
958 | if (from.has_renewer()) { |
959 | set_has_renewer(); |
960 | renewer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.renewer_); |
961 | } |
962 | } |
963 | |
964 | void GetDelegationTokenRequestProto::CopyFrom(const ::google::protobuf::Message& from) { |
965 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.GetDelegationTokenRequestProto) |
966 | if (&from == this) return; |
967 | Clear(); |
968 | MergeFrom(from); |
969 | } |
970 | |
971 | void GetDelegationTokenRequestProto::CopyFrom(const GetDelegationTokenRequestProto& from) { |
972 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.GetDelegationTokenRequestProto) |
973 | if (&from == this) return; |
974 | Clear(); |
975 | MergeFrom(from); |
976 | } |
977 | |
978 | bool GetDelegationTokenRequestProto::IsInitialized() const { |
979 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
980 | return true; |
981 | } |
982 | |
983 | void GetDelegationTokenRequestProto::Swap(GetDelegationTokenRequestProto* other) { |
984 | if (other == this) return; |
985 | InternalSwap(other); |
986 | } |
987 | void GetDelegationTokenRequestProto::InternalSwap(GetDelegationTokenRequestProto* other) { |
988 | using std::swap; |
989 | renewer_.Swap(&other->renewer_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
990 | GetArenaNoVirtual()); |
991 | swap(_has_bits_[0], other->_has_bits_[0]); |
992 | _internal_metadata_.Swap(&other->_internal_metadata_); |
993 | } |
994 | |
995 | ::google::protobuf::Metadata GetDelegationTokenRequestProto::GetMetadata() const { |
996 | protobuf_Security_2eproto::protobuf_AssignDescriptorsOnce(); |
997 | return ::protobuf_Security_2eproto::file_level_metadata[kIndexInFileMessages]; |
998 | } |
999 | |
1000 | |
1001 | // =================================================================== |
1002 | |
1003 | void GetDelegationTokenResponseProto::InitAsDefaultInstance() { |
1004 | ::Hdfs::Internal::_GetDelegationTokenResponseProto_default_instance_._instance.get_mutable()->token_ = const_cast< ::Hdfs::Internal::TokenProto*>( |
1005 | ::Hdfs::Internal::TokenProto::internal_default_instance()); |
1006 | } |
1007 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1008 | const int GetDelegationTokenResponseProto::kTokenFieldNumber; |
1009 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1010 | |
1011 | GetDelegationTokenResponseProto::GetDelegationTokenResponseProto() |
1012 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1013 | ::google::protobuf::internal::InitSCC( |
1014 | &protobuf_Security_2eproto::scc_info_GetDelegationTokenResponseProto.base); |
1015 | SharedCtor(); |
1016 | // @@protoc_insertion_point(constructor:Hdfs.Internal.GetDelegationTokenResponseProto) |
1017 | } |
1018 | GetDelegationTokenResponseProto::GetDelegationTokenResponseProto(const GetDelegationTokenResponseProto& from) |
1019 | : ::google::protobuf::Message(), |
1020 | _internal_metadata_(NULL), |
1021 | _has_bits_(from._has_bits_) { |
1022 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1023 | if (from.has_token()) { |
1024 | token_ = new ::Hdfs::Internal::TokenProto(*from.token_); |
1025 | } else { |
1026 | token_ = NULL; |
1027 | } |
1028 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.GetDelegationTokenResponseProto) |
1029 | } |
1030 | |
1031 | void GetDelegationTokenResponseProto::SharedCtor() { |
1032 | token_ = NULL; |
1033 | } |
1034 | |
1035 | GetDelegationTokenResponseProto::~GetDelegationTokenResponseProto() { |
1036 | // @@protoc_insertion_point(destructor:Hdfs.Internal.GetDelegationTokenResponseProto) |
1037 | SharedDtor(); |
1038 | } |
1039 | |
1040 | void GetDelegationTokenResponseProto::SharedDtor() { |
1041 | if (this != internal_default_instance()) delete token_; |
1042 | } |
1043 | |
1044 | void GetDelegationTokenResponseProto::SetCachedSize(int size) const { |
1045 | _cached_size_.Set(size); |
1046 | } |
1047 | const ::google::protobuf::Descriptor* GetDelegationTokenResponseProto::descriptor() { |
1048 | ::protobuf_Security_2eproto::protobuf_AssignDescriptorsOnce(); |
1049 | return ::protobuf_Security_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1050 | } |
1051 | |
1052 | const GetDelegationTokenResponseProto& GetDelegationTokenResponseProto::default_instance() { |
1053 | ::google::protobuf::internal::InitSCC(&protobuf_Security_2eproto::scc_info_GetDelegationTokenResponseProto.base); |
1054 | return *internal_default_instance(); |
1055 | } |
1056 | |
1057 | |
1058 | void GetDelegationTokenResponseProto::Clear() { |
1059 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.GetDelegationTokenResponseProto) |
1060 | ::google::protobuf::uint32 cached_has_bits = 0; |
1061 | // Prevent compiler warnings about cached_has_bits being unused |
1062 | (void) cached_has_bits; |
1063 | |
1064 | cached_has_bits = _has_bits_[0]; |
1065 | if (cached_has_bits & 0x00000001u) { |
1066 | GOOGLE_DCHECK(token_ != NULL); |
1067 | token_->Clear(); |
1068 | } |
1069 | _has_bits_.Clear(); |
1070 | _internal_metadata_.Clear(); |
1071 | } |
1072 | |
1073 | bool GetDelegationTokenResponseProto::MergePartialFromCodedStream( |
1074 | ::google::protobuf::io::CodedInputStream* input) { |
1075 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1076 | ::google::protobuf::uint32 tag; |
1077 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.GetDelegationTokenResponseProto) |
1078 | for (;;) { |
1079 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1080 | tag = p.first; |
1081 | if (!p.second) goto handle_unusual; |
1082 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1083 | // optional .Hdfs.Internal.TokenProto token = 1; |
1084 | case 1: { |
1085 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1086 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1087 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1088 | input, mutable_token())); |
1089 | } else { |
1090 | goto handle_unusual; |
1091 | } |
1092 | break; |
1093 | } |
1094 | |
1095 | default: { |
1096 | handle_unusual: |
1097 | if (tag == 0) { |
1098 | goto success; |
1099 | } |
1100 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1101 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1102 | break; |
1103 | } |
1104 | } |
1105 | } |
1106 | success: |
1107 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.GetDelegationTokenResponseProto) |
1108 | return true; |
1109 | failure: |
1110 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.GetDelegationTokenResponseProto) |
1111 | return false; |
1112 | #undef DO_ |
1113 | } |
1114 | |
1115 | void GetDelegationTokenResponseProto::SerializeWithCachedSizes( |
1116 | ::google::protobuf::io::CodedOutputStream* output) const { |
1117 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.GetDelegationTokenResponseProto) |
1118 | ::google::protobuf::uint32 cached_has_bits = 0; |
1119 | (void) cached_has_bits; |
1120 | |
1121 | cached_has_bits = _has_bits_[0]; |
1122 | // optional .Hdfs.Internal.TokenProto token = 1; |
1123 | if (cached_has_bits & 0x00000001u) { |
1124 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1125 | 1, this->_internal_token(), output); |
1126 | } |
1127 | |
1128 | if (_internal_metadata_.have_unknown_fields()) { |
1129 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1130 | _internal_metadata_.unknown_fields(), output); |
1131 | } |
1132 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.GetDelegationTokenResponseProto) |
1133 | } |
1134 | |
1135 | ::google::protobuf::uint8* GetDelegationTokenResponseProto::InternalSerializeWithCachedSizesToArray( |
1136 | bool deterministic, ::google::protobuf::uint8* target) const { |
1137 | (void)deterministic; // Unused |
1138 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.GetDelegationTokenResponseProto) |
1139 | ::google::protobuf::uint32 cached_has_bits = 0; |
1140 | (void) cached_has_bits; |
1141 | |
1142 | cached_has_bits = _has_bits_[0]; |
1143 | // optional .Hdfs.Internal.TokenProto token = 1; |
1144 | if (cached_has_bits & 0x00000001u) { |
1145 | target = ::google::protobuf::internal::WireFormatLite:: |
1146 | InternalWriteMessageToArray( |
1147 | 1, this->_internal_token(), deterministic, target); |
1148 | } |
1149 | |
1150 | if (_internal_metadata_.have_unknown_fields()) { |
1151 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1152 | _internal_metadata_.unknown_fields(), target); |
1153 | } |
1154 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.GetDelegationTokenResponseProto) |
1155 | return target; |
1156 | } |
1157 | |
1158 | size_t GetDelegationTokenResponseProto::ByteSizeLong() const { |
1159 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.GetDelegationTokenResponseProto) |
1160 | size_t total_size = 0; |
1161 | |
1162 | if (_internal_metadata_.have_unknown_fields()) { |
1163 | total_size += |
1164 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1165 | _internal_metadata_.unknown_fields()); |
1166 | } |
1167 | // optional .Hdfs.Internal.TokenProto token = 1; |
1168 | if (has_token()) { |
1169 | total_size += 1 + |
1170 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1171 | *token_); |
1172 | } |
1173 | |
1174 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1175 | SetCachedSize(cached_size); |
1176 | return total_size; |
1177 | } |
1178 | |
1179 | void GetDelegationTokenResponseProto::MergeFrom(const ::google::protobuf::Message& from) { |
1180 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.GetDelegationTokenResponseProto) |
1181 | GOOGLE_DCHECK_NE(&from, this); |
1182 | const GetDelegationTokenResponseProto* source = |
1183 | ::google::protobuf::internal::DynamicCastToGenerated<const GetDelegationTokenResponseProto>( |
1184 | &from); |
1185 | if (source == NULL) { |
1186 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.GetDelegationTokenResponseProto) |
1187 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1188 | } else { |
1189 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.GetDelegationTokenResponseProto) |
1190 | MergeFrom(*source); |
1191 | } |
1192 | } |
1193 | |
1194 | void GetDelegationTokenResponseProto::MergeFrom(const GetDelegationTokenResponseProto& from) { |
1195 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.GetDelegationTokenResponseProto) |
1196 | GOOGLE_DCHECK_NE(&from, this); |
1197 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1198 | ::google::protobuf::uint32 cached_has_bits = 0; |
1199 | (void) cached_has_bits; |
1200 | |
1201 | if (from.has_token()) { |
1202 | mutable_token()->::Hdfs::Internal::TokenProto::MergeFrom(from.token()); |
1203 | } |
1204 | } |
1205 | |
1206 | void GetDelegationTokenResponseProto::CopyFrom(const ::google::protobuf::Message& from) { |
1207 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.GetDelegationTokenResponseProto) |
1208 | if (&from == this) return; |
1209 | Clear(); |
1210 | MergeFrom(from); |
1211 | } |
1212 | |
1213 | void GetDelegationTokenResponseProto::CopyFrom(const GetDelegationTokenResponseProto& from) { |
1214 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.GetDelegationTokenResponseProto) |
1215 | if (&from == this) return; |
1216 | Clear(); |
1217 | MergeFrom(from); |
1218 | } |
1219 | |
1220 | bool GetDelegationTokenResponseProto::IsInitialized() const { |
1221 | if (has_token()) { |
1222 | if (!this->token_->IsInitialized()) return false; |
1223 | } |
1224 | return true; |
1225 | } |
1226 | |
1227 | void GetDelegationTokenResponseProto::Swap(GetDelegationTokenResponseProto* other) { |
1228 | if (other == this) return; |
1229 | InternalSwap(other); |
1230 | } |
1231 | void GetDelegationTokenResponseProto::InternalSwap(GetDelegationTokenResponseProto* other) { |
1232 | using std::swap; |
1233 | swap(token_, other->token_); |
1234 | swap(_has_bits_[0], other->_has_bits_[0]); |
1235 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1236 | } |
1237 | |
1238 | ::google::protobuf::Metadata GetDelegationTokenResponseProto::GetMetadata() const { |
1239 | protobuf_Security_2eproto::protobuf_AssignDescriptorsOnce(); |
1240 | return ::protobuf_Security_2eproto::file_level_metadata[kIndexInFileMessages]; |
1241 | } |
1242 | |
1243 | |
1244 | // =================================================================== |
1245 | |
1246 | void RenewDelegationTokenRequestProto::InitAsDefaultInstance() { |
1247 | ::Hdfs::Internal::_RenewDelegationTokenRequestProto_default_instance_._instance.get_mutable()->token_ = const_cast< ::Hdfs::Internal::TokenProto*>( |
1248 | ::Hdfs::Internal::TokenProto::internal_default_instance()); |
1249 | } |
1250 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1251 | const int RenewDelegationTokenRequestProto::kTokenFieldNumber; |
1252 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1253 | |
1254 | RenewDelegationTokenRequestProto::RenewDelegationTokenRequestProto() |
1255 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1256 | ::google::protobuf::internal::InitSCC( |
1257 | &protobuf_Security_2eproto::scc_info_RenewDelegationTokenRequestProto.base); |
1258 | SharedCtor(); |
1259 | // @@protoc_insertion_point(constructor:Hdfs.Internal.RenewDelegationTokenRequestProto) |
1260 | } |
1261 | RenewDelegationTokenRequestProto::RenewDelegationTokenRequestProto(const RenewDelegationTokenRequestProto& from) |
1262 | : ::google::protobuf::Message(), |
1263 | _internal_metadata_(NULL), |
1264 | _has_bits_(from._has_bits_) { |
1265 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1266 | if (from.has_token()) { |
1267 | token_ = new ::Hdfs::Internal::TokenProto(*from.token_); |
1268 | } else { |
1269 | token_ = NULL; |
1270 | } |
1271 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.RenewDelegationTokenRequestProto) |
1272 | } |
1273 | |
1274 | void RenewDelegationTokenRequestProto::SharedCtor() { |
1275 | token_ = NULL; |
1276 | } |
1277 | |
1278 | RenewDelegationTokenRequestProto::~RenewDelegationTokenRequestProto() { |
1279 | // @@protoc_insertion_point(destructor:Hdfs.Internal.RenewDelegationTokenRequestProto) |
1280 | SharedDtor(); |
1281 | } |
1282 | |
1283 | void RenewDelegationTokenRequestProto::SharedDtor() { |
1284 | if (this != internal_default_instance()) delete token_; |
1285 | } |
1286 | |
1287 | void RenewDelegationTokenRequestProto::SetCachedSize(int size) const { |
1288 | _cached_size_.Set(size); |
1289 | } |
1290 | const ::google::protobuf::Descriptor* RenewDelegationTokenRequestProto::descriptor() { |
1291 | ::protobuf_Security_2eproto::protobuf_AssignDescriptorsOnce(); |
1292 | return ::protobuf_Security_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1293 | } |
1294 | |
1295 | const RenewDelegationTokenRequestProto& RenewDelegationTokenRequestProto::default_instance() { |
1296 | ::google::protobuf::internal::InitSCC(&protobuf_Security_2eproto::scc_info_RenewDelegationTokenRequestProto.base); |
1297 | return *internal_default_instance(); |
1298 | } |
1299 | |
1300 | |
1301 | void RenewDelegationTokenRequestProto::Clear() { |
1302 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.RenewDelegationTokenRequestProto) |
1303 | ::google::protobuf::uint32 cached_has_bits = 0; |
1304 | // Prevent compiler warnings about cached_has_bits being unused |
1305 | (void) cached_has_bits; |
1306 | |
1307 | cached_has_bits = _has_bits_[0]; |
1308 | if (cached_has_bits & 0x00000001u) { |
1309 | GOOGLE_DCHECK(token_ != NULL); |
1310 | token_->Clear(); |
1311 | } |
1312 | _has_bits_.Clear(); |
1313 | _internal_metadata_.Clear(); |
1314 | } |
1315 | |
1316 | bool RenewDelegationTokenRequestProto::MergePartialFromCodedStream( |
1317 | ::google::protobuf::io::CodedInputStream* input) { |
1318 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1319 | ::google::protobuf::uint32 tag; |
1320 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.RenewDelegationTokenRequestProto) |
1321 | for (;;) { |
1322 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1323 | tag = p.first; |
1324 | if (!p.second) goto handle_unusual; |
1325 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1326 | // required .Hdfs.Internal.TokenProto token = 1; |
1327 | case 1: { |
1328 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1329 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1330 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1331 | input, mutable_token())); |
1332 | } else { |
1333 | goto handle_unusual; |
1334 | } |
1335 | break; |
1336 | } |
1337 | |
1338 | default: { |
1339 | handle_unusual: |
1340 | if (tag == 0) { |
1341 | goto success; |
1342 | } |
1343 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1344 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1345 | break; |
1346 | } |
1347 | } |
1348 | } |
1349 | success: |
1350 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.RenewDelegationTokenRequestProto) |
1351 | return true; |
1352 | failure: |
1353 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.RenewDelegationTokenRequestProto) |
1354 | return false; |
1355 | #undef DO_ |
1356 | } |
1357 | |
1358 | void RenewDelegationTokenRequestProto::SerializeWithCachedSizes( |
1359 | ::google::protobuf::io::CodedOutputStream* output) const { |
1360 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.RenewDelegationTokenRequestProto) |
1361 | ::google::protobuf::uint32 cached_has_bits = 0; |
1362 | (void) cached_has_bits; |
1363 | |
1364 | cached_has_bits = _has_bits_[0]; |
1365 | // required .Hdfs.Internal.TokenProto token = 1; |
1366 | if (cached_has_bits & 0x00000001u) { |
1367 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1368 | 1, this->_internal_token(), output); |
1369 | } |
1370 | |
1371 | if (_internal_metadata_.have_unknown_fields()) { |
1372 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1373 | _internal_metadata_.unknown_fields(), output); |
1374 | } |
1375 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.RenewDelegationTokenRequestProto) |
1376 | } |
1377 | |
1378 | ::google::protobuf::uint8* RenewDelegationTokenRequestProto::InternalSerializeWithCachedSizesToArray( |
1379 | bool deterministic, ::google::protobuf::uint8* target) const { |
1380 | (void)deterministic; // Unused |
1381 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.RenewDelegationTokenRequestProto) |
1382 | ::google::protobuf::uint32 cached_has_bits = 0; |
1383 | (void) cached_has_bits; |
1384 | |
1385 | cached_has_bits = _has_bits_[0]; |
1386 | // required .Hdfs.Internal.TokenProto token = 1; |
1387 | if (cached_has_bits & 0x00000001u) { |
1388 | target = ::google::protobuf::internal::WireFormatLite:: |
1389 | InternalWriteMessageToArray( |
1390 | 1, this->_internal_token(), deterministic, target); |
1391 | } |
1392 | |
1393 | if (_internal_metadata_.have_unknown_fields()) { |
1394 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1395 | _internal_metadata_.unknown_fields(), target); |
1396 | } |
1397 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.RenewDelegationTokenRequestProto) |
1398 | return target; |
1399 | } |
1400 | |
1401 | size_t RenewDelegationTokenRequestProto::ByteSizeLong() const { |
1402 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.RenewDelegationTokenRequestProto) |
1403 | size_t total_size = 0; |
1404 | |
1405 | if (_internal_metadata_.have_unknown_fields()) { |
1406 | total_size += |
1407 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1408 | _internal_metadata_.unknown_fields()); |
1409 | } |
1410 | // required .Hdfs.Internal.TokenProto token = 1; |
1411 | if (has_token()) { |
1412 | total_size += 1 + |
1413 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1414 | *token_); |
1415 | } |
1416 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1417 | SetCachedSize(cached_size); |
1418 | return total_size; |
1419 | } |
1420 | |
1421 | void RenewDelegationTokenRequestProto::MergeFrom(const ::google::protobuf::Message& from) { |
1422 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.RenewDelegationTokenRequestProto) |
1423 | GOOGLE_DCHECK_NE(&from, this); |
1424 | const RenewDelegationTokenRequestProto* source = |
1425 | ::google::protobuf::internal::DynamicCastToGenerated<const RenewDelegationTokenRequestProto>( |
1426 | &from); |
1427 | if (source == NULL) { |
1428 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.RenewDelegationTokenRequestProto) |
1429 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1430 | } else { |
1431 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.RenewDelegationTokenRequestProto) |
1432 | MergeFrom(*source); |
1433 | } |
1434 | } |
1435 | |
1436 | void RenewDelegationTokenRequestProto::MergeFrom(const RenewDelegationTokenRequestProto& from) { |
1437 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.RenewDelegationTokenRequestProto) |
1438 | GOOGLE_DCHECK_NE(&from, this); |
1439 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1440 | ::google::protobuf::uint32 cached_has_bits = 0; |
1441 | (void) cached_has_bits; |
1442 | |
1443 | if (from.has_token()) { |
1444 | mutable_token()->::Hdfs::Internal::TokenProto::MergeFrom(from.token()); |
1445 | } |
1446 | } |
1447 | |
1448 | void RenewDelegationTokenRequestProto::CopyFrom(const ::google::protobuf::Message& from) { |
1449 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.RenewDelegationTokenRequestProto) |
1450 | if (&from == this) return; |
1451 | Clear(); |
1452 | MergeFrom(from); |
1453 | } |
1454 | |
1455 | void RenewDelegationTokenRequestProto::CopyFrom(const RenewDelegationTokenRequestProto& from) { |
1456 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.RenewDelegationTokenRequestProto) |
1457 | if (&from == this) return; |
1458 | Clear(); |
1459 | MergeFrom(from); |
1460 | } |
1461 | |
1462 | bool RenewDelegationTokenRequestProto::IsInitialized() const { |
1463 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
1464 | if (has_token()) { |
1465 | if (!this->token_->IsInitialized()) return false; |
1466 | } |
1467 | return true; |
1468 | } |
1469 | |
1470 | void RenewDelegationTokenRequestProto::Swap(RenewDelegationTokenRequestProto* other) { |
1471 | if (other == this) return; |
1472 | InternalSwap(other); |
1473 | } |
1474 | void RenewDelegationTokenRequestProto::InternalSwap(RenewDelegationTokenRequestProto* other) { |
1475 | using std::swap; |
1476 | swap(token_, other->token_); |
1477 | swap(_has_bits_[0], other->_has_bits_[0]); |
1478 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1479 | } |
1480 | |
1481 | ::google::protobuf::Metadata RenewDelegationTokenRequestProto::GetMetadata() const { |
1482 | protobuf_Security_2eproto::protobuf_AssignDescriptorsOnce(); |
1483 | return ::protobuf_Security_2eproto::file_level_metadata[kIndexInFileMessages]; |
1484 | } |
1485 | |
1486 | |
1487 | // =================================================================== |
1488 | |
1489 | void RenewDelegationTokenResponseProto::InitAsDefaultInstance() { |
1490 | } |
1491 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1492 | const int RenewDelegationTokenResponseProto::kNewExpiryTimeFieldNumber; |
1493 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1494 | |
1495 | RenewDelegationTokenResponseProto::RenewDelegationTokenResponseProto() |
1496 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1497 | ::google::protobuf::internal::InitSCC( |
1498 | &protobuf_Security_2eproto::scc_info_RenewDelegationTokenResponseProto.base); |
1499 | SharedCtor(); |
1500 | // @@protoc_insertion_point(constructor:Hdfs.Internal.RenewDelegationTokenResponseProto) |
1501 | } |
1502 | RenewDelegationTokenResponseProto::RenewDelegationTokenResponseProto(const RenewDelegationTokenResponseProto& from) |
1503 | : ::google::protobuf::Message(), |
1504 | _internal_metadata_(NULL), |
1505 | _has_bits_(from._has_bits_) { |
1506 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1507 | newexpirytime_ = from.newexpirytime_; |
1508 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.RenewDelegationTokenResponseProto) |
1509 | } |
1510 | |
1511 | void RenewDelegationTokenResponseProto::SharedCtor() { |
1512 | newexpirytime_ = GOOGLE_ULONGLONG(0); |
1513 | } |
1514 | |
1515 | RenewDelegationTokenResponseProto::~RenewDelegationTokenResponseProto() { |
1516 | // @@protoc_insertion_point(destructor:Hdfs.Internal.RenewDelegationTokenResponseProto) |
1517 | SharedDtor(); |
1518 | } |
1519 | |
1520 | void RenewDelegationTokenResponseProto::SharedDtor() { |
1521 | } |
1522 | |
1523 | void RenewDelegationTokenResponseProto::SetCachedSize(int size) const { |
1524 | _cached_size_.Set(size); |
1525 | } |
1526 | const ::google::protobuf::Descriptor* RenewDelegationTokenResponseProto::descriptor() { |
1527 | ::protobuf_Security_2eproto::protobuf_AssignDescriptorsOnce(); |
1528 | return ::protobuf_Security_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1529 | } |
1530 | |
1531 | const RenewDelegationTokenResponseProto& RenewDelegationTokenResponseProto::default_instance() { |
1532 | ::google::protobuf::internal::InitSCC(&protobuf_Security_2eproto::scc_info_RenewDelegationTokenResponseProto.base); |
1533 | return *internal_default_instance(); |
1534 | } |
1535 | |
1536 | |
1537 | void RenewDelegationTokenResponseProto::Clear() { |
1538 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.RenewDelegationTokenResponseProto) |
1539 | ::google::protobuf::uint32 cached_has_bits = 0; |
1540 | // Prevent compiler warnings about cached_has_bits being unused |
1541 | (void) cached_has_bits; |
1542 | |
1543 | newexpirytime_ = GOOGLE_ULONGLONG(0); |
1544 | _has_bits_.Clear(); |
1545 | _internal_metadata_.Clear(); |
1546 | } |
1547 | |
1548 | bool RenewDelegationTokenResponseProto::MergePartialFromCodedStream( |
1549 | ::google::protobuf::io::CodedInputStream* input) { |
1550 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1551 | ::google::protobuf::uint32 tag; |
1552 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.RenewDelegationTokenResponseProto) |
1553 | for (;;) { |
1554 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1555 | tag = p.first; |
1556 | if (!p.second) goto handle_unusual; |
1557 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1558 | // required uint64 newExpiryTime = 1; |
1559 | case 1: { |
1560 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1561 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
1562 | set_has_newexpirytime(); |
1563 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1564 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
1565 | input, &newexpirytime_))); |
1566 | } else { |
1567 | goto handle_unusual; |
1568 | } |
1569 | break; |
1570 | } |
1571 | |
1572 | default: { |
1573 | handle_unusual: |
1574 | if (tag == 0) { |
1575 | goto success; |
1576 | } |
1577 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1578 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1579 | break; |
1580 | } |
1581 | } |
1582 | } |
1583 | success: |
1584 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.RenewDelegationTokenResponseProto) |
1585 | return true; |
1586 | failure: |
1587 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.RenewDelegationTokenResponseProto) |
1588 | return false; |
1589 | #undef DO_ |
1590 | } |
1591 | |
1592 | void RenewDelegationTokenResponseProto::SerializeWithCachedSizes( |
1593 | ::google::protobuf::io::CodedOutputStream* output) const { |
1594 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.RenewDelegationTokenResponseProto) |
1595 | ::google::protobuf::uint32 cached_has_bits = 0; |
1596 | (void) cached_has_bits; |
1597 | |
1598 | cached_has_bits = _has_bits_[0]; |
1599 | // required uint64 newExpiryTime = 1; |
1600 | if (cached_has_bits & 0x00000001u) { |
1601 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->newexpirytime(), output); |
1602 | } |
1603 | |
1604 | if (_internal_metadata_.have_unknown_fields()) { |
1605 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1606 | _internal_metadata_.unknown_fields(), output); |
1607 | } |
1608 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.RenewDelegationTokenResponseProto) |
1609 | } |
1610 | |
1611 | ::google::protobuf::uint8* RenewDelegationTokenResponseProto::InternalSerializeWithCachedSizesToArray( |
1612 | bool deterministic, ::google::protobuf::uint8* target) const { |
1613 | (void)deterministic; // Unused |
1614 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.RenewDelegationTokenResponseProto) |
1615 | ::google::protobuf::uint32 cached_has_bits = 0; |
1616 | (void) cached_has_bits; |
1617 | |
1618 | cached_has_bits = _has_bits_[0]; |
1619 | // required uint64 newExpiryTime = 1; |
1620 | if (cached_has_bits & 0x00000001u) { |
1621 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->newexpirytime(), target); |
1622 | } |
1623 | |
1624 | if (_internal_metadata_.have_unknown_fields()) { |
1625 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1626 | _internal_metadata_.unknown_fields(), target); |
1627 | } |
1628 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.RenewDelegationTokenResponseProto) |
1629 | return target; |
1630 | } |
1631 | |
1632 | size_t RenewDelegationTokenResponseProto::ByteSizeLong() const { |
1633 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.RenewDelegationTokenResponseProto) |
1634 | size_t total_size = 0; |
1635 | |
1636 | if (_internal_metadata_.have_unknown_fields()) { |
1637 | total_size += |
1638 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1639 | _internal_metadata_.unknown_fields()); |
1640 | } |
1641 | // required uint64 newExpiryTime = 1; |
1642 | if (has_newexpirytime()) { |
1643 | total_size += 1 + |
1644 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1645 | this->newexpirytime()); |
1646 | } |
1647 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1648 | SetCachedSize(cached_size); |
1649 | return total_size; |
1650 | } |
1651 | |
1652 | void RenewDelegationTokenResponseProto::MergeFrom(const ::google::protobuf::Message& from) { |
1653 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.RenewDelegationTokenResponseProto) |
1654 | GOOGLE_DCHECK_NE(&from, this); |
1655 | const RenewDelegationTokenResponseProto* source = |
1656 | ::google::protobuf::internal::DynamicCastToGenerated<const RenewDelegationTokenResponseProto>( |
1657 | &from); |
1658 | if (source == NULL) { |
1659 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.RenewDelegationTokenResponseProto) |
1660 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1661 | } else { |
1662 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.RenewDelegationTokenResponseProto) |
1663 | MergeFrom(*source); |
1664 | } |
1665 | } |
1666 | |
1667 | void RenewDelegationTokenResponseProto::MergeFrom(const RenewDelegationTokenResponseProto& from) { |
1668 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.RenewDelegationTokenResponseProto) |
1669 | GOOGLE_DCHECK_NE(&from, this); |
1670 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1671 | ::google::protobuf::uint32 cached_has_bits = 0; |
1672 | (void) cached_has_bits; |
1673 | |
1674 | if (from.has_newexpirytime()) { |
1675 | set_newexpirytime(from.newexpirytime()); |
1676 | } |
1677 | } |
1678 | |
1679 | void RenewDelegationTokenResponseProto::CopyFrom(const ::google::protobuf::Message& from) { |
1680 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.RenewDelegationTokenResponseProto) |
1681 | if (&from == this) return; |
1682 | Clear(); |
1683 | MergeFrom(from); |
1684 | } |
1685 | |
1686 | void RenewDelegationTokenResponseProto::CopyFrom(const RenewDelegationTokenResponseProto& from) { |
1687 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.RenewDelegationTokenResponseProto) |
1688 | if (&from == this) return; |
1689 | Clear(); |
1690 | MergeFrom(from); |
1691 | } |
1692 | |
1693 | bool RenewDelegationTokenResponseProto::IsInitialized() const { |
1694 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
1695 | return true; |
1696 | } |
1697 | |
1698 | void RenewDelegationTokenResponseProto::Swap(RenewDelegationTokenResponseProto* other) { |
1699 | if (other == this) return; |
1700 | InternalSwap(other); |
1701 | } |
1702 | void RenewDelegationTokenResponseProto::InternalSwap(RenewDelegationTokenResponseProto* other) { |
1703 | using std::swap; |
1704 | swap(newexpirytime_, other->newexpirytime_); |
1705 | swap(_has_bits_[0], other->_has_bits_[0]); |
1706 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1707 | } |
1708 | |
1709 | ::google::protobuf::Metadata RenewDelegationTokenResponseProto::GetMetadata() const { |
1710 | protobuf_Security_2eproto::protobuf_AssignDescriptorsOnce(); |
1711 | return ::protobuf_Security_2eproto::file_level_metadata[kIndexInFileMessages]; |
1712 | } |
1713 | |
1714 | |
1715 | // =================================================================== |
1716 | |
1717 | void CancelDelegationTokenRequestProto::InitAsDefaultInstance() { |
1718 | ::Hdfs::Internal::_CancelDelegationTokenRequestProto_default_instance_._instance.get_mutable()->token_ = const_cast< ::Hdfs::Internal::TokenProto*>( |
1719 | ::Hdfs::Internal::TokenProto::internal_default_instance()); |
1720 | } |
1721 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1722 | const int CancelDelegationTokenRequestProto::kTokenFieldNumber; |
1723 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1724 | |
1725 | CancelDelegationTokenRequestProto::CancelDelegationTokenRequestProto() |
1726 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1727 | ::google::protobuf::internal::InitSCC( |
1728 | &protobuf_Security_2eproto::scc_info_CancelDelegationTokenRequestProto.base); |
1729 | SharedCtor(); |
1730 | // @@protoc_insertion_point(constructor:Hdfs.Internal.CancelDelegationTokenRequestProto) |
1731 | } |
1732 | CancelDelegationTokenRequestProto::CancelDelegationTokenRequestProto(const CancelDelegationTokenRequestProto& from) |
1733 | : ::google::protobuf::Message(), |
1734 | _internal_metadata_(NULL), |
1735 | _has_bits_(from._has_bits_) { |
1736 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1737 | if (from.has_token()) { |
1738 | token_ = new ::Hdfs::Internal::TokenProto(*from.token_); |
1739 | } else { |
1740 | token_ = NULL; |
1741 | } |
1742 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.CancelDelegationTokenRequestProto) |
1743 | } |
1744 | |
1745 | void CancelDelegationTokenRequestProto::SharedCtor() { |
1746 | token_ = NULL; |
1747 | } |
1748 | |
1749 | CancelDelegationTokenRequestProto::~CancelDelegationTokenRequestProto() { |
1750 | // @@protoc_insertion_point(destructor:Hdfs.Internal.CancelDelegationTokenRequestProto) |
1751 | SharedDtor(); |
1752 | } |
1753 | |
1754 | void CancelDelegationTokenRequestProto::SharedDtor() { |
1755 | if (this != internal_default_instance()) delete token_; |
1756 | } |
1757 | |
1758 | void CancelDelegationTokenRequestProto::SetCachedSize(int size) const { |
1759 | _cached_size_.Set(size); |
1760 | } |
1761 | const ::google::protobuf::Descriptor* CancelDelegationTokenRequestProto::descriptor() { |
1762 | ::protobuf_Security_2eproto::protobuf_AssignDescriptorsOnce(); |
1763 | return ::protobuf_Security_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1764 | } |
1765 | |
1766 | const CancelDelegationTokenRequestProto& CancelDelegationTokenRequestProto::default_instance() { |
1767 | ::google::protobuf::internal::InitSCC(&protobuf_Security_2eproto::scc_info_CancelDelegationTokenRequestProto.base); |
1768 | return *internal_default_instance(); |
1769 | } |
1770 | |
1771 | |
1772 | void CancelDelegationTokenRequestProto::Clear() { |
1773 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.CancelDelegationTokenRequestProto) |
1774 | ::google::protobuf::uint32 cached_has_bits = 0; |
1775 | // Prevent compiler warnings about cached_has_bits being unused |
1776 | (void) cached_has_bits; |
1777 | |
1778 | cached_has_bits = _has_bits_[0]; |
1779 | if (cached_has_bits & 0x00000001u) { |
1780 | GOOGLE_DCHECK(token_ != NULL); |
1781 | token_->Clear(); |
1782 | } |
1783 | _has_bits_.Clear(); |
1784 | _internal_metadata_.Clear(); |
1785 | } |
1786 | |
1787 | bool CancelDelegationTokenRequestProto::MergePartialFromCodedStream( |
1788 | ::google::protobuf::io::CodedInputStream* input) { |
1789 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1790 | ::google::protobuf::uint32 tag; |
1791 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.CancelDelegationTokenRequestProto) |
1792 | for (;;) { |
1793 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1794 | tag = p.first; |
1795 | if (!p.second) goto handle_unusual; |
1796 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1797 | // required .Hdfs.Internal.TokenProto token = 1; |
1798 | case 1: { |
1799 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1800 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1801 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1802 | input, mutable_token())); |
1803 | } else { |
1804 | goto handle_unusual; |
1805 | } |
1806 | break; |
1807 | } |
1808 | |
1809 | default: { |
1810 | handle_unusual: |
1811 | if (tag == 0) { |
1812 | goto success; |
1813 | } |
1814 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1815 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1816 | break; |
1817 | } |
1818 | } |
1819 | } |
1820 | success: |
1821 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.CancelDelegationTokenRequestProto) |
1822 | return true; |
1823 | failure: |
1824 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.CancelDelegationTokenRequestProto) |
1825 | return false; |
1826 | #undef DO_ |
1827 | } |
1828 | |
1829 | void CancelDelegationTokenRequestProto::SerializeWithCachedSizes( |
1830 | ::google::protobuf::io::CodedOutputStream* output) const { |
1831 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.CancelDelegationTokenRequestProto) |
1832 | ::google::protobuf::uint32 cached_has_bits = 0; |
1833 | (void) cached_has_bits; |
1834 | |
1835 | cached_has_bits = _has_bits_[0]; |
1836 | // required .Hdfs.Internal.TokenProto token = 1; |
1837 | if (cached_has_bits & 0x00000001u) { |
1838 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1839 | 1, this->_internal_token(), output); |
1840 | } |
1841 | |
1842 | if (_internal_metadata_.have_unknown_fields()) { |
1843 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1844 | _internal_metadata_.unknown_fields(), output); |
1845 | } |
1846 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.CancelDelegationTokenRequestProto) |
1847 | } |
1848 | |
1849 | ::google::protobuf::uint8* CancelDelegationTokenRequestProto::InternalSerializeWithCachedSizesToArray( |
1850 | bool deterministic, ::google::protobuf::uint8* target) const { |
1851 | (void)deterministic; // Unused |
1852 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.CancelDelegationTokenRequestProto) |
1853 | ::google::protobuf::uint32 cached_has_bits = 0; |
1854 | (void) cached_has_bits; |
1855 | |
1856 | cached_has_bits = _has_bits_[0]; |
1857 | // required .Hdfs.Internal.TokenProto token = 1; |
1858 | if (cached_has_bits & 0x00000001u) { |
1859 | target = ::google::protobuf::internal::WireFormatLite:: |
1860 | InternalWriteMessageToArray( |
1861 | 1, this->_internal_token(), deterministic, 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.CancelDelegationTokenRequestProto) |
1869 | return target; |
1870 | } |
1871 | |
1872 | size_t CancelDelegationTokenRequestProto::ByteSizeLong() const { |
1873 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.CancelDelegationTokenRequestProto) |
1874 | size_t total_size = 0; |
1875 | |
1876 | if (_internal_metadata_.have_unknown_fields()) { |
1877 | total_size += |
1878 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1879 | _internal_metadata_.unknown_fields()); |
1880 | } |
1881 | // required .Hdfs.Internal.TokenProto token = 1; |
1882 | if (has_token()) { |
1883 | total_size += 1 + |
1884 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1885 | *token_); |
1886 | } |
1887 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1888 | SetCachedSize(cached_size); |
1889 | return total_size; |
1890 | } |
1891 | |
1892 | void CancelDelegationTokenRequestProto::MergeFrom(const ::google::protobuf::Message& from) { |
1893 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.CancelDelegationTokenRequestProto) |
1894 | GOOGLE_DCHECK_NE(&from, this); |
1895 | const CancelDelegationTokenRequestProto* source = |
1896 | ::google::protobuf::internal::DynamicCastToGenerated<const CancelDelegationTokenRequestProto>( |
1897 | &from); |
1898 | if (source == NULL) { |
1899 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.CancelDelegationTokenRequestProto) |
1900 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1901 | } else { |
1902 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.CancelDelegationTokenRequestProto) |
1903 | MergeFrom(*source); |
1904 | } |
1905 | } |
1906 | |
1907 | void CancelDelegationTokenRequestProto::MergeFrom(const CancelDelegationTokenRequestProto& from) { |
1908 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.CancelDelegationTokenRequestProto) |
1909 | GOOGLE_DCHECK_NE(&from, this); |
1910 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1911 | ::google::protobuf::uint32 cached_has_bits = 0; |
1912 | (void) cached_has_bits; |
1913 | |
1914 | if (from.has_token()) { |
1915 | mutable_token()->::Hdfs::Internal::TokenProto::MergeFrom(from.token()); |
1916 | } |
1917 | } |
1918 | |
1919 | void CancelDelegationTokenRequestProto::CopyFrom(const ::google::protobuf::Message& from) { |
1920 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.CancelDelegationTokenRequestProto) |
1921 | if (&from == this) return; |
1922 | Clear(); |
1923 | MergeFrom(from); |
1924 | } |
1925 | |
1926 | void CancelDelegationTokenRequestProto::CopyFrom(const CancelDelegationTokenRequestProto& from) { |
1927 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.CancelDelegationTokenRequestProto) |
1928 | if (&from == this) return; |
1929 | Clear(); |
1930 | MergeFrom(from); |
1931 | } |
1932 | |
1933 | bool CancelDelegationTokenRequestProto::IsInitialized() const { |
1934 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
1935 | if (has_token()) { |
1936 | if (!this->token_->IsInitialized()) return false; |
1937 | } |
1938 | return true; |
1939 | } |
1940 | |
1941 | void CancelDelegationTokenRequestProto::Swap(CancelDelegationTokenRequestProto* other) { |
1942 | if (other == this) return; |
1943 | InternalSwap(other); |
1944 | } |
1945 | void CancelDelegationTokenRequestProto::InternalSwap(CancelDelegationTokenRequestProto* other) { |
1946 | using std::swap; |
1947 | swap(token_, other->token_); |
1948 | swap(_has_bits_[0], other->_has_bits_[0]); |
1949 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1950 | } |
1951 | |
1952 | ::google::protobuf::Metadata CancelDelegationTokenRequestProto::GetMetadata() const { |
1953 | protobuf_Security_2eproto::protobuf_AssignDescriptorsOnce(); |
1954 | return ::protobuf_Security_2eproto::file_level_metadata[kIndexInFileMessages]; |
1955 | } |
1956 | |
1957 | |
1958 | // =================================================================== |
1959 | |
1960 | void CancelDelegationTokenResponseProto::InitAsDefaultInstance() { |
1961 | } |
1962 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1963 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1964 | |
1965 | CancelDelegationTokenResponseProto::CancelDelegationTokenResponseProto() |
1966 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1967 | ::google::protobuf::internal::InitSCC( |
1968 | &protobuf_Security_2eproto::scc_info_CancelDelegationTokenResponseProto.base); |
1969 | SharedCtor(); |
1970 | // @@protoc_insertion_point(constructor:Hdfs.Internal.CancelDelegationTokenResponseProto) |
1971 | } |
1972 | CancelDelegationTokenResponseProto::CancelDelegationTokenResponseProto(const CancelDelegationTokenResponseProto& from) |
1973 | : ::google::protobuf::Message(), |
1974 | _internal_metadata_(NULL), |
1975 | _has_bits_(from._has_bits_) { |
1976 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1977 | // @@protoc_insertion_point(copy_constructor:Hdfs.Internal.CancelDelegationTokenResponseProto) |
1978 | } |
1979 | |
1980 | void CancelDelegationTokenResponseProto::SharedCtor() { |
1981 | } |
1982 | |
1983 | CancelDelegationTokenResponseProto::~CancelDelegationTokenResponseProto() { |
1984 | // @@protoc_insertion_point(destructor:Hdfs.Internal.CancelDelegationTokenResponseProto) |
1985 | SharedDtor(); |
1986 | } |
1987 | |
1988 | void CancelDelegationTokenResponseProto::SharedDtor() { |
1989 | } |
1990 | |
1991 | void CancelDelegationTokenResponseProto::SetCachedSize(int size) const { |
1992 | _cached_size_.Set(size); |
1993 | } |
1994 | const ::google::protobuf::Descriptor* CancelDelegationTokenResponseProto::descriptor() { |
1995 | ::protobuf_Security_2eproto::protobuf_AssignDescriptorsOnce(); |
1996 | return ::protobuf_Security_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1997 | } |
1998 | |
1999 | const CancelDelegationTokenResponseProto& CancelDelegationTokenResponseProto::default_instance() { |
2000 | ::google::protobuf::internal::InitSCC(&protobuf_Security_2eproto::scc_info_CancelDelegationTokenResponseProto.base); |
2001 | return *internal_default_instance(); |
2002 | } |
2003 | |
2004 | |
2005 | void CancelDelegationTokenResponseProto::Clear() { |
2006 | // @@protoc_insertion_point(message_clear_start:Hdfs.Internal.CancelDelegationTokenResponseProto) |
2007 | ::google::protobuf::uint32 cached_has_bits = 0; |
2008 | // Prevent compiler warnings about cached_has_bits being unused |
2009 | (void) cached_has_bits; |
2010 | |
2011 | _has_bits_.Clear(); |
2012 | _internal_metadata_.Clear(); |
2013 | } |
2014 | |
2015 | bool CancelDelegationTokenResponseProto::MergePartialFromCodedStream( |
2016 | ::google::protobuf::io::CodedInputStream* input) { |
2017 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2018 | ::google::protobuf::uint32 tag; |
2019 | // @@protoc_insertion_point(parse_start:Hdfs.Internal.CancelDelegationTokenResponseProto) |
2020 | for (;;) { |
2021 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2022 | tag = p.first; |
2023 | if (!p.second) goto handle_unusual; |
2024 | handle_unusual: |
2025 | if (tag == 0) { |
2026 | goto success; |
2027 | } |
2028 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2029 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2030 | } |
2031 | success: |
2032 | // @@protoc_insertion_point(parse_success:Hdfs.Internal.CancelDelegationTokenResponseProto) |
2033 | return true; |
2034 | failure: |
2035 | // @@protoc_insertion_point(parse_failure:Hdfs.Internal.CancelDelegationTokenResponseProto) |
2036 | return false; |
2037 | #undef DO_ |
2038 | } |
2039 | |
2040 | void CancelDelegationTokenResponseProto::SerializeWithCachedSizes( |
2041 | ::google::protobuf::io::CodedOutputStream* output) const { |
2042 | // @@protoc_insertion_point(serialize_start:Hdfs.Internal.CancelDelegationTokenResponseProto) |
2043 | ::google::protobuf::uint32 cached_has_bits = 0; |
2044 | (void) cached_has_bits; |
2045 | |
2046 | if (_internal_metadata_.have_unknown_fields()) { |
2047 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2048 | _internal_metadata_.unknown_fields(), output); |
2049 | } |
2050 | // @@protoc_insertion_point(serialize_end:Hdfs.Internal.CancelDelegationTokenResponseProto) |
2051 | } |
2052 | |
2053 | ::google::protobuf::uint8* CancelDelegationTokenResponseProto::InternalSerializeWithCachedSizesToArray( |
2054 | bool deterministic, ::google::protobuf::uint8* target) const { |
2055 | (void)deterministic; // Unused |
2056 | // @@protoc_insertion_point(serialize_to_array_start:Hdfs.Internal.CancelDelegationTokenResponseProto) |
2057 | ::google::protobuf::uint32 cached_has_bits = 0; |
2058 | (void) cached_has_bits; |
2059 | |
2060 | if (_internal_metadata_.have_unknown_fields()) { |
2061 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2062 | _internal_metadata_.unknown_fields(), target); |
2063 | } |
2064 | // @@protoc_insertion_point(serialize_to_array_end:Hdfs.Internal.CancelDelegationTokenResponseProto) |
2065 | return target; |
2066 | } |
2067 | |
2068 | size_t CancelDelegationTokenResponseProto::ByteSizeLong() const { |
2069 | // @@protoc_insertion_point(message_byte_size_start:Hdfs.Internal.CancelDelegationTokenResponseProto) |
2070 | size_t total_size = 0; |
2071 | |
2072 | if (_internal_metadata_.have_unknown_fields()) { |
2073 | total_size += |
2074 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2075 | _internal_metadata_.unknown_fields()); |
2076 | } |
2077 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2078 | SetCachedSize(cached_size); |
2079 | return total_size; |
2080 | } |
2081 | |
2082 | void CancelDelegationTokenResponseProto::MergeFrom(const ::google::protobuf::Message& from) { |
2083 | // @@protoc_insertion_point(generalized_merge_from_start:Hdfs.Internal.CancelDelegationTokenResponseProto) |
2084 | GOOGLE_DCHECK_NE(&from, this); |
2085 | const CancelDelegationTokenResponseProto* source = |
2086 | ::google::protobuf::internal::DynamicCastToGenerated<const CancelDelegationTokenResponseProto>( |
2087 | &from); |
2088 | if (source == NULL) { |
2089 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hdfs.Internal.CancelDelegationTokenResponseProto) |
2090 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2091 | } else { |
2092 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Hdfs.Internal.CancelDelegationTokenResponseProto) |
2093 | MergeFrom(*source); |
2094 | } |
2095 | } |
2096 | |
2097 | void CancelDelegationTokenResponseProto::MergeFrom(const CancelDelegationTokenResponseProto& from) { |
2098 | // @@protoc_insertion_point(class_specific_merge_from_start:Hdfs.Internal.CancelDelegationTokenResponseProto) |
2099 | GOOGLE_DCHECK_NE(&from, this); |
2100 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2101 | ::google::protobuf::uint32 cached_has_bits = 0; |
2102 | (void) cached_has_bits; |
2103 | |
2104 | } |
2105 | |
2106 | void CancelDelegationTokenResponseProto::CopyFrom(const ::google::protobuf::Message& from) { |
2107 | // @@protoc_insertion_point(generalized_copy_from_start:Hdfs.Internal.CancelDelegationTokenResponseProto) |
2108 | if (&from == this) return; |
2109 | Clear(); |
2110 | MergeFrom(from); |
2111 | } |
2112 | |
2113 | void CancelDelegationTokenResponseProto::CopyFrom(const CancelDelegationTokenResponseProto& from) { |
2114 | // @@protoc_insertion_point(class_specific_copy_from_start:Hdfs.Internal.CancelDelegationTokenResponseProto) |
2115 | if (&from == this) return; |
2116 | Clear(); |
2117 | MergeFrom(from); |
2118 | } |
2119 | |
2120 | bool CancelDelegationTokenResponseProto::IsInitialized() const { |
2121 | return true; |
2122 | } |
2123 | |
2124 | void CancelDelegationTokenResponseProto::Swap(CancelDelegationTokenResponseProto* other) { |
2125 | if (other == this) return; |
2126 | InternalSwap(other); |
2127 | } |
2128 | void CancelDelegationTokenResponseProto::InternalSwap(CancelDelegationTokenResponseProto* other) { |
2129 | using std::swap; |
2130 | swap(_has_bits_[0], other->_has_bits_[0]); |
2131 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2132 | } |
2133 | |
2134 | ::google::protobuf::Metadata CancelDelegationTokenResponseProto::GetMetadata() const { |
2135 | protobuf_Security_2eproto::protobuf_AssignDescriptorsOnce(); |
2136 | return ::protobuf_Security_2eproto::file_level_metadata[kIndexInFileMessages]; |
2137 | } |
2138 | |
2139 | |
2140 | // @@protoc_insertion_point(namespace_scope) |
2141 | } // namespace Internal |
2142 | } // namespace Hdfs |
2143 | namespace google { |
2144 | namespace protobuf { |
2145 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::TokenProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::TokenProto >(Arena* arena) { |
2146 | return Arena::CreateInternal< ::Hdfs::Internal::TokenProto >(arena); |
2147 | } |
2148 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::GetDelegationTokenRequestProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::GetDelegationTokenRequestProto >(Arena* arena) { |
2149 | return Arena::CreateInternal< ::Hdfs::Internal::GetDelegationTokenRequestProto >(arena); |
2150 | } |
2151 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::GetDelegationTokenResponseProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::GetDelegationTokenResponseProto >(Arena* arena) { |
2152 | return Arena::CreateInternal< ::Hdfs::Internal::GetDelegationTokenResponseProto >(arena); |
2153 | } |
2154 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::RenewDelegationTokenRequestProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::RenewDelegationTokenRequestProto >(Arena* arena) { |
2155 | return Arena::CreateInternal< ::Hdfs::Internal::RenewDelegationTokenRequestProto >(arena); |
2156 | } |
2157 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::RenewDelegationTokenResponseProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::RenewDelegationTokenResponseProto >(Arena* arena) { |
2158 | return Arena::CreateInternal< ::Hdfs::Internal::RenewDelegationTokenResponseProto >(arena); |
2159 | } |
2160 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::CancelDelegationTokenRequestProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::CancelDelegationTokenRequestProto >(Arena* arena) { |
2161 | return Arena::CreateInternal< ::Hdfs::Internal::CancelDelegationTokenRequestProto >(arena); |
2162 | } |
2163 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hdfs::Internal::CancelDelegationTokenResponseProto* Arena::CreateMaybeMessage< ::Hdfs::Internal::CancelDelegationTokenResponseProto >(Arena* arena) { |
2164 | return Arena::CreateInternal< ::Hdfs::Internal::CancelDelegationTokenResponseProto >(arena); |
2165 | } |
2166 | } // namespace protobuf |
2167 | } // namespace google |
2168 | |
2169 | // @@protoc_insertion_point(global_scope) |
2170 | |