OLD | NEW |
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
_; |
23 | 31 |
24 namespace { | 32 namespace { |
25 | 33 |
26 const ::google::protobuf::Descriptor* CodeGeneratorRequest_descriptor_ = NULL; | 34 ::google::protobuf::Metadata file_level_metadata[4]; |
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 void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto() { | 39 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fcompiler_
2fplugin_2eproto() GOOGLE_ATTRIBUTE_COLD; |
40 protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); | 40 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fcompiler_
2fplugin_2eproto() { |
41 const ::google::protobuf::FileDescriptor* file = | 41 static const ::google::protobuf::uint32 offsets[] = { |
42 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( | 42 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Version, _has_bits_), |
43 "google/protobuf/compiler/plugin.proto"); | 43 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Version, _internal_metadata_)
, |
44 GOOGLE_CHECK(file != NULL); | 44 ~0u, // no _extensions_ |
45 CodeGeneratorRequest_descriptor_ = file->message_type(0); | 45 ~0u, // no _oneof_case_ |
46 static const int CodeGeneratorRequest_offsets_[3] = { | 46 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Version, major_), |
| 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_ |
47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, file_to
_generate_), | 58 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, file_to
_generate_), |
48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, paramet
er_), | 59 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, paramet
er_), |
49 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, proto_f
ile_), | 60 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, proto_f
ile_), |
50 }; | 61 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, compile
r_version_), |
51 CodeGeneratorRequest_reflection_ = | 62 2, |
52 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( | 63 0, |
53 CodeGeneratorRequest_descriptor_, | 64 3, |
54 CodeGeneratorRequest::default_instance_, | 65 1, |
55 CodeGeneratorRequest_offsets_, | 66 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, _
has_bits_), |
56 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, _has_
bits_[0]), | 67 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, _
internal_metadata_), |
57 -1, | 68 ~0u, // no _extensions_ |
58 -1, | 69 ~0u, // no _oneof_case_ |
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] = { | |
80 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, n
ame_), | 70 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, n
ame_), |
81 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, i
nsertion_point_), | 71 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, i
nsertion_point_), |
82 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, c
ontent_), | 72 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, |
83 }; | 84 }; |
84 CodeGeneratorResponse_File_reflection_ = | 85 return offsets; |
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); | |
95 } | 86 } |
96 | 87 |
| 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 |
97 namespace { | 102 namespace { |
98 | 103 |
99 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); | 104 void protobuf_AssignDescriptors() { |
100 inline void protobuf_AssignDescriptorsOnce() { | 105 protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); |
101 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, | 106 ::google::protobuf::MessageFactory* factory = NULL; |
102 &protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2epr
oto); | 107 AssignDescriptors( |
| 108 "google/protobuf/compiler/plugin.proto", schemas, file_default_instances,
protobuf_Offsets_google_2fprotobuf_2fcompiler_2fplugin_2eproto(), factory, |
| 109 file_level_metadata, NULL, NULL); |
103 } | 110 } |
104 | 111 |
| 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; |
105 void protobuf_RegisterTypes(const ::std::string&) { | 118 void protobuf_RegisterTypes(const ::std::string&) { |
106 protobuf_AssignDescriptorsOnce(); | 119 protobuf_AssignDescriptorsOnce(); |
107 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( | 120 ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4); |
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()); | |
113 } | 121 } |
114 | 122 |
115 } // namespace | 123 } // namespace |
116 | 124 |
117 void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto() { | 125 void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto() { |
118 delete CodeGeneratorRequest::default_instance_; | 126 _Version_default_instance_.Shutdown(); |
119 delete CodeGeneratorRequest_reflection_; | 127 delete file_level_metadata[0].reflection; |
120 delete CodeGeneratorResponse::default_instance_; | 128 _CodeGeneratorRequest_default_instance_.Shutdown(); |
121 delete CodeGeneratorResponse_reflection_; | 129 delete file_level_metadata[1].reflection; |
122 delete CodeGeneratorResponse_File::default_instance_; | 130 _CodeGeneratorResponse_File_default_instance_.Shutdown(); |
123 delete CodeGeneratorResponse_File_reflection_; | 131 delete file_level_metadata[2].reflection; |
| 132 _CodeGeneratorResponse_default_instance_.Shutdown(); |
| 133 delete file_level_metadata[3].reflection; |
124 } | 134 } |
125 | 135 |
126 void protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto() { | 136 void protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto_impl()
{ |
127 static bool already_here = false; | |
128 if (already_here) return; | |
129 already_here = true; | |
130 GOOGLE_PROTOBUF_VERIFY_VERSION; | 137 GOOGLE_PROTOBUF_VERIFY_VERSION; |
131 | 138 |
132 ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); | 139 ::google::protobuf::protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2epro
to(); |
| 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 }; |
133 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( | 172 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
134 "\n%google/protobuf/compiler/plugin.proto\022" | 173 descriptor, 590); |
135 "\030google.protobuf.compiler\032 google/protob" | |
136 "uf/descriptor.proto\"}\n\024CodeGeneratorRequ" | |
137 "est\022\030\n\020file_to_generate\030\001 \003(\t\022\021\n\tparamet" | |
138 "er\030\002 \001(\t\0228\n\nproto_file\030\017 \003(\0132$.google.pr" | |
139 "otobuf.FileDescriptorProto\"\252\001\n\025CodeGener" | |
140 "atorResponse\022\r\n\005error\030\001 \001(\t\022B\n\004file\030\017 \003(" | |
141 "\01324.google.protobuf.compiler.CodeGenerat" | |
142 "orResponse.File\032>\n\004File\022\014\n\004name\030\001 \001(\t\022\027\n" | |
143 "\017insertion_point\030\002 \001(\t\022\017\n\007content\030\017 \001(\tB" | |
144 "7\n\034com.google.protobuf.compilerB\014PluginP" | |
145 "rotosZ\tplugin_go", 456); | |
146 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( | 174 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
147 "google/protobuf/compiler/plugin.proto", &protobuf_RegisterTypes); | 175 "google/protobuf/compiler/plugin.proto", &protobuf_RegisterTypes); |
148 CodeGeneratorRequest::default_instance_ = new CodeGeneratorRequest(); | 176 ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
149 CodeGeneratorResponse::default_instance_ = new CodeGeneratorResponse(); | |
150 CodeGeneratorResponse_File::default_instance_ = new CodeGeneratorResponse_File
(); | |
151 CodeGeneratorRequest::default_instance_->InitAsDefaultInstance(); | |
152 CodeGeneratorResponse::default_instance_->InitAsDefaultInstance(); | |
153 CodeGeneratorResponse_File::default_instance_->InitAsDefaultInstance(); | |
154 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto
buf_2fcompiler_2fplugin_2eproto); | 177 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto
buf_2fcompiler_2fplugin_2eproto); |
155 } | 178 } |
156 | 179 |
| 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 } |
157 // Force AddDescriptors() to be called at static initialization time. | 185 // Force AddDescriptors() to be called at static initialization time. |
158 struct StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto
{ | 186 struct StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto
{ |
159 StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto() { | 187 StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto() { |
160 protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); | 188 protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); |
161 } | 189 } |
162 } static_descriptor_initializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto_; | 190 } static_descriptor_initializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto_; |
163 | 191 |
164 namespace { | |
165 | |
166 static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD; | |
167 static void MergeFromFail(int line) { | |
168 GOOGLE_CHECK(false) << __FILE__ << ":" << line; | |
169 } | |
170 | |
171 } // namespace | |
172 | |
173 | |
174 // =================================================================== | 192 // =================================================================== |
175 | 193 |
| 194 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 195 const int Version::kMajorFieldNumber; |
| 196 const int Version::kMinorFieldNumber; |
| 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 } |
| 224 |
| 225 void Version::SharedCtor() { |
| 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 |
| 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 |
| 695 // =================================================================== |
| 696 |
176 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 697 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
177 const int CodeGeneratorRequest::kFileToGenerateFieldNumber; | 698 const int CodeGeneratorRequest::kFileToGenerateFieldNumber; |
178 const int CodeGeneratorRequest::kParameterFieldNumber; | 699 const int CodeGeneratorRequest::kParameterFieldNumber; |
179 const int CodeGeneratorRequest::kProtoFileFieldNumber; | 700 const int CodeGeneratorRequest::kProtoFileFieldNumber; |
| 701 const int CodeGeneratorRequest::kCompilerVersionFieldNumber; |
180 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 702 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
181 | 703 |
182 CodeGeneratorRequest::CodeGeneratorRequest() | 704 CodeGeneratorRequest::CodeGeneratorRequest() |
183 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 705 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 706 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 707 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); |
| 708 } |
184 SharedCtor(); | 709 SharedCtor(); |
185 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator
Request) | 710 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator
Request) |
186 } | 711 } |
187 | |
188 void CodeGeneratorRequest::InitAsDefaultInstance() { | |
189 } | |
190 | |
191 CodeGeneratorRequest::CodeGeneratorRequest(const CodeGeneratorRequest& from) | 712 CodeGeneratorRequest::CodeGeneratorRequest(const CodeGeneratorRequest& from) |
192 : ::google::protobuf::Message(), | 713 : ::google::protobuf::Message(), |
193 _internal_metadata_(NULL) { | 714 _internal_metadata_(NULL), |
194 SharedCtor(); | 715 _has_bits_(from._has_bits_), |
195 MergeFrom(from); | 716 _cached_size_(0), |
| 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 } |
196 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene
ratorRequest) | 729 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene
ratorRequest) |
197 } | 730 } |
198 | 731 |
199 void CodeGeneratorRequest::SharedCtor() { | 732 void CodeGeneratorRequest::SharedCtor() { |
200 ::google::protobuf::internal::GetEmptyString(); | |
201 _cached_size_ = 0; | 733 _cached_size_ = 0; |
202 parameter_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 734 parameter_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
203 ::memset(_has_bits_, 0, sizeof(_has_bits_)); | 735 compiler_version_ = NULL; |
204 } | 736 } |
205 | 737 |
206 CodeGeneratorRequest::~CodeGeneratorRequest() { | 738 CodeGeneratorRequest::~CodeGeneratorRequest() { |
207 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR
equest) | 739 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR
equest) |
208 SharedDtor(); | 740 SharedDtor(); |
209 } | 741 } |
210 | 742 |
211 void CodeGeneratorRequest::SharedDtor() { | 743 void CodeGeneratorRequest::SharedDtor() { |
212 parameter_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 744 parameter_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
213 if (this != default_instance_) { | 745 if (this != internal_default_instance()) { |
| 746 delete compiler_version_; |
214 } | 747 } |
215 } | 748 } |
216 | 749 |
217 void CodeGeneratorRequest::SetCachedSize(int size) const { | 750 void CodeGeneratorRequest::SetCachedSize(int size) const { |
218 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 751 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
219 _cached_size_ = size; | 752 _cached_size_ = size; |
220 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 753 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
221 } | 754 } |
222 const ::google::protobuf::Descriptor* CodeGeneratorRequest::descriptor() { | 755 const ::google::protobuf::Descriptor* CodeGeneratorRequest::descriptor() { |
223 protobuf_AssignDescriptorsOnce(); | 756 protobuf_AssignDescriptorsOnce(); |
224 return CodeGeneratorRequest_descriptor_; | 757 return file_level_metadata[1].descriptor; |
225 } | 758 } |
226 | 759 |
227 const CodeGeneratorRequest& CodeGeneratorRequest::default_instance() { | 760 const CodeGeneratorRequest& CodeGeneratorRequest::default_instance() { |
228 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2
fplugin_2eproto(); | 761 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); |
229 return *default_instance_; | 762 return *internal_default_instance(); |
230 } | 763 } |
231 | 764 |
232 CodeGeneratorRequest* CodeGeneratorRequest::default_instance_ = NULL; | |
233 | |
234 CodeGeneratorRequest* CodeGeneratorRequest::New(::google::protobuf::Arena* arena
) const { | 765 CodeGeneratorRequest* CodeGeneratorRequest::New(::google::protobuf::Arena* arena
) const { |
235 CodeGeneratorRequest* n = new CodeGeneratorRequest; | 766 CodeGeneratorRequest* n = new CodeGeneratorRequest; |
236 if (arena != NULL) { | 767 if (arena != NULL) { |
237 arena->Own(n); | 768 arena->Own(n); |
238 } | 769 } |
239 return n; | 770 return n; |
240 } | 771 } |
241 | 772 |
242 void CodeGeneratorRequest::Clear() { | 773 void CodeGeneratorRequest::Clear() { |
243 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGen
eratorRequest) | 774 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGen
eratorRequest) |
244 if (has_parameter()) { | |
245 parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | |
246 } | |
247 file_to_generate_.Clear(); | 775 file_to_generate_.Clear(); |
248 proto_file_.Clear(); | 776 proto_file_.Clear(); |
249 ::memset(_has_bits_, 0, sizeof(_has_bits_)); | 777 if (_has_bits_[0 / 32] & 3u) { |
250 if (_internal_metadata_.have_unknown_fields()) { | 778 if (has_parameter()) { |
251 mutable_unknown_fields()->Clear(); | 779 GOOGLE_DCHECK(!parameter_.IsDefault(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited())); |
| 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 } |
252 } | 786 } |
| 787 _has_bits_.Clear(); |
| 788 _internal_metadata_.Clear(); |
253 } | 789 } |
254 | 790 |
255 bool CodeGeneratorRequest::MergePartialFromCodedStream( | 791 bool CodeGeneratorRequest::MergePartialFromCodedStream( |
256 ::google::protobuf::io::CodedInputStream* input) { | 792 ::google::protobuf::io::CodedInputStream* input) { |
257 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 793 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
258 ::google::protobuf::uint32 tag; | 794 ::google::protobuf::uint32 tag; |
259 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator
Request) | 795 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator
Request) |
260 for (;;) { | 796 for (;;) { |
261 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); | 797 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); |
262 tag = p.first; | 798 tag = p.first; |
263 if (!p.second) goto handle_unusual; | 799 if (!p.second) goto handle_unusual; |
264 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 800 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
265 // repeated string file_to_generate = 1; | 801 // repeated string file_to_generate = 1; |
266 case 1: { | 802 case 1: { |
267 if (tag == 10) { | 803 if (tag == 10u) { |
268 parse_file_to_generate: | |
269 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 804 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
270 input, this->add_file_to_generate())); | 805 input, this->add_file_to_generate())); |
271 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 806 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
272 this->file_to_generate(this->file_to_generate_size() - 1).data(), | 807 this->file_to_generate(this->file_to_generate_size() - 1).data(), |
273 this->file_to_generate(this->file_to_generate_size() - 1).length(), | 808 this->file_to_generate(this->file_to_generate_size() - 1).length(), |
274 ::google::protobuf::internal::WireFormat::PARSE, | 809 ::google::protobuf::internal::WireFormat::PARSE, |
275 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate"); | 810 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate"); |
276 } else { | 811 } else { |
277 goto handle_unusual; | 812 goto handle_unusual; |
278 } | 813 } |
279 if (input->ExpectTag(10)) goto parse_file_to_generate; | |
280 if (input->ExpectTag(18)) goto parse_parameter; | |
281 break; | 814 break; |
282 } | 815 } |
283 | 816 |
284 // optional string parameter = 2; | 817 // optional string parameter = 2; |
285 case 2: { | 818 case 2: { |
286 if (tag == 18) { | 819 if (tag == 18u) { |
287 parse_parameter: | |
288 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 820 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
289 input, this->mutable_parameter())); | 821 input, this->mutable_parameter())); |
290 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 822 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
291 this->parameter().data(), this->parameter().length(), | 823 this->parameter().data(), this->parameter().length(), |
292 ::google::protobuf::internal::WireFormat::PARSE, | 824 ::google::protobuf::internal::WireFormat::PARSE, |
293 "google.protobuf.compiler.CodeGeneratorRequest.parameter"); | 825 "google.protobuf.compiler.CodeGeneratorRequest.parameter"); |
294 } else { | 826 } else { |
295 goto handle_unusual; | 827 goto handle_unusual; |
296 } | 828 } |
297 if (input->ExpectTag(122)) goto parse_proto_file; | 829 break; |
| 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 } |
298 break; | 840 break; |
299 } | 841 } |
300 | 842 |
301 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; | 843 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; |
302 case 15: { | 844 case 15: { |
303 if (tag == 122) { | 845 if (tag == 122u) { |
304 parse_proto_file: | |
305 DO_(input->IncrementRecursionDepth()); | 846 DO_(input->IncrementRecursionDepth()); |
306 parse_loop_proto_file: | |
307 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 847 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
308 input, add_proto_file())); | 848 input, add_proto_file())); |
309 } else { | 849 } else { |
310 goto handle_unusual; | 850 goto handle_unusual; |
311 } | 851 } |
312 if (input->ExpectTag(122)) goto parse_loop_proto_file; | |
313 input->UnsafeDecrementRecursionDepth(); | 852 input->UnsafeDecrementRecursionDepth(); |
314 if (input->ExpectAtEnd()) goto success; | |
315 break; | 853 break; |
316 } | 854 } |
317 | 855 |
318 default: { | 856 default: { |
319 handle_unusual: | 857 handle_unusual: |
320 if (tag == 0 || | 858 if (tag == 0 || |
321 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 859 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
322 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 860 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
323 goto success; | 861 goto success; |
324 } | 862 } |
(...skipping 28 matching lines...) Expand all Loading... |
353 // optional string parameter = 2; | 891 // optional string parameter = 2; |
354 if (has_parameter()) { | 892 if (has_parameter()) { |
355 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 893 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
356 this->parameter().data(), this->parameter().length(), | 894 this->parameter().data(), this->parameter().length(), |
357 ::google::protobuf::internal::WireFormat::SERIALIZE, | 895 ::google::protobuf::internal::WireFormat::SERIALIZE, |
358 "google.protobuf.compiler.CodeGeneratorRequest.parameter"); | 896 "google.protobuf.compiler.CodeGeneratorRequest.parameter"); |
359 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( | 897 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
360 2, this->parameter(), output); | 898 2, this->parameter(), output); |
361 } | 899 } |
362 | 900 |
| 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 |
363 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; | 907 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; |
364 for (unsigned int i = 0, n = this->proto_file_size(); i < n; i++) { | 908 for (unsigned int i = 0, n = this->proto_file_size(); i < n; i++) { |
365 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 909 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
366 15, this->proto_file(i), output); | 910 15, this->proto_file(i), output); |
367 } | 911 } |
368 | 912 |
369 if (_internal_metadata_.have_unknown_fields()) { | 913 if (_internal_metadata_.have_unknown_fields()) { |
370 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 914 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
371 unknown_fields(), output); | 915 unknown_fields(), output); |
372 } | 916 } |
373 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat
orRequest) | 917 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat
orRequest) |
374 } | 918 } |
375 | 919 |
376 ::google::protobuf::uint8* CodeGeneratorRequest::SerializeWithCachedSizesToArray
( | 920 ::google::protobuf::uint8* CodeGeneratorRequest::InternalSerializeWithCachedSize
sToArray( |
377 ::google::protobuf::uint8* target) const { | 921 bool deterministic, ::google::protobuf::uint8* target) const { |
| 922 (void)deterministic; // Unused |
378 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.
CodeGeneratorRequest) | 923 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.
CodeGeneratorRequest) |
379 // repeated string file_to_generate = 1; | 924 // repeated string file_to_generate = 1; |
380 for (int i = 0; i < this->file_to_generate_size(); i++) { | 925 for (int i = 0; i < this->file_to_generate_size(); i++) { |
381 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 926 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
382 this->file_to_generate(i).data(), this->file_to_generate(i).length(), | 927 this->file_to_generate(i).data(), this->file_to_generate(i).length(), |
383 ::google::protobuf::internal::WireFormat::SERIALIZE, | 928 ::google::protobuf::internal::WireFormat::SERIALIZE, |
384 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate"); | 929 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate"); |
385 target = ::google::protobuf::internal::WireFormatLite:: | 930 target = ::google::protobuf::internal::WireFormatLite:: |
386 WriteStringToArray(1, this->file_to_generate(i), target); | 931 WriteStringToArray(1, this->file_to_generate(i), target); |
387 } | 932 } |
388 | 933 |
389 // optional string parameter = 2; | 934 // optional string parameter = 2; |
390 if (has_parameter()) { | 935 if (has_parameter()) { |
391 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 936 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
392 this->parameter().data(), this->parameter().length(), | 937 this->parameter().data(), this->parameter().length(), |
393 ::google::protobuf::internal::WireFormat::SERIALIZE, | 938 ::google::protobuf::internal::WireFormat::SERIALIZE, |
394 "google.protobuf.compiler.CodeGeneratorRequest.parameter"); | 939 "google.protobuf.compiler.CodeGeneratorRequest.parameter"); |
395 target = | 940 target = |
396 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 941 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
397 2, this->parameter(), target); | 942 2, this->parameter(), target); |
398 } | 943 } |
399 | 944 |
| 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 |
400 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; | 952 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; |
401 for (unsigned int i = 0, n = this->proto_file_size(); i < n; i++) { | 953 for (unsigned int i = 0, n = this->proto_file_size(); i < n; i++) { |
402 target = ::google::protobuf::internal::WireFormatLite:: | 954 target = ::google::protobuf::internal::WireFormatLite:: |
403 WriteMessageNoVirtualToArray( | 955 InternalWriteMessageNoVirtualToArray( |
404 15, this->proto_file(i), target); | 956 15, this->proto_file(i), false, target); |
405 } | 957 } |
406 | 958 |
407 if (_internal_metadata_.have_unknown_fields()) { | 959 if (_internal_metadata_.have_unknown_fields()) { |
408 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 960 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
409 unknown_fields(), target); | 961 unknown_fields(), target); |
410 } | 962 } |
411 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Co
deGeneratorRequest) | 963 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Co
deGeneratorRequest) |
412 return target; | 964 return target; |
413 } | 965 } |
414 | 966 |
415 int CodeGeneratorRequest::ByteSize() const { | 967 size_t CodeGeneratorRequest::ByteSizeLong() const { |
416 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.Cod
eGeneratorRequest) | 968 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.Cod
eGeneratorRequest) |
417 int total_size = 0; | 969 size_t total_size = 0; |
418 | 970 |
419 // optional string parameter = 2; | 971 if (_internal_metadata_.have_unknown_fields()) { |
420 if (has_parameter()) { | 972 total_size += |
421 total_size += 1 + | 973 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
422 ::google::protobuf::internal::WireFormatLite::StringSize( | 974 unknown_fields()); |
423 this->parameter()); | |
424 } | 975 } |
425 | |
426 // repeated string file_to_generate = 1; | 976 // repeated string file_to_generate = 1; |
427 total_size += 1 * this->file_to_generate_size(); | 977 total_size += 1 * |
| 978 ::google::protobuf::internal::FromIntSize(this->file_to_generate_size()); |
428 for (int i = 0; i < this->file_to_generate_size(); i++) { | 979 for (int i = 0; i < this->file_to_generate_size(); i++) { |
429 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( | 980 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
430 this->file_to_generate(i)); | 981 this->file_to_generate(i)); |
431 } | 982 } |
432 | 983 |
433 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; | 984 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; |
434 total_size += 1 * this->proto_file_size(); | 985 { |
435 for (int i = 0; i < this->proto_file_size(); i++) { | 986 unsigned int count = this->proto_file_size(); |
436 total_size += | 987 total_size += 1UL * count; |
437 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 988 for (unsigned int i = 0; i < count; i++) { |
438 this->proto_file(i)); | 989 total_size += |
| 990 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 991 this->proto_file(i)); |
| 992 } |
439 } | 993 } |
440 | 994 |
441 if (_internal_metadata_.have_unknown_fields()) { | 995 if (_has_bits_[0 / 32] & 3u) { |
442 total_size += | 996 // optional string parameter = 2; |
443 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | 997 if (has_parameter()) { |
444 unknown_fields()); | 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 |
445 } | 1010 } |
| 1011 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
446 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 1012 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
447 _cached_size_ = total_size; | 1013 _cached_size_ = cached_size; |
448 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 1014 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
449 return total_size; | 1015 return total_size; |
450 } | 1016 } |
451 | 1017 |
452 void CodeGeneratorRequest::MergeFrom(const ::google::protobuf::Message& from) { | 1018 void CodeGeneratorRequest::MergeFrom(const ::google::protobuf::Message& from) { |
453 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compile
r.CodeGeneratorRequest) | 1019 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compile
r.CodeGeneratorRequest) |
454 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); | 1020 GOOGLE_DCHECK_NE(&from, this); |
455 const CodeGeneratorRequest* source = | 1021 const CodeGeneratorRequest* source = |
456 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe
quest>( | 1022 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe
quest>( |
457 &from); | 1023 &from); |
458 if (source == NULL) { | 1024 if (source == NULL) { |
459 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.c
ompiler.CodeGeneratorRequest) | 1025 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.c
ompiler.CodeGeneratorRequest) |
460 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 1026 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
461 } else { | 1027 } else { |
462 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.compiler.CodeGeneratorRequest) | 1028 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.compiler.CodeGeneratorRequest) |
463 MergeFrom(*source); | 1029 MergeFrom(*source); |
464 } | 1030 } |
465 } | 1031 } |
466 | 1032 |
467 void CodeGeneratorRequest::MergeFrom(const CodeGeneratorRequest& from) { | 1033 void CodeGeneratorRequest::MergeFrom(const CodeGeneratorRequest& from) { |
468 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.comp
iler.CodeGeneratorRequest) | 1034 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.comp
iler.CodeGeneratorRequest) |
469 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); | 1035 GOOGLE_DCHECK_NE(&from, this); |
| 1036 _internal_metadata_.MergeFrom(from._internal_metadata_); |
470 file_to_generate_.MergeFrom(from.file_to_generate_); | 1037 file_to_generate_.MergeFrom(from.file_to_generate_); |
471 proto_file_.MergeFrom(from.proto_file_); | 1038 proto_file_.MergeFrom(from.proto_file_); |
472 if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { | 1039 if (from._has_bits_[0 / 32] & 3u) { |
473 if (from.has_parameter()) { | 1040 if (from.has_parameter()) { |
474 set_has_parameter(); | 1041 set_has_parameter(); |
475 parameter_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), from.parameter_); | 1042 parameter_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), from.parameter_); |
476 } | 1043 } |
477 } | 1044 if (from.has_compiler_version()) { |
478 if (from._internal_metadata_.have_unknown_fields()) { | 1045 mutable_compiler_version()->::google::protobuf::compiler::Version::MergeFr
om(from.compiler_version()); |
479 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); | 1046 } |
480 } | 1047 } |
481 } | 1048 } |
482 | 1049 |
483 void CodeGeneratorRequest::CopyFrom(const ::google::protobuf::Message& from) { | 1050 void CodeGeneratorRequest::CopyFrom(const ::google::protobuf::Message& from) { |
484 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler
.CodeGeneratorRequest) | 1051 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler
.CodeGeneratorRequest) |
485 if (&from == this) return; | 1052 if (&from == this) return; |
486 Clear(); | 1053 Clear(); |
487 MergeFrom(from); | 1054 MergeFrom(from); |
488 } | 1055 } |
489 | 1056 |
490 void CodeGeneratorRequest::CopyFrom(const CodeGeneratorRequest& from) { | 1057 void CodeGeneratorRequest::CopyFrom(const CodeGeneratorRequest& from) { |
491 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compi
ler.CodeGeneratorRequest) | 1058 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compi
ler.CodeGeneratorRequest) |
492 if (&from == this) return; | 1059 if (&from == this) return; |
493 Clear(); | 1060 Clear(); |
494 MergeFrom(from); | 1061 MergeFrom(from); |
495 } | 1062 } |
496 | 1063 |
497 bool CodeGeneratorRequest::IsInitialized() const { | 1064 bool CodeGeneratorRequest::IsInitialized() const { |
498 | |
499 if (!::google::protobuf::internal::AllAreInitialized(this->proto_file())) retu
rn false; | 1065 if (!::google::protobuf::internal::AllAreInitialized(this->proto_file())) retu
rn false; |
500 return true; | 1066 return true; |
501 } | 1067 } |
502 | 1068 |
503 void CodeGeneratorRequest::Swap(CodeGeneratorRequest* other) { | 1069 void CodeGeneratorRequest::Swap(CodeGeneratorRequest* other) { |
504 if (other == this) return; | 1070 if (other == this) return; |
505 InternalSwap(other); | 1071 InternalSwap(other); |
506 } | 1072 } |
507 void CodeGeneratorRequest::InternalSwap(CodeGeneratorRequest* other) { | 1073 void CodeGeneratorRequest::InternalSwap(CodeGeneratorRequest* other) { |
508 file_to_generate_.UnsafeArenaSwap(&other->file_to_generate_); | 1074 file_to_generate_.UnsafeArenaSwap(&other->file_to_generate_); |
| 1075 proto_file_.UnsafeArenaSwap(&other->proto_file_); |
509 parameter_.Swap(&other->parameter_); | 1076 parameter_.Swap(&other->parameter_); |
510 proto_file_.UnsafeArenaSwap(&other->proto_file_); | 1077 std::swap(compiler_version_, other->compiler_version_); |
511 std::swap(_has_bits_[0], other->_has_bits_[0]); | 1078 std::swap(_has_bits_[0], other->_has_bits_[0]); |
512 _internal_metadata_.Swap(&other->_internal_metadata_); | 1079 _internal_metadata_.Swap(&other->_internal_metadata_); |
513 std::swap(_cached_size_, other->_cached_size_); | 1080 std::swap(_cached_size_, other->_cached_size_); |
514 } | 1081 } |
515 | 1082 |
516 ::google::protobuf::Metadata CodeGeneratorRequest::GetMetadata() const { | 1083 ::google::protobuf::Metadata CodeGeneratorRequest::GetMetadata() const { |
517 protobuf_AssignDescriptorsOnce(); | 1084 protobuf_AssignDescriptorsOnce(); |
518 ::google::protobuf::Metadata metadata; | 1085 return file_level_metadata[1]; |
519 metadata.descriptor = CodeGeneratorRequest_descriptor_; | |
520 metadata.reflection = CodeGeneratorRequest_reflection_; | |
521 return metadata; | |
522 } | 1086 } |
523 | 1087 |
524 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 1088 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
525 // CodeGeneratorRequest | 1089 // CodeGeneratorRequest |
526 | 1090 |
527 // repeated string file_to_generate = 1; | 1091 // repeated string file_to_generate = 1; |
528 int CodeGeneratorRequest::file_to_generate_size() const { | 1092 int CodeGeneratorRequest::file_to_generate_size() const { |
529 return file_to_generate_.size(); | 1093 return file_to_generate_.size(); |
530 } | 1094 } |
531 void CodeGeneratorRequest::clear_file_to_generate() { | 1095 void CodeGeneratorRequest::clear_file_to_generate() { |
532 file_to_generate_.Clear(); | 1096 file_to_generate_.Clear(); |
533 } | 1097 } |
534 const ::std::string& CodeGeneratorRequest::file_to_generate(int index) const { | 1098 const ::std::string& CodeGeneratorRequest::file_to_generate(int index) const { |
535 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
quest.file_to_generate) | 1099 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
quest.file_to_generate) |
536 return file_to_generate_.Get(index); | 1100 return file_to_generate_.Get(index); |
537 } | 1101 } |
538 ::std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) { | 1102 ::std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) { |
539 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat
orRequest.file_to_generate) | 1103 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat
orRequest.file_to_generate) |
540 return file_to_generate_.Mutable(index); | 1104 return file_to_generate_.Mutable(index); |
541 } | 1105 } |
542 void CodeGeneratorRequest::set_file_to_generate(int index, const ::std::string&
value) { | 1106 void CodeGeneratorRequest::set_file_to_generate(int index, const ::std::string&
value) { |
543 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
quest.file_to_generate) | 1107 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
quest.file_to_generate) |
544 file_to_generate_.Mutable(index)->assign(value); | 1108 file_to_generate_.Mutable(index)->assign(value); |
545 } | 1109 } |
546 void CodeGeneratorRequest::set_file_to_generate(int index, const char* value) { | 1110 void CodeGeneratorRequest::set_file_to_generate(int index, const char* value) { |
547 file_to_generate_.Mutable(index)->assign(value); | 1111 file_to_generate_.Mutable(index)->assign(value); |
548 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torRequest.file_to_generate) | 1112 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torRequest.file_to_generate) |
549 } | 1113 } |
550 void CodeGeneratorRequest::set_file_to_generate(int index, const char* value, s
ize_t size) { | 1114 void CodeGeneratorRequest::set_file_to_generate(int index, const char* value, si
ze_t size) { |
551 file_to_generate_.Mutable(index)->assign( | 1115 file_to_generate_.Mutable(index)->assign( |
552 reinterpret_cast<const char*>(value), size); | 1116 reinterpret_cast<const char*>(value), size); |
553 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorRequest.file_to_generate) | 1117 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorRequest.file_to_generate) |
554 } | 1118 } |
555 ::std::string* CodeGeneratorRequest::add_file_to_generate() { | 1119 ::std::string* CodeGeneratorRequest::add_file_to_generate() { |
556 // @@protoc_insertion_point(field_add_mutable:google.protobuf.compiler.CodeGen
eratorRequest.file_to_generate) | 1120 // @@protoc_insertion_point(field_add_mutable:google.protobuf.compiler.CodeGen
eratorRequest.file_to_generate) |
557 return file_to_generate_.Add(); | 1121 return file_to_generate_.Add(); |
558 } | 1122 } |
559 void CodeGeneratorRequest::add_file_to_generate(const ::std::string& value) { | 1123 void CodeGeneratorRequest::add_file_to_generate(const ::std::string& value) { |
560 file_to_generate_.Add()->assign(value); | 1124 file_to_generate_.Add()->assign(value); |
561 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRe
quest.file_to_generate) | 1125 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRe
quest.file_to_generate) |
562 } | 1126 } |
563 void CodeGeneratorRequest::add_file_to_generate(const char* value) { | 1127 void CodeGeneratorRequest::add_file_to_generate(const char* value) { |
564 file_to_generate_.Add()->assign(value); | 1128 file_to_generate_.Add()->assign(value); |
565 // @@protoc_insertion_point(field_add_char:google.protobuf.compiler.CodeGenera
torRequest.file_to_generate) | 1129 // @@protoc_insertion_point(field_add_char:google.protobuf.compiler.CodeGenera
torRequest.file_to_generate) |
566 } | 1130 } |
567 void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t size)
{ | 1131 void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t size)
{ |
568 file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size); | 1132 file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size); |
569 // @@protoc_insertion_point(field_add_pointer:google.protobuf.compiler.CodeGen
eratorRequest.file_to_generate) | 1133 // @@protoc_insertion_point(field_add_pointer:google.protobuf.compiler.CodeGen
eratorRequest.file_to_generate) |
570 } | 1134 } |
571 const ::google::protobuf::RepeatedPtrField< ::std::string>& | 1135 const ::google::protobuf::RepeatedPtrField< ::std::string>& |
572 CodeGeneratorRequest::file_to_generate() const { | 1136 CodeGeneratorRequest::file_to_generate() const { |
573 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR
equest.file_to_generate) | 1137 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR
equest.file_to_generate) |
574 return file_to_generate_; | 1138 return file_to_generate_; |
575 } | 1139 } |
576 ::google::protobuf::RepeatedPtrField< ::std::string>* | 1140 ::google::protobuf::RepeatedPtrField< ::std::string>* |
577 CodeGeneratorRequest::mutable_file_to_generate() { | 1141 CodeGeneratorRequest::mutable_file_to_generate() { |
578 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe
neratorRequest.file_to_generate) | 1142 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe
neratorRequest.file_to_generate) |
579 return &file_to_generate_; | 1143 return &file_to_generate_; |
580 } | 1144 } |
581 | 1145 |
582 // optional string parameter = 2; | 1146 // optional string parameter = 2; |
583 bool CodeGeneratorRequest::has_parameter() const { | 1147 bool CodeGeneratorRequest::has_parameter() const { |
584 return (_has_bits_[0] & 0x00000002u) != 0; | 1148 return (_has_bits_[0] & 0x00000001u) != 0; |
585 } | 1149 } |
586 void CodeGeneratorRequest::set_has_parameter() { | 1150 void CodeGeneratorRequest::set_has_parameter() { |
587 _has_bits_[0] |= 0x00000002u; | 1151 _has_bits_[0] |= 0x00000001u; |
588 } | 1152 } |
589 void CodeGeneratorRequest::clear_has_parameter() { | 1153 void CodeGeneratorRequest::clear_has_parameter() { |
590 _has_bits_[0] &= ~0x00000002u; | 1154 _has_bits_[0] &= ~0x00000001u; |
591 } | 1155 } |
592 void CodeGeneratorRequest::clear_parameter() { | 1156 void CodeGeneratorRequest::clear_parameter() { |
593 parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 1157 parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
594 clear_has_parameter(); | 1158 clear_has_parameter(); |
595 } | 1159 } |
596 const ::std::string& CodeGeneratorRequest::parameter() const { | 1160 const ::std::string& CodeGeneratorRequest::parameter() const { |
597 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
quest.parameter) | 1161 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
quest.parameter) |
598 return parameter_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 1162 return parameter_.GetNoArena(); |
599 } | 1163 } |
600 void CodeGeneratorRequest::set_parameter(const ::std::string& value) { | 1164 void CodeGeneratorRequest::set_parameter(const ::std::string& value) { |
601 set_has_parameter(); | 1165 set_has_parameter(); |
602 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); | 1166 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); |
603 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
quest.parameter) | 1167 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
quest.parameter) |
604 } | 1168 } |
605 void CodeGeneratorRequest::set_parameter(const char* value) { | 1169 #if LANG_CXX11 |
| 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) { |
606 set_has_parameter(); | 1178 set_has_parameter(); |
607 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); | 1179 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); |
608 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torRequest.parameter) | 1180 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torRequest.parameter) |
609 } | 1181 } |
610 void CodeGeneratorRequest::set_parameter(const char* value, size_t size) { | 1182 void CodeGeneratorRequest::set_parameter(const char* value, size_t size) { |
611 set_has_parameter(); | 1183 set_has_parameter(); |
612 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), | 1184 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), |
613 ::std::string(reinterpret_cast<const char*>(value), size)); | 1185 ::std::string(reinterpret_cast<const char*>(value), size)); |
614 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorRequest.parameter) | 1186 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorRequest.parameter) |
615 } | 1187 } |
616 ::std::string* CodeGeneratorRequest::mutable_parameter() { | 1188 ::std::string* CodeGeneratorRequest::mutable_parameter() { |
617 set_has_parameter(); | 1189 set_has_parameter(); |
618 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat
orRequest.parameter) | 1190 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat
orRequest.parameter) |
619 return parameter_.MutableNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 1191 return parameter_.MutableNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
620 } | 1192 } |
621 ::std::string* CodeGeneratorRequest::release_parameter() { | 1193 ::std::string* CodeGeneratorRequest::release_parameter() { |
622 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat
orRequest.parameter) | 1194 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat
orRequest.parameter) |
623 clear_has_parameter(); | 1195 clear_has_parameter(); |
624 return parameter_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 1196 return parameter_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
625 } | 1197 } |
626 void CodeGeneratorRequest::set_allocated_parameter(::std::string* parameter) { | 1198 void CodeGeneratorRequest::set_allocated_parameter(::std::string* parameter) { |
627 if (parameter != NULL) { | 1199 if (parameter != NULL) { |
628 set_has_parameter(); | 1200 set_has_parameter(); |
629 } else { | 1201 } else { |
630 clear_has_parameter(); | 1202 clear_has_parameter(); |
631 } | 1203 } |
632 parameter_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), parameter); | 1204 parameter_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), parameter); |
633 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG
eneratorRequest.parameter) | 1205 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG
eneratorRequest.parameter) |
634 } | 1206 } |
635 | 1207 |
636 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; | 1208 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; |
(...skipping 19 matching lines...) Expand all Loading... |
656 CodeGeneratorRequest::mutable_proto_file() { | 1228 CodeGeneratorRequest::mutable_proto_file() { |
657 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe
neratorRequest.proto_file) | 1229 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe
neratorRequest.proto_file) |
658 return &proto_file_; | 1230 return &proto_file_; |
659 } | 1231 } |
660 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorPr
oto >& | 1232 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorPr
oto >& |
661 CodeGeneratorRequest::proto_file() const { | 1233 CodeGeneratorRequest::proto_file() const { |
662 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR
equest.proto_file) | 1234 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR
equest.proto_file) |
663 return proto_file_; | 1235 return proto_file_; |
664 } | 1236 } |
665 | 1237 |
| 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 |
666 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 1283 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
667 | 1284 |
668 // =================================================================== | 1285 // =================================================================== |
669 | 1286 |
670 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 1287 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
671 const int CodeGeneratorResponse_File::kNameFieldNumber; | 1288 const int CodeGeneratorResponse_File::kNameFieldNumber; |
672 const int CodeGeneratorResponse_File::kInsertionPointFieldNumber; | 1289 const int CodeGeneratorResponse_File::kInsertionPointFieldNumber; |
673 const int CodeGeneratorResponse_File::kContentFieldNumber; | 1290 const int CodeGeneratorResponse_File::kContentFieldNumber; |
674 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 1291 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
675 | 1292 |
676 CodeGeneratorResponse_File::CodeGeneratorResponse_File() | 1293 CodeGeneratorResponse_File::CodeGeneratorResponse_File() |
677 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 1294 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 1295 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 1296 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); |
| 1297 } |
678 SharedCtor(); | 1298 SharedCtor(); |
679 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator
Response.File) | 1299 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator
Response.File) |
680 } | 1300 } |
681 | |
682 void CodeGeneratorResponse_File::InitAsDefaultInstance() { | |
683 } | |
684 | |
685 CodeGeneratorResponse_File::CodeGeneratorResponse_File(const CodeGeneratorRespon
se_File& from) | 1301 CodeGeneratorResponse_File::CodeGeneratorResponse_File(const CodeGeneratorRespon
se_File& from) |
686 : ::google::protobuf::Message(), | 1302 : ::google::protobuf::Message(), |
687 _internal_metadata_(NULL) { | 1303 _internal_metadata_(NULL), |
688 SharedCtor(); | 1304 _has_bits_(from._has_bits_), |
689 MergeFrom(from); | 1305 _cached_size_(0) { |
| 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 } |
690 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene
ratorResponse.File) | 1319 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene
ratorResponse.File) |
691 } | 1320 } |
692 | 1321 |
693 void CodeGeneratorResponse_File::SharedCtor() { | 1322 void CodeGeneratorResponse_File::SharedCtor() { |
694 ::google::protobuf::internal::GetEmptyString(); | |
695 _cached_size_ = 0; | 1323 _cached_size_ = 0; |
696 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | 1324 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); |
697 insertion_point_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 1325 insertion_point_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
698 content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 1326 content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
699 ::memset(_has_bits_, 0, sizeof(_has_bits_)); | |
700 } | 1327 } |
701 | 1328 |
702 CodeGeneratorResponse_File::~CodeGeneratorResponse_File() { | 1329 CodeGeneratorResponse_File::~CodeGeneratorResponse_File() { |
703 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR
esponse.File) | 1330 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR
esponse.File) |
704 SharedDtor(); | 1331 SharedDtor(); |
705 } | 1332 } |
706 | 1333 |
707 void CodeGeneratorResponse_File::SharedDtor() { | 1334 void CodeGeneratorResponse_File::SharedDtor() { |
708 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); | 1335 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); |
709 insertion_point_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); | 1336 insertion_point_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); |
710 content_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); | 1337 content_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
711 if (this != default_instance_) { | |
712 } | |
713 } | 1338 } |
714 | 1339 |
715 void CodeGeneratorResponse_File::SetCachedSize(int size) const { | 1340 void CodeGeneratorResponse_File::SetCachedSize(int size) const { |
716 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 1341 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
717 _cached_size_ = size; | 1342 _cached_size_ = size; |
718 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 1343 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
719 } | 1344 } |
720 const ::google::protobuf::Descriptor* CodeGeneratorResponse_File::descriptor() { | 1345 const ::google::protobuf::Descriptor* CodeGeneratorResponse_File::descriptor() { |
721 protobuf_AssignDescriptorsOnce(); | 1346 protobuf_AssignDescriptorsOnce(); |
722 return CodeGeneratorResponse_File_descriptor_; | 1347 return file_level_metadata[2].descriptor; |
723 } | 1348 } |
724 | 1349 |
725 const CodeGeneratorResponse_File& CodeGeneratorResponse_File::default_instance()
{ | 1350 const CodeGeneratorResponse_File& CodeGeneratorResponse_File::default_instance()
{ |
726 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2
fplugin_2eproto(); | 1351 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); |
727 return *default_instance_; | 1352 return *internal_default_instance(); |
728 } | 1353 } |
729 | 1354 |
730 CodeGeneratorResponse_File* CodeGeneratorResponse_File::default_instance_ = NULL
; | |
731 | |
732 CodeGeneratorResponse_File* CodeGeneratorResponse_File::New(::google::protobuf::
Arena* arena) const { | 1355 CodeGeneratorResponse_File* CodeGeneratorResponse_File::New(::google::protobuf::
Arena* arena) const { |
733 CodeGeneratorResponse_File* n = new CodeGeneratorResponse_File; | 1356 CodeGeneratorResponse_File* n = new CodeGeneratorResponse_File; |
734 if (arena != NULL) { | 1357 if (arena != NULL) { |
735 arena->Own(n); | 1358 arena->Own(n); |
736 } | 1359 } |
737 return n; | 1360 return n; |
738 } | 1361 } |
739 | 1362 |
740 void CodeGeneratorResponse_File::Clear() { | 1363 void CodeGeneratorResponse_File::Clear() { |
741 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGen
eratorResponse.File) | 1364 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGen
eratorResponse.File) |
742 if (_has_bits_[0 / 32] & 7u) { | 1365 if (_has_bits_[0 / 32] & 7u) { |
743 if (has_name()) { | 1366 if (has_name()) { |
744 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | 1367 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited())); |
| 1368 (*name_.UnsafeRawStringPointer())->clear(); |
745 } | 1369 } |
746 if (has_insertion_point()) { | 1370 if (has_insertion_point()) { |
747 insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); | 1371 GOOGLE_DCHECK(!insertion_point_.IsDefault(&::google::protobuf::internal::G
etEmptyStringAlreadyInited())); |
| 1372 (*insertion_point_.UnsafeRawStringPointer())->clear(); |
748 } | 1373 } |
749 if (has_content()) { | 1374 if (has_content()) { |
750 content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 1375 GOOGLE_DCHECK(!content_.IsDefault(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited())); |
| 1376 (*content_.UnsafeRawStringPointer())->clear(); |
751 } | 1377 } |
752 } | 1378 } |
753 ::memset(_has_bits_, 0, sizeof(_has_bits_)); | 1379 _has_bits_.Clear(); |
754 if (_internal_metadata_.have_unknown_fields()) { | 1380 _internal_metadata_.Clear(); |
755 mutable_unknown_fields()->Clear(); | |
756 } | |
757 } | 1381 } |
758 | 1382 |
759 bool CodeGeneratorResponse_File::MergePartialFromCodedStream( | 1383 bool CodeGeneratorResponse_File::MergePartialFromCodedStream( |
760 ::google::protobuf::io::CodedInputStream* input) { | 1384 ::google::protobuf::io::CodedInputStream* input) { |
761 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 1385 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
762 ::google::protobuf::uint32 tag; | 1386 ::google::protobuf::uint32 tag; |
763 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator
Response.File) | 1387 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator
Response.File) |
764 for (;;) { | 1388 for (;;) { |
765 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); | 1389 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); |
766 tag = p.first; | 1390 tag = p.first; |
767 if (!p.second) goto handle_unusual; | 1391 if (!p.second) goto handle_unusual; |
768 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 1392 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
769 // optional string name = 1; | 1393 // optional string name = 1; |
770 case 1: { | 1394 case 1: { |
771 if (tag == 10) { | 1395 if (tag == 10u) { |
772 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 1396 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
773 input, this->mutable_name())); | 1397 input, this->mutable_name())); |
774 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 1398 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
775 this->name().data(), this->name().length(), | 1399 this->name().data(), this->name().length(), |
776 ::google::protobuf::internal::WireFormat::PARSE, | 1400 ::google::protobuf::internal::WireFormat::PARSE, |
777 "google.protobuf.compiler.CodeGeneratorResponse.File.name"); | 1401 "google.protobuf.compiler.CodeGeneratorResponse.File.name"); |
778 } else { | 1402 } else { |
779 goto handle_unusual; | 1403 goto handle_unusual; |
780 } | 1404 } |
781 if (input->ExpectTag(18)) goto parse_insertion_point; | |
782 break; | 1405 break; |
783 } | 1406 } |
784 | 1407 |
785 // optional string insertion_point = 2; | 1408 // optional string insertion_point = 2; |
786 case 2: { | 1409 case 2: { |
787 if (tag == 18) { | 1410 if (tag == 18u) { |
788 parse_insertion_point: | |
789 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 1411 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
790 input, this->mutable_insertion_point())); | 1412 input, this->mutable_insertion_point())); |
791 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 1413 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
792 this->insertion_point().data(), this->insertion_point().length(), | 1414 this->insertion_point().data(), this->insertion_point().length(), |
793 ::google::protobuf::internal::WireFormat::PARSE, | 1415 ::google::protobuf::internal::WireFormat::PARSE, |
794 "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point
"); | 1416 "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point
"); |
795 } else { | 1417 } else { |
796 goto handle_unusual; | 1418 goto handle_unusual; |
797 } | 1419 } |
798 if (input->ExpectTag(122)) goto parse_content; | |
799 break; | 1420 break; |
800 } | 1421 } |
801 | 1422 |
802 // optional string content = 15; | 1423 // optional string content = 15; |
803 case 15: { | 1424 case 15: { |
804 if (tag == 122) { | 1425 if (tag == 122u) { |
805 parse_content: | |
806 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 1426 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
807 input, this->mutable_content())); | 1427 input, this->mutable_content())); |
808 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 1428 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
809 this->content().data(), this->content().length(), | 1429 this->content().data(), this->content().length(), |
810 ::google::protobuf::internal::WireFormat::PARSE, | 1430 ::google::protobuf::internal::WireFormat::PARSE, |
811 "google.protobuf.compiler.CodeGeneratorResponse.File.content"); | 1431 "google.protobuf.compiler.CodeGeneratorResponse.File.content"); |
812 } else { | 1432 } else { |
813 goto handle_unusual; | 1433 goto handle_unusual; |
814 } | 1434 } |
815 if (input->ExpectAtEnd()) goto success; | |
816 break; | 1435 break; |
817 } | 1436 } |
818 | 1437 |
819 default: { | 1438 default: { |
820 handle_unusual: | 1439 handle_unusual: |
821 if (tag == 0 || | 1440 if (tag == 0 || |
822 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1441 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
823 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 1442 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
824 goto success; | 1443 goto success; |
825 } | 1444 } |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 15, this->content(), output); | 1490 15, this->content(), output); |
872 } | 1491 } |
873 | 1492 |
874 if (_internal_metadata_.have_unknown_fields()) { | 1493 if (_internal_metadata_.have_unknown_fields()) { |
875 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 1494 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
876 unknown_fields(), output); | 1495 unknown_fields(), output); |
877 } | 1496 } |
878 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat
orResponse.File) | 1497 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat
orResponse.File) |
879 } | 1498 } |
880 | 1499 |
881 ::google::protobuf::uint8* CodeGeneratorResponse_File::SerializeWithCachedSizesT
oArray( | 1500 ::google::protobuf::uint8* CodeGeneratorResponse_File::InternalSerializeWithCach
edSizesToArray( |
882 ::google::protobuf::uint8* target) const { | 1501 bool deterministic, ::google::protobuf::uint8* target) const { |
| 1502 (void)deterministic; // Unused |
883 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.
CodeGeneratorResponse.File) | 1503 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.
CodeGeneratorResponse.File) |
884 // optional string name = 1; | 1504 // optional string name = 1; |
885 if (has_name()) { | 1505 if (has_name()) { |
886 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 1506 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
887 this->name().data(), this->name().length(), | 1507 this->name().data(), this->name().length(), |
888 ::google::protobuf::internal::WireFormat::SERIALIZE, | 1508 ::google::protobuf::internal::WireFormat::SERIALIZE, |
889 "google.protobuf.compiler.CodeGeneratorResponse.File.name"); | 1509 "google.protobuf.compiler.CodeGeneratorResponse.File.name"); |
890 target = | 1510 target = |
891 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 1511 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
892 1, this->name(), target); | 1512 1, this->name(), target); |
(...skipping 22 matching lines...) Expand all Loading... |
915 } | 1535 } |
916 | 1536 |
917 if (_internal_metadata_.have_unknown_fields()) { | 1537 if (_internal_metadata_.have_unknown_fields()) { |
918 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 1538 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
919 unknown_fields(), target); | 1539 unknown_fields(), target); |
920 } | 1540 } |
921 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Co
deGeneratorResponse.File) | 1541 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Co
deGeneratorResponse.File) |
922 return target; | 1542 return target; |
923 } | 1543 } |
924 | 1544 |
925 int CodeGeneratorResponse_File::ByteSize() const { | 1545 size_t CodeGeneratorResponse_File::ByteSizeLong() const { |
926 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.Cod
eGeneratorResponse.File) | 1546 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.Cod
eGeneratorResponse.File) |
927 int total_size = 0; | 1547 size_t total_size = 0; |
928 | 1548 |
| 1549 if (_internal_metadata_.have_unknown_fields()) { |
| 1550 total_size += |
| 1551 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1552 unknown_fields()); |
| 1553 } |
929 if (_has_bits_[0 / 32] & 7u) { | 1554 if (_has_bits_[0 / 32] & 7u) { |
930 // optional string name = 1; | 1555 // optional string name = 1; |
931 if (has_name()) { | 1556 if (has_name()) { |
932 total_size += 1 + | 1557 total_size += 1 + |
933 ::google::protobuf::internal::WireFormatLite::StringSize( | 1558 ::google::protobuf::internal::WireFormatLite::StringSize( |
934 this->name()); | 1559 this->name()); |
935 } | 1560 } |
936 | 1561 |
937 // optional string insertion_point = 2; | 1562 // optional string insertion_point = 2; |
938 if (has_insertion_point()) { | 1563 if (has_insertion_point()) { |
939 total_size += 1 + | 1564 total_size += 1 + |
940 ::google::protobuf::internal::WireFormatLite::StringSize( | 1565 ::google::protobuf::internal::WireFormatLite::StringSize( |
941 this->insertion_point()); | 1566 this->insertion_point()); |
942 } | 1567 } |
943 | 1568 |
944 // optional string content = 15; | 1569 // optional string content = 15; |
945 if (has_content()) { | 1570 if (has_content()) { |
946 total_size += 1 + | 1571 total_size += 1 + |
947 ::google::protobuf::internal::WireFormatLite::StringSize( | 1572 ::google::protobuf::internal::WireFormatLite::StringSize( |
948 this->content()); | 1573 this->content()); |
949 } | 1574 } |
950 | 1575 |
951 } | 1576 } |
952 if (_internal_metadata_.have_unknown_fields()) { | 1577 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
953 total_size += | |
954 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
955 unknown_fields()); | |
956 } | |
957 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 1578 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
958 _cached_size_ = total_size; | 1579 _cached_size_ = cached_size; |
959 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 1580 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
960 return total_size; | 1581 return total_size; |
961 } | 1582 } |
962 | 1583 |
963 void CodeGeneratorResponse_File::MergeFrom(const ::google::protobuf::Message& fr
om) { | 1584 void CodeGeneratorResponse_File::MergeFrom(const ::google::protobuf::Message& fr
om) { |
964 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compile
r.CodeGeneratorResponse.File) | 1585 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compile
r.CodeGeneratorResponse.File) |
965 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); | 1586 GOOGLE_DCHECK_NE(&from, this); |
966 const CodeGeneratorResponse_File* source = | 1587 const CodeGeneratorResponse_File* source = |
967 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe
sponse_File>( | 1588 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe
sponse_File>( |
968 &from); | 1589 &from); |
969 if (source == NULL) { | 1590 if (source == NULL) { |
970 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.c
ompiler.CodeGeneratorResponse.File) | 1591 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.c
ompiler.CodeGeneratorResponse.File) |
971 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 1592 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
972 } else { | 1593 } else { |
973 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.compiler.CodeGeneratorResponse.File) | 1594 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.compiler.CodeGeneratorResponse.File) |
974 MergeFrom(*source); | 1595 MergeFrom(*source); |
975 } | 1596 } |
976 } | 1597 } |
977 | 1598 |
978 void CodeGeneratorResponse_File::MergeFrom(const CodeGeneratorResponse_File& fro
m) { | 1599 void CodeGeneratorResponse_File::MergeFrom(const CodeGeneratorResponse_File& fro
m) { |
979 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.comp
iler.CodeGeneratorResponse.File) | 1600 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.comp
iler.CodeGeneratorResponse.File) |
980 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); | 1601 GOOGLE_DCHECK_NE(&from, this); |
981 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { | 1602 _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1603 if (from._has_bits_[0 / 32] & 7u) { |
982 if (from.has_name()) { | 1604 if (from.has_name()) { |
983 set_has_name(); | 1605 set_has_name(); |
984 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); | 1606 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); |
985 } | 1607 } |
986 if (from.has_insertion_point()) { | 1608 if (from.has_insertion_point()) { |
987 set_has_insertion_point(); | 1609 set_has_insertion_point(); |
988 insertion_point_.AssignWithDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited(), from.insertion_point_); | 1610 insertion_point_.AssignWithDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited(), from.insertion_point_); |
989 } | 1611 } |
990 if (from.has_content()) { | 1612 if (from.has_content()) { |
991 set_has_content(); | 1613 set_has_content(); |
992 content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), from.content_); | 1614 content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), from.content_); |
993 } | 1615 } |
994 } | 1616 } |
995 if (from._internal_metadata_.have_unknown_fields()) { | |
996 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); | |
997 } | |
998 } | 1617 } |
999 | 1618 |
1000 void CodeGeneratorResponse_File::CopyFrom(const ::google::protobuf::Message& fro
m) { | 1619 void CodeGeneratorResponse_File::CopyFrom(const ::google::protobuf::Message& fro
m) { |
1001 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler
.CodeGeneratorResponse.File) | 1620 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler
.CodeGeneratorResponse.File) |
1002 if (&from == this) return; | 1621 if (&from == this) return; |
1003 Clear(); | 1622 Clear(); |
1004 MergeFrom(from); | 1623 MergeFrom(from); |
1005 } | 1624 } |
1006 | 1625 |
1007 void CodeGeneratorResponse_File::CopyFrom(const CodeGeneratorResponse_File& from
) { | 1626 void CodeGeneratorResponse_File::CopyFrom(const CodeGeneratorResponse_File& from
) { |
1008 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compi
ler.CodeGeneratorResponse.File) | 1627 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compi
ler.CodeGeneratorResponse.File) |
1009 if (&from == this) return; | 1628 if (&from == this) return; |
1010 Clear(); | 1629 Clear(); |
1011 MergeFrom(from); | 1630 MergeFrom(from); |
1012 } | 1631 } |
1013 | 1632 |
1014 bool CodeGeneratorResponse_File::IsInitialized() const { | 1633 bool CodeGeneratorResponse_File::IsInitialized() const { |
1015 | |
1016 return true; | 1634 return true; |
1017 } | 1635 } |
1018 | 1636 |
1019 void CodeGeneratorResponse_File::Swap(CodeGeneratorResponse_File* other) { | 1637 void CodeGeneratorResponse_File::Swap(CodeGeneratorResponse_File* other) { |
1020 if (other == this) return; | 1638 if (other == this) return; |
1021 InternalSwap(other); | 1639 InternalSwap(other); |
1022 } | 1640 } |
1023 void CodeGeneratorResponse_File::InternalSwap(CodeGeneratorResponse_File* other)
{ | 1641 void CodeGeneratorResponse_File::InternalSwap(CodeGeneratorResponse_File* other)
{ |
1024 name_.Swap(&other->name_); | 1642 name_.Swap(&other->name_); |
1025 insertion_point_.Swap(&other->insertion_point_); | 1643 insertion_point_.Swap(&other->insertion_point_); |
1026 content_.Swap(&other->content_); | 1644 content_.Swap(&other->content_); |
1027 std::swap(_has_bits_[0], other->_has_bits_[0]); | 1645 std::swap(_has_bits_[0], other->_has_bits_[0]); |
1028 _internal_metadata_.Swap(&other->_internal_metadata_); | 1646 _internal_metadata_.Swap(&other->_internal_metadata_); |
1029 std::swap(_cached_size_, other->_cached_size_); | 1647 std::swap(_cached_size_, other->_cached_size_); |
1030 } | 1648 } |
1031 | 1649 |
1032 ::google::protobuf::Metadata CodeGeneratorResponse_File::GetMetadata() const { | 1650 ::google::protobuf::Metadata CodeGeneratorResponse_File::GetMetadata() const { |
1033 protobuf_AssignDescriptorsOnce(); | 1651 protobuf_AssignDescriptorsOnce(); |
1034 ::google::protobuf::Metadata metadata; | 1652 return file_level_metadata[2]; |
1035 metadata.descriptor = CodeGeneratorResponse_File_descriptor_; | 1653 } |
1036 metadata.reflection = CodeGeneratorResponse_File_reflection_; | 1654 |
1037 return metadata; | 1655 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
1038 } | 1656 // CodeGeneratorResponse_File |
1039 | 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 // =================================================================== |
1042 | 1847 |
1043 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 1848 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1044 const int CodeGeneratorResponse::kErrorFieldNumber; | 1849 const int CodeGeneratorResponse::kErrorFieldNumber; |
1045 const int CodeGeneratorResponse::kFileFieldNumber; | 1850 const int CodeGeneratorResponse::kFileFieldNumber; |
1046 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 1851 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1047 | 1852 |
1048 CodeGeneratorResponse::CodeGeneratorResponse() | 1853 CodeGeneratorResponse::CodeGeneratorResponse() |
1049 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 1854 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 1855 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 1856 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); |
| 1857 } |
1050 SharedCtor(); | 1858 SharedCtor(); |
1051 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator
Response) | 1859 // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGenerator
Response) |
1052 } | 1860 } |
1053 | |
1054 void CodeGeneratorResponse::InitAsDefaultInstance() { | |
1055 } | |
1056 | |
1057 CodeGeneratorResponse::CodeGeneratorResponse(const CodeGeneratorResponse& from) | 1861 CodeGeneratorResponse::CodeGeneratorResponse(const CodeGeneratorResponse& from) |
1058 : ::google::protobuf::Message(), | 1862 : ::google::protobuf::Message(), |
1059 _internal_metadata_(NULL) { | 1863 _internal_metadata_(NULL), |
1060 SharedCtor(); | 1864 _has_bits_(from._has_bits_), |
1061 MergeFrom(from); | 1865 _cached_size_(0), |
| 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 } |
1062 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene
ratorResponse) | 1872 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGene
ratorResponse) |
1063 } | 1873 } |
1064 | 1874 |
1065 void CodeGeneratorResponse::SharedCtor() { | 1875 void CodeGeneratorResponse::SharedCtor() { |
1066 ::google::protobuf::internal::GetEmptyString(); | |
1067 _cached_size_ = 0; | 1876 _cached_size_ = 0; |
1068 error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); | 1877 error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
1069 ::memset(_has_bits_, 0, sizeof(_has_bits_)); | |
1070 } | 1878 } |
1071 | 1879 |
1072 CodeGeneratorResponse::~CodeGeneratorResponse() { | 1880 CodeGeneratorResponse::~CodeGeneratorResponse() { |
1073 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR
esponse) | 1881 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorR
esponse) |
1074 SharedDtor(); | 1882 SharedDtor(); |
1075 } | 1883 } |
1076 | 1884 |
1077 void CodeGeneratorResponse::SharedDtor() { | 1885 void CodeGeneratorResponse::SharedDtor() { |
1078 error_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed()); | 1886 error_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed()); |
1079 if (this != default_instance_) { | |
1080 } | |
1081 } | 1887 } |
1082 | 1888 |
1083 void CodeGeneratorResponse::SetCachedSize(int size) const { | 1889 void CodeGeneratorResponse::SetCachedSize(int size) const { |
1084 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 1890 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1085 _cached_size_ = size; | 1891 _cached_size_ = size; |
1086 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 1892 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1087 } | 1893 } |
1088 const ::google::protobuf::Descriptor* CodeGeneratorResponse::descriptor() { | 1894 const ::google::protobuf::Descriptor* CodeGeneratorResponse::descriptor() { |
1089 protobuf_AssignDescriptorsOnce(); | 1895 protobuf_AssignDescriptorsOnce(); |
1090 return CodeGeneratorResponse_descriptor_; | 1896 return file_level_metadata[3].descriptor; |
1091 } | 1897 } |
1092 | 1898 |
1093 const CodeGeneratorResponse& CodeGeneratorResponse::default_instance() { | 1899 const CodeGeneratorResponse& CodeGeneratorResponse::default_instance() { |
1094 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fcompiler_2
fplugin_2eproto(); | 1900 protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); |
1095 return *default_instance_; | 1901 return *internal_default_instance(); |
1096 } | 1902 } |
1097 | 1903 |
1098 CodeGeneratorResponse* CodeGeneratorResponse::default_instance_ = NULL; | |
1099 | |
1100 CodeGeneratorResponse* CodeGeneratorResponse::New(::google::protobuf::Arena* are
na) const { | 1904 CodeGeneratorResponse* CodeGeneratorResponse::New(::google::protobuf::Arena* are
na) const { |
1101 CodeGeneratorResponse* n = new CodeGeneratorResponse; | 1905 CodeGeneratorResponse* n = new CodeGeneratorResponse; |
1102 if (arena != NULL) { | 1906 if (arena != NULL) { |
1103 arena->Own(n); | 1907 arena->Own(n); |
1104 } | 1908 } |
1105 return n; | 1909 return n; |
1106 } | 1910 } |
1107 | 1911 |
1108 void CodeGeneratorResponse::Clear() { | 1912 void CodeGeneratorResponse::Clear() { |
1109 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGen
eratorResponse) | 1913 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGen
eratorResponse) |
| 1914 file_.Clear(); |
1110 if (has_error()) { | 1915 if (has_error()) { |
1111 error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 1916 GOOGLE_DCHECK(!error_.IsDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited())); |
| 1917 (*error_.UnsafeRawStringPointer())->clear(); |
1112 } | 1918 } |
1113 file_.Clear(); | 1919 _has_bits_.Clear(); |
1114 ::memset(_has_bits_, 0, sizeof(_has_bits_)); | 1920 _internal_metadata_.Clear(); |
1115 if (_internal_metadata_.have_unknown_fields()) { | |
1116 mutable_unknown_fields()->Clear(); | |
1117 } | |
1118 } | 1921 } |
1119 | 1922 |
1120 bool CodeGeneratorResponse::MergePartialFromCodedStream( | 1923 bool CodeGeneratorResponse::MergePartialFromCodedStream( |
1121 ::google::protobuf::io::CodedInputStream* input) { | 1924 ::google::protobuf::io::CodedInputStream* input) { |
1122 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 1925 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1123 ::google::protobuf::uint32 tag; | 1926 ::google::protobuf::uint32 tag; |
1124 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator
Response) | 1927 // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGenerator
Response) |
1125 for (;;) { | 1928 for (;;) { |
1126 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); | 1929 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); |
1127 tag = p.first; | 1930 tag = p.first; |
1128 if (!p.second) goto handle_unusual; | 1931 if (!p.second) goto handle_unusual; |
1129 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 1932 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
1130 // optional string error = 1; | 1933 // optional string error = 1; |
1131 case 1: { | 1934 case 1: { |
1132 if (tag == 10) { | 1935 if (tag == 10u) { |
1133 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 1936 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
1134 input, this->mutable_error())); | 1937 input, this->mutable_error())); |
1135 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 1938 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1136 this->error().data(), this->error().length(), | 1939 this->error().data(), this->error().length(), |
1137 ::google::protobuf::internal::WireFormat::PARSE, | 1940 ::google::protobuf::internal::WireFormat::PARSE, |
1138 "google.protobuf.compiler.CodeGeneratorResponse.error"); | 1941 "google.protobuf.compiler.CodeGeneratorResponse.error"); |
1139 } else { | 1942 } else { |
1140 goto handle_unusual; | 1943 goto handle_unusual; |
1141 } | 1944 } |
1142 if (input->ExpectTag(122)) goto parse_file; | |
1143 break; | 1945 break; |
1144 } | 1946 } |
1145 | 1947 |
1146 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15
; | 1948 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15
; |
1147 case 15: { | 1949 case 15: { |
1148 if (tag == 122) { | 1950 if (tag == 122u) { |
1149 parse_file: | |
1150 DO_(input->IncrementRecursionDepth()); | 1951 DO_(input->IncrementRecursionDepth()); |
1151 parse_loop_file: | |
1152 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 1952 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
1153 input, add_file())); | 1953 input, add_file())); |
1154 } else { | 1954 } else { |
1155 goto handle_unusual; | 1955 goto handle_unusual; |
1156 } | 1956 } |
1157 if (input->ExpectTag(122)) goto parse_loop_file; | |
1158 input->UnsafeDecrementRecursionDepth(); | 1957 input->UnsafeDecrementRecursionDepth(); |
1159 if (input->ExpectAtEnd()) goto success; | |
1160 break; | 1958 break; |
1161 } | 1959 } |
1162 | 1960 |
1163 default: { | 1961 default: { |
1164 handle_unusual: | 1962 handle_unusual: |
1165 if (tag == 0 || | 1963 if (tag == 0 || |
1166 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1964 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
1167 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 1965 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
1168 goto success; | 1966 goto success; |
1169 } | 1967 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1201 15, this->file(i), output); | 1999 15, this->file(i), output); |
1202 } | 2000 } |
1203 | 2001 |
1204 if (_internal_metadata_.have_unknown_fields()) { | 2002 if (_internal_metadata_.have_unknown_fields()) { |
1205 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 2003 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1206 unknown_fields(), output); | 2004 unknown_fields(), output); |
1207 } | 2005 } |
1208 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat
orResponse) | 2006 // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGenerat
orResponse) |
1209 } | 2007 } |
1210 | 2008 |
1211 ::google::protobuf::uint8* CodeGeneratorResponse::SerializeWithCachedSizesToArra
y( | 2009 ::google::protobuf::uint8* CodeGeneratorResponse::InternalSerializeWithCachedSiz
esToArray( |
1212 ::google::protobuf::uint8* target) const { | 2010 bool deterministic, ::google::protobuf::uint8* target) const { |
| 2011 (void)deterministic; // Unused |
1213 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.
CodeGeneratorResponse) | 2012 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.
CodeGeneratorResponse) |
1214 // optional string error = 1; | 2013 // optional string error = 1; |
1215 if (has_error()) { | 2014 if (has_error()) { |
1216 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 2015 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1217 this->error().data(), this->error().length(), | 2016 this->error().data(), this->error().length(), |
1218 ::google::protobuf::internal::WireFormat::SERIALIZE, | 2017 ::google::protobuf::internal::WireFormat::SERIALIZE, |
1219 "google.protobuf.compiler.CodeGeneratorResponse.error"); | 2018 "google.protobuf.compiler.CodeGeneratorResponse.error"); |
1220 target = | 2019 target = |
1221 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 2020 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
1222 1, this->error(), target); | 2021 1, this->error(), target); |
1223 } | 2022 } |
1224 | 2023 |
1225 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; | 2024 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
1226 for (unsigned int i = 0, n = this->file_size(); i < n; i++) { | 2025 for (unsigned int i = 0, n = this->file_size(); i < n; i++) { |
1227 target = ::google::protobuf::internal::WireFormatLite:: | 2026 target = ::google::protobuf::internal::WireFormatLite:: |
1228 WriteMessageNoVirtualToArray( | 2027 InternalWriteMessageNoVirtualToArray( |
1229 15, this->file(i), target); | 2028 15, this->file(i), false, target); |
1230 } | 2029 } |
1231 | 2030 |
1232 if (_internal_metadata_.have_unknown_fields()) { | 2031 if (_internal_metadata_.have_unknown_fields()) { |
1233 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 2032 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
1234 unknown_fields(), target); | 2033 unknown_fields(), target); |
1235 } | 2034 } |
1236 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Co
deGeneratorResponse) | 2035 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Co
deGeneratorResponse) |
1237 return target; | 2036 return target; |
1238 } | 2037 } |
1239 | 2038 |
1240 int CodeGeneratorResponse::ByteSize() const { | 2039 size_t CodeGeneratorResponse::ByteSizeLong() const { |
1241 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.Cod
eGeneratorResponse) | 2040 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.Cod
eGeneratorResponse) |
1242 int total_size = 0; | 2041 size_t 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 } |
1243 | 2058 |
1244 // optional string error = 1; | 2059 // optional string error = 1; |
1245 if (has_error()) { | 2060 if (has_error()) { |
1246 total_size += 1 + | 2061 total_size += 1 + |
1247 ::google::protobuf::internal::WireFormatLite::StringSize( | 2062 ::google::protobuf::internal::WireFormatLite::StringSize( |
1248 this->error()); | 2063 this->error()); |
1249 } | 2064 } |
1250 | 2065 |
1251 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; | 2066 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
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 } | |
1264 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 2067 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1265 _cached_size_ = total_size; | 2068 _cached_size_ = cached_size; |
1266 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 2069 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1267 return total_size; | 2070 return total_size; |
1268 } | 2071 } |
1269 | 2072 |
1270 void CodeGeneratorResponse::MergeFrom(const ::google::protobuf::Message& from) { | 2073 void CodeGeneratorResponse::MergeFrom(const ::google::protobuf::Message& from) { |
1271 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compile
r.CodeGeneratorResponse) | 2074 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compile
r.CodeGeneratorResponse) |
1272 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); | 2075 GOOGLE_DCHECK_NE(&from, this); |
1273 const CodeGeneratorResponse* source = | 2076 const CodeGeneratorResponse* source = |
1274 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe
sponse>( | 2077 ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRe
sponse>( |
1275 &from); | 2078 &from); |
1276 if (source == NULL) { | 2079 if (source == NULL) { |
1277 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.c
ompiler.CodeGeneratorResponse) | 2080 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.c
ompiler.CodeGeneratorResponse) |
1278 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 2081 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1279 } else { | 2082 } else { |
1280 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.compiler.CodeGeneratorResponse) | 2083 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.compiler.CodeGeneratorResponse) |
1281 MergeFrom(*source); | 2084 MergeFrom(*source); |
1282 } | 2085 } |
1283 } | 2086 } |
1284 | 2087 |
1285 void CodeGeneratorResponse::MergeFrom(const CodeGeneratorResponse& from) { | 2088 void CodeGeneratorResponse::MergeFrom(const CodeGeneratorResponse& from) { |
1286 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.comp
iler.CodeGeneratorResponse) | 2089 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.comp
iler.CodeGeneratorResponse) |
1287 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); | 2090 GOOGLE_DCHECK_NE(&from, this); |
| 2091 _internal_metadata_.MergeFrom(from._internal_metadata_); |
1288 file_.MergeFrom(from.file_); | 2092 file_.MergeFrom(from.file_); |
1289 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { | 2093 if (from.has_error()) { |
1290 if (from.has_error()) { | 2094 set_has_error(); |
1291 set_has_error(); | 2095 error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlread
yInited(), from.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()); | |
1297 } | 2096 } |
1298 } | 2097 } |
1299 | 2098 |
1300 void CodeGeneratorResponse::CopyFrom(const ::google::protobuf::Message& from) { | 2099 void CodeGeneratorResponse::CopyFrom(const ::google::protobuf::Message& from) { |
1301 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler
.CodeGeneratorResponse) | 2100 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler
.CodeGeneratorResponse) |
1302 if (&from == this) return; | 2101 if (&from == this) return; |
1303 Clear(); | 2102 Clear(); |
1304 MergeFrom(from); | 2103 MergeFrom(from); |
1305 } | 2104 } |
1306 | 2105 |
1307 void CodeGeneratorResponse::CopyFrom(const CodeGeneratorResponse& from) { | 2106 void CodeGeneratorResponse::CopyFrom(const CodeGeneratorResponse& from) { |
1308 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compi
ler.CodeGeneratorResponse) | 2107 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compi
ler.CodeGeneratorResponse) |
1309 if (&from == this) return; | 2108 if (&from == this) return; |
1310 Clear(); | 2109 Clear(); |
1311 MergeFrom(from); | 2110 MergeFrom(from); |
1312 } | 2111 } |
1313 | 2112 |
1314 bool CodeGeneratorResponse::IsInitialized() const { | 2113 bool CodeGeneratorResponse::IsInitialized() const { |
1315 | |
1316 return true; | 2114 return true; |
1317 } | 2115 } |
1318 | 2116 |
1319 void CodeGeneratorResponse::Swap(CodeGeneratorResponse* other) { | 2117 void CodeGeneratorResponse::Swap(CodeGeneratorResponse* other) { |
1320 if (other == this) return; | 2118 if (other == this) return; |
1321 InternalSwap(other); | 2119 InternalSwap(other); |
1322 } | 2120 } |
1323 void CodeGeneratorResponse::InternalSwap(CodeGeneratorResponse* other) { | 2121 void CodeGeneratorResponse::InternalSwap(CodeGeneratorResponse* other) { |
| 2122 file_.UnsafeArenaSwap(&other->file_); |
1324 error_.Swap(&other->error_); | 2123 error_.Swap(&other->error_); |
1325 file_.UnsafeArenaSwap(&other->file_); | |
1326 std::swap(_has_bits_[0], other->_has_bits_[0]); | 2124 std::swap(_has_bits_[0], other->_has_bits_[0]); |
1327 _internal_metadata_.Swap(&other->_internal_metadata_); | 2125 _internal_metadata_.Swap(&other->_internal_metadata_); |
1328 std::swap(_cached_size_, other->_cached_size_); | 2126 std::swap(_cached_size_, other->_cached_size_); |
1329 } | 2127 } |
1330 | 2128 |
1331 ::google::protobuf::Metadata CodeGeneratorResponse::GetMetadata() const { | 2129 ::google::protobuf::Metadata CodeGeneratorResponse::GetMetadata() const { |
1332 protobuf_AssignDescriptorsOnce(); | 2130 protobuf_AssignDescriptorsOnce(); |
1333 ::google::protobuf::Metadata metadata; | 2131 return file_level_metadata[3]; |
1334 metadata.descriptor = CodeGeneratorResponse_descriptor_; | |
1335 metadata.reflection = CodeGeneratorResponse_reflection_; | |
1336 return metadata; | |
1337 } | 2132 } |
1338 | 2133 |
1339 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 2134 #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 | |
1506 // CodeGeneratorResponse | 2135 // CodeGeneratorResponse |
1507 | 2136 |
1508 // optional string error = 1; | 2137 // optional string error = 1; |
1509 bool CodeGeneratorResponse::has_error() const { | 2138 bool CodeGeneratorResponse::has_error() const { |
1510 return (_has_bits_[0] & 0x00000001u) != 0; | 2139 return (_has_bits_[0] & 0x00000001u) != 0; |
1511 } | 2140 } |
1512 void CodeGeneratorResponse::set_has_error() { | 2141 void CodeGeneratorResponse::set_has_error() { |
1513 _has_bits_[0] |= 0x00000001u; | 2142 _has_bits_[0] |= 0x00000001u; |
1514 } | 2143 } |
1515 void CodeGeneratorResponse::clear_has_error() { | 2144 void CodeGeneratorResponse::clear_has_error() { |
1516 _has_bits_[0] &= ~0x00000001u; | 2145 _has_bits_[0] &= ~0x00000001u; |
1517 } | 2146 } |
1518 void CodeGeneratorResponse::clear_error() { | 2147 void CodeGeneratorResponse::clear_error() { |
1519 error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); | 2148 error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); |
1520 clear_has_error(); | 2149 clear_has_error(); |
1521 } | 2150 } |
1522 const ::std::string& CodeGeneratorResponse::error() const { | 2151 const ::std::string& CodeGeneratorResponse::error() const { |
1523 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.error) | 2152 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.error) |
1524 return error_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited()); | 2153 return error_.GetNoArena(); |
1525 } | 2154 } |
1526 void CodeGeneratorResponse::set_error(const ::std::string& value) { | 2155 void CodeGeneratorResponse::set_error(const ::std::string& value) { |
1527 set_has_error(); | 2156 set_has_error(); |
1528 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, value); | 2157 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, value); |
1529 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.error) | 2158 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.error) |
1530 } | 2159 } |
1531 void CodeGeneratorResponse::set_error(const char* value) { | 2160 #if LANG_CXX11 |
| 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) { |
1532 set_has_error(); | 2169 set_has_error(); |
1533 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, ::std::string(value)); | 2170 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, ::std::string(value)); |
1534 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.error) | 2171 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.error) |
1535 } | 2172 } |
1536 void CodeGeneratorResponse::set_error(const char* value, size_t size) { | 2173 void CodeGeneratorResponse::set_error(const char* value, size_t size) { |
1537 set_has_error(); | 2174 set_has_error(); |
1538 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, | 2175 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, |
1539 ::std::string(reinterpret_cast<const char*>(value), size)); | 2176 ::std::string(reinterpret_cast<const char*>(value), size)); |
1540 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.error) | 2177 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.error) |
1541 } | 2178 } |
1542 ::std::string* CodeGeneratorResponse::mutable_error() { | 2179 ::std::string* CodeGeneratorResponse::mutable_error() { |
1543 set_has_error(); | 2180 set_has_error(); |
1544 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat
orResponse.error) | 2181 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat
orResponse.error) |
1545 return error_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 2182 return error_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
1546 } | 2183 } |
1547 ::std::string* CodeGeneratorResponse::release_error() { | 2184 ::std::string* CodeGeneratorResponse::release_error() { |
1548 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat
orResponse.error) | 2185 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat
orResponse.error) |
1549 clear_has_error(); | 2186 clear_has_error(); |
1550 return error_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 2187 return error_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
1551 } | 2188 } |
1552 void CodeGeneratorResponse::set_allocated_error(::std::string* error) { | 2189 void CodeGeneratorResponse::set_allocated_error(::std::string* error) { |
1553 if (error != NULL) { | 2190 if (error != NULL) { |
1554 set_has_error(); | 2191 set_has_error(); |
1555 } else { | 2192 } else { |
1556 clear_has_error(); | 2193 clear_has_error(); |
1557 } | 2194 } |
1558 error_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited(), error); | 2195 error_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited(), error); |
1559 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG
eneratorResponse.error) | 2196 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG
eneratorResponse.error) |
1560 } | 2197 } |
1561 | 2198 |
1562 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; | 2199 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
(...skipping 28 matching lines...) Expand all Loading... |
1591 | 2228 |
1592 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 2229 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
1593 | 2230 |
1594 // @@protoc_insertion_point(namespace_scope) | 2231 // @@protoc_insertion_point(namespace_scope) |
1595 | 2232 |
1596 } // namespace compiler | 2233 } // namespace compiler |
1597 } // namespace protobuf | 2234 } // namespace protobuf |
1598 } // namespace google | 2235 } // namespace google |
1599 | 2236 |
1600 // @@protoc_insertion_point(global_scope) | 2237 // @@protoc_insertion_point(global_scope) |
OLD | NEW |