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