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