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

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

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (Closed)
Patch Set: Created 4 years 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/port.h> 10 #include <google/protobuf/stubs/port.h>
11 #include <google/protobuf/stubs/once.h> 11 #include <google/protobuf/stubs/once.h>
12 #include <google/protobuf/io/coded_stream.h> 12 #include <google/protobuf/io/coded_stream.h>
13 #include <google/protobuf/wire_format_lite_inl.h> 13 #include <google/protobuf/wire_format_lite_inl.h>
14 #include <google/protobuf/descriptor.h> 14 #include <google/protobuf/descriptor.h>
15 #include <google/protobuf/generated_message_reflection.h> 15 #include <google/protobuf/generated_message_reflection.h>
16 #include <google/protobuf/reflection_ops.h> 16 #include <google/protobuf/reflection_ops.h>
17 #include <google/protobuf/wire_format.h> 17 #include <google/protobuf/wire_format.h>
18 // @@protoc_insertion_point(includes) 18 // @@protoc_insertion_point(includes)
19 19
20 namespace google { 20 namespace google {
21 namespace protobuf { 21 namespace protobuf {
22 namespace compiler { 22 namespace compiler {
23 class VersionDefaultTypeInternal : public ::google::protobuf::internal::Explicit lyConstructed<Version> {};
24 VersionDefaultTypeInternal _Version_default_instance_;
25 class CodeGeneratorRequestDefaultTypeInternal : public ::google::protobuf::inter nal::ExplicitlyConstructed<CodeGeneratorRequest> {};
26 CodeGeneratorRequestDefaultTypeInternal _CodeGeneratorRequest_default_instance_;
27 class CodeGeneratorResponse_FileDefaultTypeInternal : public ::google::protobuf: :internal::ExplicitlyConstructed<CodeGeneratorResponse_File> {};
28 CodeGeneratorResponse_FileDefaultTypeInternal _CodeGeneratorResponse_File_defaul t_instance_;
29 class CodeGeneratorResponseDefaultTypeInternal : public ::google::protobuf::inte rnal::ExplicitlyConstructed<CodeGeneratorResponse> {};
30 CodeGeneratorResponseDefaultTypeInternal _CodeGeneratorResponse_default_instance _;
31 23
32 namespace { 24 namespace {
33 25
34 ::google::protobuf::Metadata file_level_metadata[4]; 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_ = N ULL;
33 const ::google::protobuf::internal::GeneratedMessageReflection*
34 CodeGeneratorResponse_File_reflection_ = NULL;
35 35
36 } // namespace 36 } // namespace
37 37
38 38
39 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fcompiler_ 2fplugin_2eproto() GOOGLE_ATTRIBUTE_COLD; 39 void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
40 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fcompiler_ 2fplugin_2eproto() { 40 protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
41 static const ::google::protobuf::uint32 offsets[] = { 41 const ::google::protobuf::FileDescriptor* file =
42 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Version, _has_bits_), 42 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
43 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Version, _internal_metadata_) , 43 "google/protobuf/compiler/plugin.proto");
44 ~0u, // no _extensions_ 44 GOOGLE_CHECK(file != NULL);
45 ~0u, // no _oneof_case_ 45 CodeGeneratorRequest_descriptor_ = file->message_type(0);
46 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Version, major_), 46 static const int CodeGeneratorRequest_offsets_[3] = {
47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Version, minor_),
48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Version, patch_),
49 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Version, suffix_),
50 1,
51 2,
52 3,
53 0,
54 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, _has_bi ts_),
55 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, _intern al_metadata_),
56 ~0u, // no _extensions_
57 ~0u, // no _oneof_case_
58 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, file_to _generate_), 47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, file_to _generate_),
59 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, paramet er_), 48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, paramet er_),
60 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, proto_f ile_), 49 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, proto_f ile_),
61 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, compile r_version_), 50 };
62 2, 51 CodeGeneratorRequest_reflection_ =
63 0, 52 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection(
64 3, 53 CodeGeneratorRequest_descriptor_,
65 1, 54 CodeGeneratorRequest::default_instance_,
66 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, _ has_bits_), 55 CodeGeneratorRequest_offsets_,
67 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, _ internal_metadata_), 56 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, _has_ bits_[0]),
68 ~0u, // no _extensions_ 57 -1,
69 ~0u, // no _oneof_case_ 58 -1,
59 sizeof(CodeGeneratorRequest),
60 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, _inte rnal_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::NewGeneratedMessag eReflection(
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, _int ernal_metadata_),
77 -1);
78 CodeGeneratorResponse_File_descriptor_ = CodeGeneratorResponse_descriptor_->ne sted_type(0);
79 static const int CodeGeneratorResponse_File_offsets_[3] = {
70 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, n ame_), 80 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, n ame_),
71 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, i nsertion_point_), 81 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, i nsertion_point_),
72 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, c ontent_), 82 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, c ontent_),
73 0,
74 1,
75 2,
76 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, _has_b its_),
77 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, _inter nal_metadata_),
78 ~0u, // no _extensions_
79 ~0u, // no _oneof_case_
80 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, error_ ),
81 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, file_) ,
82 0,
83 1,
84 }; 83 };
85 return offsets; 84 CodeGeneratorResponse_File_reflection_ =
85 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection(
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);
86 } 95 }
87 96
88 static const ::google::protobuf::internal::MigrationSchema schemas[] = {
89 { 0, 8, sizeof(Version)},
90 { 12, 20, sizeof(CodeGeneratorRequest)},
91 { 24, 31, sizeof(CodeGeneratorResponse_File)},
92 { 34, 40, sizeof(CodeGeneratorResponse)},
93 };
94
95 static const ::google::protobuf::internal::DefaultInstanceData file_default_inst ances[] = {
96 {reinterpret_cast<const ::google::protobuf::Message*>(&_Version_default_instan ce_), NULL},
97 {reinterpret_cast<const ::google::protobuf::Message*>(&_CodeGeneratorRequest_d efault_instance_), NULL},
98 {reinterpret_cast<const ::google::protobuf::Message*>(&_CodeGeneratorResponse_ File_default_instance_), NULL},
99 {reinterpret_cast<const ::google::protobuf::Message*>(&_CodeGeneratorResponse_ default_instance_), NULL},
100 };
101
102 namespace { 97 namespace {
103 98
104 void protobuf_AssignDescriptors() { 99 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
105 protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 100 inline void protobuf_AssignDescriptorsOnce() {
106 ::google::protobuf::MessageFactory* factory = NULL; 101 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
107 AssignDescriptors( 102 &protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2epr oto);
108 "google/protobuf/compiler/plugin.proto", schemas, file_default_instances, protobuf_Offsets_google_2fprotobuf_2fcompiler_2fplugin_2eproto(), factory,
109 file_level_metadata, NULL, NULL);
110 } 103 }
111 104
112 void protobuf_AssignDescriptorsOnce() {
113 static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
114 ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
115 }
116
117 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
118 void protobuf_RegisterTypes(const ::std::string&) { 105 void protobuf_RegisterTypes(const ::std::string&) {
119 protobuf_AssignDescriptorsOnce(); 106 protobuf_AssignDescriptorsOnce();
120 ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4); 107 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
108 CodeGeneratorRequest_descriptor_, &CodeGeneratorRequest::default_instance( ));
109 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
110 CodeGeneratorResponse_descriptor_, &CodeGeneratorResponse::default_instanc e());
111 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
112 CodeGeneratorResponse_File_descriptor_, &CodeGeneratorResponse_File::defau lt_instance());
121 } 113 }
122 114
123 } // namespace 115 } // namespace
124 116
125 void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto() { 117 void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
126 _Version_default_instance_.Shutdown(); 118 delete CodeGeneratorRequest::default_instance_;
127 delete file_level_metadata[0].reflection; 119 delete CodeGeneratorRequest_reflection_;
128 _CodeGeneratorRequest_default_instance_.Shutdown(); 120 delete CodeGeneratorResponse::default_instance_;
129 delete file_level_metadata[1].reflection; 121 delete CodeGeneratorResponse_reflection_;
130 _CodeGeneratorResponse_File_default_instance_.Shutdown(); 122 delete CodeGeneratorResponse_File::default_instance_;
131 delete file_level_metadata[2].reflection; 123 delete CodeGeneratorResponse_File_reflection_;
132 _CodeGeneratorResponse_default_instance_.Shutdown();
133 delete file_level_metadata[3].reflection;
134 } 124 }
135 125
136 void protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto_impl() { 126 void protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
127 static bool already_here = false;
128 if (already_here) return;
129 already_here = true;
137 GOOGLE_PROTOBUF_VERIFY_VERSION; 130 GOOGLE_PROTOBUF_VERIFY_VERSION;
138 131
139 ::google::protobuf::protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2epro to(); 132 ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
140 ::google::protobuf::internal::InitProtobufDefaults();
141 _Version_default_instance_.DefaultConstruct();
142 _CodeGeneratorRequest_default_instance_.DefaultConstruct();
143 _CodeGeneratorResponse_File_default_instance_.DefaultConstruct();
144 _CodeGeneratorResponse_default_instance_.DefaultConstruct();
145 _CodeGeneratorRequest_default_instance_.get_mutable()->compiler_version_ = con st_cast< ::google::protobuf::compiler::Version*>(
146 ::google::protobuf::compiler::Version::internal_default_instance());
147 }
148
149 void protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
150 static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
151 ::google::protobuf::GoogleOnceInit(&once, &protobuf_InitDefaults_google_2fprot obuf_2fcompiler_2fplugin_2eproto_impl);
152 }
153 void protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto_impl() {
154 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
155 static const char descriptor[] = {
156 "\n%google/protobuf/compiler/plugin.proto\022"
157 "\030google.protobuf.compiler\032 google/protob"
158 "uf/descriptor.proto\"F\n\007Version\022\r\n\005major\030"
159 "\001 \001(\005\022\r\n\005minor\030\002 \001(\005\022\r\n\005patch\030\00 3 \001(\005\022\016\n\006s"
160 "uffix\030\004 \001(\t\"\272\001\n\024CodeGeneratorRequest\022\030\n\020"
161 "file_to_generate\030\001 \003(\t\022\021\n\tparameter\030\002 \001("
162 "\t\0228\n\nproto_file\030\017 \003(\0132$.google.protobuf."
163 "FileDescriptorProto\022;\n\020compiler_version\030"
164 "\003 \001(\0132!.google.protobuf.compiler.Version"
165 "\"\252\001\n\025CodeGeneratorResponse\022\r\n\005error\030\001 \001("
166 "\t\022B\n\004file\030\017 \003(\01324.google.protobuf.compil"
167 "er.CodeGeneratorResponse.File\032>\n\004File\022\014\n"
168 "\004name\030\001 \001(\t\022\027\n\017insertion_point\030\002 \001(\t\022 \017\n\007"
169 "content\030\017 \001(\tB7\n\034com.google.protobuf.com"
170 "pilerB\014PluginProtosZ\tplugin_go"
171 };
172 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( 133 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
173 descriptor, 590); 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);
174 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( 146 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
175 "google/protobuf/compiler/plugin.proto", &protobuf_RegisterTypes); 147 "google/protobuf/compiler/plugin.proto", &protobuf_RegisterTypes);
176 ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); 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();
177 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto buf_2fcompiler_2fplugin_2eproto); 154 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto buf_2fcompiler_2fplugin_2eproto);
178 } 155 }
179 156
180 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplu gin_2eproto_once_);
181 void protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
182 ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_google_2fprotobuf_2fcompi ler_2fplugin_2eproto_once_,
183 &protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto _impl);
184 }
185 // Force AddDescriptors() to be called at static initialization time. 157 // Force AddDescriptors() to be called at static initialization time.
186 struct StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto { 158 struct StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto {
187 StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto() { 159 StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
188 protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 160 protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
189 } 161 }
190 } static_descriptor_initializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto_; 162 } static_descriptor_initializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto_;
191 163
192 // =================================================================== 164 namespace {
193 165
194 #if !defined(_MSC_VER) || _MSC_VER >= 1900 166 static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD;
195 const int Version::kMajorFieldNumber; 167 static void MergeFromFail(int line) {
196 const int Version::kMinorFieldNumber; 168 GOOGLE_CHECK(false) << __FILE__ << ":" << line;
197 const int Version::kPatchFieldNumber;
198 const int Version::kSuffixFieldNumber;
199 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
200
201 Version::Version()
202 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
203 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
204 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
205 }
206 SharedCtor();
207 // @@protoc_insertion_point(constructor:google.protobuf.compiler.Version)
208 }
209 Version::Version(const Version& from)
210 : ::google::protobuf::Message(),
211 _internal_metadata_(NULL),
212 _has_bits_(from._has_bits_),
213 _cached_size_(0) {
214 _internal_metadata_.MergeFrom(from._internal_metadata_);
215 suffix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyI nited());
216 if (from.has_suffix()) {
217 suffix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.suffix_);
218 }
219 ::memcpy(&major_, &from.major_,
220 reinterpret_cast<char*>(&patch_) -
221 reinterpret_cast<char*>(&major_) + sizeof(patch_));
222 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.Version)
223 } 169 }
224 170
225 void Version::SharedCtor() { 171 } // namespace
226 _cached_size_ = 0;
227 suffix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyI nited());
228 ::memset(&major_, 0, reinterpret_cast<char*>(&patch_) -
229 reinterpret_cast<char*>(&major_) + sizeof(patch_));
230 }
231 172
232 Version::~Version() {
233 // @@protoc_insertion_point(destructor:google.protobuf.compiler.Version)
234 SharedDtor();
235 }
236
237 void Version::SharedDtor() {
238 suffix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
239 }
240
241 void Version::SetCachedSize(int size) const {
242 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
243 _cached_size_ = size;
244 GOOGLE_SAFE_CONCURRENT_WRITES_END();
245 }
246 const ::google::protobuf::Descriptor* Version::descriptor() {
247 protobuf_AssignDescriptorsOnce();
248 return file_level_metadata[0].descriptor;
249 }
250
251 const Version& Version::default_instance() {
252 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
253 return *internal_default_instance();
254 }
255
256 Version* Version::New(::google::protobuf::Arena* arena) const {
257 Version* n = new Version;
258 if (arena != NULL) {
259 arena->Own(n);
260 }
261 return n;
262 }
263
264 void Version::Clear() {
265 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.Version )
266 if (has_suffix()) {
267 GOOGLE_DCHECK(!suffix_.IsDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()));
268 (*suffix_.UnsafeRawStringPointer())->clear();
269 }
270 if (_has_bits_[0 / 32] & 14u) {
271 ::memset(&major_, 0, reinterpret_cast<char*>(&patch_) -
272 reinterpret_cast<char*>(&major_) + sizeof(patch_));
273 }
274 _has_bits_.Clear();
275 _internal_metadata_.Clear();
276 }
277
278 bool Version::MergePartialFromCodedStream(
279 ::google::protobuf::io::CodedInputStream* input) {
280 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
281 ::google::protobuf::uint32 tag;
282 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.Version)
283 for (;;) {
284 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
285 tag = p.first;
286 if (!p.second) goto handle_unusual;
287 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
288 // optional int32 major = 1;
289 case 1: {
290 if (tag == 8u) {
291 set_has_major();
292 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
293 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
294 input, &major_)));
295 } else {
296 goto handle_unusual;
297 }
298 break;
299 }
300
301 // optional int32 minor = 2;
302 case 2: {
303 if (tag == 16u) {
304 set_has_minor();
305 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
306 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
307 input, &minor_)));
308 } else {
309 goto handle_unusual;
310 }
311 break;
312 }
313
314 // optional int32 patch = 3;
315 case 3: {
316 if (tag == 24u) {
317 set_has_patch();
318 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
319 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
320 input, &patch_)));
321 } else {
322 goto handle_unusual;
323 }
324 break;
325 }
326
327 // optional string suffix = 4;
328 case 4: {
329 if (tag == 34u) {
330 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
331 input, this->mutable_suffix()));
332 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
333 this->suffix().data(), this->suffix().length(),
334 ::google::protobuf::internal::WireFormat::PARSE,
335 "google.protobuf.compiler.Version.suffix");
336 } else {
337 goto handle_unusual;
338 }
339 break;
340 }
341
342 default: {
343 handle_unusual:
344 if (tag == 0 ||
345 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
346 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
347 goto success;
348 }
349 DO_(::google::protobuf::internal::WireFormat::SkipField(
350 input, tag, mutable_unknown_fields()));
351 break;
352 }
353 }
354 }
355 success:
356 // @@protoc_insertion_point(parse_success:google.protobuf.compiler.Version)
357 return true;
358 failure:
359 // @@protoc_insertion_point(parse_failure:google.protobuf.compiler.Version)
360 return false;
361 #undef DO_
362 }
363
364 void Version::SerializeWithCachedSizes(
365 ::google::protobuf::io::CodedOutputStream* output) const {
366 // @@protoc_insertion_point(serialize_start:google.protobuf.compiler.Version)
367 // optional int32 major = 1;
368 if (has_major()) {
369 ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->major(), o utput);
370 }
371
372 // optional int32 minor = 2;
373 if (has_minor()) {
374 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->minor(), o utput);
375 }
376
377 // optional int32 patch = 3;
378 if (has_patch()) {
379 ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->patch(), o utput);
380 }
381
382 // optional string suffix = 4;
383 if (has_suffix()) {
384 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
385 this->suffix().data(), this->suffix().length(),
386 ::google::protobuf::internal::WireFormat::SERIALIZE,
387 "google.protobuf.compiler.Version.suffix");
388 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
389 4, this->suffix(), output);
390 }
391
392 if (_internal_metadata_.have_unknown_fields()) {
393 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
394 unknown_fields(), output);
395 }
396 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.Version)
397 }
398
399 ::google::protobuf::uint8* Version::InternalSerializeWithCachedSizesToArray(
400 bool deterministic, ::google::protobuf::uint8* target) const {
401 (void)deterministic; // Unused
402 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler. Version)
403 // optional int32 major = 1;
404 if (has_major()) {
405 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->major(), target);
406 }
407
408 // optional int32 minor = 2;
409 if (has_minor()) {
410 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->minor(), target);
411 }
412
413 // optional int32 patch = 3;
414 if (has_patch()) {
415 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->patch(), target);
416 }
417
418 // optional string suffix = 4;
419 if (has_suffix()) {
420 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
421 this->suffix().data(), this->suffix().length(),
422 ::google::protobuf::internal::WireFormat::SERIALIZE,
423 "google.protobuf.compiler.Version.suffix");
424 target =
425 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
426 4, this->suffix(), target);
427 }
428
429 if (_internal_metadata_.have_unknown_fields()) {
430 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
431 unknown_fields(), target);
432 }
433 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Ve rsion)
434 return target;
435 }
436
437 size_t Version::ByteSizeLong() const {
438 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.Ver sion)
439 size_t total_size = 0;
440
441 if (_internal_metadata_.have_unknown_fields()) {
442 total_size +=
443 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
444 unknown_fields());
445 }
446 if (_has_bits_[0 / 32] & 15u) {
447 // optional string suffix = 4;
448 if (has_suffix()) {
449 total_size += 1 +
450 ::google::protobuf::internal::WireFormatLite::StringSize(
451 this->suffix());
452 }
453
454 // optional int32 major = 1;
455 if (has_major()) {
456 total_size += 1 +
457 ::google::protobuf::internal::WireFormatLite::Int32Size(
458 this->major());
459 }
460
461 // optional int32 minor = 2;
462 if (has_minor()) {
463 total_size += 1 +
464 ::google::protobuf::internal::WireFormatLite::Int32Size(
465 this->minor());
466 }
467
468 // optional int32 patch = 3;
469 if (has_patch()) {
470 total_size += 1 +
471 ::google::protobuf::internal::WireFormatLite::Int32Size(
472 this->patch());
473 }
474
475 }
476 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
477 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
478 _cached_size_ = cached_size;
479 GOOGLE_SAFE_CONCURRENT_WRITES_END();
480 return total_size;
481 }
482
483 void Version::MergeFrom(const ::google::protobuf::Message& from) {
484 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compile r.Version)
485 GOOGLE_DCHECK_NE(&from, this);
486 const Version* source =
487 ::google::protobuf::internal::DynamicCastToGenerated<const Version>(
488 &from);
489 if (source == NULL) {
490 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.c ompiler.Version)
491 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
492 } else {
493 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.compiler.Version)
494 MergeFrom(*source);
495 }
496 }
497
498 void Version::MergeFrom(const Version& from) {
499 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.comp iler.Version)
500 GOOGLE_DCHECK_NE(&from, this);
501 _internal_metadata_.MergeFrom(from._internal_metadata_);
502 if (from._has_bits_[0 / 32] & 15u) {
503 if (from.has_suffix()) {
504 set_has_suffix();
505 suffix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), from.suffix_);
506 }
507 if (from.has_major()) {
508 set_major(from.major());
509 }
510 if (from.has_minor()) {
511 set_minor(from.minor());
512 }
513 if (from.has_patch()) {
514 set_patch(from.patch());
515 }
516 }
517 }
518
519 void Version::CopyFrom(const ::google::protobuf::Message& from) {
520 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler .Version)
521 if (&from == this) return;
522 Clear();
523 MergeFrom(from);
524 }
525
526 void Version::CopyFrom(const Version& from) {
527 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compi ler.Version)
528 if (&from == this) return;
529 Clear();
530 MergeFrom(from);
531 }
532
533 bool Version::IsInitialized() const {
534 return true;
535 }
536
537 void Version::Swap(Version* other) {
538 if (other == this) return;
539 InternalSwap(other);
540 }
541 void Version::InternalSwap(Version* other) {
542 suffix_.Swap(&other->suffix_);
543 std::swap(major_, other->major_);
544 std::swap(minor_, other->minor_);
545 std::swap(patch_, other->patch_);
546 std::swap(_has_bits_[0], other->_has_bits_[0]);
547 _internal_metadata_.Swap(&other->_internal_metadata_);
548 std::swap(_cached_size_, other->_cached_size_);
549 }
550
551 ::google::protobuf::Metadata Version::GetMetadata() const {
552 protobuf_AssignDescriptorsOnce();
553 return file_level_metadata[0];
554 }
555
556 #if PROTOBUF_INLINE_NOT_IN_HEADERS
557 // Version
558
559 // optional int32 major = 1;
560 bool Version::has_major() const {
561 return (_has_bits_[0] & 0x00000002u) != 0;
562 }
563 void Version::set_has_major() {
564 _has_bits_[0] |= 0x00000002u;
565 }
566 void Version::clear_has_major() {
567 _has_bits_[0] &= ~0x00000002u;
568 }
569 void Version::clear_major() {
570 major_ = 0;
571 clear_has_major();
572 }
573 ::google::protobuf::int32 Version::major() const {
574 // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.major)
575 return major_;
576 }
577 void Version::set_major(::google::protobuf::int32 value) {
578 set_has_major();
579 major_ = value;
580 // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.major)
581 }
582
583 // optional int32 minor = 2;
584 bool Version::has_minor() const {
585 return (_has_bits_[0] & 0x00000004u) != 0;
586 }
587 void Version::set_has_minor() {
588 _has_bits_[0] |= 0x00000004u;
589 }
590 void Version::clear_has_minor() {
591 _has_bits_[0] &= ~0x00000004u;
592 }
593 void Version::clear_minor() {
594 minor_ = 0;
595 clear_has_minor();
596 }
597 ::google::protobuf::int32 Version::minor() const {
598 // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.minor)
599 return minor_;
600 }
601 void Version::set_minor(::google::protobuf::int32 value) {
602 set_has_minor();
603 minor_ = value;
604 // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.minor)
605 }
606
607 // optional int32 patch = 3;
608 bool Version::has_patch() const {
609 return (_has_bits_[0] & 0x00000008u) != 0;
610 }
611 void Version::set_has_patch() {
612 _has_bits_[0] |= 0x00000008u;
613 }
614 void Version::clear_has_patch() {
615 _has_bits_[0] &= ~0x00000008u;
616 }
617 void Version::clear_patch() {
618 patch_ = 0;
619 clear_has_patch();
620 }
621 ::google::protobuf::int32 Version::patch() const {
622 // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.patch)
623 return patch_;
624 }
625 void Version::set_patch(::google::protobuf::int32 value) {
626 set_has_patch();
627 patch_ = value;
628 // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.patch)
629 }
630
631 // optional string suffix = 4;
632 bool Version::has_suffix() const {
633 return (_has_bits_[0] & 0x00000001u) != 0;
634 }
635 void Version::set_has_suffix() {
636 _has_bits_[0] |= 0x00000001u;
637 }
638 void Version::clear_has_suffix() {
639 _has_bits_[0] &= ~0x00000001u;
640 }
641 void Version::clear_suffix() {
642 suffix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
643 clear_has_suffix();
644 }
645 const ::std::string& Version::suffix() const {
646 // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.suffix)
647 return suffix_.GetNoArena();
648 }
649 void Version::set_suffix(const ::std::string& value) {
650 set_has_suffix();
651 suffix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), value);
652 // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.suffix)
653 }
654 void Version::set_suffix(const char* value) {
655 set_has_suffix();
656 suffix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), ::std::string(value));
657 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.Version.su ffix)
658 }
659 void Version::set_suffix(const char* value, size_t size) {
660 set_has_suffix();
661 suffix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ),
662 ::std::string(reinterpret_cast<const char*>(value), size));
663 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.Version .suffix)
664 }
665 ::std::string* Version::mutable_suffix() {
666 set_has_suffix();
667 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.Version.suf fix)
668 return suffix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
669 }
670 ::std::string* Version::release_suffix() {
671 // @@protoc_insertion_point(field_release:google.protobuf.compiler.Version.suf fix)
672 clear_has_suffix();
673 return suffix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
674 }
675 void Version::set_allocated_suffix(::std::string* suffix) {
676 if (suffix != NULL) {
677 set_has_suffix();
678 } else {
679 clear_has_suffix();
680 }
681 suffix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), suffix);
682 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.Versi on.suffix)
683 }
684
685 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
686 173
687 // =================================================================== 174 // ===================================================================
688 175
689 #if !defined(_MSC_VER) || _MSC_VER >= 1900 176 #if !defined(_MSC_VER) || _MSC_VER >= 1900
690 const int CodeGeneratorRequest::kFileToGenerateFieldNumber; 177 const int CodeGeneratorRequest::kFileToGenerateFieldNumber;
691 const int CodeGeneratorRequest::kParameterFieldNumber; 178 const int CodeGeneratorRequest::kParameterFieldNumber;
692 const int CodeGeneratorRequest::kProtoFileFieldNumber; 179 const int CodeGeneratorRequest::kProtoFileFieldNumber;
693 const int CodeGeneratorRequest::kCompilerVersionFieldNumber;
694 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 180 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
695 181
696 CodeGeneratorRequest::CodeGeneratorRequest() 182 CodeGeneratorRequest::CodeGeneratorRequest()
697 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 183 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
698 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
699 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
700 }
701 SharedCtor(); 184 SharedCtor();
702 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator Request) 185 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator Request)
703 } 186 }
187
188 void CodeGeneratorRequest::InitAsDefaultInstance() {
189 }
190
704 CodeGeneratorRequest::CodeGeneratorRequest(const CodeGeneratorRequest& from) 191 CodeGeneratorRequest::CodeGeneratorRequest(const CodeGeneratorRequest& from)
705 : ::google::protobuf::Message(), 192 : ::google::protobuf::Message(),
706 _internal_metadata_(NULL), 193 _internal_metadata_(NULL) {
707 _has_bits_(from._has_bits_), 194 SharedCtor();
708 _cached_size_(0), 195 MergeFrom(from);
709 file_to_generate_(from.file_to_generate_),
710 proto_file_(from.proto_file_) {
711 _internal_metadata_.MergeFrom(from._internal_metadata_);
712 parameter_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
713 if (from.has_parameter()) {
714 parameter_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited(), from.parameter_);
715 }
716 if (from.has_compiler_version()) {
717 compiler_version_ = new ::google::protobuf::compiler::Version(*from.compiler _version_);
718 } else {
719 compiler_version_ = NULL;
720 }
721 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene ratorRequest) 196 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene ratorRequest)
722 } 197 }
723 198
724 void CodeGeneratorRequest::SharedCtor() { 199 void CodeGeneratorRequest::SharedCtor() {
200 ::google::protobuf::internal::GetEmptyString();
725 _cached_size_ = 0; 201 _cached_size_ = 0;
726 parameter_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 202 parameter_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
727 compiler_version_ = NULL; 203 ::memset(_has_bits_, 0, sizeof(_has_bits_));
728 } 204 }
729 205
730 CodeGeneratorRequest::~CodeGeneratorRequest() { 206 CodeGeneratorRequest::~CodeGeneratorRequest() {
731 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR equest) 207 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR equest)
732 SharedDtor(); 208 SharedDtor();
733 } 209 }
734 210
735 void CodeGeneratorRequest::SharedDtor() { 211 void CodeGeneratorRequest::SharedDtor() {
736 parameter_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 212 parameter_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
737 if (this != internal_default_instance()) { 213 if (this != default_instance_) {
738 delete compiler_version_;
739 } 214 }
740 } 215 }
741 216
742 void CodeGeneratorRequest::SetCachedSize(int size) const { 217 void CodeGeneratorRequest::SetCachedSize(int size) const {
743 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 218 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
744 _cached_size_ = size; 219 _cached_size_ = size;
745 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 220 GOOGLE_SAFE_CONCURRENT_WRITES_END();
746 } 221 }
747 const ::google::protobuf::Descriptor* CodeGeneratorRequest::descriptor() { 222 const ::google::protobuf::Descriptor* CodeGeneratorRequest::descriptor() {
748 protobuf_AssignDescriptorsOnce(); 223 protobuf_AssignDescriptorsOnce();
749 return file_level_metadata[1].descriptor; 224 return CodeGeneratorRequest_descriptor_;
750 } 225 }
751 226
752 const CodeGeneratorRequest& CodeGeneratorRequest::default_instance() { 227 const CodeGeneratorRequest& CodeGeneratorRequest::default_instance() {
753 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 228 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2 fplugin_2eproto();
754 return *internal_default_instance(); 229 return *default_instance_;
755 } 230 }
756 231
232 CodeGeneratorRequest* CodeGeneratorRequest::default_instance_ = NULL;
233
757 CodeGeneratorRequest* CodeGeneratorRequest::New(::google::protobuf::Arena* arena ) const { 234 CodeGeneratorRequest* CodeGeneratorRequest::New(::google::protobuf::Arena* arena ) const {
758 CodeGeneratorRequest* n = new CodeGeneratorRequest; 235 CodeGeneratorRequest* n = new CodeGeneratorRequest;
759 if (arena != NULL) { 236 if (arena != NULL) {
760 arena->Own(n); 237 arena->Own(n);
761 } 238 }
762 return n; 239 return n;
763 } 240 }
764 241
765 void CodeGeneratorRequest::Clear() { 242 void CodeGeneratorRequest::Clear() {
766 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGen eratorRequest) 243 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGen eratorRequest)
244 if (has_parameter()) {
245 parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
246 }
767 file_to_generate_.Clear(); 247 file_to_generate_.Clear();
768 proto_file_.Clear(); 248 proto_file_.Clear();
769 if (_has_bits_[0 / 32] & 3u) { 249 ::memset(_has_bits_, 0, sizeof(_has_bits_));
770 if (has_parameter()) { 250 if (_internal_metadata_.have_unknown_fields()) {
771 GOOGLE_DCHECK(!parameter_.IsDefault(&::google::protobuf::internal::GetEmpt yStringAlreadyInited())); 251 mutable_unknown_fields()->Clear();
772 (*parameter_.UnsafeRawStringPointer())->clear();
773 }
774 if (has_compiler_version()) {
775 GOOGLE_DCHECK(compiler_version_ != NULL);
776 compiler_version_->::google::protobuf::compiler::Version::Clear();
777 }
778 } 252 }
779 _has_bits_.Clear();
780 _internal_metadata_.Clear();
781 } 253 }
782 254
783 bool CodeGeneratorRequest::MergePartialFromCodedStream( 255 bool CodeGeneratorRequest::MergePartialFromCodedStream(
784 ::google::protobuf::io::CodedInputStream* input) { 256 ::google::protobuf::io::CodedInputStream* input) {
785 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 257 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
786 ::google::protobuf::uint32 tag; 258 ::google::protobuf::uint32 tag;
787 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator Request) 259 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator Request)
788 for (;;) { 260 for (;;) {
789 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u); 261 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127);
790 tag = p.first; 262 tag = p.first;
791 if (!p.second) goto handle_unusual; 263 if (!p.second) goto handle_unusual;
792 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 264 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
793 // repeated string file_to_generate = 1; 265 // repeated string file_to_generate = 1;
794 case 1: { 266 case 1: {
795 if (tag == 10u) { 267 if (tag == 10) {
268 parse_file_to_generate:
796 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 269 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
797 input, this->add_file_to_generate())); 270 input, this->add_file_to_generate()));
798 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 271 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
799 this->file_to_generate(this->file_to_generate_size() - 1).data(), 272 this->file_to_generate(this->file_to_generate_size() - 1).data(),
800 this->file_to_generate(this->file_to_generate_size() - 1).length(), 273 this->file_to_generate(this->file_to_generate_size() - 1).length(),
801 ::google::protobuf::internal::WireFormat::PARSE, 274 ::google::protobuf::internal::WireFormat::PARSE,
802 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate"); 275 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
803 } else { 276 } else {
804 goto handle_unusual; 277 goto handle_unusual;
805 } 278 }
279 if (input->ExpectTag(10)) goto parse_file_to_generate;
280 if (input->ExpectTag(18)) goto parse_parameter;
806 break; 281 break;
807 } 282 }
808 283
809 // optional string parameter = 2; 284 // optional string parameter = 2;
810 case 2: { 285 case 2: {
811 if (tag == 18u) { 286 if (tag == 18) {
287 parse_parameter:
812 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 288 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
813 input, this->mutable_parameter())); 289 input, this->mutable_parameter()));
814 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 290 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
815 this->parameter().data(), this->parameter().length(), 291 this->parameter().data(), this->parameter().length(),
816 ::google::protobuf::internal::WireFormat::PARSE, 292 ::google::protobuf::internal::WireFormat::PARSE,
817 "google.protobuf.compiler.CodeGeneratorRequest.parameter"); 293 "google.protobuf.compiler.CodeGeneratorRequest.parameter");
818 } else { 294 } else {
819 goto handle_unusual; 295 goto handle_unusual;
820 } 296 }
821 break; 297 if (input->ExpectTag(122)) goto parse_proto_file;
822 }
823
824 // optional .google.protobuf.compiler.Version compiler_version = 3;
825 case 3: {
826 if (tag == 26u) {
827 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
828 input, mutable_compiler_version()));
829 } else {
830 goto handle_unusual;
831 }
832 break; 298 break;
833 } 299 }
834 300
835 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; 301 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
836 case 15: { 302 case 15: {
837 if (tag == 122u) { 303 if (tag == 122) {
304 parse_proto_file:
838 DO_(input->IncrementRecursionDepth()); 305 DO_(input->IncrementRecursionDepth());
306 parse_loop_proto_file:
839 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 307 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
840 input, add_proto_file())); 308 input, add_proto_file()));
841 } else { 309 } else {
842 goto handle_unusual; 310 goto handle_unusual;
843 } 311 }
312 if (input->ExpectTag(122)) goto parse_loop_proto_file;
844 input->UnsafeDecrementRecursionDepth(); 313 input->UnsafeDecrementRecursionDepth();
314 if (input->ExpectAtEnd()) goto success;
845 break; 315 break;
846 } 316 }
847 317
848 default: { 318 default: {
849 handle_unusual: 319 handle_unusual:
850 if (tag == 0 || 320 if (tag == 0 ||
851 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 321 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
852 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 322 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
853 goto success; 323 goto success;
854 } 324 }
(...skipping 28 matching lines...) Expand all
883 // optional string parameter = 2; 353 // optional string parameter = 2;
884 if (has_parameter()) { 354 if (has_parameter()) {
885 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 355 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
886 this->parameter().data(), this->parameter().length(), 356 this->parameter().data(), this->parameter().length(),
887 ::google::protobuf::internal::WireFormat::SERIALIZE, 357 ::google::protobuf::internal::WireFormat::SERIALIZE,
888 "google.protobuf.compiler.CodeGeneratorRequest.parameter"); 358 "google.protobuf.compiler.CodeGeneratorRequest.parameter");
889 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 359 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
890 2, this->parameter(), output); 360 2, this->parameter(), output);
891 } 361 }
892 362
893 // optional .google.protobuf.compiler.Version compiler_version = 3;
894 if (has_compiler_version()) {
895 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
896 3, *this->compiler_version_, output);
897 }
898
899 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; 363 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
900 for (unsigned int i = 0, n = this->proto_file_size(); i < n; i++) { 364 for (unsigned int i = 0, n = this->proto_file_size(); i < n; i++) {
901 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 365 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
902 15, this->proto_file(i), output); 366 15, this->proto_file(i), output);
903 } 367 }
904 368
905 if (_internal_metadata_.have_unknown_fields()) { 369 if (_internal_metadata_.have_unknown_fields()) {
906 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 370 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
907 unknown_fields(), output); 371 unknown_fields(), output);
908 } 372 }
909 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat orRequest) 373 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat orRequest)
910 } 374 }
911 375
912 ::google::protobuf::uint8* CodeGeneratorRequest::InternalSerializeWithCachedSize sToArray( 376 ::google::protobuf::uint8* CodeGeneratorRequest::SerializeWithCachedSizesToArray (
913 bool deterministic, ::google::protobuf::uint8* target) const { 377 ::google::protobuf::uint8* target) const {
914 (void)deterministic; // Unused
915 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler. CodeGeneratorRequest) 378 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler. CodeGeneratorRequest)
916 // repeated string file_to_generate = 1; 379 // repeated string file_to_generate = 1;
917 for (int i = 0; i < this->file_to_generate_size(); i++) { 380 for (int i = 0; i < this->file_to_generate_size(); i++) {
918 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 381 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
919 this->file_to_generate(i).data(), this->file_to_generate(i).length(), 382 this->file_to_generate(i).data(), this->file_to_generate(i).length(),
920 ::google::protobuf::internal::WireFormat::SERIALIZE, 383 ::google::protobuf::internal::WireFormat::SERIALIZE,
921 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate"); 384 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
922 target = ::google::protobuf::internal::WireFormatLite:: 385 target = ::google::protobuf::internal::WireFormatLite::
923 WriteStringToArray(1, this->file_to_generate(i), target); 386 WriteStringToArray(1, this->file_to_generate(i), target);
924 } 387 }
925 388
926 // optional string parameter = 2; 389 // optional string parameter = 2;
927 if (has_parameter()) { 390 if (has_parameter()) {
928 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 391 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
929 this->parameter().data(), this->parameter().length(), 392 this->parameter().data(), this->parameter().length(),
930 ::google::protobuf::internal::WireFormat::SERIALIZE, 393 ::google::protobuf::internal::WireFormat::SERIALIZE,
931 "google.protobuf.compiler.CodeGeneratorRequest.parameter"); 394 "google.protobuf.compiler.CodeGeneratorRequest.parameter");
932 target = 395 target =
933 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 396 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
934 2, this->parameter(), target); 397 2, this->parameter(), target);
935 } 398 }
936 399
937 // optional .google.protobuf.compiler.Version compiler_version = 3;
938 if (has_compiler_version()) {
939 target = ::google::protobuf::internal::WireFormatLite::
940 InternalWriteMessageNoVirtualToArray(
941 3, *this->compiler_version_, false, target);
942 }
943
944 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; 400 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
945 for (unsigned int i = 0, n = this->proto_file_size(); i < n; i++) { 401 for (unsigned int i = 0, n = this->proto_file_size(); i < n; i++) {
946 target = ::google::protobuf::internal::WireFormatLite:: 402 target = ::google::protobuf::internal::WireFormatLite::
947 InternalWriteMessageNoVirtualToArray( 403 WriteMessageNoVirtualToArray(
948 15, this->proto_file(i), false, target); 404 15, this->proto_file(i), target);
949 } 405 }
950 406
951 if (_internal_metadata_.have_unknown_fields()) { 407 if (_internal_metadata_.have_unknown_fields()) {
952 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 408 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
953 unknown_fields(), target); 409 unknown_fields(), target);
954 } 410 }
955 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Co deGeneratorRequest) 411 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Co deGeneratorRequest)
956 return target; 412 return target;
957 } 413 }
958 414
959 size_t CodeGeneratorRequest::ByteSizeLong() const { 415 int CodeGeneratorRequest::ByteSize() const {
960 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.Cod eGeneratorRequest) 416 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.Cod eGeneratorRequest)
961 size_t total_size = 0; 417 int total_size = 0;
418
419 // optional string parameter = 2;
420 if (has_parameter()) {
421 total_size += 1 +
422 ::google::protobuf::internal::WireFormatLite::StringSize(
423 this->parameter());
424 }
425
426 // repeated string file_to_generate = 1;
427 total_size += 1 * this->file_to_generate_size();
428 for (int i = 0; i < this->file_to_generate_size(); i++) {
429 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
430 this->file_to_generate(i));
431 }
432
433 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
434 total_size += 1 * this->proto_file_size();
435 for (int i = 0; i < this->proto_file_size(); i++) {
436 total_size +=
437 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
438 this->proto_file(i));
439 }
962 440
963 if (_internal_metadata_.have_unknown_fields()) { 441 if (_internal_metadata_.have_unknown_fields()) {
964 total_size += 442 total_size +=
965 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 443 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
966 unknown_fields()); 444 unknown_fields());
967 } 445 }
968 // repeated string file_to_generate = 1;
969 total_size += 1 *
970 ::google::protobuf::internal::FromIntSize(this->file_to_generate_size());
971 for (int i = 0; i < this->file_to_generate_size(); i++) {
972 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
973 this->file_to_generate(i));
974 }
975
976 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
977 {
978 unsigned int count = this->proto_file_size();
979 total_size += 1UL * count;
980 for (unsigned int i = 0; i < count; i++) {
981 total_size +=
982 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
983 this->proto_file(i));
984 }
985 }
986
987 if (_has_bits_[0 / 32] & 3u) {
988 // optional string parameter = 2;
989 if (has_parameter()) {
990 total_size += 1 +
991 ::google::protobuf::internal::WireFormatLite::StringSize(
992 this->parameter());
993 }
994
995 // optional .google.protobuf.compiler.Version compiler_version = 3;
996 if (has_compiler_version()) {
997 total_size += 1 +
998 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
999 *this->compiler_version_);
1000 }
1001
1002 }
1003 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1004 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 446 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1005 _cached_size_ = cached_size; 447 _cached_size_ = total_size;
1006 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 448 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1007 return total_size; 449 return total_size;
1008 } 450 }
1009 451
1010 void CodeGeneratorRequest::MergeFrom(const ::google::protobuf::Message& from) { 452 void CodeGeneratorRequest::MergeFrom(const ::google::protobuf::Message& from) {
1011 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compile r.CodeGeneratorRequest) 453 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compile r.CodeGeneratorRequest)
1012 GOOGLE_DCHECK_NE(&from, this); 454 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1013 const CodeGeneratorRequest* source = 455 const CodeGeneratorRequest* source =
1014 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe quest>( 456 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe quest>(
1015 &from); 457 &from);
1016 if (source == NULL) { 458 if (source == NULL) {
1017 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.c ompiler.CodeGeneratorRequest) 459 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.c ompiler.CodeGeneratorRequest)
1018 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 460 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1019 } else { 461 } else {
1020 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.compiler.CodeGeneratorRequest) 462 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.compiler.CodeGeneratorRequest)
1021 MergeFrom(*source); 463 MergeFrom(*source);
1022 } 464 }
1023 } 465 }
1024 466
1025 void CodeGeneratorRequest::MergeFrom(const CodeGeneratorRequest& from) { 467 void CodeGeneratorRequest::MergeFrom(const CodeGeneratorRequest& from) {
1026 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.comp iler.CodeGeneratorRequest) 468 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.comp iler.CodeGeneratorRequest)
1027 GOOGLE_DCHECK_NE(&from, this); 469 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1028 _internal_metadata_.MergeFrom(from._internal_metadata_);
1029 file_to_generate_.MergeFrom(from.file_to_generate_); 470 file_to_generate_.MergeFrom(from.file_to_generate_);
1030 proto_file_.MergeFrom(from.proto_file_); 471 proto_file_.MergeFrom(from.proto_file_);
1031 if (from._has_bits_[0 / 32] & 3u) { 472 if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
1032 if (from.has_parameter()) { 473 if (from.has_parameter()) {
1033 set_has_parameter(); 474 set_has_parameter();
1034 parameter_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.parameter_); 475 parameter_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.parameter_);
1035 } 476 }
1036 if (from.has_compiler_version()) { 477 }
1037 mutable_compiler_version()->::google::protobuf::compiler::Version::MergeFr om(from.compiler_version()); 478 if (from._internal_metadata_.have_unknown_fields()) {
1038 } 479 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1039 } 480 }
1040 } 481 }
1041 482
1042 void CodeGeneratorRequest::CopyFrom(const ::google::protobuf::Message& from) { 483 void CodeGeneratorRequest::CopyFrom(const ::google::protobuf::Message& from) {
1043 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler .CodeGeneratorRequest) 484 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler .CodeGeneratorRequest)
1044 if (&from == this) return; 485 if (&from == this) return;
1045 Clear(); 486 Clear();
1046 MergeFrom(from); 487 MergeFrom(from);
1047 } 488 }
1048 489
1049 void CodeGeneratorRequest::CopyFrom(const CodeGeneratorRequest& from) { 490 void CodeGeneratorRequest::CopyFrom(const CodeGeneratorRequest& from) {
1050 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compi ler.CodeGeneratorRequest) 491 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compi ler.CodeGeneratorRequest)
1051 if (&from == this) return; 492 if (&from == this) return;
1052 Clear(); 493 Clear();
1053 MergeFrom(from); 494 MergeFrom(from);
1054 } 495 }
1055 496
1056 bool CodeGeneratorRequest::IsInitialized() const { 497 bool CodeGeneratorRequest::IsInitialized() const {
498
1057 if (!::google::protobuf::internal::AllAreInitialized(this->proto_file())) retu rn false; 499 if (!::google::protobuf::internal::AllAreInitialized(this->proto_file())) retu rn false;
1058 return true; 500 return true;
1059 } 501 }
1060 502
1061 void CodeGeneratorRequest::Swap(CodeGeneratorRequest* other) { 503 void CodeGeneratorRequest::Swap(CodeGeneratorRequest* other) {
1062 if (other == this) return; 504 if (other == this) return;
1063 InternalSwap(other); 505 InternalSwap(other);
1064 } 506 }
1065 void CodeGeneratorRequest::InternalSwap(CodeGeneratorRequest* other) { 507 void CodeGeneratorRequest::InternalSwap(CodeGeneratorRequest* other) {
1066 file_to_generate_.UnsafeArenaSwap(&other->file_to_generate_); 508 file_to_generate_.UnsafeArenaSwap(&other->file_to_generate_);
509 parameter_.Swap(&other->parameter_);
1067 proto_file_.UnsafeArenaSwap(&other->proto_file_); 510 proto_file_.UnsafeArenaSwap(&other->proto_file_);
1068 parameter_.Swap(&other->parameter_);
1069 std::swap(compiler_version_, other->compiler_version_);
1070 std::swap(_has_bits_[0], other->_has_bits_[0]); 511 std::swap(_has_bits_[0], other->_has_bits_[0]);
1071 _internal_metadata_.Swap(&other->_internal_metadata_); 512 _internal_metadata_.Swap(&other->_internal_metadata_);
1072 std::swap(_cached_size_, other->_cached_size_); 513 std::swap(_cached_size_, other->_cached_size_);
1073 } 514 }
1074 515
1075 ::google::protobuf::Metadata CodeGeneratorRequest::GetMetadata() const { 516 ::google::protobuf::Metadata CodeGeneratorRequest::GetMetadata() const {
1076 protobuf_AssignDescriptorsOnce(); 517 protobuf_AssignDescriptorsOnce();
1077 return file_level_metadata[1]; 518 ::google::protobuf::Metadata metadata;
519 metadata.descriptor = CodeGeneratorRequest_descriptor_;
520 metadata.reflection = CodeGeneratorRequest_reflection_;
521 return metadata;
1078 } 522 }
1079 523
1080 #if PROTOBUF_INLINE_NOT_IN_HEADERS 524 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1081 // CodeGeneratorRequest 525 // CodeGeneratorRequest
1082 526
1083 // repeated string file_to_generate = 1; 527 // repeated string file_to_generate = 1;
1084 int CodeGeneratorRequest::file_to_generate_size() const { 528 int CodeGeneratorRequest::file_to_generate_size() const {
1085 return file_to_generate_.size(); 529 return file_to_generate_.size();
1086 } 530 }
1087 void CodeGeneratorRequest::clear_file_to_generate() { 531 void CodeGeneratorRequest::clear_file_to_generate() {
1088 file_to_generate_.Clear(); 532 file_to_generate_.Clear();
1089 } 533 }
1090 const ::std::string& CodeGeneratorRequest::file_to_generate(int index) const { 534 const ::std::string& CodeGeneratorRequest::file_to_generate(int index) const {
1091 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe quest.file_to_generate) 535 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe quest.file_to_generate)
1092 return file_to_generate_.Get(index); 536 return file_to_generate_.Get(index);
1093 } 537 }
1094 ::std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) { 538 ::std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) {
1095 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orRequest.file_to_generate) 539 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orRequest.file_to_generate)
1096 return file_to_generate_.Mutable(index); 540 return file_to_generate_.Mutable(index);
1097 } 541 }
1098 void CodeGeneratorRequest::set_file_to_generate(int index, const ::std::string& value) { 542 void CodeGeneratorRequest::set_file_to_generate(int index, const ::std::string& value) {
1099 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe quest.file_to_generate) 543 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe quest.file_to_generate)
1100 file_to_generate_.Mutable(index)->assign(value); 544 file_to_generate_.Mutable(index)->assign(value);
1101 } 545 }
1102 void CodeGeneratorRequest::set_file_to_generate(int index, const char* value) { 546 void CodeGeneratorRequest::set_file_to_generate(int index, const char* value) {
1103 file_to_generate_.Mutable(index)->assign(value); 547 file_to_generate_.Mutable(index)->assign(value);
1104 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torRequest.file_to_generate) 548 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torRequest.file_to_generate)
1105 } 549 }
1106 void CodeGeneratorRequest::set_file_to_generate(int index, const char* value, si ze_t size) { 550 void CodeGeneratorRequest::set_file_to_generate(int index, const char* value, s ize_t size) {
1107 file_to_generate_.Mutable(index)->assign( 551 file_to_generate_.Mutable(index)->assign(
1108 reinterpret_cast<const char*>(value), size); 552 reinterpret_cast<const char*>(value), size);
1109 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorRequest.file_to_generate) 553 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorRequest.file_to_generate)
1110 } 554 }
1111 ::std::string* CodeGeneratorRequest::add_file_to_generate() { 555 ::std::string* CodeGeneratorRequest::add_file_to_generate() {
1112 // @@protoc_insertion_point(field_add_mutable:google.protobuf.compiler.CodeGen eratorRequest.file_to_generate) 556 // @@protoc_insertion_point(field_add_mutable:google.protobuf.compiler.CodeGen eratorRequest.file_to_generate)
1113 return file_to_generate_.Add(); 557 return file_to_generate_.Add();
1114 } 558 }
1115 void CodeGeneratorRequest::add_file_to_generate(const ::std::string& value) { 559 void CodeGeneratorRequest::add_file_to_generate(const ::std::string& value) {
1116 file_to_generate_.Add()->assign(value); 560 file_to_generate_.Add()->assign(value);
1117 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRe quest.file_to_generate) 561 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRe quest.file_to_generate)
1118 } 562 }
1119 void CodeGeneratorRequest::add_file_to_generate(const char* value) { 563 void CodeGeneratorRequest::add_file_to_generate(const char* value) {
1120 file_to_generate_.Add()->assign(value); 564 file_to_generate_.Add()->assign(value);
1121 // @@protoc_insertion_point(field_add_char:google.protobuf.compiler.CodeGenera torRequest.file_to_generate) 565 // @@protoc_insertion_point(field_add_char:google.protobuf.compiler.CodeGenera torRequest.file_to_generate)
1122 } 566 }
1123 void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t size) { 567 void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t size) {
1124 file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size); 568 file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size);
1125 // @@protoc_insertion_point(field_add_pointer:google.protobuf.compiler.CodeGen eratorRequest.file_to_generate) 569 // @@protoc_insertion_point(field_add_pointer:google.protobuf.compiler.CodeGen eratorRequest.file_to_generate)
1126 } 570 }
1127 const ::google::protobuf::RepeatedPtrField< ::std::string>& 571 const ::google::protobuf::RepeatedPtrField< ::std::string>&
1128 CodeGeneratorRequest::file_to_generate() const { 572 CodeGeneratorRequest::file_to_generate() const {
1129 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR equest.file_to_generate) 573 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR equest.file_to_generate)
1130 return file_to_generate_; 574 return file_to_generate_;
1131 } 575 }
1132 ::google::protobuf::RepeatedPtrField< ::std::string>* 576 ::google::protobuf::RepeatedPtrField< ::std::string>*
1133 CodeGeneratorRequest::mutable_file_to_generate() { 577 CodeGeneratorRequest::mutable_file_to_generate() {
1134 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe neratorRequest.file_to_generate) 578 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe neratorRequest.file_to_generate)
1135 return &file_to_generate_; 579 return &file_to_generate_;
1136 } 580 }
1137 581
1138 // optional string parameter = 2; 582 // optional string parameter = 2;
1139 bool CodeGeneratorRequest::has_parameter() const { 583 bool CodeGeneratorRequest::has_parameter() const {
1140 return (_has_bits_[0] & 0x00000001u) != 0; 584 return (_has_bits_[0] & 0x00000002u) != 0;
1141 } 585 }
1142 void CodeGeneratorRequest::set_has_parameter() { 586 void CodeGeneratorRequest::set_has_parameter() {
1143 _has_bits_[0] |= 0x00000001u; 587 _has_bits_[0] |= 0x00000002u;
1144 } 588 }
1145 void CodeGeneratorRequest::clear_has_parameter() { 589 void CodeGeneratorRequest::clear_has_parameter() {
1146 _has_bits_[0] &= ~0x00000001u; 590 _has_bits_[0] &= ~0x00000002u;
1147 } 591 }
1148 void CodeGeneratorRequest::clear_parameter() { 592 void CodeGeneratorRequest::clear_parameter() {
1149 parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 593 parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
1150 clear_has_parameter(); 594 clear_has_parameter();
1151 } 595 }
1152 const ::std::string& CodeGeneratorRequest::parameter() const { 596 const ::std::string& CodeGeneratorRequest::parameter() const {
1153 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe quest.parameter) 597 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe quest.parameter)
1154 return parameter_.GetNoArena(); 598 return parameter_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
1155 } 599 }
1156 void CodeGeneratorRequest::set_parameter(const ::std::string& value) { 600 void CodeGeneratorRequest::set_parameter(const ::std::string& value) {
1157 set_has_parameter(); 601 set_has_parameter();
1158 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value); 602 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value);
1159 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe quest.parameter) 603 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe quest.parameter)
1160 } 604 }
1161 void CodeGeneratorRequest::set_parameter(const char* value) { 605 void CodeGeneratorRequest::set_parameter(const char* value) {
1162 set_has_parameter(); 606 set_has_parameter();
1163 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value)); 607 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value));
1164 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torRequest.parameter) 608 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torRequest.parameter)
1165 } 609 }
1166 void CodeGeneratorRequest::set_parameter(const char* value, size_t size) { 610 void CodeGeneratorRequest::set_parameter(const char* value, size_t size) {
1167 set_has_parameter(); 611 set_has_parameter();
1168 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), 612 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(),
1169 ::std::string(reinterpret_cast<const char*>(value), size)); 613 ::std::string(reinterpret_cast<const char*>(value), size));
1170 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorRequest.parameter) 614 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorRequest.parameter)
1171 } 615 }
1172 ::std::string* CodeGeneratorRequest::mutable_parameter() { 616 ::std::string* CodeGeneratorRequest::mutable_parameter() {
1173 set_has_parameter(); 617 set_has_parameter();
1174 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orRequest.parameter) 618 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orRequest.parameter)
1175 return parameter_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 619 return parameter_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
1176 } 620 }
1177 ::std::string* CodeGeneratorRequest::release_parameter() { 621 ::std::string* CodeGeneratorRequest::release_parameter() {
1178 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orRequest.parameter) 622 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orRequest.parameter)
1179 clear_has_parameter(); 623 clear_has_parameter();
1180 return parameter_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 624 return parameter_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
1181 } 625 }
1182 void CodeGeneratorRequest::set_allocated_parameter(::std::string* parameter) { 626 void CodeGeneratorRequest::set_allocated_parameter(::std::string* parameter) {
1183 if (parameter != NULL) { 627 if (parameter != NULL) {
1184 set_has_parameter(); 628 set_has_parameter();
1185 } else { 629 } else {
1186 clear_has_parameter(); 630 clear_has_parameter();
1187 } 631 }
1188 parameter_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), parameter); 632 parameter_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), parameter);
1189 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorRequest.parameter) 633 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorRequest.parameter)
1190 } 634 }
1191 635
1192 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; 636 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
(...skipping 19 matching lines...) Expand all
1212 CodeGeneratorRequest::mutable_proto_file() { 656 CodeGeneratorRequest::mutable_proto_file() {
1213 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe neratorRequest.proto_file) 657 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe neratorRequest.proto_file)
1214 return &proto_file_; 658 return &proto_file_;
1215 } 659 }
1216 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorPr oto >& 660 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorPr oto >&
1217 CodeGeneratorRequest::proto_file() const { 661 CodeGeneratorRequest::proto_file() const {
1218 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR equest.proto_file) 662 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR equest.proto_file)
1219 return proto_file_; 663 return proto_file_;
1220 } 664 }
1221 665
1222 // optional .google.protobuf.compiler.Version compiler_version = 3;
1223 bool CodeGeneratorRequest::has_compiler_version() const {
1224 return (_has_bits_[0] & 0x00000002u) != 0;
1225 }
1226 void CodeGeneratorRequest::set_has_compiler_version() {
1227 _has_bits_[0] |= 0x00000002u;
1228 }
1229 void CodeGeneratorRequest::clear_has_compiler_version() {
1230 _has_bits_[0] &= ~0x00000002u;
1231 }
1232 void CodeGeneratorRequest::clear_compiler_version() {
1233 if (compiler_version_ != NULL) compiler_version_->::google::protobuf::compiler ::Version::Clear();
1234 clear_has_compiler_version();
1235 }
1236 const ::google::protobuf::compiler::Version& CodeGeneratorRequest::compiler_vers ion() const {
1237 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe quest.compiler_version)
1238 return compiler_version_ != NULL ? *compiler_version_
1239 : *::google::protobuf::compiler::Version::internal_defa ult_instance();
1240 }
1241 ::google::protobuf::compiler::Version* CodeGeneratorRequest::mutable_compiler_ve rsion() {
1242 set_has_compiler_version();
1243 if (compiler_version_ == NULL) {
1244 compiler_version_ = new ::google::protobuf::compiler::Version;
1245 }
1246 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orRequest.compiler_version)
1247 return compiler_version_;
1248 }
1249 ::google::protobuf::compiler::Version* CodeGeneratorRequest::release_compiler_ve rsion() {
1250 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orRequest.compiler_version)
1251 clear_has_compiler_version();
1252 ::google::protobuf::compiler::Version* temp = compiler_version_;
1253 compiler_version_ = NULL;
1254 return temp;
1255 }
1256 void CodeGeneratorRequest::set_allocated_compiler_version(::google::protobuf::co mpiler::Version* compiler_version) {
1257 delete compiler_version_;
1258 compiler_version_ = compiler_version;
1259 if (compiler_version) {
1260 set_has_compiler_version();
1261 } else {
1262 clear_has_compiler_version();
1263 }
1264 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorRequest.compiler_version)
1265 }
1266
1267 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 666 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1268 667
1269 // =================================================================== 668 // ===================================================================
1270 669
1271 #if !defined(_MSC_VER) || _MSC_VER >= 1900 670 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1272 const int CodeGeneratorResponse_File::kNameFieldNumber; 671 const int CodeGeneratorResponse_File::kNameFieldNumber;
1273 const int CodeGeneratorResponse_File::kInsertionPointFieldNumber; 672 const int CodeGeneratorResponse_File::kInsertionPointFieldNumber;
1274 const int CodeGeneratorResponse_File::kContentFieldNumber; 673 const int CodeGeneratorResponse_File::kContentFieldNumber;
1275 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 674 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1276 675
1277 CodeGeneratorResponse_File::CodeGeneratorResponse_File() 676 CodeGeneratorResponse_File::CodeGeneratorResponse_File()
1278 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 677 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1279 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1280 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
1281 }
1282 SharedCtor(); 678 SharedCtor();
1283 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator Response.File) 679 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator Response.File)
1284 } 680 }
681
682 void CodeGeneratorResponse_File::InitAsDefaultInstance() {
683 }
684
1285 CodeGeneratorResponse_File::CodeGeneratorResponse_File(const CodeGeneratorRespon se_File& from) 685 CodeGeneratorResponse_File::CodeGeneratorResponse_File(const CodeGeneratorRespon se_File& from)
1286 : ::google::protobuf::Message(), 686 : ::google::protobuf::Message(),
1287 _internal_metadata_(NULL), 687 _internal_metadata_(NULL) {
1288 _has_bits_(from._has_bits_), 688 SharedCtor();
1289 _cached_size_(0) { 689 MergeFrom(from);
1290 _internal_metadata_.MergeFrom(from._internal_metadata_);
1291 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
1292 if (from.has_name()) {
1293 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
1294 }
1295 insertion_point_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
1296 if (from.has_insertion_point()) {
1297 insertion_point_.AssignWithDefault(&::google::protobuf::internal::GetEmptySt ringAlreadyInited(), from.insertion_point_);
1298 }
1299 content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited());
1300 if (from.has_content()) {
1301 content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), from.content_);
1302 }
1303 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene ratorResponse.File) 690 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene ratorResponse.File)
1304 } 691 }
1305 692
1306 void CodeGeneratorResponse_File::SharedCtor() { 693 void CodeGeneratorResponse_File::SharedCtor() {
694 ::google::protobuf::internal::GetEmptyString();
1307 _cached_size_ = 0; 695 _cached_size_ = 0;
1308 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 696 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
1309 insertion_point_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 697 insertion_point_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
1310 content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 698 content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited());
699 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1311 } 700 }
1312 701
1313 CodeGeneratorResponse_File::~CodeGeneratorResponse_File() { 702 CodeGeneratorResponse_File::~CodeGeneratorResponse_File() {
1314 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR esponse.File) 703 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR esponse.File)
1315 SharedDtor(); 704 SharedDtor();
1316 } 705 }
1317 706
1318 void CodeGeneratorResponse_File::SharedDtor() { 707 void CodeGeneratorResponse_File::SharedDtor() {
1319 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 708 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
1320 insertion_point_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 709 insertion_point_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
1321 content_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 710 content_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited());
711 if (this != default_instance_) {
712 }
1322 } 713 }
1323 714
1324 void CodeGeneratorResponse_File::SetCachedSize(int size) const { 715 void CodeGeneratorResponse_File::SetCachedSize(int size) const {
1325 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 716 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1326 _cached_size_ = size; 717 _cached_size_ = size;
1327 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 718 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1328 } 719 }
1329 const ::google::protobuf::Descriptor* CodeGeneratorResponse_File::descriptor() { 720 const ::google::protobuf::Descriptor* CodeGeneratorResponse_File::descriptor() {
1330 protobuf_AssignDescriptorsOnce(); 721 protobuf_AssignDescriptorsOnce();
1331 return file_level_metadata[2].descriptor; 722 return CodeGeneratorResponse_File_descriptor_;
1332 } 723 }
1333 724
1334 const CodeGeneratorResponse_File& CodeGeneratorResponse_File::default_instance() { 725 const CodeGeneratorResponse_File& CodeGeneratorResponse_File::default_instance() {
1335 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 726 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2 fplugin_2eproto();
1336 return *internal_default_instance(); 727 return *default_instance_;
1337 } 728 }
1338 729
730 CodeGeneratorResponse_File* CodeGeneratorResponse_File::default_instance_ = NULL ;
731
1339 CodeGeneratorResponse_File* CodeGeneratorResponse_File::New(::google::protobuf:: Arena* arena) const { 732 CodeGeneratorResponse_File* CodeGeneratorResponse_File::New(::google::protobuf:: Arena* arena) const {
1340 CodeGeneratorResponse_File* n = new CodeGeneratorResponse_File; 733 CodeGeneratorResponse_File* n = new CodeGeneratorResponse_File;
1341 if (arena != NULL) { 734 if (arena != NULL) {
1342 arena->Own(n); 735 arena->Own(n);
1343 } 736 }
1344 return n; 737 return n;
1345 } 738 }
1346 739
1347 void CodeGeneratorResponse_File::Clear() { 740 void CodeGeneratorResponse_File::Clear() {
1348 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGen eratorResponse.File) 741 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGen eratorResponse.File)
1349 if (_has_bits_[0 / 32] & 7u) { 742 if (_has_bits_[0 / 32] & 7u) {
1350 if (has_name()) { 743 if (has_name()) {
1351 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited())); 744 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
1352 (*name_.UnsafeRawStringPointer())->clear();
1353 } 745 }
1354 if (has_insertion_point()) { 746 if (has_insertion_point()) {
1355 GOOGLE_DCHECK(!insertion_point_.IsDefault(&::google::protobuf::internal::G etEmptyStringAlreadyInited())); 747 insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited());
1356 (*insertion_point_.UnsafeRawStringPointer())->clear();
1357 } 748 }
1358 if (has_content()) { 749 if (has_content()) {
1359 GOOGLE_DCHECK(!content_.IsDefault(&::google::protobuf::internal::GetEmptyS tringAlreadyInited())); 750 content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
1360 (*content_.UnsafeRawStringPointer())->clear();
1361 } 751 }
1362 } 752 }
1363 _has_bits_.Clear(); 753 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1364 _internal_metadata_.Clear(); 754 if (_internal_metadata_.have_unknown_fields()) {
755 mutable_unknown_fields()->Clear();
756 }
1365 } 757 }
1366 758
1367 bool CodeGeneratorResponse_File::MergePartialFromCodedStream( 759 bool CodeGeneratorResponse_File::MergePartialFromCodedStream(
1368 ::google::protobuf::io::CodedInputStream* input) { 760 ::google::protobuf::io::CodedInputStream* input) {
1369 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 761 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1370 ::google::protobuf::uint32 tag; 762 ::google::protobuf::uint32 tag;
1371 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator Response.File) 763 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator Response.File)
1372 for (;;) { 764 for (;;) {
1373 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u); 765 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127);
1374 tag = p.first; 766 tag = p.first;
1375 if (!p.second) goto handle_unusual; 767 if (!p.second) goto handle_unusual;
1376 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 768 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
1377 // optional string name = 1; 769 // optional string name = 1;
1378 case 1: { 770 case 1: {
1379 if (tag == 10u) { 771 if (tag == 10) {
1380 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 772 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1381 input, this->mutable_name())); 773 input, this->mutable_name()));
1382 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 774 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1383 this->name().data(), this->name().length(), 775 this->name().data(), this->name().length(),
1384 ::google::protobuf::internal::WireFormat::PARSE, 776 ::google::protobuf::internal::WireFormat::PARSE,
1385 "google.protobuf.compiler.CodeGeneratorResponse.File.name"); 777 "google.protobuf.compiler.CodeGeneratorResponse.File.name");
1386 } else { 778 } else {
1387 goto handle_unusual; 779 goto handle_unusual;
1388 } 780 }
781 if (input->ExpectTag(18)) goto parse_insertion_point;
1389 break; 782 break;
1390 } 783 }
1391 784
1392 // optional string insertion_point = 2; 785 // optional string insertion_point = 2;
1393 case 2: { 786 case 2: {
1394 if (tag == 18u) { 787 if (tag == 18) {
788 parse_insertion_point:
1395 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 789 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1396 input, this->mutable_insertion_point())); 790 input, this->mutable_insertion_point()));
1397 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 791 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1398 this->insertion_point().data(), this->insertion_point().length(), 792 this->insertion_point().data(), this->insertion_point().length(),
1399 ::google::protobuf::internal::WireFormat::PARSE, 793 ::google::protobuf::internal::WireFormat::PARSE,
1400 "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point "); 794 "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point ");
1401 } else { 795 } else {
1402 goto handle_unusual; 796 goto handle_unusual;
1403 } 797 }
798 if (input->ExpectTag(122)) goto parse_content;
1404 break; 799 break;
1405 } 800 }
1406 801
1407 // optional string content = 15; 802 // optional string content = 15;
1408 case 15: { 803 case 15: {
1409 if (tag == 122u) { 804 if (tag == 122) {
805 parse_content:
1410 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 806 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1411 input, this->mutable_content())); 807 input, this->mutable_content()));
1412 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 808 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1413 this->content().data(), this->content().length(), 809 this->content().data(), this->content().length(),
1414 ::google::protobuf::internal::WireFormat::PARSE, 810 ::google::protobuf::internal::WireFormat::PARSE,
1415 "google.protobuf.compiler.CodeGeneratorResponse.File.content"); 811 "google.protobuf.compiler.CodeGeneratorResponse.File.content");
1416 } else { 812 } else {
1417 goto handle_unusual; 813 goto handle_unusual;
1418 } 814 }
815 if (input->ExpectAtEnd()) goto success;
1419 break; 816 break;
1420 } 817 }
1421 818
1422 default: { 819 default: {
1423 handle_unusual: 820 handle_unusual:
1424 if (tag == 0 || 821 if (tag == 0 ||
1425 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 822 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1426 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 823 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1427 goto success; 824 goto success;
1428 } 825 }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 15, this->content(), output); 871 15, this->content(), output);
1475 } 872 }
1476 873
1477 if (_internal_metadata_.have_unknown_fields()) { 874 if (_internal_metadata_.have_unknown_fields()) {
1478 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 875 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1479 unknown_fields(), output); 876 unknown_fields(), output);
1480 } 877 }
1481 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat orResponse.File) 878 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat orResponse.File)
1482 } 879 }
1483 880
1484 ::google::protobuf::uint8* CodeGeneratorResponse_File::InternalSerializeWithCach edSizesToArray( 881 ::google::protobuf::uint8* CodeGeneratorResponse_File::SerializeWithCachedSizesT oArray(
1485 bool deterministic, ::google::protobuf::uint8* target) const { 882 ::google::protobuf::uint8* target) const {
1486 (void)deterministic; // Unused
1487 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler. CodeGeneratorResponse.File) 883 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler. CodeGeneratorResponse.File)
1488 // optional string name = 1; 884 // optional string name = 1;
1489 if (has_name()) { 885 if (has_name()) {
1490 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 886 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1491 this->name().data(), this->name().length(), 887 this->name().data(), this->name().length(),
1492 ::google::protobuf::internal::WireFormat::SERIALIZE, 888 ::google::protobuf::internal::WireFormat::SERIALIZE,
1493 "google.protobuf.compiler.CodeGeneratorResponse.File.name"); 889 "google.protobuf.compiler.CodeGeneratorResponse.File.name");
1494 target = 890 target =
1495 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 891 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1496 1, this->name(), target); 892 1, this->name(), target);
(...skipping 22 matching lines...) Expand all
1519 } 915 }
1520 916
1521 if (_internal_metadata_.have_unknown_fields()) { 917 if (_internal_metadata_.have_unknown_fields()) {
1522 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 918 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
1523 unknown_fields(), target); 919 unknown_fields(), target);
1524 } 920 }
1525 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Co deGeneratorResponse.File) 921 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Co deGeneratorResponse.File)
1526 return target; 922 return target;
1527 } 923 }
1528 924
1529 size_t CodeGeneratorResponse_File::ByteSizeLong() const { 925 int CodeGeneratorResponse_File::ByteSize() const {
1530 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.Cod eGeneratorResponse.File) 926 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.Cod eGeneratorResponse.File)
1531 size_t total_size = 0; 927 int total_size = 0;
1532 928
1533 if (_internal_metadata_.have_unknown_fields()) {
1534 total_size +=
1535 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1536 unknown_fields());
1537 }
1538 if (_has_bits_[0 / 32] & 7u) { 929 if (_has_bits_[0 / 32] & 7u) {
1539 // optional string name = 1; 930 // optional string name = 1;
1540 if (has_name()) { 931 if (has_name()) {
1541 total_size += 1 + 932 total_size += 1 +
1542 ::google::protobuf::internal::WireFormatLite::StringSize( 933 ::google::protobuf::internal::WireFormatLite::StringSize(
1543 this->name()); 934 this->name());
1544 } 935 }
1545 936
1546 // optional string insertion_point = 2; 937 // optional string insertion_point = 2;
1547 if (has_insertion_point()) { 938 if (has_insertion_point()) {
1548 total_size += 1 + 939 total_size += 1 +
1549 ::google::protobuf::internal::WireFormatLite::StringSize( 940 ::google::protobuf::internal::WireFormatLite::StringSize(
1550 this->insertion_point()); 941 this->insertion_point());
1551 } 942 }
1552 943
1553 // optional string content = 15; 944 // optional string content = 15;
1554 if (has_content()) { 945 if (has_content()) {
1555 total_size += 1 + 946 total_size += 1 +
1556 ::google::protobuf::internal::WireFormatLite::StringSize( 947 ::google::protobuf::internal::WireFormatLite::StringSize(
1557 this->content()); 948 this->content());
1558 } 949 }
1559 950
1560 } 951 }
1561 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); 952 if (_internal_metadata_.have_unknown_fields()) {
953 total_size +=
954 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
955 unknown_fields());
956 }
1562 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 957 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1563 _cached_size_ = cached_size; 958 _cached_size_ = total_size;
1564 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 959 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1565 return total_size; 960 return total_size;
1566 } 961 }
1567 962
1568 void CodeGeneratorResponse_File::MergeFrom(const ::google::protobuf::Message& fr om) { 963 void CodeGeneratorResponse_File::MergeFrom(const ::google::protobuf::Message& fr om) {
1569 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compile r.CodeGeneratorResponse.File) 964 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compile r.CodeGeneratorResponse.File)
1570 GOOGLE_DCHECK_NE(&from, this); 965 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1571 const CodeGeneratorResponse_File* source = 966 const CodeGeneratorResponse_File* source =
1572 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe sponse_File>( 967 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe sponse_File>(
1573 &from); 968 &from);
1574 if (source == NULL) { 969 if (source == NULL) {
1575 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.c ompiler.CodeGeneratorResponse.File) 970 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.c ompiler.CodeGeneratorResponse.File)
1576 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 971 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1577 } else { 972 } else {
1578 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.compiler.CodeGeneratorResponse.File) 973 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.compiler.CodeGeneratorResponse.File)
1579 MergeFrom(*source); 974 MergeFrom(*source);
1580 } 975 }
1581 } 976 }
1582 977
1583 void CodeGeneratorResponse_File::MergeFrom(const CodeGeneratorResponse_File& fro m) { 978 void CodeGeneratorResponse_File::MergeFrom(const CodeGeneratorResponse_File& fro m) {
1584 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.comp iler.CodeGeneratorResponse.File) 979 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.comp iler.CodeGeneratorResponse.File)
1585 GOOGLE_DCHECK_NE(&from, this); 980 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1586 _internal_metadata_.MergeFrom(from._internal_metadata_); 981 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1587 if (from._has_bits_[0 / 32] & 7u) {
1588 if (from.has_name()) { 982 if (from.has_name()) {
1589 set_has_name(); 983 set_has_name();
1590 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_); 984 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_);
1591 } 985 }
1592 if (from.has_insertion_point()) { 986 if (from.has_insertion_point()) {
1593 set_has_insertion_point(); 987 set_has_insertion_point();
1594 insertion_point_.AssignWithDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), from.insertion_point_); 988 insertion_point_.AssignWithDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), from.insertion_point_);
1595 } 989 }
1596 if (from.has_content()) { 990 if (from.has_content()) {
1597 set_has_content(); 991 set_has_content();
1598 content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited(), from.content_); 992 content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited(), from.content_);
1599 } 993 }
1600 } 994 }
995 if (from._internal_metadata_.have_unknown_fields()) {
996 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
997 }
1601 } 998 }
1602 999
1603 void CodeGeneratorResponse_File::CopyFrom(const ::google::protobuf::Message& fro m) { 1000 void CodeGeneratorResponse_File::CopyFrom(const ::google::protobuf::Message& fro m) {
1604 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler .CodeGeneratorResponse.File) 1001 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler .CodeGeneratorResponse.File)
1605 if (&from == this) return; 1002 if (&from == this) return;
1606 Clear(); 1003 Clear();
1607 MergeFrom(from); 1004 MergeFrom(from);
1608 } 1005 }
1609 1006
1610 void CodeGeneratorResponse_File::CopyFrom(const CodeGeneratorResponse_File& from ) { 1007 void CodeGeneratorResponse_File::CopyFrom(const CodeGeneratorResponse_File& from ) {
1611 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compi ler.CodeGeneratorResponse.File) 1008 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compi ler.CodeGeneratorResponse.File)
1612 if (&from == this) return; 1009 if (&from == this) return;
1613 Clear(); 1010 Clear();
1614 MergeFrom(from); 1011 MergeFrom(from);
1615 } 1012 }
1616 1013
1617 bool CodeGeneratorResponse_File::IsInitialized() const { 1014 bool CodeGeneratorResponse_File::IsInitialized() const {
1015
1618 return true; 1016 return true;
1619 } 1017 }
1620 1018
1621 void CodeGeneratorResponse_File::Swap(CodeGeneratorResponse_File* other) { 1019 void CodeGeneratorResponse_File::Swap(CodeGeneratorResponse_File* other) {
1622 if (other == this) return; 1020 if (other == this) return;
1623 InternalSwap(other); 1021 InternalSwap(other);
1624 } 1022 }
1625 void CodeGeneratorResponse_File::InternalSwap(CodeGeneratorResponse_File* other) { 1023 void CodeGeneratorResponse_File::InternalSwap(CodeGeneratorResponse_File* other) {
1626 name_.Swap(&other->name_); 1024 name_.Swap(&other->name_);
1627 insertion_point_.Swap(&other->insertion_point_); 1025 insertion_point_.Swap(&other->insertion_point_);
1628 content_.Swap(&other->content_); 1026 content_.Swap(&other->content_);
1629 std::swap(_has_bits_[0], other->_has_bits_[0]); 1027 std::swap(_has_bits_[0], other->_has_bits_[0]);
1630 _internal_metadata_.Swap(&other->_internal_metadata_); 1028 _internal_metadata_.Swap(&other->_internal_metadata_);
1631 std::swap(_cached_size_, other->_cached_size_); 1029 std::swap(_cached_size_, other->_cached_size_);
1632 } 1030 }
1633 1031
1634 ::google::protobuf::Metadata CodeGeneratorResponse_File::GetMetadata() const { 1032 ::google::protobuf::Metadata CodeGeneratorResponse_File::GetMetadata() const {
1635 protobuf_AssignDescriptorsOnce(); 1033 protobuf_AssignDescriptorsOnce();
1636 return file_level_metadata[2]; 1034 ::google::protobuf::Metadata metadata;
1035 metadata.descriptor = CodeGeneratorResponse_File_descriptor_;
1036 metadata.reflection = CodeGeneratorResponse_File_reflection_;
1037 return metadata;
1637 } 1038 }
1638 1039
1639 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1640 // CodeGeneratorResponse_File
1641 1040
1642 // optional string name = 1; 1041 // -------------------------------------------------------------------
1643 bool CodeGeneratorResponse_File::has_name() const {
1644 return (_has_bits_[0] & 0x00000001u) != 0;
1645 }
1646 void CodeGeneratorResponse_File::set_has_name() {
1647 _has_bits_[0] |= 0x00000001u;
1648 }
1649 void CodeGeneratorResponse_File::clear_has_name() {
1650 _has_bits_[0] &= ~0x00000001u;
1651 }
1652 void CodeGeneratorResponse_File::clear_name() {
1653 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
1654 clear_has_name();
1655 }
1656 const ::std::string& CodeGeneratorResponse_File::name() const {
1657 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe sponse.File.name)
1658 return name_.GetNoArena();
1659 }
1660 void CodeGeneratorResponse_File::set_name(const ::std::string& value) {
1661 set_has_name();
1662 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1663 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe sponse.File.name)
1664 }
1665 void CodeGeneratorResponse_File::set_name(const char* value) {
1666 set_has_name();
1667 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1668 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torResponse.File.name)
1669 }
1670 void CodeGeneratorResponse_File::set_name(const char* value, size_t size) {
1671 set_has_name();
1672 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1673 ::std::string(reinterpret_cast<const char*>(value), size));
1674 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorResponse.File.name)
1675 }
1676 ::std::string* CodeGeneratorResponse_File::mutable_name() {
1677 set_has_name();
1678 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orResponse.File.name)
1679 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
1680 }
1681 ::std::string* CodeGeneratorResponse_File::release_name() {
1682 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orResponse.File.name)
1683 clear_has_name();
1684 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
1685 }
1686 void CodeGeneratorResponse_File::set_allocated_name(::std::string* name) {
1687 if (name != NULL) {
1688 set_has_name();
1689 } else {
1690 clear_has_name();
1691 }
1692 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
1693 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorResponse.File.name)
1694 }
1695
1696 // optional string insertion_point = 2;
1697 bool CodeGeneratorResponse_File::has_insertion_point() const {
1698 return (_has_bits_[0] & 0x00000002u) != 0;
1699 }
1700 void CodeGeneratorResponse_File::set_has_insertion_point() {
1701 _has_bits_[0] |= 0x00000002u;
1702 }
1703 void CodeGeneratorResponse_File::clear_has_insertion_point() {
1704 _has_bits_[0] &= ~0x00000002u;
1705 }
1706 void CodeGeneratorResponse_File::clear_insertion_point() {
1707 insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited());
1708 clear_has_insertion_point();
1709 }
1710 const ::std::string& CodeGeneratorResponse_File::insertion_point() const {
1711 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe sponse.File.insertion_point)
1712 return insertion_point_.GetNoArena();
1713 }
1714 void CodeGeneratorResponse_File::set_insertion_point(const ::std::string& value) {
1715 set_has_insertion_point();
1716 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), value);
1717 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe sponse.File.insertion_point)
1718 }
1719 void CodeGeneratorResponse_File::set_insertion_point(const char* value) {
1720 set_has_insertion_point();
1721 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), ::std::string(value));
1722 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torResponse.File.insertion_point)
1723 }
1724 void CodeGeneratorResponse_File::set_insertion_point(const char* value, size_t s ize) {
1725 set_has_insertion_point();
1726 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(),
1727 ::std::string(reinterpret_cast<const char*>(value), size));
1728 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorResponse.File.insertion_point)
1729 }
1730 ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() {
1731 set_has_insertion_point();
1732 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orResponse.File.insertion_point)
1733 return insertion_point_.MutableNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
1734 }
1735 ::std::string* CodeGeneratorResponse_File::release_insertion_point() {
1736 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orResponse.File.insertion_point)
1737 clear_has_insertion_point();
1738 return insertion_point_.ReleaseNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
1739 }
1740 void CodeGeneratorResponse_File::set_allocated_insertion_point(::std::string* in sertion_point) {
1741 if (insertion_point != NULL) {
1742 set_has_insertion_point();
1743 } else {
1744 clear_has_insertion_point();
1745 }
1746 insertion_point_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited(), insertion_point);
1747 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorResponse.File.insertion_point)
1748 }
1749
1750 // optional string content = 15;
1751 bool CodeGeneratorResponse_File::has_content() const {
1752 return (_has_bits_[0] & 0x00000004u) != 0;
1753 }
1754 void CodeGeneratorResponse_File::set_has_content() {
1755 _has_bits_[0] |= 0x00000004u;
1756 }
1757 void CodeGeneratorResponse_File::clear_has_content() {
1758 _has_bits_[0] &= ~0x00000004u;
1759 }
1760 void CodeGeneratorResponse_File::clear_content() {
1761 content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
1762 clear_has_content();
1763 }
1764 const ::std::string& CodeGeneratorResponse_File::content() const {
1765 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe sponse.File.content)
1766 return content_.GetNoArena();
1767 }
1768 void CodeGeneratorResponse_File::set_content(const ::std::string& value) {
1769 set_has_content();
1770 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), value);
1771 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe sponse.File.content)
1772 }
1773 void CodeGeneratorResponse_File::set_content(const char* value) {
1774 set_has_content();
1775 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), ::std::string(value));
1776 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torResponse.File.content)
1777 }
1778 void CodeGeneratorResponse_File::set_content(const char* value, size_t size) {
1779 set_has_content();
1780 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (),
1781 ::std::string(reinterpret_cast<const char*>(value), size));
1782 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorResponse.File.content)
1783 }
1784 ::std::string* CodeGeneratorResponse_File::mutable_content() {
1785 set_has_content();
1786 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orResponse.File.content)
1787 return content_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
1788 }
1789 ::std::string* CodeGeneratorResponse_File::release_content() {
1790 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orResponse.File.content)
1791 clear_has_content();
1792 return content_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
1793 }
1794 void CodeGeneratorResponse_File::set_allocated_content(::std::string* content) {
1795 if (content != NULL) {
1796 set_has_content();
1797 } else {
1798 clear_has_content();
1799 }
1800 content_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), content);
1801 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorResponse.File.content)
1802 }
1803
1804 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1805
1806 // ===================================================================
1807 1042
1808 #if !defined(_MSC_VER) || _MSC_VER >= 1900 1043 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1809 const int CodeGeneratorResponse::kErrorFieldNumber; 1044 const int CodeGeneratorResponse::kErrorFieldNumber;
1810 const int CodeGeneratorResponse::kFileFieldNumber; 1045 const int CodeGeneratorResponse::kFileFieldNumber;
1811 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 1046 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1812 1047
1813 CodeGeneratorResponse::CodeGeneratorResponse() 1048 CodeGeneratorResponse::CodeGeneratorResponse()
1814 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 1049 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1815 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1816 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
1817 }
1818 SharedCtor(); 1050 SharedCtor();
1819 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator Response) 1051 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator Response)
1820 } 1052 }
1053
1054 void CodeGeneratorResponse::InitAsDefaultInstance() {
1055 }
1056
1821 CodeGeneratorResponse::CodeGeneratorResponse(const CodeGeneratorResponse& from) 1057 CodeGeneratorResponse::CodeGeneratorResponse(const CodeGeneratorResponse& from)
1822 : ::google::protobuf::Message(), 1058 : ::google::protobuf::Message(),
1823 _internal_metadata_(NULL), 1059 _internal_metadata_(NULL) {
1824 _has_bits_(from._has_bits_), 1060 SharedCtor();
1825 _cached_size_(0), 1061 MergeFrom(from);
1826 file_(from.file_) {
1827 _internal_metadata_.MergeFrom(from._internal_metadata_);
1828 error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited());
1829 if (from.has_error()) {
1830 error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlread yInited(), from.error_);
1831 }
1832 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene ratorResponse) 1062 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene ratorResponse)
1833 } 1063 }
1834 1064
1835 void CodeGeneratorResponse::SharedCtor() { 1065 void CodeGeneratorResponse::SharedCtor() {
1066 ::google::protobuf::internal::GetEmptyString();
1836 _cached_size_ = 0; 1067 _cached_size_ = 0;
1837 error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 1068 error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited());
1069 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1838 } 1070 }
1839 1071
1840 CodeGeneratorResponse::~CodeGeneratorResponse() { 1072 CodeGeneratorResponse::~CodeGeneratorResponse() {
1841 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR esponse) 1073 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR esponse)
1842 SharedDtor(); 1074 SharedDtor();
1843 } 1075 }
1844 1076
1845 void CodeGeneratorResponse::SharedDtor() { 1077 void CodeGeneratorResponse::SharedDtor() {
1846 error_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed()); 1078 error_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed());
1079 if (this != default_instance_) {
1080 }
1847 } 1081 }
1848 1082
1849 void CodeGeneratorResponse::SetCachedSize(int size) const { 1083 void CodeGeneratorResponse::SetCachedSize(int size) const {
1850 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1084 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1851 _cached_size_ = size; 1085 _cached_size_ = size;
1852 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1086 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1853 } 1087 }
1854 const ::google::protobuf::Descriptor* CodeGeneratorResponse::descriptor() { 1088 const ::google::protobuf::Descriptor* CodeGeneratorResponse::descriptor() {
1855 protobuf_AssignDescriptorsOnce(); 1089 protobuf_AssignDescriptorsOnce();
1856 return file_level_metadata[3].descriptor; 1090 return CodeGeneratorResponse_descriptor_;
1857 } 1091 }
1858 1092
1859 const CodeGeneratorResponse& CodeGeneratorResponse::default_instance() { 1093 const CodeGeneratorResponse& CodeGeneratorResponse::default_instance() {
1860 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 1094 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2 fplugin_2eproto();
1861 return *internal_default_instance(); 1095 return *default_instance_;
1862 } 1096 }
1863 1097
1098 CodeGeneratorResponse* CodeGeneratorResponse::default_instance_ = NULL;
1099
1864 CodeGeneratorResponse* CodeGeneratorResponse::New(::google::protobuf::Arena* are na) const { 1100 CodeGeneratorResponse* CodeGeneratorResponse::New(::google::protobuf::Arena* are na) const {
1865 CodeGeneratorResponse* n = new CodeGeneratorResponse; 1101 CodeGeneratorResponse* n = new CodeGeneratorResponse;
1866 if (arena != NULL) { 1102 if (arena != NULL) {
1867 arena->Own(n); 1103 arena->Own(n);
1868 } 1104 }
1869 return n; 1105 return n;
1870 } 1106 }
1871 1107
1872 void CodeGeneratorResponse::Clear() { 1108 void CodeGeneratorResponse::Clear() {
1873 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGen eratorResponse) 1109 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGen eratorResponse)
1110 if (has_error()) {
1111 error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
1112 }
1874 file_.Clear(); 1113 file_.Clear();
1875 if (has_error()) { 1114 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1876 GOOGLE_DCHECK(!error_.IsDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited())); 1115 if (_internal_metadata_.have_unknown_fields()) {
1877 (*error_.UnsafeRawStringPointer())->clear(); 1116 mutable_unknown_fields()->Clear();
1878 } 1117 }
1879 _has_bits_.Clear();
1880 _internal_metadata_.Clear();
1881 } 1118 }
1882 1119
1883 bool CodeGeneratorResponse::MergePartialFromCodedStream( 1120 bool CodeGeneratorResponse::MergePartialFromCodedStream(
1884 ::google::protobuf::io::CodedInputStream* input) { 1121 ::google::protobuf::io::CodedInputStream* input) {
1885 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 1122 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1886 ::google::protobuf::uint32 tag; 1123 ::google::protobuf::uint32 tag;
1887 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator Response) 1124 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator Response)
1888 for (;;) { 1125 for (;;) {
1889 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u); 1126 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127);
1890 tag = p.first; 1127 tag = p.first;
1891 if (!p.second) goto handle_unusual; 1128 if (!p.second) goto handle_unusual;
1892 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 1129 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
1893 // optional string error = 1; 1130 // optional string error = 1;
1894 case 1: { 1131 case 1: {
1895 if (tag == 10u) { 1132 if (tag == 10) {
1896 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1133 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1897 input, this->mutable_error())); 1134 input, this->mutable_error()));
1898 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 1135 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1899 this->error().data(), this->error().length(), 1136 this->error().data(), this->error().length(),
1900 ::google::protobuf::internal::WireFormat::PARSE, 1137 ::google::protobuf::internal::WireFormat::PARSE,
1901 "google.protobuf.compiler.CodeGeneratorResponse.error"); 1138 "google.protobuf.compiler.CodeGeneratorResponse.error");
1902 } else { 1139 } else {
1903 goto handle_unusual; 1140 goto handle_unusual;
1904 } 1141 }
1142 if (input->ExpectTag(122)) goto parse_file;
1905 break; 1143 break;
1906 } 1144 }
1907 1145
1908 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 ; 1146 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 ;
1909 case 15: { 1147 case 15: {
1910 if (tag == 122u) { 1148 if (tag == 122) {
1149 parse_file:
1911 DO_(input->IncrementRecursionDepth()); 1150 DO_(input->IncrementRecursionDepth());
1151 parse_loop_file:
1912 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 1152 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
1913 input, add_file())); 1153 input, add_file()));
1914 } else { 1154 } else {
1915 goto handle_unusual; 1155 goto handle_unusual;
1916 } 1156 }
1157 if (input->ExpectTag(122)) goto parse_loop_file;
1917 input->UnsafeDecrementRecursionDepth(); 1158 input->UnsafeDecrementRecursionDepth();
1159 if (input->ExpectAtEnd()) goto success;
1918 break; 1160 break;
1919 } 1161 }
1920 1162
1921 default: { 1163 default: {
1922 handle_unusual: 1164 handle_unusual:
1923 if (tag == 0 || 1165 if (tag == 0 ||
1924 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 1166 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1925 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 1167 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1926 goto success; 1168 goto success;
1927 } 1169 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1959 15, this->file(i), output); 1201 15, this->file(i), output);
1960 } 1202 }
1961 1203
1962 if (_internal_metadata_.have_unknown_fields()) { 1204 if (_internal_metadata_.have_unknown_fields()) {
1963 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 1205 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1964 unknown_fields(), output); 1206 unknown_fields(), output);
1965 } 1207 }
1966 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat orResponse) 1208 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat orResponse)
1967 } 1209 }
1968 1210
1969 ::google::protobuf::uint8* CodeGeneratorResponse::InternalSerializeWithCachedSiz esToArray( 1211 ::google::protobuf::uint8* CodeGeneratorResponse::SerializeWithCachedSizesToArra y(
1970 bool deterministic, ::google::protobuf::uint8* target) const { 1212 ::google::protobuf::uint8* target) const {
1971 (void)deterministic; // Unused
1972 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler. CodeGeneratorResponse) 1213 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler. CodeGeneratorResponse)
1973 // optional string error = 1; 1214 // optional string error = 1;
1974 if (has_error()) { 1215 if (has_error()) {
1975 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 1216 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1976 this->error().data(), this->error().length(), 1217 this->error().data(), this->error().length(),
1977 ::google::protobuf::internal::WireFormat::SERIALIZE, 1218 ::google::protobuf::internal::WireFormat::SERIALIZE,
1978 "google.protobuf.compiler.CodeGeneratorResponse.error"); 1219 "google.protobuf.compiler.CodeGeneratorResponse.error");
1979 target = 1220 target =
1980 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1221 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1981 1, this->error(), target); 1222 1, this->error(), target);
1982 } 1223 }
1983 1224
1984 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; 1225 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
1985 for (unsigned int i = 0, n = this->file_size(); i < n; i++) { 1226 for (unsigned int i = 0, n = this->file_size(); i < n; i++) {
1986 target = ::google::protobuf::internal::WireFormatLite:: 1227 target = ::google::protobuf::internal::WireFormatLite::
1987 InternalWriteMessageNoVirtualToArray( 1228 WriteMessageNoVirtualToArray(
1988 15, this->file(i), false, target); 1229 15, this->file(i), target);
1989 } 1230 }
1990 1231
1991 if (_internal_metadata_.have_unknown_fields()) { 1232 if (_internal_metadata_.have_unknown_fields()) {
1992 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 1233 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
1993 unknown_fields(), target); 1234 unknown_fields(), target);
1994 } 1235 }
1995 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Co deGeneratorResponse) 1236 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Co deGeneratorResponse)
1996 return target; 1237 return target;
1997 } 1238 }
1998 1239
1999 size_t CodeGeneratorResponse::ByteSizeLong() const { 1240 int CodeGeneratorResponse::ByteSize() const {
2000 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.Cod eGeneratorResponse) 1241 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.Cod eGeneratorResponse)
2001 size_t total_size = 0; 1242 int total_size = 0;
2002
2003 if (_internal_metadata_.have_unknown_fields()) {
2004 total_size +=
2005 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2006 unknown_fields());
2007 }
2008 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
2009 {
2010 unsigned int count = this->file_size();
2011 total_size += 1UL * count;
2012 for (unsigned int i = 0; i < count; i++) {
2013 total_size +=
2014 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2015 this->file(i));
2016 }
2017 }
2018 1243
2019 // optional string error = 1; 1244 // optional string error = 1;
2020 if (has_error()) { 1245 if (has_error()) {
2021 total_size += 1 + 1246 total_size += 1 +
2022 ::google::protobuf::internal::WireFormatLite::StringSize( 1247 ::google::protobuf::internal::WireFormatLite::StringSize(
2023 this->error()); 1248 this->error());
2024 } 1249 }
2025 1250
2026 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); 1251 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
1252 total_size += 1 * this->file_size();
1253 for (int i = 0; i < this->file_size(); i++) {
1254 total_size +=
1255 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1256 this->file(i));
1257 }
1258
1259 if (_internal_metadata_.have_unknown_fields()) {
1260 total_size +=
1261 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1262 unknown_fields());
1263 }
2027 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1264 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2028 _cached_size_ = cached_size; 1265 _cached_size_ = total_size;
2029 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1266 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2030 return total_size; 1267 return total_size;
2031 } 1268 }
2032 1269
2033 void CodeGeneratorResponse::MergeFrom(const ::google::protobuf::Message& from) { 1270 void CodeGeneratorResponse::MergeFrom(const ::google::protobuf::Message& from) {
2034 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compile r.CodeGeneratorResponse) 1271 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compile r.CodeGeneratorResponse)
2035 GOOGLE_DCHECK_NE(&from, this); 1272 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
2036 const CodeGeneratorResponse* source = 1273 const CodeGeneratorResponse* source =
2037 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe sponse>( 1274 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe sponse>(
2038 &from); 1275 &from);
2039 if (source == NULL) { 1276 if (source == NULL) {
2040 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.c ompiler.CodeGeneratorResponse) 1277 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.c ompiler.CodeGeneratorResponse)
2041 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 1278 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2042 } else { 1279 } else {
2043 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.compiler.CodeGeneratorResponse) 1280 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.compiler.CodeGeneratorResponse)
2044 MergeFrom(*source); 1281 MergeFrom(*source);
2045 } 1282 }
2046 } 1283 }
2047 1284
2048 void CodeGeneratorResponse::MergeFrom(const CodeGeneratorResponse& from) { 1285 void CodeGeneratorResponse::MergeFrom(const CodeGeneratorResponse& from) {
2049 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.comp iler.CodeGeneratorResponse) 1286 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.comp iler.CodeGeneratorResponse)
2050 GOOGLE_DCHECK_NE(&from, this); 1287 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
2051 _internal_metadata_.MergeFrom(from._internal_metadata_);
2052 file_.MergeFrom(from.file_); 1288 file_.MergeFrom(from.file_);
2053 if (from.has_error()) { 1289 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2054 set_has_error(); 1290 if (from.has_error()) {
2055 error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlread yInited(), from.error_); 1291 set_has_error();
1292 error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), from.error_);
1293 }
1294 }
1295 if (from._internal_metadata_.have_unknown_fields()) {
1296 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2056 } 1297 }
2057 } 1298 }
2058 1299
2059 void CodeGeneratorResponse::CopyFrom(const ::google::protobuf::Message& from) { 1300 void CodeGeneratorResponse::CopyFrom(const ::google::protobuf::Message& from) {
2060 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler .CodeGeneratorResponse) 1301 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler .CodeGeneratorResponse)
2061 if (&from == this) return; 1302 if (&from == this) return;
2062 Clear(); 1303 Clear();
2063 MergeFrom(from); 1304 MergeFrom(from);
2064 } 1305 }
2065 1306
2066 void CodeGeneratorResponse::CopyFrom(const CodeGeneratorResponse& from) { 1307 void CodeGeneratorResponse::CopyFrom(const CodeGeneratorResponse& from) {
2067 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compi ler.CodeGeneratorResponse) 1308 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compi ler.CodeGeneratorResponse)
2068 if (&from == this) return; 1309 if (&from == this) return;
2069 Clear(); 1310 Clear();
2070 MergeFrom(from); 1311 MergeFrom(from);
2071 } 1312 }
2072 1313
2073 bool CodeGeneratorResponse::IsInitialized() const { 1314 bool CodeGeneratorResponse::IsInitialized() const {
1315
2074 return true; 1316 return true;
2075 } 1317 }
2076 1318
2077 void CodeGeneratorResponse::Swap(CodeGeneratorResponse* other) { 1319 void CodeGeneratorResponse::Swap(CodeGeneratorResponse* other) {
2078 if (other == this) return; 1320 if (other == this) return;
2079 InternalSwap(other); 1321 InternalSwap(other);
2080 } 1322 }
2081 void CodeGeneratorResponse::InternalSwap(CodeGeneratorResponse* other) { 1323 void CodeGeneratorResponse::InternalSwap(CodeGeneratorResponse* other) {
1324 error_.Swap(&other->error_);
2082 file_.UnsafeArenaSwap(&other->file_); 1325 file_.UnsafeArenaSwap(&other->file_);
2083 error_.Swap(&other->error_);
2084 std::swap(_has_bits_[0], other->_has_bits_[0]); 1326 std::swap(_has_bits_[0], other->_has_bits_[0]);
2085 _internal_metadata_.Swap(&other->_internal_metadata_); 1327 _internal_metadata_.Swap(&other->_internal_metadata_);
2086 std::swap(_cached_size_, other->_cached_size_); 1328 std::swap(_cached_size_, other->_cached_size_);
2087 } 1329 }
2088 1330
2089 ::google::protobuf::Metadata CodeGeneratorResponse::GetMetadata() const { 1331 ::google::protobuf::Metadata CodeGeneratorResponse::GetMetadata() const {
2090 protobuf_AssignDescriptorsOnce(); 1332 protobuf_AssignDescriptorsOnce();
2091 return file_level_metadata[3]; 1333 ::google::protobuf::Metadata metadata;
1334 metadata.descriptor = CodeGeneratorResponse_descriptor_;
1335 metadata.reflection = CodeGeneratorResponse_reflection_;
1336 return metadata;
2092 } 1337 }
2093 1338
2094 #if PROTOBUF_INLINE_NOT_IN_HEADERS 1339 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1340 // CodeGeneratorResponse_File
1341
1342 // optional string name = 1;
1343 bool CodeGeneratorResponse_File::has_name() const {
1344 return (_has_bits_[0] & 0x00000001u) != 0;
1345 }
1346 void CodeGeneratorResponse_File::set_has_name() {
1347 _has_bits_[0] |= 0x00000001u;
1348 }
1349 void CodeGeneratorResponse_File::clear_has_name() {
1350 _has_bits_[0] &= ~0x00000001u;
1351 }
1352 void CodeGeneratorResponse_File::clear_name() {
1353 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
1354 clear_has_name();
1355 }
1356 const ::std::string& CodeGeneratorResponse_File::name() const {
1357 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe sponse.File.name)
1358 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited());
1359 }
1360 void CodeGeneratorResponse_File::set_name(const ::std::string& value) {
1361 set_has_name();
1362 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1363 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe sponse.File.name)
1364 }
1365 void CodeGeneratorResponse_File::set_name(const char* value) {
1366 set_has_name();
1367 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1368 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torResponse.File.name)
1369 }
1370 void CodeGeneratorResponse_File::set_name(const char* value, size_t size) {
1371 set_has_name();
1372 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1373 ::std::string(reinterpret_cast<const char*>(value), size));
1374 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorResponse.File.name)
1375 }
1376 ::std::string* CodeGeneratorResponse_File::mutable_name() {
1377 set_has_name();
1378 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orResponse.File.name)
1379 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
1380 }
1381 ::std::string* CodeGeneratorResponse_File::release_name() {
1382 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orResponse.File.name)
1383 clear_has_name();
1384 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
1385 }
1386 void CodeGeneratorResponse_File::set_allocated_name(::std::string* name) {
1387 if (name != NULL) {
1388 set_has_name();
1389 } else {
1390 clear_has_name();
1391 }
1392 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
1393 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorResponse.File.name)
1394 }
1395
1396 // optional string insertion_point = 2;
1397 bool CodeGeneratorResponse_File::has_insertion_point() const {
1398 return (_has_bits_[0] & 0x00000002u) != 0;
1399 }
1400 void CodeGeneratorResponse_File::set_has_insertion_point() {
1401 _has_bits_[0] |= 0x00000002u;
1402 }
1403 void CodeGeneratorResponse_File::clear_has_insertion_point() {
1404 _has_bits_[0] &= ~0x00000002u;
1405 }
1406 void CodeGeneratorResponse_File::clear_insertion_point() {
1407 insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited());
1408 clear_has_insertion_point();
1409 }
1410 const ::std::string& CodeGeneratorResponse_File::insertion_point() const {
1411 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe sponse.File.insertion_point)
1412 return insertion_point_.GetNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
1413 }
1414 void CodeGeneratorResponse_File::set_insertion_point(const ::std::string& value ) {
1415 set_has_insertion_point();
1416 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), value);
1417 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe sponse.File.insertion_point)
1418 }
1419 void CodeGeneratorResponse_File::set_insertion_point(const char* value) {
1420 set_has_insertion_point();
1421 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), ::std::string(value));
1422 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torResponse.File.insertion_point)
1423 }
1424 void CodeGeneratorResponse_File::set_insertion_point(const char* value, size_t size) {
1425 set_has_insertion_point();
1426 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(),
1427 ::std::string(reinterpret_cast<const char*>(value), size));
1428 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorResponse.File.insertion_point)
1429 }
1430 ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() {
1431 set_has_insertion_point();
1432 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orResponse.File.insertion_point)
1433 return insertion_point_.MutableNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
1434 }
1435 ::std::string* CodeGeneratorResponse_File::release_insertion_point() {
1436 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orResponse.File.insertion_point)
1437 clear_has_insertion_point();
1438 return insertion_point_.ReleaseNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
1439 }
1440 void CodeGeneratorResponse_File::set_allocated_insertion_point(::std::string* i nsertion_point) {
1441 if (insertion_point != NULL) {
1442 set_has_insertion_point();
1443 } else {
1444 clear_has_insertion_point();
1445 }
1446 insertion_point_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited(), insertion_point);
1447 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorResponse.File.insertion_point)
1448 }
1449
1450 // optional string content = 15;
1451 bool CodeGeneratorResponse_File::has_content() const {
1452 return (_has_bits_[0] & 0x00000004u) != 0;
1453 }
1454 void CodeGeneratorResponse_File::set_has_content() {
1455 _has_bits_[0] |= 0x00000004u;
1456 }
1457 void CodeGeneratorResponse_File::clear_has_content() {
1458 _has_bits_[0] &= ~0x00000004u;
1459 }
1460 void CodeGeneratorResponse_File::clear_content() {
1461 content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
1462 clear_has_content();
1463 }
1464 const ::std::string& CodeGeneratorResponse_File::content() const {
1465 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe sponse.File.content)
1466 return content_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited());
1467 }
1468 void CodeGeneratorResponse_File::set_content(const ::std::string& value) {
1469 set_has_content();
1470 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), value);
1471 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe sponse.File.content)
1472 }
1473 void CodeGeneratorResponse_File::set_content(const char* value) {
1474 set_has_content();
1475 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), ::std::string(value));
1476 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torResponse.File.content)
1477 }
1478 void CodeGeneratorResponse_File::set_content(const char* value, size_t size) {
1479 set_has_content();
1480 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (),
1481 ::std::string(reinterpret_cast<const char*>(value), size));
1482 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorResponse.File.content)
1483 }
1484 ::std::string* CodeGeneratorResponse_File::mutable_content() {
1485 set_has_content();
1486 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orResponse.File.content)
1487 return content_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
1488 }
1489 ::std::string* CodeGeneratorResponse_File::release_content() {
1490 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orResponse.File.content)
1491 clear_has_content();
1492 return content_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
1493 }
1494 void CodeGeneratorResponse_File::set_allocated_content(::std::string* content) {
1495 if (content != NULL) {
1496 set_has_content();
1497 } else {
1498 clear_has_content();
1499 }
1500 content_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), content);
1501 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorResponse.File.content)
1502 }
1503
1504 // -------------------------------------------------------------------
1505
2095 // CodeGeneratorResponse 1506 // CodeGeneratorResponse
2096 1507
2097 // optional string error = 1; 1508 // optional string error = 1;
2098 bool CodeGeneratorResponse::has_error() const { 1509 bool CodeGeneratorResponse::has_error() const {
2099 return (_has_bits_[0] & 0x00000001u) != 0; 1510 return (_has_bits_[0] & 0x00000001u) != 0;
2100 } 1511 }
2101 void CodeGeneratorResponse::set_has_error() { 1512 void CodeGeneratorResponse::set_has_error() {
2102 _has_bits_[0] |= 0x00000001u; 1513 _has_bits_[0] |= 0x00000001u;
2103 } 1514 }
2104 void CodeGeneratorResponse::clear_has_error() { 1515 void CodeGeneratorResponse::clear_has_error() {
2105 _has_bits_[0] &= ~0x00000001u; 1516 _has_bits_[0] &= ~0x00000001u;
2106 } 1517 }
2107 void CodeGeneratorResponse::clear_error() { 1518 void CodeGeneratorResponse::clear_error() {
2108 error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited()); 1519 error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited());
2109 clear_has_error(); 1520 clear_has_error();
2110 } 1521 }
2111 const ::std::string& CodeGeneratorResponse::error() const { 1522 const ::std::string& CodeGeneratorResponse::error() const {
2112 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe sponse.error) 1523 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe sponse.error)
2113 return error_.GetNoArena(); 1524 return error_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited());
2114 } 1525 }
2115 void CodeGeneratorResponse::set_error(const ::std::string& value) { 1526 void CodeGeneratorResponse::set_error(const ::std::string& value) {
2116 set_has_error(); 1527 set_has_error();
2117 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited() , value); 1528 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited() , value);
2118 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe sponse.error) 1529 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe sponse.error)
2119 } 1530 }
2120 void CodeGeneratorResponse::set_error(const char* value) { 1531 void CodeGeneratorResponse::set_error(const char* value) {
2121 set_has_error(); 1532 set_has_error();
2122 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited() , ::std::string(value)); 1533 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited() , ::std::string(value));
2123 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torResponse.error) 1534 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torResponse.error)
2124 } 1535 }
2125 void CodeGeneratorResponse::set_error(const char* value, size_t size) { 1536 void CodeGeneratorResponse::set_error(const char* value, size_t size) {
2126 set_has_error(); 1537 set_has_error();
2127 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited() , 1538 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited() ,
2128 ::std::string(reinterpret_cast<const char*>(value), size)); 1539 ::std::string(reinterpret_cast<const char*>(value), size));
2129 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorResponse.error) 1540 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorResponse.error)
2130 } 1541 }
2131 ::std::string* CodeGeneratorResponse::mutable_error() { 1542 ::std::string* CodeGeneratorResponse::mutable_error() {
2132 set_has_error(); 1543 set_has_error();
2133 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orResponse.error) 1544 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orResponse.error)
2134 return error_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 1545 return error_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
2135 } 1546 }
2136 ::std::string* CodeGeneratorResponse::release_error() { 1547 ::std::string* CodeGeneratorResponse::release_error() {
2137 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orResponse.error) 1548 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orResponse.error)
2138 clear_has_error(); 1549 clear_has_error();
2139 return error_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 1550 return error_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
2140 } 1551 }
2141 void CodeGeneratorResponse::set_allocated_error(::std::string* error) { 1552 void CodeGeneratorResponse::set_allocated_error(::std::string* error) {
2142 if (error != NULL) { 1553 if (error != NULL) {
2143 set_has_error(); 1554 set_has_error();
2144 } else { 1555 } else {
2145 clear_has_error(); 1556 clear_has_error();
2146 } 1557 }
2147 error_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited(), error); 1558 error_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited(), error);
2148 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorResponse.error) 1559 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorResponse.error)
2149 } 1560 }
2150 1561
2151 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; 1562 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
(...skipping 28 matching lines...) Expand all
2180 1591
2181 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 1592 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
2182 1593
2183 // @@protoc_insertion_point(namespace_scope) 1594 // @@protoc_insertion_point(namespace_scope)
2184 1595
2185 } // namespace compiler 1596 } // namespace compiler
2186 } // namespace protobuf 1597 } // namespace protobuf
2187 } // namespace google 1598 } // namespace google
2188 1599
2189 // @@protoc_insertion_point(global_scope) 1600 // @@protoc_insertion_point(global_scope)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698