| 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: IpcConnectionContext.proto |
| 3 | |
| 4 | #ifndef PROTOBUF_INCLUDED_IpcConnectionContext_2eproto |
| 5 | #define PROTOBUF_INCLUDED_IpcConnectionContext_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_IpcConnectionContext_2eproto |
| 35 | |
| 36 | namespace protobuf_IpcConnectionContext_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[2]; |
| 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_IpcConnectionContext_2eproto |
| 48 | namespace Hdfs { |
| 49 | namespace Internal { |
| 50 | class IpcConnectionContextProto; |
| 51 | class IpcConnectionContextProtoDefaultTypeInternal; |
| 52 | extern IpcConnectionContextProtoDefaultTypeInternal _IpcConnectionContextProto_default_instance_; |
| 53 | class UserInformationProto; |
| 54 | class UserInformationProtoDefaultTypeInternal; |
| 55 | extern UserInformationProtoDefaultTypeInternal _UserInformationProto_default_instance_; |
| 56 | } // namespace Internal |
| 57 | } // namespace Hdfs |
| 58 | namespace google { |
| 59 | namespace protobuf { |
| 60 | template<> ::Hdfs::Internal::IpcConnectionContextProto* Arena::CreateMaybeMessage<::Hdfs::Internal::IpcConnectionContextProto>(Arena*); |
| 61 | template<> ::Hdfs::Internal::UserInformationProto* Arena::CreateMaybeMessage<::Hdfs::Internal::UserInformationProto>(Arena*); |
| 62 | } // namespace protobuf |
| 63 | } // namespace google |
| 64 | namespace Hdfs { |
| 65 | namespace Internal { |
| 66 | |
| 67 | // =================================================================== |
| 68 | |
| 69 | class UserInformationProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Hdfs.Internal.UserInformationProto) */ { |
| 70 | public: |
| 71 | UserInformationProto(); |
| 72 | virtual ~UserInformationProto(); |
| 73 | |
| 74 | UserInformationProto(const UserInformationProto& from); |
| 75 | |
| 76 | inline UserInformationProto& operator=(const UserInformationProto& from) { |
| 77 | CopyFrom(from); |
| 78 | return *this; |
| 79 | } |
| 80 | #if LANG_CXX11 |
| 81 | UserInformationProto(UserInformationProto&& from) noexcept |
| 82 | : UserInformationProto() { |
| 83 | *this = ::std::move(from); |
| 84 | } |
| 85 | |
| 86 | inline UserInformationProto& operator=(UserInformationProto&& from) noexcept { |
| 87 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 88 | if (this != &from) InternalSwap(&from); |
| 89 | } else { |
| 90 | CopyFrom(from); |
| 91 | } |
| 92 | return *this; |
| 93 | } |
| 94 | #endif |
| 95 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
| 96 | return _internal_metadata_.unknown_fields(); |
| 97 | } |
| 98 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
| 99 | return _internal_metadata_.mutable_unknown_fields(); |
| 100 | } |
| 101 | |
| 102 | static const ::google::protobuf::Descriptor* descriptor(); |
| 103 | static const UserInformationProto& default_instance(); |
| 104 | |
| 105 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 106 | static inline const UserInformationProto* internal_default_instance() { |
| 107 | return reinterpret_cast<const UserInformationProto*>( |
| 108 | &_UserInformationProto_default_instance_); |
| 109 | } |
| 110 | static constexpr int kIndexInFileMessages = |
| 111 | 0; |
| 112 | |
| 113 | void Swap(UserInformationProto* other); |
| 114 | friend void swap(UserInformationProto& a, UserInformationProto& b) { |
| 115 | a.Swap(&b); |
| 116 | } |
| 117 | |
| 118 | // implements Message ---------------------------------------------- |
| 119 | |
| 120 | inline UserInformationProto* New() const final { |
| 121 | return CreateMaybeMessage<UserInformationProto>(NULL); |
| 122 | } |
| 123 | |
| 124 | UserInformationProto* New(::google::protobuf::Arena* arena) const final { |
| 125 | return CreateMaybeMessage<UserInformationProto>(arena); |
| 126 | } |
| 127 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 128 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 129 | void CopyFrom(const UserInformationProto& from); |
| 130 | void MergeFrom(const UserInformationProto& from); |
| 131 | void Clear() final; |
| 132 | bool IsInitialized() const final; |
| 133 | |
| 134 | size_t ByteSizeLong() const final; |
| 135 | bool MergePartialFromCodedStream( |
| 136 | ::google::protobuf::io::CodedInputStream* input) final; |
| 137 | void SerializeWithCachedSizes( |
| 138 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 139 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 140 | bool deterministic, ::google::protobuf::uint8* target) const final; |
| 141 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 142 | |
| 143 | private: |
| 144 | void SharedCtor(); |
| 145 | void SharedDtor(); |
| 146 | void SetCachedSize(int size) const final; |
| 147 | void InternalSwap(UserInformationProto* other); |
| 148 | private: |
| 149 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 150 | return NULL; |
| 151 | } |
| 152 | inline void* MaybeArenaPtr() const { |
| 153 | return NULL; |
| 154 | } |
| 155 | public: |
| 156 | |
| 157 | ::google::protobuf::Metadata GetMetadata() const final; |
| 158 | |
| 159 | // nested types ---------------------------------------------------- |
| 160 | |
| 161 | // accessors ------------------------------------------------------- |
| 162 | |
| 163 | // optional string effectiveUser = 1; |
| 164 | bool has_effectiveuser() const; |
| 165 | void clear_effectiveuser(); |
| 166 | static const int kEffectiveUserFieldNumber = 1; |
| 167 | const ::std::string& effectiveuser() const; |
| 168 | void set_effectiveuser(const ::std::string& value); |
| 169 | #if LANG_CXX11 |
| 170 | void set_effectiveuser(::std::string&& value); |
| 171 | #endif |
| 172 | void set_effectiveuser(const char* value); |
| 173 | void set_effectiveuser(const char* value, size_t size); |
| 174 | ::std::string* mutable_effectiveuser(); |
| 175 | ::std::string* release_effectiveuser(); |
| 176 | void set_allocated_effectiveuser(::std::string* effectiveuser); |
| 177 | |
| 178 | // optional string realUser = 2; |
| 179 | bool has_realuser() const; |
| 180 | void clear_realuser(); |
| 181 | static const int kRealUserFieldNumber = 2; |
| 182 | const ::std::string& realuser() const; |
| 183 | void set_realuser(const ::std::string& value); |
| 184 | #if LANG_CXX11 |
| 185 | void set_realuser(::std::string&& value); |
| 186 | #endif |
| 187 | void set_realuser(const char* value); |
| 188 | void set_realuser(const char* value, size_t size); |
| 189 | ::std::string* mutable_realuser(); |
| 190 | ::std::string* release_realuser(); |
| 191 | void set_allocated_realuser(::std::string* realuser); |
| 192 | |
| 193 | // @@protoc_insertion_point(class_scope:Hdfs.Internal.UserInformationProto) |
| 194 | private: |
| 195 | void set_has_effectiveuser(); |
| 196 | void clear_has_effectiveuser(); |
| 197 | void set_has_realuser(); |
| 198 | void clear_has_realuser(); |
| 199 | |
| 200 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 201 | ::google::protobuf::internal::HasBits<1> _has_bits_; |
| 202 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 203 | ::google::protobuf::internal::ArenaStringPtr effectiveuser_; |
| 204 | ::google::protobuf::internal::ArenaStringPtr realuser_; |
| 205 | friend struct ::protobuf_IpcConnectionContext_2eproto::TableStruct; |
| 206 | }; |
| 207 | // ------------------------------------------------------------------- |
| 208 | |
| 209 | class IpcConnectionContextProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Hdfs.Internal.IpcConnectionContextProto) */ { |
| 210 | public: |
| 211 | IpcConnectionContextProto(); |
| 212 | virtual ~IpcConnectionContextProto(); |
| 213 | |
| 214 | IpcConnectionContextProto(const IpcConnectionContextProto& from); |
| 215 | |
| 216 | inline IpcConnectionContextProto& operator=(const IpcConnectionContextProto& from) { |
| 217 | CopyFrom(from); |
| 218 | return *this; |
| 219 | } |
| 220 | #if LANG_CXX11 |
| 221 | IpcConnectionContextProto(IpcConnectionContextProto&& from) noexcept |
| 222 | : IpcConnectionContextProto() { |
| 223 | *this = ::std::move(from); |
| 224 | } |
| 225 | |
| 226 | inline IpcConnectionContextProto& operator=(IpcConnectionContextProto&& from) noexcept { |
| 227 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 228 | if (this != &from) InternalSwap(&from); |
| 229 | } else { |
| 230 | CopyFrom(from); |
| 231 | } |
| 232 | return *this; |
| 233 | } |
| 234 | #endif |
| 235 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
| 236 | return _internal_metadata_.unknown_fields(); |
| 237 | } |
| 238 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
| 239 | return _internal_metadata_.mutable_unknown_fields(); |
| 240 | } |
| 241 | |
| 242 | static const ::google::protobuf::Descriptor* descriptor(); |
| 243 | static const IpcConnectionContextProto& default_instance(); |
| 244 | |
| 245 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 246 | static inline const IpcConnectionContextProto* internal_default_instance() { |
| 247 | return reinterpret_cast<const IpcConnectionContextProto*>( |
| 248 | &_IpcConnectionContextProto_default_instance_); |
| 249 | } |
| 250 | static constexpr int kIndexInFileMessages = |
| 251 | 1; |
| 252 | |
| 253 | void Swap(IpcConnectionContextProto* other); |
| 254 | friend void swap(IpcConnectionContextProto& a, IpcConnectionContextProto& b) { |
| 255 | a.Swap(&b); |
| 256 | } |
| 257 | |
| 258 | // implements Message ---------------------------------------------- |
| 259 | |
| 260 | inline IpcConnectionContextProto* New() const final { |
| 261 | return CreateMaybeMessage<IpcConnectionContextProto>(NULL); |
| 262 | } |
| 263 | |
| 264 | IpcConnectionContextProto* New(::google::protobuf::Arena* arena) const final { |
| 265 | return CreateMaybeMessage<IpcConnectionContextProto>(arena); |
| 266 | } |
| 267 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 268 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 269 | void CopyFrom(const IpcConnectionContextProto& from); |
| 270 | void MergeFrom(const IpcConnectionContextProto& from); |
| 271 | void Clear() final; |
| 272 | bool IsInitialized() const final; |
| 273 | |
| 274 | size_t ByteSizeLong() const final; |
| 275 | bool MergePartialFromCodedStream( |
| 276 | ::google::protobuf::io::CodedInputStream* input) final; |
| 277 | void SerializeWithCachedSizes( |
| 278 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 279 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 280 | bool deterministic, ::google::protobuf::uint8* target) const final; |
| 281 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 282 | |
| 283 | private: |
| 284 | void SharedCtor(); |
| 285 | void SharedDtor(); |
| 286 | void SetCachedSize(int size) const final; |
| 287 | void InternalSwap(IpcConnectionContextProto* other); |
| 288 | private: |
| 289 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 290 | return NULL; |
| 291 | } |
| 292 | inline void* MaybeArenaPtr() const { |
| 293 | return NULL; |
| 294 | } |
| 295 | public: |
| 296 | |
| 297 | ::google::protobuf::Metadata GetMetadata() const final; |
| 298 | |
| 299 | // nested types ---------------------------------------------------- |
| 300 | |
| 301 | // accessors ------------------------------------------------------- |
| 302 | |
| 303 | // optional string protocol = 3; |
| 304 | bool has_protocol() const; |
| 305 | void clear_protocol(); |
| 306 | static const int kProtocolFieldNumber = 3; |
| 307 | const ::std::string& protocol() const; |
| 308 | void set_protocol(const ::std::string& value); |
| 309 | #if LANG_CXX11 |
| 310 | void set_protocol(::std::string&& value); |
| 311 | #endif |
| 312 | void set_protocol(const char* value); |
| 313 | void set_protocol(const char* value, size_t size); |
| 314 | ::std::string* mutable_protocol(); |
| 315 | ::std::string* release_protocol(); |
| 316 | void set_allocated_protocol(::std::string* protocol); |
| 317 | |
| 318 | // optional .Hdfs.Internal.UserInformationProto userInfo = 2; |
| 319 | bool has_userinfo() const; |
| 320 | void clear_userinfo(); |
| 321 | static const int kUserInfoFieldNumber = 2; |
| 322 | private: |
| 323 | const ::Hdfs::Internal::UserInformationProto& _internal_userinfo() const; |
| 324 | public: |
| 325 | const ::Hdfs::Internal::UserInformationProto& userinfo() const; |
| 326 | ::Hdfs::Internal::UserInformationProto* release_userinfo(); |
| 327 | ::Hdfs::Internal::UserInformationProto* mutable_userinfo(); |
| 328 | void set_allocated_userinfo(::Hdfs::Internal::UserInformationProto* userinfo); |
| 329 | |
| 330 | // @@protoc_insertion_point(class_scope:Hdfs.Internal.IpcConnectionContextProto) |
| 331 | private: |
| 332 | void set_has_userinfo(); |
| 333 | void clear_has_userinfo(); |
| 334 | void set_has_protocol(); |
| 335 | void clear_has_protocol(); |
| 336 | |
| 337 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 338 | ::google::protobuf::internal::HasBits<1> _has_bits_; |
| 339 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 340 | ::google::protobuf::internal::ArenaStringPtr protocol_; |
| 341 | ::Hdfs::Internal::UserInformationProto* userinfo_; |
| 342 | friend struct ::protobuf_IpcConnectionContext_2eproto::TableStruct; |
| 343 | }; |
| 344 | // =================================================================== |
| 345 | |
| 346 | |
| 347 | // =================================================================== |
| 348 | |
| 349 | #ifdef __GNUC__ |
| 350 | #pragma GCC diagnostic push |
| 351 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
| 352 | #endif // __GNUC__ |
| 353 | // UserInformationProto |
| 354 | |
| 355 | // optional string effectiveUser = 1; |
| 356 | inline bool UserInformationProto::has_effectiveuser() const { |
| 357 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 358 | } |
| 359 | inline void UserInformationProto::set_has_effectiveuser() { |
| 360 | _has_bits_[0] |= 0x00000001u; |
| 361 | } |
| 362 | inline void UserInformationProto::clear_has_effectiveuser() { |
| 363 | _has_bits_[0] &= ~0x00000001u; |
| 364 | } |
| 365 | inline void UserInformationProto::clear_effectiveuser() { |
| 366 | effectiveuser_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 367 | clear_has_effectiveuser(); |
| 368 | } |
| 369 | inline const ::std::string& UserInformationProto::effectiveuser() const { |
| 370 | // @@protoc_insertion_point(field_get:Hdfs.Internal.UserInformationProto.effectiveUser) |
| 371 | return effectiveuser_.GetNoArena(); |
| 372 | } |
| 373 | inline void UserInformationProto::set_effectiveuser(const ::std::string& value) { |
| 374 | set_has_effectiveuser(); |
| 375 | effectiveuser_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 376 | // @@protoc_insertion_point(field_set:Hdfs.Internal.UserInformationProto.effectiveUser) |
| 377 | } |
| 378 | #if LANG_CXX11 |
| 379 | inline void UserInformationProto::set_effectiveuser(::std::string&& value) { |
| 380 | set_has_effectiveuser(); |
| 381 | effectiveuser_.SetNoArena( |
| 382 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 383 | // @@protoc_insertion_point(field_set_rvalue:Hdfs.Internal.UserInformationProto.effectiveUser) |
| 384 | } |
| 385 | #endif |
| 386 | inline void UserInformationProto::set_effectiveuser(const char* value) { |
| 387 | GOOGLE_DCHECK(value != NULL); |
| 388 | set_has_effectiveuser(); |
| 389 | effectiveuser_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 390 | // @@protoc_insertion_point(field_set_char:Hdfs.Internal.UserInformationProto.effectiveUser) |
| 391 | } |
| 392 | inline void UserInformationProto::set_effectiveuser(const char* value, size_t size) { |
| 393 | set_has_effectiveuser(); |
| 394 | effectiveuser_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 395 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 396 | // @@protoc_insertion_point(field_set_pointer:Hdfs.Internal.UserInformationProto.effectiveUser) |
| 397 | } |
| 398 | inline ::std::string* UserInformationProto::mutable_effectiveuser() { |
| 399 | set_has_effectiveuser(); |
| 400 | // @@protoc_insertion_point(field_mutable:Hdfs.Internal.UserInformationProto.effectiveUser) |
| 401 | return effectiveuser_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 402 | } |
| 403 | inline ::std::string* UserInformationProto::release_effectiveuser() { |
| 404 | // @@protoc_insertion_point(field_release:Hdfs.Internal.UserInformationProto.effectiveUser) |
| 405 | if (!has_effectiveuser()) { |
| 406 | return NULL; |
| 407 | } |
| 408 | clear_has_effectiveuser(); |
| 409 | return effectiveuser_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 410 | } |
| 411 | inline void UserInformationProto::set_allocated_effectiveuser(::std::string* effectiveuser) { |
| 412 | if (effectiveuser != NULL) { |
| 413 | set_has_effectiveuser(); |
| 414 | } else { |
| 415 | clear_has_effectiveuser(); |
| 416 | } |
| 417 | effectiveuser_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), effectiveuser); |
| 418 | // @@protoc_insertion_point(field_set_allocated:Hdfs.Internal.UserInformationProto.effectiveUser) |
| 419 | } |
| 420 | |
| 421 | // optional string realUser = 2; |
| 422 | inline bool UserInformationProto::has_realuser() const { |
| 423 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 424 | } |
| 425 | inline void UserInformationProto::set_has_realuser() { |
| 426 | _has_bits_[0] |= 0x00000002u; |
| 427 | } |
| 428 | inline void UserInformationProto::clear_has_realuser() { |
| 429 | _has_bits_[0] &= ~0x00000002u; |
| 430 | } |
| 431 | inline void UserInformationProto::clear_realuser() { |
| 432 | realuser_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 433 | clear_has_realuser(); |
| 434 | } |
| 435 | inline const ::std::string& UserInformationProto::realuser() const { |
| 436 | // @@protoc_insertion_point(field_get:Hdfs.Internal.UserInformationProto.realUser) |
| 437 | return realuser_.GetNoArena(); |
| 438 | } |
| 439 | inline void UserInformationProto::set_realuser(const ::std::string& value) { |
| 440 | set_has_realuser(); |
| 441 | realuser_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 442 | // @@protoc_insertion_point(field_set:Hdfs.Internal.UserInformationProto.realUser) |
| 443 | } |
| 444 | #if LANG_CXX11 |
| 445 | inline void UserInformationProto::set_realuser(::std::string&& value) { |
| 446 | set_has_realuser(); |
| 447 | realuser_.SetNoArena( |
| 448 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 449 | // @@protoc_insertion_point(field_set_rvalue:Hdfs.Internal.UserInformationProto.realUser) |
| 450 | } |
| 451 | #endif |
| 452 | inline void UserInformationProto::set_realuser(const char* value) { |
| 453 | GOOGLE_DCHECK(value != NULL); |
| 454 | set_has_realuser(); |
| 455 | realuser_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 456 | // @@protoc_insertion_point(field_set_char:Hdfs.Internal.UserInformationProto.realUser) |
| 457 | } |
| 458 | inline void UserInformationProto::set_realuser(const char* value, size_t size) { |
| 459 | set_has_realuser(); |
| 460 | realuser_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 461 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 462 | // @@protoc_insertion_point(field_set_pointer:Hdfs.Internal.UserInformationProto.realUser) |
| 463 | } |
| 464 | inline ::std::string* UserInformationProto::mutable_realuser() { |
| 465 | set_has_realuser(); |
| 466 | // @@protoc_insertion_point(field_mutable:Hdfs.Internal.UserInformationProto.realUser) |
| 467 | return realuser_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 468 | } |
| 469 | inline ::std::string* UserInformationProto::release_realuser() { |
| 470 | // @@protoc_insertion_point(field_release:Hdfs.Internal.UserInformationProto.realUser) |
| 471 | if (!has_realuser()) { |
| 472 | return NULL; |
| 473 | } |
| 474 | clear_has_realuser(); |
| 475 | return realuser_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 476 | } |
| 477 | inline void UserInformationProto::set_allocated_realuser(::std::string* realuser) { |
| 478 | if (realuser != NULL) { |
| 479 | set_has_realuser(); |
| 480 | } else { |
| 481 | clear_has_realuser(); |
| 482 | } |
| 483 | realuser_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), realuser); |
| 484 | // @@protoc_insertion_point(field_set_allocated:Hdfs.Internal.UserInformationProto.realUser) |
| 485 | } |
| 486 | |
| 487 | // ------------------------------------------------------------------- |
| 488 | |
| 489 | // IpcConnectionContextProto |
| 490 | |
| 491 | // optional .Hdfs.Internal.UserInformationProto userInfo = 2; |
| 492 | inline bool IpcConnectionContextProto::has_userinfo() const { |
| 493 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 494 | } |
| 495 | inline void IpcConnectionContextProto::set_has_userinfo() { |
| 496 | _has_bits_[0] |= 0x00000002u; |
| 497 | } |
| 498 | inline void IpcConnectionContextProto::clear_has_userinfo() { |
| 499 | _has_bits_[0] &= ~0x00000002u; |
| 500 | } |
| 501 | inline void IpcConnectionContextProto::clear_userinfo() { |
| 502 | if (userinfo_ != NULL) userinfo_->Clear(); |
| 503 | clear_has_userinfo(); |
| 504 | } |
| 505 | inline const ::Hdfs::Internal::UserInformationProto& IpcConnectionContextProto::_internal_userinfo() const { |
| 506 | return *userinfo_; |
| 507 | } |
| 508 | inline const ::Hdfs::Internal::UserInformationProto& IpcConnectionContextProto::userinfo() const { |
| 509 | const ::Hdfs::Internal::UserInformationProto* p = userinfo_; |
| 510 | // @@protoc_insertion_point(field_get:Hdfs.Internal.IpcConnectionContextProto.userInfo) |
| 511 | return p != NULL ? *p : *reinterpret_cast<const ::Hdfs::Internal::UserInformationProto*>( |
| 512 | &::Hdfs::Internal::_UserInformationProto_default_instance_); |
| 513 | } |
| 514 | inline ::Hdfs::Internal::UserInformationProto* IpcConnectionContextProto::release_userinfo() { |
| 515 | // @@protoc_insertion_point(field_release:Hdfs.Internal.IpcConnectionContextProto.userInfo) |
| 516 | clear_has_userinfo(); |
| 517 | ::Hdfs::Internal::UserInformationProto* temp = userinfo_; |
| 518 | userinfo_ = NULL; |
| 519 | return temp; |
| 520 | } |
| 521 | inline ::Hdfs::Internal::UserInformationProto* IpcConnectionContextProto::mutable_userinfo() { |
| 522 | set_has_userinfo(); |
| 523 | if (userinfo_ == NULL) { |
| 524 | auto* p = CreateMaybeMessage<::Hdfs::Internal::UserInformationProto>(GetArenaNoVirtual()); |
| 525 | userinfo_ = p; |
| 526 | } |
| 527 | // @@protoc_insertion_point(field_mutable:Hdfs.Internal.IpcConnectionContextProto.userInfo) |
| 528 | return userinfo_; |
| 529 | } |
| 530 | inline void IpcConnectionContextProto::set_allocated_userinfo(::Hdfs::Internal::UserInformationProto* userinfo) { |
| 531 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 532 | if (message_arena == NULL) { |
| 533 | delete userinfo_; |
| 534 | } |
| 535 | if (userinfo) { |
| 536 | ::google::protobuf::Arena* submessage_arena = NULL; |
| 537 | if (message_arena != submessage_arena) { |
| 538 | userinfo = ::google::protobuf::internal::GetOwnedMessage( |
| 539 | message_arena, userinfo, submessage_arena); |
| 540 | } |
| 541 | set_has_userinfo(); |
| 542 | } else { |
| 543 | clear_has_userinfo(); |
| 544 | } |
| 545 | userinfo_ = userinfo; |
| 546 | // @@protoc_insertion_point(field_set_allocated:Hdfs.Internal.IpcConnectionContextProto.userInfo) |
| 547 | } |
| 548 | |
| 549 | // optional string protocol = 3; |
| 550 | inline bool IpcConnectionContextProto::has_protocol() const { |
| 551 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 552 | } |
| 553 | inline void IpcConnectionContextProto::set_has_protocol() { |
| 554 | _has_bits_[0] |= 0x00000001u; |
| 555 | } |
| 556 | inline void IpcConnectionContextProto::clear_has_protocol() { |
| 557 | _has_bits_[0] &= ~0x00000001u; |
| 558 | } |
| 559 | inline void IpcConnectionContextProto::clear_protocol() { |
| 560 | protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 561 | clear_has_protocol(); |
| 562 | } |
| 563 | inline const ::std::string& IpcConnectionContextProto::protocol() const { |
| 564 | // @@protoc_insertion_point(field_get:Hdfs.Internal.IpcConnectionContextProto.protocol) |
| 565 | return protocol_.GetNoArena(); |
| 566 | } |
| 567 | inline void IpcConnectionContextProto::set_protocol(const ::std::string& value) { |
| 568 | set_has_protocol(); |
| 569 | protocol_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 570 | // @@protoc_insertion_point(field_set:Hdfs.Internal.IpcConnectionContextProto.protocol) |
| 571 | } |
| 572 | #if LANG_CXX11 |
| 573 | inline void IpcConnectionContextProto::set_protocol(::std::string&& value) { |
| 574 | set_has_protocol(); |
| 575 | protocol_.SetNoArena( |
| 576 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 577 | // @@protoc_insertion_point(field_set_rvalue:Hdfs.Internal.IpcConnectionContextProto.protocol) |
| 578 | } |
| 579 | #endif |
| 580 | inline void IpcConnectionContextProto::set_protocol(const char* value) { |
| 581 | GOOGLE_DCHECK(value != NULL); |
| 582 | set_has_protocol(); |
| 583 | protocol_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 584 | // @@protoc_insertion_point(field_set_char:Hdfs.Internal.IpcConnectionContextProto.protocol) |
| 585 | } |
| 586 | inline void IpcConnectionContextProto::set_protocol(const char* value, size_t size) { |
| 587 | set_has_protocol(); |
| 588 | protocol_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 589 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 590 | // @@protoc_insertion_point(field_set_pointer:Hdfs.Internal.IpcConnectionContextProto.protocol) |
| 591 | } |
| 592 | inline ::std::string* IpcConnectionContextProto::mutable_protocol() { |
| 593 | set_has_protocol(); |
| 594 | // @@protoc_insertion_point(field_mutable:Hdfs.Internal.IpcConnectionContextProto.protocol) |
| 595 | return protocol_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 596 | } |
| 597 | inline ::std::string* IpcConnectionContextProto::release_protocol() { |
| 598 | // @@protoc_insertion_point(field_release:Hdfs.Internal.IpcConnectionContextProto.protocol) |
| 599 | if (!has_protocol()) { |
| 600 | return NULL; |
| 601 | } |
| 602 | clear_has_protocol(); |
| 603 | return protocol_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 604 | } |
| 605 | inline void IpcConnectionContextProto::set_allocated_protocol(::std::string* protocol) { |
| 606 | if (protocol != NULL) { |
| 607 | set_has_protocol(); |
| 608 | } else { |
| 609 | clear_has_protocol(); |
| 610 | } |
| 611 | protocol_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), protocol); |
| 612 | // @@protoc_insertion_point(field_set_allocated:Hdfs.Internal.IpcConnectionContextProto.protocol) |
| 613 | } |
| 614 | |
| 615 | #ifdef __GNUC__ |
| 616 | #pragma GCC diagnostic pop |
| 617 | #endif // __GNUC__ |
| 618 | // ------------------------------------------------------------------- |
| 619 | |
| 620 | |
| 621 | // @@protoc_insertion_point(namespace_scope) |
| 622 | |
| 623 | } // namespace Internal |
| 624 | } // namespace Hdfs |
| 625 | |
| 626 | // @@protoc_insertion_point(global_scope) |
| 627 | |
| 628 | #endif // PROTOBUF_INCLUDED_IpcConnectionContext_2eproto |
| 629 | |