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