诸暨麻将添加redis
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

1612 righe
68 KiB

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/compiler/plugin.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcompiler_2fplugin_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcompiler_2fplugin_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3011000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3011000 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_table_driven.h>
  23. #include <google/protobuf/generated_message_util.h>
  24. #include <google/protobuf/inlined_string_field.h>
  25. #include <google/protobuf/metadata.h>
  26. #include <google/protobuf/generated_message_reflection.h>
  27. #include <google/protobuf/message.h>
  28. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  29. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  30. #include <google/protobuf/unknown_field_set.h>
  31. #include <google/protobuf/descriptor.pb.h>
  32. // @@protoc_insertion_point(includes)
  33. #include <google/protobuf/port_def.inc>
  34. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fcompiler_2fplugin_2eproto PROTOC_EXPORT
  35. #ifdef major
  36. #undef major
  37. #endif
  38. #ifdef minor
  39. #undef minor
  40. #endif
  41. PROTOBUF_NAMESPACE_OPEN
  42. namespace internal {
  43. class AnyMetadata;
  44. } // namespace internal
  45. PROTOBUF_NAMESPACE_CLOSE
  46. // Internal implementation detail -- do not use these members.
  47. struct PROTOC_EXPORT TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto {
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  49. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  50. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
  51. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  52. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4]
  53. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  54. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  55. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  56. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  57. };
  58. extern PROTOC_EXPORT const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
  59. PROTOBUF_NAMESPACE_OPEN
  60. namespace compiler {
  61. class CodeGeneratorRequest;
  62. class CodeGeneratorRequestDefaultTypeInternal;
  63. PROTOC_EXPORT extern CodeGeneratorRequestDefaultTypeInternal _CodeGeneratorRequest_default_instance_;
  64. class CodeGeneratorResponse;
  65. class CodeGeneratorResponseDefaultTypeInternal;
  66. PROTOC_EXPORT extern CodeGeneratorResponseDefaultTypeInternal _CodeGeneratorResponse_default_instance_;
  67. class CodeGeneratorResponse_File;
  68. class CodeGeneratorResponse_FileDefaultTypeInternal;
  69. PROTOC_EXPORT extern CodeGeneratorResponse_FileDefaultTypeInternal _CodeGeneratorResponse_File_default_instance_;
  70. class Version;
  71. class VersionDefaultTypeInternal;
  72. PROTOC_EXPORT extern VersionDefaultTypeInternal _Version_default_instance_;
  73. } // namespace compiler
  74. PROTOBUF_NAMESPACE_CLOSE
  75. PROTOBUF_NAMESPACE_OPEN
  76. template<> PROTOC_EXPORT PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest>(Arena*);
  77. template<> PROTOC_EXPORT PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse>(Arena*);
  78. template<> PROTOC_EXPORT PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File>(Arena*);
  79. template<> PROTOC_EXPORT PROTOBUF_NAMESPACE_ID::compiler::Version* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::compiler::Version>(Arena*);
  80. PROTOBUF_NAMESPACE_CLOSE
  81. PROTOBUF_NAMESPACE_OPEN
  82. namespace compiler {
  83. // ===================================================================
  84. class PROTOC_EXPORT Version :
  85. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.Version) */ {
  86. public:
  87. Version();
  88. virtual ~Version();
  89. Version(const Version& from);
  90. Version(Version&& from) noexcept
  91. : Version() {
  92. *this = ::std::move(from);
  93. }
  94. inline Version& operator=(const Version& from) {
  95. CopyFrom(from);
  96. return *this;
  97. }
  98. inline Version& operator=(Version&& from) noexcept {
  99. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  100. if (this != &from) InternalSwap(&from);
  101. } else {
  102. CopyFrom(from);
  103. }
  104. return *this;
  105. }
  106. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  107. return _internal_metadata_.unknown_fields();
  108. }
  109. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  110. return _internal_metadata_.mutable_unknown_fields();
  111. }
  112. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  113. return GetDescriptor();
  114. }
  115. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  116. return GetMetadataStatic().descriptor;
  117. }
  118. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  119. return GetMetadataStatic().reflection;
  120. }
  121. static const Version& default_instance();
  122. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  123. static inline const Version* internal_default_instance() {
  124. return reinterpret_cast<const Version*>(
  125. &_Version_default_instance_);
  126. }
  127. static constexpr int kIndexInFileMessages =
  128. 0;
  129. friend void swap(Version& a, Version& b) {
  130. a.Swap(&b);
  131. }
  132. inline void Swap(Version* other) {
  133. if (other == this) return;
  134. InternalSwap(other);
  135. }
  136. // implements Message ----------------------------------------------
  137. inline Version* New() const final {
  138. return CreateMaybeMessage<Version>(nullptr);
  139. }
  140. Version* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  141. return CreateMaybeMessage<Version>(arena);
  142. }
  143. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  144. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  145. void CopyFrom(const Version& from);
  146. void MergeFrom(const Version& from);
  147. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  148. bool IsInitialized() const final;
  149. size_t ByteSizeLong() const final;
  150. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  151. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  152. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  153. int GetCachedSize() const final { return _cached_size_.Get(); }
  154. private:
  155. inline void SharedCtor();
  156. inline void SharedDtor();
  157. void SetCachedSize(int size) const final;
  158. void InternalSwap(Version* other);
  159. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  160. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  161. return "google.protobuf.compiler.Version";
  162. }
  163. private:
  164. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  165. return nullptr;
  166. }
  167. inline void* MaybeArenaPtr() const {
  168. return nullptr;
  169. }
  170. public:
  171. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  172. private:
  173. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  174. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto);
  175. return ::descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto.file_level_metadata[kIndexInFileMessages];
  176. }
  177. public:
  178. // nested types ----------------------------------------------------
  179. // accessors -------------------------------------------------------
  180. enum : int {
  181. kSuffixFieldNumber = 4,
  182. kMajorFieldNumber = 1,
  183. kMinorFieldNumber = 2,
  184. kPatchFieldNumber = 3,
  185. };
  186. // optional string suffix = 4;
  187. bool has_suffix() const;
  188. private:
  189. bool _internal_has_suffix() const;
  190. public:
  191. void clear_suffix();
  192. const std::string& suffix() const;
  193. void set_suffix(const std::string& value);
  194. void set_suffix(std::string&& value);
  195. void set_suffix(const char* value);
  196. void set_suffix(const char* value, size_t size);
  197. std::string* mutable_suffix();
  198. std::string* release_suffix();
  199. void set_allocated_suffix(std::string* suffix);
  200. private:
  201. const std::string& _internal_suffix() const;
  202. void _internal_set_suffix(const std::string& value);
  203. std::string* _internal_mutable_suffix();
  204. public:
  205. // optional int32 major = 1;
  206. bool has_major() const;
  207. private:
  208. bool _internal_has_major() const;
  209. public:
  210. void clear_major();
  211. ::PROTOBUF_NAMESPACE_ID::int32 major() const;
  212. void set_major(::PROTOBUF_NAMESPACE_ID::int32 value);
  213. private:
  214. ::PROTOBUF_NAMESPACE_ID::int32 _internal_major() const;
  215. void _internal_set_major(::PROTOBUF_NAMESPACE_ID::int32 value);
  216. public:
  217. // optional int32 minor = 2;
  218. bool has_minor() const;
  219. private:
  220. bool _internal_has_minor() const;
  221. public:
  222. void clear_minor();
  223. ::PROTOBUF_NAMESPACE_ID::int32 minor() const;
  224. void set_minor(::PROTOBUF_NAMESPACE_ID::int32 value);
  225. private:
  226. ::PROTOBUF_NAMESPACE_ID::int32 _internal_minor() const;
  227. void _internal_set_minor(::PROTOBUF_NAMESPACE_ID::int32 value);
  228. public:
  229. // optional int32 patch = 3;
  230. bool has_patch() const;
  231. private:
  232. bool _internal_has_patch() const;
  233. public:
  234. void clear_patch();
  235. ::PROTOBUF_NAMESPACE_ID::int32 patch() const;
  236. void set_patch(::PROTOBUF_NAMESPACE_ID::int32 value);
  237. private:
  238. ::PROTOBUF_NAMESPACE_ID::int32 _internal_patch() const;
  239. void _internal_set_patch(::PROTOBUF_NAMESPACE_ID::int32 value);
  240. public:
  241. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.Version)
  242. private:
  243. class _Internal;
  244. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  245. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  246. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  247. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr suffix_;
  248. ::PROTOBUF_NAMESPACE_ID::int32 major_;
  249. ::PROTOBUF_NAMESPACE_ID::int32 minor_;
  250. ::PROTOBUF_NAMESPACE_ID::int32 patch_;
  251. friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
  252. };
  253. // -------------------------------------------------------------------
  254. class PROTOC_EXPORT CodeGeneratorRequest :
  255. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorRequest) */ {
  256. public:
  257. CodeGeneratorRequest();
  258. virtual ~CodeGeneratorRequest();
  259. CodeGeneratorRequest(const CodeGeneratorRequest& from);
  260. CodeGeneratorRequest(CodeGeneratorRequest&& from) noexcept
  261. : CodeGeneratorRequest() {
  262. *this = ::std::move(from);
  263. }
  264. inline CodeGeneratorRequest& operator=(const CodeGeneratorRequest& from) {
  265. CopyFrom(from);
  266. return *this;
  267. }
  268. inline CodeGeneratorRequest& operator=(CodeGeneratorRequest&& from) noexcept {
  269. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  270. if (this != &from) InternalSwap(&from);
  271. } else {
  272. CopyFrom(from);
  273. }
  274. return *this;
  275. }
  276. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  277. return _internal_metadata_.unknown_fields();
  278. }
  279. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  280. return _internal_metadata_.mutable_unknown_fields();
  281. }
  282. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  283. return GetDescriptor();
  284. }
  285. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  286. return GetMetadataStatic().descriptor;
  287. }
  288. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  289. return GetMetadataStatic().reflection;
  290. }
  291. static const CodeGeneratorRequest& default_instance();
  292. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  293. static inline const CodeGeneratorRequest* internal_default_instance() {
  294. return reinterpret_cast<const CodeGeneratorRequest*>(
  295. &_CodeGeneratorRequest_default_instance_);
  296. }
  297. static constexpr int kIndexInFileMessages =
  298. 1;
  299. friend void swap(CodeGeneratorRequest& a, CodeGeneratorRequest& b) {
  300. a.Swap(&b);
  301. }
  302. inline void Swap(CodeGeneratorRequest* other) {
  303. if (other == this) return;
  304. InternalSwap(other);
  305. }
  306. // implements Message ----------------------------------------------
  307. inline CodeGeneratorRequest* New() const final {
  308. return CreateMaybeMessage<CodeGeneratorRequest>(nullptr);
  309. }
  310. CodeGeneratorRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  311. return CreateMaybeMessage<CodeGeneratorRequest>(arena);
  312. }
  313. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  314. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  315. void CopyFrom(const CodeGeneratorRequest& from);
  316. void MergeFrom(const CodeGeneratorRequest& from);
  317. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  318. bool IsInitialized() const final;
  319. size_t ByteSizeLong() const final;
  320. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  321. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  322. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  323. int GetCachedSize() const final { return _cached_size_.Get(); }
  324. private:
  325. inline void SharedCtor();
  326. inline void SharedDtor();
  327. void SetCachedSize(int size) const final;
  328. void InternalSwap(CodeGeneratorRequest* other);
  329. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  330. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  331. return "google.protobuf.compiler.CodeGeneratorRequest";
  332. }
  333. private:
  334. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  335. return nullptr;
  336. }
  337. inline void* MaybeArenaPtr() const {
  338. return nullptr;
  339. }
  340. public:
  341. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  342. private:
  343. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  344. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto);
  345. return ::descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto.file_level_metadata[kIndexInFileMessages];
  346. }
  347. public:
  348. // nested types ----------------------------------------------------
  349. // accessors -------------------------------------------------------
  350. enum : int {
  351. kFileToGenerateFieldNumber = 1,
  352. kProtoFileFieldNumber = 15,
  353. kParameterFieldNumber = 2,
  354. kCompilerVersionFieldNumber = 3,
  355. };
  356. // repeated string file_to_generate = 1;
  357. int file_to_generate_size() const;
  358. private:
  359. int _internal_file_to_generate_size() const;
  360. public:
  361. void clear_file_to_generate();
  362. const std::string& file_to_generate(int index) const;
  363. std::string* mutable_file_to_generate(int index);
  364. void set_file_to_generate(int index, const std::string& value);
  365. void set_file_to_generate(int index, std::string&& value);
  366. void set_file_to_generate(int index, const char* value);
  367. void set_file_to_generate(int index, const char* value, size_t size);
  368. std::string* add_file_to_generate();
  369. void add_file_to_generate(const std::string& value);
  370. void add_file_to_generate(std::string&& value);
  371. void add_file_to_generate(const char* value);
  372. void add_file_to_generate(const char* value, size_t size);
  373. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& file_to_generate() const;
  374. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_file_to_generate();
  375. private:
  376. const std::string& _internal_file_to_generate(int index) const;
  377. std::string* _internal_add_file_to_generate();
  378. public:
  379. // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
  380. int proto_file_size() const;
  381. private:
  382. int _internal_proto_file_size() const;
  383. public:
  384. void clear_proto_file();
  385. PROTOBUF_NAMESPACE_ID::FileDescriptorProto* mutable_proto_file(int index);
  386. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FileDescriptorProto >*
  387. mutable_proto_file();
  388. private:
  389. const PROTOBUF_NAMESPACE_ID::FileDescriptorProto& _internal_proto_file(int index) const;
  390. PROTOBUF_NAMESPACE_ID::FileDescriptorProto* _internal_add_proto_file();
  391. public:
  392. const PROTOBUF_NAMESPACE_ID::FileDescriptorProto& proto_file(int index) const;
  393. PROTOBUF_NAMESPACE_ID::FileDescriptorProto* add_proto_file();
  394. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FileDescriptorProto >&
  395. proto_file() const;
  396. // optional string parameter = 2;
  397. bool has_parameter() const;
  398. private:
  399. bool _internal_has_parameter() const;
  400. public:
  401. void clear_parameter();
  402. const std::string& parameter() const;
  403. void set_parameter(const std::string& value);
  404. void set_parameter(std::string&& value);
  405. void set_parameter(const char* value);
  406. void set_parameter(const char* value, size_t size);
  407. std::string* mutable_parameter();
  408. std::string* release_parameter();
  409. void set_allocated_parameter(std::string* parameter);
  410. private:
  411. const std::string& _internal_parameter() const;
  412. void _internal_set_parameter(const std::string& value);
  413. std::string* _internal_mutable_parameter();
  414. public:
  415. // optional .google.protobuf.compiler.Version compiler_version = 3;
  416. bool has_compiler_version() const;
  417. private:
  418. bool _internal_has_compiler_version() const;
  419. public:
  420. void clear_compiler_version();
  421. const PROTOBUF_NAMESPACE_ID::compiler::Version& compiler_version() const;
  422. PROTOBUF_NAMESPACE_ID::compiler::Version* release_compiler_version();
  423. PROTOBUF_NAMESPACE_ID::compiler::Version* mutable_compiler_version();
  424. void set_allocated_compiler_version(PROTOBUF_NAMESPACE_ID::compiler::Version* compiler_version);
  425. private:
  426. const PROTOBUF_NAMESPACE_ID::compiler::Version& _internal_compiler_version() const;
  427. PROTOBUF_NAMESPACE_ID::compiler::Version* _internal_mutable_compiler_version();
  428. public:
  429. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorRequest)
  430. private:
  431. class _Internal;
  432. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  433. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  434. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  435. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> file_to_generate_;
  436. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FileDescriptorProto > proto_file_;
  437. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parameter_;
  438. PROTOBUF_NAMESPACE_ID::compiler::Version* compiler_version_;
  439. friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
  440. };
  441. // -------------------------------------------------------------------
  442. class PROTOC_EXPORT CodeGeneratorResponse_File :
  443. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorResponse.File) */ {
  444. public:
  445. CodeGeneratorResponse_File();
  446. virtual ~CodeGeneratorResponse_File();
  447. CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from);
  448. CodeGeneratorResponse_File(CodeGeneratorResponse_File&& from) noexcept
  449. : CodeGeneratorResponse_File() {
  450. *this = ::std::move(from);
  451. }
  452. inline CodeGeneratorResponse_File& operator=(const CodeGeneratorResponse_File& from) {
  453. CopyFrom(from);
  454. return *this;
  455. }
  456. inline CodeGeneratorResponse_File& operator=(CodeGeneratorResponse_File&& from) noexcept {
  457. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  458. if (this != &from) InternalSwap(&from);
  459. } else {
  460. CopyFrom(from);
  461. }
  462. return *this;
  463. }
  464. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  465. return _internal_metadata_.unknown_fields();
  466. }
  467. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  468. return _internal_metadata_.mutable_unknown_fields();
  469. }
  470. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  471. return GetDescriptor();
  472. }
  473. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  474. return GetMetadataStatic().descriptor;
  475. }
  476. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  477. return GetMetadataStatic().reflection;
  478. }
  479. static const CodeGeneratorResponse_File& default_instance();
  480. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  481. static inline const CodeGeneratorResponse_File* internal_default_instance() {
  482. return reinterpret_cast<const CodeGeneratorResponse_File*>(
  483. &_CodeGeneratorResponse_File_default_instance_);
  484. }
  485. static constexpr int kIndexInFileMessages =
  486. 2;
  487. friend void swap(CodeGeneratorResponse_File& a, CodeGeneratorResponse_File& b) {
  488. a.Swap(&b);
  489. }
  490. inline void Swap(CodeGeneratorResponse_File* other) {
  491. if (other == this) return;
  492. InternalSwap(other);
  493. }
  494. // implements Message ----------------------------------------------
  495. inline CodeGeneratorResponse_File* New() const final {
  496. return CreateMaybeMessage<CodeGeneratorResponse_File>(nullptr);
  497. }
  498. CodeGeneratorResponse_File* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  499. return CreateMaybeMessage<CodeGeneratorResponse_File>(arena);
  500. }
  501. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  502. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  503. void CopyFrom(const CodeGeneratorResponse_File& from);
  504. void MergeFrom(const CodeGeneratorResponse_File& from);
  505. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  506. bool IsInitialized() const final;
  507. size_t ByteSizeLong() const final;
  508. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  509. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  510. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  511. int GetCachedSize() const final { return _cached_size_.Get(); }
  512. private:
  513. inline void SharedCtor();
  514. inline void SharedDtor();
  515. void SetCachedSize(int size) const final;
  516. void InternalSwap(CodeGeneratorResponse_File* other);
  517. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  518. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  519. return "google.protobuf.compiler.CodeGeneratorResponse.File";
  520. }
  521. private:
  522. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  523. return nullptr;
  524. }
  525. inline void* MaybeArenaPtr() const {
  526. return nullptr;
  527. }
  528. public:
  529. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  530. private:
  531. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  532. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto);
  533. return ::descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto.file_level_metadata[kIndexInFileMessages];
  534. }
  535. public:
  536. // nested types ----------------------------------------------------
  537. // accessors -------------------------------------------------------
  538. enum : int {
  539. kNameFieldNumber = 1,
  540. kInsertionPointFieldNumber = 2,
  541. kContentFieldNumber = 15,
  542. };
  543. // optional string name = 1;
  544. bool has_name() const;
  545. private:
  546. bool _internal_has_name() const;
  547. public:
  548. void clear_name();
  549. const std::string& name() const;
  550. void set_name(const std::string& value);
  551. void set_name(std::string&& value);
  552. void set_name(const char* value);
  553. void set_name(const char* value, size_t size);
  554. std::string* mutable_name();
  555. std::string* release_name();
  556. void set_allocated_name(std::string* name);
  557. private:
  558. const std::string& _internal_name() const;
  559. void _internal_set_name(const std::string& value);
  560. std::string* _internal_mutable_name();
  561. public:
  562. // optional string insertion_point = 2;
  563. bool has_insertion_point() const;
  564. private:
  565. bool _internal_has_insertion_point() const;
  566. public:
  567. void clear_insertion_point();
  568. const std::string& insertion_point() const;
  569. void set_insertion_point(const std::string& value);
  570. void set_insertion_point(std::string&& value);
  571. void set_insertion_point(const char* value);
  572. void set_insertion_point(const char* value, size_t size);
  573. std::string* mutable_insertion_point();
  574. std::string* release_insertion_point();
  575. void set_allocated_insertion_point(std::string* insertion_point);
  576. private:
  577. const std::string& _internal_insertion_point() const;
  578. void _internal_set_insertion_point(const std::string& value);
  579. std::string* _internal_mutable_insertion_point();
  580. public:
  581. // optional string content = 15;
  582. bool has_content() const;
  583. private:
  584. bool _internal_has_content() const;
  585. public:
  586. void clear_content();
  587. const std::string& content() const;
  588. void set_content(const std::string& value);
  589. void set_content(std::string&& value);
  590. void set_content(const char* value);
  591. void set_content(const char* value, size_t size);
  592. std::string* mutable_content();
  593. std::string* release_content();
  594. void set_allocated_content(std::string* content);
  595. private:
  596. const std::string& _internal_content() const;
  597. void _internal_set_content(const std::string& value);
  598. std::string* _internal_mutable_content();
  599. public:
  600. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse.File)
  601. private:
  602. class _Internal;
  603. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  604. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  605. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  606. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  607. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr insertion_point_;
  608. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_;
  609. friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
  610. };
  611. // -------------------------------------------------------------------
  612. class PROTOC_EXPORT CodeGeneratorResponse :
  613. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorResponse) */ {
  614. public:
  615. CodeGeneratorResponse();
  616. virtual ~CodeGeneratorResponse();
  617. CodeGeneratorResponse(const CodeGeneratorResponse& from);
  618. CodeGeneratorResponse(CodeGeneratorResponse&& from) noexcept
  619. : CodeGeneratorResponse() {
  620. *this = ::std::move(from);
  621. }
  622. inline CodeGeneratorResponse& operator=(const CodeGeneratorResponse& from) {
  623. CopyFrom(from);
  624. return *this;
  625. }
  626. inline CodeGeneratorResponse& operator=(CodeGeneratorResponse&& from) noexcept {
  627. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  628. if (this != &from) InternalSwap(&from);
  629. } else {
  630. CopyFrom(from);
  631. }
  632. return *this;
  633. }
  634. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  635. return _internal_metadata_.unknown_fields();
  636. }
  637. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  638. return _internal_metadata_.mutable_unknown_fields();
  639. }
  640. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  641. return GetDescriptor();
  642. }
  643. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  644. return GetMetadataStatic().descriptor;
  645. }
  646. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  647. return GetMetadataStatic().reflection;
  648. }
  649. static const CodeGeneratorResponse& default_instance();
  650. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  651. static inline const CodeGeneratorResponse* internal_default_instance() {
  652. return reinterpret_cast<const CodeGeneratorResponse*>(
  653. &_CodeGeneratorResponse_default_instance_);
  654. }
  655. static constexpr int kIndexInFileMessages =
  656. 3;
  657. friend void swap(CodeGeneratorResponse& a, CodeGeneratorResponse& b) {
  658. a.Swap(&b);
  659. }
  660. inline void Swap(CodeGeneratorResponse* other) {
  661. if (other == this) return;
  662. InternalSwap(other);
  663. }
  664. // implements Message ----------------------------------------------
  665. inline CodeGeneratorResponse* New() const final {
  666. return CreateMaybeMessage<CodeGeneratorResponse>(nullptr);
  667. }
  668. CodeGeneratorResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  669. return CreateMaybeMessage<CodeGeneratorResponse>(arena);
  670. }
  671. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  672. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  673. void CopyFrom(const CodeGeneratorResponse& from);
  674. void MergeFrom(const CodeGeneratorResponse& from);
  675. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  676. bool IsInitialized() const final;
  677. size_t ByteSizeLong() const final;
  678. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  679. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  680. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  681. int GetCachedSize() const final { return _cached_size_.Get(); }
  682. private:
  683. inline void SharedCtor();
  684. inline void SharedDtor();
  685. void SetCachedSize(int size) const final;
  686. void InternalSwap(CodeGeneratorResponse* other);
  687. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  688. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  689. return "google.protobuf.compiler.CodeGeneratorResponse";
  690. }
  691. private:
  692. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  693. return nullptr;
  694. }
  695. inline void* MaybeArenaPtr() const {
  696. return nullptr;
  697. }
  698. public:
  699. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  700. private:
  701. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  702. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto);
  703. return ::descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto.file_level_metadata[kIndexInFileMessages];
  704. }
  705. public:
  706. // nested types ----------------------------------------------------
  707. typedef CodeGeneratorResponse_File File;
  708. // accessors -------------------------------------------------------
  709. enum : int {
  710. kFileFieldNumber = 15,
  711. kErrorFieldNumber = 1,
  712. };
  713. // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
  714. int file_size() const;
  715. private:
  716. int _internal_file_size() const;
  717. public:
  718. void clear_file();
  719. PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* mutable_file(int index);
  720. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File >*
  721. mutable_file();
  722. private:
  723. const PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File& _internal_file(int index) const;
  724. PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* _internal_add_file();
  725. public:
  726. const PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File& file(int index) const;
  727. PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* add_file();
  728. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File >&
  729. file() const;
  730. // optional string error = 1;
  731. bool has_error() const;
  732. private:
  733. bool _internal_has_error() const;
  734. public:
  735. void clear_error();
  736. const std::string& error() const;
  737. void set_error(const std::string& value);
  738. void set_error(std::string&& value);
  739. void set_error(const char* value);
  740. void set_error(const char* value, size_t size);
  741. std::string* mutable_error();
  742. std::string* release_error();
  743. void set_allocated_error(std::string* error);
  744. private:
  745. const std::string& _internal_error() const;
  746. void _internal_set_error(const std::string& value);
  747. std::string* _internal_mutable_error();
  748. public:
  749. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse)
  750. private:
  751. class _Internal;
  752. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  753. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  754. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  755. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File > file_;
  756. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr error_;
  757. friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
  758. };
  759. // ===================================================================
  760. // ===================================================================
  761. #ifdef __GNUC__
  762. #pragma GCC diagnostic push
  763. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  764. #endif // __GNUC__
  765. // Version
  766. // optional int32 major = 1;
  767. inline bool Version::_internal_has_major() const {
  768. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  769. return value;
  770. }
  771. inline bool Version::has_major() const {
  772. return _internal_has_major();
  773. }
  774. inline void Version::clear_major() {
  775. major_ = 0;
  776. _has_bits_[0] &= ~0x00000002u;
  777. }
  778. inline ::PROTOBUF_NAMESPACE_ID::int32 Version::_internal_major() const {
  779. return major_;
  780. }
  781. inline ::PROTOBUF_NAMESPACE_ID::int32 Version::major() const {
  782. // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.major)
  783. return _internal_major();
  784. }
  785. inline void Version::_internal_set_major(::PROTOBUF_NAMESPACE_ID::int32 value) {
  786. _has_bits_[0] |= 0x00000002u;
  787. major_ = value;
  788. }
  789. inline void Version::set_major(::PROTOBUF_NAMESPACE_ID::int32 value) {
  790. _internal_set_major(value);
  791. // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.major)
  792. }
  793. // optional int32 minor = 2;
  794. inline bool Version::_internal_has_minor() const {
  795. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  796. return value;
  797. }
  798. inline bool Version::has_minor() const {
  799. return _internal_has_minor();
  800. }
  801. inline void Version::clear_minor() {
  802. minor_ = 0;
  803. _has_bits_[0] &= ~0x00000004u;
  804. }
  805. inline ::PROTOBUF_NAMESPACE_ID::int32 Version::_internal_minor() const {
  806. return minor_;
  807. }
  808. inline ::PROTOBUF_NAMESPACE_ID::int32 Version::minor() const {
  809. // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.minor)
  810. return _internal_minor();
  811. }
  812. inline void Version::_internal_set_minor(::PROTOBUF_NAMESPACE_ID::int32 value) {
  813. _has_bits_[0] |= 0x00000004u;
  814. minor_ = value;
  815. }
  816. inline void Version::set_minor(::PROTOBUF_NAMESPACE_ID::int32 value) {
  817. _internal_set_minor(value);
  818. // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.minor)
  819. }
  820. // optional int32 patch = 3;
  821. inline bool Version::_internal_has_patch() const {
  822. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  823. return value;
  824. }
  825. inline bool Version::has_patch() const {
  826. return _internal_has_patch();
  827. }
  828. inline void Version::clear_patch() {
  829. patch_ = 0;
  830. _has_bits_[0] &= ~0x00000008u;
  831. }
  832. inline ::PROTOBUF_NAMESPACE_ID::int32 Version::_internal_patch() const {
  833. return patch_;
  834. }
  835. inline ::PROTOBUF_NAMESPACE_ID::int32 Version::patch() const {
  836. // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.patch)
  837. return _internal_patch();
  838. }
  839. inline void Version::_internal_set_patch(::PROTOBUF_NAMESPACE_ID::int32 value) {
  840. _has_bits_[0] |= 0x00000008u;
  841. patch_ = value;
  842. }
  843. inline void Version::set_patch(::PROTOBUF_NAMESPACE_ID::int32 value) {
  844. _internal_set_patch(value);
  845. // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.patch)
  846. }
  847. // optional string suffix = 4;
  848. inline bool Version::_internal_has_suffix() const {
  849. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  850. return value;
  851. }
  852. inline bool Version::has_suffix() const {
  853. return _internal_has_suffix();
  854. }
  855. inline void Version::clear_suffix() {
  856. suffix_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  857. _has_bits_[0] &= ~0x00000001u;
  858. }
  859. inline const std::string& Version::suffix() const {
  860. // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.suffix)
  861. return _internal_suffix();
  862. }
  863. inline void Version::set_suffix(const std::string& value) {
  864. _internal_set_suffix(value);
  865. // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.suffix)
  866. }
  867. inline std::string* Version::mutable_suffix() {
  868. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.Version.suffix)
  869. return _internal_mutable_suffix();
  870. }
  871. inline const std::string& Version::_internal_suffix() const {
  872. return suffix_.GetNoArena();
  873. }
  874. inline void Version::_internal_set_suffix(const std::string& value) {
  875. _has_bits_[0] |= 0x00000001u;
  876. suffix_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  877. }
  878. inline void Version::set_suffix(std::string&& value) {
  879. _has_bits_[0] |= 0x00000001u;
  880. suffix_.SetNoArena(
  881. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  882. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.Version.suffix)
  883. }
  884. inline void Version::set_suffix(const char* value) {
  885. GOOGLE_DCHECK(value != nullptr);
  886. _has_bits_[0] |= 0x00000001u;
  887. suffix_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  888. // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.Version.suffix)
  889. }
  890. inline void Version::set_suffix(const char* value, size_t size) {
  891. _has_bits_[0] |= 0x00000001u;
  892. suffix_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  893. ::std::string(reinterpret_cast<const char*>(value), size));
  894. // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.Version.suffix)
  895. }
  896. inline std::string* Version::_internal_mutable_suffix() {
  897. _has_bits_[0] |= 0x00000001u;
  898. return suffix_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  899. }
  900. inline std::string* Version::release_suffix() {
  901. // @@protoc_insertion_point(field_release:google.protobuf.compiler.Version.suffix)
  902. if (!has_suffix()) {
  903. return nullptr;
  904. }
  905. _has_bits_[0] &= ~0x00000001u;
  906. return suffix_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  907. }
  908. inline void Version::set_allocated_suffix(std::string* suffix) {
  909. if (suffix != nullptr) {
  910. _has_bits_[0] |= 0x00000001u;
  911. } else {
  912. _has_bits_[0] &= ~0x00000001u;
  913. }
  914. suffix_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), suffix);
  915. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.Version.suffix)
  916. }
  917. // -------------------------------------------------------------------
  918. // CodeGeneratorRequest
  919. // repeated string file_to_generate = 1;
  920. inline int CodeGeneratorRequest::_internal_file_to_generate_size() const {
  921. return file_to_generate_.size();
  922. }
  923. inline int CodeGeneratorRequest::file_to_generate_size() const {
  924. return _internal_file_to_generate_size();
  925. }
  926. inline void CodeGeneratorRequest::clear_file_to_generate() {
  927. file_to_generate_.Clear();
  928. }
  929. inline std::string* CodeGeneratorRequest::add_file_to_generate() {
  930. // @@protoc_insertion_point(field_add_mutable:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  931. return _internal_add_file_to_generate();
  932. }
  933. inline const std::string& CodeGeneratorRequest::_internal_file_to_generate(int index) const {
  934. return file_to_generate_.Get(index);
  935. }
  936. inline const std::string& CodeGeneratorRequest::file_to_generate(int index) const {
  937. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  938. return _internal_file_to_generate(index);
  939. }
  940. inline std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) {
  941. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  942. return file_to_generate_.Mutable(index);
  943. }
  944. inline void CodeGeneratorRequest::set_file_to_generate(int index, const std::string& value) {
  945. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  946. file_to_generate_.Mutable(index)->assign(value);
  947. }
  948. inline void CodeGeneratorRequest::set_file_to_generate(int index, std::string&& value) {
  949. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  950. file_to_generate_.Mutable(index)->assign(std::move(value));
  951. }
  952. inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* value) {
  953. GOOGLE_DCHECK(value != nullptr);
  954. file_to_generate_.Mutable(index)->assign(value);
  955. // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  956. }
  957. inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* value, size_t size) {
  958. file_to_generate_.Mutable(index)->assign(
  959. reinterpret_cast<const char*>(value), size);
  960. // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  961. }
  962. inline std::string* CodeGeneratorRequest::_internal_add_file_to_generate() {
  963. return file_to_generate_.Add();
  964. }
  965. inline void CodeGeneratorRequest::add_file_to_generate(const std::string& value) {
  966. file_to_generate_.Add()->assign(value);
  967. // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  968. }
  969. inline void CodeGeneratorRequest::add_file_to_generate(std::string&& value) {
  970. file_to_generate_.Add(std::move(value));
  971. // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  972. }
  973. inline void CodeGeneratorRequest::add_file_to_generate(const char* value) {
  974. GOOGLE_DCHECK(value != nullptr);
  975. file_to_generate_.Add()->assign(value);
  976. // @@protoc_insertion_point(field_add_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  977. }
  978. inline void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t size) {
  979. file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size);
  980. // @@protoc_insertion_point(field_add_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  981. }
  982. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  983. CodeGeneratorRequest::file_to_generate() const {
  984. // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  985. return file_to_generate_;
  986. }
  987. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  988. CodeGeneratorRequest::mutable_file_to_generate() {
  989. // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  990. return &file_to_generate_;
  991. }
  992. // optional string parameter = 2;
  993. inline bool CodeGeneratorRequest::_internal_has_parameter() const {
  994. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  995. return value;
  996. }
  997. inline bool CodeGeneratorRequest::has_parameter() const {
  998. return _internal_has_parameter();
  999. }
  1000. inline void CodeGeneratorRequest::clear_parameter() {
  1001. parameter_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1002. _has_bits_[0] &= ~0x00000001u;
  1003. }
  1004. inline const std::string& CodeGeneratorRequest::parameter() const {
  1005. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  1006. return _internal_parameter();
  1007. }
  1008. inline void CodeGeneratorRequest::set_parameter(const std::string& value) {
  1009. _internal_set_parameter(value);
  1010. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  1011. }
  1012. inline std::string* CodeGeneratorRequest::mutable_parameter() {
  1013. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  1014. return _internal_mutable_parameter();
  1015. }
  1016. inline const std::string& CodeGeneratorRequest::_internal_parameter() const {
  1017. return parameter_.GetNoArena();
  1018. }
  1019. inline void CodeGeneratorRequest::_internal_set_parameter(const std::string& value) {
  1020. _has_bits_[0] |= 0x00000001u;
  1021. parameter_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  1022. }
  1023. inline void CodeGeneratorRequest::set_parameter(std::string&& value) {
  1024. _has_bits_[0] |= 0x00000001u;
  1025. parameter_.SetNoArena(
  1026. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1027. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  1028. }
  1029. inline void CodeGeneratorRequest::set_parameter(const char* value) {
  1030. GOOGLE_DCHECK(value != nullptr);
  1031. _has_bits_[0] |= 0x00000001u;
  1032. parameter_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1033. // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  1034. }
  1035. inline void CodeGeneratorRequest::set_parameter(const char* value, size_t size) {
  1036. _has_bits_[0] |= 0x00000001u;
  1037. parameter_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1038. ::std::string(reinterpret_cast<const char*>(value), size));
  1039. // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  1040. }
  1041. inline std::string* CodeGeneratorRequest::_internal_mutable_parameter() {
  1042. _has_bits_[0] |= 0x00000001u;
  1043. return parameter_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1044. }
  1045. inline std::string* CodeGeneratorRequest::release_parameter() {
  1046. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  1047. if (!has_parameter()) {
  1048. return nullptr;
  1049. }
  1050. _has_bits_[0] &= ~0x00000001u;
  1051. return parameter_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1052. }
  1053. inline void CodeGeneratorRequest::set_allocated_parameter(std::string* parameter) {
  1054. if (parameter != nullptr) {
  1055. _has_bits_[0] |= 0x00000001u;
  1056. } else {
  1057. _has_bits_[0] &= ~0x00000001u;
  1058. }
  1059. parameter_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parameter);
  1060. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  1061. }
  1062. // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
  1063. inline int CodeGeneratorRequest::_internal_proto_file_size() const {
  1064. return proto_file_.size();
  1065. }
  1066. inline int CodeGeneratorRequest::proto_file_size() const {
  1067. return _internal_proto_file_size();
  1068. }
  1069. inline PROTOBUF_NAMESPACE_ID::FileDescriptorProto* CodeGeneratorRequest::mutable_proto_file(int index) {
  1070. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  1071. return proto_file_.Mutable(index);
  1072. }
  1073. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FileDescriptorProto >*
  1074. CodeGeneratorRequest::mutable_proto_file() {
  1075. // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  1076. return &proto_file_;
  1077. }
  1078. inline const PROTOBUF_NAMESPACE_ID::FileDescriptorProto& CodeGeneratorRequest::_internal_proto_file(int index) const {
  1079. return proto_file_.Get(index);
  1080. }
  1081. inline const PROTOBUF_NAMESPACE_ID::FileDescriptorProto& CodeGeneratorRequest::proto_file(int index) const {
  1082. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  1083. return _internal_proto_file(index);
  1084. }
  1085. inline PROTOBUF_NAMESPACE_ID::FileDescriptorProto* CodeGeneratorRequest::_internal_add_proto_file() {
  1086. return proto_file_.Add();
  1087. }
  1088. inline PROTOBUF_NAMESPACE_ID::FileDescriptorProto* CodeGeneratorRequest::add_proto_file() {
  1089. // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  1090. return _internal_add_proto_file();
  1091. }
  1092. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FileDescriptorProto >&
  1093. CodeGeneratorRequest::proto_file() const {
  1094. // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  1095. return proto_file_;
  1096. }
  1097. // optional .google.protobuf.compiler.Version compiler_version = 3;
  1098. inline bool CodeGeneratorRequest::_internal_has_compiler_version() const {
  1099. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  1100. PROTOBUF_ASSUME(!value || compiler_version_ != nullptr);
  1101. return value;
  1102. }
  1103. inline bool CodeGeneratorRequest::has_compiler_version() const {
  1104. return _internal_has_compiler_version();
  1105. }
  1106. inline void CodeGeneratorRequest::clear_compiler_version() {
  1107. if (compiler_version_ != nullptr) compiler_version_->Clear();
  1108. _has_bits_[0] &= ~0x00000002u;
  1109. }
  1110. inline const PROTOBUF_NAMESPACE_ID::compiler::Version& CodeGeneratorRequest::_internal_compiler_version() const {
  1111. const PROTOBUF_NAMESPACE_ID::compiler::Version* p = compiler_version_;
  1112. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::compiler::Version*>(
  1113. &PROTOBUF_NAMESPACE_ID::compiler::_Version_default_instance_);
  1114. }
  1115. inline const PROTOBUF_NAMESPACE_ID::compiler::Version& CodeGeneratorRequest::compiler_version() const {
  1116. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
  1117. return _internal_compiler_version();
  1118. }
  1119. inline PROTOBUF_NAMESPACE_ID::compiler::Version* CodeGeneratorRequest::release_compiler_version() {
  1120. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
  1121. _has_bits_[0] &= ~0x00000002u;
  1122. PROTOBUF_NAMESPACE_ID::compiler::Version* temp = compiler_version_;
  1123. compiler_version_ = nullptr;
  1124. return temp;
  1125. }
  1126. inline PROTOBUF_NAMESPACE_ID::compiler::Version* CodeGeneratorRequest::_internal_mutable_compiler_version() {
  1127. _has_bits_[0] |= 0x00000002u;
  1128. if (compiler_version_ == nullptr) {
  1129. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::compiler::Version>(GetArenaNoVirtual());
  1130. compiler_version_ = p;
  1131. }
  1132. return compiler_version_;
  1133. }
  1134. inline PROTOBUF_NAMESPACE_ID::compiler::Version* CodeGeneratorRequest::mutable_compiler_version() {
  1135. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
  1136. return _internal_mutable_compiler_version();
  1137. }
  1138. inline void CodeGeneratorRequest::set_allocated_compiler_version(PROTOBUF_NAMESPACE_ID::compiler::Version* compiler_version) {
  1139. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  1140. if (message_arena == nullptr) {
  1141. delete compiler_version_;
  1142. }
  1143. if (compiler_version) {
  1144. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  1145. if (message_arena != submessage_arena) {
  1146. compiler_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1147. message_arena, compiler_version, submessage_arena);
  1148. }
  1149. _has_bits_[0] |= 0x00000002u;
  1150. } else {
  1151. _has_bits_[0] &= ~0x00000002u;
  1152. }
  1153. compiler_version_ = compiler_version;
  1154. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
  1155. }
  1156. // -------------------------------------------------------------------
  1157. // CodeGeneratorResponse_File
  1158. // optional string name = 1;
  1159. inline bool CodeGeneratorResponse_File::_internal_has_name() const {
  1160. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  1161. return value;
  1162. }
  1163. inline bool CodeGeneratorResponse_File::has_name() const {
  1164. return _internal_has_name();
  1165. }
  1166. inline void CodeGeneratorResponse_File::clear_name() {
  1167. name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1168. _has_bits_[0] &= ~0x00000001u;
  1169. }
  1170. inline const std::string& CodeGeneratorResponse_File::name() const {
  1171. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1172. return _internal_name();
  1173. }
  1174. inline void CodeGeneratorResponse_File::set_name(const std::string& value) {
  1175. _internal_set_name(value);
  1176. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1177. }
  1178. inline std::string* CodeGeneratorResponse_File::mutable_name() {
  1179. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1180. return _internal_mutable_name();
  1181. }
  1182. inline const std::string& CodeGeneratorResponse_File::_internal_name() const {
  1183. return name_.GetNoArena();
  1184. }
  1185. inline void CodeGeneratorResponse_File::_internal_set_name(const std::string& value) {
  1186. _has_bits_[0] |= 0x00000001u;
  1187. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  1188. }
  1189. inline void CodeGeneratorResponse_File::set_name(std::string&& value) {
  1190. _has_bits_[0] |= 0x00000001u;
  1191. name_.SetNoArena(
  1192. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1193. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1194. }
  1195. inline void CodeGeneratorResponse_File::set_name(const char* value) {
  1196. GOOGLE_DCHECK(value != nullptr);
  1197. _has_bits_[0] |= 0x00000001u;
  1198. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1199. // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1200. }
  1201. inline void CodeGeneratorResponse_File::set_name(const char* value, size_t size) {
  1202. _has_bits_[0] |= 0x00000001u;
  1203. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1204. ::std::string(reinterpret_cast<const char*>(value), size));
  1205. // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1206. }
  1207. inline std::string* CodeGeneratorResponse_File::_internal_mutable_name() {
  1208. _has_bits_[0] |= 0x00000001u;
  1209. return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1210. }
  1211. inline std::string* CodeGeneratorResponse_File::release_name() {
  1212. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1213. if (!has_name()) {
  1214. return nullptr;
  1215. }
  1216. _has_bits_[0] &= ~0x00000001u;
  1217. return name_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1218. }
  1219. inline void CodeGeneratorResponse_File::set_allocated_name(std::string* name) {
  1220. if (name != nullptr) {
  1221. _has_bits_[0] |= 0x00000001u;
  1222. } else {
  1223. _has_bits_[0] &= ~0x00000001u;
  1224. }
  1225. name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
  1226. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1227. }
  1228. // optional string insertion_point = 2;
  1229. inline bool CodeGeneratorResponse_File::_internal_has_insertion_point() const {
  1230. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  1231. return value;
  1232. }
  1233. inline bool CodeGeneratorResponse_File::has_insertion_point() const {
  1234. return _internal_has_insertion_point();
  1235. }
  1236. inline void CodeGeneratorResponse_File::clear_insertion_point() {
  1237. insertion_point_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1238. _has_bits_[0] &= ~0x00000002u;
  1239. }
  1240. inline const std::string& CodeGeneratorResponse_File::insertion_point() const {
  1241. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1242. return _internal_insertion_point();
  1243. }
  1244. inline void CodeGeneratorResponse_File::set_insertion_point(const std::string& value) {
  1245. _internal_set_insertion_point(value);
  1246. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1247. }
  1248. inline std::string* CodeGeneratorResponse_File::mutable_insertion_point() {
  1249. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1250. return _internal_mutable_insertion_point();
  1251. }
  1252. inline const std::string& CodeGeneratorResponse_File::_internal_insertion_point() const {
  1253. return insertion_point_.GetNoArena();
  1254. }
  1255. inline void CodeGeneratorResponse_File::_internal_set_insertion_point(const std::string& value) {
  1256. _has_bits_[0] |= 0x00000002u;
  1257. insertion_point_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  1258. }
  1259. inline void CodeGeneratorResponse_File::set_insertion_point(std::string&& value) {
  1260. _has_bits_[0] |= 0x00000002u;
  1261. insertion_point_.SetNoArena(
  1262. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1263. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1264. }
  1265. inline void CodeGeneratorResponse_File::set_insertion_point(const char* value) {
  1266. GOOGLE_DCHECK(value != nullptr);
  1267. _has_bits_[0] |= 0x00000002u;
  1268. insertion_point_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1269. // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1270. }
  1271. inline void CodeGeneratorResponse_File::set_insertion_point(const char* value, size_t size) {
  1272. _has_bits_[0] |= 0x00000002u;
  1273. insertion_point_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1274. ::std::string(reinterpret_cast<const char*>(value), size));
  1275. // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1276. }
  1277. inline std::string* CodeGeneratorResponse_File::_internal_mutable_insertion_point() {
  1278. _has_bits_[0] |= 0x00000002u;
  1279. return insertion_point_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1280. }
  1281. inline std::string* CodeGeneratorResponse_File::release_insertion_point() {
  1282. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1283. if (!has_insertion_point()) {
  1284. return nullptr;
  1285. }
  1286. _has_bits_[0] &= ~0x00000002u;
  1287. return insertion_point_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1288. }
  1289. inline void CodeGeneratorResponse_File::set_allocated_insertion_point(std::string* insertion_point) {
  1290. if (insertion_point != nullptr) {
  1291. _has_bits_[0] |= 0x00000002u;
  1292. } else {
  1293. _has_bits_[0] &= ~0x00000002u;
  1294. }
  1295. insertion_point_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), insertion_point);
  1296. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1297. }
  1298. // optional string content = 15;
  1299. inline bool CodeGeneratorResponse_File::_internal_has_content() const {
  1300. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  1301. return value;
  1302. }
  1303. inline bool CodeGeneratorResponse_File::has_content() const {
  1304. return _internal_has_content();
  1305. }
  1306. inline void CodeGeneratorResponse_File::clear_content() {
  1307. content_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1308. _has_bits_[0] &= ~0x00000004u;
  1309. }
  1310. inline const std::string& CodeGeneratorResponse_File::content() const {
  1311. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1312. return _internal_content();
  1313. }
  1314. inline void CodeGeneratorResponse_File::set_content(const std::string& value) {
  1315. _internal_set_content(value);
  1316. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1317. }
  1318. inline std::string* CodeGeneratorResponse_File::mutable_content() {
  1319. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1320. return _internal_mutable_content();
  1321. }
  1322. inline const std::string& CodeGeneratorResponse_File::_internal_content() const {
  1323. return content_.GetNoArena();
  1324. }
  1325. inline void CodeGeneratorResponse_File::_internal_set_content(const std::string& value) {
  1326. _has_bits_[0] |= 0x00000004u;
  1327. content_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  1328. }
  1329. inline void CodeGeneratorResponse_File::set_content(std::string&& value) {
  1330. _has_bits_[0] |= 0x00000004u;
  1331. content_.SetNoArena(
  1332. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1333. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1334. }
  1335. inline void CodeGeneratorResponse_File::set_content(const char* value) {
  1336. GOOGLE_DCHECK(value != nullptr);
  1337. _has_bits_[0] |= 0x00000004u;
  1338. content_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1339. // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1340. }
  1341. inline void CodeGeneratorResponse_File::set_content(const char* value, size_t size) {
  1342. _has_bits_[0] |= 0x00000004u;
  1343. content_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1344. ::std::string(reinterpret_cast<const char*>(value), size));
  1345. // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1346. }
  1347. inline std::string* CodeGeneratorResponse_File::_internal_mutable_content() {
  1348. _has_bits_[0] |= 0x00000004u;
  1349. return content_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1350. }
  1351. inline std::string* CodeGeneratorResponse_File::release_content() {
  1352. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1353. if (!has_content()) {
  1354. return nullptr;
  1355. }
  1356. _has_bits_[0] &= ~0x00000004u;
  1357. return content_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1358. }
  1359. inline void CodeGeneratorResponse_File::set_allocated_content(std::string* content) {
  1360. if (content != nullptr) {
  1361. _has_bits_[0] |= 0x00000004u;
  1362. } else {
  1363. _has_bits_[0] &= ~0x00000004u;
  1364. }
  1365. content_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), content);
  1366. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1367. }
  1368. // -------------------------------------------------------------------
  1369. // CodeGeneratorResponse
  1370. // optional string error = 1;
  1371. inline bool CodeGeneratorResponse::_internal_has_error() const {
  1372. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  1373. return value;
  1374. }
  1375. inline bool CodeGeneratorResponse::has_error() const {
  1376. return _internal_has_error();
  1377. }
  1378. inline void CodeGeneratorResponse::clear_error() {
  1379. error_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1380. _has_bits_[0] &= ~0x00000001u;
  1381. }
  1382. inline const std::string& CodeGeneratorResponse::error() const {
  1383. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.error)
  1384. return _internal_error();
  1385. }
  1386. inline void CodeGeneratorResponse::set_error(const std::string& value) {
  1387. _internal_set_error(value);
  1388. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.error)
  1389. }
  1390. inline std::string* CodeGeneratorResponse::mutable_error() {
  1391. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.error)
  1392. return _internal_mutable_error();
  1393. }
  1394. inline const std::string& CodeGeneratorResponse::_internal_error() const {
  1395. return error_.GetNoArena();
  1396. }
  1397. inline void CodeGeneratorResponse::_internal_set_error(const std::string& value) {
  1398. _has_bits_[0] |= 0x00000001u;
  1399. error_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  1400. }
  1401. inline void CodeGeneratorResponse::set_error(std::string&& value) {
  1402. _has_bits_[0] |= 0x00000001u;
  1403. error_.SetNoArena(
  1404. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1405. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGeneratorResponse.error)
  1406. }
  1407. inline void CodeGeneratorResponse::set_error(const char* value) {
  1408. GOOGLE_DCHECK(value != nullptr);
  1409. _has_bits_[0] |= 0x00000001u;
  1410. error_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1411. // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.error)
  1412. }
  1413. inline void CodeGeneratorResponse::set_error(const char* value, size_t size) {
  1414. _has_bits_[0] |= 0x00000001u;
  1415. error_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1416. ::std::string(reinterpret_cast<const char*>(value), size));
  1417. // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.error)
  1418. }
  1419. inline std::string* CodeGeneratorResponse::_internal_mutable_error() {
  1420. _has_bits_[0] |= 0x00000001u;
  1421. return error_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1422. }
  1423. inline std::string* CodeGeneratorResponse::release_error() {
  1424. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.error)
  1425. if (!has_error()) {
  1426. return nullptr;
  1427. }
  1428. _has_bits_[0] &= ~0x00000001u;
  1429. return error_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1430. }
  1431. inline void CodeGeneratorResponse::set_allocated_error(std::string* error) {
  1432. if (error != nullptr) {
  1433. _has_bits_[0] |= 0x00000001u;
  1434. } else {
  1435. _has_bits_[0] &= ~0x00000001u;
  1436. }
  1437. error_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), error);
  1438. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.error)
  1439. }
  1440. // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
  1441. inline int CodeGeneratorResponse::_internal_file_size() const {
  1442. return file_.size();
  1443. }
  1444. inline int CodeGeneratorResponse::file_size() const {
  1445. return _internal_file_size();
  1446. }
  1447. inline void CodeGeneratorResponse::clear_file() {
  1448. file_.Clear();
  1449. }
  1450. inline PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::mutable_file(int index) {
  1451. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.file)
  1452. return file_.Mutable(index);
  1453. }
  1454. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File >*
  1455. CodeGeneratorResponse::mutable_file() {
  1456. // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorResponse.file)
  1457. return &file_;
  1458. }
  1459. inline const PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::_internal_file(int index) const {
  1460. return file_.Get(index);
  1461. }
  1462. inline const PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::file(int index) const {
  1463. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.file)
  1464. return _internal_file(index);
  1465. }
  1466. inline PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::_internal_add_file() {
  1467. return file_.Add();
  1468. }
  1469. inline PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::add_file() {
  1470. // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorResponse.file)
  1471. return _internal_add_file();
  1472. }
  1473. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File >&
  1474. CodeGeneratorResponse::file() const {
  1475. // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorResponse.file)
  1476. return file_;
  1477. }
  1478. #ifdef __GNUC__
  1479. #pragma GCC diagnostic pop
  1480. #endif // __GNUC__
  1481. // -------------------------------------------------------------------
  1482. // -------------------------------------------------------------------
  1483. // -------------------------------------------------------------------
  1484. // @@protoc_insertion_point(namespace_scope)
  1485. } // namespace compiler
  1486. PROTOBUF_NAMESPACE_CLOSE
  1487. // @@protoc_insertion_point(global_scope)
  1488. #include <google/protobuf/port_undef.inc>
  1489. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcompiler_2fplugin_2eproto