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