OLD | NEW |
1 // Generated by the protocol buffer compiler. DO NOT EDIT! | 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 // source: google/protobuf/compiler/plugin.proto | 2 // source: google/protobuf/compiler/plugin.proto |
3 | 3 |
4 #ifndef PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED | 4 #ifndef PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED |
5 #define PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED | 5 #define PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include <google/protobuf/stubs/common.h> | 9 #include <google/protobuf/stubs/common.h> |
10 | 10 |
11 #if GOOGLE_PROTOBUF_VERSION < 2003000 | 11 #if GOOGLE_PROTOBUF_VERSION < 2004000 |
12 #error This file was generated by a newer version of protoc which is | 12 #error This file was generated by a newer version of protoc which is |
13 #error incompatible with your Protocol Buffer headers. Please update | 13 #error incompatible with your Protocol Buffer headers. Please update |
14 #error your headers. | 14 #error your headers. |
15 #endif | 15 #endif |
16 #if 2003001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION | 16 #if 2004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
17 #error This file was generated by an older version of protoc which is | 17 #error This file was generated by an older version of protoc which is |
18 #error incompatible with your Protocol Buffer headers. Please | 18 #error incompatible with your Protocol Buffer headers. Please |
19 #error regenerate this file with a newer version of protoc. | 19 #error regenerate this file with a newer version of protoc. |
20 #endif | 20 #endif |
21 | 21 |
22 #include <google/protobuf/generated_message_util.h> | 22 #include <google/protobuf/generated_message_util.h> |
23 #include <google/protobuf/repeated_field.h> | 23 #include <google/protobuf/repeated_field.h> |
24 #include <google/protobuf/extension_set.h> | 24 #include <google/protobuf/extension_set.h> |
| 25 #include <google/protobuf/unknown_field_set.h> |
25 #include <google/protobuf/generated_message_reflection.h> | 26 #include <google/protobuf/generated_message_reflection.h> |
26 #include "google/protobuf/descriptor.pb.h" | 27 #include "google/protobuf/descriptor.pb.h" |
27 // @@protoc_insertion_point(includes) | 28 // @@protoc_insertion_point(includes) |
28 | 29 |
29 namespace google { | 30 namespace google { |
30 namespace protobuf { | 31 namespace protobuf { |
31 namespace compiler { | 32 namespace compiler { |
32 | 33 |
33 // Internal implementation detail -- do not call these. | 34 // Internal implementation detail -- do not call these. |
34 void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2ep
roto(); | 35 void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2ep
roto(); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 114 |
114 // optional string parameter = 2; | 115 // optional string parameter = 2; |
115 inline bool has_parameter() const; | 116 inline bool has_parameter() const; |
116 inline void clear_parameter(); | 117 inline void clear_parameter(); |
117 static const int kParameterFieldNumber = 2; | 118 static const int kParameterFieldNumber = 2; |
118 inline const ::std::string& parameter() const; | 119 inline const ::std::string& parameter() const; |
119 inline void set_parameter(const ::std::string& value); | 120 inline void set_parameter(const ::std::string& value); |
120 inline void set_parameter(const char* value); | 121 inline void set_parameter(const char* value); |
121 inline void set_parameter(const char* value, size_t size); | 122 inline void set_parameter(const char* value, size_t size); |
122 inline ::std::string* mutable_parameter(); | 123 inline ::std::string* mutable_parameter(); |
| 124 inline ::std::string* release_parameter(); |
123 | 125 |
124 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; | 126 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; |
125 inline int proto_file_size() const; | 127 inline int proto_file_size() const; |
126 inline void clear_proto_file(); | 128 inline void clear_proto_file(); |
127 static const int kProtoFileFieldNumber = 15; | 129 static const int kProtoFileFieldNumber = 15; |
128 inline const ::google::protobuf::FileDescriptorProto& proto_file(int index) co
nst; | 130 inline const ::google::protobuf::FileDescriptorProto& proto_file(int index) co
nst; |
129 inline ::google::protobuf::FileDescriptorProto* mutable_proto_file(int index); | 131 inline ::google::protobuf::FileDescriptorProto* mutable_proto_file(int index); |
130 inline ::google::protobuf::FileDescriptorProto* add_proto_file(); | 132 inline ::google::protobuf::FileDescriptorProto* add_proto_file(); |
131 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDes
criptorProto >& | 133 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDes
criptorProto >& |
132 proto_file() const; | 134 proto_file() const; |
133 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescripto
rProto >* | 135 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescripto
rProto >* |
134 mutable_proto_file(); | 136 mutable_proto_file(); |
135 | 137 |
136 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Request) | 138 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Request) |
137 private: | 139 private: |
| 140 inline void set_has_parameter(); |
| 141 inline void clear_has_parameter(); |
| 142 |
138 ::google::protobuf::UnknownFieldSet _unknown_fields_; | 143 ::google::protobuf::UnknownFieldSet _unknown_fields_; |
139 mutable int _cached_size_; | |
140 | 144 |
141 ::google::protobuf::RepeatedPtrField< ::std::string> file_to_generate_; | 145 ::google::protobuf::RepeatedPtrField< ::std::string> file_to_generate_; |
142 ::std::string* parameter_; | 146 ::std::string* parameter_; |
143 static const ::std::string _default_parameter_; | |
144 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto
> proto_file_; | 147 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto
> proto_file_; |
| 148 |
| 149 mutable int _cached_size_; |
| 150 ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; |
| 151 |
145 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto(); | 152 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto(); |
146 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(
); | 153 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(
); |
147 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); | 154 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); |
148 | 155 |
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(); | 156 void InitAsDefaultInstance(); |
163 static CodeGeneratorRequest* default_instance_; | 157 static CodeGeneratorRequest* default_instance_; |
164 }; | 158 }; |
165 // ------------------------------------------------------------------- | 159 // ------------------------------------------------------------------- |
166 | 160 |
167 class LIBPROTOC_EXPORT CodeGeneratorResponse_File : public ::google::protobuf::M
essage { | 161 class LIBPROTOC_EXPORT CodeGeneratorResponse_File : public ::google::protobuf::M
essage { |
168 public: | 162 public: |
169 CodeGeneratorResponse_File(); | 163 CodeGeneratorResponse_File(); |
170 virtual ~CodeGeneratorResponse_File(); | 164 virtual ~CodeGeneratorResponse_File(); |
171 | 165 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 214 |
221 // optional string name = 1; | 215 // optional string name = 1; |
222 inline bool has_name() const; | 216 inline bool has_name() const; |
223 inline void clear_name(); | 217 inline void clear_name(); |
224 static const int kNameFieldNumber = 1; | 218 static const int kNameFieldNumber = 1; |
225 inline const ::std::string& name() const; | 219 inline const ::std::string& name() const; |
226 inline void set_name(const ::std::string& value); | 220 inline void set_name(const ::std::string& value); |
227 inline void set_name(const char* value); | 221 inline void set_name(const char* value); |
228 inline void set_name(const char* value, size_t size); | 222 inline void set_name(const char* value, size_t size); |
229 inline ::std::string* mutable_name(); | 223 inline ::std::string* mutable_name(); |
| 224 inline ::std::string* release_name(); |
230 | 225 |
231 // optional string insertion_point = 2; | 226 // optional string insertion_point = 2; |
232 inline bool has_insertion_point() const; | 227 inline bool has_insertion_point() const; |
233 inline void clear_insertion_point(); | 228 inline void clear_insertion_point(); |
234 static const int kInsertionPointFieldNumber = 2; | 229 static const int kInsertionPointFieldNumber = 2; |
235 inline const ::std::string& insertion_point() const; | 230 inline const ::std::string& insertion_point() const; |
236 inline void set_insertion_point(const ::std::string& value); | 231 inline void set_insertion_point(const ::std::string& value); |
237 inline void set_insertion_point(const char* value); | 232 inline void set_insertion_point(const char* value); |
238 inline void set_insertion_point(const char* value, size_t size); | 233 inline void set_insertion_point(const char* value, size_t size); |
239 inline ::std::string* mutable_insertion_point(); | 234 inline ::std::string* mutable_insertion_point(); |
| 235 inline ::std::string* release_insertion_point(); |
240 | 236 |
241 // optional string content = 15; | 237 // optional string content = 15; |
242 inline bool has_content() const; | 238 inline bool has_content() const; |
243 inline void clear_content(); | 239 inline void clear_content(); |
244 static const int kContentFieldNumber = 15; | 240 static const int kContentFieldNumber = 15; |
245 inline const ::std::string& content() const; | 241 inline const ::std::string& content() const; |
246 inline void set_content(const ::std::string& value); | 242 inline void set_content(const ::std::string& value); |
247 inline void set_content(const char* value); | 243 inline void set_content(const char* value); |
248 inline void set_content(const char* value, size_t size); | 244 inline void set_content(const char* value, size_t size); |
249 inline ::std::string* mutable_content(); | 245 inline ::std::string* mutable_content(); |
| 246 inline ::std::string* release_content(); |
250 | 247 |
251 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Response.File) | 248 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Response.File) |
252 private: | 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 |
253 ::google::protobuf::UnknownFieldSet _unknown_fields_; | 257 ::google::protobuf::UnknownFieldSet _unknown_fields_; |
254 mutable int _cached_size_; | |
255 | 258 |
256 ::std::string* name_; | 259 ::std::string* name_; |
257 static const ::std::string _default_name_; | |
258 ::std::string* insertion_point_; | 260 ::std::string* insertion_point_; |
259 static const ::std::string _default_insertion_point_; | |
260 ::std::string* content_; | 261 ::std::string* content_; |
261 static const ::std::string _default_content_; | 262 |
| 263 mutable int _cached_size_; |
| 264 ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; |
| 265 |
262 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto(); | 266 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto(); |
263 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(
); | 267 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(
); |
264 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); | 268 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); |
265 | 269 |
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(); | 270 void InitAsDefaultInstance(); |
280 static CodeGeneratorResponse_File* default_instance_; | 271 static CodeGeneratorResponse_File* default_instance_; |
281 }; | 272 }; |
282 // ------------------------------------------------------------------- | 273 // ------------------------------------------------------------------- |
283 | 274 |
284 class LIBPROTOC_EXPORT CodeGeneratorResponse : public ::google::protobuf::Messag
e { | 275 class LIBPROTOC_EXPORT CodeGeneratorResponse : public ::google::protobuf::Messag
e { |
285 public: | 276 public: |
286 CodeGeneratorResponse(); | 277 CodeGeneratorResponse(); |
287 virtual ~CodeGeneratorResponse(); | 278 virtual ~CodeGeneratorResponse(); |
288 | 279 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 | 330 |
340 // optional string error = 1; | 331 // optional string error = 1; |
341 inline bool has_error() const; | 332 inline bool has_error() const; |
342 inline void clear_error(); | 333 inline void clear_error(); |
343 static const int kErrorFieldNumber = 1; | 334 static const int kErrorFieldNumber = 1; |
344 inline const ::std::string& error() const; | 335 inline const ::std::string& error() const; |
345 inline void set_error(const ::std::string& value); | 336 inline void set_error(const ::std::string& value); |
346 inline void set_error(const char* value); | 337 inline void set_error(const char* value); |
347 inline void set_error(const char* value, size_t size); | 338 inline void set_error(const char* value, size_t size); |
348 inline ::std::string* mutable_error(); | 339 inline ::std::string* mutable_error(); |
| 340 inline ::std::string* release_error(); |
349 | 341 |
350 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; | 342 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
351 inline int file_size() const; | 343 inline int file_size() const; |
352 inline void clear_file(); | 344 inline void clear_file(); |
353 static const int kFileFieldNumber = 15; | 345 static const int kFileFieldNumber = 15; |
354 inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& file(in
t index) const; | 346 inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& file(in
t index) const; |
355 inline ::google::protobuf::compiler::CodeGeneratorResponse_File* mutable_file(
int index); | 347 inline ::google::protobuf::compiler::CodeGeneratorResponse_File* mutable_file(
int index); |
356 inline ::google::protobuf::compiler::CodeGeneratorResponse_File* add_file(); | 348 inline ::google::protobuf::compiler::CodeGeneratorResponse_File* add_file(); |
357 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compile
r::CodeGeneratorResponse_File >& | 349 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compile
r::CodeGeneratorResponse_File >& |
358 file() const; | 350 file() const; |
359 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::Cod
eGeneratorResponse_File >* | 351 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::Cod
eGeneratorResponse_File >* |
360 mutable_file(); | 352 mutable_file(); |
361 | 353 |
362 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Response) | 354 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Response) |
363 private: | 355 private: |
| 356 inline void set_has_error(); |
| 357 inline void clear_has_error(); |
| 358 |
364 ::google::protobuf::UnknownFieldSet _unknown_fields_; | 359 ::google::protobuf::UnknownFieldSet _unknown_fields_; |
365 mutable int _cached_size_; | |
366 | 360 |
367 ::std::string* error_; | 361 ::std::string* error_; |
368 static const ::std::string _default_error_; | |
369 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGenera
torResponse_File > file_; | 362 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGenera
torResponse_File > file_; |
| 363 |
| 364 mutable int _cached_size_; |
| 365 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; |
| 366 |
370 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto(); | 367 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto(); |
371 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(
); | 368 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(
); |
372 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); | 369 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); |
373 | 370 |
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(); | 371 void InitAsDefaultInstance(); |
388 static CodeGeneratorResponse* default_instance_; | 372 static CodeGeneratorResponse* default_instance_; |
389 }; | 373 }; |
390 // =================================================================== | 374 // =================================================================== |
391 | 375 |
392 | 376 |
393 // =================================================================== | 377 // =================================================================== |
394 | 378 |
395 // CodeGeneratorRequest | 379 // CodeGeneratorRequest |
396 | 380 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 CodeGeneratorRequest::file_to_generate() const { | 417 CodeGeneratorRequest::file_to_generate() const { |
434 return file_to_generate_; | 418 return file_to_generate_; |
435 } | 419 } |
436 inline ::google::protobuf::RepeatedPtrField< ::std::string>* | 420 inline ::google::protobuf::RepeatedPtrField< ::std::string>* |
437 CodeGeneratorRequest::mutable_file_to_generate() { | 421 CodeGeneratorRequest::mutable_file_to_generate() { |
438 return &file_to_generate_; | 422 return &file_to_generate_; |
439 } | 423 } |
440 | 424 |
441 // optional string parameter = 2; | 425 // optional string parameter = 2; |
442 inline bool CodeGeneratorRequest::has_parameter() const { | 426 inline bool CodeGeneratorRequest::has_parameter() const { |
443 return _has_bit(1); | 427 return (_has_bits_[0] & 0x00000002u) != 0; |
| 428 } |
| 429 inline void CodeGeneratorRequest::set_has_parameter() { |
| 430 _has_bits_[0] |= 0x00000002u; |
| 431 } |
| 432 inline void CodeGeneratorRequest::clear_has_parameter() { |
| 433 _has_bits_[0] &= ~0x00000002u; |
444 } | 434 } |
445 inline void CodeGeneratorRequest::clear_parameter() { | 435 inline void CodeGeneratorRequest::clear_parameter() { |
446 if (parameter_ != &_default_parameter_) { | 436 if (parameter_ != &::google::protobuf::internal::kEmptyString) { |
447 parameter_->clear(); | 437 parameter_->clear(); |
448 } | 438 } |
449 _clear_bit(1); | 439 clear_has_parameter(); |
450 } | 440 } |
451 inline const ::std::string& CodeGeneratorRequest::parameter() const { | 441 inline const ::std::string& CodeGeneratorRequest::parameter() const { |
452 return *parameter_; | 442 return *parameter_; |
453 } | 443 } |
454 inline void CodeGeneratorRequest::set_parameter(const ::std::string& value) { | 444 inline void CodeGeneratorRequest::set_parameter(const ::std::string& value) { |
455 _set_bit(1); | 445 set_has_parameter(); |
456 if (parameter_ == &_default_parameter_) { | 446 if (parameter_ == &::google::protobuf::internal::kEmptyString) { |
457 parameter_ = new ::std::string; | 447 parameter_ = new ::std::string; |
458 } | 448 } |
459 parameter_->assign(value); | 449 parameter_->assign(value); |
460 } | 450 } |
461 inline void CodeGeneratorRequest::set_parameter(const char* value) { | 451 inline void CodeGeneratorRequest::set_parameter(const char* value) { |
462 _set_bit(1); | 452 set_has_parameter(); |
463 if (parameter_ == &_default_parameter_) { | 453 if (parameter_ == &::google::protobuf::internal::kEmptyString) { |
464 parameter_ = new ::std::string; | 454 parameter_ = new ::std::string; |
465 } | 455 } |
466 parameter_->assign(value); | 456 parameter_->assign(value); |
467 } | 457 } |
468 inline void CodeGeneratorRequest::set_parameter(const char* value, size_t size)
{ | 458 inline void CodeGeneratorRequest::set_parameter(const char* value, size_t size)
{ |
469 _set_bit(1); | 459 set_has_parameter(); |
470 if (parameter_ == &_default_parameter_) { | 460 if (parameter_ == &::google::protobuf::internal::kEmptyString) { |
471 parameter_ = new ::std::string; | 461 parameter_ = new ::std::string; |
472 } | 462 } |
473 parameter_->assign(reinterpret_cast<const char*>(value), size); | 463 parameter_->assign(reinterpret_cast<const char*>(value), size); |
474 } | 464 } |
475 inline ::std::string* CodeGeneratorRequest::mutable_parameter() { | 465 inline ::std::string* CodeGeneratorRequest::mutable_parameter() { |
476 _set_bit(1); | 466 set_has_parameter(); |
477 if (parameter_ == &_default_parameter_) { | 467 if (parameter_ == &::google::protobuf::internal::kEmptyString) { |
478 parameter_ = new ::std::string; | 468 parameter_ = new ::std::string; |
479 } | 469 } |
480 return parameter_; | 470 return parameter_; |
481 } | 471 } |
| 472 inline ::std::string* CodeGeneratorRequest::release_parameter() { |
| 473 clear_has_parameter(); |
| 474 if (parameter_ == &::google::protobuf::internal::kEmptyString) { |
| 475 return NULL; |
| 476 } else { |
| 477 ::std::string* temp = parameter_; |
| 478 parameter_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmp
tyString); |
| 479 return temp; |
| 480 } |
| 481 } |
482 | 482 |
483 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; | 483 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; |
484 inline int CodeGeneratorRequest::proto_file_size() const { | 484 inline int CodeGeneratorRequest::proto_file_size() const { |
485 return proto_file_.size(); | 485 return proto_file_.size(); |
486 } | 486 } |
487 inline void CodeGeneratorRequest::clear_proto_file() { | 487 inline void CodeGeneratorRequest::clear_proto_file() { |
488 proto_file_.Clear(); | 488 proto_file_.Clear(); |
489 } | 489 } |
490 inline const ::google::protobuf::FileDescriptorProto& CodeGeneratorRequest::prot
o_file(int index) const { | 490 inline const ::google::protobuf::FileDescriptorProto& CodeGeneratorRequest::prot
o_file(int index) const { |
491 return proto_file_.Get(index); | 491 return proto_file_.Get(index); |
(...skipping 12 matching lines...) Expand all Loading... |
504 CodeGeneratorRequest::mutable_proto_file() { | 504 CodeGeneratorRequest::mutable_proto_file() { |
505 return &proto_file_; | 505 return &proto_file_; |
506 } | 506 } |
507 | 507 |
508 // ------------------------------------------------------------------- | 508 // ------------------------------------------------------------------- |
509 | 509 |
510 // CodeGeneratorResponse_File | 510 // CodeGeneratorResponse_File |
511 | 511 |
512 // optional string name = 1; | 512 // optional string name = 1; |
513 inline bool CodeGeneratorResponse_File::has_name() const { | 513 inline bool CodeGeneratorResponse_File::has_name() const { |
514 return _has_bit(0); | 514 return (_has_bits_[0] & 0x00000001u) != 0; |
| 515 } |
| 516 inline void CodeGeneratorResponse_File::set_has_name() { |
| 517 _has_bits_[0] |= 0x00000001u; |
| 518 } |
| 519 inline void CodeGeneratorResponse_File::clear_has_name() { |
| 520 _has_bits_[0] &= ~0x00000001u; |
515 } | 521 } |
516 inline void CodeGeneratorResponse_File::clear_name() { | 522 inline void CodeGeneratorResponse_File::clear_name() { |
517 if (name_ != &_default_name_) { | 523 if (name_ != &::google::protobuf::internal::kEmptyString) { |
518 name_->clear(); | 524 name_->clear(); |
519 } | 525 } |
520 _clear_bit(0); | 526 clear_has_name(); |
521 } | 527 } |
522 inline const ::std::string& CodeGeneratorResponse_File::name() const { | 528 inline const ::std::string& CodeGeneratorResponse_File::name() const { |
523 return *name_; | 529 return *name_; |
524 } | 530 } |
525 inline void CodeGeneratorResponse_File::set_name(const ::std::string& value) { | 531 inline void CodeGeneratorResponse_File::set_name(const ::std::string& value) { |
526 _set_bit(0); | 532 set_has_name(); |
527 if (name_ == &_default_name_) { | 533 if (name_ == &::google::protobuf::internal::kEmptyString) { |
528 name_ = new ::std::string; | 534 name_ = new ::std::string; |
529 } | 535 } |
530 name_->assign(value); | 536 name_->assign(value); |
531 } | 537 } |
532 inline void CodeGeneratorResponse_File::set_name(const char* value) { | 538 inline void CodeGeneratorResponse_File::set_name(const char* value) { |
533 _set_bit(0); | 539 set_has_name(); |
534 if (name_ == &_default_name_) { | 540 if (name_ == &::google::protobuf::internal::kEmptyString) { |
535 name_ = new ::std::string; | 541 name_ = new ::std::string; |
536 } | 542 } |
537 name_->assign(value); | 543 name_->assign(value); |
538 } | 544 } |
539 inline void CodeGeneratorResponse_File::set_name(const char* value, size_t size)
{ | 545 inline void CodeGeneratorResponse_File::set_name(const char* value, size_t size)
{ |
540 _set_bit(0); | 546 set_has_name(); |
541 if (name_ == &_default_name_) { | 547 if (name_ == &::google::protobuf::internal::kEmptyString) { |
542 name_ = new ::std::string; | 548 name_ = new ::std::string; |
543 } | 549 } |
544 name_->assign(reinterpret_cast<const char*>(value), size); | 550 name_->assign(reinterpret_cast<const char*>(value), size); |
545 } | 551 } |
546 inline ::std::string* CodeGeneratorResponse_File::mutable_name() { | 552 inline ::std::string* CodeGeneratorResponse_File::mutable_name() { |
547 _set_bit(0); | 553 set_has_name(); |
548 if (name_ == &_default_name_) { | 554 if (name_ == &::google::protobuf::internal::kEmptyString) { |
549 name_ = new ::std::string; | 555 name_ = new ::std::string; |
550 } | 556 } |
551 return name_; | 557 return name_; |
552 } | 558 } |
| 559 inline ::std::string* CodeGeneratorResponse_File::release_name() { |
| 560 clear_has_name(); |
| 561 if (name_ == &::google::protobuf::internal::kEmptyString) { |
| 562 return NULL; |
| 563 } else { |
| 564 ::std::string* temp = name_; |
| 565 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyStr
ing); |
| 566 return temp; |
| 567 } |
| 568 } |
553 | 569 |
554 // optional string insertion_point = 2; | 570 // optional string insertion_point = 2; |
555 inline bool CodeGeneratorResponse_File::has_insertion_point() const { | 571 inline bool CodeGeneratorResponse_File::has_insertion_point() const { |
556 return _has_bit(1); | 572 return (_has_bits_[0] & 0x00000002u) != 0; |
| 573 } |
| 574 inline void CodeGeneratorResponse_File::set_has_insertion_point() { |
| 575 _has_bits_[0] |= 0x00000002u; |
| 576 } |
| 577 inline void CodeGeneratorResponse_File::clear_has_insertion_point() { |
| 578 _has_bits_[0] &= ~0x00000002u; |
557 } | 579 } |
558 inline void CodeGeneratorResponse_File::clear_insertion_point() { | 580 inline void CodeGeneratorResponse_File::clear_insertion_point() { |
559 if (insertion_point_ != &_default_insertion_point_) { | 581 if (insertion_point_ != &::google::protobuf::internal::kEmptyString) { |
560 insertion_point_->clear(); | 582 insertion_point_->clear(); |
561 } | 583 } |
562 _clear_bit(1); | 584 clear_has_insertion_point(); |
563 } | 585 } |
564 inline const ::std::string& CodeGeneratorResponse_File::insertion_point() const
{ | 586 inline const ::std::string& CodeGeneratorResponse_File::insertion_point() const
{ |
565 return *insertion_point_; | 587 return *insertion_point_; |
566 } | 588 } |
567 inline void CodeGeneratorResponse_File::set_insertion_point(const ::std::string&
value) { | 589 inline void CodeGeneratorResponse_File::set_insertion_point(const ::std::string&
value) { |
568 _set_bit(1); | 590 set_has_insertion_point(); |
569 if (insertion_point_ == &_default_insertion_point_) { | 591 if (insertion_point_ == &::google::protobuf::internal::kEmptyString) { |
570 insertion_point_ = new ::std::string; | 592 insertion_point_ = new ::std::string; |
571 } | 593 } |
572 insertion_point_->assign(value); | 594 insertion_point_->assign(value); |
573 } | 595 } |
574 inline void CodeGeneratorResponse_File::set_insertion_point(const char* value) { | 596 inline void CodeGeneratorResponse_File::set_insertion_point(const char* value) { |
575 _set_bit(1); | 597 set_has_insertion_point(); |
576 if (insertion_point_ == &_default_insertion_point_) { | 598 if (insertion_point_ == &::google::protobuf::internal::kEmptyString) { |
577 insertion_point_ = new ::std::string; | 599 insertion_point_ = new ::std::string; |
578 } | 600 } |
579 insertion_point_->assign(value); | 601 insertion_point_->assign(value); |
580 } | 602 } |
581 inline void CodeGeneratorResponse_File::set_insertion_point(const char* value, s
ize_t size) { | 603 inline void CodeGeneratorResponse_File::set_insertion_point(const char* value, s
ize_t size) { |
582 _set_bit(1); | 604 set_has_insertion_point(); |
583 if (insertion_point_ == &_default_insertion_point_) { | 605 if (insertion_point_ == &::google::protobuf::internal::kEmptyString) { |
584 insertion_point_ = new ::std::string; | 606 insertion_point_ = new ::std::string; |
585 } | 607 } |
586 insertion_point_->assign(reinterpret_cast<const char*>(value), size); | 608 insertion_point_->assign(reinterpret_cast<const char*>(value), size); |
587 } | 609 } |
588 inline ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() { | 610 inline ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() { |
589 _set_bit(1); | 611 set_has_insertion_point(); |
590 if (insertion_point_ == &_default_insertion_point_) { | 612 if (insertion_point_ == &::google::protobuf::internal::kEmptyString) { |
591 insertion_point_ = new ::std::string; | 613 insertion_point_ = new ::std::string; |
592 } | 614 } |
593 return insertion_point_; | 615 return insertion_point_; |
594 } | 616 } |
| 617 inline ::std::string* CodeGeneratorResponse_File::release_insertion_point() { |
| 618 clear_has_insertion_point(); |
| 619 if (insertion_point_ == &::google::protobuf::internal::kEmptyString) { |
| 620 return NULL; |
| 621 } else { |
| 622 ::std::string* temp = insertion_point_; |
| 623 insertion_point_ = const_cast< ::std::string*>(&::google::protobuf::internal
::kEmptyString); |
| 624 return temp; |
| 625 } |
| 626 } |
595 | 627 |
596 // optional string content = 15; | 628 // optional string content = 15; |
597 inline bool CodeGeneratorResponse_File::has_content() const { | 629 inline bool CodeGeneratorResponse_File::has_content() const { |
598 return _has_bit(2); | 630 return (_has_bits_[0] & 0x00000004u) != 0; |
| 631 } |
| 632 inline void CodeGeneratorResponse_File::set_has_content() { |
| 633 _has_bits_[0] |= 0x00000004u; |
| 634 } |
| 635 inline void CodeGeneratorResponse_File::clear_has_content() { |
| 636 _has_bits_[0] &= ~0x00000004u; |
599 } | 637 } |
600 inline void CodeGeneratorResponse_File::clear_content() { | 638 inline void CodeGeneratorResponse_File::clear_content() { |
601 if (content_ != &_default_content_) { | 639 if (content_ != &::google::protobuf::internal::kEmptyString) { |
602 content_->clear(); | 640 content_->clear(); |
603 } | 641 } |
604 _clear_bit(2); | 642 clear_has_content(); |
605 } | 643 } |
606 inline const ::std::string& CodeGeneratorResponse_File::content() const { | 644 inline const ::std::string& CodeGeneratorResponse_File::content() const { |
607 return *content_; | 645 return *content_; |
608 } | 646 } |
609 inline void CodeGeneratorResponse_File::set_content(const ::std::string& value)
{ | 647 inline void CodeGeneratorResponse_File::set_content(const ::std::string& value)
{ |
610 _set_bit(2); | 648 set_has_content(); |
611 if (content_ == &_default_content_) { | 649 if (content_ == &::google::protobuf::internal::kEmptyString) { |
612 content_ = new ::std::string; | 650 content_ = new ::std::string; |
613 } | 651 } |
614 content_->assign(value); | 652 content_->assign(value); |
615 } | 653 } |
616 inline void CodeGeneratorResponse_File::set_content(const char* value) { | 654 inline void CodeGeneratorResponse_File::set_content(const char* value) { |
617 _set_bit(2); | 655 set_has_content(); |
618 if (content_ == &_default_content_) { | 656 if (content_ == &::google::protobuf::internal::kEmptyString) { |
619 content_ = new ::std::string; | 657 content_ = new ::std::string; |
620 } | 658 } |
621 content_->assign(value); | 659 content_->assign(value); |
622 } | 660 } |
623 inline void CodeGeneratorResponse_File::set_content(const char* value, size_t si
ze) { | 661 inline void CodeGeneratorResponse_File::set_content(const char* value, size_t si
ze) { |
624 _set_bit(2); | 662 set_has_content(); |
625 if (content_ == &_default_content_) { | 663 if (content_ == &::google::protobuf::internal::kEmptyString) { |
626 content_ = new ::std::string; | 664 content_ = new ::std::string; |
627 } | 665 } |
628 content_->assign(reinterpret_cast<const char*>(value), size); | 666 content_->assign(reinterpret_cast<const char*>(value), size); |
629 } | 667 } |
630 inline ::std::string* CodeGeneratorResponse_File::mutable_content() { | 668 inline ::std::string* CodeGeneratorResponse_File::mutable_content() { |
631 _set_bit(2); | 669 set_has_content(); |
632 if (content_ == &_default_content_) { | 670 if (content_ == &::google::protobuf::internal::kEmptyString) { |
633 content_ = new ::std::string; | 671 content_ = new ::std::string; |
634 } | 672 } |
635 return content_; | 673 return content_; |
636 } | 674 } |
| 675 inline ::std::string* CodeGeneratorResponse_File::release_content() { |
| 676 clear_has_content(); |
| 677 if (content_ == &::google::protobuf::internal::kEmptyString) { |
| 678 return NULL; |
| 679 } else { |
| 680 ::std::string* temp = content_; |
| 681 content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmpty
String); |
| 682 return temp; |
| 683 } |
| 684 } |
637 | 685 |
638 // ------------------------------------------------------------------- | 686 // ------------------------------------------------------------------- |
639 | 687 |
640 // CodeGeneratorResponse | 688 // CodeGeneratorResponse |
641 | 689 |
642 // optional string error = 1; | 690 // optional string error = 1; |
643 inline bool CodeGeneratorResponse::has_error() const { | 691 inline bool CodeGeneratorResponse::has_error() const { |
644 return _has_bit(0); | 692 return (_has_bits_[0] & 0x00000001u) != 0; |
| 693 } |
| 694 inline void CodeGeneratorResponse::set_has_error() { |
| 695 _has_bits_[0] |= 0x00000001u; |
| 696 } |
| 697 inline void CodeGeneratorResponse::clear_has_error() { |
| 698 _has_bits_[0] &= ~0x00000001u; |
645 } | 699 } |
646 inline void CodeGeneratorResponse::clear_error() { | 700 inline void CodeGeneratorResponse::clear_error() { |
647 if (error_ != &_default_error_) { | 701 if (error_ != &::google::protobuf::internal::kEmptyString) { |
648 error_->clear(); | 702 error_->clear(); |
649 } | 703 } |
650 _clear_bit(0); | 704 clear_has_error(); |
651 } | 705 } |
652 inline const ::std::string& CodeGeneratorResponse::error() const { | 706 inline const ::std::string& CodeGeneratorResponse::error() const { |
653 return *error_; | 707 return *error_; |
654 } | 708 } |
655 inline void CodeGeneratorResponse::set_error(const ::std::string& value) { | 709 inline void CodeGeneratorResponse::set_error(const ::std::string& value) { |
656 _set_bit(0); | 710 set_has_error(); |
657 if (error_ == &_default_error_) { | 711 if (error_ == &::google::protobuf::internal::kEmptyString) { |
658 error_ = new ::std::string; | 712 error_ = new ::std::string; |
659 } | 713 } |
660 error_->assign(value); | 714 error_->assign(value); |
661 } | 715 } |
662 inline void CodeGeneratorResponse::set_error(const char* value) { | 716 inline void CodeGeneratorResponse::set_error(const char* value) { |
663 _set_bit(0); | 717 set_has_error(); |
664 if (error_ == &_default_error_) { | 718 if (error_ == &::google::protobuf::internal::kEmptyString) { |
665 error_ = new ::std::string; | 719 error_ = new ::std::string; |
666 } | 720 } |
667 error_->assign(value); | 721 error_->assign(value); |
668 } | 722 } |
669 inline void CodeGeneratorResponse::set_error(const char* value, size_t size) { | 723 inline void CodeGeneratorResponse::set_error(const char* value, size_t size) { |
670 _set_bit(0); | 724 set_has_error(); |
671 if (error_ == &_default_error_) { | 725 if (error_ == &::google::protobuf::internal::kEmptyString) { |
672 error_ = new ::std::string; | 726 error_ = new ::std::string; |
673 } | 727 } |
674 error_->assign(reinterpret_cast<const char*>(value), size); | 728 error_->assign(reinterpret_cast<const char*>(value), size); |
675 } | 729 } |
676 inline ::std::string* CodeGeneratorResponse::mutable_error() { | 730 inline ::std::string* CodeGeneratorResponse::mutable_error() { |
677 _set_bit(0); | 731 set_has_error(); |
678 if (error_ == &_default_error_) { | 732 if (error_ == &::google::protobuf::internal::kEmptyString) { |
679 error_ = new ::std::string; | 733 error_ = new ::std::string; |
680 } | 734 } |
681 return error_; | 735 return error_; |
682 } | 736 } |
| 737 inline ::std::string* CodeGeneratorResponse::release_error() { |
| 738 clear_has_error(); |
| 739 if (error_ == &::google::protobuf::internal::kEmptyString) { |
| 740 return NULL; |
| 741 } else { |
| 742 ::std::string* temp = error_; |
| 743 error_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptySt
ring); |
| 744 return temp; |
| 745 } |
| 746 } |
683 | 747 |
684 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; | 748 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
685 inline int CodeGeneratorResponse::file_size() const { | 749 inline int CodeGeneratorResponse::file_size() const { |
686 return file_.size(); | 750 return file_.size(); |
687 } | 751 } |
688 inline void CodeGeneratorResponse::clear_file() { | 752 inline void CodeGeneratorResponse::clear_file() { |
689 file_.Clear(); | 753 file_.Clear(); |
690 } | 754 } |
691 inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& CodeGener
atorResponse::file(int index) const { | 755 inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& CodeGener
atorResponse::file(int index) const { |
692 return file_.Get(index); | 756 return file_.Get(index); |
(...skipping 25 matching lines...) Expand all Loading... |
718 namespace protobuf { | 782 namespace protobuf { |
719 | 783 |
720 | 784 |
721 } // namespace google | 785 } // namespace google |
722 } // namespace protobuf | 786 } // namespace protobuf |
723 #endif // SWIG | 787 #endif // SWIG |
724 | 788 |
725 // @@protoc_insertion_point(global_scope) | 789 // @@protoc_insertion_point(global_scope) |
726 | 790 |
727 #endif // PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED | 791 #endif // PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED |
OLD | NEW |