1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/compiler/plugin.proto
4 #ifndef PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED
5 #define PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 2005000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/generated_message_util.h>
23 #include <google/protobuf/message.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include <google/protobuf/unknown_field_set.h>
27 #include "google/protobuf/descriptor.pb.h"
28 // @@protoc_insertion_point(includes)
34 // Internal implementation detail -- do not call these.
35 void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
36 void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
37 void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
39 class CodeGeneratorRequest;
40 class CodeGeneratorResponse;
41 class CodeGeneratorResponse_File;
43 // ===================================================================
45 class LIBPROTOC_EXPORT CodeGeneratorRequest : public ::google::protobuf::Message {
47 CodeGeneratorRequest();
48 virtual ~CodeGeneratorRequest();
50 CodeGeneratorRequest(const CodeGeneratorRequest& from);
52 inline CodeGeneratorRequest& operator=(const CodeGeneratorRequest& from) {
57 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
58 return _unknown_fields_;
61 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
62 return &_unknown_fields_;
65 static const ::google::protobuf::Descriptor* descriptor();
66 static const CodeGeneratorRequest& default_instance();
68 void Swap(CodeGeneratorRequest* other);
70 // implements Message ----------------------------------------------
72 CodeGeneratorRequest* New() const;
73 void CopyFrom(const ::google::protobuf::Message& from);
74 void MergeFrom(const ::google::protobuf::Message& from);
75 void CopyFrom(const CodeGeneratorRequest& from);
76 void MergeFrom(const CodeGeneratorRequest& from);
78 bool IsInitialized() const;
81 bool MergePartialFromCodedStream(
82 ::google::protobuf::io::CodedInputStream* input);
83 void SerializeWithCachedSizes(
84 ::google::protobuf::io::CodedOutputStream* output) const;
85 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
86 int GetCachedSize() const { return _cached_size_; }
90 void SetCachedSize(int size) const;
93 ::google::protobuf::Metadata GetMetadata() const;
95 // nested types ----------------------------------------------------
97 // accessors -------------------------------------------------------
99 // repeated string file_to_generate = 1;
100 inline int file_to_generate_size() const;
101 inline void clear_file_to_generate();
102 static const int kFileToGenerateFieldNumber = 1;
103 inline const ::std::string& file_to_generate(int index) const;
104 inline ::std::string* mutable_file_to_generate(int index);
105 inline void set_file_to_generate(int index, const ::std::string& value);
106 inline void set_file_to_generate(int index, const char* value);
107 inline void set_file_to_generate(int index, const char* value, size_t size);
108 inline ::std::string* add_file_to_generate();
109 inline void add_file_to_generate(const ::std::string& value);
110 inline void add_file_to_generate(const char* value);
111 inline void add_file_to_generate(const char* value, size_t size);
112 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& file_to_generate() const;
113 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_file_to_generate();
115 // optional string parameter = 2;
116 inline bool has_parameter() const;
117 inline void clear_parameter();
118 static const int kParameterFieldNumber = 2;
119 inline const ::std::string& parameter() const;
120 inline void set_parameter(const ::std::string& value);
121 inline void set_parameter(const char* value);
122 inline void set_parameter(const char* value, size_t size);
123 inline ::std::string* mutable_parameter();
124 inline ::std::string* release_parameter();
125 inline void set_allocated_parameter(::std::string* parameter);
127 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
128 inline int proto_file_size() const;
129 inline void clear_proto_file();
130 static const int kProtoFileFieldNumber = 15;
131 inline const ::google::protobuf::FileDescriptorProto& proto_file(int index) const;
132 inline ::google::protobuf::FileDescriptorProto* mutable_proto_file(int index);
133 inline ::google::protobuf::FileDescriptorProto* add_proto_file();
134 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
136 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
137 mutable_proto_file();
139 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorRequest)
141 inline void set_has_parameter();
142 inline void clear_has_parameter();
144 ::google::protobuf::UnknownFieldSet _unknown_fields_;
146 ::google::protobuf::RepeatedPtrField< ::std::string> file_to_generate_;
147 ::std::string* parameter_;
148 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > proto_file_;
150 mutable int _cached_size_;
151 ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
153 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
154 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
155 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
157 void InitAsDefaultInstance();
158 static CodeGeneratorRequest* default_instance_;
160 // -------------------------------------------------------------------
162 class LIBPROTOC_EXPORT CodeGeneratorResponse_File : public ::google::protobuf::Message {
164 CodeGeneratorResponse_File();
165 virtual ~CodeGeneratorResponse_File();
167 CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from);
169 inline CodeGeneratorResponse_File& operator=(const CodeGeneratorResponse_File& from) {
174 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
175 return _unknown_fields_;
178 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
179 return &_unknown_fields_;
182 static const ::google::protobuf::Descriptor* descriptor();
183 static const CodeGeneratorResponse_File& default_instance();
185 void Swap(CodeGeneratorResponse_File* other);
187 // implements Message ----------------------------------------------
189 CodeGeneratorResponse_File* New() const;
190 void CopyFrom(const ::google::protobuf::Message& from);
191 void MergeFrom(const ::google::protobuf::Message& from);
192 void CopyFrom(const CodeGeneratorResponse_File& from);
193 void MergeFrom(const CodeGeneratorResponse_File& from);
195 bool IsInitialized() const;
197 int ByteSize() const;
198 bool MergePartialFromCodedStream(
199 ::google::protobuf::io::CodedInputStream* input);
200 void SerializeWithCachedSizes(
201 ::google::protobuf::io::CodedOutputStream* output) const;
202 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
203 int GetCachedSize() const { return _cached_size_; }
207 void SetCachedSize(int size) const;
210 ::google::protobuf::Metadata GetMetadata() const;
212 // nested types ----------------------------------------------------
214 // accessors -------------------------------------------------------
216 // optional string name = 1;
217 inline bool has_name() const;
218 inline void clear_name();
219 static const int kNameFieldNumber = 1;
220 inline const ::std::string& name() const;
221 inline void set_name(const ::std::string& value);
222 inline void set_name(const char* value);
223 inline void set_name(const char* value, size_t size);
224 inline ::std::string* mutable_name();
225 inline ::std::string* release_name();
226 inline void set_allocated_name(::std::string* name);
228 // optional string insertion_point = 2;
229 inline bool has_insertion_point() const;
230 inline void clear_insertion_point();
231 static const int kInsertionPointFieldNumber = 2;
232 inline const ::std::string& insertion_point() const;
233 inline void set_insertion_point(const ::std::string& value);
234 inline void set_insertion_point(const char* value);
235 inline void set_insertion_point(const char* value, size_t size);
236 inline ::std::string* mutable_insertion_point();
237 inline ::std::string* release_insertion_point();
238 inline void set_allocated_insertion_point(::std::string* insertion_point);
240 // optional string content = 15;
241 inline bool has_content() const;
242 inline void clear_content();
243 static const int kContentFieldNumber = 15;
244 inline const ::std::string& content() const;
245 inline void set_content(const ::std::string& value);
246 inline void set_content(const char* value);
247 inline void set_content(const char* value, size_t size);
248 inline ::std::string* mutable_content();
249 inline ::std::string* release_content();
250 inline void set_allocated_content(::std::string* content);
252 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse.File)
254 inline void set_has_name();
255 inline void clear_has_name();
256 inline void set_has_insertion_point();
257 inline void clear_has_insertion_point();
258 inline void set_has_content();
259 inline void clear_has_content();
261 ::google::protobuf::UnknownFieldSet _unknown_fields_;
263 ::std::string* name_;
264 ::std::string* insertion_point_;
265 ::std::string* content_;
267 mutable int _cached_size_;
268 ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
270 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
271 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
272 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
274 void InitAsDefaultInstance();
275 static CodeGeneratorResponse_File* default_instance_;
277 // -------------------------------------------------------------------
279 class LIBPROTOC_EXPORT CodeGeneratorResponse : public ::google::protobuf::Message {
281 CodeGeneratorResponse();
282 virtual ~CodeGeneratorResponse();
284 CodeGeneratorResponse(const CodeGeneratorResponse& from);
286 inline CodeGeneratorResponse& operator=(const CodeGeneratorResponse& from) {
291 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
292 return _unknown_fields_;
295 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
296 return &_unknown_fields_;
299 static const ::google::protobuf::Descriptor* descriptor();
300 static const CodeGeneratorResponse& default_instance();
302 void Swap(CodeGeneratorResponse* other);
304 // implements Message ----------------------------------------------
306 CodeGeneratorResponse* New() const;
307 void CopyFrom(const ::google::protobuf::Message& from);
308 void MergeFrom(const ::google::protobuf::Message& from);
309 void CopyFrom(const CodeGeneratorResponse& from);
310 void MergeFrom(const CodeGeneratorResponse& from);
312 bool IsInitialized() const;
314 int ByteSize() const;
315 bool MergePartialFromCodedStream(
316 ::google::protobuf::io::CodedInputStream* input);
317 void SerializeWithCachedSizes(
318 ::google::protobuf::io::CodedOutputStream* output) const;
319 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
320 int GetCachedSize() const { return _cached_size_; }
324 void SetCachedSize(int size) const;
327 ::google::protobuf::Metadata GetMetadata() const;
329 // nested types ----------------------------------------------------
331 typedef CodeGeneratorResponse_File File;
333 // accessors -------------------------------------------------------
335 // optional string error = 1;
336 inline bool has_error() const;
337 inline void clear_error();
338 static const int kErrorFieldNumber = 1;
339 inline const ::std::string& error() const;
340 inline void set_error(const ::std::string& value);
341 inline void set_error(const char* value);
342 inline void set_error(const char* value, size_t size);
343 inline ::std::string* mutable_error();
344 inline ::std::string* release_error();
345 inline void set_allocated_error(::std::string* error);
347 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
348 inline int file_size() const;
349 inline void clear_file();
350 static const int kFileFieldNumber = 15;
351 inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& file(int index) const;
352 inline ::google::protobuf::compiler::CodeGeneratorResponse_File* mutable_file(int index);
353 inline ::google::protobuf::compiler::CodeGeneratorResponse_File* add_file();
354 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >&
356 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >*
359 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse)
361 inline void set_has_error();
362 inline void clear_has_error();
364 ::google::protobuf::UnknownFieldSet _unknown_fields_;
366 ::std::string* error_;
367 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File > file_;
369 mutable int _cached_size_;
370 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
372 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
373 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
374 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
376 void InitAsDefaultInstance();
377 static CodeGeneratorResponse* default_instance_;
379 // ===================================================================
382 // ===================================================================
384 // CodeGeneratorRequest
386 // repeated string file_to_generate = 1;
387 inline int CodeGeneratorRequest::file_to_generate_size() const {
388 return file_to_generate_.size();
390 inline void CodeGeneratorRequest::clear_file_to_generate() {
391 file_to_generate_.Clear();
393 inline const ::std::string& CodeGeneratorRequest::file_to_generate(int index) const {
394 return file_to_generate_.Get(index);
396 inline ::std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) {
397 return file_to_generate_.Mutable(index);
399 inline void CodeGeneratorRequest::set_file_to_generate(int index, const ::std::string& value) {
400 file_to_generate_.Mutable(index)->assign(value);
402 inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* value) {
403 file_to_generate_.Mutable(index)->assign(value);
405 inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* value, size_t size) {
406 file_to_generate_.Mutable(index)->assign(
407 reinterpret_cast<const char*>(value), size);
409 inline ::std::string* CodeGeneratorRequest::add_file_to_generate() {
410 return file_to_generate_.Add();
412 inline void CodeGeneratorRequest::add_file_to_generate(const ::std::string& value) {
413 file_to_generate_.Add()->assign(value);
415 inline void CodeGeneratorRequest::add_file_to_generate(const char* value) {
416 file_to_generate_.Add()->assign(value);
418 inline void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t size) {
419 file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size);
421 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
422 CodeGeneratorRequest::file_to_generate() const {
423 return file_to_generate_;
425 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
426 CodeGeneratorRequest::mutable_file_to_generate() {
427 return &file_to_generate_;
430 // optional string parameter = 2;
431 inline bool CodeGeneratorRequest::has_parameter() const {
432 return (_has_bits_[0] & 0x00000002u) != 0;
434 inline void CodeGeneratorRequest::set_has_parameter() {
435 _has_bits_[0] |= 0x00000002u;
437 inline void CodeGeneratorRequest::clear_has_parameter() {
438 _has_bits_[0] &= ~0x00000002u;
440 inline void CodeGeneratorRequest::clear_parameter() {
441 if (parameter_ != &::google::protobuf::internal::kEmptyString) {
444 clear_has_parameter();
446 inline const ::std::string& CodeGeneratorRequest::parameter() const {
449 inline void CodeGeneratorRequest::set_parameter(const ::std::string& value) {
451 if (parameter_ == &::google::protobuf::internal::kEmptyString) {
452 parameter_ = new ::std::string;
454 parameter_->assign(value);
456 inline void CodeGeneratorRequest::set_parameter(const char* value) {
458 if (parameter_ == &::google::protobuf::internal::kEmptyString) {
459 parameter_ = new ::std::string;
461 parameter_->assign(value);
463 inline void CodeGeneratorRequest::set_parameter(const char* value, size_t size) {
465 if (parameter_ == &::google::protobuf::internal::kEmptyString) {
466 parameter_ = new ::std::string;
468 parameter_->assign(reinterpret_cast<const char*>(value), size);
470 inline ::std::string* CodeGeneratorRequest::mutable_parameter() {
472 if (parameter_ == &::google::protobuf::internal::kEmptyString) {
473 parameter_ = new ::std::string;
477 inline ::std::string* CodeGeneratorRequest::release_parameter() {
478 clear_has_parameter();
479 if (parameter_ == &::google::protobuf::internal::kEmptyString) {
482 ::std::string* temp = parameter_;
483 parameter_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
487 inline void CodeGeneratorRequest::set_allocated_parameter(::std::string* parameter) {
488 if (parameter_ != &::google::protobuf::internal::kEmptyString) {
493 parameter_ = parameter;
495 clear_has_parameter();
496 parameter_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
500 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
501 inline int CodeGeneratorRequest::proto_file_size() const {
502 return proto_file_.size();
504 inline void CodeGeneratorRequest::clear_proto_file() {
507 inline const ::google::protobuf::FileDescriptorProto& CodeGeneratorRequest::proto_file(int index) const {
508 return proto_file_.Get(index);
510 inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::mutable_proto_file(int index) {
511 return proto_file_.Mutable(index);
513 inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::add_proto_file() {
514 return proto_file_.Add();
516 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
517 CodeGeneratorRequest::proto_file() const {
520 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
521 CodeGeneratorRequest::mutable_proto_file() {
525 // -------------------------------------------------------------------
527 // CodeGeneratorResponse_File
529 // optional string name = 1;
530 inline bool CodeGeneratorResponse_File::has_name() const {
531 return (_has_bits_[0] & 0x00000001u) != 0;
533 inline void CodeGeneratorResponse_File::set_has_name() {
534 _has_bits_[0] |= 0x00000001u;
536 inline void CodeGeneratorResponse_File::clear_has_name() {
537 _has_bits_[0] &= ~0x00000001u;
539 inline void CodeGeneratorResponse_File::clear_name() {
540 if (name_ != &::google::protobuf::internal::kEmptyString) {
545 inline const ::std::string& CodeGeneratorResponse_File::name() const {
548 inline void CodeGeneratorResponse_File::set_name(const ::std::string& value) {
550 if (name_ == &::google::protobuf::internal::kEmptyString) {
551 name_ = new ::std::string;
553 name_->assign(value);
555 inline void CodeGeneratorResponse_File::set_name(const char* value) {
557 if (name_ == &::google::protobuf::internal::kEmptyString) {
558 name_ = new ::std::string;
560 name_->assign(value);
562 inline void CodeGeneratorResponse_File::set_name(const char* value, size_t size) {
564 if (name_ == &::google::protobuf::internal::kEmptyString) {
565 name_ = new ::std::string;
567 name_->assign(reinterpret_cast<const char*>(value), size);
569 inline ::std::string* CodeGeneratorResponse_File::mutable_name() {
571 if (name_ == &::google::protobuf::internal::kEmptyString) {
572 name_ = new ::std::string;
576 inline ::std::string* CodeGeneratorResponse_File::release_name() {
578 if (name_ == &::google::protobuf::internal::kEmptyString) {
581 ::std::string* temp = name_;
582 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
586 inline void CodeGeneratorResponse_File::set_allocated_name(::std::string* name) {
587 if (name_ != &::google::protobuf::internal::kEmptyString) {
595 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
599 // optional string insertion_point = 2;
600 inline bool CodeGeneratorResponse_File::has_insertion_point() const {
601 return (_has_bits_[0] & 0x00000002u) != 0;
603 inline void CodeGeneratorResponse_File::set_has_insertion_point() {
604 _has_bits_[0] |= 0x00000002u;
606 inline void CodeGeneratorResponse_File::clear_has_insertion_point() {
607 _has_bits_[0] &= ~0x00000002u;
609 inline void CodeGeneratorResponse_File::clear_insertion_point() {
610 if (insertion_point_ != &::google::protobuf::internal::kEmptyString) {
611 insertion_point_->clear();
613 clear_has_insertion_point();
615 inline const ::std::string& CodeGeneratorResponse_File::insertion_point() const {
616 return *insertion_point_;
618 inline void CodeGeneratorResponse_File::set_insertion_point(const ::std::string& value) {
619 set_has_insertion_point();
620 if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
621 insertion_point_ = new ::std::string;
623 insertion_point_->assign(value);
625 inline void CodeGeneratorResponse_File::set_insertion_point(const char* value) {
626 set_has_insertion_point();
627 if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
628 insertion_point_ = new ::std::string;
630 insertion_point_->assign(value);
632 inline void CodeGeneratorResponse_File::set_insertion_point(const char* value, size_t size) {
633 set_has_insertion_point();
634 if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
635 insertion_point_ = new ::std::string;
637 insertion_point_->assign(reinterpret_cast<const char*>(value), size);
639 inline ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() {
640 set_has_insertion_point();
641 if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
642 insertion_point_ = new ::std::string;
644 return insertion_point_;
646 inline ::std::string* CodeGeneratorResponse_File::release_insertion_point() {
647 clear_has_insertion_point();
648 if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
651 ::std::string* temp = insertion_point_;
652 insertion_point_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
656 inline void CodeGeneratorResponse_File::set_allocated_insertion_point(::std::string* insertion_point) {
657 if (insertion_point_ != &::google::protobuf::internal::kEmptyString) {
658 delete insertion_point_;
660 if (insertion_point) {
661 set_has_insertion_point();
662 insertion_point_ = insertion_point;
664 clear_has_insertion_point();
665 insertion_point_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
669 // optional string content = 15;
670 inline bool CodeGeneratorResponse_File::has_content() const {
671 return (_has_bits_[0] & 0x00000004u) != 0;
673 inline void CodeGeneratorResponse_File::set_has_content() {
674 _has_bits_[0] |= 0x00000004u;
676 inline void CodeGeneratorResponse_File::clear_has_content() {
677 _has_bits_[0] &= ~0x00000004u;
679 inline void CodeGeneratorResponse_File::clear_content() {
680 if (content_ != &::google::protobuf::internal::kEmptyString) {
685 inline const ::std::string& CodeGeneratorResponse_File::content() const {
688 inline void CodeGeneratorResponse_File::set_content(const ::std::string& value) {
690 if (content_ == &::google::protobuf::internal::kEmptyString) {
691 content_ = new ::std::string;
693 content_->assign(value);
695 inline void CodeGeneratorResponse_File::set_content(const char* value) {
697 if (content_ == &::google::protobuf::internal::kEmptyString) {
698 content_ = new ::std::string;
700 content_->assign(value);
702 inline void CodeGeneratorResponse_File::set_content(const char* value, size_t size) {
704 if (content_ == &::google::protobuf::internal::kEmptyString) {
705 content_ = new ::std::string;
707 content_->assign(reinterpret_cast<const char*>(value), size);
709 inline ::std::string* CodeGeneratorResponse_File::mutable_content() {
711 if (content_ == &::google::protobuf::internal::kEmptyString) {
712 content_ = new ::std::string;
716 inline ::std::string* CodeGeneratorResponse_File::release_content() {
718 if (content_ == &::google::protobuf::internal::kEmptyString) {
721 ::std::string* temp = content_;
722 content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
726 inline void CodeGeneratorResponse_File::set_allocated_content(::std::string* content) {
727 if (content_ != &::google::protobuf::internal::kEmptyString) {
735 content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
739 // -------------------------------------------------------------------
741 // CodeGeneratorResponse
743 // optional string error = 1;
744 inline bool CodeGeneratorResponse::has_error() const {
745 return (_has_bits_[0] & 0x00000001u) != 0;
747 inline void CodeGeneratorResponse::set_has_error() {
748 _has_bits_[0] |= 0x00000001u;
750 inline void CodeGeneratorResponse::clear_has_error() {
751 _has_bits_[0] &= ~0x00000001u;
753 inline void CodeGeneratorResponse::clear_error() {
754 if (error_ != &::google::protobuf::internal::kEmptyString) {
759 inline const ::std::string& CodeGeneratorResponse::error() const {
762 inline void CodeGeneratorResponse::set_error(const ::std::string& value) {
764 if (error_ == &::google::protobuf::internal::kEmptyString) {
765 error_ = new ::std::string;
767 error_->assign(value);
769 inline void CodeGeneratorResponse::set_error(const char* value) {
771 if (error_ == &::google::protobuf::internal::kEmptyString) {
772 error_ = new ::std::string;
774 error_->assign(value);
776 inline void CodeGeneratorResponse::set_error(const char* value, size_t size) {
778 if (error_ == &::google::protobuf::internal::kEmptyString) {
779 error_ = new ::std::string;
781 error_->assign(reinterpret_cast<const char*>(value), size);
783 inline ::std::string* CodeGeneratorResponse::mutable_error() {
785 if (error_ == &::google::protobuf::internal::kEmptyString) {
786 error_ = new ::std::string;
790 inline ::std::string* CodeGeneratorResponse::release_error() {
792 if (error_ == &::google::protobuf::internal::kEmptyString) {
795 ::std::string* temp = error_;
796 error_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
800 inline void CodeGeneratorResponse::set_allocated_error(::std::string* error) {
801 if (error_ != &::google::protobuf::internal::kEmptyString) {
809 error_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
813 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
814 inline int CodeGeneratorResponse::file_size() const {
817 inline void CodeGeneratorResponse::clear_file() {
820 inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::file(int index) const {
821 return file_.Get(index);
823 inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::mutable_file(int index) {
824 return file_.Mutable(index);
826 inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::add_file() {
829 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >&
830 CodeGeneratorResponse::file() const {
833 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >*
834 CodeGeneratorResponse::mutable_file() {
839 // @@protoc_insertion_point(namespace_scope)
841 } // namespace compiler
842 } // namespace protobuf
843 } // namespace google
850 } // namespace google
851 } // namespace protobuf
854 // @@protoc_insertion_point(global_scope)
856 #endif // PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED