blob: ea48b8b5bdd903155397722db00e9ceeb818ef5e [file] [log] [blame]
kenton@google.com5e744ff2009-12-18 04:51:42 +00001// 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
Feng Xiao58dfce92014-12-03 12:12:17 -080011#if GOOGLE_PROTOBUF_VERSION < 3000000
kenton@google.com5e744ff2009-12-18 04:51:42 +000012#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
Feng Xiao58dfce92014-12-03 12:12:17 -080016#if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
kenton@google.com5e744ff2009-12-18 04:51:42 +000017#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
Feng Xiao6ef984a2014-11-10 17:34:54 -080022#include <google/protobuf/arena.h>
23#include <google/protobuf/arenastring.h>
kenton@google.com5e744ff2009-12-18 04:51:42 +000024#include <google/protobuf/generated_message_util.h>
Feng Xiao6ef984a2014-11-10 17:34:54 -080025#include <google/protobuf/metadata.h>
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +000026#include <google/protobuf/message.h>
kenton@google.com5e744ff2009-12-18 04:51:42 +000027#include <google/protobuf/repeated_field.h>
28#include <google/protobuf/extension_set.h>
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +000029#include <google/protobuf/unknown_field_set.h>
kenton@google.com5e744ff2009-12-18 04:51:42 +000030#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();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +000052
kenton@google.com5e744ff2009-12-18 04:51:42 +000053 CodeGeneratorRequest(const CodeGeneratorRequest& from);
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +000054
kenton@google.com5e744ff2009-12-18 04:51:42 +000055 inline CodeGeneratorRequest& operator=(const CodeGeneratorRequest& from) {
56 CopyFrom(from);
57 return *this;
58 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +000059
kenton@google.com5e744ff2009-12-18 04:51:42 +000060 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
Feng Xiao6ef984a2014-11-10 17:34:54 -080061 return _internal_metadata_.unknown_fields();
kenton@google.com5e744ff2009-12-18 04:51:42 +000062 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +000063
kenton@google.com5e744ff2009-12-18 04:51:42 +000064 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
Feng Xiao6ef984a2014-11-10 17:34:54 -080065 return _internal_metadata_.mutable_unknown_fields();
kenton@google.com5e744ff2009-12-18 04:51:42 +000066 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +000067
kenton@google.com5e744ff2009-12-18 04:51:42 +000068 static const ::google::protobuf::Descriptor* descriptor();
69 static const CodeGeneratorRequest& default_instance();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +000070
kenton@google.com5e744ff2009-12-18 04:51:42 +000071 void Swap(CodeGeneratorRequest* other);
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +000072
kenton@google.com5e744ff2009-12-18 04:51:42 +000073 // implements Message ----------------------------------------------
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +000074
Feng Xiao6ef984a2014-11-10 17:34:54 -080075 inline CodeGeneratorRequest* New() const { return New(NULL); }
76
77 CodeGeneratorRequest* New(::google::protobuf::Arena* arena) const;
kenton@google.com5e744ff2009-12-18 04:51:42 +000078 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;
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +000084
kenton@google.com5e744ff2009-12-18 04:51:42 +000085 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;
Feng Xiao6ef984a2014-11-10 17:34:54 -080096 void InternalSwap(CodeGeneratorRequest* other);
Feng Xiao6ef984a2014-11-10 17:34:54 -080097 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 }
kenton@google.com5e744ff2009-12-18 04:51:42 +0000104 public:
Feng Xiao6ef984a2014-11-10 17:34:54 -0800105
kenton@google.com5e744ff2009-12-18 04:51:42 +0000106 ::google::protobuf::Metadata GetMetadata() const;
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000107
kenton@google.com5e744ff2009-12-18 04:51:42 +0000108 // nested types ----------------------------------------------------
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000109
kenton@google.com5e744ff2009-12-18 04:51:42 +0000110 // accessors -------------------------------------------------------
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000111
kenton@google.com5e744ff2009-12-18 04:51:42 +0000112 // repeated string file_to_generate = 1;
Jisi Liu885b6122015-02-28 14:51:22 -0800113 int file_to_generate_size() const;
114 void clear_file_to_generate();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000115 static const int kFileToGenerateFieldNumber = 1;
Jisi Liu885b6122015-02-28 14:51:22 -0800116 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();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000127
kenton@google.com5e744ff2009-12-18 04:51:42 +0000128 // optional string parameter = 2;
Jisi Liu885b6122015-02-28 14:51:22 -0800129 bool has_parameter() const;
130 void clear_parameter();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000131 static const int kParameterFieldNumber = 2;
Jisi Liu885b6122015-02-28 14:51:22 -0800132 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);
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000139
kenton@google.com5e744ff2009-12-18 04:51:42 +0000140 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
Jisi Liu885b6122015-02-28 14:51:22 -0800141 int proto_file_size() const;
142 void clear_proto_file();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000143 static const int kProtoFileFieldNumber = 15;
Jisi Liu885b6122015-02-28 14:51:22 -0800144 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 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
kenton@google.com5e744ff2009-12-18 04:51:42 +0000148 proto_file() const;
Jisi Liu885b6122015-02-28 14:51:22 -0800149 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
kenton@google.com5e744ff2009-12-18 04:51:42 +0000150 mutable_proto_file();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000151
kenton@google.com5e744ff2009-12-18 04:51:42 +0000152 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorRequest)
153 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +0000154 inline void set_has_parameter();
155 inline void clear_has_parameter();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000156
Feng Xiao6ef984a2014-11-10 17:34:54 -0800157 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
jieluo@google.com4de8f552014-07-18 00:47:59 +0000158 ::google::protobuf::uint32 _has_bits_[1];
159 mutable int _cached_size_;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000160 ::google::protobuf::RepeatedPtrField< ::std::string> file_to_generate_;
Feng Xiao6ef984a2014-11-10 17:34:54 -0800161 ::google::protobuf::internal::ArenaStringPtr parameter_;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000162 ::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();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000166
kenton@google.com5e744ff2009-12-18 04:51:42 +0000167 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();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000176
kenton@google.com5e744ff2009-12-18 04:51:42 +0000177 CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from);
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000178
kenton@google.com5e744ff2009-12-18 04:51:42 +0000179 inline CodeGeneratorResponse_File& operator=(const CodeGeneratorResponse_File& from) {
180 CopyFrom(from);
181 return *this;
182 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000183
kenton@google.com5e744ff2009-12-18 04:51:42 +0000184 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
Feng Xiao6ef984a2014-11-10 17:34:54 -0800185 return _internal_metadata_.unknown_fields();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000186 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000187
kenton@google.com5e744ff2009-12-18 04:51:42 +0000188 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
Feng Xiao6ef984a2014-11-10 17:34:54 -0800189 return _internal_metadata_.mutable_unknown_fields();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000190 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000191
kenton@google.com5e744ff2009-12-18 04:51:42 +0000192 static const ::google::protobuf::Descriptor* descriptor();
193 static const CodeGeneratorResponse_File& default_instance();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000194
kenton@google.com5e744ff2009-12-18 04:51:42 +0000195 void Swap(CodeGeneratorResponse_File* other);
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000196
kenton@google.com5e744ff2009-12-18 04:51:42 +0000197 // implements Message ----------------------------------------------
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000198
Feng Xiao6ef984a2014-11-10 17:34:54 -0800199 inline CodeGeneratorResponse_File* New() const { return New(NULL); }
200
201 CodeGeneratorResponse_File* New(::google::protobuf::Arena* arena) const;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000202 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;
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000208
kenton@google.com5e744ff2009-12-18 04:51:42 +0000209 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;
Feng Xiao6ef984a2014-11-10 17:34:54 -0800220 void InternalSwap(CodeGeneratorResponse_File* other);
Feng Xiao6ef984a2014-11-10 17:34:54 -0800221 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 }
kenton@google.com5e744ff2009-12-18 04:51:42 +0000228 public:
Feng Xiao6ef984a2014-11-10 17:34:54 -0800229
kenton@google.com5e744ff2009-12-18 04:51:42 +0000230 ::google::protobuf::Metadata GetMetadata() const;
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000231
kenton@google.com5e744ff2009-12-18 04:51:42 +0000232 // nested types ----------------------------------------------------
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000233
kenton@google.com5e744ff2009-12-18 04:51:42 +0000234 // accessors -------------------------------------------------------
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000235
kenton@google.com5e744ff2009-12-18 04:51:42 +0000236 // optional string name = 1;
Jisi Liu885b6122015-02-28 14:51:22 -0800237 bool has_name() const;
238 void clear_name();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000239 static const int kNameFieldNumber = 1;
Jisi Liu885b6122015-02-28 14:51:22 -0800240 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);
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000247
kenton@google.com5e744ff2009-12-18 04:51:42 +0000248 // optional string insertion_point = 2;
Jisi Liu885b6122015-02-28 14:51:22 -0800249 bool has_insertion_point() const;
250 void clear_insertion_point();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000251 static const int kInsertionPointFieldNumber = 2;
Jisi Liu885b6122015-02-28 14:51:22 -0800252 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);
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000259
kenton@google.com5e744ff2009-12-18 04:51:42 +0000260 // optional string content = 15;
Jisi Liu885b6122015-02-28 14:51:22 -0800261 bool has_content() const;
262 void clear_content();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000263 static const int kContentFieldNumber = 15;
Jisi Liu885b6122015-02-28 14:51:22 -0800264 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);
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000271
kenton@google.com5e744ff2009-12-18 04:51:42 +0000272 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse.File)
273 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +0000274 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();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000280
Feng Xiao6ef984a2014-11-10 17:34:54 -0800281 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
jieluo@google.com4de8f552014-07-18 00:47:59 +0000282 ::google::protobuf::uint32 _has_bits_[1];
283 mutable int _cached_size_;
Feng Xiao6ef984a2014-11-10 17:34:54 -0800284 ::google::protobuf::internal::ArenaStringPtr name_;
285 ::google::protobuf::internal::ArenaStringPtr insertion_point_;
286 ::google::protobuf::internal::ArenaStringPtr content_;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000287 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();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000290
kenton@google.com5e744ff2009-12-18 04:51:42 +0000291 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();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000300
kenton@google.com5e744ff2009-12-18 04:51:42 +0000301 CodeGeneratorResponse(const CodeGeneratorResponse& from);
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000302
kenton@google.com5e744ff2009-12-18 04:51:42 +0000303 inline CodeGeneratorResponse& operator=(const CodeGeneratorResponse& from) {
304 CopyFrom(from);
305 return *this;
306 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000307
kenton@google.com5e744ff2009-12-18 04:51:42 +0000308 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
Feng Xiao6ef984a2014-11-10 17:34:54 -0800309 return _internal_metadata_.unknown_fields();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000310 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000311
kenton@google.com5e744ff2009-12-18 04:51:42 +0000312 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
Feng Xiao6ef984a2014-11-10 17:34:54 -0800313 return _internal_metadata_.mutable_unknown_fields();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000314 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000315
kenton@google.com5e744ff2009-12-18 04:51:42 +0000316 static const ::google::protobuf::Descriptor* descriptor();
317 static const CodeGeneratorResponse& default_instance();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000318
kenton@google.com5e744ff2009-12-18 04:51:42 +0000319 void Swap(CodeGeneratorResponse* other);
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000320
kenton@google.com5e744ff2009-12-18 04:51:42 +0000321 // implements Message ----------------------------------------------
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000322
Feng Xiao6ef984a2014-11-10 17:34:54 -0800323 inline CodeGeneratorResponse* New() const { return New(NULL); }
324
325 CodeGeneratorResponse* New(::google::protobuf::Arena* arena) const;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000326 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;
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000332
kenton@google.com5e744ff2009-12-18 04:51:42 +0000333 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;
Feng Xiao6ef984a2014-11-10 17:34:54 -0800344 void InternalSwap(CodeGeneratorResponse* other);
Feng Xiao6ef984a2014-11-10 17:34:54 -0800345 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 }
kenton@google.com5e744ff2009-12-18 04:51:42 +0000352 public:
Feng Xiao6ef984a2014-11-10 17:34:54 -0800353
kenton@google.com5e744ff2009-12-18 04:51:42 +0000354 ::google::protobuf::Metadata GetMetadata() const;
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000355
kenton@google.com5e744ff2009-12-18 04:51:42 +0000356 // nested types ----------------------------------------------------
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000357
kenton@google.com5e744ff2009-12-18 04:51:42 +0000358 typedef CodeGeneratorResponse_File File;
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000359
kenton@google.com5e744ff2009-12-18 04:51:42 +0000360 // accessors -------------------------------------------------------
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000361
kenton@google.com5e744ff2009-12-18 04:51:42 +0000362 // optional string error = 1;
Jisi Liu885b6122015-02-28 14:51:22 -0800363 bool has_error() const;
364 void clear_error();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000365 static const int kErrorFieldNumber = 1;
Jisi Liu885b6122015-02-28 14:51:22 -0800366 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);
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000373
kenton@google.com5e744ff2009-12-18 04:51:42 +0000374 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
Jisi Liu885b6122015-02-28 14:51:22 -0800375 int file_size() const;
376 void clear_file();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000377 static const int kFileFieldNumber = 15;
Jisi Liu885b6122015-02-28 14:51:22 -0800378 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 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >&
kenton@google.com5e744ff2009-12-18 04:51:42 +0000382 file() const;
Jisi Liu885b6122015-02-28 14:51:22 -0800383 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >*
kenton@google.com5e744ff2009-12-18 04:51:42 +0000384 mutable_file();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000385
kenton@google.com5e744ff2009-12-18 04:51:42 +0000386 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse)
387 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +0000388 inline void set_has_error();
389 inline void clear_has_error();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000390
Feng Xiao6ef984a2014-11-10 17:34:54 -0800391 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
jieluo@google.com4de8f552014-07-18 00:47:59 +0000392 ::google::protobuf::uint32 _has_bits_[1];
393 mutable int _cached_size_;
Feng Xiao6ef984a2014-11-10 17:34:54 -0800394 ::google::protobuf::internal::ArenaStringPtr error_;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000395 ::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();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000399
kenton@google.com5e744ff2009-12-18 04:51:42 +0000400 void InitAsDefaultInstance();
401 static CodeGeneratorResponse* default_instance_;
402};
403// ===================================================================
404
405
406// ===================================================================
407
Jisi Liu885b6122015-02-28 14:51:22 -0800408#if !PROTOBUF_INLINE_NOT_IN_HEADERS
kenton@google.com5e744ff2009-12-18 04:51:42 +0000409// 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 {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000419 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000420 return file_to_generate_.Get(index);
421}
422inline ::std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000423 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000424 return file_to_generate_.Mutable(index);
425}
426inline void CodeGeneratorRequest::set_file_to_generate(int index, const ::std::string& value) {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000427 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000428 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);
jieluo@google.com4de8f552014-07-18 00:47:59 +0000432 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000433}
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);
jieluo@google.com4de8f552014-07-18 00:47:59 +0000437 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000438}
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);
jieluo@google.com4de8f552014-07-18 00:47:59 +0000444 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000445}
446inline void CodeGeneratorRequest::add_file_to_generate(const char* value) {
447 file_to_generate_.Add()->assign(value);
jieluo@google.com4de8f552014-07-18 00:47:59 +0000448 // @@protoc_insertion_point(field_add_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000449}
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);
jieluo@google.com4de8f552014-07-18 00:47:59 +0000452 // @@protoc_insertion_point(field_add_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000453}
454inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
455CodeGeneratorRequest::file_to_generate() const {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000456 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000457 return file_to_generate_;
458}
459inline ::google::protobuf::RepeatedPtrField< ::std::string>*
460CodeGeneratorRequest::mutable_file_to_generate() {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000461 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000462 return &file_to_generate_;
463}
464
465// optional string parameter = 2;
466inline bool CodeGeneratorRequest::has_parameter() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000467 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;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000474}
475inline void CodeGeneratorRequest::clear_parameter() {
Feng Xiaof157a562014-11-14 11:50:31 -0800476 parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
liujisi@google.com33165fe2010-11-02 13:14:58 +0000477 clear_has_parameter();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000478}
479inline const ::std::string& CodeGeneratorRequest::parameter() const {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000480 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.parameter)
Feng Xiaof157a562014-11-14 11:50:31 -0800481 return parameter_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000482}
483inline void CodeGeneratorRequest::set_parameter(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000484 set_has_parameter();
Feng Xiaof157a562014-11-14 11:50:31 -0800485 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
jieluo@google.com4de8f552014-07-18 00:47:59 +0000486 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.parameter)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000487}
488inline void CodeGeneratorRequest::set_parameter(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000489 set_has_parameter();
Feng Xiaof157a562014-11-14 11:50:31 -0800490 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
jieluo@google.com4de8f552014-07-18 00:47:59 +0000491 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorRequest.parameter)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000492}
Feng Xiaof157a562014-11-14 11:50:31 -0800493inline void CodeGeneratorRequest::set_parameter(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000494 set_has_parameter();
Feng Xiaof157a562014-11-14 11:50:31 -0800495 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
496 ::std::string(reinterpret_cast<const char*>(value), size));
jieluo@google.com4de8f552014-07-18 00:47:59 +0000497 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorRequest.parameter)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000498}
499inline ::std::string* CodeGeneratorRequest::mutable_parameter() {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000500 set_has_parameter();
jieluo@google.com4de8f552014-07-18 00:47:59 +0000501 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.parameter)
Feng Xiaof157a562014-11-14 11:50:31 -0800502 return parameter_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000503}
liujisi@google.com33165fe2010-11-02 13:14:58 +0000504inline ::std::string* CodeGeneratorRequest::release_parameter() {
505 clear_has_parameter();
Feng Xiaof157a562014-11-14 11:50:31 -0800506 return parameter_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
liujisi@google.com33165fe2010-11-02 13:14:58 +0000507}
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000508inline void CodeGeneratorRequest::set_allocated_parameter(::std::string* parameter) {
Feng Xiao6ef984a2014-11-10 17:34:54 -0800509 if (parameter != NULL) {
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000510 set_has_parameter();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000511 } else {
512 clear_has_parameter();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000513 }
Feng Xiaof157a562014-11-14 11:50:31 -0800514 parameter_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parameter);
jieluo@google.com4de8f552014-07-18 00:47:59 +0000515 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorRequest.parameter)
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000516}
kenton@google.com5e744ff2009-12-18 04:51:42 +0000517
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 {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000526 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000527 return proto_file_.Get(index);
528}
529inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::mutable_proto_file(int index) {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000530 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000531 return proto_file_.Mutable(index);
532}
533inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::add_proto_file() {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000534 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000535 return proto_file_.Add();
536}
537inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
538CodeGeneratorRequest::proto_file() const {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000539 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000540 return proto_file_;
541}
542inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
543CodeGeneratorRequest::mutable_proto_file() {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000544 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000545 return &proto_file_;
546}
547
548// -------------------------------------------------------------------
549
550// CodeGeneratorResponse_File
551
552// optional string name = 1;
553inline bool CodeGeneratorResponse_File::has_name() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000554 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;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000561}
562inline void CodeGeneratorResponse_File::clear_name() {
Feng Xiaof157a562014-11-14 11:50:31 -0800563 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
liujisi@google.com33165fe2010-11-02 13:14:58 +0000564 clear_has_name();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000565}
566inline const ::std::string& CodeGeneratorResponse_File::name() const {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000567 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.name)
Feng Xiaof157a562014-11-14 11:50:31 -0800568 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000569}
570inline void CodeGeneratorResponse_File::set_name(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000571 set_has_name();
Feng Xiaof157a562014-11-14 11:50:31 -0800572 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
jieluo@google.com4de8f552014-07-18 00:47:59 +0000573 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.name)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000574}
575inline void CodeGeneratorResponse_File::set_name(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000576 set_has_name();
Feng Xiaof157a562014-11-14 11:50:31 -0800577 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
jieluo@google.com4de8f552014-07-18 00:47:59 +0000578 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.name)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000579}
Feng Xiaof157a562014-11-14 11:50:31 -0800580inline void CodeGeneratorResponse_File::set_name(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000581 set_has_name();
Feng Xiaof157a562014-11-14 11:50:31 -0800582 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
583 ::std::string(reinterpret_cast<const char*>(value), size));
jieluo@google.com4de8f552014-07-18 00:47:59 +0000584 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.name)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000585}
586inline ::std::string* CodeGeneratorResponse_File::mutable_name() {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000587 set_has_name();
jieluo@google.com4de8f552014-07-18 00:47:59 +0000588 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.name)
Feng Xiaof157a562014-11-14 11:50:31 -0800589 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000590}
liujisi@google.com33165fe2010-11-02 13:14:58 +0000591inline ::std::string* CodeGeneratorResponse_File::release_name() {
592 clear_has_name();
Feng Xiaof157a562014-11-14 11:50:31 -0800593 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
liujisi@google.com33165fe2010-11-02 13:14:58 +0000594}
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000595inline void CodeGeneratorResponse_File::set_allocated_name(::std::string* name) {
Feng Xiao6ef984a2014-11-10 17:34:54 -0800596 if (name != NULL) {
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000597 set_has_name();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000598 } else {
599 clear_has_name();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000600 }
Feng Xiaof157a562014-11-14 11:50:31 -0800601 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
jieluo@google.com4de8f552014-07-18 00:47:59 +0000602 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.name)
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000603}
kenton@google.com5e744ff2009-12-18 04:51:42 +0000604
605// optional string insertion_point = 2;
606inline bool CodeGeneratorResponse_File::has_insertion_point() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000607 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;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000614}
615inline void CodeGeneratorResponse_File::clear_insertion_point() {
Feng Xiaof157a562014-11-14 11:50:31 -0800616 insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
liujisi@google.com33165fe2010-11-02 13:14:58 +0000617 clear_has_insertion_point();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000618}
619inline const ::std::string& CodeGeneratorResponse_File::insertion_point() const {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000620 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
Feng Xiaof157a562014-11-14 11:50:31 -0800621 return insertion_point_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000622}
623inline void CodeGeneratorResponse_File::set_insertion_point(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000624 set_has_insertion_point();
Feng Xiaof157a562014-11-14 11:50:31 -0800625 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
jieluo@google.com4de8f552014-07-18 00:47:59 +0000626 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000627}
628inline void CodeGeneratorResponse_File::set_insertion_point(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000629 set_has_insertion_point();
Feng Xiaof157a562014-11-14 11:50:31 -0800630 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
jieluo@google.com4de8f552014-07-18 00:47:59 +0000631 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000632}
Feng Xiaof157a562014-11-14 11:50:31 -0800633inline void CodeGeneratorResponse_File::set_insertion_point(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000634 set_has_insertion_point();
Feng Xiaof157a562014-11-14 11:50:31 -0800635 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
636 ::std::string(reinterpret_cast<const char*>(value), size));
jieluo@google.com4de8f552014-07-18 00:47:59 +0000637 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000638}
639inline ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000640 set_has_insertion_point();
jieluo@google.com4de8f552014-07-18 00:47:59 +0000641 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
Feng Xiaof157a562014-11-14 11:50:31 -0800642 return insertion_point_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000643}
liujisi@google.com33165fe2010-11-02 13:14:58 +0000644inline ::std::string* CodeGeneratorResponse_File::release_insertion_point() {
645 clear_has_insertion_point();
Feng Xiaof157a562014-11-14 11:50:31 -0800646 return insertion_point_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
liujisi@google.com33165fe2010-11-02 13:14:58 +0000647}
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000648inline void CodeGeneratorResponse_File::set_allocated_insertion_point(::std::string* insertion_point) {
Feng Xiao6ef984a2014-11-10 17:34:54 -0800649 if (insertion_point != NULL) {
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000650 set_has_insertion_point();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000651 } else {
652 clear_has_insertion_point();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000653 }
Feng Xiaof157a562014-11-14 11:50:31 -0800654 insertion_point_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), insertion_point);
jieluo@google.com4de8f552014-07-18 00:47:59 +0000655 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000656}
kenton@google.com5e744ff2009-12-18 04:51:42 +0000657
658// optional string content = 15;
659inline bool CodeGeneratorResponse_File::has_content() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000660 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;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000667}
668inline void CodeGeneratorResponse_File::clear_content() {
Feng Xiaof157a562014-11-14 11:50:31 -0800669 content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
liujisi@google.com33165fe2010-11-02 13:14:58 +0000670 clear_has_content();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000671}
672inline const ::std::string& CodeGeneratorResponse_File::content() const {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000673 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.content)
Feng Xiaof157a562014-11-14 11:50:31 -0800674 return content_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000675}
676inline void CodeGeneratorResponse_File::set_content(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000677 set_has_content();
Feng Xiaof157a562014-11-14 11:50:31 -0800678 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
jieluo@google.com4de8f552014-07-18 00:47:59 +0000679 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.content)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000680}
681inline void CodeGeneratorResponse_File::set_content(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000682 set_has_content();
Feng Xiaof157a562014-11-14 11:50:31 -0800683 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
jieluo@google.com4de8f552014-07-18 00:47:59 +0000684 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.content)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000685}
Feng Xiaof157a562014-11-14 11:50:31 -0800686inline void CodeGeneratorResponse_File::set_content(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000687 set_has_content();
Feng Xiaof157a562014-11-14 11:50:31 -0800688 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
689 ::std::string(reinterpret_cast<const char*>(value), size));
jieluo@google.com4de8f552014-07-18 00:47:59 +0000690 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.content)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000691}
692inline ::std::string* CodeGeneratorResponse_File::mutable_content() {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000693 set_has_content();
jieluo@google.com4de8f552014-07-18 00:47:59 +0000694 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.content)
Feng Xiaof157a562014-11-14 11:50:31 -0800695 return content_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000696}
liujisi@google.com33165fe2010-11-02 13:14:58 +0000697inline ::std::string* CodeGeneratorResponse_File::release_content() {
698 clear_has_content();
Feng Xiaof157a562014-11-14 11:50:31 -0800699 return content_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
liujisi@google.com33165fe2010-11-02 13:14:58 +0000700}
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000701inline void CodeGeneratorResponse_File::set_allocated_content(::std::string* content) {
Feng Xiao6ef984a2014-11-10 17:34:54 -0800702 if (content != NULL) {
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000703 set_has_content();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000704 } else {
705 clear_has_content();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000706 }
Feng Xiaof157a562014-11-14 11:50:31 -0800707 content_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), content);
jieluo@google.com4de8f552014-07-18 00:47:59 +0000708 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.content)
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000709}
kenton@google.com5e744ff2009-12-18 04:51:42 +0000710
711// -------------------------------------------------------------------
712
713// CodeGeneratorResponse
714
715// optional string error = 1;
716inline bool CodeGeneratorResponse::has_error() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000717 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;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000724}
725inline void CodeGeneratorResponse::clear_error() {
Feng Xiaof157a562014-11-14 11:50:31 -0800726 error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
liujisi@google.com33165fe2010-11-02 13:14:58 +0000727 clear_has_error();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000728}
729inline const ::std::string& CodeGeneratorResponse::error() const {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000730 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.error)
Feng Xiaof157a562014-11-14 11:50:31 -0800731 return error_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000732}
733inline void CodeGeneratorResponse::set_error(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000734 set_has_error();
Feng Xiaof157a562014-11-14 11:50:31 -0800735 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
jieluo@google.com4de8f552014-07-18 00:47:59 +0000736 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.error)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000737}
738inline void CodeGeneratorResponse::set_error(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000739 set_has_error();
Feng Xiaof157a562014-11-14 11:50:31 -0800740 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
jieluo@google.com4de8f552014-07-18 00:47:59 +0000741 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.error)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000742}
Feng Xiaof157a562014-11-14 11:50:31 -0800743inline void CodeGeneratorResponse::set_error(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000744 set_has_error();
Feng Xiaof157a562014-11-14 11:50:31 -0800745 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
746 ::std::string(reinterpret_cast<const char*>(value), size));
jieluo@google.com4de8f552014-07-18 00:47:59 +0000747 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.error)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000748}
749inline ::std::string* CodeGeneratorResponse::mutable_error() {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000750 set_has_error();
jieluo@google.com4de8f552014-07-18 00:47:59 +0000751 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.error)
Feng Xiaof157a562014-11-14 11:50:31 -0800752 return error_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000753}
liujisi@google.com33165fe2010-11-02 13:14:58 +0000754inline ::std::string* CodeGeneratorResponse::release_error() {
755 clear_has_error();
Feng Xiaof157a562014-11-14 11:50:31 -0800756 return error_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
liujisi@google.com33165fe2010-11-02 13:14:58 +0000757}
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000758inline void CodeGeneratorResponse::set_allocated_error(::std::string* error) {
Feng Xiao6ef984a2014-11-10 17:34:54 -0800759 if (error != NULL) {
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000760 set_has_error();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000761 } else {
762 clear_has_error();
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000763 }
Feng Xiaof157a562014-11-14 11:50:31 -0800764 error_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error);
jieluo@google.com4de8f552014-07-18 00:47:59 +0000765 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.error)
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000766}
kenton@google.com5e744ff2009-12-18 04:51:42 +0000767
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 {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000776 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.file)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000777 return file_.Get(index);
778}
779inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::mutable_file(int index) {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000780 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.file)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000781 return file_.Mutable(index);
782}
783inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::add_file() {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000784 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorResponse.file)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000785 return file_.Add();
786}
787inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >&
788CodeGeneratorResponse::file() const {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000789 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorResponse.file)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000790 return file_;
791}
792inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >*
793CodeGeneratorResponse::mutable_file() {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000794 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorResponse.file)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000795 return &file_;
796}
797
Jisi Liu885b6122015-02-28 14:51:22 -0800798#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
kenton@google.com5e744ff2009-12-18 04:51:42 +0000799
800// @@protoc_insertion_point(namespace_scope)
801
802} // namespace compiler
803} // namespace protobuf
804} // namespace google
805
kenton@google.com5e744ff2009-12-18 04:51:42 +0000806// @@protoc_insertion_point(global_scope)
807
808#endif // PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED