| 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: google/protobuf/compiler/plugin.proto |
| 3 | |
| 4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcompiler_2fplugin_2eproto |
| 5 | #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcompiler_2fplugin_2eproto |
| 6 | |
| 7 | #include <limits> |
| 8 | #include <string> |
| 9 | |
| 10 | #include <google/protobuf/port_def.inc> |
| 11 | #if PROTOBUF_VERSION < 3021000 |
| 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 3021004 < 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/port_undef.inc> |
| 23 | #include <google/protobuf/io/coded_stream.h> |
| 24 | #include <google/protobuf/arena.h> |
| 25 | #include <google/protobuf/arenastring.h> |
| 26 | #include <google/protobuf/generated_message_util.h> |
| 27 | #include <google/protobuf/metadata_lite.h> |
| 28 | #include <google/protobuf/generated_message_reflection.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/generated_enum_reflection.h> |
| 33 | #include <google/protobuf/unknown_field_set.h> |
| 34 | #include <google/protobuf/descriptor.pb.h> |
| 35 | // @@protoc_insertion_point(includes) |
| 36 | #include <google/protobuf/port_def.inc> |
| 37 | #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fcompiler_2fplugin_2eproto PROTOC_EXPORT |
| 38 | #ifdef major |
| 39 | #undef major |
| 40 | #endif |
| 41 | #ifdef minor |
| 42 | #undef minor |
| 43 | #endif |
| 44 | PROTOBUF_NAMESPACE_OPEN |
| 45 | namespace internal { |
| 46 | class AnyMetadata; |
| 47 | } // namespace internal |
| 48 | PROTOBUF_NAMESPACE_CLOSE |
| 49 | |
| 50 | // Internal implementation detail -- do not use these members. |
| 51 | struct PROTOC_EXPORT TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto { |
| 52 | static const uint32_t offsets[]; |
| 53 | }; |
| 54 | PROTOC_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto; |
| 55 | PROTOBUF_NAMESPACE_OPEN |
| 56 | namespace compiler { |
| 57 | class CodeGeneratorRequest; |
| 58 | struct CodeGeneratorRequestDefaultTypeInternal; |
| 59 | PROTOC_EXPORT extern CodeGeneratorRequestDefaultTypeInternal _CodeGeneratorRequest_default_instance_; |
| 60 | class CodeGeneratorResponse; |
| 61 | struct CodeGeneratorResponseDefaultTypeInternal; |
| 62 | PROTOC_EXPORT extern CodeGeneratorResponseDefaultTypeInternal _CodeGeneratorResponse_default_instance_; |
| 63 | class CodeGeneratorResponse_File; |
| 64 | struct CodeGeneratorResponse_FileDefaultTypeInternal; |
| 65 | PROTOC_EXPORT extern CodeGeneratorResponse_FileDefaultTypeInternal _CodeGeneratorResponse_File_default_instance_; |
| 66 | class Version; |
| 67 | struct VersionDefaultTypeInternal; |
| 68 | PROTOC_EXPORT extern VersionDefaultTypeInternal _Version_default_instance_; |
| 69 | } // namespace compiler |
| 70 | PROTOBUF_NAMESPACE_CLOSE |
| 71 | PROTOBUF_NAMESPACE_OPEN |
| 72 | template<> PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest>(Arena*); |
| 73 | template<> PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse>(Arena*); |
| 74 | template<> PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File>(Arena*); |
| 75 | template<> PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::compiler::Version* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::compiler::Version>(Arena*); |
| 76 | PROTOBUF_NAMESPACE_CLOSE |
| 77 | PROTOBUF_NAMESPACE_OPEN |
| 78 | namespace compiler { |
| 79 | |
| 80 | enum CodeGeneratorResponse_Feature : int { |
| 81 | CodeGeneratorResponse_Feature_FEATURE_NONE = 0, |
| 82 | CodeGeneratorResponse_Feature_FEATURE_PROTO3_OPTIONAL = 1 |
| 83 | }; |
| 84 | PROTOC_EXPORT bool CodeGeneratorResponse_Feature_IsValid(int value); |
| 85 | constexpr CodeGeneratorResponse_Feature CodeGeneratorResponse_Feature_Feature_MIN = CodeGeneratorResponse_Feature_FEATURE_NONE; |
| 86 | constexpr CodeGeneratorResponse_Feature CodeGeneratorResponse_Feature_Feature_MAX = CodeGeneratorResponse_Feature_FEATURE_PROTO3_OPTIONAL; |
| 87 | constexpr int CodeGeneratorResponse_Feature_Feature_ARRAYSIZE = CodeGeneratorResponse_Feature_Feature_MAX + 1; |
| 88 | |
| 89 | PROTOC_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CodeGeneratorResponse_Feature_descriptor(); |
| 90 | template<typename T> |
| 91 | inline const std::string& CodeGeneratorResponse_Feature_Name(T enum_t_value) { |
| 92 | static_assert(::std::is_same<T, CodeGeneratorResponse_Feature>::value || |
| 93 | ::std::is_integral<T>::value, |
| 94 | "Incorrect type passed to function CodeGeneratorResponse_Feature_Name." ); |
| 95 | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
| 96 | descriptor: CodeGeneratorResponse_Feature_descriptor(), value: enum_t_value); |
| 97 | } |
| 98 | inline bool CodeGeneratorResponse_Feature_Parse( |
| 99 | ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CodeGeneratorResponse_Feature* value) { |
| 100 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<CodeGeneratorResponse_Feature>( |
| 101 | descriptor: CodeGeneratorResponse_Feature_descriptor(), name, value); |
| 102 | } |
| 103 | // =================================================================== |
| 104 | |
| 105 | class PROTOC_EXPORT Version final : |
| 106 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.Version) */ { |
| 107 | public: |
| 108 | inline Version() : Version(nullptr) {} |
| 109 | ~Version() override; |
| 110 | explicit PROTOBUF_CONSTEXPR Version(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
| 111 | |
| 112 | Version(const Version& from); |
| 113 | Version(Version&& from) noexcept |
| 114 | : Version() { |
| 115 | *this = ::std::move(from); |
| 116 | } |
| 117 | |
| 118 | inline Version& operator=(const Version& from) { |
| 119 | CopyFrom(from); |
| 120 | return *this; |
| 121 | } |
| 122 | inline Version& operator=(Version&& from) noexcept { |
| 123 | if (this == &from) return *this; |
| 124 | if (GetOwningArena() == from.GetOwningArena() |
| 125 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
| 126 | && GetOwningArena() != nullptr |
| 127 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
| 128 | ) { |
| 129 | InternalSwap(other: &from); |
| 130 | } else { |
| 131 | CopyFrom(from); |
| 132 | } |
| 133 | return *this; |
| 134 | } |
| 135 | |
| 136 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
| 137 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(default_instance: ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
| 138 | } |
| 139 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
| 140 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| 141 | } |
| 142 | |
| 143 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
| 144 | return GetDescriptor(); |
| 145 | } |
| 146 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
| 147 | return default_instance().GetMetadata().descriptor; |
| 148 | } |
| 149 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
| 150 | return default_instance().GetMetadata().reflection; |
| 151 | } |
| 152 | static const Version& default_instance() { |
| 153 | return *internal_default_instance(); |
| 154 | } |
| 155 | static inline const Version* internal_default_instance() { |
| 156 | return reinterpret_cast<const Version*>( |
| 157 | &_Version_default_instance_); |
| 158 | } |
| 159 | static constexpr int kIndexInFileMessages = |
| 160 | 0; |
| 161 | |
| 162 | friend void swap(Version& a, Version& b) { |
| 163 | a.Swap(other: &b); |
| 164 | } |
| 165 | inline void Swap(Version* other) { |
| 166 | if (other == this) return; |
| 167 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
| 168 | if (GetOwningArena() != nullptr && |
| 169 | GetOwningArena() == other->GetOwningArena()) { |
| 170 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
| 171 | if (GetOwningArena() == other->GetOwningArena()) { |
| 172 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
| 173 | InternalSwap(other); |
| 174 | } else { |
| 175 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(m1: this, m2: other); |
| 176 | } |
| 177 | } |
| 178 | void UnsafeArenaSwap(Version* other) { |
| 179 | if (other == this) return; |
| 180 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
| 181 | InternalSwap(other); |
| 182 | } |
| 183 | |
| 184 | // implements Message ---------------------------------------------- |
| 185 | |
| 186 | Version* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
| 187 | return CreateMaybeMessage<Version>(arena); |
| 188 | } |
| 189 | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
| 190 | void CopyFrom(const Version& from); |
| 191 | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
| 192 | void MergeFrom( const Version& from) { |
| 193 | Version::MergeImpl(to_msg&: *this, from_msg: from); |
| 194 | } |
| 195 | private: |
| 196 | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
| 197 | public: |
| 198 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 199 | bool IsInitialized() const final; |
| 200 | |
| 201 | size_t ByteSizeLong() const final; |
| 202 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
| 203 | uint8_t* _InternalSerialize( |
| 204 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
| 205 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
| 206 | |
| 207 | private: |
| 208 | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
| 209 | void SharedDtor(); |
| 210 | void SetCachedSize(int size) const final; |
| 211 | void InternalSwap(Version* other); |
| 212 | |
| 213 | private: |
| 214 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
| 215 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
| 216 | return "google.protobuf.compiler.Version" ; |
| 217 | } |
| 218 | protected: |
| 219 | explicit Version(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
| 220 | bool is_message_owned = false); |
| 221 | public: |
| 222 | |
| 223 | static const ClassData _class_data_; |
| 224 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
| 225 | |
| 226 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
| 227 | |
| 228 | // nested types ---------------------------------------------------- |
| 229 | |
| 230 | // accessors ------------------------------------------------------- |
| 231 | |
| 232 | enum : int { |
| 233 | kSuffixFieldNumber = 4, |
| 234 | kMajorFieldNumber = 1, |
| 235 | kMinorFieldNumber = 2, |
| 236 | kPatchFieldNumber = 3, |
| 237 | }; |
| 238 | // optional string suffix = 4; |
| 239 | bool has_suffix() const; |
| 240 | private: |
| 241 | bool _internal_has_suffix() const; |
| 242 | public: |
| 243 | void clear_suffix(); |
| 244 | const std::string& suffix() const; |
| 245 | template <typename ArgT0 = const std::string&, typename... ArgT> |
| 246 | void set_suffix(ArgT0&& arg0, ArgT... args); |
| 247 | std::string* mutable_suffix(); |
| 248 | PROTOBUF_NODISCARD std::string* release_suffix(); |
| 249 | void set_allocated_suffix(std::string* suffix); |
| 250 | private: |
| 251 | const std::string& _internal_suffix() const; |
| 252 | inline PROTOBUF_ALWAYS_INLINE void _internal_set_suffix(const std::string& value); |
| 253 | std::string* _internal_mutable_suffix(); |
| 254 | public: |
| 255 | |
| 256 | // optional int32 major = 1; |
| 257 | bool has_major() const; |
| 258 | private: |
| 259 | bool _internal_has_major() const; |
| 260 | public: |
| 261 | void clear_major(); |
| 262 | int32_t major() const; |
| 263 | void set_major(int32_t value); |
| 264 | private: |
| 265 | int32_t _internal_major() const; |
| 266 | void _internal_set_major(int32_t value); |
| 267 | public: |
| 268 | |
| 269 | // optional int32 minor = 2; |
| 270 | bool has_minor() const; |
| 271 | private: |
| 272 | bool _internal_has_minor() const; |
| 273 | public: |
| 274 | void clear_minor(); |
| 275 | int32_t minor() const; |
| 276 | void set_minor(int32_t value); |
| 277 | private: |
| 278 | int32_t _internal_minor() const; |
| 279 | void _internal_set_minor(int32_t value); |
| 280 | public: |
| 281 | |
| 282 | // optional int32 patch = 3; |
| 283 | bool has_patch() const; |
| 284 | private: |
| 285 | bool _internal_has_patch() const; |
| 286 | public: |
| 287 | void clear_patch(); |
| 288 | int32_t patch() const; |
| 289 | void set_patch(int32_t value); |
| 290 | private: |
| 291 | int32_t _internal_patch() const; |
| 292 | void _internal_set_patch(int32_t value); |
| 293 | public: |
| 294 | |
| 295 | // @@protoc_insertion_point(class_scope:google.protobuf.compiler.Version) |
| 296 | private: |
| 297 | class _Internal; |
| 298 | |
| 299 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
| 300 | typedef void InternalArenaConstructable_; |
| 301 | typedef void DestructorSkippable_; |
| 302 | struct Impl_ { |
| 303 | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
| 304 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
| 305 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr suffix_; |
| 306 | int32_t major_; |
| 307 | int32_t minor_; |
| 308 | int32_t patch_; |
| 309 | }; |
| 310 | union { Impl_ _impl_; }; |
| 311 | friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto; |
| 312 | }; |
| 313 | // ------------------------------------------------------------------- |
| 314 | |
| 315 | class PROTOC_EXPORT CodeGeneratorRequest final : |
| 316 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorRequest) */ { |
| 317 | public: |
| 318 | inline CodeGeneratorRequest() : CodeGeneratorRequest(nullptr) {} |
| 319 | ~CodeGeneratorRequest() override; |
| 320 | explicit PROTOBUF_CONSTEXPR CodeGeneratorRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
| 321 | |
| 322 | CodeGeneratorRequest(const CodeGeneratorRequest& from); |
| 323 | CodeGeneratorRequest(CodeGeneratorRequest&& from) noexcept |
| 324 | : CodeGeneratorRequest() { |
| 325 | *this = ::std::move(from); |
| 326 | } |
| 327 | |
| 328 | inline CodeGeneratorRequest& operator=(const CodeGeneratorRequest& from) { |
| 329 | CopyFrom(from); |
| 330 | return *this; |
| 331 | } |
| 332 | inline CodeGeneratorRequest& operator=(CodeGeneratorRequest&& from) noexcept { |
| 333 | if (this == &from) return *this; |
| 334 | if (GetOwningArena() == from.GetOwningArena() |
| 335 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
| 336 | && GetOwningArena() != nullptr |
| 337 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
| 338 | ) { |
| 339 | InternalSwap(other: &from); |
| 340 | } else { |
| 341 | CopyFrom(from); |
| 342 | } |
| 343 | return *this; |
| 344 | } |
| 345 | |
| 346 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
| 347 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(default_instance: ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
| 348 | } |
| 349 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
| 350 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| 351 | } |
| 352 | |
| 353 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
| 354 | return GetDescriptor(); |
| 355 | } |
| 356 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
| 357 | return default_instance().GetMetadata().descriptor; |
| 358 | } |
| 359 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
| 360 | return default_instance().GetMetadata().reflection; |
| 361 | } |
| 362 | static const CodeGeneratorRequest& default_instance() { |
| 363 | return *internal_default_instance(); |
| 364 | } |
| 365 | static inline const CodeGeneratorRequest* internal_default_instance() { |
| 366 | return reinterpret_cast<const CodeGeneratorRequest*>( |
| 367 | &_CodeGeneratorRequest_default_instance_); |
| 368 | } |
| 369 | static constexpr int kIndexInFileMessages = |
| 370 | 1; |
| 371 | |
| 372 | friend void swap(CodeGeneratorRequest& a, CodeGeneratorRequest& b) { |
| 373 | a.Swap(other: &b); |
| 374 | } |
| 375 | inline void Swap(CodeGeneratorRequest* other) { |
| 376 | if (other == this) return; |
| 377 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
| 378 | if (GetOwningArena() != nullptr && |
| 379 | GetOwningArena() == other->GetOwningArena()) { |
| 380 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
| 381 | if (GetOwningArena() == other->GetOwningArena()) { |
| 382 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
| 383 | InternalSwap(other); |
| 384 | } else { |
| 385 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(m1: this, m2: other); |
| 386 | } |
| 387 | } |
| 388 | void UnsafeArenaSwap(CodeGeneratorRequest* other) { |
| 389 | if (other == this) return; |
| 390 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
| 391 | InternalSwap(other); |
| 392 | } |
| 393 | |
| 394 | // implements Message ---------------------------------------------- |
| 395 | |
| 396 | CodeGeneratorRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
| 397 | return CreateMaybeMessage<CodeGeneratorRequest>(arena); |
| 398 | } |
| 399 | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
| 400 | void CopyFrom(const CodeGeneratorRequest& from); |
| 401 | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
| 402 | void MergeFrom( const CodeGeneratorRequest& from) { |
| 403 | CodeGeneratorRequest::MergeImpl(to_msg&: *this, from_msg: from); |
| 404 | } |
| 405 | private: |
| 406 | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
| 407 | public: |
| 408 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 409 | bool IsInitialized() const final; |
| 410 | |
| 411 | size_t ByteSizeLong() const final; |
| 412 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
| 413 | uint8_t* _InternalSerialize( |
| 414 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
| 415 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
| 416 | |
| 417 | private: |
| 418 | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
| 419 | void SharedDtor(); |
| 420 | void SetCachedSize(int size) const final; |
| 421 | void InternalSwap(CodeGeneratorRequest* other); |
| 422 | |
| 423 | private: |
| 424 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
| 425 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
| 426 | return "google.protobuf.compiler.CodeGeneratorRequest" ; |
| 427 | } |
| 428 | protected: |
| 429 | explicit CodeGeneratorRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
| 430 | bool is_message_owned = false); |
| 431 | public: |
| 432 | |
| 433 | static const ClassData _class_data_; |
| 434 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
| 435 | |
| 436 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
| 437 | |
| 438 | // nested types ---------------------------------------------------- |
| 439 | |
| 440 | // accessors ------------------------------------------------------- |
| 441 | |
| 442 | enum : int { |
| 443 | kFileToGenerateFieldNumber = 1, |
| 444 | kProtoFileFieldNumber = 15, |
| 445 | kParameterFieldNumber = 2, |
| 446 | kCompilerVersionFieldNumber = 3, |
| 447 | }; |
| 448 | // repeated string file_to_generate = 1; |
| 449 | int file_to_generate_size() const; |
| 450 | private: |
| 451 | int _internal_file_to_generate_size() const; |
| 452 | public: |
| 453 | void clear_file_to_generate(); |
| 454 | const std::string& file_to_generate(int index) const; |
| 455 | std::string* mutable_file_to_generate(int index); |
| 456 | void set_file_to_generate(int index, const std::string& value); |
| 457 | void set_file_to_generate(int index, std::string&& value); |
| 458 | void set_file_to_generate(int index, const char* value); |
| 459 | void set_file_to_generate(int index, const char* value, size_t size); |
| 460 | std::string* add_file_to_generate(); |
| 461 | void add_file_to_generate(const std::string& value); |
| 462 | void add_file_to_generate(std::string&& value); |
| 463 | void add_file_to_generate(const char* value); |
| 464 | void add_file_to_generate(const char* value, size_t size); |
| 465 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& file_to_generate() const; |
| 466 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_file_to_generate(); |
| 467 | private: |
| 468 | const std::string& _internal_file_to_generate(int index) const; |
| 469 | std::string* _internal_add_file_to_generate(); |
| 470 | public: |
| 471 | |
| 472 | // repeated .google.protobuf.FileDescriptorProto proto_file = 15; |
| 473 | int proto_file_size() const; |
| 474 | private: |
| 475 | int _internal_proto_file_size() const; |
| 476 | public: |
| 477 | void clear_proto_file(); |
| 478 | ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* mutable_proto_file(int index); |
| 479 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >* |
| 480 | mutable_proto_file(); |
| 481 | private: |
| 482 | const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& _internal_proto_file(int index) const; |
| 483 | ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* _internal_add_proto_file(); |
| 484 | public: |
| 485 | const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& proto_file(int index) const; |
| 486 | ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* add_proto_file(); |
| 487 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >& |
| 488 | proto_file() const; |
| 489 | |
| 490 | // optional string parameter = 2; |
| 491 | bool has_parameter() const; |
| 492 | private: |
| 493 | bool _internal_has_parameter() const; |
| 494 | public: |
| 495 | void clear_parameter(); |
| 496 | const std::string& parameter() const; |
| 497 | template <typename ArgT0 = const std::string&, typename... ArgT> |
| 498 | void set_parameter(ArgT0&& arg0, ArgT... args); |
| 499 | std::string* mutable_parameter(); |
| 500 | PROTOBUF_NODISCARD std::string* release_parameter(); |
| 501 | void set_allocated_parameter(std::string* parameter); |
| 502 | private: |
| 503 | const std::string& _internal_parameter() const; |
| 504 | inline PROTOBUF_ALWAYS_INLINE void _internal_set_parameter(const std::string& value); |
| 505 | std::string* _internal_mutable_parameter(); |
| 506 | public: |
| 507 | |
| 508 | // optional .google.protobuf.compiler.Version compiler_version = 3; |
| 509 | bool has_compiler_version() const; |
| 510 | private: |
| 511 | bool _internal_has_compiler_version() const; |
| 512 | public: |
| 513 | void clear_compiler_version(); |
| 514 | const ::PROTOBUF_NAMESPACE_ID::compiler::Version& compiler_version() const; |
| 515 | PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::compiler::Version* release_compiler_version(); |
| 516 | ::PROTOBUF_NAMESPACE_ID::compiler::Version* mutable_compiler_version(); |
| 517 | void set_allocated_compiler_version(::PROTOBUF_NAMESPACE_ID::compiler::Version* compiler_version); |
| 518 | private: |
| 519 | const ::PROTOBUF_NAMESPACE_ID::compiler::Version& _internal_compiler_version() const; |
| 520 | ::PROTOBUF_NAMESPACE_ID::compiler::Version* _internal_mutable_compiler_version(); |
| 521 | public: |
| 522 | void unsafe_arena_set_allocated_compiler_version( |
| 523 | ::PROTOBUF_NAMESPACE_ID::compiler::Version* compiler_version); |
| 524 | ::PROTOBUF_NAMESPACE_ID::compiler::Version* unsafe_arena_release_compiler_version(); |
| 525 | |
| 526 | // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorRequest) |
| 527 | private: |
| 528 | class _Internal; |
| 529 | |
| 530 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
| 531 | typedef void InternalArenaConstructable_; |
| 532 | typedef void DestructorSkippable_; |
| 533 | struct Impl_ { |
| 534 | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
| 535 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
| 536 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> file_to_generate_; |
| 537 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto > proto_file_; |
| 538 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parameter_; |
| 539 | ::PROTOBUF_NAMESPACE_ID::compiler::Version* compiler_version_; |
| 540 | }; |
| 541 | union { Impl_ _impl_; }; |
| 542 | friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto; |
| 543 | }; |
| 544 | // ------------------------------------------------------------------- |
| 545 | |
| 546 | class PROTOC_EXPORT CodeGeneratorResponse_File final : |
| 547 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorResponse.File) */ { |
| 548 | public: |
| 549 | inline CodeGeneratorResponse_File() : CodeGeneratorResponse_File(nullptr) {} |
| 550 | ~CodeGeneratorResponse_File() override; |
| 551 | explicit PROTOBUF_CONSTEXPR CodeGeneratorResponse_File(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
| 552 | |
| 553 | CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from); |
| 554 | CodeGeneratorResponse_File(CodeGeneratorResponse_File&& from) noexcept |
| 555 | : CodeGeneratorResponse_File() { |
| 556 | *this = ::std::move(from); |
| 557 | } |
| 558 | |
| 559 | inline CodeGeneratorResponse_File& operator=(const CodeGeneratorResponse_File& from) { |
| 560 | CopyFrom(from); |
| 561 | return *this; |
| 562 | } |
| 563 | inline CodeGeneratorResponse_File& operator=(CodeGeneratorResponse_File&& from) noexcept { |
| 564 | if (this == &from) return *this; |
| 565 | if (GetOwningArena() == from.GetOwningArena() |
| 566 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
| 567 | && GetOwningArena() != nullptr |
| 568 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
| 569 | ) { |
| 570 | InternalSwap(other: &from); |
| 571 | } else { |
| 572 | CopyFrom(from); |
| 573 | } |
| 574 | return *this; |
| 575 | } |
| 576 | |
| 577 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
| 578 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(default_instance: ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
| 579 | } |
| 580 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
| 581 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| 582 | } |
| 583 | |
| 584 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
| 585 | return GetDescriptor(); |
| 586 | } |
| 587 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
| 588 | return default_instance().GetMetadata().descriptor; |
| 589 | } |
| 590 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
| 591 | return default_instance().GetMetadata().reflection; |
| 592 | } |
| 593 | static const CodeGeneratorResponse_File& default_instance() { |
| 594 | return *internal_default_instance(); |
| 595 | } |
| 596 | static inline const CodeGeneratorResponse_File* internal_default_instance() { |
| 597 | return reinterpret_cast<const CodeGeneratorResponse_File*>( |
| 598 | &_CodeGeneratorResponse_File_default_instance_); |
| 599 | } |
| 600 | static constexpr int kIndexInFileMessages = |
| 601 | 2; |
| 602 | |
| 603 | friend void swap(CodeGeneratorResponse_File& a, CodeGeneratorResponse_File& b) { |
| 604 | a.Swap(other: &b); |
| 605 | } |
| 606 | inline void Swap(CodeGeneratorResponse_File* other) { |
| 607 | if (other == this) return; |
| 608 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
| 609 | if (GetOwningArena() != nullptr && |
| 610 | GetOwningArena() == other->GetOwningArena()) { |
| 611 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
| 612 | if (GetOwningArena() == other->GetOwningArena()) { |
| 613 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
| 614 | InternalSwap(other); |
| 615 | } else { |
| 616 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(m1: this, m2: other); |
| 617 | } |
| 618 | } |
| 619 | void UnsafeArenaSwap(CodeGeneratorResponse_File* other) { |
| 620 | if (other == this) return; |
| 621 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
| 622 | InternalSwap(other); |
| 623 | } |
| 624 | |
| 625 | // implements Message ---------------------------------------------- |
| 626 | |
| 627 | CodeGeneratorResponse_File* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
| 628 | return CreateMaybeMessage<CodeGeneratorResponse_File>(arena); |
| 629 | } |
| 630 | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
| 631 | void CopyFrom(const CodeGeneratorResponse_File& from); |
| 632 | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
| 633 | void MergeFrom( const CodeGeneratorResponse_File& from) { |
| 634 | CodeGeneratorResponse_File::MergeImpl(to_msg&: *this, from_msg: from); |
| 635 | } |
| 636 | private: |
| 637 | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
| 638 | public: |
| 639 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 640 | bool IsInitialized() const final; |
| 641 | |
| 642 | size_t ByteSizeLong() const final; |
| 643 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
| 644 | uint8_t* _InternalSerialize( |
| 645 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
| 646 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
| 647 | |
| 648 | private: |
| 649 | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
| 650 | void SharedDtor(); |
| 651 | void SetCachedSize(int size) const final; |
| 652 | void InternalSwap(CodeGeneratorResponse_File* other); |
| 653 | |
| 654 | private: |
| 655 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
| 656 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
| 657 | return "google.protobuf.compiler.CodeGeneratorResponse.File" ; |
| 658 | } |
| 659 | protected: |
| 660 | explicit CodeGeneratorResponse_File(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
| 661 | bool is_message_owned = false); |
| 662 | public: |
| 663 | |
| 664 | static const ClassData _class_data_; |
| 665 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
| 666 | |
| 667 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
| 668 | |
| 669 | // nested types ---------------------------------------------------- |
| 670 | |
| 671 | // accessors ------------------------------------------------------- |
| 672 | |
| 673 | enum : int { |
| 674 | kNameFieldNumber = 1, |
| 675 | kInsertionPointFieldNumber = 2, |
| 676 | kContentFieldNumber = 15, |
| 677 | kGeneratedCodeInfoFieldNumber = 16, |
| 678 | }; |
| 679 | // optional string name = 1; |
| 680 | bool has_name() const; |
| 681 | private: |
| 682 | bool _internal_has_name() const; |
| 683 | public: |
| 684 | void clear_name(); |
| 685 | const std::string& name() const; |
| 686 | template <typename ArgT0 = const std::string&, typename... ArgT> |
| 687 | void set_name(ArgT0&& arg0, ArgT... args); |
| 688 | std::string* mutable_name(); |
| 689 | PROTOBUF_NODISCARD std::string* release_name(); |
| 690 | void set_allocated_name(std::string* name); |
| 691 | private: |
| 692 | const std::string& _internal_name() const; |
| 693 | inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); |
| 694 | std::string* _internal_mutable_name(); |
| 695 | public: |
| 696 | |
| 697 | // optional string insertion_point = 2; |
| 698 | bool has_insertion_point() const; |
| 699 | private: |
| 700 | bool _internal_has_insertion_point() const; |
| 701 | public: |
| 702 | void clear_insertion_point(); |
| 703 | const std::string& insertion_point() const; |
| 704 | template <typename ArgT0 = const std::string&, typename... ArgT> |
| 705 | void set_insertion_point(ArgT0&& arg0, ArgT... args); |
| 706 | std::string* mutable_insertion_point(); |
| 707 | PROTOBUF_NODISCARD std::string* release_insertion_point(); |
| 708 | void set_allocated_insertion_point(std::string* insertion_point); |
| 709 | private: |
| 710 | const std::string& _internal_insertion_point() const; |
| 711 | inline PROTOBUF_ALWAYS_INLINE void _internal_set_insertion_point(const std::string& value); |
| 712 | std::string* _internal_mutable_insertion_point(); |
| 713 | public: |
| 714 | |
| 715 | // optional string content = 15; |
| 716 | bool has_content() const; |
| 717 | private: |
| 718 | bool _internal_has_content() const; |
| 719 | public: |
| 720 | void clear_content(); |
| 721 | const std::string& content() const; |
| 722 | template <typename ArgT0 = const std::string&, typename... ArgT> |
| 723 | void set_content(ArgT0&& arg0, ArgT... args); |
| 724 | std::string* mutable_content(); |
| 725 | PROTOBUF_NODISCARD std::string* release_content(); |
| 726 | void set_allocated_content(std::string* content); |
| 727 | private: |
| 728 | const std::string& _internal_content() const; |
| 729 | inline PROTOBUF_ALWAYS_INLINE void _internal_set_content(const std::string& value); |
| 730 | std::string* _internal_mutable_content(); |
| 731 | public: |
| 732 | |
| 733 | // optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16; |
| 734 | bool has_generated_code_info() const; |
| 735 | private: |
| 736 | bool _internal_has_generated_code_info() const; |
| 737 | public: |
| 738 | void clear_generated_code_info(); |
| 739 | const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo& generated_code_info() const; |
| 740 | PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* release_generated_code_info(); |
| 741 | ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* mutable_generated_code_info(); |
| 742 | void set_allocated_generated_code_info(::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* generated_code_info); |
| 743 | private: |
| 744 | const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo& _internal_generated_code_info() const; |
| 745 | ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* _internal_mutable_generated_code_info(); |
| 746 | public: |
| 747 | void unsafe_arena_set_allocated_generated_code_info( |
| 748 | ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* generated_code_info); |
| 749 | ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* unsafe_arena_release_generated_code_info(); |
| 750 | |
| 751 | // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse.File) |
| 752 | private: |
| 753 | class _Internal; |
| 754 | |
| 755 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
| 756 | typedef void InternalArenaConstructable_; |
| 757 | typedef void DestructorSkippable_; |
| 758 | struct Impl_ { |
| 759 | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
| 760 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
| 761 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
| 762 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr insertion_point_; |
| 763 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_; |
| 764 | ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* generated_code_info_; |
| 765 | }; |
| 766 | union { Impl_ _impl_; }; |
| 767 | friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto; |
| 768 | }; |
| 769 | // ------------------------------------------------------------------- |
| 770 | |
| 771 | class PROTOC_EXPORT CodeGeneratorResponse final : |
| 772 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorResponse) */ { |
| 773 | public: |
| 774 | inline CodeGeneratorResponse() : CodeGeneratorResponse(nullptr) {} |
| 775 | ~CodeGeneratorResponse() override; |
| 776 | explicit PROTOBUF_CONSTEXPR CodeGeneratorResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
| 777 | |
| 778 | CodeGeneratorResponse(const CodeGeneratorResponse& from); |
| 779 | CodeGeneratorResponse(CodeGeneratorResponse&& from) noexcept |
| 780 | : CodeGeneratorResponse() { |
| 781 | *this = ::std::move(from); |
| 782 | } |
| 783 | |
| 784 | inline CodeGeneratorResponse& operator=(const CodeGeneratorResponse& from) { |
| 785 | CopyFrom(from); |
| 786 | return *this; |
| 787 | } |
| 788 | inline CodeGeneratorResponse& operator=(CodeGeneratorResponse&& from) noexcept { |
| 789 | if (this == &from) return *this; |
| 790 | if (GetOwningArena() == from.GetOwningArena() |
| 791 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
| 792 | && GetOwningArena() != nullptr |
| 793 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
| 794 | ) { |
| 795 | InternalSwap(other: &from); |
| 796 | } else { |
| 797 | CopyFrom(from); |
| 798 | } |
| 799 | return *this; |
| 800 | } |
| 801 | |
| 802 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
| 803 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(default_instance: ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
| 804 | } |
| 805 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
| 806 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| 807 | } |
| 808 | |
| 809 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
| 810 | return GetDescriptor(); |
| 811 | } |
| 812 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
| 813 | return default_instance().GetMetadata().descriptor; |
| 814 | } |
| 815 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
| 816 | return default_instance().GetMetadata().reflection; |
| 817 | } |
| 818 | static const CodeGeneratorResponse& default_instance() { |
| 819 | return *internal_default_instance(); |
| 820 | } |
| 821 | static inline const CodeGeneratorResponse* internal_default_instance() { |
| 822 | return reinterpret_cast<const CodeGeneratorResponse*>( |
| 823 | &_CodeGeneratorResponse_default_instance_); |
| 824 | } |
| 825 | static constexpr int kIndexInFileMessages = |
| 826 | 3; |
| 827 | |
| 828 | friend void swap(CodeGeneratorResponse& a, CodeGeneratorResponse& b) { |
| 829 | a.Swap(other: &b); |
| 830 | } |
| 831 | inline void Swap(CodeGeneratorResponse* other) { |
| 832 | if (other == this) return; |
| 833 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
| 834 | if (GetOwningArena() != nullptr && |
| 835 | GetOwningArena() == other->GetOwningArena()) { |
| 836 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
| 837 | if (GetOwningArena() == other->GetOwningArena()) { |
| 838 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
| 839 | InternalSwap(other); |
| 840 | } else { |
| 841 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(m1: this, m2: other); |
| 842 | } |
| 843 | } |
| 844 | void UnsafeArenaSwap(CodeGeneratorResponse* other) { |
| 845 | if (other == this) return; |
| 846 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
| 847 | InternalSwap(other); |
| 848 | } |
| 849 | |
| 850 | // implements Message ---------------------------------------------- |
| 851 | |
| 852 | CodeGeneratorResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
| 853 | return CreateMaybeMessage<CodeGeneratorResponse>(arena); |
| 854 | } |
| 855 | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
| 856 | void CopyFrom(const CodeGeneratorResponse& from); |
| 857 | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
| 858 | void MergeFrom( const CodeGeneratorResponse& from) { |
| 859 | CodeGeneratorResponse::MergeImpl(to_msg&: *this, from_msg: from); |
| 860 | } |
| 861 | private: |
| 862 | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
| 863 | public: |
| 864 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 865 | bool IsInitialized() const final; |
| 866 | |
| 867 | size_t ByteSizeLong() const final; |
| 868 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
| 869 | uint8_t* _InternalSerialize( |
| 870 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
| 871 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
| 872 | |
| 873 | private: |
| 874 | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
| 875 | void SharedDtor(); |
| 876 | void SetCachedSize(int size) const final; |
| 877 | void InternalSwap(CodeGeneratorResponse* other); |
| 878 | |
| 879 | private: |
| 880 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
| 881 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
| 882 | return "google.protobuf.compiler.CodeGeneratorResponse" ; |
| 883 | } |
| 884 | protected: |
| 885 | explicit CodeGeneratorResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
| 886 | bool is_message_owned = false); |
| 887 | public: |
| 888 | |
| 889 | static const ClassData _class_data_; |
| 890 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
| 891 | |
| 892 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
| 893 | |
| 894 | // nested types ---------------------------------------------------- |
| 895 | |
| 896 | typedef CodeGeneratorResponse_File File; |
| 897 | |
| 898 | typedef CodeGeneratorResponse_Feature Feature; |
| 899 | static constexpr Feature FEATURE_NONE = |
| 900 | CodeGeneratorResponse_Feature_FEATURE_NONE; |
| 901 | static constexpr Feature FEATURE_PROTO3_OPTIONAL = |
| 902 | CodeGeneratorResponse_Feature_FEATURE_PROTO3_OPTIONAL; |
| 903 | static inline bool Feature_IsValid(int value) { |
| 904 | return CodeGeneratorResponse_Feature_IsValid(value); |
| 905 | } |
| 906 | static constexpr Feature Feature_MIN = |
| 907 | CodeGeneratorResponse_Feature_Feature_MIN; |
| 908 | static constexpr Feature Feature_MAX = |
| 909 | CodeGeneratorResponse_Feature_Feature_MAX; |
| 910 | static constexpr int Feature_ARRAYSIZE = |
| 911 | CodeGeneratorResponse_Feature_Feature_ARRAYSIZE; |
| 912 | static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* |
| 913 | Feature_descriptor() { |
| 914 | return CodeGeneratorResponse_Feature_descriptor(); |
| 915 | } |
| 916 | template<typename T> |
| 917 | static inline const std::string& Feature_Name(T enum_t_value) { |
| 918 | static_assert(::std::is_same<T, Feature>::value || |
| 919 | ::std::is_integral<T>::value, |
| 920 | "Incorrect type passed to function Feature_Name." ); |
| 921 | return CodeGeneratorResponse_Feature_Name(enum_t_value); |
| 922 | } |
| 923 | static inline bool Feature_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, |
| 924 | Feature* value) { |
| 925 | return CodeGeneratorResponse_Feature_Parse(name, value); |
| 926 | } |
| 927 | |
| 928 | // accessors ------------------------------------------------------- |
| 929 | |
| 930 | enum : int { |
| 931 | kFileFieldNumber = 15, |
| 932 | kErrorFieldNumber = 1, |
| 933 | kSupportedFeaturesFieldNumber = 2, |
| 934 | }; |
| 935 | // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
| 936 | int file_size() const; |
| 937 | private: |
| 938 | int _internal_file_size() const; |
| 939 | public: |
| 940 | void clear_file(); |
| 941 | ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* mutable_file(int index); |
| 942 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File >* |
| 943 | mutable_file(); |
| 944 | private: |
| 945 | const ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File& _internal_file(int index) const; |
| 946 | ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* _internal_add_file(); |
| 947 | public: |
| 948 | const ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File& file(int index) const; |
| 949 | ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* add_file(); |
| 950 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File >& |
| 951 | file() const; |
| 952 | |
| 953 | // optional string error = 1; |
| 954 | bool has_error() const; |
| 955 | private: |
| 956 | bool _internal_has_error() const; |
| 957 | public: |
| 958 | void clear_error(); |
| 959 | const std::string& error() const; |
| 960 | template <typename ArgT0 = const std::string&, typename... ArgT> |
| 961 | void set_error(ArgT0&& arg0, ArgT... args); |
| 962 | std::string* mutable_error(); |
| 963 | PROTOBUF_NODISCARD std::string* release_error(); |
| 964 | void set_allocated_error(std::string* error); |
| 965 | private: |
| 966 | const std::string& _internal_error() const; |
| 967 | inline PROTOBUF_ALWAYS_INLINE void _internal_set_error(const std::string& value); |
| 968 | std::string* _internal_mutable_error(); |
| 969 | public: |
| 970 | |
| 971 | // optional uint64 supported_features = 2; |
| 972 | bool has_supported_features() const; |
| 973 | private: |
| 974 | bool _internal_has_supported_features() const; |
| 975 | public: |
| 976 | void clear_supported_features(); |
| 977 | uint64_t supported_features() const; |
| 978 | void set_supported_features(uint64_t value); |
| 979 | private: |
| 980 | uint64_t _internal_supported_features() const; |
| 981 | void _internal_set_supported_features(uint64_t value); |
| 982 | public: |
| 983 | |
| 984 | // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse) |
| 985 | private: |
| 986 | class _Internal; |
| 987 | |
| 988 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
| 989 | typedef void InternalArenaConstructable_; |
| 990 | typedef void DestructorSkippable_; |
| 991 | struct Impl_ { |
| 992 | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
| 993 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
| 994 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File > file_; |
| 995 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr error_; |
| 996 | uint64_t supported_features_; |
| 997 | }; |
| 998 | union { Impl_ _impl_; }; |
| 999 | friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto; |
| 1000 | }; |
| 1001 | // =================================================================== |
| 1002 | |
| 1003 | |
| 1004 | // =================================================================== |
| 1005 | |
| 1006 | #ifdef __GNUC__ |
| 1007 | #pragma GCC diagnostic push |
| 1008 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
| 1009 | #endif // __GNUC__ |
| 1010 | // Version |
| 1011 | |
| 1012 | // optional int32 major = 1; |
| 1013 | inline bool Version::_internal_has_major() const { |
| 1014 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
| 1015 | return value; |
| 1016 | } |
| 1017 | inline bool Version::has_major() const { |
| 1018 | return _internal_has_major(); |
| 1019 | } |
| 1020 | inline void Version::clear_major() { |
| 1021 | _impl_.major_ = 0; |
| 1022 | _impl_._has_bits_[0] &= ~0x00000002u; |
| 1023 | } |
| 1024 | inline int32_t Version::_internal_major() const { |
| 1025 | return _impl_.major_; |
| 1026 | } |
| 1027 | inline int32_t Version::major() const { |
| 1028 | // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.major) |
| 1029 | return _internal_major(); |
| 1030 | } |
| 1031 | inline void Version::_internal_set_major(int32_t value) { |
| 1032 | _impl_._has_bits_[0] |= 0x00000002u; |
| 1033 | _impl_.major_ = value; |
| 1034 | } |
| 1035 | inline void Version::set_major(int32_t value) { |
| 1036 | _internal_set_major(value); |
| 1037 | // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.major) |
| 1038 | } |
| 1039 | |
| 1040 | // optional int32 minor = 2; |
| 1041 | inline bool Version::_internal_has_minor() const { |
| 1042 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
| 1043 | return value; |
| 1044 | } |
| 1045 | inline bool Version::has_minor() const { |
| 1046 | return _internal_has_minor(); |
| 1047 | } |
| 1048 | inline void Version::clear_minor() { |
| 1049 | _impl_.minor_ = 0; |
| 1050 | _impl_._has_bits_[0] &= ~0x00000004u; |
| 1051 | } |
| 1052 | inline int32_t Version::_internal_minor() const { |
| 1053 | return _impl_.minor_; |
| 1054 | } |
| 1055 | inline int32_t Version::minor() const { |
| 1056 | // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.minor) |
| 1057 | return _internal_minor(); |
| 1058 | } |
| 1059 | inline void Version::_internal_set_minor(int32_t value) { |
| 1060 | _impl_._has_bits_[0] |= 0x00000004u; |
| 1061 | _impl_.minor_ = value; |
| 1062 | } |
| 1063 | inline void Version::set_minor(int32_t value) { |
| 1064 | _internal_set_minor(value); |
| 1065 | // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.minor) |
| 1066 | } |
| 1067 | |
| 1068 | // optional int32 patch = 3; |
| 1069 | inline bool Version::_internal_has_patch() const { |
| 1070 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
| 1071 | return value; |
| 1072 | } |
| 1073 | inline bool Version::has_patch() const { |
| 1074 | return _internal_has_patch(); |
| 1075 | } |
| 1076 | inline void Version::clear_patch() { |
| 1077 | _impl_.patch_ = 0; |
| 1078 | _impl_._has_bits_[0] &= ~0x00000008u; |
| 1079 | } |
| 1080 | inline int32_t Version::_internal_patch() const { |
| 1081 | return _impl_.patch_; |
| 1082 | } |
| 1083 | inline int32_t Version::patch() const { |
| 1084 | // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.patch) |
| 1085 | return _internal_patch(); |
| 1086 | } |
| 1087 | inline void Version::_internal_set_patch(int32_t value) { |
| 1088 | _impl_._has_bits_[0] |= 0x00000008u; |
| 1089 | _impl_.patch_ = value; |
| 1090 | } |
| 1091 | inline void Version::set_patch(int32_t value) { |
| 1092 | _internal_set_patch(value); |
| 1093 | // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.patch) |
| 1094 | } |
| 1095 | |
| 1096 | // optional string suffix = 4; |
| 1097 | inline bool Version::_internal_has_suffix() const { |
| 1098 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
| 1099 | return value; |
| 1100 | } |
| 1101 | inline bool Version::has_suffix() const { |
| 1102 | return _internal_has_suffix(); |
| 1103 | } |
| 1104 | inline void Version::clear_suffix() { |
| 1105 | _impl_.suffix_.ClearToEmpty(); |
| 1106 | _impl_._has_bits_[0] &= ~0x00000001u; |
| 1107 | } |
| 1108 | inline const std::string& Version::suffix() const { |
| 1109 | // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.suffix) |
| 1110 | return _internal_suffix(); |
| 1111 | } |
| 1112 | template <typename ArgT0, typename... ArgT> |
| 1113 | inline PROTOBUF_ALWAYS_INLINE |
| 1114 | void Version::set_suffix(ArgT0&& arg0, ArgT... args) { |
| 1115 | _impl_._has_bits_[0] |= 0x00000001u; |
| 1116 | _impl_.suffix_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
| 1117 | // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.suffix) |
| 1118 | } |
| 1119 | inline std::string* Version::mutable_suffix() { |
| 1120 | std::string* _s = _internal_mutable_suffix(); |
| 1121 | // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.Version.suffix) |
| 1122 | return _s; |
| 1123 | } |
| 1124 | inline const std::string& Version::_internal_suffix() const { |
| 1125 | return _impl_.suffix_.Get(); |
| 1126 | } |
| 1127 | inline void Version::_internal_set_suffix(const std::string& value) { |
| 1128 | _impl_._has_bits_[0] |= 0x00000001u; |
| 1129 | _impl_.suffix_.Set(value, arena: GetArenaForAllocation()); |
| 1130 | } |
| 1131 | inline std::string* Version::_internal_mutable_suffix() { |
| 1132 | _impl_._has_bits_[0] |= 0x00000001u; |
| 1133 | return _impl_.suffix_.Mutable(arena: GetArenaForAllocation()); |
| 1134 | } |
| 1135 | inline std::string* Version::release_suffix() { |
| 1136 | // @@protoc_insertion_point(field_release:google.protobuf.compiler.Version.suffix) |
| 1137 | if (!_internal_has_suffix()) { |
| 1138 | return nullptr; |
| 1139 | } |
| 1140 | _impl_._has_bits_[0] &= ~0x00000001u; |
| 1141 | auto* p = _impl_.suffix_.Release(); |
| 1142 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1143 | if (_impl_.suffix_.IsDefault()) { |
| 1144 | _impl_.suffix_.Set("" , GetArenaForAllocation()); |
| 1145 | } |
| 1146 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1147 | return p; |
| 1148 | } |
| 1149 | inline void Version::set_allocated_suffix(std::string* suffix) { |
| 1150 | if (suffix != nullptr) { |
| 1151 | _impl_._has_bits_[0] |= 0x00000001u; |
| 1152 | } else { |
| 1153 | _impl_._has_bits_[0] &= ~0x00000001u; |
| 1154 | } |
| 1155 | _impl_.suffix_.SetAllocated(value: suffix, arena: GetArenaForAllocation()); |
| 1156 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1157 | if (_impl_.suffix_.IsDefault()) { |
| 1158 | _impl_.suffix_.Set("" , GetArenaForAllocation()); |
| 1159 | } |
| 1160 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1161 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.Version.suffix) |
| 1162 | } |
| 1163 | |
| 1164 | // ------------------------------------------------------------------- |
| 1165 | |
| 1166 | // CodeGeneratorRequest |
| 1167 | |
| 1168 | // repeated string file_to_generate = 1; |
| 1169 | inline int CodeGeneratorRequest::_internal_file_to_generate_size() const { |
| 1170 | return _impl_.file_to_generate_.size(); |
| 1171 | } |
| 1172 | inline int CodeGeneratorRequest::file_to_generate_size() const { |
| 1173 | return _internal_file_to_generate_size(); |
| 1174 | } |
| 1175 | inline void CodeGeneratorRequest::clear_file_to_generate() { |
| 1176 | _impl_.file_to_generate_.Clear(); |
| 1177 | } |
| 1178 | inline std::string* CodeGeneratorRequest::add_file_to_generate() { |
| 1179 | std::string* _s = _internal_add_file_to_generate(); |
| 1180 | // @@protoc_insertion_point(field_add_mutable:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
| 1181 | return _s; |
| 1182 | } |
| 1183 | inline const std::string& CodeGeneratorRequest::_internal_file_to_generate(int index) const { |
| 1184 | return _impl_.file_to_generate_.Get(index); |
| 1185 | } |
| 1186 | inline const std::string& CodeGeneratorRequest::file_to_generate(int index) const { |
| 1187 | // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
| 1188 | return _internal_file_to_generate(index); |
| 1189 | } |
| 1190 | inline std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) { |
| 1191 | // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
| 1192 | return _impl_.file_to_generate_.Mutable(index); |
| 1193 | } |
| 1194 | inline void CodeGeneratorRequest::set_file_to_generate(int index, const std::string& value) { |
| 1195 | _impl_.file_to_generate_.Mutable(index)->assign(str: value); |
| 1196 | // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
| 1197 | } |
| 1198 | inline void CodeGeneratorRequest::set_file_to_generate(int index, std::string&& value) { |
| 1199 | _impl_.file_to_generate_.Mutable(index)->assign(str: std::move(value)); |
| 1200 | // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
| 1201 | } |
| 1202 | inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* value) { |
| 1203 | GOOGLE_DCHECK(value != nullptr); |
| 1204 | _impl_.file_to_generate_.Mutable(index)->assign(s: value); |
| 1205 | // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
| 1206 | } |
| 1207 | inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* value, size_t size) { |
| 1208 | _impl_.file_to_generate_.Mutable(index)->assign( |
| 1209 | s: reinterpret_cast<const char*>(value), n: size); |
| 1210 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
| 1211 | } |
| 1212 | inline std::string* CodeGeneratorRequest::_internal_add_file_to_generate() { |
| 1213 | return _impl_.file_to_generate_.Add(); |
| 1214 | } |
| 1215 | inline void CodeGeneratorRequest::add_file_to_generate(const std::string& value) { |
| 1216 | _impl_.file_to_generate_.Add()->assign(str: value); |
| 1217 | // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
| 1218 | } |
| 1219 | inline void CodeGeneratorRequest::add_file_to_generate(std::string&& value) { |
| 1220 | _impl_.file_to_generate_.Add(value: std::move(value)); |
| 1221 | // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
| 1222 | } |
| 1223 | inline void CodeGeneratorRequest::add_file_to_generate(const char* value) { |
| 1224 | GOOGLE_DCHECK(value != nullptr); |
| 1225 | _impl_.file_to_generate_.Add()->assign(s: value); |
| 1226 | // @@protoc_insertion_point(field_add_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
| 1227 | } |
| 1228 | inline void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t size) { |
| 1229 | _impl_.file_to_generate_.Add()->assign(s: reinterpret_cast<const char*>(value), n: size); |
| 1230 | // @@protoc_insertion_point(field_add_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
| 1231 | } |
| 1232 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
| 1233 | CodeGeneratorRequest::file_to_generate() const { |
| 1234 | // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
| 1235 | return _impl_.file_to_generate_; |
| 1236 | } |
| 1237 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
| 1238 | CodeGeneratorRequest::mutable_file_to_generate() { |
| 1239 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
| 1240 | return &_impl_.file_to_generate_; |
| 1241 | } |
| 1242 | |
| 1243 | // optional string parameter = 2; |
| 1244 | inline bool CodeGeneratorRequest::_internal_has_parameter() const { |
| 1245 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
| 1246 | return value; |
| 1247 | } |
| 1248 | inline bool CodeGeneratorRequest::has_parameter() const { |
| 1249 | return _internal_has_parameter(); |
| 1250 | } |
| 1251 | inline void CodeGeneratorRequest::clear_parameter() { |
| 1252 | _impl_.parameter_.ClearToEmpty(); |
| 1253 | _impl_._has_bits_[0] &= ~0x00000001u; |
| 1254 | } |
| 1255 | inline const std::string& CodeGeneratorRequest::parameter() const { |
| 1256 | // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.parameter) |
| 1257 | return _internal_parameter(); |
| 1258 | } |
| 1259 | template <typename ArgT0, typename... ArgT> |
| 1260 | inline PROTOBUF_ALWAYS_INLINE |
| 1261 | void CodeGeneratorRequest::set_parameter(ArgT0&& arg0, ArgT... args) { |
| 1262 | _impl_._has_bits_[0] |= 0x00000001u; |
| 1263 | _impl_.parameter_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
| 1264 | // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.parameter) |
| 1265 | } |
| 1266 | inline std::string* CodeGeneratorRequest::mutable_parameter() { |
| 1267 | std::string* _s = _internal_mutable_parameter(); |
| 1268 | // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.parameter) |
| 1269 | return _s; |
| 1270 | } |
| 1271 | inline const std::string& CodeGeneratorRequest::_internal_parameter() const { |
| 1272 | return _impl_.parameter_.Get(); |
| 1273 | } |
| 1274 | inline void CodeGeneratorRequest::_internal_set_parameter(const std::string& value) { |
| 1275 | _impl_._has_bits_[0] |= 0x00000001u; |
| 1276 | _impl_.parameter_.Set(value, arena: GetArenaForAllocation()); |
| 1277 | } |
| 1278 | inline std::string* CodeGeneratorRequest::_internal_mutable_parameter() { |
| 1279 | _impl_._has_bits_[0] |= 0x00000001u; |
| 1280 | return _impl_.parameter_.Mutable(arena: GetArenaForAllocation()); |
| 1281 | } |
| 1282 | inline std::string* CodeGeneratorRequest::release_parameter() { |
| 1283 | // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorRequest.parameter) |
| 1284 | if (!_internal_has_parameter()) { |
| 1285 | return nullptr; |
| 1286 | } |
| 1287 | _impl_._has_bits_[0] &= ~0x00000001u; |
| 1288 | auto* p = _impl_.parameter_.Release(); |
| 1289 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1290 | if (_impl_.parameter_.IsDefault()) { |
| 1291 | _impl_.parameter_.Set("" , GetArenaForAllocation()); |
| 1292 | } |
| 1293 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1294 | return p; |
| 1295 | } |
| 1296 | inline void CodeGeneratorRequest::set_allocated_parameter(std::string* parameter) { |
| 1297 | if (parameter != nullptr) { |
| 1298 | _impl_._has_bits_[0] |= 0x00000001u; |
| 1299 | } else { |
| 1300 | _impl_._has_bits_[0] &= ~0x00000001u; |
| 1301 | } |
| 1302 | _impl_.parameter_.SetAllocated(value: parameter, arena: GetArenaForAllocation()); |
| 1303 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1304 | if (_impl_.parameter_.IsDefault()) { |
| 1305 | _impl_.parameter_.Set("" , GetArenaForAllocation()); |
| 1306 | } |
| 1307 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1308 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorRequest.parameter) |
| 1309 | } |
| 1310 | |
| 1311 | // repeated .google.protobuf.FileDescriptorProto proto_file = 15; |
| 1312 | inline int CodeGeneratorRequest::_internal_proto_file_size() const { |
| 1313 | return _impl_.proto_file_.size(); |
| 1314 | } |
| 1315 | inline int CodeGeneratorRequest::proto_file_size() const { |
| 1316 | return _internal_proto_file_size(); |
| 1317 | } |
| 1318 | inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* CodeGeneratorRequest::mutable_proto_file(int index) { |
| 1319 | // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.proto_file) |
| 1320 | return _impl_.proto_file_.Mutable(index); |
| 1321 | } |
| 1322 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >* |
| 1323 | CodeGeneratorRequest::mutable_proto_file() { |
| 1324 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file) |
| 1325 | return &_impl_.proto_file_; |
| 1326 | } |
| 1327 | inline const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& CodeGeneratorRequest::_internal_proto_file(int index) const { |
| 1328 | return _impl_.proto_file_.Get(index); |
| 1329 | } |
| 1330 | inline const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& CodeGeneratorRequest::proto_file(int index) const { |
| 1331 | // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.proto_file) |
| 1332 | return _internal_proto_file(index); |
| 1333 | } |
| 1334 | inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* CodeGeneratorRequest::_internal_add_proto_file() { |
| 1335 | return _impl_.proto_file_.Add(); |
| 1336 | } |
| 1337 | inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* CodeGeneratorRequest::add_proto_file() { |
| 1338 | ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* _add = _internal_add_proto_file(); |
| 1339 | // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.proto_file) |
| 1340 | return _add; |
| 1341 | } |
| 1342 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >& |
| 1343 | CodeGeneratorRequest::proto_file() const { |
| 1344 | // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file) |
| 1345 | return _impl_.proto_file_; |
| 1346 | } |
| 1347 | |
| 1348 | // optional .google.protobuf.compiler.Version compiler_version = 3; |
| 1349 | inline bool CodeGeneratorRequest::_internal_has_compiler_version() const { |
| 1350 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
| 1351 | PROTOBUF_ASSUME(!value || _impl_.compiler_version_ != nullptr); |
| 1352 | return value; |
| 1353 | } |
| 1354 | inline bool CodeGeneratorRequest::has_compiler_version() const { |
| 1355 | return _internal_has_compiler_version(); |
| 1356 | } |
| 1357 | inline void CodeGeneratorRequest::clear_compiler_version() { |
| 1358 | if (_impl_.compiler_version_ != nullptr) _impl_.compiler_version_->Clear(); |
| 1359 | _impl_._has_bits_[0] &= ~0x00000002u; |
| 1360 | } |
| 1361 | inline const ::PROTOBUF_NAMESPACE_ID::compiler::Version& CodeGeneratorRequest::_internal_compiler_version() const { |
| 1362 | const ::PROTOBUF_NAMESPACE_ID::compiler::Version* p = _impl_.compiler_version_; |
| 1363 | return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::compiler::Version&>( |
| 1364 | ::PROTOBUF_NAMESPACE_ID::compiler::_Version_default_instance_); |
| 1365 | } |
| 1366 | inline const ::PROTOBUF_NAMESPACE_ID::compiler::Version& CodeGeneratorRequest::compiler_version() const { |
| 1367 | // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.compiler_version) |
| 1368 | return _internal_compiler_version(); |
| 1369 | } |
| 1370 | inline void CodeGeneratorRequest::unsafe_arena_set_allocated_compiler_version( |
| 1371 | ::PROTOBUF_NAMESPACE_ID::compiler::Version* compiler_version) { |
| 1372 | if (GetArenaForAllocation() == nullptr) { |
| 1373 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.compiler_version_); |
| 1374 | } |
| 1375 | _impl_.compiler_version_ = compiler_version; |
| 1376 | if (compiler_version) { |
| 1377 | _impl_._has_bits_[0] |= 0x00000002u; |
| 1378 | } else { |
| 1379 | _impl_._has_bits_[0] &= ~0x00000002u; |
| 1380 | } |
| 1381 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.compiler.CodeGeneratorRequest.compiler_version) |
| 1382 | } |
| 1383 | inline ::PROTOBUF_NAMESPACE_ID::compiler::Version* CodeGeneratorRequest::release_compiler_version() { |
| 1384 | _impl_._has_bits_[0] &= ~0x00000002u; |
| 1385 | ::PROTOBUF_NAMESPACE_ID::compiler::Version* temp = _impl_.compiler_version_; |
| 1386 | _impl_.compiler_version_ = nullptr; |
| 1387 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
| 1388 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
| 1389 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
| 1390 | if (GetArenaForAllocation() == nullptr) { delete old; } |
| 1391 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
| 1392 | if (GetArenaForAllocation() != nullptr) { |
| 1393 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(message: temp); |
| 1394 | } |
| 1395 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
| 1396 | return temp; |
| 1397 | } |
| 1398 | inline ::PROTOBUF_NAMESPACE_ID::compiler::Version* CodeGeneratorRequest::unsafe_arena_release_compiler_version() { |
| 1399 | // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorRequest.compiler_version) |
| 1400 | _impl_._has_bits_[0] &= ~0x00000002u; |
| 1401 | ::PROTOBUF_NAMESPACE_ID::compiler::Version* temp = _impl_.compiler_version_; |
| 1402 | _impl_.compiler_version_ = nullptr; |
| 1403 | return temp; |
| 1404 | } |
| 1405 | inline ::PROTOBUF_NAMESPACE_ID::compiler::Version* CodeGeneratorRequest::_internal_mutable_compiler_version() { |
| 1406 | _impl_._has_bits_[0] |= 0x00000002u; |
| 1407 | if (_impl_.compiler_version_ == nullptr) { |
| 1408 | auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::compiler::Version>(arena: GetArenaForAllocation()); |
| 1409 | _impl_.compiler_version_ = p; |
| 1410 | } |
| 1411 | return _impl_.compiler_version_; |
| 1412 | } |
| 1413 | inline ::PROTOBUF_NAMESPACE_ID::compiler::Version* CodeGeneratorRequest::mutable_compiler_version() { |
| 1414 | ::PROTOBUF_NAMESPACE_ID::compiler::Version* _msg = _internal_mutable_compiler_version(); |
| 1415 | // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.compiler_version) |
| 1416 | return _msg; |
| 1417 | } |
| 1418 | inline void CodeGeneratorRequest::set_allocated_compiler_version(::PROTOBUF_NAMESPACE_ID::compiler::Version* compiler_version) { |
| 1419 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
| 1420 | if (message_arena == nullptr) { |
| 1421 | delete _impl_.compiler_version_; |
| 1422 | } |
| 1423 | if (compiler_version) { |
| 1424 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
| 1425 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(p: compiler_version); |
| 1426 | if (message_arena != submessage_arena) { |
| 1427 | compiler_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
| 1428 | message_arena, submessage: compiler_version, submessage_arena); |
| 1429 | } |
| 1430 | _impl_._has_bits_[0] |= 0x00000002u; |
| 1431 | } else { |
| 1432 | _impl_._has_bits_[0] &= ~0x00000002u; |
| 1433 | } |
| 1434 | _impl_.compiler_version_ = compiler_version; |
| 1435 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorRequest.compiler_version) |
| 1436 | } |
| 1437 | |
| 1438 | // ------------------------------------------------------------------- |
| 1439 | |
| 1440 | // CodeGeneratorResponse_File |
| 1441 | |
| 1442 | // optional string name = 1; |
| 1443 | inline bool CodeGeneratorResponse_File::_internal_has_name() const { |
| 1444 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
| 1445 | return value; |
| 1446 | } |
| 1447 | inline bool CodeGeneratorResponse_File::has_name() const { |
| 1448 | return _internal_has_name(); |
| 1449 | } |
| 1450 | inline void CodeGeneratorResponse_File::clear_name() { |
| 1451 | _impl_.name_.ClearToEmpty(); |
| 1452 | _impl_._has_bits_[0] &= ~0x00000001u; |
| 1453 | } |
| 1454 | inline const std::string& CodeGeneratorResponse_File::name() const { |
| 1455 | // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.name) |
| 1456 | return _internal_name(); |
| 1457 | } |
| 1458 | template <typename ArgT0, typename... ArgT> |
| 1459 | inline PROTOBUF_ALWAYS_INLINE |
| 1460 | void CodeGeneratorResponse_File::set_name(ArgT0&& arg0, ArgT... args) { |
| 1461 | _impl_._has_bits_[0] |= 0x00000001u; |
| 1462 | _impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
| 1463 | // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.name) |
| 1464 | } |
| 1465 | inline std::string* CodeGeneratorResponse_File::mutable_name() { |
| 1466 | std::string* _s = _internal_mutable_name(); |
| 1467 | // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.name) |
| 1468 | return _s; |
| 1469 | } |
| 1470 | inline const std::string& CodeGeneratorResponse_File::_internal_name() const { |
| 1471 | return _impl_.name_.Get(); |
| 1472 | } |
| 1473 | inline void CodeGeneratorResponse_File::_internal_set_name(const std::string& value) { |
| 1474 | _impl_._has_bits_[0] |= 0x00000001u; |
| 1475 | _impl_.name_.Set(value, arena: GetArenaForAllocation()); |
| 1476 | } |
| 1477 | inline std::string* CodeGeneratorResponse_File::_internal_mutable_name() { |
| 1478 | _impl_._has_bits_[0] |= 0x00000001u; |
| 1479 | return _impl_.name_.Mutable(arena: GetArenaForAllocation()); |
| 1480 | } |
| 1481 | inline std::string* CodeGeneratorResponse_File::release_name() { |
| 1482 | // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.name) |
| 1483 | if (!_internal_has_name()) { |
| 1484 | return nullptr; |
| 1485 | } |
| 1486 | _impl_._has_bits_[0] &= ~0x00000001u; |
| 1487 | auto* p = _impl_.name_.Release(); |
| 1488 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1489 | if (_impl_.name_.IsDefault()) { |
| 1490 | _impl_.name_.Set("" , GetArenaForAllocation()); |
| 1491 | } |
| 1492 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1493 | return p; |
| 1494 | } |
| 1495 | inline void CodeGeneratorResponse_File::set_allocated_name(std::string* name) { |
| 1496 | if (name != nullptr) { |
| 1497 | _impl_._has_bits_[0] |= 0x00000001u; |
| 1498 | } else { |
| 1499 | _impl_._has_bits_[0] &= ~0x00000001u; |
| 1500 | } |
| 1501 | _impl_.name_.SetAllocated(value: name, arena: GetArenaForAllocation()); |
| 1502 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1503 | if (_impl_.name_.IsDefault()) { |
| 1504 | _impl_.name_.Set("" , GetArenaForAllocation()); |
| 1505 | } |
| 1506 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1507 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.name) |
| 1508 | } |
| 1509 | |
| 1510 | // optional string insertion_point = 2; |
| 1511 | inline bool CodeGeneratorResponse_File::_internal_has_insertion_point() const { |
| 1512 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
| 1513 | return value; |
| 1514 | } |
| 1515 | inline bool CodeGeneratorResponse_File::has_insertion_point() const { |
| 1516 | return _internal_has_insertion_point(); |
| 1517 | } |
| 1518 | inline void CodeGeneratorResponse_File::clear_insertion_point() { |
| 1519 | _impl_.insertion_point_.ClearToEmpty(); |
| 1520 | _impl_._has_bits_[0] &= ~0x00000002u; |
| 1521 | } |
| 1522 | inline const std::string& CodeGeneratorResponse_File::insertion_point() const { |
| 1523 | // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point) |
| 1524 | return _internal_insertion_point(); |
| 1525 | } |
| 1526 | template <typename ArgT0, typename... ArgT> |
| 1527 | inline PROTOBUF_ALWAYS_INLINE |
| 1528 | void CodeGeneratorResponse_File::set_insertion_point(ArgT0&& arg0, ArgT... args) { |
| 1529 | _impl_._has_bits_[0] |= 0x00000002u; |
| 1530 | _impl_.insertion_point_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
| 1531 | // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point) |
| 1532 | } |
| 1533 | inline std::string* CodeGeneratorResponse_File::mutable_insertion_point() { |
| 1534 | std::string* _s = _internal_mutable_insertion_point(); |
| 1535 | // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point) |
| 1536 | return _s; |
| 1537 | } |
| 1538 | inline const std::string& CodeGeneratorResponse_File::_internal_insertion_point() const { |
| 1539 | return _impl_.insertion_point_.Get(); |
| 1540 | } |
| 1541 | inline void CodeGeneratorResponse_File::_internal_set_insertion_point(const std::string& value) { |
| 1542 | _impl_._has_bits_[0] |= 0x00000002u; |
| 1543 | _impl_.insertion_point_.Set(value, arena: GetArenaForAllocation()); |
| 1544 | } |
| 1545 | inline std::string* CodeGeneratorResponse_File::_internal_mutable_insertion_point() { |
| 1546 | _impl_._has_bits_[0] |= 0x00000002u; |
| 1547 | return _impl_.insertion_point_.Mutable(arena: GetArenaForAllocation()); |
| 1548 | } |
| 1549 | inline std::string* CodeGeneratorResponse_File::release_insertion_point() { |
| 1550 | // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point) |
| 1551 | if (!_internal_has_insertion_point()) { |
| 1552 | return nullptr; |
| 1553 | } |
| 1554 | _impl_._has_bits_[0] &= ~0x00000002u; |
| 1555 | auto* p = _impl_.insertion_point_.Release(); |
| 1556 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1557 | if (_impl_.insertion_point_.IsDefault()) { |
| 1558 | _impl_.insertion_point_.Set("" , GetArenaForAllocation()); |
| 1559 | } |
| 1560 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1561 | return p; |
| 1562 | } |
| 1563 | inline void CodeGeneratorResponse_File::set_allocated_insertion_point(std::string* insertion_point) { |
| 1564 | if (insertion_point != nullptr) { |
| 1565 | _impl_._has_bits_[0] |= 0x00000002u; |
| 1566 | } else { |
| 1567 | _impl_._has_bits_[0] &= ~0x00000002u; |
| 1568 | } |
| 1569 | _impl_.insertion_point_.SetAllocated(value: insertion_point, arena: GetArenaForAllocation()); |
| 1570 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1571 | if (_impl_.insertion_point_.IsDefault()) { |
| 1572 | _impl_.insertion_point_.Set("" , GetArenaForAllocation()); |
| 1573 | } |
| 1574 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1575 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point) |
| 1576 | } |
| 1577 | |
| 1578 | // optional string content = 15; |
| 1579 | inline bool CodeGeneratorResponse_File::_internal_has_content() const { |
| 1580 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
| 1581 | return value; |
| 1582 | } |
| 1583 | inline bool CodeGeneratorResponse_File::has_content() const { |
| 1584 | return _internal_has_content(); |
| 1585 | } |
| 1586 | inline void CodeGeneratorResponse_File::clear_content() { |
| 1587 | _impl_.content_.ClearToEmpty(); |
| 1588 | _impl_._has_bits_[0] &= ~0x00000004u; |
| 1589 | } |
| 1590 | inline const std::string& CodeGeneratorResponse_File::content() const { |
| 1591 | // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.content) |
| 1592 | return _internal_content(); |
| 1593 | } |
| 1594 | template <typename ArgT0, typename... ArgT> |
| 1595 | inline PROTOBUF_ALWAYS_INLINE |
| 1596 | void CodeGeneratorResponse_File::set_content(ArgT0&& arg0, ArgT... args) { |
| 1597 | _impl_._has_bits_[0] |= 0x00000004u; |
| 1598 | _impl_.content_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
| 1599 | // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.content) |
| 1600 | } |
| 1601 | inline std::string* CodeGeneratorResponse_File::mutable_content() { |
| 1602 | std::string* _s = _internal_mutable_content(); |
| 1603 | // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.content) |
| 1604 | return _s; |
| 1605 | } |
| 1606 | inline const std::string& CodeGeneratorResponse_File::_internal_content() const { |
| 1607 | return _impl_.content_.Get(); |
| 1608 | } |
| 1609 | inline void CodeGeneratorResponse_File::_internal_set_content(const std::string& value) { |
| 1610 | _impl_._has_bits_[0] |= 0x00000004u; |
| 1611 | _impl_.content_.Set(value, arena: GetArenaForAllocation()); |
| 1612 | } |
| 1613 | inline std::string* CodeGeneratorResponse_File::_internal_mutable_content() { |
| 1614 | _impl_._has_bits_[0] |= 0x00000004u; |
| 1615 | return _impl_.content_.Mutable(arena: GetArenaForAllocation()); |
| 1616 | } |
| 1617 | inline std::string* CodeGeneratorResponse_File::release_content() { |
| 1618 | // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.content) |
| 1619 | if (!_internal_has_content()) { |
| 1620 | return nullptr; |
| 1621 | } |
| 1622 | _impl_._has_bits_[0] &= ~0x00000004u; |
| 1623 | auto* p = _impl_.content_.Release(); |
| 1624 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1625 | if (_impl_.content_.IsDefault()) { |
| 1626 | _impl_.content_.Set("" , GetArenaForAllocation()); |
| 1627 | } |
| 1628 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1629 | return p; |
| 1630 | } |
| 1631 | inline void CodeGeneratorResponse_File::set_allocated_content(std::string* content) { |
| 1632 | if (content != nullptr) { |
| 1633 | _impl_._has_bits_[0] |= 0x00000004u; |
| 1634 | } else { |
| 1635 | _impl_._has_bits_[0] &= ~0x00000004u; |
| 1636 | } |
| 1637 | _impl_.content_.SetAllocated(value: content, arena: GetArenaForAllocation()); |
| 1638 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1639 | if (_impl_.content_.IsDefault()) { |
| 1640 | _impl_.content_.Set("" , GetArenaForAllocation()); |
| 1641 | } |
| 1642 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1643 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.content) |
| 1644 | } |
| 1645 | |
| 1646 | // optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16; |
| 1647 | inline bool CodeGeneratorResponse_File::_internal_has_generated_code_info() const { |
| 1648 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
| 1649 | PROTOBUF_ASSUME(!value || _impl_.generated_code_info_ != nullptr); |
| 1650 | return value; |
| 1651 | } |
| 1652 | inline bool CodeGeneratorResponse_File::has_generated_code_info() const { |
| 1653 | return _internal_has_generated_code_info(); |
| 1654 | } |
| 1655 | inline const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo& CodeGeneratorResponse_File::_internal_generated_code_info() const { |
| 1656 | const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* p = _impl_.generated_code_info_; |
| 1657 | return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo&>( |
| 1658 | ::PROTOBUF_NAMESPACE_ID::_GeneratedCodeInfo_default_instance_); |
| 1659 | } |
| 1660 | inline const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo& CodeGeneratorResponse_File::generated_code_info() const { |
| 1661 | // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info) |
| 1662 | return _internal_generated_code_info(); |
| 1663 | } |
| 1664 | inline void CodeGeneratorResponse_File::unsafe_arena_set_allocated_generated_code_info( |
| 1665 | ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* generated_code_info) { |
| 1666 | if (GetArenaForAllocation() == nullptr) { |
| 1667 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.generated_code_info_); |
| 1668 | } |
| 1669 | _impl_.generated_code_info_ = generated_code_info; |
| 1670 | if (generated_code_info) { |
| 1671 | _impl_._has_bits_[0] |= 0x00000008u; |
| 1672 | } else { |
| 1673 | _impl_._has_bits_[0] &= ~0x00000008u; |
| 1674 | } |
| 1675 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info) |
| 1676 | } |
| 1677 | inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* CodeGeneratorResponse_File::release_generated_code_info() { |
| 1678 | _impl_._has_bits_[0] &= ~0x00000008u; |
| 1679 | ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* temp = _impl_.generated_code_info_; |
| 1680 | _impl_.generated_code_info_ = nullptr; |
| 1681 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
| 1682 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
| 1683 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
| 1684 | if (GetArenaForAllocation() == nullptr) { delete old; } |
| 1685 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
| 1686 | if (GetArenaForAllocation() != nullptr) { |
| 1687 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(message: temp); |
| 1688 | } |
| 1689 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
| 1690 | return temp; |
| 1691 | } |
| 1692 | inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* CodeGeneratorResponse_File::unsafe_arena_release_generated_code_info() { |
| 1693 | // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info) |
| 1694 | _impl_._has_bits_[0] &= ~0x00000008u; |
| 1695 | ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* temp = _impl_.generated_code_info_; |
| 1696 | _impl_.generated_code_info_ = nullptr; |
| 1697 | return temp; |
| 1698 | } |
| 1699 | inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* CodeGeneratorResponse_File::_internal_mutable_generated_code_info() { |
| 1700 | _impl_._has_bits_[0] |= 0x00000008u; |
| 1701 | if (_impl_.generated_code_info_ == nullptr) { |
| 1702 | auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo>(arena: GetArenaForAllocation()); |
| 1703 | _impl_.generated_code_info_ = p; |
| 1704 | } |
| 1705 | return _impl_.generated_code_info_; |
| 1706 | } |
| 1707 | inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* CodeGeneratorResponse_File::mutable_generated_code_info() { |
| 1708 | ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* _msg = _internal_mutable_generated_code_info(); |
| 1709 | // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info) |
| 1710 | return _msg; |
| 1711 | } |
| 1712 | inline void CodeGeneratorResponse_File::set_allocated_generated_code_info(::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* generated_code_info) { |
| 1713 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
| 1714 | if (message_arena == nullptr) { |
| 1715 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.generated_code_info_); |
| 1716 | } |
| 1717 | if (generated_code_info) { |
| 1718 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
| 1719 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( |
| 1720 | p: reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(generated_code_info)); |
| 1721 | if (message_arena != submessage_arena) { |
| 1722 | generated_code_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
| 1723 | message_arena, submessage: generated_code_info, submessage_arena); |
| 1724 | } |
| 1725 | _impl_._has_bits_[0] |= 0x00000008u; |
| 1726 | } else { |
| 1727 | _impl_._has_bits_[0] &= ~0x00000008u; |
| 1728 | } |
| 1729 | _impl_.generated_code_info_ = generated_code_info; |
| 1730 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info) |
| 1731 | } |
| 1732 | |
| 1733 | // ------------------------------------------------------------------- |
| 1734 | |
| 1735 | // CodeGeneratorResponse |
| 1736 | |
| 1737 | // optional string error = 1; |
| 1738 | inline bool CodeGeneratorResponse::_internal_has_error() const { |
| 1739 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
| 1740 | return value; |
| 1741 | } |
| 1742 | inline bool CodeGeneratorResponse::has_error() const { |
| 1743 | return _internal_has_error(); |
| 1744 | } |
| 1745 | inline void CodeGeneratorResponse::clear_error() { |
| 1746 | _impl_.error_.ClearToEmpty(); |
| 1747 | _impl_._has_bits_[0] &= ~0x00000001u; |
| 1748 | } |
| 1749 | inline const std::string& CodeGeneratorResponse::error() const { |
| 1750 | // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.error) |
| 1751 | return _internal_error(); |
| 1752 | } |
| 1753 | template <typename ArgT0, typename... ArgT> |
| 1754 | inline PROTOBUF_ALWAYS_INLINE |
| 1755 | void CodeGeneratorResponse::set_error(ArgT0&& arg0, ArgT... args) { |
| 1756 | _impl_._has_bits_[0] |= 0x00000001u; |
| 1757 | _impl_.error_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
| 1758 | // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.error) |
| 1759 | } |
| 1760 | inline std::string* CodeGeneratorResponse::mutable_error() { |
| 1761 | std::string* _s = _internal_mutable_error(); |
| 1762 | // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.error) |
| 1763 | return _s; |
| 1764 | } |
| 1765 | inline const std::string& CodeGeneratorResponse::_internal_error() const { |
| 1766 | return _impl_.error_.Get(); |
| 1767 | } |
| 1768 | inline void CodeGeneratorResponse::_internal_set_error(const std::string& value) { |
| 1769 | _impl_._has_bits_[0] |= 0x00000001u; |
| 1770 | _impl_.error_.Set(value, arena: GetArenaForAllocation()); |
| 1771 | } |
| 1772 | inline std::string* CodeGeneratorResponse::_internal_mutable_error() { |
| 1773 | _impl_._has_bits_[0] |= 0x00000001u; |
| 1774 | return _impl_.error_.Mutable(arena: GetArenaForAllocation()); |
| 1775 | } |
| 1776 | inline std::string* CodeGeneratorResponse::release_error() { |
| 1777 | // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.error) |
| 1778 | if (!_internal_has_error()) { |
| 1779 | return nullptr; |
| 1780 | } |
| 1781 | _impl_._has_bits_[0] &= ~0x00000001u; |
| 1782 | auto* p = _impl_.error_.Release(); |
| 1783 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1784 | if (_impl_.error_.IsDefault()) { |
| 1785 | _impl_.error_.Set("" , GetArenaForAllocation()); |
| 1786 | } |
| 1787 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1788 | return p; |
| 1789 | } |
| 1790 | inline void CodeGeneratorResponse::set_allocated_error(std::string* error) { |
| 1791 | if (error != nullptr) { |
| 1792 | _impl_._has_bits_[0] |= 0x00000001u; |
| 1793 | } else { |
| 1794 | _impl_._has_bits_[0] &= ~0x00000001u; |
| 1795 | } |
| 1796 | _impl_.error_.SetAllocated(value: error, arena: GetArenaForAllocation()); |
| 1797 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1798 | if (_impl_.error_.IsDefault()) { |
| 1799 | _impl_.error_.Set("" , GetArenaForAllocation()); |
| 1800 | } |
| 1801 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 1802 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.error) |
| 1803 | } |
| 1804 | |
| 1805 | // optional uint64 supported_features = 2; |
| 1806 | inline bool CodeGeneratorResponse::_internal_has_supported_features() const { |
| 1807 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
| 1808 | return value; |
| 1809 | } |
| 1810 | inline bool CodeGeneratorResponse::has_supported_features() const { |
| 1811 | return _internal_has_supported_features(); |
| 1812 | } |
| 1813 | inline void CodeGeneratorResponse::clear_supported_features() { |
| 1814 | _impl_.supported_features_ = uint64_t{0u}; |
| 1815 | _impl_._has_bits_[0] &= ~0x00000002u; |
| 1816 | } |
| 1817 | inline uint64_t CodeGeneratorResponse::_internal_supported_features() const { |
| 1818 | return _impl_.supported_features_; |
| 1819 | } |
| 1820 | inline uint64_t CodeGeneratorResponse::supported_features() const { |
| 1821 | // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.supported_features) |
| 1822 | return _internal_supported_features(); |
| 1823 | } |
| 1824 | inline void CodeGeneratorResponse::_internal_set_supported_features(uint64_t value) { |
| 1825 | _impl_._has_bits_[0] |= 0x00000002u; |
| 1826 | _impl_.supported_features_ = value; |
| 1827 | } |
| 1828 | inline void CodeGeneratorResponse::set_supported_features(uint64_t value) { |
| 1829 | _internal_set_supported_features(value); |
| 1830 | // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.supported_features) |
| 1831 | } |
| 1832 | |
| 1833 | // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
| 1834 | inline int CodeGeneratorResponse::_internal_file_size() const { |
| 1835 | return _impl_.file_.size(); |
| 1836 | } |
| 1837 | inline int CodeGeneratorResponse::file_size() const { |
| 1838 | return _internal_file_size(); |
| 1839 | } |
| 1840 | inline void CodeGeneratorResponse::clear_file() { |
| 1841 | _impl_.file_.Clear(); |
| 1842 | } |
| 1843 | inline ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::mutable_file(int index) { |
| 1844 | // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.file) |
| 1845 | return _impl_.file_.Mutable(index); |
| 1846 | } |
| 1847 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File >* |
| 1848 | CodeGeneratorResponse::mutable_file() { |
| 1849 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorResponse.file) |
| 1850 | return &_impl_.file_; |
| 1851 | } |
| 1852 | inline const ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::_internal_file(int index) const { |
| 1853 | return _impl_.file_.Get(index); |
| 1854 | } |
| 1855 | inline const ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::file(int index) const { |
| 1856 | // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.file) |
| 1857 | return _internal_file(index); |
| 1858 | } |
| 1859 | inline ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::_internal_add_file() { |
| 1860 | return _impl_.file_.Add(); |
| 1861 | } |
| 1862 | inline ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::add_file() { |
| 1863 | ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* _add = _internal_add_file(); |
| 1864 | // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorResponse.file) |
| 1865 | return _add; |
| 1866 | } |
| 1867 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File >& |
| 1868 | CodeGeneratorResponse::file() const { |
| 1869 | // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorResponse.file) |
| 1870 | return _impl_.file_; |
| 1871 | } |
| 1872 | |
| 1873 | #ifdef __GNUC__ |
| 1874 | #pragma GCC diagnostic pop |
| 1875 | #endif // __GNUC__ |
| 1876 | // ------------------------------------------------------------------- |
| 1877 | |
| 1878 | // ------------------------------------------------------------------- |
| 1879 | |
| 1880 | // ------------------------------------------------------------------- |
| 1881 | |
| 1882 | |
| 1883 | // @@protoc_insertion_point(namespace_scope) |
| 1884 | |
| 1885 | } // namespace compiler |
| 1886 | PROTOBUF_NAMESPACE_CLOSE |
| 1887 | |
| 1888 | PROTOBUF_NAMESPACE_OPEN |
| 1889 | |
| 1890 | template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_Feature> : ::std::true_type {}; |
| 1891 | template <> |
| 1892 | inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_Feature>() { |
| 1893 | return ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_Feature_descriptor(); |
| 1894 | } |
| 1895 | |
| 1896 | PROTOBUF_NAMESPACE_CLOSE |
| 1897 | |
| 1898 | // @@protoc_insertion_point(global_scope) |
| 1899 | |
| 1900 | #include <google/protobuf/port_undef.inc> |
| 1901 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcompiler_2fplugin_2eproto |
| 1902 | |