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