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
36namespace protobuf_ProtobufRpcEngine_2eproto {
37// Internal implementation detail -- do not use these members.
38struct 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};
46void AddDescriptors();
47} // namespace protobuf_ProtobufRpcEngine_2eproto
48namespace Hdfs {
49namespace Internal {
50class RequestHeaderProto;
51class RequestHeaderProtoDefaultTypeInternal;
52extern RequestHeaderProtoDefaultTypeInternal _RequestHeaderProto_default_instance_;
53} // namespace Internal
54} // namespace Hdfs
55namespace google {
56namespace protobuf {
57template<> ::Hdfs::Internal::RequestHeaderProto* Arena::CreateMaybeMessage<::Hdfs::Internal::RequestHeaderProto>(Arena*);
58} // namespace protobuf
59} // namespace google
60namespace Hdfs {
61namespace Internal {
62
63// ===================================================================
64
65class RequestHeaderProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Hdfs.Internal.RequestHeaderProto) */ {
66 public:
67 RequestHeaderProto();
68 virtual ~RequestHeaderProto();
69
70 RequestHeaderProto(const RequestHeaderProto& from);
71
72 inline RequestHeaderProto& operator=(const RequestHeaderProto& from) {
73 CopyFrom(from);
74 return *this;
75 }
76 #if LANG_CXX11
77 RequestHeaderProto(RequestHeaderProto&& from) noexcept
78 : RequestHeaderProto() {
79 *this = ::std::move(from);
80 }
81
82 inline RequestHeaderProto& operator=(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& unknown_fields() const {
92 return _internal_metadata_.unknown_fields();
93 }
94 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
95 return _internal_metadata_.mutable_unknown_fields();
96 }
97
98 static const ::google::protobuf::Descriptor* descriptor();
99 static const RequestHeaderProto& default_instance();
100
101 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
102 static inline const RequestHeaderProto* internal_default_instance() {
103 return reinterpret_cast<const RequestHeaderProto*>(
104 &_RequestHeaderProto_default_instance_);
105 }
106 static constexpr int kIndexInFileMessages =
107 0;
108
109 void Swap(RequestHeaderProto* other);
110 friend void swap(RequestHeaderProto& a, RequestHeaderProto& b) {
111 a.Swap(&b);
112 }
113
114 // implements Message ----------------------------------------------
115
116 inline RequestHeaderProto* New() const final {
117 return CreateMaybeMessage<RequestHeaderProto>(NULL);
118 }
119
120 RequestHeaderProto* New(::google::protobuf::Arena* arena) const final {
121 return CreateMaybeMessage<RequestHeaderProto>(arena);
122 }
123 void CopyFrom(const ::google::protobuf::Message& from) final;
124 void MergeFrom(const ::google::protobuf::Message& from) final;
125 void CopyFrom(const RequestHeaderProto& from);
126 void MergeFrom(const RequestHeaderProto& from);
127 void Clear() final;
128 bool IsInitialized() const final;
129
130 size_t ByteSizeLong() const final;
131 bool MergePartialFromCodedStream(
132 ::google::protobuf::io::CodedInputStream* input) final;
133 void SerializeWithCachedSizes(
134 ::google::protobuf::io::CodedOutputStream* output) const final;
135 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
136 bool deterministic, ::google::protobuf::uint8* target) const final;
137 int GetCachedSize() const final { return _cached_size_.Get(); }
138
139 private:
140 void SharedCtor();
141 void SharedDtor();
142 void SetCachedSize(int size) const final;
143 void InternalSwap(RequestHeaderProto* other);
144 private:
145 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
146 return NULL;
147 }
148 inline void* MaybeArenaPtr() const {
149 return NULL;
150 }
151 public:
152
153 ::google::protobuf::Metadata GetMetadata() 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 kMethodNameFieldNumber = 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 kDeclaringClassProtocolNameFieldNumber = 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 kClientProtocolVersionFieldNumber = 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 RequiredFieldsByteSizeFallback() const;
207
208 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
209 ::google::protobuf::internal::HasBits<1> _has_bits_;
210 mutable ::google::protobuf::internal::CachedSize _cached_size_;
211 ::google::protobuf::internal::ArenaStringPtr methodname_;
212 ::google::protobuf::internal::ArenaStringPtr declaringclassprotocolname_;
213 ::google::protobuf::uint64 clientprotocolversion_;
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;
228inline bool RequestHeaderProto::has_methodname() const {
229 return (_has_bits_[0] & 0x00000001u) != 0;
230}
231inline void RequestHeaderProto::set_has_methodname() {
232 _has_bits_[0] |= 0x00000001u;
233}
234inline void RequestHeaderProto::clear_has_methodname() {
235 _has_bits_[0] &= ~0x00000001u;
236}
237inline void RequestHeaderProto::clear_methodname() {
238 methodname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
239 clear_has_methodname();
240}
241inline const ::std::string& RequestHeaderProto::methodname() const {
242 // @@protoc_insertion_point(field_get:Hdfs.Internal.RequestHeaderProto.methodName)
243 return methodname_.GetNoArena();
244}
245inline void RequestHeaderProto::set_methodname(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
251inline void RequestHeaderProto::set_methodname(::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
258inline void RequestHeaderProto::set_methodname(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}
264inline void RequestHeaderProto::set_methodname(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}
270inline ::std::string* RequestHeaderProto::mutable_methodname() {
271 set_has_methodname();
272 // @@protoc_insertion_point(field_mutable:Hdfs.Internal.RequestHeaderProto.methodName)
273 return methodname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
274}
275inline ::std::string* RequestHeaderProto::release_methodname() {
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}
283inline void RequestHeaderProto::set_allocated_methodname(::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;
294inline bool RequestHeaderProto::has_declaringclassprotocolname() const {
295 return (_has_bits_[0] & 0x00000002u) != 0;
296}
297inline void RequestHeaderProto::set_has_declaringclassprotocolname() {
298 _has_bits_[0] |= 0x00000002u;
299}
300inline void RequestHeaderProto::clear_has_declaringclassprotocolname() {
301 _has_bits_[0] &= ~0x00000002u;
302}
303inline void RequestHeaderProto::clear_declaringclassprotocolname() {
304 declaringclassprotocolname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
305 clear_has_declaringclassprotocolname();
306}
307inline const ::std::string& RequestHeaderProto::declaringclassprotocolname() const {
308 // @@protoc_insertion_point(field_get:Hdfs.Internal.RequestHeaderProto.declaringClassProtocolName)
309 return declaringclassprotocolname_.GetNoArena();
310}
311inline void RequestHeaderProto::set_declaringclassprotocolname(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
317inline void RequestHeaderProto::set_declaringclassprotocolname(::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
324inline void RequestHeaderProto::set_declaringclassprotocolname(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}
330inline void RequestHeaderProto::set_declaringclassprotocolname(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}
336inline ::std::string* RequestHeaderProto::mutable_declaringclassprotocolname() {
337 set_has_declaringclassprotocolname();
338 // @@protoc_insertion_point(field_mutable:Hdfs.Internal.RequestHeaderProto.declaringClassProtocolName)
339 return declaringclassprotocolname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
340}
341inline ::std::string* RequestHeaderProto::release_declaringclassprotocolname() {
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}
349inline void RequestHeaderProto::set_allocated_declaringclassprotocolname(::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;
360inline bool RequestHeaderProto::has_clientprotocolversion() const {
361 return (_has_bits_[0] & 0x00000004u) != 0;
362}
363inline void RequestHeaderProto::set_has_clientprotocolversion() {
364 _has_bits_[0] |= 0x00000004u;
365}
366inline void RequestHeaderProto::clear_has_clientprotocolversion() {
367 _has_bits_[0] &= ~0x00000004u;
368}
369inline void RequestHeaderProto::clear_clientprotocolversion() {
370 clientprotocolversion_ = GOOGLE_ULONGLONG(0);
371 clear_has_clientprotocolversion();
372}
373inline ::google::protobuf::uint64 RequestHeaderProto::clientprotocolversion() const {
374 // @@protoc_insertion_point(field_get:Hdfs.Internal.RequestHeaderProto.clientProtocolVersion)
375 return clientprotocolversion_;
376}
377inline void RequestHeaderProto::set_clientprotocolversion(::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