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

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

Issue 2600753002: Reverts third_party/protobuf: Update to HEAD (f52e188fe4) (Closed)
Patch Set: Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Generated by the protocol buffer compiler. DO NOT EDIT! 1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/compiler/plugin.proto 2 // source: google/protobuf/compiler/plugin.proto
3 3
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include <google/protobuf/compiler/plugin.pb.h> 5 #include <google/protobuf/compiler/plugin.pb.h>
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include <google/protobuf/stubs/common.h> 9 #include <google/protobuf/stubs/common.h>
10 #include <google/protobuf/stubs/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 #if LANG_CXX11
655 void Version::set_suffix(::std::string&& value) {
656 set_has_suffix();
657 suffix_.SetNoArena(
658 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va lue));
659 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.Version. suffix)
660 }
661 #endif
662 void Version::set_suffix(const char* value) {
663 set_has_suffix();
664 suffix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), ::std::string(value));
665 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.Version.su ffix)
666 }
667 void Version::set_suffix(const char* value, size_t size) {
668 set_has_suffix();
669 suffix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ),
670 ::std::string(reinterpret_cast<const char*>(value), size));
671 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.Version .suffix)
672 }
673 ::std::string* Version::mutable_suffix() {
674 set_has_suffix();
675 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.Version.suf fix)
676 return suffix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
677 }
678 ::std::string* Version::release_suffix() {
679 // @@protoc_insertion_point(field_release:google.protobuf.compiler.Version.suf fix)
680 clear_has_suffix();
681 return suffix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
682 }
683 void Version::set_allocated_suffix(::std::string* suffix) {
684 if (suffix != NULL) {
685 set_has_suffix();
686 } else {
687 clear_has_suffix();
688 }
689 suffix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), suffix);
690 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.Versi on.suffix)
691 }
692
693 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
694 173
695 // =================================================================== 174 // ===================================================================
696 175
697 #if !defined(_MSC_VER) || _MSC_VER >= 1900 176 #if !defined(_MSC_VER) || _MSC_VER >= 1900
698 const int CodeGeneratorRequest::kFileToGenerateFieldNumber; 177 const int CodeGeneratorRequest::kFileToGenerateFieldNumber;
699 const int CodeGeneratorRequest::kParameterFieldNumber; 178 const int CodeGeneratorRequest::kParameterFieldNumber;
700 const int CodeGeneratorRequest::kProtoFileFieldNumber; 179 const int CodeGeneratorRequest::kProtoFileFieldNumber;
701 const int CodeGeneratorRequest::kCompilerVersionFieldNumber;
702 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 180 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
703 181
704 CodeGeneratorRequest::CodeGeneratorRequest() 182 CodeGeneratorRequest::CodeGeneratorRequest()
705 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 183 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
706 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
707 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
708 }
709 SharedCtor(); 184 SharedCtor();
710 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator Request) 185 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator Request)
711 } 186 }
187
188 void CodeGeneratorRequest::InitAsDefaultInstance() {
189 }
190
712 CodeGeneratorRequest::CodeGeneratorRequest(const CodeGeneratorRequest& from) 191 CodeGeneratorRequest::CodeGeneratorRequest(const CodeGeneratorRequest& from)
713 : ::google::protobuf::Message(), 192 : ::google::protobuf::Message(),
714 _internal_metadata_(NULL), 193 _internal_metadata_(NULL) {
715 _has_bits_(from._has_bits_), 194 SharedCtor();
716 _cached_size_(0), 195 MergeFrom(from);
717 file_to_generate_(from.file_to_generate_),
718 proto_file_(from.proto_file_) {
719 _internal_metadata_.MergeFrom(from._internal_metadata_);
720 parameter_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
721 if (from.has_parameter()) {
722 parameter_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited(), from.parameter_);
723 }
724 if (from.has_compiler_version()) {
725 compiler_version_ = new ::google::protobuf::compiler::Version(*from.compiler _version_);
726 } else {
727 compiler_version_ = NULL;
728 }
729 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene ratorRequest) 196 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene ratorRequest)
730 } 197 }
731 198
732 void CodeGeneratorRequest::SharedCtor() { 199 void CodeGeneratorRequest::SharedCtor() {
200 ::google::protobuf::internal::GetEmptyString();
733 _cached_size_ = 0; 201 _cached_size_ = 0;
734 parameter_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 202 parameter_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
735 compiler_version_ = NULL; 203 ::memset(_has_bits_, 0, sizeof(_has_bits_));
736 } 204 }
737 205
738 CodeGeneratorRequest::~CodeGeneratorRequest() { 206 CodeGeneratorRequest::~CodeGeneratorRequest() {
739 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR equest) 207 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR equest)
740 SharedDtor(); 208 SharedDtor();
741 } 209 }
742 210
743 void CodeGeneratorRequest::SharedDtor() { 211 void CodeGeneratorRequest::SharedDtor() {
744 parameter_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 212 parameter_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
745 if (this != internal_default_instance()) { 213 if (this != default_instance_) {
746 delete compiler_version_;
747 } 214 }
748 } 215 }
749 216
750 void CodeGeneratorRequest::SetCachedSize(int size) const { 217 void CodeGeneratorRequest::SetCachedSize(int size) const {
751 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 218 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
752 _cached_size_ = size; 219 _cached_size_ = size;
753 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 220 GOOGLE_SAFE_CONCURRENT_WRITES_END();
754 } 221 }
755 const ::google::protobuf::Descriptor* CodeGeneratorRequest::descriptor() { 222 const ::google::protobuf::Descriptor* CodeGeneratorRequest::descriptor() {
756 protobuf_AssignDescriptorsOnce(); 223 protobuf_AssignDescriptorsOnce();
757 return file_level_metadata[1].descriptor; 224 return CodeGeneratorRequest_descriptor_;
758 } 225 }
759 226
760 const CodeGeneratorRequest& CodeGeneratorRequest::default_instance() { 227 const CodeGeneratorRequest& CodeGeneratorRequest::default_instance() {
761 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 228 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2 fplugin_2eproto();
762 return *internal_default_instance(); 229 return *default_instance_;
763 } 230 }
764 231
232 CodeGeneratorRequest* CodeGeneratorRequest::default_instance_ = NULL;
233
765 CodeGeneratorRequest* CodeGeneratorRequest::New(::google::protobuf::Arena* arena ) const { 234 CodeGeneratorRequest* CodeGeneratorRequest::New(::google::protobuf::Arena* arena ) const {
766 CodeGeneratorRequest* n = new CodeGeneratorRequest; 235 CodeGeneratorRequest* n = new CodeGeneratorRequest;
767 if (arena != NULL) { 236 if (arena != NULL) {
768 arena->Own(n); 237 arena->Own(n);
769 } 238 }
770 return n; 239 return n;
771 } 240 }
772 241
773 void CodeGeneratorRequest::Clear() { 242 void CodeGeneratorRequest::Clear() {
774 // @@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 }
775 file_to_generate_.Clear(); 247 file_to_generate_.Clear();
776 proto_file_.Clear(); 248 proto_file_.Clear();
777 if (_has_bits_[0 / 32] & 3u) { 249 ::memset(_has_bits_, 0, sizeof(_has_bits_));
778 if (has_parameter()) { 250 if (_internal_metadata_.have_unknown_fields()) {
779 GOOGLE_DCHECK(!parameter_.IsDefault(&::google::protobuf::internal::GetEmpt yStringAlreadyInited())); 251 mutable_unknown_fields()->Clear();
780 (*parameter_.UnsafeRawStringPointer())->clear();
781 }
782 if (has_compiler_version()) {
783 GOOGLE_DCHECK(compiler_version_ != NULL);
784 compiler_version_->::google::protobuf::compiler::Version::Clear();
785 }
786 } 252 }
787 _has_bits_.Clear();
788 _internal_metadata_.Clear();
789 } 253 }
790 254
791 bool CodeGeneratorRequest::MergePartialFromCodedStream( 255 bool CodeGeneratorRequest::MergePartialFromCodedStream(
792 ::google::protobuf::io::CodedInputStream* input) { 256 ::google::protobuf::io::CodedInputStream* input) {
793 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 257 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
794 ::google::protobuf::uint32 tag; 258 ::google::protobuf::uint32 tag;
795 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator Request) 259 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator Request)
796 for (;;) { 260 for (;;) {
797 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u); 261 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127);
798 tag = p.first; 262 tag = p.first;
799 if (!p.second) goto handle_unusual; 263 if (!p.second) goto handle_unusual;
800 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 264 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
801 // repeated string file_to_generate = 1; 265 // repeated string file_to_generate = 1;
802 case 1: { 266 case 1: {
803 if (tag == 10u) { 267 if (tag == 10) {
268 parse_file_to_generate:
804 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 269 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
805 input, this->add_file_to_generate())); 270 input, this->add_file_to_generate()));
806 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 271 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
807 this->file_to_generate(this->file_to_generate_size() - 1).data(), 272 this->file_to_generate(this->file_to_generate_size() - 1).data(),
808 this->file_to_generate(this->file_to_generate_size() - 1).length(), 273 this->file_to_generate(this->file_to_generate_size() - 1).length(),
809 ::google::protobuf::internal::WireFormat::PARSE, 274 ::google::protobuf::internal::WireFormat::PARSE,
810 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate"); 275 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
811 } else { 276 } else {
812 goto handle_unusual; 277 goto handle_unusual;
813 } 278 }
279 if (input->ExpectTag(10)) goto parse_file_to_generate;
280 if (input->ExpectTag(18)) goto parse_parameter;
814 break; 281 break;
815 } 282 }
816 283
817 // optional string parameter = 2; 284 // optional string parameter = 2;
818 case 2: { 285 case 2: {
819 if (tag == 18u) { 286 if (tag == 18) {
287 parse_parameter:
820 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 288 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
821 input, this->mutable_parameter())); 289 input, this->mutable_parameter()));
822 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 290 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
823 this->parameter().data(), this->parameter().length(), 291 this->parameter().data(), this->parameter().length(),
824 ::google::protobuf::internal::WireFormat::PARSE, 292 ::google::protobuf::internal::WireFormat::PARSE,
825 "google.protobuf.compiler.CodeGeneratorRequest.parameter"); 293 "google.protobuf.compiler.CodeGeneratorRequest.parameter");
826 } else { 294 } else {
827 goto handle_unusual; 295 goto handle_unusual;
828 } 296 }
829 break; 297 if (input->ExpectTag(122)) goto parse_proto_file;
830 }
831
832 // optional .google.protobuf.compiler.Version compiler_version = 3;
833 case 3: {
834 if (tag == 26u) {
835 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
836 input, mutable_compiler_version()));
837 } else {
838 goto handle_unusual;
839 }
840 break; 298 break;
841 } 299 }
842 300
843 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; 301 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
844 case 15: { 302 case 15: {
845 if (tag == 122u) { 303 if (tag == 122) {
304 parse_proto_file:
846 DO_(input->IncrementRecursionDepth()); 305 DO_(input->IncrementRecursionDepth());
306 parse_loop_proto_file:
847 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 307 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
848 input, add_proto_file())); 308 input, add_proto_file()));
849 } else { 309 } else {
850 goto handle_unusual; 310 goto handle_unusual;
851 } 311 }
312 if (input->ExpectTag(122)) goto parse_loop_proto_file;
852 input->UnsafeDecrementRecursionDepth(); 313 input->UnsafeDecrementRecursionDepth();
314 if (input->ExpectAtEnd()) goto success;
853 break; 315 break;
854 } 316 }
855 317
856 default: { 318 default: {
857 handle_unusual: 319 handle_unusual:
858 if (tag == 0 || 320 if (tag == 0 ||
859 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 321 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
860 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 322 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
861 goto success; 323 goto success;
862 } 324 }
(...skipping 28 matching lines...) Expand all
891 // optional string parameter = 2; 353 // optional string parameter = 2;
892 if (has_parameter()) { 354 if (has_parameter()) {
893 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 355 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
894 this->parameter().data(), this->parameter().length(), 356 this->parameter().data(), this->parameter().length(),
895 ::google::protobuf::internal::WireFormat::SERIALIZE, 357 ::google::protobuf::internal::WireFormat::SERIALIZE,
896 "google.protobuf.compiler.CodeGeneratorRequest.parameter"); 358 "google.protobuf.compiler.CodeGeneratorRequest.parameter");
897 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 359 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
898 2, this->parameter(), output); 360 2, this->parameter(), output);
899 } 361 }
900 362
901 // optional .google.protobuf.compiler.Version compiler_version = 3;
902 if (has_compiler_version()) {
903 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
904 3, *this->compiler_version_, output);
905 }
906
907 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; 363 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
908 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++) {
909 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 365 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
910 15, this->proto_file(i), output); 366 15, this->proto_file(i), output);
911 } 367 }
912 368
913 if (_internal_metadata_.have_unknown_fields()) { 369 if (_internal_metadata_.have_unknown_fields()) {
914 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 370 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
915 unknown_fields(), output); 371 unknown_fields(), output);
916 } 372 }
917 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat orRequest) 373 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat orRequest)
918 } 374 }
919 375
920 ::google::protobuf::uint8* CodeGeneratorRequest::InternalSerializeWithCachedSize sToArray( 376 ::google::protobuf::uint8* CodeGeneratorRequest::SerializeWithCachedSizesToArray (
921 bool deterministic, ::google::protobuf::uint8* target) const { 377 ::google::protobuf::uint8* target) const {
922 (void)deterministic; // Unused
923 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler. CodeGeneratorRequest) 378 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler. CodeGeneratorRequest)
924 // repeated string file_to_generate = 1; 379 // repeated string file_to_generate = 1;
925 for (int i = 0; i < this->file_to_generate_size(); i++) { 380 for (int i = 0; i < this->file_to_generate_size(); i++) {
926 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 381 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
927 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(),
928 ::google::protobuf::internal::WireFormat::SERIALIZE, 383 ::google::protobuf::internal::WireFormat::SERIALIZE,
929 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate"); 384 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
930 target = ::google::protobuf::internal::WireFormatLite:: 385 target = ::google::protobuf::internal::WireFormatLite::
931 WriteStringToArray(1, this->file_to_generate(i), target); 386 WriteStringToArray(1, this->file_to_generate(i), target);
932 } 387 }
933 388
934 // optional string parameter = 2; 389 // optional string parameter = 2;
935 if (has_parameter()) { 390 if (has_parameter()) {
936 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 391 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
937 this->parameter().data(), this->parameter().length(), 392 this->parameter().data(), this->parameter().length(),
938 ::google::protobuf::internal::WireFormat::SERIALIZE, 393 ::google::protobuf::internal::WireFormat::SERIALIZE,
939 "google.protobuf.compiler.CodeGeneratorRequest.parameter"); 394 "google.protobuf.compiler.CodeGeneratorRequest.parameter");
940 target = 395 target =
941 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 396 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
942 2, this->parameter(), target); 397 2, this->parameter(), target);
943 } 398 }
944 399
945 // optional .google.protobuf.compiler.Version compiler_version = 3;
946 if (has_compiler_version()) {
947 target = ::google::protobuf::internal::WireFormatLite::
948 InternalWriteMessageNoVirtualToArray(
949 3, *this->compiler_version_, false, target);
950 }
951
952 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; 400 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
953 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++) {
954 target = ::google::protobuf::internal::WireFormatLite:: 402 target = ::google::protobuf::internal::WireFormatLite::
955 InternalWriteMessageNoVirtualToArray( 403 WriteMessageNoVirtualToArray(
956 15, this->proto_file(i), false, target); 404 15, this->proto_file(i), target);
957 } 405 }
958 406
959 if (_internal_metadata_.have_unknown_fields()) { 407 if (_internal_metadata_.have_unknown_fields()) {
960 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 408 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
961 unknown_fields(), target); 409 unknown_fields(), target);
962 } 410 }
963 // @@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)
964 return target; 412 return target;
965 } 413 }
966 414
967 size_t CodeGeneratorRequest::ByteSizeLong() const { 415 int CodeGeneratorRequest::ByteSize() const {
968 // @@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)
969 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 }
970 440
971 if (_internal_metadata_.have_unknown_fields()) { 441 if (_internal_metadata_.have_unknown_fields()) {
972 total_size += 442 total_size +=
973 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 443 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
974 unknown_fields()); 444 unknown_fields());
975 } 445 }
976 // repeated string file_to_generate = 1;
977 total_size += 1 *
978 ::google::protobuf::internal::FromIntSize(this->file_to_generate_size());
979 for (int i = 0; i < this->file_to_generate_size(); i++) {
980 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
981 this->file_to_generate(i));
982 }
983
984 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
985 {
986 unsigned int count = this->proto_file_size();
987 total_size += 1UL * count;
988 for (unsigned int i = 0; i < count; i++) {
989 total_size +=
990 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
991 this->proto_file(i));
992 }
993 }
994
995 if (_has_bits_[0 / 32] & 3u) {
996 // optional string parameter = 2;
997 if (has_parameter()) {
998 total_size += 1 +
999 ::google::protobuf::internal::WireFormatLite::StringSize(
1000 this->parameter());
1001 }
1002
1003 // optional .google.protobuf.compiler.Version compiler_version = 3;
1004 if (has_compiler_version()) {
1005 total_size += 1 +
1006 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1007 *this->compiler_version_);
1008 }
1009
1010 }
1011 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1012 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 446 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1013 _cached_size_ = cached_size; 447 _cached_size_ = total_size;
1014 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 448 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1015 return total_size; 449 return total_size;
1016 } 450 }
1017 451
1018 void CodeGeneratorRequest::MergeFrom(const ::google::protobuf::Message& from) { 452 void CodeGeneratorRequest::MergeFrom(const ::google::protobuf::Message& from) {
1019 // @@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)
1020 GOOGLE_DCHECK_NE(&from, this); 454 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1021 const CodeGeneratorRequest* source = 455 const CodeGeneratorRequest* source =
1022 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe quest>( 456 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe quest>(
1023 &from); 457 &from);
1024 if (source == NULL) { 458 if (source == NULL) {
1025 // @@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)
1026 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 460 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1027 } else { 461 } else {
1028 // @@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)
1029 MergeFrom(*source); 463 MergeFrom(*source);
1030 } 464 }
1031 } 465 }
1032 466
1033 void CodeGeneratorRequest::MergeFrom(const CodeGeneratorRequest& from) { 467 void CodeGeneratorRequest::MergeFrom(const CodeGeneratorRequest& from) {
1034 // @@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)
1035 GOOGLE_DCHECK_NE(&from, this); 469 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1036 _internal_metadata_.MergeFrom(from._internal_metadata_);
1037 file_to_generate_.MergeFrom(from.file_to_generate_); 470 file_to_generate_.MergeFrom(from.file_to_generate_);
1038 proto_file_.MergeFrom(from.proto_file_); 471 proto_file_.MergeFrom(from.proto_file_);
1039 if (from._has_bits_[0 / 32] & 3u) { 472 if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
1040 if (from.has_parameter()) { 473 if (from.has_parameter()) {
1041 set_has_parameter(); 474 set_has_parameter();
1042 parameter_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.parameter_); 475 parameter_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.parameter_);
1043 } 476 }
1044 if (from.has_compiler_version()) { 477 }
1045 mutable_compiler_version()->::google::protobuf::compiler::Version::MergeFr om(from.compiler_version()); 478 if (from._internal_metadata_.have_unknown_fields()) {
1046 } 479 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1047 } 480 }
1048 } 481 }
1049 482
1050 void CodeGeneratorRequest::CopyFrom(const ::google::protobuf::Message& from) { 483 void CodeGeneratorRequest::CopyFrom(const ::google::protobuf::Message& from) {
1051 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler .CodeGeneratorRequest) 484 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler .CodeGeneratorRequest)
1052 if (&from == this) return; 485 if (&from == this) return;
1053 Clear(); 486 Clear();
1054 MergeFrom(from); 487 MergeFrom(from);
1055 } 488 }
1056 489
1057 void CodeGeneratorRequest::CopyFrom(const CodeGeneratorRequest& from) { 490 void CodeGeneratorRequest::CopyFrom(const CodeGeneratorRequest& from) {
1058 // @@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)
1059 if (&from == this) return; 492 if (&from == this) return;
1060 Clear(); 493 Clear();
1061 MergeFrom(from); 494 MergeFrom(from);
1062 } 495 }
1063 496
1064 bool CodeGeneratorRequest::IsInitialized() const { 497 bool CodeGeneratorRequest::IsInitialized() const {
498
1065 if (!::google::protobuf::internal::AllAreInitialized(this->proto_file())) retu rn false; 499 if (!::google::protobuf::internal::AllAreInitialized(this->proto_file())) retu rn false;
1066 return true; 500 return true;
1067 } 501 }
1068 502
1069 void CodeGeneratorRequest::Swap(CodeGeneratorRequest* other) { 503 void CodeGeneratorRequest::Swap(CodeGeneratorRequest* other) {
1070 if (other == this) return; 504 if (other == this) return;
1071 InternalSwap(other); 505 InternalSwap(other);
1072 } 506 }
1073 void CodeGeneratorRequest::InternalSwap(CodeGeneratorRequest* other) { 507 void CodeGeneratorRequest::InternalSwap(CodeGeneratorRequest* other) {
1074 file_to_generate_.UnsafeArenaSwap(&other->file_to_generate_); 508 file_to_generate_.UnsafeArenaSwap(&other->file_to_generate_);
509 parameter_.Swap(&other->parameter_);
1075 proto_file_.UnsafeArenaSwap(&other->proto_file_); 510 proto_file_.UnsafeArenaSwap(&other->proto_file_);
1076 parameter_.Swap(&other->parameter_);
1077 std::swap(compiler_version_, other->compiler_version_);
1078 std::swap(_has_bits_[0], other->_has_bits_[0]); 511 std::swap(_has_bits_[0], other->_has_bits_[0]);
1079 _internal_metadata_.Swap(&other->_internal_metadata_); 512 _internal_metadata_.Swap(&other->_internal_metadata_);
1080 std::swap(_cached_size_, other->_cached_size_); 513 std::swap(_cached_size_, other->_cached_size_);
1081 } 514 }
1082 515
1083 ::google::protobuf::Metadata CodeGeneratorRequest::GetMetadata() const { 516 ::google::protobuf::Metadata CodeGeneratorRequest::GetMetadata() const {
1084 protobuf_AssignDescriptorsOnce(); 517 protobuf_AssignDescriptorsOnce();
1085 return file_level_metadata[1]; 518 ::google::protobuf::Metadata metadata;
519 metadata.descriptor = CodeGeneratorRequest_descriptor_;
520 metadata.reflection = CodeGeneratorRequest_reflection_;
521 return metadata;
1086 } 522 }
1087 523
1088 #if PROTOBUF_INLINE_NOT_IN_HEADERS 524 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1089 // CodeGeneratorRequest 525 // CodeGeneratorRequest
1090 526
1091 // repeated string file_to_generate = 1; 527 // repeated string file_to_generate = 1;
1092 int CodeGeneratorRequest::file_to_generate_size() const { 528 int CodeGeneratorRequest::file_to_generate_size() const {
1093 return file_to_generate_.size(); 529 return file_to_generate_.size();
1094 } 530 }
1095 void CodeGeneratorRequest::clear_file_to_generate() { 531 void CodeGeneratorRequest::clear_file_to_generate() {
1096 file_to_generate_.Clear(); 532 file_to_generate_.Clear();
1097 } 533 }
1098 const ::std::string& CodeGeneratorRequest::file_to_generate(int index) const { 534 const ::std::string& CodeGeneratorRequest::file_to_generate(int index) const {
1099 // @@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)
1100 return file_to_generate_.Get(index); 536 return file_to_generate_.Get(index);
1101 } 537 }
1102 ::std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) { 538 ::std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) {
1103 // @@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)
1104 return file_to_generate_.Mutable(index); 540 return file_to_generate_.Mutable(index);
1105 } 541 }
1106 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) {
1107 // @@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)
1108 file_to_generate_.Mutable(index)->assign(value); 544 file_to_generate_.Mutable(index)->assign(value);
1109 } 545 }
1110 void CodeGeneratorRequest::set_file_to_generate(int index, const char* value) { 546 void CodeGeneratorRequest::set_file_to_generate(int index, const char* value) {
1111 file_to_generate_.Mutable(index)->assign(value); 547 file_to_generate_.Mutable(index)->assign(value);
1112 // @@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)
1113 } 549 }
1114 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) {
1115 file_to_generate_.Mutable(index)->assign( 551 file_to_generate_.Mutable(index)->assign(
1116 reinterpret_cast<const char*>(value), size); 552 reinterpret_cast<const char*>(value), size);
1117 // @@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)
1118 } 554 }
1119 ::std::string* CodeGeneratorRequest::add_file_to_generate() { 555 ::std::string* CodeGeneratorRequest::add_file_to_generate() {
1120 // @@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)
1121 return file_to_generate_.Add(); 557 return file_to_generate_.Add();
1122 } 558 }
1123 void CodeGeneratorRequest::add_file_to_generate(const ::std::string& value) { 559 void CodeGeneratorRequest::add_file_to_generate(const ::std::string& value) {
1124 file_to_generate_.Add()->assign(value); 560 file_to_generate_.Add()->assign(value);
1125 // @@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)
1126 } 562 }
1127 void CodeGeneratorRequest::add_file_to_generate(const char* value) { 563 void CodeGeneratorRequest::add_file_to_generate(const char* value) {
1128 file_to_generate_.Add()->assign(value); 564 file_to_generate_.Add()->assign(value);
1129 // @@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)
1130 } 566 }
1131 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) {
1132 file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size); 568 file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size);
1133 // @@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)
1134 } 570 }
1135 const ::google::protobuf::RepeatedPtrField< ::std::string>& 571 const ::google::protobuf::RepeatedPtrField< ::std::string>&
1136 CodeGeneratorRequest::file_to_generate() const { 572 CodeGeneratorRequest::file_to_generate() const {
1137 // @@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)
1138 return file_to_generate_; 574 return file_to_generate_;
1139 } 575 }
1140 ::google::protobuf::RepeatedPtrField< ::std::string>* 576 ::google::protobuf::RepeatedPtrField< ::std::string>*
1141 CodeGeneratorRequest::mutable_file_to_generate() { 577 CodeGeneratorRequest::mutable_file_to_generate() {
1142 // @@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)
1143 return &file_to_generate_; 579 return &file_to_generate_;
1144 } 580 }
1145 581
1146 // optional string parameter = 2; 582 // optional string parameter = 2;
1147 bool CodeGeneratorRequest::has_parameter() const { 583 bool CodeGeneratorRequest::has_parameter() const {
1148 return (_has_bits_[0] & 0x00000001u) != 0; 584 return (_has_bits_[0] & 0x00000002u) != 0;
1149 } 585 }
1150 void CodeGeneratorRequest::set_has_parameter() { 586 void CodeGeneratorRequest::set_has_parameter() {
1151 _has_bits_[0] |= 0x00000001u; 587 _has_bits_[0] |= 0x00000002u;
1152 } 588 }
1153 void CodeGeneratorRequest::clear_has_parameter() { 589 void CodeGeneratorRequest::clear_has_parameter() {
1154 _has_bits_[0] &= ~0x00000001u; 590 _has_bits_[0] &= ~0x00000002u;
1155 } 591 }
1156 void CodeGeneratorRequest::clear_parameter() { 592 void CodeGeneratorRequest::clear_parameter() {
1157 parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 593 parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
1158 clear_has_parameter(); 594 clear_has_parameter();
1159 } 595 }
1160 const ::std::string& CodeGeneratorRequest::parameter() const { 596 const ::std::string& CodeGeneratorRequest::parameter() const {
1161 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe quest.parameter) 597 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe quest.parameter)
1162 return parameter_.GetNoArena(); 598 return parameter_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
1163 } 599 }
1164 void CodeGeneratorRequest::set_parameter(const ::std::string& value) { 600 void CodeGeneratorRequest::set_parameter(const ::std::string& value) {
1165 set_has_parameter(); 601 set_has_parameter();
1166 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value); 602 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value);
1167 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe quest.parameter) 603 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe quest.parameter)
1168 } 604 }
1169 #if LANG_CXX11 605 void CodeGeneratorRequest::set_parameter(const char* value) {
1170 void CodeGeneratorRequest::set_parameter(::std::string&& value) {
1171 set_has_parameter();
1172 parameter_.SetNoArena(
1173 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va lue));
1174 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGene ratorRequest.parameter)
1175 }
1176 #endif
1177 void CodeGeneratorRequest::set_parameter(const char* value) {
1178 set_has_parameter(); 606 set_has_parameter();
1179 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value)); 607 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value));
1180 // @@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)
1181 } 609 }
1182 void CodeGeneratorRequest::set_parameter(const char* value, size_t size) { 610 void CodeGeneratorRequest::set_parameter(const char* value, size_t size) {
1183 set_has_parameter(); 611 set_has_parameter();
1184 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), 612 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(),
1185 ::std::string(reinterpret_cast<const char*>(value), size)); 613 ::std::string(reinterpret_cast<const char*>(value), size));
1186 // @@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)
1187 } 615 }
1188 ::std::string* CodeGeneratorRequest::mutable_parameter() { 616 ::std::string* CodeGeneratorRequest::mutable_parameter() {
1189 set_has_parameter(); 617 set_has_parameter();
1190 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orRequest.parameter) 618 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orRequest.parameter)
1191 return parameter_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 619 return parameter_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
1192 } 620 }
1193 ::std::string* CodeGeneratorRequest::release_parameter() { 621 ::std::string* CodeGeneratorRequest::release_parameter() {
1194 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orRequest.parameter) 622 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orRequest.parameter)
1195 clear_has_parameter(); 623 clear_has_parameter();
1196 return parameter_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 624 return parameter_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
1197 } 625 }
1198 void CodeGeneratorRequest::set_allocated_parameter(::std::string* parameter) { 626 void CodeGeneratorRequest::set_allocated_parameter(::std::string* parameter) {
1199 if (parameter != NULL) { 627 if (parameter != NULL) {
1200 set_has_parameter(); 628 set_has_parameter();
1201 } else { 629 } else {
1202 clear_has_parameter(); 630 clear_has_parameter();
1203 } 631 }
1204 parameter_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), parameter); 632 parameter_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), parameter);
1205 // @@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)
1206 } 634 }
1207 635
1208 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; 636 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
(...skipping 19 matching lines...) Expand all
1228 CodeGeneratorRequest::mutable_proto_file() { 656 CodeGeneratorRequest::mutable_proto_file() {
1229 // @@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)
1230 return &proto_file_; 658 return &proto_file_;
1231 } 659 }
1232 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorPr oto >& 660 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorPr oto >&
1233 CodeGeneratorRequest::proto_file() const { 661 CodeGeneratorRequest::proto_file() const {
1234 // @@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)
1235 return proto_file_; 663 return proto_file_;
1236 } 664 }
1237 665
1238 // optional .google.protobuf.compiler.Version compiler_version = 3;
1239 bool CodeGeneratorRequest::has_compiler_version() const {
1240 return (_has_bits_[0] & 0x00000002u) != 0;
1241 }
1242 void CodeGeneratorRequest::set_has_compiler_version() {
1243 _has_bits_[0] |= 0x00000002u;
1244 }
1245 void CodeGeneratorRequest::clear_has_compiler_version() {
1246 _has_bits_[0] &= ~0x00000002u;
1247 }
1248 void CodeGeneratorRequest::clear_compiler_version() {
1249 if (compiler_version_ != NULL) compiler_version_->::google::protobuf::compiler ::Version::Clear();
1250 clear_has_compiler_version();
1251 }
1252 const ::google::protobuf::compiler::Version& CodeGeneratorRequest::compiler_vers ion() const {
1253 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe quest.compiler_version)
1254 return compiler_version_ != NULL ? *compiler_version_
1255 : *::google::protobuf::compiler::Version::internal_defa ult_instance();
1256 }
1257 ::google::protobuf::compiler::Version* CodeGeneratorRequest::mutable_compiler_ve rsion() {
1258 set_has_compiler_version();
1259 if (compiler_version_ == NULL) {
1260 compiler_version_ = new ::google::protobuf::compiler::Version;
1261 }
1262 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orRequest.compiler_version)
1263 return compiler_version_;
1264 }
1265 ::google::protobuf::compiler::Version* CodeGeneratorRequest::release_compiler_ve rsion() {
1266 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orRequest.compiler_version)
1267 clear_has_compiler_version();
1268 ::google::protobuf::compiler::Version* temp = compiler_version_;
1269 compiler_version_ = NULL;
1270 return temp;
1271 }
1272 void CodeGeneratorRequest::set_allocated_compiler_version(::google::protobuf::co mpiler::Version* compiler_version) {
1273 delete compiler_version_;
1274 compiler_version_ = compiler_version;
1275 if (compiler_version) {
1276 set_has_compiler_version();
1277 } else {
1278 clear_has_compiler_version();
1279 }
1280 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorRequest.compiler_version)
1281 }
1282
1283 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 666 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1284 667
1285 // =================================================================== 668 // ===================================================================
1286 669
1287 #if !defined(_MSC_VER) || _MSC_VER >= 1900 670 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1288 const int CodeGeneratorResponse_File::kNameFieldNumber; 671 const int CodeGeneratorResponse_File::kNameFieldNumber;
1289 const int CodeGeneratorResponse_File::kInsertionPointFieldNumber; 672 const int CodeGeneratorResponse_File::kInsertionPointFieldNumber;
1290 const int CodeGeneratorResponse_File::kContentFieldNumber; 673 const int CodeGeneratorResponse_File::kContentFieldNumber;
1291 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 674 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1292 675
1293 CodeGeneratorResponse_File::CodeGeneratorResponse_File() 676 CodeGeneratorResponse_File::CodeGeneratorResponse_File()
1294 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 677 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1295 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1296 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
1297 }
1298 SharedCtor(); 678 SharedCtor();
1299 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator Response.File) 679 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator Response.File)
1300 } 680 }
681
682 void CodeGeneratorResponse_File::InitAsDefaultInstance() {
683 }
684
1301 CodeGeneratorResponse_File::CodeGeneratorResponse_File(const CodeGeneratorRespon se_File& from) 685 CodeGeneratorResponse_File::CodeGeneratorResponse_File(const CodeGeneratorRespon se_File& from)
1302 : ::google::protobuf::Message(), 686 : ::google::protobuf::Message(),
1303 _internal_metadata_(NULL), 687 _internal_metadata_(NULL) {
1304 _has_bits_(from._has_bits_), 688 SharedCtor();
1305 _cached_size_(0) { 689 MergeFrom(from);
1306 _internal_metadata_.MergeFrom(from._internal_metadata_);
1307 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
1308 if (from.has_name()) {
1309 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
1310 }
1311 insertion_point_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
1312 if (from.has_insertion_point()) {
1313 insertion_point_.AssignWithDefault(&::google::protobuf::internal::GetEmptySt ringAlreadyInited(), from.insertion_point_);
1314 }
1315 content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited());
1316 if (from.has_content()) {
1317 content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), from.content_);
1318 }
1319 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene ratorResponse.File) 690 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene ratorResponse.File)
1320 } 691 }
1321 692
1322 void CodeGeneratorResponse_File::SharedCtor() { 693 void CodeGeneratorResponse_File::SharedCtor() {
694 ::google::protobuf::internal::GetEmptyString();
1323 _cached_size_ = 0; 695 _cached_size_ = 0;
1324 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 696 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
1325 insertion_point_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 697 insertion_point_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
1326 content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 698 content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited());
699 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1327 } 700 }
1328 701
1329 CodeGeneratorResponse_File::~CodeGeneratorResponse_File() { 702 CodeGeneratorResponse_File::~CodeGeneratorResponse_File() {
1330 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR esponse.File) 703 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR esponse.File)
1331 SharedDtor(); 704 SharedDtor();
1332 } 705 }
1333 706
1334 void CodeGeneratorResponse_File::SharedDtor() { 707 void CodeGeneratorResponse_File::SharedDtor() {
1335 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 708 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
1336 insertion_point_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 709 insertion_point_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
1337 content_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 710 content_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited());
711 if (this != default_instance_) {
712 }
1338 } 713 }
1339 714
1340 void CodeGeneratorResponse_File::SetCachedSize(int size) const { 715 void CodeGeneratorResponse_File::SetCachedSize(int size) const {
1341 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 716 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1342 _cached_size_ = size; 717 _cached_size_ = size;
1343 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 718 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1344 } 719 }
1345 const ::google::protobuf::Descriptor* CodeGeneratorResponse_File::descriptor() { 720 const ::google::protobuf::Descriptor* CodeGeneratorResponse_File::descriptor() {
1346 protobuf_AssignDescriptorsOnce(); 721 protobuf_AssignDescriptorsOnce();
1347 return file_level_metadata[2].descriptor; 722 return CodeGeneratorResponse_File_descriptor_;
1348 } 723 }
1349 724
1350 const CodeGeneratorResponse_File& CodeGeneratorResponse_File::default_instance() { 725 const CodeGeneratorResponse_File& CodeGeneratorResponse_File::default_instance() {
1351 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 726 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2 fplugin_2eproto();
1352 return *internal_default_instance(); 727 return *default_instance_;
1353 } 728 }
1354 729
730 CodeGeneratorResponse_File* CodeGeneratorResponse_File::default_instance_ = NULL ;
731
1355 CodeGeneratorResponse_File* CodeGeneratorResponse_File::New(::google::protobuf:: Arena* arena) const { 732 CodeGeneratorResponse_File* CodeGeneratorResponse_File::New(::google::protobuf:: Arena* arena) const {
1356 CodeGeneratorResponse_File* n = new CodeGeneratorResponse_File; 733 CodeGeneratorResponse_File* n = new CodeGeneratorResponse_File;
1357 if (arena != NULL) { 734 if (arena != NULL) {
1358 arena->Own(n); 735 arena->Own(n);
1359 } 736 }
1360 return n; 737 return n;
1361 } 738 }
1362 739
1363 void CodeGeneratorResponse_File::Clear() { 740 void CodeGeneratorResponse_File::Clear() {
1364 // @@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)
1365 if (_has_bits_[0 / 32] & 7u) { 742 if (_has_bits_[0 / 32] & 7u) {
1366 if (has_name()) { 743 if (has_name()) {
1367 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited())); 744 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
1368 (*name_.UnsafeRawStringPointer())->clear();
1369 } 745 }
1370 if (has_insertion_point()) { 746 if (has_insertion_point()) {
1371 GOOGLE_DCHECK(!insertion_point_.IsDefault(&::google::protobuf::internal::G etEmptyStringAlreadyInited())); 747 insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited());
1372 (*insertion_point_.UnsafeRawStringPointer())->clear();
1373 } 748 }
1374 if (has_content()) { 749 if (has_content()) {
1375 GOOGLE_DCHECK(!content_.IsDefault(&::google::protobuf::internal::GetEmptyS tringAlreadyInited())); 750 content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
1376 (*content_.UnsafeRawStringPointer())->clear();
1377 } 751 }
1378 } 752 }
1379 _has_bits_.Clear(); 753 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1380 _internal_metadata_.Clear(); 754 if (_internal_metadata_.have_unknown_fields()) {
755 mutable_unknown_fields()->Clear();
756 }
1381 } 757 }
1382 758
1383 bool CodeGeneratorResponse_File::MergePartialFromCodedStream( 759 bool CodeGeneratorResponse_File::MergePartialFromCodedStream(
1384 ::google::protobuf::io::CodedInputStream* input) { 760 ::google::protobuf::io::CodedInputStream* input) {
1385 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 761 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1386 ::google::protobuf::uint32 tag; 762 ::google::protobuf::uint32 tag;
1387 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator Response.File) 763 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator Response.File)
1388 for (;;) { 764 for (;;) {
1389 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u); 765 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127);
1390 tag = p.first; 766 tag = p.first;
1391 if (!p.second) goto handle_unusual; 767 if (!p.second) goto handle_unusual;
1392 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 768 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
1393 // optional string name = 1; 769 // optional string name = 1;
1394 case 1: { 770 case 1: {
1395 if (tag == 10u) { 771 if (tag == 10) {
1396 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 772 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1397 input, this->mutable_name())); 773 input, this->mutable_name()));
1398 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 774 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1399 this->name().data(), this->name().length(), 775 this->name().data(), this->name().length(),
1400 ::google::protobuf::internal::WireFormat::PARSE, 776 ::google::protobuf::internal::WireFormat::PARSE,
1401 "google.protobuf.compiler.CodeGeneratorResponse.File.name"); 777 "google.protobuf.compiler.CodeGeneratorResponse.File.name");
1402 } else { 778 } else {
1403 goto handle_unusual; 779 goto handle_unusual;
1404 } 780 }
781 if (input->ExpectTag(18)) goto parse_insertion_point;
1405 break; 782 break;
1406 } 783 }
1407 784
1408 // optional string insertion_point = 2; 785 // optional string insertion_point = 2;
1409 case 2: { 786 case 2: {
1410 if (tag == 18u) { 787 if (tag == 18) {
788 parse_insertion_point:
1411 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 789 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1412 input, this->mutable_insertion_point())); 790 input, this->mutable_insertion_point()));
1413 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 791 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1414 this->insertion_point().data(), this->insertion_point().length(), 792 this->insertion_point().data(), this->insertion_point().length(),
1415 ::google::protobuf::internal::WireFormat::PARSE, 793 ::google::protobuf::internal::WireFormat::PARSE,
1416 "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point "); 794 "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point ");
1417 } else { 795 } else {
1418 goto handle_unusual; 796 goto handle_unusual;
1419 } 797 }
798 if (input->ExpectTag(122)) goto parse_content;
1420 break; 799 break;
1421 } 800 }
1422 801
1423 // optional string content = 15; 802 // optional string content = 15;
1424 case 15: { 803 case 15: {
1425 if (tag == 122u) { 804 if (tag == 122) {
805 parse_content:
1426 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 806 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1427 input, this->mutable_content())); 807 input, this->mutable_content()));
1428 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 808 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1429 this->content().data(), this->content().length(), 809 this->content().data(), this->content().length(),
1430 ::google::protobuf::internal::WireFormat::PARSE, 810 ::google::protobuf::internal::WireFormat::PARSE,
1431 "google.protobuf.compiler.CodeGeneratorResponse.File.content"); 811 "google.protobuf.compiler.CodeGeneratorResponse.File.content");
1432 } else { 812 } else {
1433 goto handle_unusual; 813 goto handle_unusual;
1434 } 814 }
815 if (input->ExpectAtEnd()) goto success;
1435 break; 816 break;
1436 } 817 }
1437 818
1438 default: { 819 default: {
1439 handle_unusual: 820 handle_unusual:
1440 if (tag == 0 || 821 if (tag == 0 ||
1441 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 822 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1442 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 823 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1443 goto success; 824 goto success;
1444 } 825 }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 15, this->content(), output); 871 15, this->content(), output);
1491 } 872 }
1492 873
1493 if (_internal_metadata_.have_unknown_fields()) { 874 if (_internal_metadata_.have_unknown_fields()) {
1494 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 875 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1495 unknown_fields(), output); 876 unknown_fields(), output);
1496 } 877 }
1497 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat orResponse.File) 878 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat orResponse.File)
1498 } 879 }
1499 880
1500 ::google::protobuf::uint8* CodeGeneratorResponse_File::InternalSerializeWithCach edSizesToArray( 881 ::google::protobuf::uint8* CodeGeneratorResponse_File::SerializeWithCachedSizesT oArray(
1501 bool deterministic, ::google::protobuf::uint8* target) const { 882 ::google::protobuf::uint8* target) const {
1502 (void)deterministic; // Unused
1503 // @@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)
1504 // optional string name = 1; 884 // optional string name = 1;
1505 if (has_name()) { 885 if (has_name()) {
1506 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 886 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1507 this->name().data(), this->name().length(), 887 this->name().data(), this->name().length(),
1508 ::google::protobuf::internal::WireFormat::SERIALIZE, 888 ::google::protobuf::internal::WireFormat::SERIALIZE,
1509 "google.protobuf.compiler.CodeGeneratorResponse.File.name"); 889 "google.protobuf.compiler.CodeGeneratorResponse.File.name");
1510 target = 890 target =
1511 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 891 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1512 1, this->name(), target); 892 1, this->name(), target);
(...skipping 22 matching lines...) Expand all
1535 } 915 }
1536 916
1537 if (_internal_metadata_.have_unknown_fields()) { 917 if (_internal_metadata_.have_unknown_fields()) {
1538 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 918 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
1539 unknown_fields(), target); 919 unknown_fields(), target);
1540 } 920 }
1541 // @@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)
1542 return target; 922 return target;
1543 } 923 }
1544 924
1545 size_t CodeGeneratorResponse_File::ByteSizeLong() const { 925 int CodeGeneratorResponse_File::ByteSize() const {
1546 // @@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)
1547 size_t total_size = 0; 927 int total_size = 0;
1548 928
1549 if (_internal_metadata_.have_unknown_fields()) {
1550 total_size +=
1551 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1552 unknown_fields());
1553 }
1554 if (_has_bits_[0 / 32] & 7u) { 929 if (_has_bits_[0 / 32] & 7u) {
1555 // optional string name = 1; 930 // optional string name = 1;
1556 if (has_name()) { 931 if (has_name()) {
1557 total_size += 1 + 932 total_size += 1 +
1558 ::google::protobuf::internal::WireFormatLite::StringSize( 933 ::google::protobuf::internal::WireFormatLite::StringSize(
1559 this->name()); 934 this->name());
1560 } 935 }
1561 936
1562 // optional string insertion_point = 2; 937 // optional string insertion_point = 2;
1563 if (has_insertion_point()) { 938 if (has_insertion_point()) {
1564 total_size += 1 + 939 total_size += 1 +
1565 ::google::protobuf::internal::WireFormatLite::StringSize( 940 ::google::protobuf::internal::WireFormatLite::StringSize(
1566 this->insertion_point()); 941 this->insertion_point());
1567 } 942 }
1568 943
1569 // optional string content = 15; 944 // optional string content = 15;
1570 if (has_content()) { 945 if (has_content()) {
1571 total_size += 1 + 946 total_size += 1 +
1572 ::google::protobuf::internal::WireFormatLite::StringSize( 947 ::google::protobuf::internal::WireFormatLite::StringSize(
1573 this->content()); 948 this->content());
1574 } 949 }
1575 950
1576 } 951 }
1577 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 }
1578 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 957 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1579 _cached_size_ = cached_size; 958 _cached_size_ = total_size;
1580 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 959 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1581 return total_size; 960 return total_size;
1582 } 961 }
1583 962
1584 void CodeGeneratorResponse_File::MergeFrom(const ::google::protobuf::Message& fr om) { 963 void CodeGeneratorResponse_File::MergeFrom(const ::google::protobuf::Message& fr om) {
1585 // @@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)
1586 GOOGLE_DCHECK_NE(&from, this); 965 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1587 const CodeGeneratorResponse_File* source = 966 const CodeGeneratorResponse_File* source =
1588 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe sponse_File>( 967 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe sponse_File>(
1589 &from); 968 &from);
1590 if (source == NULL) { 969 if (source == NULL) {
1591 // @@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)
1592 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 971 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1593 } else { 972 } else {
1594 // @@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)
1595 MergeFrom(*source); 974 MergeFrom(*source);
1596 } 975 }
1597 } 976 }
1598 977
1599 void CodeGeneratorResponse_File::MergeFrom(const CodeGeneratorResponse_File& fro m) { 978 void CodeGeneratorResponse_File::MergeFrom(const CodeGeneratorResponse_File& fro m) {
1600 // @@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)
1601 GOOGLE_DCHECK_NE(&from, this); 980 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1602 _internal_metadata_.MergeFrom(from._internal_metadata_); 981 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1603 if (from._has_bits_[0 / 32] & 7u) {
1604 if (from.has_name()) { 982 if (from.has_name()) {
1605 set_has_name(); 983 set_has_name();
1606 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_); 984 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_);
1607 } 985 }
1608 if (from.has_insertion_point()) { 986 if (from.has_insertion_point()) {
1609 set_has_insertion_point(); 987 set_has_insertion_point();
1610 insertion_point_.AssignWithDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), from.insertion_point_); 988 insertion_point_.AssignWithDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), from.insertion_point_);
1611 } 989 }
1612 if (from.has_content()) { 990 if (from.has_content()) {
1613 set_has_content(); 991 set_has_content();
1614 content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited(), from.content_); 992 content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited(), from.content_);
1615 } 993 }
1616 } 994 }
995 if (from._internal_metadata_.have_unknown_fields()) {
996 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
997 }
1617 } 998 }
1618 999
1619 void CodeGeneratorResponse_File::CopyFrom(const ::google::protobuf::Message& fro m) { 1000 void CodeGeneratorResponse_File::CopyFrom(const ::google::protobuf::Message& fro m) {
1620 // @@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)
1621 if (&from == this) return; 1002 if (&from == this) return;
1622 Clear(); 1003 Clear();
1623 MergeFrom(from); 1004 MergeFrom(from);
1624 } 1005 }
1625 1006
1626 void CodeGeneratorResponse_File::CopyFrom(const CodeGeneratorResponse_File& from ) { 1007 void CodeGeneratorResponse_File::CopyFrom(const CodeGeneratorResponse_File& from ) {
1627 // @@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)
1628 if (&from == this) return; 1009 if (&from == this) return;
1629 Clear(); 1010 Clear();
1630 MergeFrom(from); 1011 MergeFrom(from);
1631 } 1012 }
1632 1013
1633 bool CodeGeneratorResponse_File::IsInitialized() const { 1014 bool CodeGeneratorResponse_File::IsInitialized() const {
1015
1634 return true; 1016 return true;
1635 } 1017 }
1636 1018
1637 void CodeGeneratorResponse_File::Swap(CodeGeneratorResponse_File* other) { 1019 void CodeGeneratorResponse_File::Swap(CodeGeneratorResponse_File* other) {
1638 if (other == this) return; 1020 if (other == this) return;
1639 InternalSwap(other); 1021 InternalSwap(other);
1640 } 1022 }
1641 void CodeGeneratorResponse_File::InternalSwap(CodeGeneratorResponse_File* other) { 1023 void CodeGeneratorResponse_File::InternalSwap(CodeGeneratorResponse_File* other) {
1642 name_.Swap(&other->name_); 1024 name_.Swap(&other->name_);
1643 insertion_point_.Swap(&other->insertion_point_); 1025 insertion_point_.Swap(&other->insertion_point_);
1644 content_.Swap(&other->content_); 1026 content_.Swap(&other->content_);
1645 std::swap(_has_bits_[0], other->_has_bits_[0]); 1027 std::swap(_has_bits_[0], other->_has_bits_[0]);
1646 _internal_metadata_.Swap(&other->_internal_metadata_); 1028 _internal_metadata_.Swap(&other->_internal_metadata_);
1647 std::swap(_cached_size_, other->_cached_size_); 1029 std::swap(_cached_size_, other->_cached_size_);
1648 } 1030 }
1649 1031
1650 ::google::protobuf::Metadata CodeGeneratorResponse_File::GetMetadata() const { 1032 ::google::protobuf::Metadata CodeGeneratorResponse_File::GetMetadata() const {
1651 protobuf_AssignDescriptorsOnce(); 1033 protobuf_AssignDescriptorsOnce();
1652 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;
1653 } 1038 }
1654 1039
1655 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1656 // CodeGeneratorResponse_File
1657 1040
1658 // optional string name = 1; 1041 // -------------------------------------------------------------------
1659 bool CodeGeneratorResponse_File::has_name() const {
1660 return (_has_bits_[0] & 0x00000001u) != 0;
1661 }
1662 void CodeGeneratorResponse_File::set_has_name() {
1663 _has_bits_[0] |= 0x00000001u;
1664 }
1665 void CodeGeneratorResponse_File::clear_has_name() {
1666 _has_bits_[0] &= ~0x00000001u;
1667 }
1668 void CodeGeneratorResponse_File::clear_name() {
1669 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
1670 clear_has_name();
1671 }
1672 const ::std::string& CodeGeneratorResponse_File::name() const {
1673 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe sponse.File.name)
1674 return name_.GetNoArena();
1675 }
1676 void CodeGeneratorResponse_File::set_name(const ::std::string& value) {
1677 set_has_name();
1678 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1679 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe sponse.File.name)
1680 }
1681 #if LANG_CXX11
1682 void CodeGeneratorResponse_File::set_name(::std::string&& value) {
1683 set_has_name();
1684 name_.SetNoArena(
1685 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va lue));
1686 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGene ratorResponse.File.name)
1687 }
1688 #endif
1689 void CodeGeneratorResponse_File::set_name(const char* value) {
1690 set_has_name();
1691 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1692 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torResponse.File.name)
1693 }
1694 void CodeGeneratorResponse_File::set_name(const char* value, size_t size) {
1695 set_has_name();
1696 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1697 ::std::string(reinterpret_cast<const char*>(value), size));
1698 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorResponse.File.name)
1699 }
1700 ::std::string* CodeGeneratorResponse_File::mutable_name() {
1701 set_has_name();
1702 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orResponse.File.name)
1703 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
1704 }
1705 ::std::string* CodeGeneratorResponse_File::release_name() {
1706 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orResponse.File.name)
1707 clear_has_name();
1708 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
1709 }
1710 void CodeGeneratorResponse_File::set_allocated_name(::std::string* name) {
1711 if (name != NULL) {
1712 set_has_name();
1713 } else {
1714 clear_has_name();
1715 }
1716 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
1717 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorResponse.File.name)
1718 }
1719
1720 // optional string insertion_point = 2;
1721 bool CodeGeneratorResponse_File::has_insertion_point() const {
1722 return (_has_bits_[0] & 0x00000002u) != 0;
1723 }
1724 void CodeGeneratorResponse_File::set_has_insertion_point() {
1725 _has_bits_[0] |= 0x00000002u;
1726 }
1727 void CodeGeneratorResponse_File::clear_has_insertion_point() {
1728 _has_bits_[0] &= ~0x00000002u;
1729 }
1730 void CodeGeneratorResponse_File::clear_insertion_point() {
1731 insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited());
1732 clear_has_insertion_point();
1733 }
1734 const ::std::string& CodeGeneratorResponse_File::insertion_point() const {
1735 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe sponse.File.insertion_point)
1736 return insertion_point_.GetNoArena();
1737 }
1738 void CodeGeneratorResponse_File::set_insertion_point(const ::std::string& value) {
1739 set_has_insertion_point();
1740 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), value);
1741 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe sponse.File.insertion_point)
1742 }
1743 #if LANG_CXX11
1744 void CodeGeneratorResponse_File::set_insertion_point(::std::string&& value) {
1745 set_has_insertion_point();
1746 insertion_point_.SetNoArena(
1747 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va lue));
1748 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGene ratorResponse.File.insertion_point)
1749 }
1750 #endif
1751 void CodeGeneratorResponse_File::set_insertion_point(const char* value) {
1752 set_has_insertion_point();
1753 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), ::std::string(value));
1754 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torResponse.File.insertion_point)
1755 }
1756 void CodeGeneratorResponse_File::set_insertion_point(const char* value, size_t s ize) {
1757 set_has_insertion_point();
1758 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(),
1759 ::std::string(reinterpret_cast<const char*>(value), size));
1760 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorResponse.File.insertion_point)
1761 }
1762 ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() {
1763 set_has_insertion_point();
1764 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orResponse.File.insertion_point)
1765 return insertion_point_.MutableNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
1766 }
1767 ::std::string* CodeGeneratorResponse_File::release_insertion_point() {
1768 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orResponse.File.insertion_point)
1769 clear_has_insertion_point();
1770 return insertion_point_.ReleaseNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
1771 }
1772 void CodeGeneratorResponse_File::set_allocated_insertion_point(::std::string* in sertion_point) {
1773 if (insertion_point != NULL) {
1774 set_has_insertion_point();
1775 } else {
1776 clear_has_insertion_point();
1777 }
1778 insertion_point_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited(), insertion_point);
1779 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorResponse.File.insertion_point)
1780 }
1781
1782 // optional string content = 15;
1783 bool CodeGeneratorResponse_File::has_content() const {
1784 return (_has_bits_[0] & 0x00000004u) != 0;
1785 }
1786 void CodeGeneratorResponse_File::set_has_content() {
1787 _has_bits_[0] |= 0x00000004u;
1788 }
1789 void CodeGeneratorResponse_File::clear_has_content() {
1790 _has_bits_[0] &= ~0x00000004u;
1791 }
1792 void CodeGeneratorResponse_File::clear_content() {
1793 content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
1794 clear_has_content();
1795 }
1796 const ::std::string& CodeGeneratorResponse_File::content() const {
1797 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe sponse.File.content)
1798 return content_.GetNoArena();
1799 }
1800 void CodeGeneratorResponse_File::set_content(const ::std::string& value) {
1801 set_has_content();
1802 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), value);
1803 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe sponse.File.content)
1804 }
1805 #if LANG_CXX11
1806 void CodeGeneratorResponse_File::set_content(::std::string&& value) {
1807 set_has_content();
1808 content_.SetNoArena(
1809 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va lue));
1810 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGene ratorResponse.File.content)
1811 }
1812 #endif
1813 void CodeGeneratorResponse_File::set_content(const char* value) {
1814 set_has_content();
1815 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), ::std::string(value));
1816 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera torResponse.File.content)
1817 }
1818 void CodeGeneratorResponse_File::set_content(const char* value, size_t size) {
1819 set_has_content();
1820 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (),
1821 ::std::string(reinterpret_cast<const char*>(value), size));
1822 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen eratorResponse.File.content)
1823 }
1824 ::std::string* CodeGeneratorResponse_File::mutable_content() {
1825 set_has_content();
1826 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orResponse.File.content)
1827 return content_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
1828 }
1829 ::std::string* CodeGeneratorResponse_File::release_content() {
1830 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orResponse.File.content)
1831 clear_has_content();
1832 return content_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
1833 }
1834 void CodeGeneratorResponse_File::set_allocated_content(::std::string* content) {
1835 if (content != NULL) {
1836 set_has_content();
1837 } else {
1838 clear_has_content();
1839 }
1840 content_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), content);
1841 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG eneratorResponse.File.content)
1842 }
1843
1844 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1845
1846 // ===================================================================
1847 1042
1848 #if !defined(_MSC_VER) || _MSC_VER >= 1900 1043 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1849 const int CodeGeneratorResponse::kErrorFieldNumber; 1044 const int CodeGeneratorResponse::kErrorFieldNumber;
1850 const int CodeGeneratorResponse::kFileFieldNumber; 1045 const int CodeGeneratorResponse::kFileFieldNumber;
1851 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 1046 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1852 1047
1853 CodeGeneratorResponse::CodeGeneratorResponse() 1048 CodeGeneratorResponse::CodeGeneratorResponse()
1854 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 1049 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1855 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1856 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto();
1857 }
1858 SharedCtor(); 1050 SharedCtor();
1859 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator Response) 1051 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator Response)
1860 } 1052 }
1053
1054 void CodeGeneratorResponse::InitAsDefaultInstance() {
1055 }
1056
1861 CodeGeneratorResponse::CodeGeneratorResponse(const CodeGeneratorResponse& from) 1057 CodeGeneratorResponse::CodeGeneratorResponse(const CodeGeneratorResponse& from)
1862 : ::google::protobuf::Message(), 1058 : ::google::protobuf::Message(),
1863 _internal_metadata_(NULL), 1059 _internal_metadata_(NULL) {
1864 _has_bits_(from._has_bits_), 1060 SharedCtor();
1865 _cached_size_(0), 1061 MergeFrom(from);
1866 file_(from.file_) {
1867 _internal_metadata_.MergeFrom(from._internal_metadata_);
1868 error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited());
1869 if (from.has_error()) {
1870 error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlread yInited(), from.error_);
1871 }
1872 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene ratorResponse) 1062 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene ratorResponse)
1873 } 1063 }
1874 1064
1875 void CodeGeneratorResponse::SharedCtor() { 1065 void CodeGeneratorResponse::SharedCtor() {
1066 ::google::protobuf::internal::GetEmptyString();
1876 _cached_size_ = 0; 1067 _cached_size_ = 0;
1877 error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 1068 error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited());
1069 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1878 } 1070 }
1879 1071
1880 CodeGeneratorResponse::~CodeGeneratorResponse() { 1072 CodeGeneratorResponse::~CodeGeneratorResponse() {
1881 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR esponse) 1073 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR esponse)
1882 SharedDtor(); 1074 SharedDtor();
1883 } 1075 }
1884 1076
1885 void CodeGeneratorResponse::SharedDtor() { 1077 void CodeGeneratorResponse::SharedDtor() {
1886 error_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed()); 1078 error_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed());
1079 if (this != default_instance_) {
1080 }
1887 } 1081 }
1888 1082
1889 void CodeGeneratorResponse::SetCachedSize(int size) const { 1083 void CodeGeneratorResponse::SetCachedSize(int size) const {
1890 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1084 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1891 _cached_size_ = size; 1085 _cached_size_ = size;
1892 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1086 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1893 } 1087 }
1894 const ::google::protobuf::Descriptor* CodeGeneratorResponse::descriptor() { 1088 const ::google::protobuf::Descriptor* CodeGeneratorResponse::descriptor() {
1895 protobuf_AssignDescriptorsOnce(); 1089 protobuf_AssignDescriptorsOnce();
1896 return file_level_metadata[3].descriptor; 1090 return CodeGeneratorResponse_descriptor_;
1897 } 1091 }
1898 1092
1899 const CodeGeneratorResponse& CodeGeneratorResponse::default_instance() { 1093 const CodeGeneratorResponse& CodeGeneratorResponse::default_instance() {
1900 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); 1094 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2 fplugin_2eproto();
1901 return *internal_default_instance(); 1095 return *default_instance_;
1902 } 1096 }
1903 1097
1098 CodeGeneratorResponse* CodeGeneratorResponse::default_instance_ = NULL;
1099
1904 CodeGeneratorResponse* CodeGeneratorResponse::New(::google::protobuf::Arena* are na) const { 1100 CodeGeneratorResponse* CodeGeneratorResponse::New(::google::protobuf::Arena* are na) const {
1905 CodeGeneratorResponse* n = new CodeGeneratorResponse; 1101 CodeGeneratorResponse* n = new CodeGeneratorResponse;
1906 if (arena != NULL) { 1102 if (arena != NULL) {
1907 arena->Own(n); 1103 arena->Own(n);
1908 } 1104 }
1909 return n; 1105 return n;
1910 } 1106 }
1911 1107
1912 void CodeGeneratorResponse::Clear() { 1108 void CodeGeneratorResponse::Clear() {
1913 // @@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 }
1914 file_.Clear(); 1113 file_.Clear();
1915 if (has_error()) { 1114 ::memset(_has_bits_, 0, sizeof(_has_bits_));
1916 GOOGLE_DCHECK(!error_.IsDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited())); 1115 if (_internal_metadata_.have_unknown_fields()) {
1917 (*error_.UnsafeRawStringPointer())->clear(); 1116 mutable_unknown_fields()->Clear();
1918 } 1117 }
1919 _has_bits_.Clear();
1920 _internal_metadata_.Clear();
1921 } 1118 }
1922 1119
1923 bool CodeGeneratorResponse::MergePartialFromCodedStream( 1120 bool CodeGeneratorResponse::MergePartialFromCodedStream(
1924 ::google::protobuf::io::CodedInputStream* input) { 1121 ::google::protobuf::io::CodedInputStream* input) {
1925 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 1122 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1926 ::google::protobuf::uint32 tag; 1123 ::google::protobuf::uint32 tag;
1927 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator Response) 1124 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator Response)
1928 for (;;) { 1125 for (;;) {
1929 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u); 1126 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127);
1930 tag = p.first; 1127 tag = p.first;
1931 if (!p.second) goto handle_unusual; 1128 if (!p.second) goto handle_unusual;
1932 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 1129 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
1933 // optional string error = 1; 1130 // optional string error = 1;
1934 case 1: { 1131 case 1: {
1935 if (tag == 10u) { 1132 if (tag == 10) {
1936 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1133 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1937 input, this->mutable_error())); 1134 input, this->mutable_error()));
1938 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 1135 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1939 this->error().data(), this->error().length(), 1136 this->error().data(), this->error().length(),
1940 ::google::protobuf::internal::WireFormat::PARSE, 1137 ::google::protobuf::internal::WireFormat::PARSE,
1941 "google.protobuf.compiler.CodeGeneratorResponse.error"); 1138 "google.protobuf.compiler.CodeGeneratorResponse.error");
1942 } else { 1139 } else {
1943 goto handle_unusual; 1140 goto handle_unusual;
1944 } 1141 }
1142 if (input->ExpectTag(122)) goto parse_file;
1945 break; 1143 break;
1946 } 1144 }
1947 1145
1948 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 ; 1146 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 ;
1949 case 15: { 1147 case 15: {
1950 if (tag == 122u) { 1148 if (tag == 122) {
1149 parse_file:
1951 DO_(input->IncrementRecursionDepth()); 1150 DO_(input->IncrementRecursionDepth());
1151 parse_loop_file:
1952 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 1152 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
1953 input, add_file())); 1153 input, add_file()));
1954 } else { 1154 } else {
1955 goto handle_unusual; 1155 goto handle_unusual;
1956 } 1156 }
1157 if (input->ExpectTag(122)) goto parse_loop_file;
1957 input->UnsafeDecrementRecursionDepth(); 1158 input->UnsafeDecrementRecursionDepth();
1159 if (input->ExpectAtEnd()) goto success;
1958 break; 1160 break;
1959 } 1161 }
1960 1162
1961 default: { 1163 default: {
1962 handle_unusual: 1164 handle_unusual:
1963 if (tag == 0 || 1165 if (tag == 0 ||
1964 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 1166 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1965 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 1167 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1966 goto success; 1168 goto success;
1967 } 1169 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1999 15, this->file(i), output); 1201 15, this->file(i), output);
2000 } 1202 }
2001 1203
2002 if (_internal_metadata_.have_unknown_fields()) { 1204 if (_internal_metadata_.have_unknown_fields()) {
2003 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 1205 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2004 unknown_fields(), output); 1206 unknown_fields(), output);
2005 } 1207 }
2006 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat orResponse) 1208 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat orResponse)
2007 } 1209 }
2008 1210
2009 ::google::protobuf::uint8* CodeGeneratorResponse::InternalSerializeWithCachedSiz esToArray( 1211 ::google::protobuf::uint8* CodeGeneratorResponse::SerializeWithCachedSizesToArra y(
2010 bool deterministic, ::google::protobuf::uint8* target) const { 1212 ::google::protobuf::uint8* target) const {
2011 (void)deterministic; // Unused
2012 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler. CodeGeneratorResponse) 1213 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler. CodeGeneratorResponse)
2013 // optional string error = 1; 1214 // optional string error = 1;
2014 if (has_error()) { 1215 if (has_error()) {
2015 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 1216 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2016 this->error().data(), this->error().length(), 1217 this->error().data(), this->error().length(),
2017 ::google::protobuf::internal::WireFormat::SERIALIZE, 1218 ::google::protobuf::internal::WireFormat::SERIALIZE,
2018 "google.protobuf.compiler.CodeGeneratorResponse.error"); 1219 "google.protobuf.compiler.CodeGeneratorResponse.error");
2019 target = 1220 target =
2020 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1221 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2021 1, this->error(), target); 1222 1, this->error(), target);
2022 } 1223 }
2023 1224
2024 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; 1225 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
2025 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++) {
2026 target = ::google::protobuf::internal::WireFormatLite:: 1227 target = ::google::protobuf::internal::WireFormatLite::
2027 InternalWriteMessageNoVirtualToArray( 1228 WriteMessageNoVirtualToArray(
2028 15, this->file(i), false, target); 1229 15, this->file(i), target);
2029 } 1230 }
2030 1231
2031 if (_internal_metadata_.have_unknown_fields()) { 1232 if (_internal_metadata_.have_unknown_fields()) {
2032 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 1233 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
2033 unknown_fields(), target); 1234 unknown_fields(), target);
2034 } 1235 }
2035 // @@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)
2036 return target; 1237 return target;
2037 } 1238 }
2038 1239
2039 size_t CodeGeneratorResponse::ByteSizeLong() const { 1240 int CodeGeneratorResponse::ByteSize() const {
2040 // @@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)
2041 size_t total_size = 0; 1242 int total_size = 0;
2042
2043 if (_internal_metadata_.have_unknown_fields()) {
2044 total_size +=
2045 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2046 unknown_fields());
2047 }
2048 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
2049 {
2050 unsigned int count = this->file_size();
2051 total_size += 1UL * count;
2052 for (unsigned int i = 0; i < count; i++) {
2053 total_size +=
2054 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2055 this->file(i));
2056 }
2057 }
2058 1243
2059 // optional string error = 1; 1244 // optional string error = 1;
2060 if (has_error()) { 1245 if (has_error()) {
2061 total_size += 1 + 1246 total_size += 1 +
2062 ::google::protobuf::internal::WireFormatLite::StringSize( 1247 ::google::protobuf::internal::WireFormatLite::StringSize(
2063 this->error()); 1248 this->error());
2064 } 1249 }
2065 1250
2066 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 }
2067 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1264 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2068 _cached_size_ = cached_size; 1265 _cached_size_ = total_size;
2069 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1266 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2070 return total_size; 1267 return total_size;
2071 } 1268 }
2072 1269
2073 void CodeGeneratorResponse::MergeFrom(const ::google::protobuf::Message& from) { 1270 void CodeGeneratorResponse::MergeFrom(const ::google::protobuf::Message& from) {
2074 // @@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)
2075 GOOGLE_DCHECK_NE(&from, this); 1272 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
2076 const CodeGeneratorResponse* source = 1273 const CodeGeneratorResponse* source =
2077 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe sponse>( 1274 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe sponse>(
2078 &from); 1275 &from);
2079 if (source == NULL) { 1276 if (source == NULL) {
2080 // @@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)
2081 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 1278 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2082 } else { 1279 } else {
2083 // @@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)
2084 MergeFrom(*source); 1281 MergeFrom(*source);
2085 } 1282 }
2086 } 1283 }
2087 1284
2088 void CodeGeneratorResponse::MergeFrom(const CodeGeneratorResponse& from) { 1285 void CodeGeneratorResponse::MergeFrom(const CodeGeneratorResponse& from) {
2089 // @@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)
2090 GOOGLE_DCHECK_NE(&from, this); 1287 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
2091 _internal_metadata_.MergeFrom(from._internal_metadata_);
2092 file_.MergeFrom(from.file_); 1288 file_.MergeFrom(from.file_);
2093 if (from.has_error()) { 1289 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2094 set_has_error(); 1290 if (from.has_error()) {
2095 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());
2096 } 1297 }
2097 } 1298 }
2098 1299
2099 void CodeGeneratorResponse::CopyFrom(const ::google::protobuf::Message& from) { 1300 void CodeGeneratorResponse::CopyFrom(const ::google::protobuf::Message& from) {
2100 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler .CodeGeneratorResponse) 1301 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler .CodeGeneratorResponse)
2101 if (&from == this) return; 1302 if (&from == this) return;
2102 Clear(); 1303 Clear();
2103 MergeFrom(from); 1304 MergeFrom(from);
2104 } 1305 }
2105 1306
2106 void CodeGeneratorResponse::CopyFrom(const CodeGeneratorResponse& from) { 1307 void CodeGeneratorResponse::CopyFrom(const CodeGeneratorResponse& from) {
2107 // @@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)
2108 if (&from == this) return; 1309 if (&from == this) return;
2109 Clear(); 1310 Clear();
2110 MergeFrom(from); 1311 MergeFrom(from);
2111 } 1312 }
2112 1313
2113 bool CodeGeneratorResponse::IsInitialized() const { 1314 bool CodeGeneratorResponse::IsInitialized() const {
1315
2114 return true; 1316 return true;
2115 } 1317 }
2116 1318
2117 void CodeGeneratorResponse::Swap(CodeGeneratorResponse* other) { 1319 void CodeGeneratorResponse::Swap(CodeGeneratorResponse* other) {
2118 if (other == this) return; 1320 if (other == this) return;
2119 InternalSwap(other); 1321 InternalSwap(other);
2120 } 1322 }
2121 void CodeGeneratorResponse::InternalSwap(CodeGeneratorResponse* other) { 1323 void CodeGeneratorResponse::InternalSwap(CodeGeneratorResponse* other) {
1324 error_.Swap(&other->error_);
2122 file_.UnsafeArenaSwap(&other->file_); 1325 file_.UnsafeArenaSwap(&other->file_);
2123 error_.Swap(&other->error_);
2124 std::swap(_has_bits_[0], other->_has_bits_[0]); 1326 std::swap(_has_bits_[0], other->_has_bits_[0]);
2125 _internal_metadata_.Swap(&other->_internal_metadata_); 1327 _internal_metadata_.Swap(&other->_internal_metadata_);
2126 std::swap(_cached_size_, other->_cached_size_); 1328 std::swap(_cached_size_, other->_cached_size_);
2127 } 1329 }
2128 1330
2129 ::google::protobuf::Metadata CodeGeneratorResponse::GetMetadata() const { 1331 ::google::protobuf::Metadata CodeGeneratorResponse::GetMetadata() const {
2130 protobuf_AssignDescriptorsOnce(); 1332 protobuf_AssignDescriptorsOnce();
2131 return file_level_metadata[3]; 1333 ::google::protobuf::Metadata metadata;
1334 metadata.descriptor = CodeGeneratorResponse_descriptor_;
1335 metadata.reflection = CodeGeneratorResponse_reflection_;
1336 return metadata;
2132 } 1337 }
2133 1338
2134 #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
2135 // CodeGeneratorResponse 1506 // CodeGeneratorResponse
2136 1507
2137 // optional string error = 1; 1508 // optional string error = 1;
2138 bool CodeGeneratorResponse::has_error() const { 1509 bool CodeGeneratorResponse::has_error() const {
2139 return (_has_bits_[0] & 0x00000001u) != 0; 1510 return (_has_bits_[0] & 0x00000001u) != 0;
2140 } 1511 }
2141 void CodeGeneratorResponse::set_has_error() { 1512 void CodeGeneratorResponse::set_has_error() {
2142 _has_bits_[0] |= 0x00000001u; 1513 _has_bits_[0] |= 0x00000001u;
2143 } 1514 }
2144 void CodeGeneratorResponse::clear_has_error() { 1515 void CodeGeneratorResponse::clear_has_error() {
2145 _has_bits_[0] &= ~0x00000001u; 1516 _has_bits_[0] &= ~0x00000001u;
2146 } 1517 }
2147 void CodeGeneratorResponse::clear_error() { 1518 void CodeGeneratorResponse::clear_error() {
2148 error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited()); 1519 error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited());
2149 clear_has_error(); 1520 clear_has_error();
2150 } 1521 }
2151 const ::std::string& CodeGeneratorResponse::error() const { 1522 const ::std::string& CodeGeneratorResponse::error() const {
2152 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe sponse.error) 1523 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe sponse.error)
2153 return error_.GetNoArena(); 1524 return error_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited());
2154 } 1525 }
2155 void CodeGeneratorResponse::set_error(const ::std::string& value) { 1526 void CodeGeneratorResponse::set_error(const ::std::string& value) {
2156 set_has_error(); 1527 set_has_error();
2157 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited() , value); 1528 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited() , value);
2158 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe sponse.error) 1529 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe sponse.error)
2159 } 1530 }
2160 #if LANG_CXX11 1531 void CodeGeneratorResponse::set_error(const char* value) {
2161 void CodeGeneratorResponse::set_error(::std::string&& value) {
2162 set_has_error();
2163 error_.SetNoArena(
2164 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va lue));
2165 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGene ratorResponse.error)
2166 }
2167 #endif
2168 void CodeGeneratorResponse::set_error(const char* value) {
2169 set_has_error(); 1532 set_has_error();
2170 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited() , ::std::string(value)); 1533 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited() , ::std::string(value));
2171 // @@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)
2172 } 1535 }
2173 void CodeGeneratorResponse::set_error(const char* value, size_t size) { 1536 void CodeGeneratorResponse::set_error(const char* value, size_t size) {
2174 set_has_error(); 1537 set_has_error();
2175 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited() , 1538 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited() ,
2176 ::std::string(reinterpret_cast<const char*>(value), size)); 1539 ::std::string(reinterpret_cast<const char*>(value), size));
2177 // @@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)
2178 } 1541 }
2179 ::std::string* CodeGeneratorResponse::mutable_error() { 1542 ::std::string* CodeGeneratorResponse::mutable_error() {
2180 set_has_error(); 1543 set_has_error();
2181 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orResponse.error) 1544 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat orResponse.error)
2182 return error_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 1545 return error_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
2183 } 1546 }
2184 ::std::string* CodeGeneratorResponse::release_error() { 1547 ::std::string* CodeGeneratorResponse::release_error() {
2185 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orResponse.error) 1548 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat orResponse.error)
2186 clear_has_error(); 1549 clear_has_error();
2187 return error_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 1550 return error_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
2188 } 1551 }
2189 void CodeGeneratorResponse::set_allocated_error(::std::string* error) { 1552 void CodeGeneratorResponse::set_allocated_error(::std::string* error) {
2190 if (error != NULL) { 1553 if (error != NULL) {
2191 set_has_error(); 1554 set_has_error();
2192 } else { 1555 } else {
2193 clear_has_error(); 1556 clear_has_error();
2194 } 1557 }
2195 error_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited(), error); 1558 error_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited(), error);
2196 // @@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)
2197 } 1560 }
2198 1561
2199 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; 1562 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
(...skipping 28 matching lines...) Expand all
2228 1591
2229 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 1592 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
2230 1593
2231 // @@protoc_insertion_point(namespace_scope) 1594 // @@protoc_insertion_point(namespace_scope)
2232 1595
2233 } // namespace compiler 1596 } // namespace compiler
2234 } // namespace protobuf 1597 } // namespace protobuf
2235 } // namespace google 1598 } // namespace google
2236 1599
2237 // @@protoc_insertion_point(global_scope) 1600 // @@protoc_insertion_point(global_scope)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698