blob: fed1726a0699bf8477b1adcea924dbca9f19dccf [file] [log] [blame]
kenton@google.com5e744ff2009-12-18 04:51:42 +00001// Generated by the protocol buffer compiler. DO NOT EDIT!
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +00002// source: google/protobuf/compiler/plugin.proto
kenton@google.com5e744ff2009-12-18 04:51:42 +00003
4#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5#include "google/protobuf/compiler/plugin.pb.h"
kenton@google.comc65c0412010-02-01 20:35:34 +00006
7#include <algorithm>
8
pliard@google.com75575df2012-10-02 00:15:46 +00009#include <google/protobuf/stubs/common.h>
kenton@google.com5e744ff2009-12-18 04:51:42 +000010#include <google/protobuf/stubs/once.h>
11#include <google/protobuf/io/coded_stream.h>
12#include <google/protobuf/wire_format_lite_inl.h>
13#include <google/protobuf/descriptor.h>
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +000014#include <google/protobuf/generated_message_reflection.h>
kenton@google.com5e744ff2009-12-18 04:51:42 +000015#include <google/protobuf/reflection_ops.h>
16#include <google/protobuf/wire_format.h>
17// @@protoc_insertion_point(includes)
18
19namespace google {
20namespace protobuf {
21namespace compiler {
22
23namespace {
24
25const ::google::protobuf::Descriptor* CodeGeneratorRequest_descriptor_ = NULL;
26const ::google::protobuf::internal::GeneratedMessageReflection*
27 CodeGeneratorRequest_reflection_ = NULL;
28const ::google::protobuf::Descriptor* CodeGeneratorResponse_descriptor_ = NULL;
29const ::google::protobuf::internal::GeneratedMessageReflection*
30 CodeGeneratorResponse_reflection_ = NULL;
31const ::google::protobuf::Descriptor* CodeGeneratorResponse_File_descriptor_ = NULL;
32const ::google::protobuf::internal::GeneratedMessageReflection*
33 CodeGeneratorResponse_File_reflection_ = NULL;
34
35} // namespace
36
37
38void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
39 protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
40 const ::google::protobuf::FileDescriptor* file =
41 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
42 "google/protobuf/compiler/plugin.proto");
43 GOOGLE_CHECK(file != NULL);
44 CodeGeneratorRequest_descriptor_ = file->message_type(0);
45 static const int CodeGeneratorRequest_offsets_[3] = {
46 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, file_to_generate_),
47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, parameter_),
48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, proto_file_),
49 };
50 CodeGeneratorRequest_reflection_ =
Feng Xiaof157a562014-11-14 11:50:31 -080051 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
kenton@google.com5e744ff2009-12-18 04:51:42 +000052 CodeGeneratorRequest_descriptor_,
53 CodeGeneratorRequest::default_instance_,
54 CodeGeneratorRequest_offsets_,
55 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, _has_bits_[0]),
Feng Xiao6ef984a2014-11-10 17:34:54 -080056 -1,
kenton@google.com5e744ff2009-12-18 04:51:42 +000057 -1,
Feng Xiao6ef984a2014-11-10 17:34:54 -080058 sizeof(CodeGeneratorRequest),
Feng Xiaoc25d9fe2014-11-26 16:15:29 -080059 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, _internal_metadata_),
60 -1);
kenton@google.com5e744ff2009-12-18 04:51:42 +000061 CodeGeneratorResponse_descriptor_ = file->message_type(1);
62 static const int CodeGeneratorResponse_offsets_[2] = {
63 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, error_),
64 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, file_),
65 };
66 CodeGeneratorResponse_reflection_ =
Feng Xiaof157a562014-11-14 11:50:31 -080067 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
kenton@google.com5e744ff2009-12-18 04:51:42 +000068 CodeGeneratorResponse_descriptor_,
69 CodeGeneratorResponse::default_instance_,
70 CodeGeneratorResponse_offsets_,
71 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, _has_bits_[0]),
Feng Xiao6ef984a2014-11-10 17:34:54 -080072 -1,
kenton@google.com5e744ff2009-12-18 04:51:42 +000073 -1,
Feng Xiao6ef984a2014-11-10 17:34:54 -080074 sizeof(CodeGeneratorResponse),
Feng Xiaoc25d9fe2014-11-26 16:15:29 -080075 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, _internal_metadata_),
76 -1);
kenton@google.com5e744ff2009-12-18 04:51:42 +000077 CodeGeneratorResponse_File_descriptor_ = CodeGeneratorResponse_descriptor_->nested_type(0);
78 static const int CodeGeneratorResponse_File_offsets_[3] = {
79 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, name_),
80 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, insertion_point_),
81 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, content_),
82 };
83 CodeGeneratorResponse_File_reflection_ =
Feng Xiaof157a562014-11-14 11:50:31 -080084 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
kenton@google.com5e744ff2009-12-18 04:51:42 +000085 CodeGeneratorResponse_File_descriptor_,
86 CodeGeneratorResponse_File::default_instance_,
87 CodeGeneratorResponse_File_offsets_,
88 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, _has_bits_[0]),
Feng Xiao6ef984a2014-11-10 17:34:54 -080089 -1,
kenton@google.com5e744ff2009-12-18 04:51:42 +000090 -1,
Feng Xiao6ef984a2014-11-10 17:34:54 -080091 sizeof(CodeGeneratorResponse_File),
Feng Xiaoc25d9fe2014-11-26 16:15:29 -080092 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, _internal_metadata_),
93 -1);
kenton@google.com5e744ff2009-12-18 04:51:42 +000094}
95
96namespace {
97
98GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
99inline void protobuf_AssignDescriptorsOnce() {
100 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
101 &protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto);
102}
103
104void protobuf_RegisterTypes(const ::std::string&) {
105 protobuf_AssignDescriptorsOnce();
106 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Feng Xiaof157a562014-11-14 11:50:31 -0800107 CodeGeneratorRequest_descriptor_, &CodeGeneratorRequest::default_instance());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000108 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Feng Xiaof157a562014-11-14 11:50:31 -0800109 CodeGeneratorResponse_descriptor_, &CodeGeneratorResponse::default_instance());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000110 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Feng Xiaof157a562014-11-14 11:50:31 -0800111 CodeGeneratorResponse_File_descriptor_, &CodeGeneratorResponse_File::default_instance());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000112}
113
114} // namespace
115
116void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
117 delete CodeGeneratorRequest::default_instance_;
118 delete CodeGeneratorRequest_reflection_;
119 delete CodeGeneratorResponse::default_instance_;
120 delete CodeGeneratorResponse_reflection_;
121 delete CodeGeneratorResponse_File::default_instance_;
122 delete CodeGeneratorResponse_File_reflection_;
123}
124
125void protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
126 static bool already_here = false;
127 if (already_here) return;
128 already_here = true;
129 GOOGLE_PROTOBUF_VERIFY_VERSION;
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000130
kenton@google.com5e744ff2009-12-18 04:51:42 +0000131 ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
132 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
133 "\n%google/protobuf/compiler/plugin.proto\022"
134 "\030google.protobuf.compiler\032 google/protob"
135 "uf/descriptor.proto\"}\n\024CodeGeneratorRequ"
136 "est\022\030\n\020file_to_generate\030\001 \003(\t\022\021\n\tparamet"
137 "er\030\002 \001(\t\0228\n\nproto_file\030\017 \003(\0132$.google.pr"
138 "otobuf.FileDescriptorProto\"\252\001\n\025CodeGener"
139 "atorResponse\022\r\n\005error\030\001 \001(\t\022B\n\004file\030\017 \003("
140 "\01324.google.protobuf.compiler.CodeGenerat"
141 "orResponse.File\032>\n\004File\022\014\n\004name\030\001 \001(\t\022\027\n"
liujisi@google.com2273ee42012-12-05 23:47:43 +0000142 "\017insertion_point\030\002 \001(\t\022\017\n\007content\030\017 \001(\tB"
Jisi Liu885b6122015-02-28 14:51:22 -0800143 "7\n\034com.google.protobuf.compilerB\014PluginP"
144 "rotosZ\tplugin_go", 456);
kenton@google.com5e744ff2009-12-18 04:51:42 +0000145 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
146 "google/protobuf/compiler/plugin.proto", &protobuf_RegisterTypes);
147 CodeGeneratorRequest::default_instance_ = new CodeGeneratorRequest();
148 CodeGeneratorResponse::default_instance_ = new CodeGeneratorResponse();
149 CodeGeneratorResponse_File::default_instance_ = new CodeGeneratorResponse_File();
150 CodeGeneratorRequest::default_instance_->InitAsDefaultInstance();
151 CodeGeneratorResponse::default_instance_->InitAsDefaultInstance();
152 CodeGeneratorResponse_File::default_instance_->InitAsDefaultInstance();
153 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto);
154}
155
156// Force AddDescriptors() to be called at static initialization time.
157struct StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto {
158 StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
159 protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
160 }
161} static_descriptor_initializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto_;
162
Feng Xiaof157a562014-11-14 11:50:31 -0800163namespace {
164
165static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD;
166static void MergeFromFail(int line) {
167 GOOGLE_CHECK(false) << __FILE__ << ":" << line;
168}
169
170} // namespace
171
172
kenton@google.com5e744ff2009-12-18 04:51:42 +0000173// ===================================================================
174
kenton@google.com5e744ff2009-12-18 04:51:42 +0000175#ifndef _MSC_VER
176const int CodeGeneratorRequest::kFileToGenerateFieldNumber;
177const int CodeGeneratorRequest::kParameterFieldNumber;
178const int CodeGeneratorRequest::kProtoFileFieldNumber;
179#endif // !_MSC_VER
180
181CodeGeneratorRequest::CodeGeneratorRequest()
Feng Xiao6ef984a2014-11-10 17:34:54 -0800182 : ::google::protobuf::Message() , _internal_metadata_(NULL) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000183 SharedCtor();
jieluo@google.com4de8f552014-07-18 00:47:59 +0000184 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGeneratorRequest)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000185}
186
187void CodeGeneratorRequest::InitAsDefaultInstance() {
188}
189
190CodeGeneratorRequest::CodeGeneratorRequest(const CodeGeneratorRequest& from)
Feng Xiao6ef984a2014-11-10 17:34:54 -0800191 : ::google::protobuf::Message(),
192 _internal_metadata_(NULL) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000193 SharedCtor();
194 MergeFrom(from);
jieluo@google.com4de8f552014-07-18 00:47:59 +0000195 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorRequest)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000196}
197
198void CodeGeneratorRequest::SharedCtor() {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000199 ::google::protobuf::internal::GetEmptyString();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000200 _cached_size_ = 0;
Feng Xiao6ef984a2014-11-10 17:34:54 -0800201 parameter_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000202 ::memset(_has_bits_, 0, sizeof(_has_bits_));
203}
204
205CodeGeneratorRequest::~CodeGeneratorRequest() {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000206 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorRequest)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000207 SharedDtor();
208}
209
210void CodeGeneratorRequest::SharedDtor() {
Feng Xiaof157a562014-11-14 11:50:31 -0800211 parameter_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000212 if (this != default_instance_) {
213 }
214}
215
216void CodeGeneratorRequest::SetCachedSize(int size) const {
217 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
218 _cached_size_ = size;
219 GOOGLE_SAFE_CONCURRENT_WRITES_END();
220}
221const ::google::protobuf::Descriptor* CodeGeneratorRequest::descriptor() {
222 protobuf_AssignDescriptorsOnce();
223 return CodeGeneratorRequest_descriptor_;
224}
225
226const CodeGeneratorRequest& CodeGeneratorRequest::default_instance() {
pliard@google.com6103d4e2012-05-04 11:16:09 +0000227 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
228 return *default_instance_;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000229}
230
231CodeGeneratorRequest* CodeGeneratorRequest::default_instance_ = NULL;
232
Feng Xiao6ef984a2014-11-10 17:34:54 -0800233CodeGeneratorRequest* CodeGeneratorRequest::New(::google::protobuf::Arena* arena) const {
Feng Xiaof157a562014-11-14 11:50:31 -0800234 CodeGeneratorRequest* n = new CodeGeneratorRequest;
235 if (arena != NULL) {
236 arena->Own(n);
237 }
238 return n;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000239}
240
241void CodeGeneratorRequest::Clear() {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000242 if (has_parameter()) {
Feng Xiaof157a562014-11-14 11:50:31 -0800243 parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000244 }
245 file_to_generate_.Clear();
246 proto_file_.Clear();
247 ::memset(_has_bits_, 0, sizeof(_has_bits_));
Feng Xiao6ef984a2014-11-10 17:34:54 -0800248 if (_internal_metadata_.have_unknown_fields()) {
249 mutable_unknown_fields()->Clear();
250 }
kenton@google.com5e744ff2009-12-18 04:51:42 +0000251}
252
253bool CodeGeneratorRequest::MergePartialFromCodedStream(
254 ::google::protobuf::io::CodedInputStream* input) {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000255#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
kenton@google.com5e744ff2009-12-18 04:51:42 +0000256 ::google::protobuf::uint32 tag;
jieluo@google.com4de8f552014-07-18 00:47:59 +0000257 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGeneratorRequest)
258 for (;;) {
259 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
260 tag = p.first;
261 if (!p.second) goto handle_unusual;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000262 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
263 // repeated string file_to_generate = 1;
264 case 1: {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000265 if (tag == 10) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000266 parse_file_to_generate:
267 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
268 input, this->add_file_to_generate()));
jieluo@google.com4de8f552014-07-18 00:47:59 +0000269 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
xiaofeng@google.com20724212012-05-16 05:41:31 +0000270 this->file_to_generate(this->file_to_generate_size() - 1).data(),
271 this->file_to_generate(this->file_to_generate_size() - 1).length(),
jieluo@google.com4de8f552014-07-18 00:47:59 +0000272 ::google::protobuf::internal::WireFormat::PARSE,
Feng Xiao6ef984a2014-11-10 17:34:54 -0800273 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
kenton@google.com5e744ff2009-12-18 04:51:42 +0000274 } else {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000275 goto handle_unusual;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000276 }
277 if (input->ExpectTag(10)) goto parse_file_to_generate;
278 if (input->ExpectTag(18)) goto parse_parameter;
279 break;
280 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000281
kenton@google.com5e744ff2009-12-18 04:51:42 +0000282 // optional string parameter = 2;
283 case 2: {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000284 if (tag == 18) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000285 parse_parameter:
286 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
287 input, this->mutable_parameter()));
jieluo@google.com4de8f552014-07-18 00:47:59 +0000288 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
kenton@google.com5e744ff2009-12-18 04:51:42 +0000289 this->parameter().data(), this->parameter().length(),
jieluo@google.com4de8f552014-07-18 00:47:59 +0000290 ::google::protobuf::internal::WireFormat::PARSE,
Feng Xiao6ef984a2014-11-10 17:34:54 -0800291 "google.protobuf.compiler.CodeGeneratorRequest.parameter");
kenton@google.com5e744ff2009-12-18 04:51:42 +0000292 } else {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000293 goto handle_unusual;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000294 }
295 if (input->ExpectTag(122)) goto parse_proto_file;
296 break;
297 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000298
kenton@google.com5e744ff2009-12-18 04:51:42 +0000299 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
300 case 15: {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000301 if (tag == 122) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000302 parse_proto_file:
303 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
304 input, add_proto_file()));
305 } else {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000306 goto handle_unusual;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000307 }
308 if (input->ExpectTag(122)) goto parse_proto_file;
jieluo@google.com4de8f552014-07-18 00:47:59 +0000309 if (input->ExpectAtEnd()) goto success;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000310 break;
311 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000312
kenton@google.com5e744ff2009-12-18 04:51:42 +0000313 default: {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000314 handle_unusual:
315 if (tag == 0 ||
316 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
kenton@google.com5e744ff2009-12-18 04:51:42 +0000317 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000318 goto success;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000319 }
320 DO_(::google::protobuf::internal::WireFormat::SkipField(
321 input, tag, mutable_unknown_fields()));
322 break;
323 }
324 }
325 }
jieluo@google.com4de8f552014-07-18 00:47:59 +0000326success:
327 // @@protoc_insertion_point(parse_success:google.protobuf.compiler.CodeGeneratorRequest)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000328 return true;
jieluo@google.com4de8f552014-07-18 00:47:59 +0000329failure:
330 // @@protoc_insertion_point(parse_failure:google.protobuf.compiler.CodeGeneratorRequest)
331 return false;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000332#undef DO_
333}
334
335void CodeGeneratorRequest::SerializeWithCachedSizes(
336 ::google::protobuf::io::CodedOutputStream* output) const {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000337 // @@protoc_insertion_point(serialize_start:google.protobuf.compiler.CodeGeneratorRequest)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000338 // repeated string file_to_generate = 1;
339 for (int i = 0; i < this->file_to_generate_size(); i++) {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000340 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
kenton@google.com5e744ff2009-12-18 04:51:42 +0000341 this->file_to_generate(i).data(), this->file_to_generate(i).length(),
jieluo@google.com4de8f552014-07-18 00:47:59 +0000342 ::google::protobuf::internal::WireFormat::SERIALIZE,
Feng Xiao6ef984a2014-11-10 17:34:54 -0800343 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
kenton@google.com5e744ff2009-12-18 04:51:42 +0000344 ::google::protobuf::internal::WireFormatLite::WriteString(
345 1, this->file_to_generate(i), output);
346 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000347
kenton@google.com5e744ff2009-12-18 04:51:42 +0000348 // optional string parameter = 2;
liujisi@google.com33165fe2010-11-02 13:14:58 +0000349 if (has_parameter()) {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000350 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
kenton@google.com5e744ff2009-12-18 04:51:42 +0000351 this->parameter().data(), this->parameter().length(),
jieluo@google.com4de8f552014-07-18 00:47:59 +0000352 ::google::protobuf::internal::WireFormat::SERIALIZE,
Feng Xiao6ef984a2014-11-10 17:34:54 -0800353 "google.protobuf.compiler.CodeGeneratorRequest.parameter");
jieluo@google.com4de8f552014-07-18 00:47:59 +0000354 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
kenton@google.com5e744ff2009-12-18 04:51:42 +0000355 2, this->parameter(), output);
356 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000357
kenton@google.com5e744ff2009-12-18 04:51:42 +0000358 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
Feng Xiaof157a562014-11-14 11:50:31 -0800359 for (unsigned int i = 0, n = this->proto_file_size(); i < n; i++) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000360 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
361 15, this->proto_file(i), output);
362 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000363
Feng Xiao6ef984a2014-11-10 17:34:54 -0800364 if (_internal_metadata_.have_unknown_fields()) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000365 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
366 unknown_fields(), output);
367 }
jieluo@google.com4de8f552014-07-18 00:47:59 +0000368 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGeneratorRequest)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000369}
370
371::google::protobuf::uint8* CodeGeneratorRequest::SerializeWithCachedSizesToArray(
372 ::google::protobuf::uint8* target) const {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000373 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorRequest)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000374 // repeated string file_to_generate = 1;
375 for (int i = 0; i < this->file_to_generate_size(); i++) {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000376 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
kenton@google.com5e744ff2009-12-18 04:51:42 +0000377 this->file_to_generate(i).data(), this->file_to_generate(i).length(),
jieluo@google.com4de8f552014-07-18 00:47:59 +0000378 ::google::protobuf::internal::WireFormat::SERIALIZE,
Feng Xiao6ef984a2014-11-10 17:34:54 -0800379 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
kenton@google.com5e744ff2009-12-18 04:51:42 +0000380 target = ::google::protobuf::internal::WireFormatLite::
381 WriteStringToArray(1, this->file_to_generate(i), target);
382 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000383
kenton@google.com5e744ff2009-12-18 04:51:42 +0000384 // optional string parameter = 2;
liujisi@google.com33165fe2010-11-02 13:14:58 +0000385 if (has_parameter()) {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000386 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
kenton@google.com5e744ff2009-12-18 04:51:42 +0000387 this->parameter().data(), this->parameter().length(),
jieluo@google.com4de8f552014-07-18 00:47:59 +0000388 ::google::protobuf::internal::WireFormat::SERIALIZE,
Feng Xiao6ef984a2014-11-10 17:34:54 -0800389 "google.protobuf.compiler.CodeGeneratorRequest.parameter");
kenton@google.com5e744ff2009-12-18 04:51:42 +0000390 target =
391 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
392 2, this->parameter(), target);
393 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000394
kenton@google.com5e744ff2009-12-18 04:51:42 +0000395 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
Feng Xiaof157a562014-11-14 11:50:31 -0800396 for (unsigned int i = 0, n = this->proto_file_size(); i < n; i++) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000397 target = ::google::protobuf::internal::WireFormatLite::
398 WriteMessageNoVirtualToArray(
399 15, this->proto_file(i), target);
400 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000401
Feng Xiao6ef984a2014-11-10 17:34:54 -0800402 if (_internal_metadata_.have_unknown_fields()) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000403 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
404 unknown_fields(), target);
405 }
jieluo@google.com4de8f552014-07-18 00:47:59 +0000406 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorRequest)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000407 return target;
408}
409
410int CodeGeneratorRequest::ByteSize() const {
411 int total_size = 0;
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000412
Feng Xiao6ef984a2014-11-10 17:34:54 -0800413 // optional string parameter = 2;
414 if (has_parameter()) {
415 total_size += 1 +
416 ::google::protobuf::internal::WireFormatLite::StringSize(
417 this->parameter());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000418 }
Feng Xiao6ef984a2014-11-10 17:34:54 -0800419
kenton@google.com5e744ff2009-12-18 04:51:42 +0000420 // repeated string file_to_generate = 1;
421 total_size += 1 * this->file_to_generate_size();
422 for (int i = 0; i < this->file_to_generate_size(); i++) {
423 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
424 this->file_to_generate(i));
425 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000426
kenton@google.com5e744ff2009-12-18 04:51:42 +0000427 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
428 total_size += 1 * this->proto_file_size();
429 for (int i = 0; i < this->proto_file_size(); i++) {
430 total_size +=
431 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
432 this->proto_file(i));
433 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000434
Feng Xiao6ef984a2014-11-10 17:34:54 -0800435 if (_internal_metadata_.have_unknown_fields()) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000436 total_size +=
437 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
438 unknown_fields());
439 }
440 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
441 _cached_size_ = total_size;
442 GOOGLE_SAFE_CONCURRENT_WRITES_END();
443 return total_size;
444}
445
446void CodeGeneratorRequest::MergeFrom(const ::google::protobuf::Message& from) {
Feng Xiaof157a562014-11-14 11:50:31 -0800447 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
kenton@google.com5e744ff2009-12-18 04:51:42 +0000448 const CodeGeneratorRequest* source =
449 ::google::protobuf::internal::dynamic_cast_if_available<const CodeGeneratorRequest*>(
450 &from);
451 if (source == NULL) {
452 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
453 } else {
454 MergeFrom(*source);
455 }
456}
457
458void CodeGeneratorRequest::MergeFrom(const CodeGeneratorRequest& from) {
Feng Xiaof157a562014-11-14 11:50:31 -0800459 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
kenton@google.com5e744ff2009-12-18 04:51:42 +0000460 file_to_generate_.MergeFrom(from.file_to_generate_);
461 proto_file_.MergeFrom(from.proto_file_);
462 if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000463 if (from.has_parameter()) {
Feng Xiaof157a562014-11-14 11:50:31 -0800464 set_has_parameter();
465 parameter_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parameter_);
kenton@google.com5e744ff2009-12-18 04:51:42 +0000466 }
467 }
Feng Xiao6ef984a2014-11-10 17:34:54 -0800468 if (from._internal_metadata_.have_unknown_fields()) {
469 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
470 }
kenton@google.com5e744ff2009-12-18 04:51:42 +0000471}
472
473void CodeGeneratorRequest::CopyFrom(const ::google::protobuf::Message& from) {
474 if (&from == this) return;
475 Clear();
476 MergeFrom(from);
477}
478
479void CodeGeneratorRequest::CopyFrom(const CodeGeneratorRequest& from) {
480 if (&from == this) return;
481 Clear();
482 MergeFrom(from);
483}
484
485bool CodeGeneratorRequest::IsInitialized() const {
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000486
jieluo@google.com4de8f552014-07-18 00:47:59 +0000487 if (!::google::protobuf::internal::AllAreInitialized(this->proto_file())) return false;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000488 return true;
489}
490
491void CodeGeneratorRequest::Swap(CodeGeneratorRequest* other) {
Feng Xiao6ef984a2014-11-10 17:34:54 -0800492 if (other == this) return;
Feng Xiao6ef984a2014-11-10 17:34:54 -0800493 InternalSwap(other);
494}
495void CodeGeneratorRequest::InternalSwap(CodeGeneratorRequest* other) {
496 file_to_generate_.UnsafeArenaSwap(&other->file_to_generate_);
497 parameter_.Swap(&other->parameter_);
498 proto_file_.UnsafeArenaSwap(&other->proto_file_);
499 std::swap(_has_bits_[0], other->_has_bits_[0]);
500 _internal_metadata_.Swap(&other->_internal_metadata_);
501 std::swap(_cached_size_, other->_cached_size_);
502}
kenton@google.com5e744ff2009-12-18 04:51:42 +0000503
504::google::protobuf::Metadata CodeGeneratorRequest::GetMetadata() const {
505 protobuf_AssignDescriptorsOnce();
506 ::google::protobuf::Metadata metadata;
507 metadata.descriptor = CodeGeneratorRequest_descriptor_;
508 metadata.reflection = CodeGeneratorRequest_reflection_;
509 return metadata;
510}
511
Jisi Liu885b6122015-02-28 14:51:22 -0800512#if PROTOBUF_INLINE_NOT_IN_HEADERS
513// CodeGeneratorRequest
514
515// repeated string file_to_generate = 1;
516 int CodeGeneratorRequest::file_to_generate_size() const {
517 return file_to_generate_.size();
518}
519 void CodeGeneratorRequest::clear_file_to_generate() {
520 file_to_generate_.Clear();
521}
522 const ::std::string& CodeGeneratorRequest::file_to_generate(int index) const {
523 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
524 return file_to_generate_.Get(index);
525}
526 ::std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) {
527 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
528 return file_to_generate_.Mutable(index);
529}
530 void CodeGeneratorRequest::set_file_to_generate(int index, const ::std::string& value) {
531 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
532 file_to_generate_.Mutable(index)->assign(value);
533}
534 void CodeGeneratorRequest::set_file_to_generate(int index, const char* value) {
535 file_to_generate_.Mutable(index)->assign(value);
536 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
537}
538 void CodeGeneratorRequest::set_file_to_generate(int index, const char* value, size_t size) {
539 file_to_generate_.Mutable(index)->assign(
540 reinterpret_cast<const char*>(value), size);
541 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
542}
543 ::std::string* CodeGeneratorRequest::add_file_to_generate() {
544 return file_to_generate_.Add();
545}
546 void CodeGeneratorRequest::add_file_to_generate(const ::std::string& value) {
547 file_to_generate_.Add()->assign(value);
548 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
549}
550 void CodeGeneratorRequest::add_file_to_generate(const char* value) {
551 file_to_generate_.Add()->assign(value);
552 // @@protoc_insertion_point(field_add_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
553}
554 void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t size) {
555 file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size);
556 // @@protoc_insertion_point(field_add_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
557}
558 const ::google::protobuf::RepeatedPtrField< ::std::string>&
559CodeGeneratorRequest::file_to_generate() const {
560 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
561 return file_to_generate_;
562}
563 ::google::protobuf::RepeatedPtrField< ::std::string>*
564CodeGeneratorRequest::mutable_file_to_generate() {
565 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
566 return &file_to_generate_;
567}
568
569// optional string parameter = 2;
570 bool CodeGeneratorRequest::has_parameter() const {
571 return (_has_bits_[0] & 0x00000002u) != 0;
572}
573 void CodeGeneratorRequest::set_has_parameter() {
574 _has_bits_[0] |= 0x00000002u;
575}
576 void CodeGeneratorRequest::clear_has_parameter() {
577 _has_bits_[0] &= ~0x00000002u;
578}
579 void CodeGeneratorRequest::clear_parameter() {
580 parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
581 clear_has_parameter();
582}
583 const ::std::string& CodeGeneratorRequest::parameter() const {
584 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.parameter)
585 return parameter_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
586}
587 void CodeGeneratorRequest::set_parameter(const ::std::string& value) {
588 set_has_parameter();
589 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
590 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.parameter)
591}
592 void CodeGeneratorRequest::set_parameter(const char* value) {
593 set_has_parameter();
594 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
595 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorRequest.parameter)
596}
597 void CodeGeneratorRequest::set_parameter(const char* value, size_t size) {
598 set_has_parameter();
599 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
600 ::std::string(reinterpret_cast<const char*>(value), size));
601 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorRequest.parameter)
602}
603 ::std::string* CodeGeneratorRequest::mutable_parameter() {
604 set_has_parameter();
605 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.parameter)
606 return parameter_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
607}
608 ::std::string* CodeGeneratorRequest::release_parameter() {
609 clear_has_parameter();
610 return parameter_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
611}
612 void CodeGeneratorRequest::set_allocated_parameter(::std::string* parameter) {
613 if (parameter != NULL) {
614 set_has_parameter();
615 } else {
616 clear_has_parameter();
617 }
618 parameter_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parameter);
619 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorRequest.parameter)
620}
621
622// repeated .google.protobuf.FileDescriptorProto proto_file = 15;
623 int CodeGeneratorRequest::proto_file_size() const {
624 return proto_file_.size();
625}
626 void CodeGeneratorRequest::clear_proto_file() {
627 proto_file_.Clear();
628}
629 const ::google::protobuf::FileDescriptorProto& CodeGeneratorRequest::proto_file(int index) const {
630 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
631 return proto_file_.Get(index);
632}
633 ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::mutable_proto_file(int index) {
634 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
635 return proto_file_.Mutable(index);
636}
637 ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::add_proto_file() {
638 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
639 return proto_file_.Add();
640}
641 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
642CodeGeneratorRequest::proto_file() const {
643 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
644 return proto_file_;
645}
646 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
647CodeGeneratorRequest::mutable_proto_file() {
648 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
649 return &proto_file_;
650}
651
652#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
kenton@google.com5e744ff2009-12-18 04:51:42 +0000653
654// ===================================================================
655
kenton@google.com5e744ff2009-12-18 04:51:42 +0000656#ifndef _MSC_VER
657const int CodeGeneratorResponse_File::kNameFieldNumber;
658const int CodeGeneratorResponse_File::kInsertionPointFieldNumber;
659const int CodeGeneratorResponse_File::kContentFieldNumber;
660#endif // !_MSC_VER
661
662CodeGeneratorResponse_File::CodeGeneratorResponse_File()
Feng Xiao6ef984a2014-11-10 17:34:54 -0800663 : ::google::protobuf::Message() , _internal_metadata_(NULL) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000664 SharedCtor();
jieluo@google.com4de8f552014-07-18 00:47:59 +0000665 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGeneratorResponse.File)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000666}
667
668void CodeGeneratorResponse_File::InitAsDefaultInstance() {
669}
670
671CodeGeneratorResponse_File::CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from)
Feng Xiao6ef984a2014-11-10 17:34:54 -0800672 : ::google::protobuf::Message(),
673 _internal_metadata_(NULL) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000674 SharedCtor();
675 MergeFrom(from);
jieluo@google.com4de8f552014-07-18 00:47:59 +0000676 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorResponse.File)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000677}
678
679void CodeGeneratorResponse_File::SharedCtor() {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000680 ::google::protobuf::internal::GetEmptyString();
kenton@google.com5e744ff2009-12-18 04:51:42 +0000681 _cached_size_ = 0;
Feng Xiao6ef984a2014-11-10 17:34:54 -0800682 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
683 insertion_point_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
684 content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000685 ::memset(_has_bits_, 0, sizeof(_has_bits_));
686}
687
688CodeGeneratorResponse_File::~CodeGeneratorResponse_File() {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000689 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorResponse.File)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000690 SharedDtor();
691}
692
693void CodeGeneratorResponse_File::SharedDtor() {
Feng Xiaof157a562014-11-14 11:50:31 -0800694 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
695 insertion_point_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
696 content_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000697 if (this != default_instance_) {
698 }
699}
700
701void CodeGeneratorResponse_File::SetCachedSize(int size) const {
702 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
703 _cached_size_ = size;
704 GOOGLE_SAFE_CONCURRENT_WRITES_END();
705}
706const ::google::protobuf::Descriptor* CodeGeneratorResponse_File::descriptor() {
707 protobuf_AssignDescriptorsOnce();
708 return CodeGeneratorResponse_File_descriptor_;
709}
710
711const CodeGeneratorResponse_File& CodeGeneratorResponse_File::default_instance() {
pliard@google.com6103d4e2012-05-04 11:16:09 +0000712 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
713 return *default_instance_;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000714}
715
716CodeGeneratorResponse_File* CodeGeneratorResponse_File::default_instance_ = NULL;
717
Feng Xiao6ef984a2014-11-10 17:34:54 -0800718CodeGeneratorResponse_File* CodeGeneratorResponse_File::New(::google::protobuf::Arena* arena) const {
Feng Xiaof157a562014-11-14 11:50:31 -0800719 CodeGeneratorResponse_File* n = new CodeGeneratorResponse_File;
720 if (arena != NULL) {
721 arena->Own(n);
722 }
723 return n;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000724}
725
726void CodeGeneratorResponse_File::Clear() {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000727 if (_has_bits_[0 / 32] & 7) {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000728 if (has_name()) {
Feng Xiaof157a562014-11-14 11:50:31 -0800729 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000730 }
liujisi@google.com33165fe2010-11-02 13:14:58 +0000731 if (has_insertion_point()) {
Feng Xiaof157a562014-11-14 11:50:31 -0800732 insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000733 }
liujisi@google.com33165fe2010-11-02 13:14:58 +0000734 if (has_content()) {
Feng Xiaof157a562014-11-14 11:50:31 -0800735 content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +0000736 }
737 }
738 ::memset(_has_bits_, 0, sizeof(_has_bits_));
Feng Xiao6ef984a2014-11-10 17:34:54 -0800739 if (_internal_metadata_.have_unknown_fields()) {
740 mutable_unknown_fields()->Clear();
741 }
kenton@google.com5e744ff2009-12-18 04:51:42 +0000742}
743
744bool CodeGeneratorResponse_File::MergePartialFromCodedStream(
745 ::google::protobuf::io::CodedInputStream* input) {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000746#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
kenton@google.com5e744ff2009-12-18 04:51:42 +0000747 ::google::protobuf::uint32 tag;
jieluo@google.com4de8f552014-07-18 00:47:59 +0000748 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGeneratorResponse.File)
749 for (;;) {
750 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
751 tag = p.first;
752 if (!p.second) goto handle_unusual;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000753 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
754 // optional string name = 1;
755 case 1: {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000756 if (tag == 10) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000757 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
758 input, this->mutable_name()));
jieluo@google.com4de8f552014-07-18 00:47:59 +0000759 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
kenton@google.com5e744ff2009-12-18 04:51:42 +0000760 this->name().data(), this->name().length(),
jieluo@google.com4de8f552014-07-18 00:47:59 +0000761 ::google::protobuf::internal::WireFormat::PARSE,
Feng Xiao6ef984a2014-11-10 17:34:54 -0800762 "google.protobuf.compiler.CodeGeneratorResponse.File.name");
kenton@google.com5e744ff2009-12-18 04:51:42 +0000763 } else {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000764 goto handle_unusual;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000765 }
766 if (input->ExpectTag(18)) goto parse_insertion_point;
767 break;
768 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000769
kenton@google.com5e744ff2009-12-18 04:51:42 +0000770 // optional string insertion_point = 2;
771 case 2: {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000772 if (tag == 18) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000773 parse_insertion_point:
774 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
775 input, this->mutable_insertion_point()));
jieluo@google.com4de8f552014-07-18 00:47:59 +0000776 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
kenton@google.com5e744ff2009-12-18 04:51:42 +0000777 this->insertion_point().data(), this->insertion_point().length(),
jieluo@google.com4de8f552014-07-18 00:47:59 +0000778 ::google::protobuf::internal::WireFormat::PARSE,
Feng Xiao6ef984a2014-11-10 17:34:54 -0800779 "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point");
kenton@google.com5e744ff2009-12-18 04:51:42 +0000780 } else {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000781 goto handle_unusual;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000782 }
783 if (input->ExpectTag(122)) goto parse_content;
784 break;
785 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000786
kenton@google.com5e744ff2009-12-18 04:51:42 +0000787 // optional string content = 15;
788 case 15: {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000789 if (tag == 122) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000790 parse_content:
791 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
792 input, this->mutable_content()));
jieluo@google.com4de8f552014-07-18 00:47:59 +0000793 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
kenton@google.com5e744ff2009-12-18 04:51:42 +0000794 this->content().data(), this->content().length(),
jieluo@google.com4de8f552014-07-18 00:47:59 +0000795 ::google::protobuf::internal::WireFormat::PARSE,
Feng Xiao6ef984a2014-11-10 17:34:54 -0800796 "google.protobuf.compiler.CodeGeneratorResponse.File.content");
kenton@google.com5e744ff2009-12-18 04:51:42 +0000797 } else {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000798 goto handle_unusual;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000799 }
jieluo@google.com4de8f552014-07-18 00:47:59 +0000800 if (input->ExpectAtEnd()) goto success;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000801 break;
802 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000803
kenton@google.com5e744ff2009-12-18 04:51:42 +0000804 default: {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000805 handle_unusual:
806 if (tag == 0 ||
807 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
kenton@google.com5e744ff2009-12-18 04:51:42 +0000808 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000809 goto success;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000810 }
811 DO_(::google::protobuf::internal::WireFormat::SkipField(
812 input, tag, mutable_unknown_fields()));
813 break;
814 }
815 }
816 }
jieluo@google.com4de8f552014-07-18 00:47:59 +0000817success:
818 // @@protoc_insertion_point(parse_success:google.protobuf.compiler.CodeGeneratorResponse.File)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000819 return true;
jieluo@google.com4de8f552014-07-18 00:47:59 +0000820failure:
821 // @@protoc_insertion_point(parse_failure:google.protobuf.compiler.CodeGeneratorResponse.File)
822 return false;
kenton@google.com5e744ff2009-12-18 04:51:42 +0000823#undef DO_
824}
825
826void CodeGeneratorResponse_File::SerializeWithCachedSizes(
827 ::google::protobuf::io::CodedOutputStream* output) const {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000828 // @@protoc_insertion_point(serialize_start:google.protobuf.compiler.CodeGeneratorResponse.File)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000829 // optional string name = 1;
liujisi@google.com33165fe2010-11-02 13:14:58 +0000830 if (has_name()) {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000831 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
kenton@google.com5e744ff2009-12-18 04:51:42 +0000832 this->name().data(), this->name().length(),
jieluo@google.com4de8f552014-07-18 00:47:59 +0000833 ::google::protobuf::internal::WireFormat::SERIALIZE,
Feng Xiao6ef984a2014-11-10 17:34:54 -0800834 "google.protobuf.compiler.CodeGeneratorResponse.File.name");
jieluo@google.com4de8f552014-07-18 00:47:59 +0000835 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
kenton@google.com5e744ff2009-12-18 04:51:42 +0000836 1, this->name(), output);
837 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000838
kenton@google.com5e744ff2009-12-18 04:51:42 +0000839 // optional string insertion_point = 2;
liujisi@google.com33165fe2010-11-02 13:14:58 +0000840 if (has_insertion_point()) {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000841 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
kenton@google.com5e744ff2009-12-18 04:51:42 +0000842 this->insertion_point().data(), this->insertion_point().length(),
jieluo@google.com4de8f552014-07-18 00:47:59 +0000843 ::google::protobuf::internal::WireFormat::SERIALIZE,
Feng Xiao6ef984a2014-11-10 17:34:54 -0800844 "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point");
jieluo@google.com4de8f552014-07-18 00:47:59 +0000845 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
kenton@google.com5e744ff2009-12-18 04:51:42 +0000846 2, this->insertion_point(), output);
847 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000848
kenton@google.com5e744ff2009-12-18 04:51:42 +0000849 // optional string content = 15;
liujisi@google.com33165fe2010-11-02 13:14:58 +0000850 if (has_content()) {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000851 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
kenton@google.com5e744ff2009-12-18 04:51:42 +0000852 this->content().data(), this->content().length(),
jieluo@google.com4de8f552014-07-18 00:47:59 +0000853 ::google::protobuf::internal::WireFormat::SERIALIZE,
Feng Xiao6ef984a2014-11-10 17:34:54 -0800854 "google.protobuf.compiler.CodeGeneratorResponse.File.content");
jieluo@google.com4de8f552014-07-18 00:47:59 +0000855 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
kenton@google.com5e744ff2009-12-18 04:51:42 +0000856 15, this->content(), output);
857 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000858
Feng Xiao6ef984a2014-11-10 17:34:54 -0800859 if (_internal_metadata_.have_unknown_fields()) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000860 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
861 unknown_fields(), output);
862 }
jieluo@google.com4de8f552014-07-18 00:47:59 +0000863 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGeneratorResponse.File)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000864}
865
866::google::protobuf::uint8* CodeGeneratorResponse_File::SerializeWithCachedSizesToArray(
867 ::google::protobuf::uint8* target) const {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000868 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse.File)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000869 // optional string name = 1;
liujisi@google.com33165fe2010-11-02 13:14:58 +0000870 if (has_name()) {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000871 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
kenton@google.com5e744ff2009-12-18 04:51:42 +0000872 this->name().data(), this->name().length(),
jieluo@google.com4de8f552014-07-18 00:47:59 +0000873 ::google::protobuf::internal::WireFormat::SERIALIZE,
Feng Xiao6ef984a2014-11-10 17:34:54 -0800874 "google.protobuf.compiler.CodeGeneratorResponse.File.name");
kenton@google.com5e744ff2009-12-18 04:51:42 +0000875 target =
876 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
877 1, this->name(), target);
878 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000879
kenton@google.com5e744ff2009-12-18 04:51:42 +0000880 // optional string insertion_point = 2;
liujisi@google.com33165fe2010-11-02 13:14:58 +0000881 if (has_insertion_point()) {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000882 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
kenton@google.com5e744ff2009-12-18 04:51:42 +0000883 this->insertion_point().data(), this->insertion_point().length(),
jieluo@google.com4de8f552014-07-18 00:47:59 +0000884 ::google::protobuf::internal::WireFormat::SERIALIZE,
Feng Xiao6ef984a2014-11-10 17:34:54 -0800885 "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point");
kenton@google.com5e744ff2009-12-18 04:51:42 +0000886 target =
887 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
888 2, this->insertion_point(), target);
889 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000890
kenton@google.com5e744ff2009-12-18 04:51:42 +0000891 // optional string content = 15;
liujisi@google.com33165fe2010-11-02 13:14:58 +0000892 if (has_content()) {
jieluo@google.com4de8f552014-07-18 00:47:59 +0000893 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
kenton@google.com5e744ff2009-12-18 04:51:42 +0000894 this->content().data(), this->content().length(),
jieluo@google.com4de8f552014-07-18 00:47:59 +0000895 ::google::protobuf::internal::WireFormat::SERIALIZE,
Feng Xiao6ef984a2014-11-10 17:34:54 -0800896 "google.protobuf.compiler.CodeGeneratorResponse.File.content");
kenton@google.com5e744ff2009-12-18 04:51:42 +0000897 target =
898 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
899 15, this->content(), target);
900 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000901
Feng Xiao6ef984a2014-11-10 17:34:54 -0800902 if (_internal_metadata_.have_unknown_fields()) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000903 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
904 unknown_fields(), target);
905 }
jieluo@google.com4de8f552014-07-18 00:47:59 +0000906 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorResponse.File)
kenton@google.com5e744ff2009-12-18 04:51:42 +0000907 return target;
908}
909
910int CodeGeneratorResponse_File::ByteSize() const {
911 int total_size = 0;
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000912
Feng Xiao6ef984a2014-11-10 17:34:54 -0800913 if (_has_bits_[0 / 32] & 7) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000914 // optional string name = 1;
915 if (has_name()) {
916 total_size += 1 +
917 ::google::protobuf::internal::WireFormatLite::StringSize(
918 this->name());
919 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000920
kenton@google.com5e744ff2009-12-18 04:51:42 +0000921 // optional string insertion_point = 2;
922 if (has_insertion_point()) {
923 total_size += 1 +
924 ::google::protobuf::internal::WireFormatLite::StringSize(
925 this->insertion_point());
926 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000927
kenton@google.com5e744ff2009-12-18 04:51:42 +0000928 // optional string content = 15;
929 if (has_content()) {
930 total_size += 1 +
931 ::google::protobuf::internal::WireFormatLite::StringSize(
932 this->content());
933 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000934
kenton@google.com5e744ff2009-12-18 04:51:42 +0000935 }
Feng Xiao6ef984a2014-11-10 17:34:54 -0800936 if (_internal_metadata_.have_unknown_fields()) {
kenton@google.com5e744ff2009-12-18 04:51:42 +0000937 total_size +=
938 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
939 unknown_fields());
940 }
941 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
942 _cached_size_ = total_size;
943 GOOGLE_SAFE_CONCURRENT_WRITES_END();
944 return total_size;
945}
946
947void CodeGeneratorResponse_File::MergeFrom(const ::google::protobuf::Message& from) {
Feng Xiaof157a562014-11-14 11:50:31 -0800948 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
kenton@google.com5e744ff2009-12-18 04:51:42 +0000949 const CodeGeneratorResponse_File* source =
950 ::google::protobuf::internal::dynamic_cast_if_available<const CodeGeneratorResponse_File*>(
951 &from);
952 if (source == NULL) {
953 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
954 } else {
955 MergeFrom(*source);
956 }
957}
958
959void CodeGeneratorResponse_File::MergeFrom(const CodeGeneratorResponse_File& from) {
Feng Xiaof157a562014-11-14 11:50:31 -0800960 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
kenton@google.com5e744ff2009-12-18 04:51:42 +0000961 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
liujisi@google.com33165fe2010-11-02 13:14:58 +0000962 if (from.has_name()) {
Feng Xiaof157a562014-11-14 11:50:31 -0800963 set_has_name();
964 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
kenton@google.com5e744ff2009-12-18 04:51:42 +0000965 }
liujisi@google.com33165fe2010-11-02 13:14:58 +0000966 if (from.has_insertion_point()) {
Feng Xiaof157a562014-11-14 11:50:31 -0800967 set_has_insertion_point();
968 insertion_point_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.insertion_point_);
kenton@google.com5e744ff2009-12-18 04:51:42 +0000969 }
liujisi@google.com33165fe2010-11-02 13:14:58 +0000970 if (from.has_content()) {
Feng Xiaof157a562014-11-14 11:50:31 -0800971 set_has_content();
972 content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.content_);
kenton@google.com5e744ff2009-12-18 04:51:42 +0000973 }
974 }
Feng Xiao6ef984a2014-11-10 17:34:54 -0800975 if (from._internal_metadata_.have_unknown_fields()) {
976 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
977 }
kenton@google.com5e744ff2009-12-18 04:51:42 +0000978}
979
980void CodeGeneratorResponse_File::CopyFrom(const ::google::protobuf::Message& from) {
981 if (&from == this) return;
982 Clear();
983 MergeFrom(from);
984}
985
986void CodeGeneratorResponse_File::CopyFrom(const CodeGeneratorResponse_File& from) {
987 if (&from == this) return;
988 Clear();
989 MergeFrom(from);
990}
991
992bool CodeGeneratorResponse_File::IsInitialized() const {
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000993
kenton@google.com5e744ff2009-12-18 04:51:42 +0000994 return true;
995}
996
997void CodeGeneratorResponse_File::Swap(CodeGeneratorResponse_File* other) {
Feng Xiao6ef984a2014-11-10 17:34:54 -0800998 if (other == this) return;
Feng Xiao6ef984a2014-11-10 17:34:54 -0800999 InternalSwap(other);
1000}
1001void CodeGeneratorResponse_File::InternalSwap(CodeGeneratorResponse_File* other) {
1002 name_.Swap(&other->name_);
1003 insertion_point_.Swap(&other->insertion_point_);
1004 content_.Swap(&other->content_);
1005 std::swap(_has_bits_[0], other->_has_bits_[0]);
1006 _internal_metadata_.Swap(&other->_internal_metadata_);
1007 std::swap(_cached_size_, other->_cached_size_);
1008}
kenton@google.com5e744ff2009-12-18 04:51:42 +00001009
1010::google::protobuf::Metadata CodeGeneratorResponse_File::GetMetadata() const {
1011 protobuf_AssignDescriptorsOnce();
1012 ::google::protobuf::Metadata metadata;
1013 metadata.descriptor = CodeGeneratorResponse_File_descriptor_;
1014 metadata.reflection = CodeGeneratorResponse_File_reflection_;
1015 return metadata;
1016}
1017
1018
1019// -------------------------------------------------------------------
1020
kenton@google.com5e744ff2009-12-18 04:51:42 +00001021#ifndef _MSC_VER
1022const int CodeGeneratorResponse::kErrorFieldNumber;
1023const int CodeGeneratorResponse::kFileFieldNumber;
1024#endif // !_MSC_VER
1025
1026CodeGeneratorResponse::CodeGeneratorResponse()
Feng Xiao6ef984a2014-11-10 17:34:54 -08001027 : ::google::protobuf::Message() , _internal_metadata_(NULL) {
kenton@google.com5e744ff2009-12-18 04:51:42 +00001028 SharedCtor();
jieluo@google.com4de8f552014-07-18 00:47:59 +00001029 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGeneratorResponse)
kenton@google.com5e744ff2009-12-18 04:51:42 +00001030}
1031
1032void CodeGeneratorResponse::InitAsDefaultInstance() {
1033}
1034
1035CodeGeneratorResponse::CodeGeneratorResponse(const CodeGeneratorResponse& from)
Feng Xiao6ef984a2014-11-10 17:34:54 -08001036 : ::google::protobuf::Message(),
1037 _internal_metadata_(NULL) {
kenton@google.com5e744ff2009-12-18 04:51:42 +00001038 SharedCtor();
1039 MergeFrom(from);
jieluo@google.com4de8f552014-07-18 00:47:59 +00001040 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorResponse)
kenton@google.com5e744ff2009-12-18 04:51:42 +00001041}
1042
1043void CodeGeneratorResponse::SharedCtor() {
jieluo@google.com4de8f552014-07-18 00:47:59 +00001044 ::google::protobuf::internal::GetEmptyString();
kenton@google.com5e744ff2009-12-18 04:51:42 +00001045 _cached_size_ = 0;
Feng Xiao6ef984a2014-11-10 17:34:54 -08001046 error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +00001047 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1048}
1049
1050CodeGeneratorResponse::~CodeGeneratorResponse() {
jieluo@google.com4de8f552014-07-18 00:47:59 +00001051 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorResponse)
kenton@google.com5e744ff2009-12-18 04:51:42 +00001052 SharedDtor();
1053}
1054
1055void CodeGeneratorResponse::SharedDtor() {
Feng Xiaof157a562014-11-14 11:50:31 -08001056 error_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +00001057 if (this != default_instance_) {
1058 }
1059}
1060
1061void CodeGeneratorResponse::SetCachedSize(int size) const {
1062 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1063 _cached_size_ = size;
1064 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1065}
1066const ::google::protobuf::Descriptor* CodeGeneratorResponse::descriptor() {
1067 protobuf_AssignDescriptorsOnce();
1068 return CodeGeneratorResponse_descriptor_;
1069}
1070
1071const CodeGeneratorResponse& CodeGeneratorResponse::default_instance() {
pliard@google.com6103d4e2012-05-04 11:16:09 +00001072 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
1073 return *default_instance_;
kenton@google.com5e744ff2009-12-18 04:51:42 +00001074}
1075
1076CodeGeneratorResponse* CodeGeneratorResponse::default_instance_ = NULL;
1077
Feng Xiao6ef984a2014-11-10 17:34:54 -08001078CodeGeneratorResponse* CodeGeneratorResponse::New(::google::protobuf::Arena* arena) const {
Feng Xiaof157a562014-11-14 11:50:31 -08001079 CodeGeneratorResponse* n = new CodeGeneratorResponse;
1080 if (arena != NULL) {
1081 arena->Own(n);
1082 }
1083 return n;
kenton@google.com5e744ff2009-12-18 04:51:42 +00001084}
1085
1086void CodeGeneratorResponse::Clear() {
jieluo@google.com4de8f552014-07-18 00:47:59 +00001087 if (has_error()) {
Feng Xiaof157a562014-11-14 11:50:31 -08001088 error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
kenton@google.com5e744ff2009-12-18 04:51:42 +00001089 }
1090 file_.Clear();
1091 ::memset(_has_bits_, 0, sizeof(_has_bits_));
Feng Xiao6ef984a2014-11-10 17:34:54 -08001092 if (_internal_metadata_.have_unknown_fields()) {
1093 mutable_unknown_fields()->Clear();
1094 }
kenton@google.com5e744ff2009-12-18 04:51:42 +00001095}
1096
1097bool CodeGeneratorResponse::MergePartialFromCodedStream(
1098 ::google::protobuf::io::CodedInputStream* input) {
jieluo@google.com4de8f552014-07-18 00:47:59 +00001099#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
kenton@google.com5e744ff2009-12-18 04:51:42 +00001100 ::google::protobuf::uint32 tag;
jieluo@google.com4de8f552014-07-18 00:47:59 +00001101 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGeneratorResponse)
1102 for (;;) {
1103 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1104 tag = p.first;
1105 if (!p.second) goto handle_unusual;
kenton@google.com5e744ff2009-12-18 04:51:42 +00001106 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1107 // optional string error = 1;
1108 case 1: {
jieluo@google.com4de8f552014-07-18 00:47:59 +00001109 if (tag == 10) {
kenton@google.com5e744ff2009-12-18 04:51:42 +00001110 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1111 input, this->mutable_error()));
jieluo@google.com4de8f552014-07-18 00:47:59 +00001112 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
kenton@google.com5e744ff2009-12-18 04:51:42 +00001113 this->error().data(), this->error().length(),
jieluo@google.com4de8f552014-07-18 00:47:59 +00001114 ::google::protobuf::internal::WireFormat::PARSE,
Feng Xiao6ef984a2014-11-10 17:34:54 -08001115 "google.protobuf.compiler.CodeGeneratorResponse.error");
kenton@google.com5e744ff2009-12-18 04:51:42 +00001116 } else {
jieluo@google.com4de8f552014-07-18 00:47:59 +00001117 goto handle_unusual;
kenton@google.com5e744ff2009-12-18 04:51:42 +00001118 }
1119 if (input->ExpectTag(122)) goto parse_file;
1120 break;
1121 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +00001122
kenton@google.com5e744ff2009-12-18 04:51:42 +00001123 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
1124 case 15: {
jieluo@google.com4de8f552014-07-18 00:47:59 +00001125 if (tag == 122) {
kenton@google.com5e744ff2009-12-18 04:51:42 +00001126 parse_file:
1127 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1128 input, add_file()));
1129 } else {
jieluo@google.com4de8f552014-07-18 00:47:59 +00001130 goto handle_unusual;
kenton@google.com5e744ff2009-12-18 04:51:42 +00001131 }
1132 if (input->ExpectTag(122)) goto parse_file;
jieluo@google.com4de8f552014-07-18 00:47:59 +00001133 if (input->ExpectAtEnd()) goto success;
kenton@google.com5e744ff2009-12-18 04:51:42 +00001134 break;
1135 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +00001136
kenton@google.com5e744ff2009-12-18 04:51:42 +00001137 default: {
jieluo@google.com4de8f552014-07-18 00:47:59 +00001138 handle_unusual:
1139 if (tag == 0 ||
1140 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
kenton@google.com5e744ff2009-12-18 04:51:42 +00001141 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
jieluo@google.com4de8f552014-07-18 00:47:59 +00001142 goto success;
kenton@google.com5e744ff2009-12-18 04:51:42 +00001143 }
1144 DO_(::google::protobuf::internal::WireFormat::SkipField(
1145 input, tag, mutable_unknown_fields()));
1146 break;
1147 }
1148 }
1149 }
jieluo@google.com4de8f552014-07-18 00:47:59 +00001150success:
1151 // @@protoc_insertion_point(parse_success:google.protobuf.compiler.CodeGeneratorResponse)
kenton@google.com5e744ff2009-12-18 04:51:42 +00001152 return true;
jieluo@google.com4de8f552014-07-18 00:47:59 +00001153failure:
1154 // @@protoc_insertion_point(parse_failure:google.protobuf.compiler.CodeGeneratorResponse)
1155 return false;
kenton@google.com5e744ff2009-12-18 04:51:42 +00001156#undef DO_
1157}
1158
1159void CodeGeneratorResponse::SerializeWithCachedSizes(
1160 ::google::protobuf::io::CodedOutputStream* output) const {
jieluo@google.com4de8f552014-07-18 00:47:59 +00001161 // @@protoc_insertion_point(serialize_start:google.protobuf.compiler.CodeGeneratorResponse)
kenton@google.com5e744ff2009-12-18 04:51:42 +00001162 // optional string error = 1;
liujisi@google.com33165fe2010-11-02 13:14:58 +00001163 if (has_error()) {
jieluo@google.com4de8f552014-07-18 00:47:59 +00001164 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
kenton@google.com5e744ff2009-12-18 04:51:42 +00001165 this->error().data(), this->error().length(),
jieluo@google.com4de8f552014-07-18 00:47:59 +00001166 ::google::protobuf::internal::WireFormat::SERIALIZE,
Feng Xiao6ef984a2014-11-10 17:34:54 -08001167 "google.protobuf.compiler.CodeGeneratorResponse.error");
jieluo@google.com4de8f552014-07-18 00:47:59 +00001168 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
kenton@google.com5e744ff2009-12-18 04:51:42 +00001169 1, this->error(), output);
1170 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +00001171
kenton@google.com5e744ff2009-12-18 04:51:42 +00001172 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
Feng Xiaof157a562014-11-14 11:50:31 -08001173 for (unsigned int i = 0, n = this->file_size(); i < n; i++) {
kenton@google.com5e744ff2009-12-18 04:51:42 +00001174 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1175 15, this->file(i), output);
1176 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +00001177
Feng Xiao6ef984a2014-11-10 17:34:54 -08001178 if (_internal_metadata_.have_unknown_fields()) {
kenton@google.com5e744ff2009-12-18 04:51:42 +00001179 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1180 unknown_fields(), output);
1181 }
jieluo@google.com4de8f552014-07-18 00:47:59 +00001182 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGeneratorResponse)
kenton@google.com5e744ff2009-12-18 04:51:42 +00001183}
1184
1185::google::protobuf::uint8* CodeGeneratorResponse::SerializeWithCachedSizesToArray(
1186 ::google::protobuf::uint8* target) const {
jieluo@google.com4de8f552014-07-18 00:47:59 +00001187 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse)
kenton@google.com5e744ff2009-12-18 04:51:42 +00001188 // optional string error = 1;
liujisi@google.com33165fe2010-11-02 13:14:58 +00001189 if (has_error()) {
jieluo@google.com4de8f552014-07-18 00:47:59 +00001190 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
kenton@google.com5e744ff2009-12-18 04:51:42 +00001191 this->error().data(), this->error().length(),
jieluo@google.com4de8f552014-07-18 00:47:59 +00001192 ::google::protobuf::internal::WireFormat::SERIALIZE,
Feng Xiao6ef984a2014-11-10 17:34:54 -08001193 "google.protobuf.compiler.CodeGeneratorResponse.error");
kenton@google.com5e744ff2009-12-18 04:51:42 +00001194 target =
1195 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1196 1, this->error(), target);
1197 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +00001198
kenton@google.com5e744ff2009-12-18 04:51:42 +00001199 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
Feng Xiaof157a562014-11-14 11:50:31 -08001200 for (unsigned int i = 0, n = this->file_size(); i < n; i++) {
kenton@google.com5e744ff2009-12-18 04:51:42 +00001201 target = ::google::protobuf::internal::WireFormatLite::
1202 WriteMessageNoVirtualToArray(
1203 15, this->file(i), target);
1204 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +00001205
Feng Xiao6ef984a2014-11-10 17:34:54 -08001206 if (_internal_metadata_.have_unknown_fields()) {
kenton@google.com5e744ff2009-12-18 04:51:42 +00001207 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1208 unknown_fields(), target);
1209 }
jieluo@google.com4de8f552014-07-18 00:47:59 +00001210 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorResponse)
kenton@google.com5e744ff2009-12-18 04:51:42 +00001211 return target;
1212}
1213
1214int CodeGeneratorResponse::ByteSize() const {
1215 int total_size = 0;
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +00001216
Feng Xiao6ef984a2014-11-10 17:34:54 -08001217 // optional string error = 1;
1218 if (has_error()) {
1219 total_size += 1 +
1220 ::google::protobuf::internal::WireFormatLite::StringSize(
1221 this->error());
kenton@google.com5e744ff2009-12-18 04:51:42 +00001222 }
Feng Xiao6ef984a2014-11-10 17:34:54 -08001223
kenton@google.com5e744ff2009-12-18 04:51:42 +00001224 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
1225 total_size += 1 * this->file_size();
1226 for (int i = 0; i < this->file_size(); i++) {
1227 total_size +=
1228 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1229 this->file(i));
1230 }
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +00001231
Feng Xiao6ef984a2014-11-10 17:34:54 -08001232 if (_internal_metadata_.have_unknown_fields()) {
kenton@google.com5e744ff2009-12-18 04:51:42 +00001233 total_size +=
1234 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1235 unknown_fields());
1236 }
1237 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1238 _cached_size_ = total_size;
1239 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1240 return total_size;
1241}
1242
1243void CodeGeneratorResponse::MergeFrom(const ::google::protobuf::Message& from) {
Feng Xiaof157a562014-11-14 11:50:31 -08001244 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
kenton@google.com5e744ff2009-12-18 04:51:42 +00001245 const CodeGeneratorResponse* source =
1246 ::google::protobuf::internal::dynamic_cast_if_available<const CodeGeneratorResponse*>(
1247 &from);
1248 if (source == NULL) {
1249 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1250 } else {
1251 MergeFrom(*source);
1252 }
1253}
1254
1255void CodeGeneratorResponse::MergeFrom(const CodeGeneratorResponse& from) {
Feng Xiaof157a562014-11-14 11:50:31 -08001256 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
kenton@google.com5e744ff2009-12-18 04:51:42 +00001257 file_.MergeFrom(from.file_);
1258 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00001259 if (from.has_error()) {
Feng Xiaof157a562014-11-14 11:50:31 -08001260 set_has_error();
1261 error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_);
kenton@google.com5e744ff2009-12-18 04:51:42 +00001262 }
1263 }
Feng Xiao6ef984a2014-11-10 17:34:54 -08001264 if (from._internal_metadata_.have_unknown_fields()) {
1265 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1266 }
kenton@google.com5e744ff2009-12-18 04:51:42 +00001267}
1268
1269void CodeGeneratorResponse::CopyFrom(const ::google::protobuf::Message& from) {
1270 if (&from == this) return;
1271 Clear();
1272 MergeFrom(from);
1273}
1274
1275void CodeGeneratorResponse::CopyFrom(const CodeGeneratorResponse& from) {
1276 if (&from == this) return;
1277 Clear();
1278 MergeFrom(from);
1279}
1280
1281bool CodeGeneratorResponse::IsInitialized() const {
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +00001282
kenton@google.com5e744ff2009-12-18 04:51:42 +00001283 return true;
1284}
1285
1286void CodeGeneratorResponse::Swap(CodeGeneratorResponse* other) {
Feng Xiao6ef984a2014-11-10 17:34:54 -08001287 if (other == this) return;
Feng Xiao6ef984a2014-11-10 17:34:54 -08001288 InternalSwap(other);
1289}
1290void CodeGeneratorResponse::InternalSwap(CodeGeneratorResponse* other) {
1291 error_.Swap(&other->error_);
1292 file_.UnsafeArenaSwap(&other->file_);
1293 std::swap(_has_bits_[0], other->_has_bits_[0]);
1294 _internal_metadata_.Swap(&other->_internal_metadata_);
1295 std::swap(_cached_size_, other->_cached_size_);
1296}
kenton@google.com5e744ff2009-12-18 04:51:42 +00001297
1298::google::protobuf::Metadata CodeGeneratorResponse::GetMetadata() const {
1299 protobuf_AssignDescriptorsOnce();
1300 ::google::protobuf::Metadata metadata;
1301 metadata.descriptor = CodeGeneratorResponse_descriptor_;
1302 metadata.reflection = CodeGeneratorResponse_reflection_;
1303 return metadata;
1304}
1305
Jisi Liu885b6122015-02-28 14:51:22 -08001306#if PROTOBUF_INLINE_NOT_IN_HEADERS
1307// CodeGeneratorResponse_File
1308
1309// optional string name = 1;
1310 bool CodeGeneratorResponse_File::has_name() const {
1311 return (_has_bits_[0] & 0x00000001u) != 0;
1312}
1313 void CodeGeneratorResponse_File::set_has_name() {
1314 _has_bits_[0] |= 0x00000001u;
1315}
1316 void CodeGeneratorResponse_File::clear_has_name() {
1317 _has_bits_[0] &= ~0x00000001u;
1318}
1319 void CodeGeneratorResponse_File::clear_name() {
1320 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1321 clear_has_name();
1322}
1323 const ::std::string& CodeGeneratorResponse_File::name() const {
1324 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.name)
1325 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1326}
1327 void CodeGeneratorResponse_File::set_name(const ::std::string& value) {
1328 set_has_name();
1329 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1330 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.name)
1331}
1332 void CodeGeneratorResponse_File::set_name(const char* value) {
1333 set_has_name();
1334 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1335 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.name)
1336}
1337 void CodeGeneratorResponse_File::set_name(const char* value, size_t size) {
1338 set_has_name();
1339 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1340 ::std::string(reinterpret_cast<const char*>(value), size));
1341 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.name)
1342}
1343 ::std::string* CodeGeneratorResponse_File::mutable_name() {
1344 set_has_name();
1345 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.name)
1346 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1347}
1348 ::std::string* CodeGeneratorResponse_File::release_name() {
1349 clear_has_name();
1350 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1351}
1352 void CodeGeneratorResponse_File::set_allocated_name(::std::string* name) {
1353 if (name != NULL) {
1354 set_has_name();
1355 } else {
1356 clear_has_name();
1357 }
1358 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
1359 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.name)
1360}
1361
1362// optional string insertion_point = 2;
1363 bool CodeGeneratorResponse_File::has_insertion_point() const {
1364 return (_has_bits_[0] & 0x00000002u) != 0;
1365}
1366 void CodeGeneratorResponse_File::set_has_insertion_point() {
1367 _has_bits_[0] |= 0x00000002u;
1368}
1369 void CodeGeneratorResponse_File::clear_has_insertion_point() {
1370 _has_bits_[0] &= ~0x00000002u;
1371}
1372 void CodeGeneratorResponse_File::clear_insertion_point() {
1373 insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1374 clear_has_insertion_point();
1375}
1376 const ::std::string& CodeGeneratorResponse_File::insertion_point() const {
1377 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
1378 return insertion_point_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1379}
1380 void CodeGeneratorResponse_File::set_insertion_point(const ::std::string& value) {
1381 set_has_insertion_point();
1382 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1383 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
1384}
1385 void CodeGeneratorResponse_File::set_insertion_point(const char* value) {
1386 set_has_insertion_point();
1387 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1388 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
1389}
1390 void CodeGeneratorResponse_File::set_insertion_point(const char* value, size_t size) {
1391 set_has_insertion_point();
1392 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1393 ::std::string(reinterpret_cast<const char*>(value), size));
1394 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
1395}
1396 ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() {
1397 set_has_insertion_point();
1398 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
1399 return insertion_point_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1400}
1401 ::std::string* CodeGeneratorResponse_File::release_insertion_point() {
1402 clear_has_insertion_point();
1403 return insertion_point_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1404}
1405 void CodeGeneratorResponse_File::set_allocated_insertion_point(::std::string* insertion_point) {
1406 if (insertion_point != NULL) {
1407 set_has_insertion_point();
1408 } else {
1409 clear_has_insertion_point();
1410 }
1411 insertion_point_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), insertion_point);
1412 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
1413}
1414
1415// optional string content = 15;
1416 bool CodeGeneratorResponse_File::has_content() const {
1417 return (_has_bits_[0] & 0x00000004u) != 0;
1418}
1419 void CodeGeneratorResponse_File::set_has_content() {
1420 _has_bits_[0] |= 0x00000004u;
1421}
1422 void CodeGeneratorResponse_File::clear_has_content() {
1423 _has_bits_[0] &= ~0x00000004u;
1424}
1425 void CodeGeneratorResponse_File::clear_content() {
1426 content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1427 clear_has_content();
1428}
1429 const ::std::string& CodeGeneratorResponse_File::content() const {
1430 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.content)
1431 return content_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1432}
1433 void CodeGeneratorResponse_File::set_content(const ::std::string& value) {
1434 set_has_content();
1435 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1436 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.content)
1437}
1438 void CodeGeneratorResponse_File::set_content(const char* value) {
1439 set_has_content();
1440 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1441 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.content)
1442}
1443 void CodeGeneratorResponse_File::set_content(const char* value, size_t size) {
1444 set_has_content();
1445 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1446 ::std::string(reinterpret_cast<const char*>(value), size));
1447 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.content)
1448}
1449 ::std::string* CodeGeneratorResponse_File::mutable_content() {
1450 set_has_content();
1451 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.content)
1452 return content_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1453}
1454 ::std::string* CodeGeneratorResponse_File::release_content() {
1455 clear_has_content();
1456 return content_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1457}
1458 void CodeGeneratorResponse_File::set_allocated_content(::std::string* content) {
1459 if (content != NULL) {
1460 set_has_content();
1461 } else {
1462 clear_has_content();
1463 }
1464 content_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), content);
1465 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.content)
1466}
1467
1468// -------------------------------------------------------------------
1469
1470// CodeGeneratorResponse
1471
1472// optional string error = 1;
1473 bool CodeGeneratorResponse::has_error() const {
1474 return (_has_bits_[0] & 0x00000001u) != 0;
1475}
1476 void CodeGeneratorResponse::set_has_error() {
1477 _has_bits_[0] |= 0x00000001u;
1478}
1479 void CodeGeneratorResponse::clear_has_error() {
1480 _has_bits_[0] &= ~0x00000001u;
1481}
1482 void CodeGeneratorResponse::clear_error() {
1483 error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1484 clear_has_error();
1485}
1486 const ::std::string& CodeGeneratorResponse::error() const {
1487 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.error)
1488 return error_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1489}
1490 void CodeGeneratorResponse::set_error(const ::std::string& value) {
1491 set_has_error();
1492 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1493 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.error)
1494}
1495 void CodeGeneratorResponse::set_error(const char* value) {
1496 set_has_error();
1497 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1498 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.error)
1499}
1500 void CodeGeneratorResponse::set_error(const char* value, size_t size) {
1501 set_has_error();
1502 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1503 ::std::string(reinterpret_cast<const char*>(value), size));
1504 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.error)
1505}
1506 ::std::string* CodeGeneratorResponse::mutable_error() {
1507 set_has_error();
1508 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.error)
1509 return error_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1510}
1511 ::std::string* CodeGeneratorResponse::release_error() {
1512 clear_has_error();
1513 return error_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1514}
1515 void CodeGeneratorResponse::set_allocated_error(::std::string* error) {
1516 if (error != NULL) {
1517 set_has_error();
1518 } else {
1519 clear_has_error();
1520 }
1521 error_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error);
1522 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.error)
1523}
1524
1525// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
1526 int CodeGeneratorResponse::file_size() const {
1527 return file_.size();
1528}
1529 void CodeGeneratorResponse::clear_file() {
1530 file_.Clear();
1531}
1532 const ::google::protobuf::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::file(int index) const {
1533 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.file)
1534 return file_.Get(index);
1535}
1536 ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::mutable_file(int index) {
1537 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.file)
1538 return file_.Mutable(index);
1539}
1540 ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::add_file() {
1541 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorResponse.file)
1542 return file_.Add();
1543}
1544 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >&
1545CodeGeneratorResponse::file() const {
1546 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorResponse.file)
1547 return file_;
1548}
1549 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >*
1550CodeGeneratorResponse::mutable_file() {
1551 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorResponse.file)
1552 return &file_;
1553}
1554
1555#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
kenton@google.com5e744ff2009-12-18 04:51:42 +00001556
1557// @@protoc_insertion_point(namespace_scope)
1558
1559} // namespace compiler
1560} // namespace protobuf
1561} // namespace google
1562
1563// @@protoc_insertion_point(global_scope)