136
137
// @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorRequest)
139
inline void set_has_parameter();
140
inline void clear_has_parameter();
138
142
::google::protobuf::UnknownFieldSet _unknown_fields_;
139
mutable int _cached_size_;
141
144
::google::protobuf::RepeatedPtrField< ::std::string> file_to_generate_;
142
145
::std::string* parameter_;
143
static const ::std::string _default_parameter_;
144
146
::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > proto_file_;
148
mutable int _cached_size_;
149
::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
145
151
friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
146
152
friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
147
153
friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
149
::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
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;
155
inline void _set_bit(int index) {
156
_has_bits_[index / 32] |= (1u << (index % 32));
158
inline void _clear_bit(int index) {
159
_has_bits_[index / 32] &= ~(1u << (index % 32));
162
155
void InitAsDefaultInstance();
163
156
static CodeGeneratorRequest* default_instance_;
247
242
inline void set_content(const char* value);
248
243
inline void set_content(const char* value, size_t size);
249
244
inline ::std::string* mutable_content();
245
inline ::std::string* release_content();
251
247
// @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse.File)
249
inline void set_has_name();
250
inline void clear_has_name();
251
inline void set_has_insertion_point();
252
inline void clear_has_insertion_point();
253
inline void set_has_content();
254
inline void clear_has_content();
253
256
::google::protobuf::UnknownFieldSet _unknown_fields_;
254
mutable int _cached_size_;
256
258
::std::string* name_;
257
static const ::std::string _default_name_;
258
259
::std::string* insertion_point_;
259
static const ::std::string _default_insertion_point_;
260
260
::std::string* content_;
261
static const ::std::string _default_content_;
262
mutable int _cached_size_;
263
::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
262
265
friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
263
266
friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
264
267
friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
266
::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
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;
272
inline void _set_bit(int index) {
273
_has_bits_[index / 32] |= (1u << (index % 32));
275
inline void _clear_bit(int index) {
276
_has_bits_[index / 32] &= ~(1u << (index % 32));
279
269
void InitAsDefaultInstance();
280
270
static CodeGeneratorResponse_File* default_instance_;
362
353
// @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse)
355
inline void set_has_error();
356
inline void clear_has_error();
364
358
::google::protobuf::UnknownFieldSet _unknown_fields_;
365
mutable int _cached_size_;
367
360
::std::string* error_;
368
static const ::std::string _default_error_;
369
361
::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();
363
mutable int _cached_size_;
374
364
::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
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;
380
inline void _set_bit(int index) {
381
_has_bits_[index / 32] |= (1u << (index % 32));
383
inline void _clear_bit(int index) {
384
_has_bits_[index / 32] &= ~(1u << (index % 32));
366
friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
367
friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
368
friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
387
370
void InitAsDefaultInstance();
388
371
static CodeGeneratorResponse* default_instance_;
441
424
// optional string parameter = 2;
442
425
inline bool CodeGeneratorRequest::has_parameter() const {
426
return (_has_bits_[0] & 0x00000002u) != 0;
428
inline void CodeGeneratorRequest::set_has_parameter() {
429
_has_bits_[0] |= 0x00000002u;
431
inline void CodeGeneratorRequest::clear_has_parameter() {
432
_has_bits_[0] &= ~0x00000002u;
445
434
inline void CodeGeneratorRequest::clear_parameter() {
446
if (parameter_ != &_default_parameter_) {
435
if (parameter_ != &::google::protobuf::internal::kEmptyString) {
447
436
parameter_->clear();
438
clear_has_parameter();
451
440
inline const ::std::string& CodeGeneratorRequest::parameter() const {
452
441
return *parameter_;
454
443
inline void CodeGeneratorRequest::set_parameter(const ::std::string& value) {
456
if (parameter_ == &_default_parameter_) {
445
if (parameter_ == &::google::protobuf::internal::kEmptyString) {
457
446
parameter_ = new ::std::string;
459
448
parameter_->assign(value);
461
450
inline void CodeGeneratorRequest::set_parameter(const char* value) {
463
if (parameter_ == &_default_parameter_) {
452
if (parameter_ == &::google::protobuf::internal::kEmptyString) {
464
453
parameter_ = new ::std::string;
466
455
parameter_->assign(value);
468
457
inline void CodeGeneratorRequest::set_parameter(const char* value, size_t size) {
470
if (parameter_ == &_default_parameter_) {
459
if (parameter_ == &::google::protobuf::internal::kEmptyString) {
471
460
parameter_ = new ::std::string;
473
462
parameter_->assign(reinterpret_cast<const char*>(value), size);
475
464
inline ::std::string* CodeGeneratorRequest::mutable_parameter() {
477
if (parameter_ == &_default_parameter_) {
466
if (parameter_ == &::google::protobuf::internal::kEmptyString) {
478
467
parameter_ = new ::std::string;
480
469
return parameter_;
471
inline ::std::string* CodeGeneratorRequest::release_parameter() {
472
clear_has_parameter();
473
if (parameter_ == &::google::protobuf::internal::kEmptyString) {
476
::std::string* temp = parameter_;
477
parameter_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
483
482
// repeated .google.protobuf.FileDescriptorProto proto_file = 15;
484
483
inline int CodeGeneratorRequest::proto_file_size() const {
512
511
// optional string name = 1;
513
512
inline bool CodeGeneratorResponse_File::has_name() const {
513
return (_has_bits_[0] & 0x00000001u) != 0;
515
inline void CodeGeneratorResponse_File::set_has_name() {
516
_has_bits_[0] |= 0x00000001u;
518
inline void CodeGeneratorResponse_File::clear_has_name() {
519
_has_bits_[0] &= ~0x00000001u;
516
521
inline void CodeGeneratorResponse_File::clear_name() {
517
if (name_ != &_default_name_) {
522
if (name_ != &::google::protobuf::internal::kEmptyString) {
522
527
inline const ::std::string& CodeGeneratorResponse_File::name() const {
525
530
inline void CodeGeneratorResponse_File::set_name(const ::std::string& value) {
527
if (name_ == &_default_name_) {
532
if (name_ == &::google::protobuf::internal::kEmptyString) {
528
533
name_ = new ::std::string;
530
535
name_->assign(value);
532
537
inline void CodeGeneratorResponse_File::set_name(const char* value) {
534
if (name_ == &_default_name_) {
539
if (name_ == &::google::protobuf::internal::kEmptyString) {
535
540
name_ = new ::std::string;
537
542
name_->assign(value);
539
544
inline void CodeGeneratorResponse_File::set_name(const char* value, size_t size) {
541
if (name_ == &_default_name_) {
546
if (name_ == &::google::protobuf::internal::kEmptyString) {
542
547
name_ = new ::std::string;
544
549
name_->assign(reinterpret_cast<const char*>(value), size);
546
551
inline ::std::string* CodeGeneratorResponse_File::mutable_name() {
548
if (name_ == &_default_name_) {
553
if (name_ == &::google::protobuf::internal::kEmptyString) {
549
554
name_ = new ::std::string;
558
inline ::std::string* CodeGeneratorResponse_File::release_name() {
560
if (name_ == &::google::protobuf::internal::kEmptyString) {
563
::std::string* temp = name_;
564
name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
554
569
// optional string insertion_point = 2;
555
570
inline bool CodeGeneratorResponse_File::has_insertion_point() const {
571
return (_has_bits_[0] & 0x00000002u) != 0;
573
inline void CodeGeneratorResponse_File::set_has_insertion_point() {
574
_has_bits_[0] |= 0x00000002u;
576
inline void CodeGeneratorResponse_File::clear_has_insertion_point() {
577
_has_bits_[0] &= ~0x00000002u;
558
579
inline void CodeGeneratorResponse_File::clear_insertion_point() {
559
if (insertion_point_ != &_default_insertion_point_) {
580
if (insertion_point_ != &::google::protobuf::internal::kEmptyString) {
560
581
insertion_point_->clear();
583
clear_has_insertion_point();
564
585
inline const ::std::string& CodeGeneratorResponse_File::insertion_point() const {
565
586
return *insertion_point_;
567
588
inline void CodeGeneratorResponse_File::set_insertion_point(const ::std::string& value) {
569
if (insertion_point_ == &_default_insertion_point_) {
589
set_has_insertion_point();
590
if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
570
591
insertion_point_ = new ::std::string;
572
593
insertion_point_->assign(value);
574
595
inline void CodeGeneratorResponse_File::set_insertion_point(const char* value) {
576
if (insertion_point_ == &_default_insertion_point_) {
596
set_has_insertion_point();
597
if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
577
598
insertion_point_ = new ::std::string;
579
600
insertion_point_->assign(value);
581
602
inline void CodeGeneratorResponse_File::set_insertion_point(const char* value, size_t size) {
583
if (insertion_point_ == &_default_insertion_point_) {
603
set_has_insertion_point();
604
if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
584
605
insertion_point_ = new ::std::string;
586
607
insertion_point_->assign(reinterpret_cast<const char*>(value), size);
588
609
inline ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() {
590
if (insertion_point_ == &_default_insertion_point_) {
610
set_has_insertion_point();
611
if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
591
612
insertion_point_ = new ::std::string;
593
614
return insertion_point_;
616
inline ::std::string* CodeGeneratorResponse_File::release_insertion_point() {
617
clear_has_insertion_point();
618
if (insertion_point_ == &::google::protobuf::internal::kEmptyString) {
621
::std::string* temp = insertion_point_;
622
insertion_point_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
596
627
// optional string content = 15;
597
628
inline bool CodeGeneratorResponse_File::has_content() const {
629
return (_has_bits_[0] & 0x00000004u) != 0;
631
inline void CodeGeneratorResponse_File::set_has_content() {
632
_has_bits_[0] |= 0x00000004u;
634
inline void CodeGeneratorResponse_File::clear_has_content() {
635
_has_bits_[0] &= ~0x00000004u;
600
637
inline void CodeGeneratorResponse_File::clear_content() {
601
if (content_ != &_default_content_) {
638
if (content_ != &::google::protobuf::internal::kEmptyString) {
602
639
content_->clear();
606
643
inline const ::std::string& CodeGeneratorResponse_File::content() const {
607
644
return *content_;
609
646
inline void CodeGeneratorResponse_File::set_content(const ::std::string& value) {
611
if (content_ == &_default_content_) {
648
if (content_ == &::google::protobuf::internal::kEmptyString) {
612
649
content_ = new ::std::string;
614
651
content_->assign(value);
616
653
inline void CodeGeneratorResponse_File::set_content(const char* value) {
618
if (content_ == &_default_content_) {
655
if (content_ == &::google::protobuf::internal::kEmptyString) {
619
656
content_ = new ::std::string;
621
658
content_->assign(value);
623
660
inline void CodeGeneratorResponse_File::set_content(const char* value, size_t size) {
625
if (content_ == &_default_content_) {
662
if (content_ == &::google::protobuf::internal::kEmptyString) {
626
663
content_ = new ::std::string;
628
665
content_->assign(reinterpret_cast<const char*>(value), size);
630
667
inline ::std::string* CodeGeneratorResponse_File::mutable_content() {
632
if (content_ == &_default_content_) {
669
if (content_ == &::google::protobuf::internal::kEmptyString) {
633
670
content_ = new ::std::string;
674
inline ::std::string* CodeGeneratorResponse_File::release_content() {
676
if (content_ == &::google::protobuf::internal::kEmptyString) {
679
::std::string* temp = content_;
680
content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
638
685
// -------------------------------------------------------------------
642
689
// optional string error = 1;
643
690
inline bool CodeGeneratorResponse::has_error() const {
691
return (_has_bits_[0] & 0x00000001u) != 0;
693
inline void CodeGeneratorResponse::set_has_error() {
694
_has_bits_[0] |= 0x00000001u;
696
inline void CodeGeneratorResponse::clear_has_error() {
697
_has_bits_[0] &= ~0x00000001u;
646
699
inline void CodeGeneratorResponse::clear_error() {
647
if (error_ != &_default_error_) {
700
if (error_ != &::google::protobuf::internal::kEmptyString) {
652
705
inline const ::std::string& CodeGeneratorResponse::error() const {
655
708
inline void CodeGeneratorResponse::set_error(const ::std::string& value) {
657
if (error_ == &_default_error_) {
710
if (error_ == &::google::protobuf::internal::kEmptyString) {
658
711
error_ = new ::std::string;
660
713
error_->assign(value);
662
715
inline void CodeGeneratorResponse::set_error(const char* value) {
664
if (error_ == &_default_error_) {
717
if (error_ == &::google::protobuf::internal::kEmptyString) {
665
718
error_ = new ::std::string;
667
720
error_->assign(value);
669
722
inline void CodeGeneratorResponse::set_error(const char* value, size_t size) {
671
if (error_ == &_default_error_) {
724
if (error_ == &::google::protobuf::internal::kEmptyString) {
672
725
error_ = new ::std::string;
674
727
error_->assign(reinterpret_cast<const char*>(value), size);
676
729
inline ::std::string* CodeGeneratorResponse::mutable_error() {
678
if (error_ == &_default_error_) {
731
if (error_ == &::google::protobuf::internal::kEmptyString) {
679
732
error_ = new ::std::string;
736
inline ::std::string* CodeGeneratorResponse::release_error() {
738
if (error_ == &::google::protobuf::internal::kEmptyString) {
741
::std::string* temp = error_;
742
error_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
684
747
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
685
748
inline int CodeGeneratorResponse::file_size() const {