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