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 < 2006000 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 2006001 < 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/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) 29 30namespace google { 31namespace protobuf { 32namespace compiler { 33 34// Internal implementation detail -- do not call these. 35void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 36void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 37void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 38 39class CodeGeneratorRequest; 40class CodeGeneratorResponse; 41class CodeGeneratorResponse_File; 42 43// =================================================================== 44 45class LIBPROTOC_EXPORT CodeGeneratorRequest : public ::google::protobuf::Message { 46 public: 47 CodeGeneratorRequest(); 48 virtual ~CodeGeneratorRequest(); 49 50 CodeGeneratorRequest(const CodeGeneratorRequest& from); 51 52 inline CodeGeneratorRequest& operator=(const CodeGeneratorRequest& from) { 53 CopyFrom(from); 54 return *this; 55 } 56 57 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { 58 return _unknown_fields_; 59 } 60 61 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { 62 return &_unknown_fields_; 63 } 64 65 static const ::google::protobuf::Descriptor* descriptor(); 66 static const CodeGeneratorRequest& default_instance(); 67 68 void Swap(CodeGeneratorRequest* other); 69 70 // implements Message ---------------------------------------------- 71 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); 77 void Clear(); 78 bool IsInitialized() const; 79 80 int ByteSize() 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_; } 87 private: 88 void SharedCtor(); 89 void SharedDtor(); 90 void SetCachedSize(int size) const; 91 public: 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 inline ::std::string* release_parameter(); 124 inline void set_allocated_parameter(::std::string* parameter); 125 126 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; 127 inline int proto_file_size() const; 128 inline void clear_proto_file(); 129 static const int kProtoFileFieldNumber = 15; 130 inline const ::google::protobuf::FileDescriptorProto& proto_file(int index) const; 131 inline ::google::protobuf::FileDescriptorProto* mutable_proto_file(int index); 132 inline ::google::protobuf::FileDescriptorProto* add_proto_file(); 133 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >& 134 proto_file() const; 135 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >* 136 mutable_proto_file(); 137 138 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorRequest) 139 private: 140 inline void set_has_parameter(); 141 inline void clear_has_parameter(); 142 143 ::google::protobuf::UnknownFieldSet _unknown_fields_; 144 145 ::google::protobuf::uint32 _has_bits_[1]; 146 mutable int _cached_size_; 147 ::google::protobuf::RepeatedPtrField< ::std::string> file_to_generate_; 148 ::std::string* parameter_; 149 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > proto_file_; 150 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 151 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 152 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 153 154 void InitAsDefaultInstance(); 155 static CodeGeneratorRequest* default_instance_; 156}; 157// ------------------------------------------------------------------- 158 159class LIBPROTOC_EXPORT CodeGeneratorResponse_File : public ::google::protobuf::Message { 160 public: 161 CodeGeneratorResponse_File(); 162 virtual ~CodeGeneratorResponse_File(); 163 164 CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from); 165 166 inline CodeGeneratorResponse_File& operator=(const CodeGeneratorResponse_File& from) { 167 CopyFrom(from); 168 return *this; 169 } 170 171 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { 172 return _unknown_fields_; 173 } 174 175 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { 176 return &_unknown_fields_; 177 } 178 179 static const ::google::protobuf::Descriptor* descriptor(); 180 static const CodeGeneratorResponse_File& default_instance(); 181 182 void Swap(CodeGeneratorResponse_File* other); 183 184 // implements Message ---------------------------------------------- 185 186 CodeGeneratorResponse_File* New() const; 187 void CopyFrom(const ::google::protobuf::Message& from); 188 void MergeFrom(const ::google::protobuf::Message& from); 189 void CopyFrom(const CodeGeneratorResponse_File& from); 190 void MergeFrom(const CodeGeneratorResponse_File& from); 191 void Clear(); 192 bool IsInitialized() const; 193 194 int ByteSize() const; 195 bool MergePartialFromCodedStream( 196 ::google::protobuf::io::CodedInputStream* input); 197 void SerializeWithCachedSizes( 198 ::google::protobuf::io::CodedOutputStream* output) const; 199 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; 200 int GetCachedSize() const { return _cached_size_; } 201 private: 202 void SharedCtor(); 203 void SharedDtor(); 204 void SetCachedSize(int size) const; 205 public: 206 ::google::protobuf::Metadata GetMetadata() const; 207 208 // nested types ---------------------------------------------------- 209 210 // accessors ------------------------------------------------------- 211 212 // optional string name = 1; 213 inline bool has_name() const; 214 inline void clear_name(); 215 static const int kNameFieldNumber = 1; 216 inline const ::std::string& name() const; 217 inline void set_name(const ::std::string& value); 218 inline void set_name(const char* value); 219 inline void set_name(const char* value, size_t size); 220 inline ::std::string* mutable_name(); 221 inline ::std::string* release_name(); 222 inline void set_allocated_name(::std::string* name); 223 224 // optional string insertion_point = 2; 225 inline bool has_insertion_point() const; 226 inline void clear_insertion_point(); 227 static const int kInsertionPointFieldNumber = 2; 228 inline const ::std::string& insertion_point() const; 229 inline void set_insertion_point(const ::std::string& value); 230 inline void set_insertion_point(const char* value); 231 inline void set_insertion_point(const char* value, size_t size); 232 inline ::std::string* mutable_insertion_point(); 233 inline ::std::string* release_insertion_point(); 234 inline void set_allocated_insertion_point(::std::string* insertion_point); 235 236 // optional string content = 15; 237 inline bool has_content() const; 238 inline void clear_content(); 239 static const int kContentFieldNumber = 15; 240 inline const ::std::string& content() const; 241 inline void set_content(const ::std::string& value); 242 inline void set_content(const char* value); 243 inline void set_content(const char* value, size_t size); 244 inline ::std::string* mutable_content(); 245 inline ::std::string* release_content(); 246 inline void set_allocated_content(::std::string* content); 247 248 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse.File) 249 private: 250 inline void set_has_name(); 251 inline void clear_has_name(); 252 inline void set_has_insertion_point(); 253 inline void clear_has_insertion_point(); 254 inline void set_has_content(); 255 inline void clear_has_content(); 256 257 ::google::protobuf::UnknownFieldSet _unknown_fields_; 258 259 ::google::protobuf::uint32 _has_bits_[1]; 260 mutable int _cached_size_; 261 ::std::string* name_; 262 ::std::string* insertion_point_; 263 ::std::string* content_; 264 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 265 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 266 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 267 268 void InitAsDefaultInstance(); 269 static CodeGeneratorResponse_File* default_instance_; 270}; 271// ------------------------------------------------------------------- 272 273class LIBPROTOC_EXPORT CodeGeneratorResponse : public ::google::protobuf::Message { 274 public: 275 CodeGeneratorResponse(); 276 virtual ~CodeGeneratorResponse(); 277 278 CodeGeneratorResponse(const CodeGeneratorResponse& from); 279 280 inline CodeGeneratorResponse& operator=(const CodeGeneratorResponse& from) { 281 CopyFrom(from); 282 return *this; 283 } 284 285 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { 286 return _unknown_fields_; 287 } 288 289 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { 290 return &_unknown_fields_; 291 } 292 293 static const ::google::protobuf::Descriptor* descriptor(); 294 static const CodeGeneratorResponse& default_instance(); 295 296 void Swap(CodeGeneratorResponse* other); 297 298 // implements Message ---------------------------------------------- 299 300 CodeGeneratorResponse* New() const; 301 void CopyFrom(const ::google::protobuf::Message& from); 302 void MergeFrom(const ::google::protobuf::Message& from); 303 void CopyFrom(const CodeGeneratorResponse& from); 304 void MergeFrom(const CodeGeneratorResponse& from); 305 void Clear(); 306 bool IsInitialized() const; 307 308 int ByteSize() const; 309 bool MergePartialFromCodedStream( 310 ::google::protobuf::io::CodedInputStream* input); 311 void SerializeWithCachedSizes( 312 ::google::protobuf::io::CodedOutputStream* output) const; 313 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; 314 int GetCachedSize() const { return _cached_size_; } 315 private: 316 void SharedCtor(); 317 void SharedDtor(); 318 void SetCachedSize(int size) const; 319 public: 320 ::google::protobuf::Metadata GetMetadata() const; 321 322 // nested types ---------------------------------------------------- 323 324 typedef CodeGeneratorResponse_File File; 325 326 // accessors ------------------------------------------------------- 327 328 // optional string error = 1; 329 inline bool has_error() const; 330 inline void clear_error(); 331 static const int kErrorFieldNumber = 1; 332 inline const ::std::string& error() const; 333 inline void set_error(const ::std::string& value); 334 inline void set_error(const char* value); 335 inline void set_error(const char* value, size_t size); 336 inline ::std::string* mutable_error(); 337 inline ::std::string* release_error(); 338 inline void set_allocated_error(::std::string* error); 339 340 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; 341 inline int file_size() const; 342 inline void clear_file(); 343 static const int kFileFieldNumber = 15; 344 inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& file(int index) const; 345 inline ::google::protobuf::compiler::CodeGeneratorResponse_File* mutable_file(int index); 346 inline ::google::protobuf::compiler::CodeGeneratorResponse_File* add_file(); 347 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >& 348 file() const; 349 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >* 350 mutable_file(); 351 352 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse) 353 private: 354 inline void set_has_error(); 355 inline void clear_has_error(); 356 357 ::google::protobuf::UnknownFieldSet _unknown_fields_; 358 359 ::google::protobuf::uint32 _has_bits_[1]; 360 mutable int _cached_size_; 361 ::std::string* error_; 362 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File > file_; 363 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 364 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 365 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 366 367 void InitAsDefaultInstance(); 368 static CodeGeneratorResponse* default_instance_; 369}; 370// =================================================================== 371 372 373// =================================================================== 374 375// CodeGeneratorRequest 376 377// repeated string file_to_generate = 1; 378inline int CodeGeneratorRequest::file_to_generate_size() const { 379 return file_to_generate_.size(); 380} 381inline void CodeGeneratorRequest::clear_file_to_generate() { 382 file_to_generate_.Clear(); 383} 384inline const ::std::string& CodeGeneratorRequest::file_to_generate(int index) const { 385 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) 386 return file_to_generate_.Get(index); 387} 388inline ::std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) { 389 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) 390 return file_to_generate_.Mutable(index); 391} 392inline void CodeGeneratorRequest::set_file_to_generate(int index, const ::std::string& value) { 393 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) 394 file_to_generate_.Mutable(index)->assign(value); 395} 396inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* value) { 397 file_to_generate_.Mutable(index)->assign(value); 398 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) 399} 400inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* value, size_t size) { 401 file_to_generate_.Mutable(index)->assign( 402 reinterpret_cast<const char*>(value), size); 403 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) 404} 405inline ::std::string* CodeGeneratorRequest::add_file_to_generate() { 406 return file_to_generate_.Add(); 407} 408inline void CodeGeneratorRequest::add_file_to_generate(const ::std::string& value) { 409 file_to_generate_.Add()->assign(value); 410 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) 411} 412inline void CodeGeneratorRequest::add_file_to_generate(const char* value) { 413 file_to_generate_.Add()->assign(value); 414 // @@protoc_insertion_point(field_add_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) 415} 416inline void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t size) { 417 file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size); 418 // @@protoc_insertion_point(field_add_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) 419} 420inline const ::google::protobuf::RepeatedPtrField< ::std::string>& 421CodeGeneratorRequest::file_to_generate() const { 422 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) 423 return file_to_generate_; 424} 425inline ::google::protobuf::RepeatedPtrField< ::std::string>* 426CodeGeneratorRequest::mutable_file_to_generate() { 427 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) 428 return &file_to_generate_; 429} 430 431// optional string parameter = 2; 432inline bool CodeGeneratorRequest::has_parameter() const { 433 return (_has_bits_[0] & 0x00000002u) != 0; 434} 435inline void CodeGeneratorRequest::set_has_parameter() { 436 _has_bits_[0] |= 0x00000002u; 437} 438inline void CodeGeneratorRequest::clear_has_parameter() { 439 _has_bits_[0] &= ~0x00000002u; 440} 441inline void CodeGeneratorRequest::clear_parameter() { 442 if (parameter_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 443 parameter_->clear(); 444 } 445 clear_has_parameter(); 446} 447inline const ::std::string& CodeGeneratorRequest::parameter() const { 448 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.parameter) 449 return *parameter_; 450} 451inline void CodeGeneratorRequest::set_parameter(const ::std::string& value) { 452 set_has_parameter(); 453 if (parameter_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 454 parameter_ = new ::std::string; 455 } 456 parameter_->assign(value); 457 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.parameter) 458} 459inline void CodeGeneratorRequest::set_parameter(const char* value) { 460 set_has_parameter(); 461 if (parameter_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 462 parameter_ = new ::std::string; 463 } 464 parameter_->assign(value); 465 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorRequest.parameter) 466} 467inline void CodeGeneratorRequest::set_parameter(const char* value, size_t size) { 468 set_has_parameter(); 469 if (parameter_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 470 parameter_ = new ::std::string; 471 } 472 parameter_->assign(reinterpret_cast<const char*>(value), size); 473 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorRequest.parameter) 474} 475inline ::std::string* CodeGeneratorRequest::mutable_parameter() { 476 set_has_parameter(); 477 if (parameter_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 478 parameter_ = new ::std::string; 479 } 480 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.parameter) 481 return parameter_; 482} 483inline ::std::string* CodeGeneratorRequest::release_parameter() { 484 clear_has_parameter(); 485 if (parameter_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 486 return NULL; 487 } else { 488 ::std::string* temp = parameter_; 489 parameter_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 490 return temp; 491 } 492} 493inline void CodeGeneratorRequest::set_allocated_parameter(::std::string* parameter) { 494 if (parameter_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 495 delete parameter_; 496 } 497 if (parameter) { 498 set_has_parameter(); 499 parameter_ = parameter; 500 } else { 501 clear_has_parameter(); 502 parameter_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 503 } 504 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorRequest.parameter) 505} 506 507// repeated .google.protobuf.FileDescriptorProto proto_file = 15; 508inline int CodeGeneratorRequest::proto_file_size() const { 509 return proto_file_.size(); 510} 511inline void CodeGeneratorRequest::clear_proto_file() { 512 proto_file_.Clear(); 513} 514inline const ::google::protobuf::FileDescriptorProto& CodeGeneratorRequest::proto_file(int index) const { 515 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.proto_file) 516 return proto_file_.Get(index); 517} 518inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::mutable_proto_file(int index) { 519 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.proto_file) 520 return proto_file_.Mutable(index); 521} 522inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::add_proto_file() { 523 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.proto_file) 524 return proto_file_.Add(); 525} 526inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >& 527CodeGeneratorRequest::proto_file() const { 528 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file) 529 return proto_file_; 530} 531inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >* 532CodeGeneratorRequest::mutable_proto_file() { 533 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file) 534 return &proto_file_; 535} 536 537// ------------------------------------------------------------------- 538 539// CodeGeneratorResponse_File 540 541// optional string name = 1; 542inline bool CodeGeneratorResponse_File::has_name() const { 543 return (_has_bits_[0] & 0x00000001u) != 0; 544} 545inline void CodeGeneratorResponse_File::set_has_name() { 546 _has_bits_[0] |= 0x00000001u; 547} 548inline void CodeGeneratorResponse_File::clear_has_name() { 549 _has_bits_[0] &= ~0x00000001u; 550} 551inline void CodeGeneratorResponse_File::clear_name() { 552 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 553 name_->clear(); 554 } 555 clear_has_name(); 556} 557inline const ::std::string& CodeGeneratorResponse_File::name() const { 558 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.name) 559 return *name_; 560} 561inline void CodeGeneratorResponse_File::set_name(const ::std::string& value) { 562 set_has_name(); 563 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 564 name_ = new ::std::string; 565 } 566 name_->assign(value); 567 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.name) 568} 569inline void CodeGeneratorResponse_File::set_name(const char* value) { 570 set_has_name(); 571 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 572 name_ = new ::std::string; 573 } 574 name_->assign(value); 575 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.name) 576} 577inline void CodeGeneratorResponse_File::set_name(const char* value, size_t size) { 578 set_has_name(); 579 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 580 name_ = new ::std::string; 581 } 582 name_->assign(reinterpret_cast<const char*>(value), size); 583 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.name) 584} 585inline ::std::string* CodeGeneratorResponse_File::mutable_name() { 586 set_has_name(); 587 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 588 name_ = new ::std::string; 589 } 590 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.name) 591 return name_; 592} 593inline ::std::string* CodeGeneratorResponse_File::release_name() { 594 clear_has_name(); 595 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 596 return NULL; 597 } else { 598 ::std::string* temp = name_; 599 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 600 return temp; 601 } 602} 603inline void CodeGeneratorResponse_File::set_allocated_name(::std::string* name) { 604 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 605 delete name_; 606 } 607 if (name) { 608 set_has_name(); 609 name_ = name; 610 } else { 611 clear_has_name(); 612 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 613 } 614 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.name) 615} 616 617// optional string insertion_point = 2; 618inline bool CodeGeneratorResponse_File::has_insertion_point() const { 619 return (_has_bits_[0] & 0x00000002u) != 0; 620} 621inline void CodeGeneratorResponse_File::set_has_insertion_point() { 622 _has_bits_[0] |= 0x00000002u; 623} 624inline void CodeGeneratorResponse_File::clear_has_insertion_point() { 625 _has_bits_[0] &= ~0x00000002u; 626} 627inline void CodeGeneratorResponse_File::clear_insertion_point() { 628 if (insertion_point_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 629 insertion_point_->clear(); 630 } 631 clear_has_insertion_point(); 632} 633inline const ::std::string& CodeGeneratorResponse_File::insertion_point() const { 634 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point) 635 return *insertion_point_; 636} 637inline void CodeGeneratorResponse_File::set_insertion_point(const ::std::string& value) { 638 set_has_insertion_point(); 639 if (insertion_point_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 640 insertion_point_ = new ::std::string; 641 } 642 insertion_point_->assign(value); 643 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point) 644} 645inline void CodeGeneratorResponse_File::set_insertion_point(const char* value) { 646 set_has_insertion_point(); 647 if (insertion_point_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 648 insertion_point_ = new ::std::string; 649 } 650 insertion_point_->assign(value); 651 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point) 652} 653inline void CodeGeneratorResponse_File::set_insertion_point(const char* value, size_t size) { 654 set_has_insertion_point(); 655 if (insertion_point_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 656 insertion_point_ = new ::std::string; 657 } 658 insertion_point_->assign(reinterpret_cast<const char*>(value), size); 659 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point) 660} 661inline ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() { 662 set_has_insertion_point(); 663 if (insertion_point_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 664 insertion_point_ = new ::std::string; 665 } 666 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point) 667 return insertion_point_; 668} 669inline ::std::string* CodeGeneratorResponse_File::release_insertion_point() { 670 clear_has_insertion_point(); 671 if (insertion_point_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 672 return NULL; 673 } else { 674 ::std::string* temp = insertion_point_; 675 insertion_point_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 676 return temp; 677 } 678} 679inline void CodeGeneratorResponse_File::set_allocated_insertion_point(::std::string* insertion_point) { 680 if (insertion_point_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 681 delete insertion_point_; 682 } 683 if (insertion_point) { 684 set_has_insertion_point(); 685 insertion_point_ = insertion_point; 686 } else { 687 clear_has_insertion_point(); 688 insertion_point_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 689 } 690 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point) 691} 692 693// optional string content = 15; 694inline bool CodeGeneratorResponse_File::has_content() const { 695 return (_has_bits_[0] & 0x00000004u) != 0; 696} 697inline void CodeGeneratorResponse_File::set_has_content() { 698 _has_bits_[0] |= 0x00000004u; 699} 700inline void CodeGeneratorResponse_File::clear_has_content() { 701 _has_bits_[0] &= ~0x00000004u; 702} 703inline void CodeGeneratorResponse_File::clear_content() { 704 if (content_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 705 content_->clear(); 706 } 707 clear_has_content(); 708} 709inline const ::std::string& CodeGeneratorResponse_File::content() const { 710 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.content) 711 return *content_; 712} 713inline void CodeGeneratorResponse_File::set_content(const ::std::string& value) { 714 set_has_content(); 715 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 716 content_ = new ::std::string; 717 } 718 content_->assign(value); 719 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.content) 720} 721inline void CodeGeneratorResponse_File::set_content(const char* value) { 722 set_has_content(); 723 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 724 content_ = new ::std::string; 725 } 726 content_->assign(value); 727 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.content) 728} 729inline void CodeGeneratorResponse_File::set_content(const char* value, size_t size) { 730 set_has_content(); 731 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 732 content_ = new ::std::string; 733 } 734 content_->assign(reinterpret_cast<const char*>(value), size); 735 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.content) 736} 737inline ::std::string* CodeGeneratorResponse_File::mutable_content() { 738 set_has_content(); 739 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 740 content_ = new ::std::string; 741 } 742 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.content) 743 return content_; 744} 745inline ::std::string* CodeGeneratorResponse_File::release_content() { 746 clear_has_content(); 747 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 748 return NULL; 749 } else { 750 ::std::string* temp = content_; 751 content_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 752 return temp; 753 } 754} 755inline void CodeGeneratorResponse_File::set_allocated_content(::std::string* content) { 756 if (content_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 757 delete content_; 758 } 759 if (content) { 760 set_has_content(); 761 content_ = content; 762 } else { 763 clear_has_content(); 764 content_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 765 } 766 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.content) 767} 768 769// ------------------------------------------------------------------- 770 771// CodeGeneratorResponse 772 773// optional string error = 1; 774inline bool CodeGeneratorResponse::has_error() const { 775 return (_has_bits_[0] & 0x00000001u) != 0; 776} 777inline void CodeGeneratorResponse::set_has_error() { 778 _has_bits_[0] |= 0x00000001u; 779} 780inline void CodeGeneratorResponse::clear_has_error() { 781 _has_bits_[0] &= ~0x00000001u; 782} 783inline void CodeGeneratorResponse::clear_error() { 784 if (error_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 785 error_->clear(); 786 } 787 clear_has_error(); 788} 789inline const ::std::string& CodeGeneratorResponse::error() const { 790 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.error) 791 return *error_; 792} 793inline void CodeGeneratorResponse::set_error(const ::std::string& value) { 794 set_has_error(); 795 if (error_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 796 error_ = new ::std::string; 797 } 798 error_->assign(value); 799 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.error) 800} 801inline void CodeGeneratorResponse::set_error(const char* value) { 802 set_has_error(); 803 if (error_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 804 error_ = new ::std::string; 805 } 806 error_->assign(value); 807 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.error) 808} 809inline void CodeGeneratorResponse::set_error(const char* value, size_t size) { 810 set_has_error(); 811 if (error_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 812 error_ = new ::std::string; 813 } 814 error_->assign(reinterpret_cast<const char*>(value), size); 815 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.error) 816} 817inline ::std::string* CodeGeneratorResponse::mutable_error() { 818 set_has_error(); 819 if (error_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 820 error_ = new ::std::string; 821 } 822 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.error) 823 return error_; 824} 825inline ::std::string* CodeGeneratorResponse::release_error() { 826 clear_has_error(); 827 if (error_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 828 return NULL; 829 } else { 830 ::std::string* temp = error_; 831 error_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 832 return temp; 833 } 834} 835inline void CodeGeneratorResponse::set_allocated_error(::std::string* error) { 836 if (error_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { 837 delete error_; 838 } 839 if (error) { 840 set_has_error(); 841 error_ = error; 842 } else { 843 clear_has_error(); 844 error_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 845 } 846 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.error) 847} 848 849// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; 850inline int CodeGeneratorResponse::file_size() const { 851 return file_.size(); 852} 853inline void CodeGeneratorResponse::clear_file() { 854 file_.Clear(); 855} 856inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::file(int index) const { 857 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.file) 858 return file_.Get(index); 859} 860inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::mutable_file(int index) { 861 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.file) 862 return file_.Mutable(index); 863} 864inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::add_file() { 865 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorResponse.file) 866 return file_.Add(); 867} 868inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >& 869CodeGeneratorResponse::file() const { 870 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorResponse.file) 871 return file_; 872} 873inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >* 874CodeGeneratorResponse::mutable_file() { 875 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorResponse.file) 876 return &file_; 877} 878 879 880// @@protoc_insertion_point(namespace_scope) 881 882} // namespace compiler 883} // namespace protobuf 884} // namespace google 885 886#ifndef SWIG 887namespace google { 888namespace protobuf { 889 890 891} // namespace google 892} // namespace protobuf 893#endif // SWIG 894 895// @@protoc_insertion_point(global_scope) 896 897#endif // PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED 898