/thirdparty/breakpad/third_party/protobuf/protobuf/src/google/protobuf/compiler/plugin.pb.h

http://github.com/tomahawk-player/tomahawk · C++ Header · 790 lines · 648 code · 98 blank · 44 comment · 70 complexity · b14a9de7dcff74fc1c119e7dfb4a8059 MD5 · raw file

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/compiler/plugin.proto
  3. #ifndef PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED
  4. #define PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 2004000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 2004002 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/generated_message_util.h>
  18. #include <google/protobuf/repeated_field.h>
  19. #include <google/protobuf/extension_set.h>
  20. #include <google/protobuf/generated_message_reflection.h>
  21. #include "google/protobuf/descriptor.pb.h"
  22. // @@protoc_insertion_point(includes)
  23. namespace google {
  24. namespace protobuf {
  25. namespace compiler {
  26. // Internal implementation detail -- do not call these.
  27. void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
  28. void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
  29. void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
  30. class CodeGeneratorRequest;
  31. class CodeGeneratorResponse;
  32. class CodeGeneratorResponse_File;
  33. // ===================================================================
  34. class LIBPROTOC_EXPORT CodeGeneratorRequest : public ::google::protobuf::Message {
  35. public:
  36. CodeGeneratorRequest();
  37. virtual ~CodeGeneratorRequest();
  38. CodeGeneratorRequest(const CodeGeneratorRequest& from);
  39. inline CodeGeneratorRequest& operator=(const CodeGeneratorRequest& from) {
  40. CopyFrom(from);
  41. return *this;
  42. }
  43. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  44. return _unknown_fields_;
  45. }
  46. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  47. return &_unknown_fields_;
  48. }
  49. static const ::google::protobuf::Descriptor* descriptor();
  50. static const CodeGeneratorRequest& default_instance();
  51. void Swap(CodeGeneratorRequest* other);
  52. // implements Message ----------------------------------------------
  53. CodeGeneratorRequest* New() const;
  54. void CopyFrom(const ::google::protobuf::Message& from);
  55. void MergeFrom(const ::google::protobuf::Message& from);
  56. void CopyFrom(const CodeGeneratorRequest& from);
  57. void MergeFrom(const CodeGeneratorRequest& from);
  58. void Clear();
  59. bool IsInitialized() const;
  60. int ByteSize() const;
  61. bool MergePartialFromCodedStream(
  62. ::google::protobuf::io::CodedInputStream* input);
  63. void SerializeWithCachedSizes(
  64. ::google::protobuf::io::CodedOutputStream* output) const;
  65. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  66. int GetCachedSize() const { return _cached_size_; }
  67. private:
  68. void SharedCtor();
  69. void SharedDtor();
  70. void SetCachedSize(int size) const;
  71. public:
  72. ::google::protobuf::Metadata GetMetadata() const;
  73. // nested types ----------------------------------------------------
  74. // accessors -------------------------------------------------------
  75. // repeated string file_to_generate = 1;
  76. inline int file_to_generate_size() const;
  77. inline void clear_file_to_generate();
  78. static const int kFileToGenerateFieldNumber = 1;
  79. inline const ::std::string& file_to_generate(int index) const;
  80. inline ::std::string* mutable_file_to_generate(int index);
  81. inline void set_file_to_generate(int index, const ::std::string& value);
  82. inline void set_file_to_generate(int index, const char* value);
  83. inline void set_file_to_generate(int index, const char* value, size_t size);
  84. inline ::std::string* add_file_to_generate();
  85. inline void add_file_to_generate(const ::std::string& value);
  86. inline void add_file_to_generate(const char* value);
  87. inline void add_file_to_generate(const char* value, size_t size);
  88. inline const ::google::protobuf::RepeatedPtrField< ::std::string>& file_to_generate() const;
  89. inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_file_to_generate();
  90. // optional string parameter = 2;
  91. inline bool has_parameter() const;
  92. inline void clear_parameter();
  93. static const int kParameterFieldNumber = 2;
  94. inline const ::std::string& parameter() const;
  95. inline void set_parameter(const ::std::string& value);
  96. inline void set_parameter(const char* value);
  97. inline void set_parameter(const char* value, size_t size);
  98. inline ::std::string* mutable_parameter();
  99. inline ::std::string* release_parameter();
  100. // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
  101. inline int proto_file_size() const;
  102. inline void clear_proto_file();
  103. static const int kProtoFileFieldNumber = 15;
  104. inline const ::google::protobuf::FileDescriptorProto& proto_file(int index) const;
  105. inline ::google::protobuf::FileDescriptorProto* mutable_proto_file(int index);
  106. inline ::google::protobuf::FileDescriptorProto* add_proto_file();
  107. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
  108. proto_file() const;
  109. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
  110. mutable_proto_file();
  111. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorRequest)
  112. private:
  113. inline void set_has_parameter();
  114. inline void clear_has_parameter();
  115. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  116. ::google::protobuf::RepeatedPtrField< ::std::string> file_to_generate_;
  117. ::std::string* parameter_;
  118. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > proto_file_;
  119. mutable int _cached_size_;
  120. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  121. friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
  122. friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
  123. friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
  124. void InitAsDefaultInstance();
  125. static CodeGeneratorRequest* default_instance_;
  126. };
  127. // -------------------------------------------------------------------
  128. class LIBPROTOC_EXPORT CodeGeneratorResponse_File : public ::google::protobuf::Message {
  129. public:
  130. CodeGeneratorResponse_File();
  131. virtual ~CodeGeneratorResponse_File();
  132. CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from);
  133. inline CodeGeneratorResponse_File& operator=(const CodeGeneratorResponse_File& from) {
  134. CopyFrom(from);
  135. return *this;
  136. }
  137. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  138. return _unknown_fields_;
  139. }
  140. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  141. return &_unknown_fields_;
  142. }
  143. static const ::google::protobuf::Descriptor* descriptor();
  144. static const CodeGeneratorResponse_File& default_instance();
  145. void Swap(CodeGeneratorResponse_File* other);
  146. // implements Message ----------------------------------------------
  147. CodeGeneratorResponse_File* New() const;
  148. void CopyFrom(const ::google::protobuf::Message& from);
  149. void MergeFrom(const ::google::protobuf::Message& from);
  150. void CopyFrom(const CodeGeneratorResponse_File& from);
  151. void MergeFrom(const CodeGeneratorResponse_File& from);
  152. void Clear();
  153. bool IsInitialized() const;
  154. int ByteSize() const;
  155. bool MergePartialFromCodedStream(
  156. ::google::protobuf::io::CodedInputStream* input);
  157. void SerializeWithCachedSizes(
  158. ::google::protobuf::io::CodedOutputStream* output) const;
  159. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  160. int GetCachedSize() const { return _cached_size_; }
  161. private:
  162. void SharedCtor();
  163. void SharedDtor();
  164. void SetCachedSize(int size) const;
  165. public:
  166. ::google::protobuf::Metadata GetMetadata() const;
  167. // nested types ----------------------------------------------------
  168. // accessors -------------------------------------------------------
  169. // optional string name = 1;
  170. inline bool has_name() const;
  171. inline void clear_name();
  172. static const int kNameFieldNumber = 1;
  173. inline const ::std::string& name() const;
  174. inline void set_name(const ::std::string& value);
  175. inline void set_name(const char* value);
  176. inline void set_name(const char* value, size_t size);
  177. inline ::std::string* mutable_name();
  178. inline ::std::string* release_name();
  179. // optional string insertion_point = 2;
  180. inline bool has_insertion_point() const;
  181. inline void clear_insertion_point();
  182. static const int kInsertionPointFieldNumber = 2;
  183. inline const ::std::string& insertion_point() const;
  184. inline void set_insertion_point(const ::std::string& value);
  185. inline void set_insertion_point(const char* value);
  186. inline void set_insertion_point(const char* value, size_t size);
  187. inline ::std::string* mutable_insertion_point();
  188. inline ::std::string* release_insertion_point();
  189. // optional string content = 15;
  190. inline bool has_content() const;
  191. inline void clear_content();
  192. static const int kContentFieldNumber = 15;
  193. inline const ::std::string& content() const;
  194. inline void set_content(const ::std::string& value);
  195. inline void set_content(const char* value);
  196. inline void set_content(const char* value, size_t size);
  197. inline ::std::string* mutable_content();
  198. inline ::std::string* release_content();
  199. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse.File)
  200. private:
  201. inline void set_has_name();
  202. inline void clear_has_name();
  203. inline void set_has_insertion_point();
  204. inline void clear_has_insertion_point();
  205. inline void set_has_content();
  206. inline void clear_has_content();
  207. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  208. ::std::string* name_;
  209. ::std::string* insertion_point_;
  210. ::std::string* content_;
  211. mutable int _cached_size_;
  212. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  213. friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
  214. friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
  215. friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
  216. void InitAsDefaultInstance();
  217. static CodeGeneratorResponse_File* default_instance_;
  218. };
  219. // -------------------------------------------------------------------
  220. class LIBPROTOC_EXPORT CodeGeneratorResponse : public ::google::protobuf::Message {
  221. public:
  222. CodeGeneratorResponse();
  223. virtual ~CodeGeneratorResponse();
  224. CodeGeneratorResponse(const CodeGeneratorResponse& from);
  225. inline CodeGeneratorResponse& operator=(const CodeGeneratorResponse& from) {
  226. CopyFrom(from);
  227. return *this;
  228. }
  229. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  230. return _unknown_fields_;
  231. }
  232. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  233. return &_unknown_fields_;
  234. }
  235. static const ::google::protobuf::Descriptor* descriptor();
  236. static const CodeGeneratorResponse& default_instance();
  237. void Swap(CodeGeneratorResponse* other);
  238. // implements Message ----------------------------------------------
  239. CodeGeneratorResponse* New() const;
  240. void CopyFrom(const ::google::protobuf::Message& from);
  241. void MergeFrom(const ::google::protobuf::Message& from);
  242. void CopyFrom(const CodeGeneratorResponse& from);
  243. void MergeFrom(const CodeGeneratorResponse& from);
  244. void Clear();
  245. bool IsInitialized() const;
  246. int ByteSize() const;
  247. bool MergePartialFromCodedStream(
  248. ::google::protobuf::io::CodedInputStream* input);
  249. void SerializeWithCachedSizes(
  250. ::google::protobuf::io::CodedOutputStream* output) const;
  251. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  252. int GetCachedSize() const { return _cached_size_; }
  253. private:
  254. void SharedCtor();
  255. void SharedDtor();
  256. void SetCachedSize(int size) const;
  257. public:
  258. ::google::protobuf::Metadata GetMetadata() const;
  259. // nested types ----------------------------------------------------
  260. typedef CodeGeneratorResponse_File File;
  261. // accessors -------------------------------------------------------
  262. // optional string error = 1;
  263. inline bool has_error() const;
  264. inline void clear_error();
  265. static const int kErrorFieldNumber = 1;
  266. inline const ::std::string& error() const;
  267. inline void set_error(const ::std::string& value);
  268. inline void set_error(const char* value);
  269. inline void set_error(const char* value, size_t size);
  270. inline ::std::string* mutable_error();
  271. inline ::std::string* release_error();
  272. // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
  273. inline int file_size() const;
  274. inline void clear_file();
  275. static const int kFileFieldNumber = 15;
  276. inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& file(int index) const;
  277. inline ::google::protobuf::compiler::CodeGeneratorResponse_File* mutable_file(int index);
  278. inline ::google::protobuf::compiler::CodeGeneratorResponse_File* add_file();
  279. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >&
  280. file() const;
  281. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >*
  282. mutable_file();
  283. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse)
  284. private:
  285. inline void set_has_error();
  286. inline void clear_has_error();
  287. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  288. ::std::string* error_;
  289. ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File > file_;
  290. mutable int _cached_size_;
  291. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  292. friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
  293. friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
  294. friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
  295. void InitAsDefaultInstance();
  296. static CodeGeneratorResponse* default_instance_;
  297. };
  298. // ===================================================================
  299. // ===================================================================
  300. // CodeGeneratorRequest
  301. // repeated string file_to_generate = 1;
  302. inline int CodeGeneratorRequest::file_to_generate_size() const {
  303. return file_to_generate_.size();
  304. }
  305. inline void CodeGeneratorRequest::clear_file_to_generate() {
  306. file_to_generate_.Clear();
  307. }
  308. inline const ::std::string& CodeGeneratorRequest::file_to_generate(int index) const {
  309. return file_to_generate_.Get(index);
  310. }
  311. inline ::std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) {
  312. return file_to_generate_.Mutable(index);
  313. }
  314. inline void CodeGeneratorRequest::set_file_to_generate(int index, const ::std::string& value) {
  315. file_to_generate_.Mutable(index)->assign(value);
  316. }
  317. inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* value) {
  318. file_to_generate_.Mutable(index)->assign(value);
  319. }
  320. inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* value, size_t size) {
  321. file_to_generate_.Mutable(index)->assign(
  322. reinterpret_cast<const char*>(value), size);
  323. }
  324. inline ::std::string* CodeGeneratorRequest::add_file_to_generate() {
  325. return file_to_generate_.Add();
  326. }
  327. inline void CodeGeneratorRequest::add_file_to_generate(const ::std::string& value) {
  328. file_to_generate_.Add()->assign(value);
  329. }
  330. inline void CodeGeneratorRequest::add_file_to_generate(const char* value) {
  331. file_to_generate_.Add()->assign(value);
  332. }
  333. inline void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t size) {
  334. file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size);
  335. }
  336. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  337. CodeGeneratorRequest::file_to_generate() const {
  338. return file_to_generate_;
  339. }
  340. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  341. CodeGeneratorRequest::mutable_file_to_generate() {
  342. return &file_to_generate_;
  343. }
  344. // optional string parameter = 2;
  345. inline bool CodeGeneratorRequest::has_parameter() const {
  346. return (_has_bits_[0] & 0x00000002u) != 0;
  347. }
  348. inline void CodeGeneratorRequest::set_has_parameter() {
  349. _has_bits_[0] |= 0x00000002u;
  350. }
  351. inline void CodeGeneratorRequest::clear_has_parameter() {
  352. _has_bits_[0] &= ~0x00000002u;
  353. }
  354. inline void CodeGeneratorRequest::clear_parameter() {
  355. if (parameter_ != &::google::protobuf::internal::kEmptyString) {
  356. parameter_->clear();
  357. }
  358. clear_has_parameter();
  359. }
  360. inline const ::std::string& CodeGeneratorRequest::parameter() const {
  361. return *parameter_;
  362. }
  363. inline void CodeGeneratorRequest::set_parameter(const ::std::string& value) {
  364. set_has_parameter();
  365. if (parameter_ == &::google::protobuf::internal::kEmptyString) {
  366. parameter_ = new ::std::string;
  367. }
  368. parameter_->assign(value);
  369. }
  370. inline void CodeGeneratorRequest::set_parameter(const char* value) {
  371. set_has_parameter();
  372. if (parameter_ == &::google::protobuf::internal::kEmptyString) {
  373. parameter_ = new ::std::string;
  374. }
  375. parameter_->assign(value);
  376. }
  377. inline void CodeGeneratorRequest::set_parameter(const char* value, size_t size) {
  378. set_has_parameter();
  379. if (parameter_ == &::google::protobuf::internal::kEmptyString) {
  380. parameter_ = new ::std::string;
  381. }
  382. parameter_->assign(reinterpret_cast<const char*>(value), size);
  383. }
  384. inline ::std::string* CodeGeneratorRequest::mutable_parameter() {
  385. set_has_parameter();
  386. if (parameter_ == &::google::protobuf::internal::kEmptyString) {
  387. parameter_ = new ::std::string;
  388. }
  389. return parameter_;
  390. }
  391. inline ::std::string* CodeGeneratorRequest::release_parameter() {
  392. clear_has_parameter();
  393. if (parameter_ == &::google::protobuf::internal::kEmptyString) {
  394. return NULL;
  395. } else {
  396. ::std::string* temp = parameter_;
  397. parameter_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  398. return temp;
  399. }
  400. }
  401. // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
  402. inline int CodeGeneratorRequest::proto_file_size() const {
  403. return proto_file_.size();
  404. }
  405. inline void CodeGeneratorRequest::clear_proto_file() {
  406. proto_file_.Clear();
  407. }
  408. inline const ::google::protobuf::FileDescriptorProto& CodeGeneratorRequest::proto_file(int index) const {
  409. return proto_file_.Get(index);
  410. }
  411. inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::mutable_proto_file(int index) {
  412. return proto_file_.Mutable(index);
  413. }
  414. inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::add_proto_file() {
  415. return proto_file_.Add();
  416. }
  417. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
  418. CodeGeneratorRequest::proto_file() const {
  419. return proto_file_;
  420. }
  421. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
  422. CodeGeneratorRequest::mutable_proto_file() {
  423. return &proto_file_;
  424. }
  425. // -------------------------------------------------------------------
  426. // CodeGeneratorResponse_File
  427. // optional string name = 1;
  428. inline bool CodeGeneratorResponse_File::has_name() const {
  429. return (_has_bits_[0] & 0x00000001u) != 0;
  430. }
  431. inline void CodeGeneratorResponse_File::set_has_name() {
  432. _has_bits_[0] |= 0x00000001u;
  433. }
  434. inline void CodeGeneratorResponse_File::clear_has_name() {
  435. _has_bits_[0] &= ~0x00000001u;
  436. }
  437. inline void CodeGeneratorResponse_File::clear_name() {
  438. if (name_ != &::google::protobuf::internal::kEmptyString) {
  439. name_->clear();
  440. }
  441. clear_has_name();
  442. }
  443. inline const ::std::string& CodeGeneratorResponse_File::name() const {
  444. return *name_;
  445. }
  446. inline void CodeGeneratorResponse_File::set_name(const ::std::string& value) {
  447. set_has_name();
  448. if (name_ == &::google::protobuf::internal::kEmptyString) {
  449. name_ = new ::std::string;
  450. }
  451. name_->assign(value);
  452. }
  453. inline void CodeGeneratorResponse_File::set_name(const char* value) {
  454. set_has_name();
  455. if (name_ == &::google::protobuf::internal::kEmptyString) {
  456. name_ = new ::std::string;
  457. }
  458. name_->assign(value);
  459. }
  460. inline void CodeGeneratorResponse_File::set_name(const char* value, size_t size) {
  461. set_has_name();
  462. if (name_ == &::google::protobuf::internal::kEmptyString) {
  463. name_ = new ::std::string;
  464. }
  465. name_->assign(reinterpret_cast<const char*>(value), size);
  466. }
  467. inline ::std::string* CodeGeneratorResponse_File::mutable_name() {
  468. set_has_name();
  469. if (name_ == &::google::protobuf::internal::kEmptyString) {
  470. name_ = new ::std::string;
  471. }
  472. return name_;
  473. }
  474. inline ::std::string* CodeGeneratorResponse_File::release_name() {
  475. clear_has_name();
  476. if (name_ == &::google::protobuf::internal::kEmptyString) {
  477. return NULL;
  478. } else {
  479. ::std::string* temp = name_;
  480. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  481. return temp;
  482. }
  483. }
  484. // optional string insertion_point = 2;
  485. inline bool CodeGeneratorResponse_File::has_insertion_point() const {
  486. return (_has_bits_[0] & 0x00000002u) != 0;
  487. }
  488. inline void CodeGeneratorResponse_File::set_has_insertion_point() {
  489. _has_bits_[0] |= 0x00000002u;
  490. }
  491. inline void CodeGeneratorResponse_File::clear_has_insertion_point() {
  492. _has_bits_[0] &= ~0x00000002u;
  493. }
  494. inline void CodeGeneratorResponse_File::clear_insertion_point() {
  495. if (insertion_point_ != &::google::protobuf::internal::kEmptyString) {
  496. insertion_point_->clear();
  497. }
  498. clear_has_insertion_point();
  499. }
  500. inline const ::std::string& CodeGeneratorResponse_File::insertion_point() const {
  501. return *insertion_point_;
  502. }
  503. inline void CodeGeneratorResponse_File::set_insertion_point(const ::std::string& value) {
  504. set_has_insertion_point();
  505. if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
  506. insertion_point_ = new ::std::string;
  507. }
  508. insertion_point_->assign(value);
  509. }
  510. inline void CodeGeneratorResponse_File::set_insertion_point(const char* value) {
  511. set_has_insertion_point();
  512. if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
  513. insertion_point_ = new ::std::string;
  514. }
  515. insertion_point_->assign(value);
  516. }
  517. inline void CodeGeneratorResponse_File::set_insertion_point(const char* value, size_t size) {
  518. set_has_insertion_point();
  519. if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
  520. insertion_point_ = new ::std::string;
  521. }
  522. insertion_point_->assign(reinterpret_cast<const char*>(value), size);
  523. }
  524. inline ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() {
  525. set_has_insertion_point();
  526. if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
  527. insertion_point_ = new ::std::string;
  528. }
  529. return insertion_point_;
  530. }
  531. inline ::std::string* CodeGeneratorResponse_File::release_insertion_point() {
  532. clear_has_insertion_point();
  533. if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
  534. return NULL;
  535. } else {
  536. ::std::string* temp = insertion_point_;
  537. insertion_point_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  538. return temp;
  539. }
  540. }
  541. // optional string content = 15;
  542. inline bool CodeGeneratorResponse_File::has_content() const {
  543. return (_has_bits_[0] & 0x00000004u) != 0;
  544. }
  545. inline void CodeGeneratorResponse_File::set_has_content() {
  546. _has_bits_[0] |= 0x00000004u;
  547. }
  548. inline void CodeGeneratorResponse_File::clear_has_content() {
  549. _has_bits_[0] &= ~0x00000004u;
  550. }
  551. inline void CodeGeneratorResponse_File::clear_content() {
  552. if (content_ != &::google::protobuf::internal::kEmptyString) {
  553. content_->clear();
  554. }
  555. clear_has_content();
  556. }
  557. inline const ::std::string& CodeGeneratorResponse_File::content() const {
  558. return *content_;
  559. }
  560. inline void CodeGeneratorResponse_File::set_content(const ::std::string& value) {
  561. set_has_content();
  562. if (content_ == &::google::protobuf::internal::kEmptyString) {
  563. content_ = new ::std::string;
  564. }
  565. content_->assign(value);
  566. }
  567. inline void CodeGeneratorResponse_File::set_content(const char* value) {
  568. set_has_content();
  569. if (content_ == &::google::protobuf::internal::kEmptyString) {
  570. content_ = new ::std::string;
  571. }
  572. content_->assign(value);
  573. }
  574. inline void CodeGeneratorResponse_File::set_content(const char* value, size_t size) {
  575. set_has_content();
  576. if (content_ == &::google::protobuf::internal::kEmptyString) {
  577. content_ = new ::std::string;
  578. }
  579. content_->assign(reinterpret_cast<const char*>(value), size);
  580. }
  581. inline ::std::string* CodeGeneratorResponse_File::mutable_content() {
  582. set_has_content();
  583. if (content_ == &::google::protobuf::internal::kEmptyString) {
  584. content_ = new ::std::string;
  585. }
  586. return content_;
  587. }
  588. inline ::std::string* CodeGeneratorResponse_File::release_content() {
  589. clear_has_content();
  590. if (content_ == &::google::protobuf::internal::kEmptyString) {
  591. return NULL;
  592. } else {
  593. ::std::string* temp = content_;
  594. content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  595. return temp;
  596. }
  597. }
  598. // -------------------------------------------------------------------
  599. // CodeGeneratorResponse
  600. // optional string error = 1;
  601. inline bool CodeGeneratorResponse::has_error() const {
  602. return (_has_bits_[0] & 0x00000001u) != 0;
  603. }
  604. inline void CodeGeneratorResponse::set_has_error() {
  605. _has_bits_[0] |= 0x00000001u;
  606. }
  607. inline void CodeGeneratorResponse::clear_has_error() {
  608. _has_bits_[0] &= ~0x00000001u;
  609. }
  610. inline void CodeGeneratorResponse::clear_error() {
  611. if (error_ != &::google::protobuf::internal::kEmptyString) {
  612. error_->clear();
  613. }
  614. clear_has_error();
  615. }
  616. inline const ::std::string& CodeGeneratorResponse::error() const {
  617. return *error_;
  618. }
  619. inline void CodeGeneratorResponse::set_error(const ::std::string& value) {
  620. set_has_error();
  621. if (error_ == &::google::protobuf::internal::kEmptyString) {
  622. error_ = new ::std::string;
  623. }
  624. error_->assign(value);
  625. }
  626. inline void CodeGeneratorResponse::set_error(const char* value) {
  627. set_has_error();
  628. if (error_ == &::google::protobuf::internal::kEmptyString) {
  629. error_ = new ::std::string;
  630. }
  631. error_->assign(value);
  632. }
  633. inline void CodeGeneratorResponse::set_error(const char* value, size_t size) {
  634. set_has_error();
  635. if (error_ == &::google::protobuf::internal::kEmptyString) {
  636. error_ = new ::std::string;
  637. }
  638. error_->assign(reinterpret_cast<const char*>(value), size);
  639. }
  640. inline ::std::string* CodeGeneratorResponse::mutable_error() {
  641. set_has_error();
  642. if (error_ == &::google::protobuf::internal::kEmptyString) {
  643. error_ = new ::std::string;
  644. }
  645. return error_;
  646. }
  647. inline ::std::string* CodeGeneratorResponse::release_error() {
  648. clear_has_error();
  649. if (error_ == &::google::protobuf::internal::kEmptyString) {
  650. return NULL;
  651. } else {
  652. ::std::string* temp = error_;
  653. error_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  654. return temp;
  655. }
  656. }
  657. // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
  658. inline int CodeGeneratorResponse::file_size() const {
  659. return file_.size();
  660. }
  661. inline void CodeGeneratorResponse::clear_file() {
  662. file_.Clear();
  663. }
  664. inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::file(int index) const {
  665. return file_.Get(index);
  666. }
  667. inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::mutable_file(int index) {
  668. return file_.Mutable(index);
  669. }
  670. inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::add_file() {
  671. return file_.Add();
  672. }
  673. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >&
  674. CodeGeneratorResponse::file() const {
  675. return file_;
  676. }
  677. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >*
  678. CodeGeneratorResponse::mutable_file() {
  679. return &file_;
  680. }
  681. // @@protoc_insertion_point(namespace_scope)
  682. } // namespace compiler
  683. } // namespace protobuf
  684. } // namespace google
  685. #ifndef SWIG
  686. namespace google {
  687. namespace protobuf {
  688. } // namespace google
  689. } // namespace protobuf
  690. #endif // SWIG
  691. // @@protoc_insertion_point(global_scope)
  692. #endif // PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED