1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: ProtobufRpcEngine.proto |
3 | |
4 | #ifndef PROTOBUF_INCLUDED_ProtobufRpcEngine_2eproto |
5 | #define PROTOBUF_INCLUDED_ProtobufRpcEngine_2eproto |
6 | |
7 | #include <string> |
8 | |
9 | #include <google/protobuf/stubs/common.h> |
10 | |
11 | #if GOOGLE_PROTOBUF_VERSION < 3006001 |
12 | #error This file was generated by a newer version of protoc which is |
13 | #error incompatible with your Protocol Buffer headers. Please update |
14 | #error your headers. |
15 | #endif |
16 | #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
17 | #error This file was generated by an older version of protoc which is |
18 | #error incompatible with your Protocol Buffer headers. Please |
19 | #error regenerate this file with a newer version of protoc. |
20 | #endif |
21 | |
22 | #include <google/protobuf/io/coded_stream.h> |
23 | #include <google/protobuf/arena.h> |
24 | #include <google/protobuf/arenastring.h> |
25 | #include <google/protobuf/generated_message_table_driven.h> |
26 | #include <google/protobuf/generated_message_util.h> |
27 | #include <google/protobuf/inlined_string_field.h> |
28 | #include <google/protobuf/metadata.h> |
29 | #include <google/protobuf/message.h> |
30 | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
31 | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
32 | #include <google/protobuf/unknown_field_set.h> |
33 | // @@protoc_insertion_point(includes) |
34 | #define PROTOBUF_INTERNAL_EXPORT_protobuf_ProtobufRpcEngine_2eproto |
35 | |
36 | namespace protobuf_ProtobufRpcEngine_2eproto { |
37 | // Internal implementation detail -- do not use these members. |
38 | struct TableStruct { |
39 | static const ::google::protobuf::internal::ParseTableField entries[]; |
40 | static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; |
41 | static const ::google::protobuf::internal::ParseTable schema[1]; |
42 | static const ::google::protobuf::internal::FieldMetadata field_metadata[]; |
43 | static const ::google::protobuf::internal::SerializationTable serialization_table[]; |
44 | static const ::google::protobuf::uint32 offsets[]; |
45 | }; |
46 | void AddDescriptors(); |
47 | } // namespace protobuf_ProtobufRpcEngine_2eproto |
48 | namespace Hdfs { |
49 | namespace Internal { |
50 | class RequestHeaderProto; |
51 | class ; |
52 | extern RequestHeaderProtoDefaultTypeInternal ; |
53 | } // namespace Internal |
54 | } // namespace Hdfs |
55 | namespace google { |
56 | namespace protobuf { |
57 | template<> ::Hdfs::Internal::RequestHeaderProto* Arena::CreateMaybeMessage<::Hdfs::Internal::RequestHeaderProto>(Arena*); |
58 | } // namespace protobuf |
59 | } // namespace google |
60 | namespace Hdfs { |
61 | namespace Internal { |
62 | |
63 | // =================================================================== |
64 | |
65 | class : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Hdfs.Internal.RequestHeaderProto) */ { |
66 | public: |
67 | (); |
68 | virtual (); |
69 | |
70 | (const RequestHeaderProto& from); |
71 | |
72 | inline RequestHeaderProto& (const RequestHeaderProto& from) { |
73 | CopyFrom(from); |
74 | return *this; |
75 | } |
76 | #if LANG_CXX11 |
77 | (RequestHeaderProto&& from) noexcept |
78 | : RequestHeaderProto() { |
79 | *this = ::std::move(from); |
80 | } |
81 | |
82 | inline RequestHeaderProto& (RequestHeaderProto&& from) noexcept { |
83 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
84 | if (this != &from) InternalSwap(&from); |
85 | } else { |
86 | CopyFrom(from); |
87 | } |
88 | return *this; |
89 | } |
90 | #endif |
91 | inline const ::google::protobuf::UnknownFieldSet& () const { |
92 | return _internal_metadata_.unknown_fields(); |
93 | } |
94 | inline ::google::protobuf::UnknownFieldSet* () { |
95 | return _internal_metadata_.mutable_unknown_fields(); |
96 | } |
97 | |
98 | static const ::google::protobuf::Descriptor* (); |
99 | static const RequestHeaderProto& (); |
100 | |
101 | static void (); // FOR INTERNAL USE ONLY |
102 | static inline const RequestHeaderProto* () { |
103 | return reinterpret_cast<const RequestHeaderProto*>( |
104 | &_RequestHeaderProto_default_instance_); |
105 | } |
106 | static constexpr int = |
107 | 0; |
108 | |
109 | void (RequestHeaderProto* other); |
110 | friend void (RequestHeaderProto& a, RequestHeaderProto& b) { |
111 | a.Swap(&b); |
112 | } |
113 | |
114 | // implements Message ---------------------------------------------- |
115 | |
116 | inline RequestHeaderProto* () const final { |
117 | return CreateMaybeMessage<RequestHeaderProto>(NULL); |
118 | } |
119 | |
120 | RequestHeaderProto* (::google::protobuf::Arena* arena) const final { |
121 | return CreateMaybeMessage<RequestHeaderProto>(arena); |
122 | } |
123 | void (const ::google::protobuf::Message& from) final; |
124 | void (const ::google::protobuf::Message& from) final; |
125 | void (const RequestHeaderProto& from); |
126 | void (const RequestHeaderProto& from); |
127 | void () final; |
128 | bool () const final; |
129 | |
130 | size_t () const final; |
131 | bool ( |
132 | ::google::protobuf::io::CodedInputStream* input) final; |
133 | void ( |
134 | ::google::protobuf::io::CodedOutputStream* output) const final; |
135 | ::google::protobuf::uint8* ( |
136 | bool deterministic, ::google::protobuf::uint8* target) const final; |
137 | int () const final { return _cached_size_.Get(); } |
138 | |
139 | private: |
140 | void (); |
141 | void (); |
142 | void (int size) const final; |
143 | void (RequestHeaderProto* other); |
144 | private: |
145 | inline ::google::protobuf::Arena* () const { |
146 | return NULL; |
147 | } |
148 | inline void* () const { |
149 | return NULL; |
150 | } |
151 | public: |
152 | |
153 | ::google::protobuf::Metadata () const final; |
154 | |
155 | // nested types ---------------------------------------------------- |
156 | |
157 | // accessors ------------------------------------------------------- |
158 | |
159 | // required string methodName = 1; |
160 | bool has_methodname() const; |
161 | void clear_methodname(); |
162 | static const int = 1; |
163 | const ::std::string& methodname() const; |
164 | void set_methodname(const ::std::string& value); |
165 | #if LANG_CXX11 |
166 | void set_methodname(::std::string&& value); |
167 | #endif |
168 | void set_methodname(const char* value); |
169 | void set_methodname(const char* value, size_t size); |
170 | ::std::string* mutable_methodname(); |
171 | ::std::string* release_methodname(); |
172 | void set_allocated_methodname(::std::string* methodname); |
173 | |
174 | // required string declaringClassProtocolName = 2; |
175 | bool has_declaringclassprotocolname() const; |
176 | void clear_declaringclassprotocolname(); |
177 | static const int = 2; |
178 | const ::std::string& declaringclassprotocolname() const; |
179 | void set_declaringclassprotocolname(const ::std::string& value); |
180 | #if LANG_CXX11 |
181 | void set_declaringclassprotocolname(::std::string&& value); |
182 | #endif |
183 | void set_declaringclassprotocolname(const char* value); |
184 | void set_declaringclassprotocolname(const char* value, size_t size); |
185 | ::std::string* mutable_declaringclassprotocolname(); |
186 | ::std::string* release_declaringclassprotocolname(); |
187 | void set_allocated_declaringclassprotocolname(::std::string* declaringclassprotocolname); |
188 | |
189 | // required uint64 clientProtocolVersion = 3; |
190 | bool has_clientprotocolversion() const; |
191 | void clear_clientprotocolversion(); |
192 | static const int = 3; |
193 | ::google::protobuf::uint64 clientprotocolversion() const; |
194 | void set_clientprotocolversion(::google::protobuf::uint64 value); |
195 | |
196 | // @@protoc_insertion_point(class_scope:Hdfs.Internal.RequestHeaderProto) |
197 | private: |
198 | void set_has_methodname(); |
199 | void clear_has_methodname(); |
200 | void set_has_declaringclassprotocolname(); |
201 | void clear_has_declaringclassprotocolname(); |
202 | void set_has_clientprotocolversion(); |
203 | void clear_has_clientprotocolversion(); |
204 | |
205 | // helper for ByteSizeLong() |
206 | size_t () const; |
207 | |
208 | ::google::protobuf::internal::InternalMetadataWithArena ; |
209 | ::google::protobuf::internal::HasBits<1> ; |
210 | mutable ::google::protobuf::internal::CachedSize ; |
211 | ::google::protobuf::internal::ArenaStringPtr ; |
212 | ::google::protobuf::internal::ArenaStringPtr ; |
213 | ::google::protobuf::uint64 ; |
214 | friend struct ::protobuf_ProtobufRpcEngine_2eproto::TableStruct; |
215 | }; |
216 | // =================================================================== |
217 | |
218 | |
219 | // =================================================================== |
220 | |
221 | #ifdef __GNUC__ |
222 | #pragma GCC diagnostic push |
223 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
224 | #endif // __GNUC__ |
225 | // RequestHeaderProto |
226 | |
227 | // required string methodName = 1; |
228 | inline bool RequestHeaderProto::() const { |
229 | return (_has_bits_[0] & 0x00000001u) != 0; |
230 | } |
231 | inline void RequestHeaderProto::() { |
232 | _has_bits_[0] |= 0x00000001u; |
233 | } |
234 | inline void RequestHeaderProto::() { |
235 | _has_bits_[0] &= ~0x00000001u; |
236 | } |
237 | inline void RequestHeaderProto::() { |
238 | methodname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
239 | clear_has_methodname(); |
240 | } |
241 | inline const ::std::string& RequestHeaderProto::() const { |
242 | // @@protoc_insertion_point(field_get:Hdfs.Internal.RequestHeaderProto.methodName) |
243 | return methodname_.GetNoArena(); |
244 | } |
245 | inline void RequestHeaderProto::(const ::std::string& value) { |
246 | set_has_methodname(); |
247 | methodname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
248 | // @@protoc_insertion_point(field_set:Hdfs.Internal.RequestHeaderProto.methodName) |
249 | } |
250 | #if LANG_CXX11 |
251 | inline void RequestHeaderProto::(::std::string&& value) { |
252 | set_has_methodname(); |
253 | methodname_.SetNoArena( |
254 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
255 | // @@protoc_insertion_point(field_set_rvalue:Hdfs.Internal.RequestHeaderProto.methodName) |
256 | } |
257 | #endif |
258 | inline void RequestHeaderProto::(const char* value) { |
259 | GOOGLE_DCHECK(value != NULL); |
260 | set_has_methodname(); |
261 | methodname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
262 | // @@protoc_insertion_point(field_set_char:Hdfs.Internal.RequestHeaderProto.methodName) |
263 | } |
264 | inline void RequestHeaderProto::(const char* value, size_t size) { |
265 | set_has_methodname(); |
266 | methodname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
267 | ::std::string(reinterpret_cast<const char*>(value), size)); |
268 | // @@protoc_insertion_point(field_set_pointer:Hdfs.Internal.RequestHeaderProto.methodName) |
269 | } |
270 | inline ::std::string* RequestHeaderProto::() { |
271 | set_has_methodname(); |
272 | // @@protoc_insertion_point(field_mutable:Hdfs.Internal.RequestHeaderProto.methodName) |
273 | return methodname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
274 | } |
275 | inline ::std::string* RequestHeaderProto::() { |
276 | // @@protoc_insertion_point(field_release:Hdfs.Internal.RequestHeaderProto.methodName) |
277 | if (!has_methodname()) { |
278 | return NULL; |
279 | } |
280 | clear_has_methodname(); |
281 | return methodname_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
282 | } |
283 | inline void RequestHeaderProto::(::std::string* methodname) { |
284 | if (methodname != NULL) { |
285 | set_has_methodname(); |
286 | } else { |
287 | clear_has_methodname(); |
288 | } |
289 | methodname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), methodname); |
290 | // @@protoc_insertion_point(field_set_allocated:Hdfs.Internal.RequestHeaderProto.methodName) |
291 | } |
292 | |
293 | // required string declaringClassProtocolName = 2; |
294 | inline bool RequestHeaderProto::() const { |
295 | return (_has_bits_[0] & 0x00000002u) != 0; |
296 | } |
297 | inline void RequestHeaderProto::() { |
298 | _has_bits_[0] |= 0x00000002u; |
299 | } |
300 | inline void RequestHeaderProto::() { |
301 | _has_bits_[0] &= ~0x00000002u; |
302 | } |
303 | inline void RequestHeaderProto::() { |
304 | declaringclassprotocolname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
305 | clear_has_declaringclassprotocolname(); |
306 | } |
307 | inline const ::std::string& RequestHeaderProto::() const { |
308 | // @@protoc_insertion_point(field_get:Hdfs.Internal.RequestHeaderProto.declaringClassProtocolName) |
309 | return declaringclassprotocolname_.GetNoArena(); |
310 | } |
311 | inline void RequestHeaderProto::(const ::std::string& value) { |
312 | set_has_declaringclassprotocolname(); |
313 | declaringclassprotocolname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
314 | // @@protoc_insertion_point(field_set:Hdfs.Internal.RequestHeaderProto.declaringClassProtocolName) |
315 | } |
316 | #if LANG_CXX11 |
317 | inline void RequestHeaderProto::(::std::string&& value) { |
318 | set_has_declaringclassprotocolname(); |
319 | declaringclassprotocolname_.SetNoArena( |
320 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
321 | // @@protoc_insertion_point(field_set_rvalue:Hdfs.Internal.RequestHeaderProto.declaringClassProtocolName) |
322 | } |
323 | #endif |
324 | inline void RequestHeaderProto::(const char* value) { |
325 | GOOGLE_DCHECK(value != NULL); |
326 | set_has_declaringclassprotocolname(); |
327 | declaringclassprotocolname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
328 | // @@protoc_insertion_point(field_set_char:Hdfs.Internal.RequestHeaderProto.declaringClassProtocolName) |
329 | } |
330 | inline void RequestHeaderProto::(const char* value, size_t size) { |
331 | set_has_declaringclassprotocolname(); |
332 | declaringclassprotocolname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
333 | ::std::string(reinterpret_cast<const char*>(value), size)); |
334 | // @@protoc_insertion_point(field_set_pointer:Hdfs.Internal.RequestHeaderProto.declaringClassProtocolName) |
335 | } |
336 | inline ::std::string* RequestHeaderProto::() { |
337 | set_has_declaringclassprotocolname(); |
338 | // @@protoc_insertion_point(field_mutable:Hdfs.Internal.RequestHeaderProto.declaringClassProtocolName) |
339 | return declaringclassprotocolname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
340 | } |
341 | inline ::std::string* RequestHeaderProto::() { |
342 | // @@protoc_insertion_point(field_release:Hdfs.Internal.RequestHeaderProto.declaringClassProtocolName) |
343 | if (!has_declaringclassprotocolname()) { |
344 | return NULL; |
345 | } |
346 | clear_has_declaringclassprotocolname(); |
347 | return declaringclassprotocolname_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
348 | } |
349 | inline void RequestHeaderProto::(::std::string* declaringclassprotocolname) { |
350 | if (declaringclassprotocolname != NULL) { |
351 | set_has_declaringclassprotocolname(); |
352 | } else { |
353 | clear_has_declaringclassprotocolname(); |
354 | } |
355 | declaringclassprotocolname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), declaringclassprotocolname); |
356 | // @@protoc_insertion_point(field_set_allocated:Hdfs.Internal.RequestHeaderProto.declaringClassProtocolName) |
357 | } |
358 | |
359 | // required uint64 clientProtocolVersion = 3; |
360 | inline bool RequestHeaderProto::() const { |
361 | return (_has_bits_[0] & 0x00000004u) != 0; |
362 | } |
363 | inline void RequestHeaderProto::() { |
364 | _has_bits_[0] |= 0x00000004u; |
365 | } |
366 | inline void RequestHeaderProto::() { |
367 | _has_bits_[0] &= ~0x00000004u; |
368 | } |
369 | inline void RequestHeaderProto::() { |
370 | clientprotocolversion_ = GOOGLE_ULONGLONG(0); |
371 | clear_has_clientprotocolversion(); |
372 | } |
373 | inline ::google::protobuf::uint64 RequestHeaderProto::() const { |
374 | // @@protoc_insertion_point(field_get:Hdfs.Internal.RequestHeaderProto.clientProtocolVersion) |
375 | return clientprotocolversion_; |
376 | } |
377 | inline void RequestHeaderProto::(::google::protobuf::uint64 value) { |
378 | set_has_clientprotocolversion(); |
379 | clientprotocolversion_ = value; |
380 | // @@protoc_insertion_point(field_set:Hdfs.Internal.RequestHeaderProto.clientProtocolVersion) |
381 | } |
382 | |
383 | #ifdef __GNUC__ |
384 | #pragma GCC diagnostic pop |
385 | #endif // __GNUC__ |
386 | |
387 | // @@protoc_insertion_point(namespace_scope) |
388 | |
389 | } // namespace Internal |
390 | } // namespace Hdfs |
391 | |
392 | // @@protoc_insertion_point(global_scope) |
393 | |
394 | #endif // PROTOBUF_INCLUDED_ProtobufRpcEngine_2eproto |
395 | |