Line data Source code
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 < 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 :
33 : namespace google {
34 : namespace protobuf {
35 : namespace compiler {
36 :
37 : // Internal implementation detail -- do not call these.
38 : void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
39 : void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
40 : void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
41 :
42 : class CodeGeneratorRequest;
43 : class CodeGeneratorResponse;
44 : class CodeGeneratorResponse_File;
45 :
46 : // ===================================================================
47 :
48 : class 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 0 : inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
61 0 : return _internal_metadata_.unknown_fields();
62 : }
63 :
64 0 : inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
65 0 : 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 0 : 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 0 : 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 :
172 : class 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 0 : inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
185 0 : return _internal_metadata_.unknown_fields();
186 : }
187 :
188 0 : inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
189 0 : 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 0 : 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 16 : 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 :
296 : class 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 0 : inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
309 0 : return _internal_metadata_.unknown_fields();
310 : }
311 :
312 0 : inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
313 0 : 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 0 : 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 0 : 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;
412 : inline int CodeGeneratorRequest::file_to_generate_size() const {
413 72 : return file_to_generate_.size();
414 : }
415 : inline void CodeGeneratorRequest::clear_file_to_generate() {
416 : file_to_generate_.Clear();
417 : }
418 : inline const ::std::string& CodeGeneratorRequest::file_to_generate(int index) const {
419 : // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
420 56 : return file_to_generate_.Get(index);
421 : }
422 : inline ::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 : }
426 : inline 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 : }
430 : inline 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 : }
434 : inline 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 : }
439 : inline ::std::string* CodeGeneratorRequest::add_file_to_generate() {
440 8 : return file_to_generate_.Add();
441 : }
442 8 : inline void CodeGeneratorRequest::add_file_to_generate(const ::std::string& value) {
443 16 : file_to_generate_.Add()->assign(value);
444 : // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
445 8 : }
446 : inline 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 : }
450 : inline 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 : }
454 : inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
455 : CodeGeneratorRequest::file_to_generate() const {
456 : // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
457 : return file_to_generate_;
458 : }
459 : inline ::google::protobuf::RepeatedPtrField< ::std::string>*
460 : CodeGeneratorRequest::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;
466 : inline bool CodeGeneratorRequest::has_parameter() const {
467 24 : return (_has_bits_[0] & 0x00000002u) != 0;
468 : }
469 : inline void CodeGeneratorRequest::set_has_parameter() {
470 0 : _has_bits_[0] |= 0x00000002u;
471 : }
472 : inline void CodeGeneratorRequest::clear_has_parameter() {
473 : _has_bits_[0] &= ~0x00000002u;
474 : }
475 : inline void CodeGeneratorRequest::clear_parameter() {
476 : parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
477 : clear_has_parameter();
478 : }
479 : inline const ::std::string& CodeGeneratorRequest::parameter() const {
480 : // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.parameter)
481 8 : return parameter_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
482 : }
483 : inline void CodeGeneratorRequest::set_parameter(const ::std::string& value) {
484 0 : set_has_parameter();
485 0 : parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
486 : // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.parameter)
487 : }
488 : inline 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 : }
493 : inline 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 : }
499 0 : inline ::std::string* CodeGeneratorRequest::mutable_parameter() {
500 0 : set_has_parameter();
501 : // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.parameter)
502 0 : return parameter_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
503 : }
504 : inline ::std::string* CodeGeneratorRequest::release_parameter() {
505 : clear_has_parameter();
506 : return parameter_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
507 : }
508 : inline 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;
519 : inline int CodeGeneratorRequest::proto_file_size() const {
520 58 : return proto_file_.size();
521 : }
522 : inline void CodeGeneratorRequest::clear_proto_file() {
523 : proto_file_.Clear();
524 : }
525 : inline const ::google::protobuf::FileDescriptorProto& CodeGeneratorRequest::proto_file(int index) const {
526 : // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
527 39 : return proto_file_.Get(index);
528 : }
529 : inline ::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 : }
533 : inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::add_proto_file() {
534 : // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
535 13 : return proto_file_.Add();
536 : }
537 : inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
538 : CodeGeneratorRequest::mutable_proto_file() {
539 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
540 : return &proto_file_;
541 : }
542 : inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
543 : CodeGeneratorRequest::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;
553 : inline bool CodeGeneratorResponse_File::has_name() const {
554 32 : return (_has_bits_[0] & 0x00000001u) != 0;
555 : }
556 : inline void CodeGeneratorResponse_File::set_has_name() {
557 32 : _has_bits_[0] |= 0x00000001u;
558 : }
559 : inline void CodeGeneratorResponse_File::clear_has_name() {
560 : _has_bits_[0] &= ~0x00000001u;
561 : }
562 : inline void CodeGeneratorResponse_File::clear_name() {
563 : name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
564 : clear_has_name();
565 : }
566 : inline const ::std::string& CodeGeneratorResponse_File::name() const {
567 : // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.name)
568 128 : return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
569 : }
570 : inline void CodeGeneratorResponse_File::set_name(const ::std::string& value) {
571 16 : set_has_name();
572 16 : name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
573 : // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.name)
574 : }
575 : inline 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 : }
580 : inline 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 : }
586 16 : inline ::std::string* CodeGeneratorResponse_File::mutable_name() {
587 16 : set_has_name();
588 : // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.name)
589 32 : return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
590 : }
591 : inline ::std::string* CodeGeneratorResponse_File::release_name() {
592 : clear_has_name();
593 : return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
594 : }
595 : inline 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;
606 : inline bool CodeGeneratorResponse_File::has_insertion_point() const {
607 32 : return (_has_bits_[0] & 0x00000002u) != 0;
608 : }
609 : inline void CodeGeneratorResponse_File::set_has_insertion_point() {
610 0 : _has_bits_[0] |= 0x00000002u;
611 : }
612 : inline void CodeGeneratorResponse_File::clear_has_insertion_point() {
613 : _has_bits_[0] &= ~0x00000002u;
614 : }
615 : inline void CodeGeneratorResponse_File::clear_insertion_point() {
616 : insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
617 : clear_has_insertion_point();
618 : }
619 : inline const ::std::string& CodeGeneratorResponse_File::insertion_point() const {
620 : // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
621 16 : return insertion_point_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
622 : }
623 : inline void CodeGeneratorResponse_File::set_insertion_point(const ::std::string& value) {
624 0 : set_has_insertion_point();
625 0 : insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
626 : // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
627 : }
628 : inline 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 : }
633 : inline 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 : }
639 0 : inline ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() {
640 0 : set_has_insertion_point();
641 : // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
642 0 : return insertion_point_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
643 : }
644 : inline ::std::string* CodeGeneratorResponse_File::release_insertion_point() {
645 : clear_has_insertion_point();
646 : return insertion_point_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
647 : }
648 : inline 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;
659 : inline bool CodeGeneratorResponse_File::has_content() const {
660 32 : return (_has_bits_[0] & 0x00000004u) != 0;
661 : }
662 : inline void CodeGeneratorResponse_File::set_has_content() {
663 32 : _has_bits_[0] |= 0x00000004u;
664 : }
665 : inline void CodeGeneratorResponse_File::clear_has_content() {
666 : _has_bits_[0] &= ~0x00000004u;
667 : }
668 : inline void CodeGeneratorResponse_File::clear_content() {
669 : content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
670 : clear_has_content();
671 : }
672 : inline const ::std::string& CodeGeneratorResponse_File::content() const {
673 : // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.content)
674 112 : return content_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
675 : }
676 : inline 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 : }
681 : inline 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 : }
686 : inline 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 : }
692 32 : inline ::std::string* CodeGeneratorResponse_File::mutable_content() {
693 32 : set_has_content();
694 : // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.content)
695 64 : return content_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
696 : }
697 : inline ::std::string* CodeGeneratorResponse_File::release_content() {
698 : clear_has_content();
699 : return content_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
700 : }
701 : inline 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;
716 : inline bool CodeGeneratorResponse::has_error() const {
717 24 : return (_has_bits_[0] & 0x00000001u) != 0;
718 : }
719 : inline void CodeGeneratorResponse::set_has_error() {
720 0 : _has_bits_[0] |= 0x00000001u;
721 : }
722 : inline void CodeGeneratorResponse::clear_has_error() {
723 : _has_bits_[0] &= ~0x00000001u;
724 : }
725 : inline void CodeGeneratorResponse::clear_error() {
726 : error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
727 : clear_has_error();
728 : }
729 : inline const ::std::string& CodeGeneratorResponse::error() const {
730 : // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.error)
731 8 : return error_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
732 : }
733 : inline void CodeGeneratorResponse::set_error(const ::std::string& value) {
734 0 : set_has_error();
735 0 : error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
736 : // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.error)
737 : }
738 : inline 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 : }
743 : inline 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 : }
749 0 : inline ::std::string* CodeGeneratorResponse::mutable_error() {
750 0 : set_has_error();
751 : // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.error)
752 0 : return error_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
753 : }
754 : inline ::std::string* CodeGeneratorResponse::release_error() {
755 : clear_has_error();
756 : return error_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
757 : }
758 : inline 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;
769 : inline int CodeGeneratorResponse::file_size() const {
770 64 : return file_.size();
771 : }
772 : inline void CodeGeneratorResponse::clear_file() {
773 : file_.Clear();
774 : }
775 : inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::file(int index) const {
776 : // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.file)
777 48 : return file_.Get(index);
778 : }
779 : inline ::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 : }
783 : inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::add_file() {
784 : // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorResponse.file)
785 32 : return file_.Add();
786 : }
787 : inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >*
788 : CodeGeneratorResponse::mutable_file() {
789 : // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorResponse.file)
790 : return &file_;
791 : }
792 : inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >&
793 : CodeGeneratorResponse::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
|