Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/protobuf/src/google/protobuf/compiler/plugin.pb.cc

Issue 1291903002: Pull new version of protobuf sources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Generated by the protocol buffer compiler. DO NOT EDIT! 1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/compiler/plugin.proto 2 // source: google/protobuf/compiler/plugin.proto
3 3
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include <google/protobuf/compiler/plugin.pb.h> 5 #include "google/protobuf/compiler/plugin.pb.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include <google/protobuf/stubs/common.h> 9 #include <google/protobuf/stubs/common.h>
10 #include <google/protobuf/stubs/once.h> 10 #include <google/protobuf/stubs/once.h>
11 #include <google/protobuf/io/coded_stream.h> 11 #include <google/protobuf/io/coded_stream.h>
12 #include <google/protobuf/wire_format_lite_inl.h> 12 #include <google/protobuf/wire_format_lite_inl.h>
13 #include <google/protobuf/descriptor.h> 13 #include <google/protobuf/descriptor.h>
14 #include <google/protobuf/generated_message_reflection.h> 14 #include <google/protobuf/generated_message_reflection.h>
15 #include <google/protobuf/reflection_ops.h> 15 #include <google/protobuf/reflection_ops.h>
(...skipping 25 matching lines...) Expand all
41 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( 41 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
42 "google/protobuf/compiler/plugin.proto"); 42 "google/protobuf/compiler/plugin.proto");
43 GOOGLE_CHECK(file != NULL); 43 GOOGLE_CHECK(file != NULL);
44 CodeGeneratorRequest_descriptor_ = file->message_type(0); 44 CodeGeneratorRequest_descriptor_ = file->message_type(0);
45 static const int CodeGeneratorRequest_offsets_[3] = { 45 static const int CodeGeneratorRequest_offsets_[3] = {
46 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, file_to _generate_), 46 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, file_to _generate_),
47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, paramet er_), 47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, paramet er_),
48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, proto_f ile_), 48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, proto_f ile_),
49 }; 49 };
50 CodeGeneratorRequest_reflection_ = 50 CodeGeneratorRequest_reflection_ =
51 new ::google::protobuf::internal::GeneratedMessageReflection( 51 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection(
52 CodeGeneratorRequest_descriptor_, 52 CodeGeneratorRequest_descriptor_,
53 CodeGeneratorRequest::default_instance_, 53 CodeGeneratorRequest::default_instance_,
54 CodeGeneratorRequest_offsets_, 54 CodeGeneratorRequest_offsets_,
55 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, _has_ bits_[0]), 55 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, _has_ bits_[0]),
56 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, _unkn own_fields_),
57 -1, 56 -1,
58 ::google::protobuf::DescriptorPool::generated_pool(), 57 -1,
59 ::google::protobuf::MessageFactory::generated_factory(), 58 sizeof(CodeGeneratorRequest),
60 sizeof(CodeGeneratorRequest)); 59 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, _inte rnal_metadata_),
60 -1);
61 CodeGeneratorResponse_descriptor_ = file->message_type(1); 61 CodeGeneratorResponse_descriptor_ = file->message_type(1);
62 static const int CodeGeneratorResponse_offsets_[2] = { 62 static const int CodeGeneratorResponse_offsets_[2] = {
63 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, error_ ), 63 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, error_ ),
64 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, file_) , 64 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, file_) ,
65 }; 65 };
66 CodeGeneratorResponse_reflection_ = 66 CodeGeneratorResponse_reflection_ =
67 new ::google::protobuf::internal::GeneratedMessageReflection( 67 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection(
68 CodeGeneratorResponse_descriptor_, 68 CodeGeneratorResponse_descriptor_,
69 CodeGeneratorResponse::default_instance_, 69 CodeGeneratorResponse::default_instance_,
70 CodeGeneratorResponse_offsets_, 70 CodeGeneratorResponse_offsets_,
71 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, _has _bits_[0]), 71 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, _has _bits_[0]),
72 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, _unk nown_fields_),
73 -1, 72 -1,
74 ::google::protobuf::DescriptorPool::generated_pool(), 73 -1,
75 ::google::protobuf::MessageFactory::generated_factory(), 74 sizeof(CodeGeneratorResponse),
76 sizeof(CodeGeneratorResponse)); 75 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, _int ernal_metadata_),
76 -1);
77 CodeGeneratorResponse_File_descriptor_ = CodeGeneratorResponse_descriptor_->ne sted_type(0); 77 CodeGeneratorResponse_File_descriptor_ = CodeGeneratorResponse_descriptor_->ne sted_type(0);
78 static const int CodeGeneratorResponse_File_offsets_[3] = { 78 static const int CodeGeneratorResponse_File_offsets_[3] = {
79 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, n ame_), 79 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, n ame_),
80 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, i nsertion_point_), 80 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, i nsertion_point_),
81 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, c ontent_), 81 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, c ontent_),
82 }; 82 };
83 CodeGeneratorResponse_File_reflection_ = 83 CodeGeneratorResponse_File_reflection_ =
84 new ::google::protobuf::internal::GeneratedMessageReflection( 84 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection(
85 CodeGeneratorResponse_File_descriptor_, 85 CodeGeneratorResponse_File_descriptor_,
86 CodeGeneratorResponse_File::default_instance_, 86 CodeGeneratorResponse_File::default_instance_,
87 CodeGeneratorResponse_File_offsets_, 87 CodeGeneratorResponse_File_offsets_,
88 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, _has_bits_[0]), 88 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, _has_bits_[0]),
89 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, _unknown_fields_),
90 -1, 89 -1,
91 ::google::protobuf::DescriptorPool::generated_pool(), 90 -1,
92 ::google::protobuf::MessageFactory::generated_factory(), 91 sizeof(CodeGeneratorResponse_File),
93 sizeof(CodeGeneratorResponse_File)); 92 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, _internal_metadata_),
93 -1);
94 } 94 }
95 95
96 namespace { 96 namespace {
97 97
98 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); 98 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
99 inline void protobuf_AssignDescriptorsOnce() { 99 inline void protobuf_AssignDescriptorsOnce() {
100 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, 100 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
101 &protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2epr oto); 101 &protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2epr oto);
102 } 102 }
103 103
104 void protobuf_RegisterTypes(const ::std::string&) { 104 void protobuf_RegisterTypes(const ::std::string&) {
105 protobuf_AssignDescriptorsOnce(); 105 protobuf_AssignDescriptorsOnce();
106 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 106 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
107 CodeGeneratorRequest_descriptor_, &CodeGeneratorRequest::default_instance()) ; 107 CodeGeneratorRequest_descriptor_, &CodeGeneratorRequest::default_instance( ));
108 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 108 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
109 CodeGeneratorResponse_descriptor_, &CodeGeneratorResponse::default_instance( )); 109 CodeGeneratorResponse_descriptor_, &CodeGeneratorResponse::default_instanc e());
110 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 110 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
111 CodeGeneratorResponse_File_descriptor_, &CodeGeneratorResponse_File::default _instance()); 111 CodeGeneratorResponse_File_descriptor_, &CodeGeneratorResponse_File::defau lt_instance());
112 } 112 }
113 113
114 } // namespace 114 } // namespace
115 115
116 void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto() { 116 void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
117 delete CodeGeneratorRequest::default_instance_; 117 delete CodeGeneratorRequest::default_instance_;
118 delete CodeGeneratorRequest_reflection_; 118 delete CodeGeneratorRequest_reflection_;
119 delete CodeGeneratorResponse::default_instance_; 119 delete CodeGeneratorResponse::default_instance_;
120 delete CodeGeneratorResponse_reflection_; 120 delete CodeGeneratorResponse_reflection_;
121 delete CodeGeneratorResponse_File::default_instance_; 121 delete CodeGeneratorResponse_File::default_instance_;
(...skipping 11 matching lines...) Expand all
133 "\n%google/protobuf/compiler/plugin.proto\022" 133 "\n%google/protobuf/compiler/plugin.proto\022"
134 "\030google.protobuf.compiler\032 google/protob" 134 "\030google.protobuf.compiler\032 google/protob"
135 "uf/descriptor.proto\"}\n\024CodeGeneratorRequ" 135 "uf/descriptor.proto\"}\n\024CodeGeneratorRequ"
136 "est\022\030\n\020file_to_generate\030\001 \003(\t\022\021\n\tparamet" 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" 137 "er\030\002 \001(\t\0228\n\nproto_file\030\017 \003(\0132$.google.pr"
138 "otobuf.FileDescriptorProto\"\252\001\n\025CodeGener" 138 "otobuf.FileDescriptorProto\"\252\001\n\025CodeGener"
139 "atorResponse\022\r\n\005error\030\001 \001(\t\022B\n\004file\030\017 \003(" 139 "atorResponse\022\r\n\005error\030\001 \001(\t\022B\n\004file\030\017 \003("
140 "\01324.google.protobuf.compiler.CodeGenerat" 140 "\01324.google.protobuf.compiler.CodeGenerat"
141 "orResponse.File\032>\n\004File\022\014\n\004name\030\001 \001(\t\022\027\n" 141 "orResponse.File\032>\n\004File\022\014\n\004name\030\001 \001(\t\022\027\n"
142 "\017insertion_point\030\002 \001(\t\022\017\n\007content\030\017 \001(\tB" 142 "\017insertion_point\030\002 \001(\t\022\017\n\007content\030\017 \001(\tB"
143 ",\n\034com.google.protobuf.compilerB\014PluginP" 143 "7\n\034com.google.protobuf.compilerB\014PluginP"
144 "rotos", 445); 144 "rotosZ\tplugin_go", 456);
145 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( 145 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
146 "google/protobuf/compiler/plugin.proto", &protobuf_RegisterTypes); 146 "google/protobuf/compiler/plugin.proto", &protobuf_RegisterTypes);
147 CodeGeneratorRequest::default_instance_ = new CodeGeneratorRequest(); 147 CodeGeneratorRequest::default_instance_ = new CodeGeneratorRequest();
148 CodeGeneratorResponse::default_instance_ = new CodeGeneratorResponse(); 148 CodeGeneratorResponse::default_instance_ = new CodeGeneratorResponse();
149 CodeGeneratorResponse_File::default_instance_ = new CodeGeneratorResponse_File (); 149 CodeGeneratorResponse_File::default_instance_ = new CodeGeneratorResponse_File ();
150 CodeGeneratorRequest::default_instance_->InitAsDefaultInstance(); 150 CodeGeneratorRequest::default_instance_->InitAsDefaultInstance();
151 CodeGeneratorResponse::default_instance_->InitAsDefaultInstance(); 151 CodeGeneratorResponse::default_instance_->InitAsDefaultInstance();
152 CodeGeneratorResponse_File::default_instance_->InitAsDefaultInstance(); 152 CodeGeneratorResponse_File::default_instance_->InitAsDefaultInstance();
153 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto buf_2fcompiler_2fplugin_2eproto); 153 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto buf_2fcompiler_2fplugin_2eproto);
154 } 154 }
155 155
156 // Force AddDescriptors() to be called at static initialization time. 156 // Force AddDescriptors() to be called at static initialization time.
157 struct StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto { 157 struct StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto {
158 StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto() { 158 StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
159 protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 159 protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
160 } 160 }
161 } static_descriptor_initializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto_; 161 } static_descriptor_initializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto_;
162 162
163 namespace {
164
165 static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD;
166 static void MergeFromFail(int line) {
167 GOOGLE_CHECK(false) << __FILE__ << ":" << line;
168 }
169
170 } // namespace
171
172
163 // =================================================================== 173 // ===================================================================
164 174
165 #ifndef _MSC_VER 175 #ifndef _MSC_VER
166 const int CodeGeneratorRequest::kFileToGenerateFieldNumber; 176 const int CodeGeneratorRequest::kFileToGenerateFieldNumber;
167 const int CodeGeneratorRequest::kParameterFieldNumber; 177 const int CodeGeneratorRequest::kParameterFieldNumber;
168 const int CodeGeneratorRequest::kProtoFileFieldNumber; 178 const int CodeGeneratorRequest::kProtoFileFieldNumber;
169 #endif // !_MSC_VER 179 #endif // !_MSC_VER
170 180
171 CodeGeneratorRequest::CodeGeneratorRequest() 181 CodeGeneratorRequest::CodeGeneratorRequest()
172 : ::google::protobuf::Message() { 182 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
173 SharedCtor(); 183 SharedCtor();
184 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator Request)
174 } 185 }
175 186
176 void CodeGeneratorRequest::InitAsDefaultInstance() { 187 void CodeGeneratorRequest::InitAsDefaultInstance() {
177 } 188 }
178 189
179 CodeGeneratorRequest::CodeGeneratorRequest(const CodeGeneratorRequest& from) 190 CodeGeneratorRequest::CodeGeneratorRequest(const CodeGeneratorRequest& from)
180 : ::google::protobuf::Message() { 191 : ::google::protobuf::Message(),
192 _internal_metadata_(NULL) {
181 SharedCtor(); 193 SharedCtor();
182 MergeFrom(from); 194 MergeFrom(from);
195 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene ratorRequest)
183 } 196 }
184 197
185 void CodeGeneratorRequest::SharedCtor() { 198 void CodeGeneratorRequest::SharedCtor() {
199 ::google::protobuf::internal::GetEmptyString();
186 _cached_size_ = 0; 200 _cached_size_ = 0;
187 parameter_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmp tyString()); 201 parameter_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
188 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 202 ::memset(_has_bits_, 0, sizeof(_has_bits_));
189 } 203 }
190 204
191 CodeGeneratorRequest::~CodeGeneratorRequest() { 205 CodeGeneratorRequest::~CodeGeneratorRequest() {
206 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR equest)
192 SharedDtor(); 207 SharedDtor();
193 } 208 }
194 209
195 void CodeGeneratorRequest::SharedDtor() { 210 void CodeGeneratorRequest::SharedDtor() {
196 if (parameter_ != &::google::protobuf::internal::GetEmptyString()) { 211 parameter_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
197 delete parameter_;
198 }
199 if (this != default_instance_) { 212 if (this != default_instance_) {
200 } 213 }
201 } 214 }
202 215
203 void CodeGeneratorRequest::SetCachedSize(int size) const { 216 void CodeGeneratorRequest::SetCachedSize(int size) const {
204 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 217 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
205 _cached_size_ = size; 218 _cached_size_ = size;
206 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 219 GOOGLE_SAFE_CONCURRENT_WRITES_END();
207 } 220 }
208 const ::google::protobuf::Descriptor* CodeGeneratorRequest::descriptor() { 221 const ::google::protobuf::Descriptor* CodeGeneratorRequest::descriptor() {
209 protobuf_AssignDescriptorsOnce(); 222 protobuf_AssignDescriptorsOnce();
210 return CodeGeneratorRequest_descriptor_; 223 return CodeGeneratorRequest_descriptor_;
211 } 224 }
212 225
213 const CodeGeneratorRequest& CodeGeneratorRequest::default_instance() { 226 const CodeGeneratorRequest& CodeGeneratorRequest::default_instance() {
214 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2 fplugin_2eproto(); 227 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2 fplugin_2eproto();
215 return *default_instance_; 228 return *default_instance_;
216 } 229 }
217 230
218 CodeGeneratorRequest* CodeGeneratorRequest::default_instance_ = NULL; 231 CodeGeneratorRequest* CodeGeneratorRequest::default_instance_ = NULL;
219 232
220 CodeGeneratorRequest* CodeGeneratorRequest::New() const { 233 CodeGeneratorRequest* CodeGeneratorRequest::New(::google::protobuf::Arena* arena ) const {
221 return new CodeGeneratorRequest; 234 CodeGeneratorRequest* n = new CodeGeneratorRequest;
235 if (arena != NULL) {
236 arena->Own(n);
237 }
238 return n;
222 } 239 }
223 240
224 void CodeGeneratorRequest::Clear() { 241 void CodeGeneratorRequest::Clear() {
225 if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { 242 if (has_parameter()) {
226 if (has_parameter()) { 243 parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
227 if (parameter_ != &::google::protobuf::internal::GetEmptyString()) {
228 parameter_->clear();
229 }
230 }
231 } 244 }
232 file_to_generate_.Clear(); 245 file_to_generate_.Clear();
233 proto_file_.Clear(); 246 proto_file_.Clear();
234 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 247 ::memset(_has_bits_, 0, sizeof(_has_bits_));
235 mutable_unknown_fields()->Clear(); 248 if (_internal_metadata_.have_unknown_fields()) {
249 mutable_unknown_fields()->Clear();
250 }
236 } 251 }
237 252
238 bool CodeGeneratorRequest::MergePartialFromCodedStream( 253 bool CodeGeneratorRequest::MergePartialFromCodedStream(
239 ::google::protobuf::io::CodedInputStream* input) { 254 ::google::protobuf::io::CodedInputStream* input) {
240 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false 255 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
241 ::google::protobuf::uint32 tag; 256 ::google::protobuf::uint32 tag;
242 while ((tag = input->ReadTag()) != 0) { 257 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator Request)
258 for (;;) {
259 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127);
260 tag = p.first;
261 if (!p.second) goto handle_unusual;
243 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 262 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
244 // repeated string file_to_generate = 1; 263 // repeated string file_to_generate = 1;
245 case 1: { 264 case 1: {
246 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 265 if (tag == 10) {
247 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI TED) {
248 parse_file_to_generate: 266 parse_file_to_generate:
249 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 267 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
250 input, this->add_file_to_generate())); 268 input, this->add_file_to_generate()));
251 ::google::protobuf::internal::WireFormat::VerifyUTF8String( 269 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
252 this->file_to_generate(this->file_to_generate_size() - 1).data(), 270 this->file_to_generate(this->file_to_generate_size() - 1).data(),
253 this->file_to_generate(this->file_to_generate_size() - 1).length(), 271 this->file_to_generate(this->file_to_generate_size() - 1).length(),
254 ::google::protobuf::internal::WireFormat::PARSE); 272 ::google::protobuf::internal::WireFormat::PARSE,
273 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
255 } else { 274 } else {
256 goto handle_uninterpreted; 275 goto handle_unusual;
257 } 276 }
258 if (input->ExpectTag(10)) goto parse_file_to_generate; 277 if (input->ExpectTag(10)) goto parse_file_to_generate;
259 if (input->ExpectTag(18)) goto parse_parameter; 278 if (input->ExpectTag(18)) goto parse_parameter;
260 break; 279 break;
261 } 280 }
262 281
263 // optional string parameter = 2; 282 // optional string parameter = 2;
264 case 2: { 283 case 2: {
265 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 284 if (tag == 18) {
266 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI TED) {
267 parse_parameter: 285 parse_parameter:
268 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 286 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
269 input, this->mutable_parameter())); 287 input, this->mutable_parameter()));
270 ::google::protobuf::internal::WireFormat::VerifyUTF8String( 288 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
271 this->parameter().data(), this->parameter().length(), 289 this->parameter().data(), this->parameter().length(),
272 ::google::protobuf::internal::WireFormat::PARSE); 290 ::google::protobuf::internal::WireFormat::PARSE,
291 "google.protobuf.compiler.CodeGeneratorRequest.parameter");
273 } else { 292 } else {
274 goto handle_uninterpreted; 293 goto handle_unusual;
275 } 294 }
276 if (input->ExpectTag(122)) goto parse_proto_file; 295 if (input->ExpectTag(122)) goto parse_proto_file;
277 break; 296 break;
278 } 297 }
279 298
280 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; 299 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
281 case 15: { 300 case 15: {
282 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 301 if (tag == 122) {
283 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI TED) {
284 parse_proto_file: 302 parse_proto_file:
285 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 303 DO_(input->IncrementRecursionDepth());
304 parse_loop_proto_file:
305 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
286 input, add_proto_file())); 306 input, add_proto_file()));
287 } else { 307 } else {
288 goto handle_uninterpreted; 308 goto handle_unusual;
289 } 309 }
290 if (input->ExpectTag(122)) goto parse_proto_file; 310 if (input->ExpectTag(122)) goto parse_loop_proto_file;
291 if (input->ExpectAtEnd()) return true; 311 input->UnsafeDecrementRecursionDepth();
312 if (input->ExpectAtEnd()) goto success;
292 break; 313 break;
293 } 314 }
294 315
295 default: { 316 default: {
296 handle_uninterpreted: 317 handle_unusual:
297 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 318 if (tag == 0 ||
319 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
298 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 320 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
299 return true; 321 goto success;
300 } 322 }
301 DO_(::google::protobuf::internal::WireFormatLite::SkipField( 323 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
302 input, tag, mutable_unknown_fields())); 324 input, tag, mutable_unknown_fields()));
303 break; 325 break;
304 } 326 }
305 } 327 }
306 } 328 }
329 success:
330 // @@protoc_insertion_point(parse_success:google.protobuf.compiler.CodeGenerat orRequest)
307 return true; 331 return true;
332 failure:
333 // @@protoc_insertion_point(parse_failure:google.protobuf.compiler.CodeGenerat orRequest)
334 return false;
308 #undef DO_ 335 #undef DO_
309 } 336 }
310 337
311 void CodeGeneratorRequest::SerializeWithCachedSizes( 338 void CodeGeneratorRequest::SerializeWithCachedSizes(
312 ::google::protobuf::io::CodedOutputStream* output) const { 339 ::google::protobuf::io::CodedOutputStream* output) const {
340 // @@protoc_insertion_point(serialize_start:google.protobuf.compiler.CodeGener atorRequest)
313 // repeated string file_to_generate = 1; 341 // repeated string file_to_generate = 1;
314 for (int i = 0; i < this->file_to_generate_size(); i++) { 342 for (int i = 0; i < this->file_to_generate_size(); i++) {
315 ::google::protobuf::internal::WireFormat::VerifyUTF8String( 343 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
316 this->file_to_generate(i).data(), this->file_to_generate(i).length(), 344 this->file_to_generate(i).data(), this->file_to_generate(i).length(),
317 ::google::protobuf::internal::WireFormat::SERIALIZE); 345 ::google::protobuf::internal::WireFormat::SERIALIZE,
346 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
318 ::google::protobuf::internal::WireFormatLite::WriteString( 347 ::google::protobuf::internal::WireFormatLite::WriteString(
319 1, this->file_to_generate(i), output); 348 1, this->file_to_generate(i), output);
320 } 349 }
321 350
322 // optional string parameter = 2; 351 // optional string parameter = 2;
323 if (has_parameter()) { 352 if (has_parameter()) {
324 ::google::protobuf::internal::WireFormat::VerifyUTF8String( 353 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
325 this->parameter().data(), this->parameter().length(), 354 this->parameter().data(), this->parameter().length(),
326 ::google::protobuf::internal::WireFormat::SERIALIZE); 355 ::google::protobuf::internal::WireFormat::SERIALIZE,
327 ::google::protobuf::internal::WireFormatLite::WriteString( 356 "google.protobuf.compiler.CodeGeneratorRequest.parameter");
357 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
328 2, this->parameter(), output); 358 2, this->parameter(), output);
329 } 359 }
330 360
331 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; 361 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
332 for (int i = 0; i < this->proto_file_size(); i++) { 362 for (unsigned int i = 0, n = this->proto_file_size(); i < n; i++) {
333 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 363 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
334 15, this->proto_file(i), output); 364 15, this->proto_file(i), output);
335 } 365 }
336 366
337 if (!unknown_fields().empty()) { 367 if (_internal_metadata_.have_unknown_fields()) {
338 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( 368 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
339 unknown_fields(), output); 369 unknown_fields(), output);
340 } 370 }
371 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat orRequest)
341 } 372 }
342 373
343 ::google::protobuf::uint8* CodeGeneratorRequest::SerializeWithCachedSizesToArray ( 374 ::google::protobuf::uint8* CodeGeneratorRequest::SerializeWithCachedSizesToArray (
344 ::google::protobuf::uint8* target) const { 375 ::google::protobuf::uint8* target) const {
376 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler. CodeGeneratorRequest)
345 // repeated string file_to_generate = 1; 377 // repeated string file_to_generate = 1;
346 for (int i = 0; i < this->file_to_generate_size(); i++) { 378 for (int i = 0; i < this->file_to_generate_size(); i++) {
347 ::google::protobuf::internal::WireFormat::VerifyUTF8String( 379 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
348 this->file_to_generate(i).data(), this->file_to_generate(i).length(), 380 this->file_to_generate(i).data(), this->file_to_generate(i).length(),
349 ::google::protobuf::internal::WireFormat::SERIALIZE); 381 ::google::protobuf::internal::WireFormat::SERIALIZE,
382 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
350 target = ::google::protobuf::internal::WireFormatLite:: 383 target = ::google::protobuf::internal::WireFormatLite::
351 WriteStringToArray(1, this->file_to_generate(i), target); 384 WriteStringToArray(1, this->file_to_generate(i), target);
352 } 385 }
353 386
354 // optional string parameter = 2; 387 // optional string parameter = 2;
355 if (has_parameter()) { 388 if (has_parameter()) {
356 ::google::protobuf::internal::WireFormat::VerifyUTF8String( 389 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
357 this->parameter().data(), this->parameter().length(), 390 this->parameter().data(), this->parameter().length(),
358 ::google::protobuf::internal::WireFormat::SERIALIZE); 391 ::google::protobuf::internal::WireFormat::SERIALIZE,
392 "google.protobuf.compiler.CodeGeneratorRequest.parameter");
359 target = 393 target =
360 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 394 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
361 2, this->parameter(), target); 395 2, this->parameter(), target);
362 } 396 }
363 397
364 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; 398 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
365 for (int i = 0; i < this->proto_file_size(); i++) { 399 for (unsigned int i = 0, n = this->proto_file_size(); i < n; i++) {
366 target = ::google::protobuf::internal::WireFormatLite:: 400 target = ::google::protobuf::internal::WireFormatLite::
367 WriteMessageNoVirtualToArray( 401 WriteMessageNoVirtualToArray(
368 15, this->proto_file(i), target); 402 15, this->proto_file(i), target);
369 } 403 }
370 404
371 if (!unknown_fields().empty()) { 405 if (_internal_metadata_.have_unknown_fields()) {
372 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField sToArray( 406 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField sToArray(
373 unknown_fields(), target); 407 unknown_fields(), target);
374 } 408 }
409 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Co deGeneratorRequest)
375 return target; 410 return target;
376 } 411 }
377 412
378 int CodeGeneratorRequest::ByteSize() const { 413 int CodeGeneratorRequest::ByteSize() const {
379 int total_size = 0; 414 int total_size = 0;
380 415
381 if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { 416 // optional string parameter = 2;
382 // optional string parameter = 2; 417 if (has_parameter()) {
383 if (has_parameter()) { 418 total_size += 1 +
384 total_size += 1 + 419 ::google::protobuf::internal::WireFormatLite::StringSize(
385 ::google::protobuf::internal::WireFormatLite::StringSize( 420 this->parameter());
386 this->parameter()); 421 }
387 }
388 422
389 }
390 // repeated string file_to_generate = 1; 423 // repeated string file_to_generate = 1;
391 total_size += 1 * this->file_to_generate_size(); 424 total_size += 1 * this->file_to_generate_size();
392 for (int i = 0; i < this->file_to_generate_size(); i++) { 425 for (int i = 0; i < this->file_to_generate_size(); i++) {
393 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( 426 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
394 this->file_to_generate(i)); 427 this->file_to_generate(i));
395 } 428 }
396 429
397 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; 430 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
398 total_size += 1 * this->proto_file_size(); 431 total_size += 1 * this->proto_file_size();
399 for (int i = 0; i < this->proto_file_size(); i++) { 432 for (int i = 0; i < this->proto_file_size(); i++) {
400 total_size += 433 total_size +=
401 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 434 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
402 this->proto_file(i)); 435 this->proto_file(i));
403 } 436 }
404 437
405 if (!unknown_fields().empty()) { 438 if (_internal_metadata_.have_unknown_fields()) {
406 total_size += 439 total_size +=
407 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( 440 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
408 unknown_fields()); 441 unknown_fields());
409 } 442 }
410 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 443 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
411 _cached_size_ = total_size; 444 _cached_size_ = total_size;
412 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 445 GOOGLE_SAFE_CONCURRENT_WRITES_END();
413 return total_size; 446 return total_size;
414 } 447 }
415 448
416 void CodeGeneratorRequest::MergeFrom(const ::google::protobuf::Message& from) { 449 void CodeGeneratorRequest::MergeFrom(const ::google::protobuf::Message& from) {
417 GOOGLE_CHECK_NE(&from, this); 450 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
418 const CodeGeneratorRequest* source = 451 const CodeGeneratorRequest* source =
419 ::google::protobuf::internal::dynamic_cast_if_available<const CodeGeneratorR equest*>( 452 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe quest>(
420 &from); 453 &from);
421 if (source == NULL) { 454 if (source == NULL) {
422 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 455 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
423 } else { 456 } else {
424 MergeFrom(*source); 457 MergeFrom(*source);
425 } 458 }
426 } 459 }
427 460
428 void CodeGeneratorRequest::MergeFrom(const CodeGeneratorRequest& from) { 461 void CodeGeneratorRequest::MergeFrom(const CodeGeneratorRequest& from) {
429 GOOGLE_CHECK_NE(&from, this); 462 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
430 file_to_generate_.MergeFrom(from.file_to_generate_); 463 file_to_generate_.MergeFrom(from.file_to_generate_);
431 proto_file_.MergeFrom(from.proto_file_); 464 proto_file_.MergeFrom(from.proto_file_);
432 if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { 465 if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
433 if (from.has_parameter()) { 466 if (from.has_parameter()) {
434 set_parameter(from.parameter()); 467 set_has_parameter();
468 parameter_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.parameter_);
435 } 469 }
436 } 470 }
437 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); 471 if (from._internal_metadata_.have_unknown_fields()) {
472 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
473 }
438 } 474 }
439 475
440 void CodeGeneratorRequest::CopyFrom(const ::google::protobuf::Message& from) { 476 void CodeGeneratorRequest::CopyFrom(const ::google::protobuf::Message& from) {
441 if (&from == this) return; 477 if (&from == this) return;
442 Clear(); 478 Clear();
443 MergeFrom(from); 479 MergeFrom(from);
444 } 480 }
445 481
446 void CodeGeneratorRequest::CopyFrom(const CodeGeneratorRequest& from) { 482 void CodeGeneratorRequest::CopyFrom(const CodeGeneratorRequest& from) {
447 if (&from == this) return; 483 if (&from == this) return;
448 Clear(); 484 Clear();
449 MergeFrom(from); 485 MergeFrom(from);
450 } 486 }
451 487
452 bool CodeGeneratorRequest::IsInitialized() const { 488 bool CodeGeneratorRequest::IsInitialized() const {
453 489
454 for (int i = 0; i < proto_file_size(); i++) { 490 if (!::google::protobuf::internal::AllAreInitialized(this->proto_file())) retu rn false;
455 if (!this->proto_file(i).IsInitialized()) return false;
456 }
457 return true; 491 return true;
458 } 492 }
459 493
460 void CodeGeneratorRequest::Swap(CodeGeneratorRequest* other) { 494 void CodeGeneratorRequest::Swap(CodeGeneratorRequest* other) {
461 if (other != this) { 495 if (other == this) return;
462 file_to_generate_.Swap(&other->file_to_generate_); 496 InternalSwap(other);
463 std::swap(parameter_, other->parameter_); 497 }
464 proto_file_.Swap(&other->proto_file_); 498 void CodeGeneratorRequest::InternalSwap(CodeGeneratorRequest* other) {
465 std::swap(_has_bits_[0], other->_has_bits_[0]); 499 file_to_generate_.UnsafeArenaSwap(&other->file_to_generate_);
466 _unknown_fields_.Swap(&other->_unknown_fields_); 500 parameter_.Swap(&other->parameter_);
467 std::swap(_cached_size_, other->_cached_size_); 501 proto_file_.UnsafeArenaSwap(&other->proto_file_);
468 } 502 std::swap(_has_bits_[0], other->_has_bits_[0]);
503 _internal_metadata_.Swap(&other->_internal_metadata_);
504 std::swap(_cached_size_, other->_cached_size_);
469 } 505 }
470 506
471 ::google::protobuf::Metadata CodeGeneratorRequest::GetMetadata() const { 507 ::google::protobuf::Metadata CodeGeneratorRequest::GetMetadata() const {
472 protobuf_AssignDescriptorsOnce(); 508 protobuf_AssignDescriptorsOnce();
473 ::google::protobuf::Metadata metadata; 509 ::google::protobuf::Metadata metadata;
474 metadata.descriptor = CodeGeneratorRequest_descriptor_; 510 metadata.descriptor = CodeGeneratorRequest_descriptor_;
475 metadata.reflection = CodeGeneratorRequest_reflection_; 511 metadata.reflection = CodeGeneratorRequest_reflection_;
476 return metadata; 512 return metadata;
477 } 513 }
478 514
515 #if PROTOBUF_INLINE_NOT_IN_HEADERS
516 // CodeGeneratorRequest
517
518 // repeated string file_to_generate = 1;
519 int CodeGeneratorRequest::file_to_generate_size() const {
520 return file_to_generate_.size();
521 }
522 void CodeGeneratorRequest::clear_file_to_generate() {
523 file_to_generate_.Clear();
524 }
525 const ::std::string& CodeGeneratorRequest::file_to_generate(int index) const {
526 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe quest.file_to_generate)
527 return file_to_generate_.Get(index);
528 }
529 ::std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) {
530 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orRequest.file_to_generate)
531 return file_to_generate_.Mutable(index);
532 }
533 void CodeGeneratorRequest::set_file_to_generate(int index, const ::std::string& value) {
534 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe quest.file_to_generate)
535 file_to_generate_.Mutable(index)->assign(value);
536 }
537 void CodeGeneratorRequest::set_file_to_generate(int index, const char* value) {
538 file_to_generate_.Mutable(index)->assign(value);
539 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torRequest.file_to_generate)
540 }
541 void CodeGeneratorRequest::set_file_to_generate(int index, const char* value, s ize_t size) {
542 file_to_generate_.Mutable(index)->assign(
543 reinterpret_cast<const char*>(value), size);
544 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorRequest.file_to_generate)
545 }
546 ::std::string* CodeGeneratorRequest::add_file_to_generate() {
547 return file_to_generate_.Add();
548 }
549 void CodeGeneratorRequest::add_file_to_generate(const ::std::string& value) {
550 file_to_generate_.Add()->assign(value);
551 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRe quest.file_to_generate)
552 }
553 void CodeGeneratorRequest::add_file_to_generate(const char* value) {
554 file_to_generate_.Add()->assign(value);
555 // @@protoc_insertion_point(field_add_char:google.protobuf.compiler.CodeGenera torRequest.file_to_generate)
556 }
557 void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t size) {
558 file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size);
559 // @@protoc_insertion_point(field_add_pointer:google.protobuf.compiler.CodeGen eratorRequest.file_to_generate)
560 }
561 const ::google::protobuf::RepeatedPtrField< ::std::string>&
562 CodeGeneratorRequest::file_to_generate() const {
563 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR equest.file_to_generate)
564 return file_to_generate_;
565 }
566 ::google::protobuf::RepeatedPtrField< ::std::string>*
567 CodeGeneratorRequest::mutable_file_to_generate() {
568 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe neratorRequest.file_to_generate)
569 return &file_to_generate_;
570 }
571
572 // optional string parameter = 2;
573 bool CodeGeneratorRequest::has_parameter() const {
574 return (_has_bits_[0] & 0x00000002u) != 0;
575 }
576 void CodeGeneratorRequest::set_has_parameter() {
577 _has_bits_[0] |= 0x00000002u;
578 }
579 void CodeGeneratorRequest::clear_has_parameter() {
580 _has_bits_[0] &= ~0x00000002u;
581 }
582 void CodeGeneratorRequest::clear_parameter() {
583 parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
584 clear_has_parameter();
585 }
586 const ::std::string& CodeGeneratorRequest::parameter() const {
587 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe quest.parameter)
588 return parameter_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
589 }
590 void CodeGeneratorRequest::set_parameter(const ::std::string& value) {
591 set_has_parameter();
592 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value);
593 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe quest.parameter)
594 }
595 void CodeGeneratorRequest::set_parameter(const char* value) {
596 set_has_parameter();
597 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value));
598 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torRequest.parameter)
599 }
600 void CodeGeneratorRequest::set_parameter(const char* value, size_t size) {
601 set_has_parameter();
602 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(),
603 ::std::string(reinterpret_cast<const char*>(value), size));
604 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorRequest.parameter)
605 }
606 ::std::string* CodeGeneratorRequest::mutable_parameter() {
607 set_has_parameter();
608 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orRequest.parameter)
609 return parameter_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
610 }
611 ::std::string* CodeGeneratorRequest::release_parameter() {
612 clear_has_parameter();
613 return parameter_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
614 }
615 void CodeGeneratorRequest::set_allocated_parameter(::std::string* parameter) {
616 if (parameter != NULL) {
617 set_has_parameter();
618 } else {
619 clear_has_parameter();
620 }
621 parameter_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), parameter);
622 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorRequest.parameter)
623 }
624
625 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
626 int CodeGeneratorRequest::proto_file_size() const {
627 return proto_file_.size();
628 }
629 void CodeGeneratorRequest::clear_proto_file() {
630 proto_file_.Clear();
631 }
632 const ::google::protobuf::FileDescriptorProto& CodeGeneratorRequest::proto_file (int index) const {
633 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe quest.proto_file)
634 return proto_file_.Get(index);
635 }
636 ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::mutable_proto_fi le(int index) {
637 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orRequest.proto_file)
638 return proto_file_.Mutable(index);
639 }
640 ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::add_proto_file() {
641 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRe quest.proto_file)
642 return proto_file_.Add();
643 }
644 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorP roto >&
645 CodeGeneratorRequest::proto_file() const {
646 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR equest.proto_file)
647 return proto_file_;
648 }
649 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > *
650 CodeGeneratorRequest::mutable_proto_file() {
651 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe neratorRequest.proto_file)
652 return &proto_file_;
653 }
654
655 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
479 656
480 // =================================================================== 657 // ===================================================================
481 658
482 #ifndef _MSC_VER 659 #ifndef _MSC_VER
483 const int CodeGeneratorResponse_File::kNameFieldNumber; 660 const int CodeGeneratorResponse_File::kNameFieldNumber;
484 const int CodeGeneratorResponse_File::kInsertionPointFieldNumber; 661 const int CodeGeneratorResponse_File::kInsertionPointFieldNumber;
485 const int CodeGeneratorResponse_File::kContentFieldNumber; 662 const int CodeGeneratorResponse_File::kContentFieldNumber;
486 #endif // !_MSC_VER 663 #endif // !_MSC_VER
487 664
488 CodeGeneratorResponse_File::CodeGeneratorResponse_File() 665 CodeGeneratorResponse_File::CodeGeneratorResponse_File()
489 : ::google::protobuf::Message() { 666 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
490 SharedCtor(); 667 SharedCtor();
668 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator Response.File)
491 } 669 }
492 670
493 void CodeGeneratorResponse_File::InitAsDefaultInstance() { 671 void CodeGeneratorResponse_File::InitAsDefaultInstance() {
494 } 672 }
495 673
496 CodeGeneratorResponse_File::CodeGeneratorResponse_File(const CodeGeneratorRespon se_File& from) 674 CodeGeneratorResponse_File::CodeGeneratorResponse_File(const CodeGeneratorRespon se_File& from)
497 : ::google::protobuf::Message() { 675 : ::google::protobuf::Message(),
676 _internal_metadata_(NULL) {
498 SharedCtor(); 677 SharedCtor();
499 MergeFrom(from); 678 MergeFrom(from);
679 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene ratorResponse.File)
500 } 680 }
501 681
502 void CodeGeneratorResponse_File::SharedCtor() { 682 void CodeGeneratorResponse_File::SharedCtor() {
683 ::google::protobuf::internal::GetEmptyString();
503 _cached_size_ = 0; 684 _cached_size_ = 0;
504 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStr ing()); 685 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
505 insertion_point_ = const_cast< ::std::string*>(&::google::protobuf::internal:: GetEmptyString()); 686 insertion_point_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
506 content_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmpty String()); 687 content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited());
507 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 688 ::memset(_has_bits_, 0, sizeof(_has_bits_));
508 } 689 }
509 690
510 CodeGeneratorResponse_File::~CodeGeneratorResponse_File() { 691 CodeGeneratorResponse_File::~CodeGeneratorResponse_File() {
692 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR esponse.File)
511 SharedDtor(); 693 SharedDtor();
512 } 694 }
513 695
514 void CodeGeneratorResponse_File::SharedDtor() { 696 void CodeGeneratorResponse_File::SharedDtor() {
515 if (name_ != &::google::protobuf::internal::GetEmptyString()) { 697 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
516 delete name_; 698 insertion_point_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
517 } 699 content_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited());
518 if (insertion_point_ != &::google::protobuf::internal::GetEmptyString()) {
519 delete insertion_point_;
520 }
521 if (content_ != &::google::protobuf::internal::GetEmptyString()) {
522 delete content_;
523 }
524 if (this != default_instance_) { 700 if (this != default_instance_) {
525 } 701 }
526 } 702 }
527 703
528 void CodeGeneratorResponse_File::SetCachedSize(int size) const { 704 void CodeGeneratorResponse_File::SetCachedSize(int size) const {
529 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 705 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
530 _cached_size_ = size; 706 _cached_size_ = size;
531 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 707 GOOGLE_SAFE_CONCURRENT_WRITES_END();
532 } 708 }
533 const ::google::protobuf::Descriptor* CodeGeneratorResponse_File::descriptor() { 709 const ::google::protobuf::Descriptor* CodeGeneratorResponse_File::descriptor() {
534 protobuf_AssignDescriptorsOnce(); 710 protobuf_AssignDescriptorsOnce();
535 return CodeGeneratorResponse_File_descriptor_; 711 return CodeGeneratorResponse_File_descriptor_;
536 } 712 }
537 713
538 const CodeGeneratorResponse_File& CodeGeneratorResponse_File::default_instance() { 714 const CodeGeneratorResponse_File& CodeGeneratorResponse_File::default_instance() {
539 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2 fplugin_2eproto(); 715 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2 fplugin_2eproto();
540 return *default_instance_; 716 return *default_instance_;
541 } 717 }
542 718
543 CodeGeneratorResponse_File* CodeGeneratorResponse_File::default_instance_ = NULL ; 719 CodeGeneratorResponse_File* CodeGeneratorResponse_File::default_instance_ = NULL ;
544 720
545 CodeGeneratorResponse_File* CodeGeneratorResponse_File::New() const { 721 CodeGeneratorResponse_File* CodeGeneratorResponse_File::New(::google::protobuf:: Arena* arena) const {
546 return new CodeGeneratorResponse_File; 722 CodeGeneratorResponse_File* n = new CodeGeneratorResponse_File;
723 if (arena != NULL) {
724 arena->Own(n);
725 }
726 return n;
547 } 727 }
548 728
549 void CodeGeneratorResponse_File::Clear() { 729 void CodeGeneratorResponse_File::Clear() {
550 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { 730 if (_has_bits_[0 / 32] & 7u) {
551 if (has_name()) { 731 if (has_name()) {
552 if (name_ != &::google::protobuf::internal::GetEmptyString()) { 732 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
553 name_->clear();
554 }
555 } 733 }
556 if (has_insertion_point()) { 734 if (has_insertion_point()) {
557 if (insertion_point_ != &::google::protobuf::internal::GetEmptyString()) { 735 insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited());
558 insertion_point_->clear();
559 }
560 } 736 }
561 if (has_content()) { 737 if (has_content()) {
562 if (content_ != &::google::protobuf::internal::GetEmptyString()) { 738 content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
563 content_->clear();
564 }
565 } 739 }
566 } 740 }
567 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 741 ::memset(_has_bits_, 0, sizeof(_has_bits_));
568 mutable_unknown_fields()->Clear(); 742 if (_internal_metadata_.have_unknown_fields()) {
743 mutable_unknown_fields()->Clear();
744 }
569 } 745 }
570 746
571 bool CodeGeneratorResponse_File::MergePartialFromCodedStream( 747 bool CodeGeneratorResponse_File::MergePartialFromCodedStream(
572 ::google::protobuf::io::CodedInputStream* input) { 748 ::google::protobuf::io::CodedInputStream* input) {
573 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false 749 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
574 ::google::protobuf::uint32 tag; 750 ::google::protobuf::uint32 tag;
575 while ((tag = input->ReadTag()) != 0) { 751 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator Response.File)
752 for (;;) {
753 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127);
754 tag = p.first;
755 if (!p.second) goto handle_unusual;
576 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 756 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
577 // optional string name = 1; 757 // optional string name = 1;
578 case 1: { 758 case 1: {
579 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 759 if (tag == 10) {
580 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI TED) {
581 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 760 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
582 input, this->mutable_name())); 761 input, this->mutable_name()));
583 ::google::protobuf::internal::WireFormat::VerifyUTF8String( 762 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
584 this->name().data(), this->name().length(), 763 this->name().data(), this->name().length(),
585 ::google::protobuf::internal::WireFormat::PARSE); 764 ::google::protobuf::internal::WireFormat::PARSE,
765 "google.protobuf.compiler.CodeGeneratorResponse.File.name");
586 } else { 766 } else {
587 goto handle_uninterpreted; 767 goto handle_unusual;
588 } 768 }
589 if (input->ExpectTag(18)) goto parse_insertion_point; 769 if (input->ExpectTag(18)) goto parse_insertion_point;
590 break; 770 break;
591 } 771 }
592 772
593 // optional string insertion_point = 2; 773 // optional string insertion_point = 2;
594 case 2: { 774 case 2: {
595 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 775 if (tag == 18) {
596 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI TED) {
597 parse_insertion_point: 776 parse_insertion_point:
598 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 777 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
599 input, this->mutable_insertion_point())); 778 input, this->mutable_insertion_point()));
600 ::google::protobuf::internal::WireFormat::VerifyUTF8String( 779 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
601 this->insertion_point().data(), this->insertion_point().length(), 780 this->insertion_point().data(), this->insertion_point().length(),
602 ::google::protobuf::internal::WireFormat::PARSE); 781 ::google::protobuf::internal::WireFormat::PARSE,
782 "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point ");
603 } else { 783 } else {
604 goto handle_uninterpreted; 784 goto handle_unusual;
605 } 785 }
606 if (input->ExpectTag(122)) goto parse_content; 786 if (input->ExpectTag(122)) goto parse_content;
607 break; 787 break;
608 } 788 }
609 789
610 // optional string content = 15; 790 // optional string content = 15;
611 case 15: { 791 case 15: {
612 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 792 if (tag == 122) {
613 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI TED) {
614 parse_content: 793 parse_content:
615 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 794 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
616 input, this->mutable_content())); 795 input, this->mutable_content()));
617 ::google::protobuf::internal::WireFormat::VerifyUTF8String( 796 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
618 this->content().data(), this->content().length(), 797 this->content().data(), this->content().length(),
619 ::google::protobuf::internal::WireFormat::PARSE); 798 ::google::protobuf::internal::WireFormat::PARSE,
799 "google.protobuf.compiler.CodeGeneratorResponse.File.content");
620 } else { 800 } else {
621 goto handle_uninterpreted; 801 goto handle_unusual;
622 } 802 }
623 if (input->ExpectAtEnd()) return true; 803 if (input->ExpectAtEnd()) goto success;
624 break; 804 break;
625 } 805 }
626 806
627 default: { 807 default: {
628 handle_uninterpreted: 808 handle_unusual:
629 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 809 if (tag == 0 ||
810 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
630 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 811 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
631 return true; 812 goto success;
632 } 813 }
633 DO_(::google::protobuf::internal::WireFormatLite::SkipField( 814 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
634 input, tag, mutable_unknown_fields())); 815 input, tag, mutable_unknown_fields()));
635 break; 816 break;
636 } 817 }
637 } 818 }
638 } 819 }
820 success:
821 // @@protoc_insertion_point(parse_success:google.protobuf.compiler.CodeGenerat orResponse.File)
639 return true; 822 return true;
823 failure:
824 // @@protoc_insertion_point(parse_failure:google.protobuf.compiler.CodeGenerat orResponse.File)
825 return false;
640 #undef DO_ 826 #undef DO_
641 } 827 }
642 828
643 void CodeGeneratorResponse_File::SerializeWithCachedSizes( 829 void CodeGeneratorResponse_File::SerializeWithCachedSizes(
644 ::google::protobuf::io::CodedOutputStream* output) const { 830 ::google::protobuf::io::CodedOutputStream* output) const {
831 // @@protoc_insertion_point(serialize_start:google.protobuf.compiler.CodeGener atorResponse.File)
645 // optional string name = 1; 832 // optional string name = 1;
646 if (has_name()) { 833 if (has_name()) {
647 ::google::protobuf::internal::WireFormat::VerifyUTF8String( 834 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
648 this->name().data(), this->name().length(), 835 this->name().data(), this->name().length(),
649 ::google::protobuf::internal::WireFormat::SERIALIZE); 836 ::google::protobuf::internal::WireFormat::SERIALIZE,
650 ::google::protobuf::internal::WireFormatLite::WriteString( 837 "google.protobuf.compiler.CodeGeneratorResponse.File.name");
838 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
651 1, this->name(), output); 839 1, this->name(), output);
652 } 840 }
653 841
654 // optional string insertion_point = 2; 842 // optional string insertion_point = 2;
655 if (has_insertion_point()) { 843 if (has_insertion_point()) {
656 ::google::protobuf::internal::WireFormat::VerifyUTF8String( 844 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
657 this->insertion_point().data(), this->insertion_point().length(), 845 this->insertion_point().data(), this->insertion_point().length(),
658 ::google::protobuf::internal::WireFormat::SERIALIZE); 846 ::google::protobuf::internal::WireFormat::SERIALIZE,
659 ::google::protobuf::internal::WireFormatLite::WriteString( 847 "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point");
848 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
660 2, this->insertion_point(), output); 849 2, this->insertion_point(), output);
661 } 850 }
662 851
663 // optional string content = 15; 852 // optional string content = 15;
664 if (has_content()) { 853 if (has_content()) {
665 ::google::protobuf::internal::WireFormat::VerifyUTF8String( 854 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
666 this->content().data(), this->content().length(), 855 this->content().data(), this->content().length(),
667 ::google::protobuf::internal::WireFormat::SERIALIZE); 856 ::google::protobuf::internal::WireFormat::SERIALIZE,
668 ::google::protobuf::internal::WireFormatLite::WriteString( 857 "google.protobuf.compiler.CodeGeneratorResponse.File.content");
858 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
669 15, this->content(), output); 859 15, this->content(), output);
670 } 860 }
671 861
672 if (!unknown_fields().empty()) { 862 if (_internal_metadata_.have_unknown_fields()) {
673 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( 863 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
674 unknown_fields(), output); 864 unknown_fields(), output);
675 } 865 }
866 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat orResponse.File)
676 } 867 }
677 868
678 ::google::protobuf::uint8* CodeGeneratorResponse_File::SerializeWithCachedSizesT oArray( 869 ::google::protobuf::uint8* CodeGeneratorResponse_File::SerializeWithCachedSizesT oArray(
679 ::google::protobuf::uint8* target) const { 870 ::google::protobuf::uint8* target) const {
871 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler. CodeGeneratorResponse.File)
680 // optional string name = 1; 872 // optional string name = 1;
681 if (has_name()) { 873 if (has_name()) {
682 ::google::protobuf::internal::WireFormat::VerifyUTF8String( 874 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
683 this->name().data(), this->name().length(), 875 this->name().data(), this->name().length(),
684 ::google::protobuf::internal::WireFormat::SERIALIZE); 876 ::google::protobuf::internal::WireFormat::SERIALIZE,
877 "google.protobuf.compiler.CodeGeneratorResponse.File.name");
685 target = 878 target =
686 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 879 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
687 1, this->name(), target); 880 1, this->name(), target);
688 } 881 }
689 882
690 // optional string insertion_point = 2; 883 // optional string insertion_point = 2;
691 if (has_insertion_point()) { 884 if (has_insertion_point()) {
692 ::google::protobuf::internal::WireFormat::VerifyUTF8String( 885 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
693 this->insertion_point().data(), this->insertion_point().length(), 886 this->insertion_point().data(), this->insertion_point().length(),
694 ::google::protobuf::internal::WireFormat::SERIALIZE); 887 ::google::protobuf::internal::WireFormat::SERIALIZE,
888 "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point");
695 target = 889 target =
696 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 890 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
697 2, this->insertion_point(), target); 891 2, this->insertion_point(), target);
698 } 892 }
699 893
700 // optional string content = 15; 894 // optional string content = 15;
701 if (has_content()) { 895 if (has_content()) {
702 ::google::protobuf::internal::WireFormat::VerifyUTF8String( 896 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
703 this->content().data(), this->content().length(), 897 this->content().data(), this->content().length(),
704 ::google::protobuf::internal::WireFormat::SERIALIZE); 898 ::google::protobuf::internal::WireFormat::SERIALIZE,
899 "google.protobuf.compiler.CodeGeneratorResponse.File.content");
705 target = 900 target =
706 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 901 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
707 15, this->content(), target); 902 15, this->content(), target);
708 } 903 }
709 904
710 if (!unknown_fields().empty()) { 905 if (_internal_metadata_.have_unknown_fields()) {
711 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField sToArray( 906 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField sToArray(
712 unknown_fields(), target); 907 unknown_fields(), target);
713 } 908 }
909 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Co deGeneratorResponse.File)
714 return target; 910 return target;
715 } 911 }
716 912
717 int CodeGeneratorResponse_File::ByteSize() const { 913 int CodeGeneratorResponse_File::ByteSize() const {
718 int total_size = 0; 914 int total_size = 0;
719 915
720 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { 916 if (_has_bits_[0 / 32] & 7u) {
721 // optional string name = 1; 917 // optional string name = 1;
722 if (has_name()) { 918 if (has_name()) {
723 total_size += 1 + 919 total_size += 1 +
724 ::google::protobuf::internal::WireFormatLite::StringSize( 920 ::google::protobuf::internal::WireFormatLite::StringSize(
725 this->name()); 921 this->name());
726 } 922 }
727 923
728 // optional string insertion_point = 2; 924 // optional string insertion_point = 2;
729 if (has_insertion_point()) { 925 if (has_insertion_point()) {
730 total_size += 1 + 926 total_size += 1 +
731 ::google::protobuf::internal::WireFormatLite::StringSize( 927 ::google::protobuf::internal::WireFormatLite::StringSize(
732 this->insertion_point()); 928 this->insertion_point());
733 } 929 }
734 930
735 // optional string content = 15; 931 // optional string content = 15;
736 if (has_content()) { 932 if (has_content()) {
737 total_size += 1 + 933 total_size += 1 +
738 ::google::protobuf::internal::WireFormatLite::StringSize( 934 ::google::protobuf::internal::WireFormatLite::StringSize(
739 this->content()); 935 this->content());
740 } 936 }
741 937
742 } 938 }
743 if (!unknown_fields().empty()) { 939 if (_internal_metadata_.have_unknown_fields()) {
744 total_size += 940 total_size +=
745 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( 941 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
746 unknown_fields()); 942 unknown_fields());
747 } 943 }
748 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 944 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
749 _cached_size_ = total_size; 945 _cached_size_ = total_size;
750 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 946 GOOGLE_SAFE_CONCURRENT_WRITES_END();
751 return total_size; 947 return total_size;
752 } 948 }
753 949
754 void CodeGeneratorResponse_File::MergeFrom(const ::google::protobuf::Message& fr om) { 950 void CodeGeneratorResponse_File::MergeFrom(const ::google::protobuf::Message& fr om) {
755 GOOGLE_CHECK_NE(&from, this); 951 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
756 const CodeGeneratorResponse_File* source = 952 const CodeGeneratorResponse_File* source =
757 ::google::protobuf::internal::dynamic_cast_if_available<const CodeGeneratorR esponse_File*>( 953 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe sponse_File>(
758 &from); 954 &from);
759 if (source == NULL) { 955 if (source == NULL) {
760 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 956 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
761 } else { 957 } else {
762 MergeFrom(*source); 958 MergeFrom(*source);
763 } 959 }
764 } 960 }
765 961
766 void CodeGeneratorResponse_File::MergeFrom(const CodeGeneratorResponse_File& fro m) { 962 void CodeGeneratorResponse_File::MergeFrom(const CodeGeneratorResponse_File& fro m) {
767 GOOGLE_CHECK_NE(&from, this); 963 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
768 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 964 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
769 if (from.has_name()) { 965 if (from.has_name()) {
770 set_name(from.name()); 966 set_has_name();
967 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_);
771 } 968 }
772 if (from.has_insertion_point()) { 969 if (from.has_insertion_point()) {
773 set_insertion_point(from.insertion_point()); 970 set_has_insertion_point();
971 insertion_point_.AssignWithDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), from.insertion_point_);
774 } 972 }
775 if (from.has_content()) { 973 if (from.has_content()) {
776 set_content(from.content()); 974 set_has_content();
975 content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited(), from.content_);
777 } 976 }
778 } 977 }
779 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); 978 if (from._internal_metadata_.have_unknown_fields()) {
979 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
980 }
780 } 981 }
781 982
782 void CodeGeneratorResponse_File::CopyFrom(const ::google::protobuf::Message& fro m) { 983 void CodeGeneratorResponse_File::CopyFrom(const ::google::protobuf::Message& fro m) {
783 if (&from == this) return; 984 if (&from == this) return;
784 Clear(); 985 Clear();
785 MergeFrom(from); 986 MergeFrom(from);
786 } 987 }
787 988
788 void CodeGeneratorResponse_File::CopyFrom(const CodeGeneratorResponse_File& from ) { 989 void CodeGeneratorResponse_File::CopyFrom(const CodeGeneratorResponse_File& from ) {
789 if (&from == this) return; 990 if (&from == this) return;
790 Clear(); 991 Clear();
791 MergeFrom(from); 992 MergeFrom(from);
792 } 993 }
793 994
794 bool CodeGeneratorResponse_File::IsInitialized() const { 995 bool CodeGeneratorResponse_File::IsInitialized() const {
795 996
796 return true; 997 return true;
797 } 998 }
798 999
799 void CodeGeneratorResponse_File::Swap(CodeGeneratorResponse_File* other) { 1000 void CodeGeneratorResponse_File::Swap(CodeGeneratorResponse_File* other) {
800 if (other != this) { 1001 if (other == this) return;
801 std::swap(name_, other->name_); 1002 InternalSwap(other);
802 std::swap(insertion_point_, other->insertion_point_); 1003 }
803 std::swap(content_, other->content_); 1004 void CodeGeneratorResponse_File::InternalSwap(CodeGeneratorResponse_File* other) {
804 std::swap(_has_bits_[0], other->_has_bits_[0]); 1005 name_.Swap(&other->name_);
805 _unknown_fields_.Swap(&other->_unknown_fields_); 1006 insertion_point_.Swap(&other->insertion_point_);
806 std::swap(_cached_size_, other->_cached_size_); 1007 content_.Swap(&other->content_);
807 } 1008 std::swap(_has_bits_[0], other->_has_bits_[0]);
1009 _internal_metadata_.Swap(&other->_internal_metadata_);
1010 std::swap(_cached_size_, other->_cached_size_);
808 } 1011 }
809 1012
810 ::google::protobuf::Metadata CodeGeneratorResponse_File::GetMetadata() const { 1013 ::google::protobuf::Metadata CodeGeneratorResponse_File::GetMetadata() const {
811 protobuf_AssignDescriptorsOnce(); 1014 protobuf_AssignDescriptorsOnce();
812 ::google::protobuf::Metadata metadata; 1015 ::google::protobuf::Metadata metadata;
813 metadata.descriptor = CodeGeneratorResponse_File_descriptor_; 1016 metadata.descriptor = CodeGeneratorResponse_File_descriptor_;
814 metadata.reflection = CodeGeneratorResponse_File_reflection_; 1017 metadata.reflection = CodeGeneratorResponse_File_reflection_;
815 return metadata; 1018 return metadata;
816 } 1019 }
817 1020
818 1021
819 // ------------------------------------------------------------------- 1022 // -------------------------------------------------------------------
820 1023
821 #ifndef _MSC_VER 1024 #ifndef _MSC_VER
822 const int CodeGeneratorResponse::kErrorFieldNumber; 1025 const int CodeGeneratorResponse::kErrorFieldNumber;
823 const int CodeGeneratorResponse::kFileFieldNumber; 1026 const int CodeGeneratorResponse::kFileFieldNumber;
824 #endif // !_MSC_VER 1027 #endif // !_MSC_VER
825 1028
826 CodeGeneratorResponse::CodeGeneratorResponse() 1029 CodeGeneratorResponse::CodeGeneratorResponse()
827 : ::google::protobuf::Message() { 1030 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
828 SharedCtor(); 1031 SharedCtor();
1032 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator Response)
829 } 1033 }
830 1034
831 void CodeGeneratorResponse::InitAsDefaultInstance() { 1035 void CodeGeneratorResponse::InitAsDefaultInstance() {
832 } 1036 }
833 1037
834 CodeGeneratorResponse::CodeGeneratorResponse(const CodeGeneratorResponse& from) 1038 CodeGeneratorResponse::CodeGeneratorResponse(const CodeGeneratorResponse& from)
835 : ::google::protobuf::Message() { 1039 : ::google::protobuf::Message(),
1040 _internal_metadata_(NULL) {
836 SharedCtor(); 1041 SharedCtor();
837 MergeFrom(from); 1042 MergeFrom(from);
1043 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene ratorResponse)
838 } 1044 }
839 1045
840 void CodeGeneratorResponse::SharedCtor() { 1046 void CodeGeneratorResponse::SharedCtor() {
1047 ::google::protobuf::internal::GetEmptyString();
841 _cached_size_ = 0; 1048 _cached_size_ = 0;
842 error_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptySt ring()); 1049 error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited());
843 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 1050 ::memset(_has_bits_, 0, sizeof(_has_bits_));
844 } 1051 }
845 1052
846 CodeGeneratorResponse::~CodeGeneratorResponse() { 1053 CodeGeneratorResponse::~CodeGeneratorResponse() {
1054 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR esponse)
847 SharedDtor(); 1055 SharedDtor();
848 } 1056 }
849 1057
850 void CodeGeneratorResponse::SharedDtor() { 1058 void CodeGeneratorResponse::SharedDtor() {
851 if (error_ != &::google::protobuf::internal::GetEmptyString()) { 1059 error_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed());
852 delete error_;
853 }
854 if (this != default_instance_) { 1060 if (this != default_instance_) {
855 } 1061 }
856 } 1062 }
857 1063
858 void CodeGeneratorResponse::SetCachedSize(int size) const { 1064 void CodeGeneratorResponse::SetCachedSize(int size) const {
859 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1065 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
860 _cached_size_ = size; 1066 _cached_size_ = size;
861 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1067 GOOGLE_SAFE_CONCURRENT_WRITES_END();
862 } 1068 }
863 const ::google::protobuf::Descriptor* CodeGeneratorResponse::descriptor() { 1069 const ::google::protobuf::Descriptor* CodeGeneratorResponse::descriptor() {
864 protobuf_AssignDescriptorsOnce(); 1070 protobuf_AssignDescriptorsOnce();
865 return CodeGeneratorResponse_descriptor_; 1071 return CodeGeneratorResponse_descriptor_;
866 } 1072 }
867 1073
868 const CodeGeneratorResponse& CodeGeneratorResponse::default_instance() { 1074 const CodeGeneratorResponse& CodeGeneratorResponse::default_instance() {
869 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2 fplugin_2eproto(); 1075 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2 fplugin_2eproto();
870 return *default_instance_; 1076 return *default_instance_;
871 } 1077 }
872 1078
873 CodeGeneratorResponse* CodeGeneratorResponse::default_instance_ = NULL; 1079 CodeGeneratorResponse* CodeGeneratorResponse::default_instance_ = NULL;
874 1080
875 CodeGeneratorResponse* CodeGeneratorResponse::New() const { 1081 CodeGeneratorResponse* CodeGeneratorResponse::New(::google::protobuf::Arena* are na) const {
876 return new CodeGeneratorResponse; 1082 CodeGeneratorResponse* n = new CodeGeneratorResponse;
1083 if (arena != NULL) {
1084 arena->Own(n);
1085 }
1086 return n;
877 } 1087 }
878 1088
879 void CodeGeneratorResponse::Clear() { 1089 void CodeGeneratorResponse::Clear() {
880 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { 1090 if (has_error()) {
881 if (has_error()) { 1091 error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
882 if (error_ != &::google::protobuf::internal::GetEmptyString()) {
883 error_->clear();
884 }
885 }
886 } 1092 }
887 file_.Clear(); 1093 file_.Clear();
888 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 1094 ::memset(_has_bits_, 0, sizeof(_has_bits_));
889 mutable_unknown_fields()->Clear(); 1095 if (_internal_metadata_.have_unknown_fields()) {
1096 mutable_unknown_fields()->Clear();
1097 }
890 } 1098 }
891 1099
892 bool CodeGeneratorResponse::MergePartialFromCodedStream( 1100 bool CodeGeneratorResponse::MergePartialFromCodedStream(
893 ::google::protobuf::io::CodedInputStream* input) { 1101 ::google::protobuf::io::CodedInputStream* input) {
894 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false 1102 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
895 ::google::protobuf::uint32 tag; 1103 ::google::protobuf::uint32 tag;
896 while ((tag = input->ReadTag()) != 0) { 1104 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator Response)
1105 for (;;) {
1106 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127);
1107 tag = p.first;
1108 if (!p.second) goto handle_unusual;
897 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 1109 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
898 // optional string error = 1; 1110 // optional string error = 1;
899 case 1: { 1111 case 1: {
900 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 1112 if (tag == 10) {
901 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI TED) {
902 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1113 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
903 input, this->mutable_error())); 1114 input, this->mutable_error()));
904 ::google::protobuf::internal::WireFormat::VerifyUTF8String( 1115 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
905 this->error().data(), this->error().length(), 1116 this->error().data(), this->error().length(),
906 ::google::protobuf::internal::WireFormat::PARSE); 1117 ::google::protobuf::internal::WireFormat::PARSE,
1118 "google.protobuf.compiler.CodeGeneratorResponse.error");
907 } else { 1119 } else {
908 goto handle_uninterpreted; 1120 goto handle_unusual;
909 } 1121 }
910 if (input->ExpectTag(122)) goto parse_file; 1122 if (input->ExpectTag(122)) goto parse_file;
911 break; 1123 break;
912 } 1124 }
913 1125
914 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 ; 1126 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 ;
915 case 15: { 1127 case 15: {
916 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 1128 if (tag == 122) {
917 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMI TED) {
918 parse_file: 1129 parse_file:
919 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 1130 DO_(input->IncrementRecursionDepth());
1131 parse_loop_file:
1132 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
920 input, add_file())); 1133 input, add_file()));
921 } else { 1134 } else {
922 goto handle_uninterpreted; 1135 goto handle_unusual;
923 } 1136 }
924 if (input->ExpectTag(122)) goto parse_file; 1137 if (input->ExpectTag(122)) goto parse_loop_file;
925 if (input->ExpectAtEnd()) return true; 1138 input->UnsafeDecrementRecursionDepth();
1139 if (input->ExpectAtEnd()) goto success;
926 break; 1140 break;
927 } 1141 }
928 1142
929 default: { 1143 default: {
930 handle_uninterpreted: 1144 handle_unusual:
931 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 1145 if (tag == 0 ||
1146 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
932 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 1147 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
933 return true; 1148 goto success;
934 } 1149 }
935 DO_(::google::protobuf::internal::WireFormatLite::SkipField( 1150 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
936 input, tag, mutable_unknown_fields())); 1151 input, tag, mutable_unknown_fields()));
937 break; 1152 break;
938 } 1153 }
939 } 1154 }
940 } 1155 }
1156 success:
1157 // @@protoc_insertion_point(parse_success:google.protobuf.compiler.CodeGenerat orResponse)
941 return true; 1158 return true;
1159 failure:
1160 // @@protoc_insertion_point(parse_failure:google.protobuf.compiler.CodeGenerat orResponse)
1161 return false;
942 #undef DO_ 1162 #undef DO_
943 } 1163 }
944 1164
945 void CodeGeneratorResponse::SerializeWithCachedSizes( 1165 void CodeGeneratorResponse::SerializeWithCachedSizes(
946 ::google::protobuf::io::CodedOutputStream* output) const { 1166 ::google::protobuf::io::CodedOutputStream* output) const {
1167 // @@protoc_insertion_point(serialize_start:google.protobuf.compiler.CodeGener atorResponse)
947 // optional string error = 1; 1168 // optional string error = 1;
948 if (has_error()) { 1169 if (has_error()) {
949 ::google::protobuf::internal::WireFormat::VerifyUTF8String( 1170 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
950 this->error().data(), this->error().length(), 1171 this->error().data(), this->error().length(),
951 ::google::protobuf::internal::WireFormat::SERIALIZE); 1172 ::google::protobuf::internal::WireFormat::SERIALIZE,
952 ::google::protobuf::internal::WireFormatLite::WriteString( 1173 "google.protobuf.compiler.CodeGeneratorResponse.error");
1174 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
953 1, this->error(), output); 1175 1, this->error(), output);
954 } 1176 }
955 1177
956 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; 1178 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
957 for (int i = 0; i < this->file_size(); i++) { 1179 for (unsigned int i = 0, n = this->file_size(); i < n; i++) {
958 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1180 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
959 15, this->file(i), output); 1181 15, this->file(i), output);
960 } 1182 }
961 1183
962 if (!unknown_fields().empty()) { 1184 if (_internal_metadata_.have_unknown_fields()) {
963 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( 1185 ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
964 unknown_fields(), output); 1186 unknown_fields(), output);
965 } 1187 }
1188 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat orResponse)
966 } 1189 }
967 1190
968 ::google::protobuf::uint8* CodeGeneratorResponse::SerializeWithCachedSizesToArra y( 1191 ::google::protobuf::uint8* CodeGeneratorResponse::SerializeWithCachedSizesToArra y(
969 ::google::protobuf::uint8* target) const { 1192 ::google::protobuf::uint8* target) const {
1193 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler. CodeGeneratorResponse)
970 // optional string error = 1; 1194 // optional string error = 1;
971 if (has_error()) { 1195 if (has_error()) {
972 ::google::protobuf::internal::WireFormat::VerifyUTF8String( 1196 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
973 this->error().data(), this->error().length(), 1197 this->error().data(), this->error().length(),
974 ::google::protobuf::internal::WireFormat::SERIALIZE); 1198 ::google::protobuf::internal::WireFormat::SERIALIZE,
1199 "google.protobuf.compiler.CodeGeneratorResponse.error");
975 target = 1200 target =
976 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1201 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
977 1, this->error(), target); 1202 1, this->error(), target);
978 } 1203 }
979 1204
980 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; 1205 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
981 for (int i = 0; i < this->file_size(); i++) { 1206 for (unsigned int i = 0, n = this->file_size(); i < n; i++) {
982 target = ::google::protobuf::internal::WireFormatLite:: 1207 target = ::google::protobuf::internal::WireFormatLite::
983 WriteMessageNoVirtualToArray( 1208 WriteMessageNoVirtualToArray(
984 15, this->file(i), target); 1209 15, this->file(i), target);
985 } 1210 }
986 1211
987 if (!unknown_fields().empty()) { 1212 if (_internal_metadata_.have_unknown_fields()) {
988 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField sToArray( 1213 target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownField sToArray(
989 unknown_fields(), target); 1214 unknown_fields(), target);
990 } 1215 }
1216 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Co deGeneratorResponse)
991 return target; 1217 return target;
992 } 1218 }
993 1219
994 int CodeGeneratorResponse::ByteSize() const { 1220 int CodeGeneratorResponse::ByteSize() const {
995 int total_size = 0; 1221 int total_size = 0;
996 1222
997 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { 1223 // optional string error = 1;
998 // optional string error = 1; 1224 if (has_error()) {
999 if (has_error()) { 1225 total_size += 1 +
1000 total_size += 1 + 1226 ::google::protobuf::internal::WireFormatLite::StringSize(
1001 ::google::protobuf::internal::WireFormatLite::StringSize( 1227 this->error());
1002 this->error()); 1228 }
1003 }
1004 1229
1005 }
1006 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; 1230 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
1007 total_size += 1 * this->file_size(); 1231 total_size += 1 * this->file_size();
1008 for (int i = 0; i < this->file_size(); i++) { 1232 for (int i = 0; i < this->file_size(); i++) {
1009 total_size += 1233 total_size +=
1010 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 1234 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1011 this->file(i)); 1235 this->file(i));
1012 } 1236 }
1013 1237
1014 if (!unknown_fields().empty()) { 1238 if (_internal_metadata_.have_unknown_fields()) {
1015 total_size += 1239 total_size +=
1016 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( 1240 ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
1017 unknown_fields()); 1241 unknown_fields());
1018 } 1242 }
1019 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1243 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1020 _cached_size_ = total_size; 1244 _cached_size_ = total_size;
1021 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1245 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1022 return total_size; 1246 return total_size;
1023 } 1247 }
1024 1248
1025 void CodeGeneratorResponse::MergeFrom(const ::google::protobuf::Message& from) { 1249 void CodeGeneratorResponse::MergeFrom(const ::google::protobuf::Message& from) {
1026 GOOGLE_CHECK_NE(&from, this); 1250 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1027 const CodeGeneratorResponse* source = 1251 const CodeGeneratorResponse* source =
1028 ::google::protobuf::internal::dynamic_cast_if_available<const CodeGeneratorR esponse*>( 1252 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe sponse>(
1029 &from); 1253 &from);
1030 if (source == NULL) { 1254 if (source == NULL) {
1031 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 1255 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1032 } else { 1256 } else {
1033 MergeFrom(*source); 1257 MergeFrom(*source);
1034 } 1258 }
1035 } 1259 }
1036 1260
1037 void CodeGeneratorResponse::MergeFrom(const CodeGeneratorResponse& from) { 1261 void CodeGeneratorResponse::MergeFrom(const CodeGeneratorResponse& from) {
1038 GOOGLE_CHECK_NE(&from, this); 1262 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1039 file_.MergeFrom(from.file_); 1263 file_.MergeFrom(from.file_);
1040 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 1264 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1041 if (from.has_error()) { 1265 if (from.has_error()) {
1042 set_error(from.error()); 1266 set_has_error();
1267 error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), from.error_);
1043 } 1268 }
1044 } 1269 }
1045 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); 1270 if (from._internal_metadata_.have_unknown_fields()) {
1271 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1272 }
1046 } 1273 }
1047 1274
1048 void CodeGeneratorResponse::CopyFrom(const ::google::protobuf::Message& from) { 1275 void CodeGeneratorResponse::CopyFrom(const ::google::protobuf::Message& from) {
1049 if (&from == this) return; 1276 if (&from == this) return;
1050 Clear(); 1277 Clear();
1051 MergeFrom(from); 1278 MergeFrom(from);
1052 } 1279 }
1053 1280
1054 void CodeGeneratorResponse::CopyFrom(const CodeGeneratorResponse& from) { 1281 void CodeGeneratorResponse::CopyFrom(const CodeGeneratorResponse& from) {
1055 if (&from == this) return; 1282 if (&from == this) return;
1056 Clear(); 1283 Clear();
1057 MergeFrom(from); 1284 MergeFrom(from);
1058 } 1285 }
1059 1286
1060 bool CodeGeneratorResponse::IsInitialized() const { 1287 bool CodeGeneratorResponse::IsInitialized() const {
1061 1288
1062 return true; 1289 return true;
1063 } 1290 }
1064 1291
1065 void CodeGeneratorResponse::Swap(CodeGeneratorResponse* other) { 1292 void CodeGeneratorResponse::Swap(CodeGeneratorResponse* other) {
1066 if (other != this) { 1293 if (other == this) return;
1067 std::swap(error_, other->error_); 1294 InternalSwap(other);
1068 file_.Swap(&other->file_); 1295 }
1069 std::swap(_has_bits_[0], other->_has_bits_[0]); 1296 void CodeGeneratorResponse::InternalSwap(CodeGeneratorResponse* other) {
1070 _unknown_fields_.Swap(&other->_unknown_fields_); 1297 error_.Swap(&other->error_);
1071 std::swap(_cached_size_, other->_cached_size_); 1298 file_.UnsafeArenaSwap(&other->file_);
1072 } 1299 std::swap(_has_bits_[0], other->_has_bits_[0]);
1300 _internal_metadata_.Swap(&other->_internal_metadata_);
1301 std::swap(_cached_size_, other->_cached_size_);
1073 } 1302 }
1074 1303
1075 ::google::protobuf::Metadata CodeGeneratorResponse::GetMetadata() const { 1304 ::google::protobuf::Metadata CodeGeneratorResponse::GetMetadata() const {
1076 protobuf_AssignDescriptorsOnce(); 1305 protobuf_AssignDescriptorsOnce();
1077 ::google::protobuf::Metadata metadata; 1306 ::google::protobuf::Metadata metadata;
1078 metadata.descriptor = CodeGeneratorResponse_descriptor_; 1307 metadata.descriptor = CodeGeneratorResponse_descriptor_;
1079 metadata.reflection = CodeGeneratorResponse_reflection_; 1308 metadata.reflection = CodeGeneratorResponse_reflection_;
1080 return metadata; 1309 return metadata;
1081 } 1310 }
1082 1311
1312 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1313 // CodeGeneratorResponse_File
1314
1315 // optional string name = 1;
1316 bool CodeGeneratorResponse_File::has_name() const {
1317 return (_has_bits_[0] & 0x00000001u) != 0;
1318 }
1319 void CodeGeneratorResponse_File::set_has_name() {
1320 _has_bits_[0] |= 0x00000001u;
1321 }
1322 void CodeGeneratorResponse_File::clear_has_name() {
1323 _has_bits_[0] &= ~0x00000001u;
1324 }
1325 void CodeGeneratorResponse_File::clear_name() {
1326 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
1327 clear_has_name();
1328 }
1329 const ::std::string& CodeGeneratorResponse_File::name() const {
1330 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe sponse.File.name)
1331 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited());
1332 }
1333 void CodeGeneratorResponse_File::set_name(const ::std::string& value) {
1334 set_has_name();
1335 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1336 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe sponse.File.name)
1337 }
1338 void CodeGeneratorResponse_File::set_name(const char* value) {
1339 set_has_name();
1340 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1341 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torResponse.File.name)
1342 }
1343 void CodeGeneratorResponse_File::set_name(const char* value, size_t size) {
1344 set_has_name();
1345 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1346 ::std::string(reinterpret_cast<const char*>(value), size));
1347 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorResponse.File.name)
1348 }
1349 ::std::string* CodeGeneratorResponse_File::mutable_name() {
1350 set_has_name();
1351 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orResponse.File.name)
1352 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
1353 }
1354 ::std::string* CodeGeneratorResponse_File::release_name() {
1355 clear_has_name();
1356 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
1357 }
1358 void CodeGeneratorResponse_File::set_allocated_name(::std::string* name) {
1359 if (name != NULL) {
1360 set_has_name();
1361 } else {
1362 clear_has_name();
1363 }
1364 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
1365 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorResponse.File.name)
1366 }
1367
1368 // optional string insertion_point = 2;
1369 bool CodeGeneratorResponse_File::has_insertion_point() const {
1370 return (_has_bits_[0] & 0x00000002u) != 0;
1371 }
1372 void CodeGeneratorResponse_File::set_has_insertion_point() {
1373 _has_bits_[0] |= 0x00000002u;
1374 }
1375 void CodeGeneratorResponse_File::clear_has_insertion_point() {
1376 _has_bits_[0] &= ~0x00000002u;
1377 }
1378 void CodeGeneratorResponse_File::clear_insertion_point() {
1379 insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited());
1380 clear_has_insertion_point();
1381 }
1382 const ::std::string& CodeGeneratorResponse_File::insertion_point() const {
1383 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe sponse.File.insertion_point)
1384 return insertion_point_.GetNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
1385 }
1386 void CodeGeneratorResponse_File::set_insertion_point(const ::std::string& value ) {
1387 set_has_insertion_point();
1388 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), value);
1389 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe sponse.File.insertion_point)
1390 }
1391 void CodeGeneratorResponse_File::set_insertion_point(const char* value) {
1392 set_has_insertion_point();
1393 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), ::std::string(value));
1394 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torResponse.File.insertion_point)
1395 }
1396 void CodeGeneratorResponse_File::set_insertion_point(const char* value, size_t size) {
1397 set_has_insertion_point();
1398 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(),
1399 ::std::string(reinterpret_cast<const char*>(value), size));
1400 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorResponse.File.insertion_point)
1401 }
1402 ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() {
1403 set_has_insertion_point();
1404 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orResponse.File.insertion_point)
1405 return insertion_point_.MutableNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
1406 }
1407 ::std::string* CodeGeneratorResponse_File::release_insertion_point() {
1408 clear_has_insertion_point();
1409 return insertion_point_.ReleaseNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
1410 }
1411 void CodeGeneratorResponse_File::set_allocated_insertion_point(::std::string* i nsertion_point) {
1412 if (insertion_point != NULL) {
1413 set_has_insertion_point();
1414 } else {
1415 clear_has_insertion_point();
1416 }
1417 insertion_point_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited(), insertion_point);
1418 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorResponse.File.insertion_point)
1419 }
1420
1421 // optional string content = 15;
1422 bool CodeGeneratorResponse_File::has_content() const {
1423 return (_has_bits_[0] & 0x00000004u) != 0;
1424 }
1425 void CodeGeneratorResponse_File::set_has_content() {
1426 _has_bits_[0] |= 0x00000004u;
1427 }
1428 void CodeGeneratorResponse_File::clear_has_content() {
1429 _has_bits_[0] &= ~0x00000004u;
1430 }
1431 void CodeGeneratorResponse_File::clear_content() {
1432 content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
1433 clear_has_content();
1434 }
1435 const ::std::string& CodeGeneratorResponse_File::content() const {
1436 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe sponse.File.content)
1437 return content_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited());
1438 }
1439 void CodeGeneratorResponse_File::set_content(const ::std::string& value) {
1440 set_has_content();
1441 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), value);
1442 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe sponse.File.content)
1443 }
1444 void CodeGeneratorResponse_File::set_content(const char* value) {
1445 set_has_content();
1446 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), ::std::string(value));
1447 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torResponse.File.content)
1448 }
1449 void CodeGeneratorResponse_File::set_content(const char* value, size_t size) {
1450 set_has_content();
1451 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (),
1452 ::std::string(reinterpret_cast<const char*>(value), size));
1453 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorResponse.File.content)
1454 }
1455 ::std::string* CodeGeneratorResponse_File::mutable_content() {
1456 set_has_content();
1457 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orResponse.File.content)
1458 return content_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
1459 }
1460 ::std::string* CodeGeneratorResponse_File::release_content() {
1461 clear_has_content();
1462 return content_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
1463 }
1464 void CodeGeneratorResponse_File::set_allocated_content(::std::string* content) {
1465 if (content != NULL) {
1466 set_has_content();
1467 } else {
1468 clear_has_content();
1469 }
1470 content_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), content);
1471 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorResponse.File.content)
1472 }
1473
1474 // -------------------------------------------------------------------
1475
1476 // CodeGeneratorResponse
1477
1478 // optional string error = 1;
1479 bool CodeGeneratorResponse::has_error() const {
1480 return (_has_bits_[0] & 0x00000001u) != 0;
1481 }
1482 void CodeGeneratorResponse::set_has_error() {
1483 _has_bits_[0] |= 0x00000001u;
1484 }
1485 void CodeGeneratorResponse::clear_has_error() {
1486 _has_bits_[0] &= ~0x00000001u;
1487 }
1488 void CodeGeneratorResponse::clear_error() {
1489 error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited());
1490 clear_has_error();
1491 }
1492 const ::std::string& CodeGeneratorResponse::error() const {
1493 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe sponse.error)
1494 return error_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited());
1495 }
1496 void CodeGeneratorResponse::set_error(const ::std::string& value) {
1497 set_has_error();
1498 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited() , value);
1499 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe sponse.error)
1500 }
1501 void CodeGeneratorResponse::set_error(const char* value) {
1502 set_has_error();
1503 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited() , ::std::string(value));
1504 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torResponse.error)
1505 }
1506 void CodeGeneratorResponse::set_error(const char* value, size_t size) {
1507 set_has_error();
1508 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited() ,
1509 ::std::string(reinterpret_cast<const char*>(value), size));
1510 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorResponse.error)
1511 }
1512 ::std::string* CodeGeneratorResponse::mutable_error() {
1513 set_has_error();
1514 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orResponse.error)
1515 return error_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
1516 }
1517 ::std::string* CodeGeneratorResponse::release_error() {
1518 clear_has_error();
1519 return error_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
1520 }
1521 void CodeGeneratorResponse::set_allocated_error(::std::string* error) {
1522 if (error != NULL) {
1523 set_has_error();
1524 } else {
1525 clear_has_error();
1526 }
1527 error_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited(), error);
1528 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorResponse.error)
1529 }
1530
1531 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
1532 int CodeGeneratorResponse::file_size() const {
1533 return file_.size();
1534 }
1535 void CodeGeneratorResponse::clear_file() {
1536 file_.Clear();
1537 }
1538 const ::google::protobuf::compiler::CodeGeneratorResponse_File& CodeGeneratorRe sponse::file(int index) const {
1539 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe sponse.file)
1540 return file_.Get(index);
1541 }
1542 ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse ::mutable_file(int index) {
1543 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orResponse.file)
1544 return file_.Mutable(index);
1545 }
1546 ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse ::add_file() {
1547 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRe sponse.file)
1548 return file_.Add();
1549 }
1550 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeG eneratorResponse_File >&
1551 CodeGeneratorResponse::file() const {
1552 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR esponse.file)
1553 return file_;
1554 }
1555 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGenerat orResponse_File >*
1556 CodeGeneratorResponse::mutable_file() {
1557 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe neratorResponse.file)
1558 return &file_;
1559 }
1560
1561 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1083 1562
1084 // @@protoc_insertion_point(namespace_scope) 1563 // @@protoc_insertion_point(namespace_scope)
1085 1564
1086 } // namespace compiler 1565 } // namespace compiler
1087 } // namespace protobuf 1566 } // namespace protobuf
1088 } // namespace google 1567 } // namespace google
1089 1568
1090 // @@protoc_insertion_point(global_scope) 1569 // @@protoc_insertion_point(global_scope)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698