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

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

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Generated by the protocol buffer compiler. DO NOT EDIT! 1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/api.proto 2 // source: google/protobuf/api.proto
3 3
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include <google/protobuf/api.pb.h> 5 #include <google/protobuf/api.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 class ApiDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyCo nstructed<Api> {};
23 ApiDefaultTypeInternal _Api_default_instance_;
24 class MethodDefaultTypeInternal : public ::google::protobuf::internal::Explicitl yConstructed<Method> {};
25 MethodDefaultTypeInternal _Method_default_instance_;
26 class MixinDefaultTypeInternal : public ::google::protobuf::internal::Explicitly Constructed<Mixin> {};
27 MixinDefaultTypeInternal _Mixin_default_instance_;
22 28
23 namespace { 29 namespace {
24 30
25 const ::google::protobuf::Descriptor* Api_descriptor_ = NULL; 31 ::google::protobuf::Metadata file_level_metadata[3];
26 const ::google::protobuf::internal::GeneratedMessageReflection*
27 Api_reflection_ = NULL;
28 const ::google::protobuf::Descriptor* Method_descriptor_ = NULL;
29 const ::google::protobuf::internal::GeneratedMessageReflection*
30 Method_reflection_ = NULL;
31 const ::google::protobuf::Descriptor* Mixin_descriptor_ = NULL;
32 const ::google::protobuf::internal::GeneratedMessageReflection*
33 Mixin_reflection_ = NULL;
34 32
35 } // namespace 33 } // namespace
36 34
37 35
38 void protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto() { 36 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fapi_2epro to() GOOGLE_ATTRIBUTE_COLD;
39 protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto(); 37 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fapi_2epro to() {
40 const ::google::protobuf::FileDescriptor* file = 38 static const ::google::protobuf::uint32 offsets[] = {
41 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( 39 ~0u, // no _has_bits_
42 "google/protobuf/api.proto"); 40 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, _internal_metadata_),
43 GOOGLE_CHECK(file != NULL); 41 ~0u, // no _extensions_
44 Api_descriptor_ = file->message_type(0); 42 ~0u, // no _oneof_case_
45 static const int Api_offsets_[7] = {
46 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, name_), 43 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, name_),
47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, methods_), 44 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, methods_),
48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, options_), 45 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, options_),
49 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, version_), 46 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, version_),
50 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, source_context_), 47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, source_context_),
51 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, mixins_), 48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, mixins_),
52 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, syntax_), 49 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, syntax_),
53 }; 50 ~0u, // no _has_bits_
54 Api_reflection_ = 51 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, _internal_metadata_),
55 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 52 ~0u, // no _extensions_
56 Api_descriptor_, 53 ~0u, // no _oneof_case_
57 Api::default_instance_,
58 Api_offsets_,
59 -1,
60 -1,
61 -1,
62 sizeof(Api),
63 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, _internal_metadata_),
64 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, _is_default_instance_) );
65 Method_descriptor_ = file->message_type(1);
66 static const int Method_offsets_[7] = {
67 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, name_), 54 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, name_),
68 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, request_type_url_), 55 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, request_type_url_),
69 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, request_streaming_), 56 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, request_streaming_),
70 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, response_type_url_), 57 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, response_type_url_),
71 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, response_streaming_), 58 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, response_streaming_),
72 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, options_), 59 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, options_),
73 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, syntax_), 60 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, syntax_),
74 }; 61 ~0u, // no _has_bits_
75 Method_reflection_ = 62 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mixin, _internal_metadata_),
76 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 63 ~0u, // no _extensions_
77 Method_descriptor_, 64 ~0u, // no _oneof_case_
78 Method::default_instance_,
79 Method_offsets_,
80 -1,
81 -1,
82 -1,
83 sizeof(Method),
84 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, _internal_metadata_ ),
85 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, _is_default_instanc e_));
86 Mixin_descriptor_ = file->message_type(2);
87 static const int Mixin_offsets_[2] = {
88 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mixin, name_), 65 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mixin, name_),
89 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mixin, root_), 66 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mixin, root_),
90 }; 67 };
91 Mixin_reflection_ = 68 return offsets;
92 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection(
93 Mixin_descriptor_,
94 Mixin::default_instance_,
95 Mixin_offsets_,
96 -1,
97 -1,
98 -1,
99 sizeof(Mixin),
100 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mixin, _internal_metadata_) ,
101 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mixin, _is_default_instance _));
102 } 69 }
103 70
71 static const ::google::protobuf::internal::MigrationSchema schemas[] = {
72 { 0, -1, sizeof(Api)},
73 { 11, -1, sizeof(Method)},
74 { 22, -1, sizeof(Mixin)},
75 };
76
77 static const ::google::protobuf::internal::DefaultInstanceData file_default_inst ances[] = {
78 {reinterpret_cast<const ::google::protobuf::Message*>(&_Api_default_instance_) , NULL},
79 {reinterpret_cast<const ::google::protobuf::Message*>(&_Method_default_instanc e_), NULL},
80 {reinterpret_cast<const ::google::protobuf::Message*>(&_Mixin_default_instance _), NULL},
81 };
82
104 namespace { 83 namespace {
105 84
106 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); 85 void protobuf_AssignDescriptors() {
107 inline void protobuf_AssignDescriptorsOnce() { 86 protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto();
108 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, 87 ::google::protobuf::MessageFactory* factory = NULL;
109 &protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto); 88 AssignDescriptors(
89 "google/protobuf/api.proto", schemas, file_default_instances, protobuf_Off sets_google_2fprotobuf_2fapi_2eproto(), factory,
90 file_level_metadata, NULL, NULL);
110 } 91 }
111 92
93 void protobuf_AssignDescriptorsOnce() {
94 static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
95 ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
96 }
97
98 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
112 void protobuf_RegisterTypes(const ::std::string&) { 99 void protobuf_RegisterTypes(const ::std::string&) {
113 protobuf_AssignDescriptorsOnce(); 100 protobuf_AssignDescriptorsOnce();
114 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 101 ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
115 Api_descriptor_, &Api::default_instance());
116 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
117 Method_descriptor_, &Method::default_instance());
118 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
119 Mixin_descriptor_, &Mixin::default_instance());
120 } 102 }
121 103
122 } // namespace 104 } // namespace
123 105
124 void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto() { 106 void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto() {
125 delete Api::default_instance_; 107 _Api_default_instance_.Shutdown();
126 delete Api_reflection_; 108 delete file_level_metadata[0].reflection;
127 delete Method::default_instance_; 109 _Method_default_instance_.Shutdown();
128 delete Method_reflection_; 110 delete file_level_metadata[1].reflection;
129 delete Mixin::default_instance_; 111 _Mixin_default_instance_.Shutdown();
130 delete Mixin_reflection_; 112 delete file_level_metadata[2].reflection;
131 } 113 }
132 114
133 void protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto() { 115 void protobuf_InitDefaults_google_2fprotobuf_2fapi_2eproto_impl() {
134 static bool already_here = false;
135 if (already_here) return;
136 already_here = true;
137 GOOGLE_PROTOBUF_VERIFY_VERSION; 116 GOOGLE_PROTOBUF_VERIFY_VERSION;
138 117
118 ::google::protobuf::protobuf_InitDefaults_google_2fprotobuf_2fsource_5fcontext _2eproto();
119 ::google::protobuf::protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto();
120 ::google::protobuf::internal::InitProtobufDefaults();
121 _Api_default_instance_.DefaultConstruct();
122 _Method_default_instance_.DefaultConstruct();
123 _Mixin_default_instance_.DefaultConstruct();
124 _Api_default_instance_.get_mutable()->source_context_ = const_cast< ::google:: protobuf::SourceContext*>(
125 ::google::protobuf::SourceContext::internal_default_instance());
126 }
127
128 void protobuf_InitDefaults_google_2fprotobuf_2fapi_2eproto() {
129 static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
130 ::google::protobuf::GoogleOnceInit(&once, &protobuf_InitDefaults_google_2fprot obuf_2fapi_2eproto_impl);
131 }
132 void protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto_impl() {
133 protobuf_InitDefaults_google_2fprotobuf_2fapi_2eproto();
134 static const char descriptor[] = {
135 "\n\031google/protobuf/api.proto\022\017google.prot"
136 "obuf\032$google/protobuf/source_context.pro"
137 "to\032\032google/protobuf/type.proto\"\201\002\n\003Api\022\014"
138 "\n\004name\030\001 \001(\t\022(\n\007methods\030\002 \003(\0132\027.googl e.p"
139 "rotobuf.Method\022(\n\007options\030\003 \003(\0132\027.google"
140 ".protobuf.Option\022\017\n\007version\030\004 \001(\t\0226\n\016sou"
141 "rce_context\030\005 \001(\0132\036.google.protobuf.Sour"
142 "ceContext\022&\n\006mixins\030\006 \003(\0132\026.google.proto"
143 "buf.Mixin\022\'\n\006syntax\030\007 \001(\0162\027.google.proto"
144 "buf.Syntax\"\325\001\n\006Method\022\014\n\004name\030\001 \001(\t\022\03 0\n\020r"
145 "equest_type_url\030\002 \001(\t\022\031\n\021request_streami"
146 "ng\030\003 \001(\010\022\031\n\021response_type_url\030\004 \001(\t\022\0 32\n\022r"
147 "esponse_streaming\030\005 \001(\010\022(\n\007options\030\006 \003(\013"
148 "2\027.google.protobuf.Option\022\'\n\006syntax\030\007 \001("
149 "\0162\027.google.protobuf.Syntax\"#\n\005Mixin\022\014\n\004n"
150 "ame\030\001 \001(\t\022\014\n\004root\030\002 \001(\tBu\n\023com.google.p r"
151 "otobufB\010ApiProtoP\001Z+google.golang.org/ge"
152 "nproto/protobuf/api;api\242\002\003GPB\252\002\036Google.P"
153 "rotobuf.WellKnownTypesb\006proto3"
154 };
155 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
156 descriptor, 750);
157 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
158 "google/protobuf/api.proto", &protobuf_RegisterTypes);
139 ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2epr oto(); 159 ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2epr oto();
140 ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto(); 160 ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto();
141 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
142 "\n\031google/protobuf/api.proto\022\017google.prot"
143 "obuf\032$google/protobuf/source_context.pro"
144 "to\032\032google/protobuf/type.proto\"\201\002\n\003Api\022\014"
145 "\n\004name\030\001 \001(\t\022(\n\007methods\030\002 \003(\0132\027.google. p"
146 "rotobuf.Method\022(\n\007options\030\003 \003(\0132\027.google"
147 ".protobuf.Option\022\017\n\007version\030\004 \001(\t\0226\n\016sou"
148 "rce_context\030\005 \001(\0132\036.google.protobuf.Sour"
149 "ceContext\022&\n\006mixins\030\006 \003(\0132\026.google.proto"
150 "buf.Mixin\022\'\n\006syntax\030\007 \001(\0162\027.google.proto"
151 "buf.Syntax\"\325\001\n\006Method\022\014\n\004name\030\001 \001(\t\022\030\ n\020r"
152 "equest_type_url\030\002 \001(\t\022\031\n\021request_streami"
153 "ng\030\003 \001(\010\022\031\n\021response_type_url\030\004 \001(\t\022\032 \n\022r"
154 "esponse_streaming\030\005 \001(\010\022(\n\007options\030\006 \003(\013"
155 "2\027.google.protobuf.Option\022\'\n\006syntax\030\007 \001("
156 "\0162\027.google.protobuf.Syntax\"#\n\005Mixin\022\014\n\004n"
157 "ame\030\001 \001(\t\022\014\n\004root\030\002 \001(\tBK\n\023com.google.pr"
158 "otobufB\010ApiProtoP\001\240\001\001\242\002\003GPB\252\002\036Google.Pro"
159 "tobuf.WellKnownTypesb\006proto3", 708);
160 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
161 "google/protobuf/api.proto", &protobuf_RegisterTypes);
162 Api::default_instance_ = new Api();
163 Method::default_instance_ = new Method();
164 Mixin::default_instance_ = new Mixin();
165 Api::default_instance_->InitAsDefaultInstance();
166 Method::default_instance_->InitAsDefaultInstance();
167 Mixin::default_instance_->InitAsDefaultInstance();
168 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto buf_2fapi_2eproto); 161 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto buf_2fapi_2eproto);
169 } 162 }
170 163
164 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto_on ce_);
165 void protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto() {
166 ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_google_2fprotobuf_2fapi_2 eproto_once_,
167 &protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto_impl);
168 }
171 // Force AddDescriptors() to be called at static initialization time. 169 // Force AddDescriptors() to be called at static initialization time.
172 struct StaticDescriptorInitializer_google_2fprotobuf_2fapi_2eproto { 170 struct StaticDescriptorInitializer_google_2fprotobuf_2fapi_2eproto {
173 StaticDescriptorInitializer_google_2fprotobuf_2fapi_2eproto() { 171 StaticDescriptorInitializer_google_2fprotobuf_2fapi_2eproto() {
174 protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto(); 172 protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto();
175 } 173 }
176 } static_descriptor_initializer_google_2fprotobuf_2fapi_2eproto_; 174 } static_descriptor_initializer_google_2fprotobuf_2fapi_2eproto_;
177 175
178 namespace {
179
180 static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD;
181 static void MergeFromFail(int line) {
182 GOOGLE_CHECK(false) << __FILE__ << ":" << line;
183 }
184
185 } // namespace
186
187
188 // =================================================================== 176 // ===================================================================
189 177
190 #if !defined(_MSC_VER) || _MSC_VER >= 1900 178 #if !defined(_MSC_VER) || _MSC_VER >= 1900
191 const int Api::kNameFieldNumber; 179 const int Api::kNameFieldNumber;
192 const int Api::kMethodsFieldNumber; 180 const int Api::kMethodsFieldNumber;
193 const int Api::kOptionsFieldNumber; 181 const int Api::kOptionsFieldNumber;
194 const int Api::kVersionFieldNumber; 182 const int Api::kVersionFieldNumber;
195 const int Api::kSourceContextFieldNumber; 183 const int Api::kSourceContextFieldNumber;
196 const int Api::kMixinsFieldNumber; 184 const int Api::kMixinsFieldNumber;
197 const int Api::kSyntaxFieldNumber; 185 const int Api::kSyntaxFieldNumber;
198 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 186 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
199 187
200 Api::Api() 188 Api::Api()
201 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 189 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
190 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
191 protobuf_InitDefaults_google_2fprotobuf_2fapi_2eproto();
192 }
202 SharedCtor(); 193 SharedCtor();
203 // @@protoc_insertion_point(constructor:google.protobuf.Api) 194 // @@protoc_insertion_point(constructor:google.protobuf.Api)
204 } 195 }
205
206 void Api::InitAsDefaultInstance() {
207 _is_default_instance_ = true;
208 source_context_ = const_cast< ::google::protobuf::SourceContext*>(&::google::p rotobuf::SourceContext::default_instance());
209 }
210
211 Api::Api(const Api& from) 196 Api::Api(const Api& from)
212 : ::google::protobuf::Message(), 197 : ::google::protobuf::Message(),
213 _internal_metadata_(NULL) { 198 _internal_metadata_(NULL),
214 SharedCtor(); 199 methods_(from.methods_),
215 MergeFrom(from); 200 options_(from.options_),
201 mixins_(from.mixins_),
202 _cached_size_(0) {
203 _internal_metadata_.MergeFrom(from._internal_metadata_);
204 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
205 if (from.name().size() > 0) {
206 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
207 }
208 version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited());
209 if (from.version().size() > 0) {
210 version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), from.version_);
211 }
212 if (from.has_source_context()) {
213 source_context_ = new ::google::protobuf::SourceContext(*from.source_context _);
214 } else {
215 source_context_ = NULL;
216 }
217 syntax_ = from.syntax_;
216 // @@protoc_insertion_point(copy_constructor:google.protobuf.Api) 218 // @@protoc_insertion_point(copy_constructor:google.protobuf.Api)
217 } 219 }
218 220
219 void Api::SharedCtor() { 221 void Api::SharedCtor() {
220 _is_default_instance_ = false;
221 ::google::protobuf::internal::GetEmptyString();
222 _cached_size_ = 0;
223 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 222 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
224 version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 223 version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited());
225 source_context_ = NULL; 224 ::memset(&source_context_, 0, reinterpret_cast<char*>(&syntax_) -
226 syntax_ = 0; 225 reinterpret_cast<char*>(&source_context_) + sizeof(syntax_));
226 _cached_size_ = 0;
227 } 227 }
228 228
229 Api::~Api() { 229 Api::~Api() {
230 // @@protoc_insertion_point(destructor:google.protobuf.Api) 230 // @@protoc_insertion_point(destructor:google.protobuf.Api)
231 SharedDtor(); 231 SharedDtor();
232 } 232 }
233 233
234 void Api::SharedDtor() { 234 void Api::SharedDtor() {
235 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 235 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
236 version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 236 version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited());
237 if (this != default_instance_) { 237 if (this != internal_default_instance()) {
238 delete source_context_; 238 delete source_context_;
239 } 239 }
240 } 240 }
241 241
242 void Api::SetCachedSize(int size) const { 242 void Api::SetCachedSize(int size) const {
243 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 243 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
244 _cached_size_ = size; 244 _cached_size_ = size;
245 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 245 GOOGLE_SAFE_CONCURRENT_WRITES_END();
246 } 246 }
247 const ::google::protobuf::Descriptor* Api::descriptor() { 247 const ::google::protobuf::Descriptor* Api::descriptor() {
248 protobuf_AssignDescriptorsOnce(); 248 protobuf_AssignDescriptorsOnce();
249 return Api_descriptor_; 249 return file_level_metadata[0].descriptor;
250 } 250 }
251 251
252 const Api& Api::default_instance() { 252 const Api& Api::default_instance() {
253 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fapi_2eprot o(); 253 protobuf_InitDefaults_google_2fprotobuf_2fapi_2eproto();
254 return *default_instance_; 254 return *internal_default_instance();
255 } 255 }
256 256
257 Api* Api::default_instance_ = NULL;
258
259 Api* Api::New(::google::protobuf::Arena* arena) const { 257 Api* Api::New(::google::protobuf::Arena* arena) const {
260 Api* n = new Api; 258 Api* n = new Api;
261 if (arena != NULL) { 259 if (arena != NULL) {
262 arena->Own(n); 260 arena->Own(n);
263 } 261 }
264 return n; 262 return n;
265 } 263 }
266 264
267 void Api::Clear() { 265 void Api::Clear() {
268 // @@protoc_insertion_point(message_clear_start:google.protobuf.Api) 266 // @@protoc_insertion_point(message_clear_start:google.protobuf.Api)
269 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
270 version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
271 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_cont ext_;
272 source_context_ = NULL;
273 syntax_ = 0;
274 methods_.Clear(); 267 methods_.Clear();
275 options_.Clear(); 268 options_.Clear();
276 mixins_.Clear(); 269 mixins_.Clear();
270 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
271 version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
272 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) {
273 delete source_context_;
274 }
275 source_context_ = NULL;
276 syntax_ = 0;
277 } 277 }
278 278
279 bool Api::MergePartialFromCodedStream( 279 bool Api::MergePartialFromCodedStream(
280 ::google::protobuf::io::CodedInputStream* input) { 280 ::google::protobuf::io::CodedInputStream* input) {
281 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 281 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
282 ::google::protobuf::uint32 tag; 282 ::google::protobuf::uint32 tag;
283 // @@protoc_insertion_point(parse_start:google.protobuf.Api) 283 // @@protoc_insertion_point(parse_start:google.protobuf.Api)
284 for (;;) { 284 for (;;) {
285 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 285 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
286 tag = p.first; 286 tag = p.first;
287 if (!p.second) goto handle_unusual; 287 if (!p.second) goto handle_unusual;
288 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 288 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
289 // optional string name = 1; 289 // string name = 1;
290 case 1: { 290 case 1: {
291 if (tag == 10) { 291 if (tag == 10u) {
292 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 292 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
293 input, this->mutable_name())); 293 input, this->mutable_name()));
294 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 294 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
295 this->name().data(), this->name().length(), 295 this->name().data(), this->name().length(),
296 ::google::protobuf::internal::WireFormatLite::PARSE, 296 ::google::protobuf::internal::WireFormatLite::PARSE,
297 "google.protobuf.Api.name")); 297 "google.protobuf.Api.name"));
298 } else { 298 } else {
299 goto handle_unusual; 299 goto handle_unusual;
300 } 300 }
301 if (input->ExpectTag(18)) goto parse_methods;
302 break; 301 break;
303 } 302 }
304 303
305 // repeated .google.protobuf.Method methods = 2; 304 // repeated .google.protobuf.Method methods = 2;
306 case 2: { 305 case 2: {
307 if (tag == 18) { 306 if (tag == 18u) {
308 parse_methods:
309 DO_(input->IncrementRecursionDepth()); 307 DO_(input->IncrementRecursionDepth());
310 parse_loop_methods:
311 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 308 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
312 input, add_methods())); 309 input, add_methods()));
313 } else { 310 } else {
314 goto handle_unusual; 311 goto handle_unusual;
315 } 312 }
316 if (input->ExpectTag(18)) goto parse_loop_methods;
317 if (input->ExpectTag(26)) goto parse_loop_options;
318 input->UnsafeDecrementRecursionDepth(); 313 input->UnsafeDecrementRecursionDepth();
319 break; 314 break;
320 } 315 }
321 316
322 // repeated .google.protobuf.Option options = 3; 317 // repeated .google.protobuf.Option options = 3;
323 case 3: { 318 case 3: {
324 if (tag == 26) { 319 if (tag == 26u) {
325 DO_(input->IncrementRecursionDepth()); 320 DO_(input->IncrementRecursionDepth());
326 parse_loop_options:
327 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 321 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
328 input, add_options())); 322 input, add_options()));
329 } else { 323 } else {
330 goto handle_unusual; 324 goto handle_unusual;
331 } 325 }
332 if (input->ExpectTag(26)) goto parse_loop_options;
333 input->UnsafeDecrementRecursionDepth(); 326 input->UnsafeDecrementRecursionDepth();
334 if (input->ExpectTag(34)) goto parse_version;
335 break; 327 break;
336 } 328 }
337 329
338 // optional string version = 4; 330 // string version = 4;
339 case 4: { 331 case 4: {
340 if (tag == 34) { 332 if (tag == 34u) {
341 parse_version:
342 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 333 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
343 input, this->mutable_version())); 334 input, this->mutable_version()));
344 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 335 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
345 this->version().data(), this->version().length(), 336 this->version().data(), this->version().length(),
346 ::google::protobuf::internal::WireFormatLite::PARSE, 337 ::google::protobuf::internal::WireFormatLite::PARSE,
347 "google.protobuf.Api.version")); 338 "google.protobuf.Api.version"));
348 } else { 339 } else {
349 goto handle_unusual; 340 goto handle_unusual;
350 } 341 }
351 if (input->ExpectTag(42)) goto parse_source_context;
352 break; 342 break;
353 } 343 }
354 344
355 // optional .google.protobuf.SourceContext source_context = 5; 345 // .google.protobuf.SourceContext source_context = 5;
356 case 5: { 346 case 5: {
357 if (tag == 42) { 347 if (tag == 42u) {
358 parse_source_context:
359 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 348 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
360 input, mutable_source_context())); 349 input, mutable_source_context()));
361 } else { 350 } else {
362 goto handle_unusual; 351 goto handle_unusual;
363 } 352 }
364 if (input->ExpectTag(50)) goto parse_mixins;
365 break; 353 break;
366 } 354 }
367 355
368 // repeated .google.protobuf.Mixin mixins = 6; 356 // repeated .google.protobuf.Mixin mixins = 6;
369 case 6: { 357 case 6: {
370 if (tag == 50) { 358 if (tag == 50u) {
371 parse_mixins:
372 DO_(input->IncrementRecursionDepth()); 359 DO_(input->IncrementRecursionDepth());
373 parse_loop_mixins:
374 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 360 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
375 input, add_mixins())); 361 input, add_mixins()));
376 } else { 362 } else {
377 goto handle_unusual; 363 goto handle_unusual;
378 } 364 }
379 if (input->ExpectTag(50)) goto parse_loop_mixins;
380 input->UnsafeDecrementRecursionDepth(); 365 input->UnsafeDecrementRecursionDepth();
381 if (input->ExpectTag(56)) goto parse_syntax;
382 break; 366 break;
383 } 367 }
384 368
385 // optional .google.protobuf.Syntax syntax = 7; 369 // .google.protobuf.Syntax syntax = 7;
386 case 7: { 370 case 7: {
387 if (tag == 56) { 371 if (tag == 56u) {
388 parse_syntax:
389 int value; 372 int value;
390 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 373 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
391 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> ( 374 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> (
392 input, &value))); 375 input, &value)));
393 set_syntax(static_cast< ::google::protobuf::Syntax >(value)); 376 set_syntax(static_cast< ::google::protobuf::Syntax >(value));
394 } else { 377 } else {
395 goto handle_unusual; 378 goto handle_unusual;
396 } 379 }
397 if (input->ExpectAtEnd()) goto success;
398 break; 380 break;
399 } 381 }
400 382
401 default: { 383 default: {
402 handle_unusual: 384 handle_unusual:
403 if (tag == 0 || 385 if (tag == 0 ||
404 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 386 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
405 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 387 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
406 goto success; 388 goto success;
407 } 389 }
408 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)) ; 390 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)) ;
409 break; 391 break;
410 } 392 }
411 } 393 }
412 } 394 }
413 success: 395 success:
414 // @@protoc_insertion_point(parse_success:google.protobuf.Api) 396 // @@protoc_insertion_point(parse_success:google.protobuf.Api)
415 return true; 397 return true;
416 failure: 398 failure:
417 // @@protoc_insertion_point(parse_failure:google.protobuf.Api) 399 // @@protoc_insertion_point(parse_failure:google.protobuf.Api)
418 return false; 400 return false;
419 #undef DO_ 401 #undef DO_
420 } 402 }
421 403
422 void Api::SerializeWithCachedSizes( 404 void Api::SerializeWithCachedSizes(
423 ::google::protobuf::io::CodedOutputStream* output) const { 405 ::google::protobuf::io::CodedOutputStream* output) const {
424 // @@protoc_insertion_point(serialize_start:google.protobuf.Api) 406 // @@protoc_insertion_point(serialize_start:google.protobuf.Api)
425 // optional string name = 1; 407 // string name = 1;
426 if (this->name().size() > 0) { 408 if (this->name().size() > 0) {
427 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 409 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
428 this->name().data(), this->name().length(), 410 this->name().data(), this->name().length(),
429 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 411 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
430 "google.protobuf.Api.name"); 412 "google.protobuf.Api.name");
431 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 413 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
432 1, this->name(), output); 414 1, this->name(), output);
433 } 415 }
434 416
435 // repeated .google.protobuf.Method methods = 2; 417 // repeated .google.protobuf.Method methods = 2;
436 for (unsigned int i = 0, n = this->methods_size(); i < n; i++) { 418 for (unsigned int i = 0, n = this->methods_size(); i < n; i++) {
437 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 419 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
438 2, this->methods(i), output); 420 2, this->methods(i), output);
439 } 421 }
440 422
441 // repeated .google.protobuf.Option options = 3; 423 // repeated .google.protobuf.Option options = 3;
442 for (unsigned int i = 0, n = this->options_size(); i < n; i++) { 424 for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
443 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 425 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
444 3, this->options(i), output); 426 3, this->options(i), output);
445 } 427 }
446 428
447 // optional string version = 4; 429 // string version = 4;
448 if (this->version().size() > 0) { 430 if (this->version().size() > 0) {
449 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 431 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
450 this->version().data(), this->version().length(), 432 this->version().data(), this->version().length(),
451 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 433 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
452 "google.protobuf.Api.version"); 434 "google.protobuf.Api.version");
453 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 435 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
454 4, this->version(), output); 436 4, this->version(), output);
455 } 437 }
456 438
457 // optional .google.protobuf.SourceContext source_context = 5; 439 // .google.protobuf.SourceContext source_context = 5;
458 if (this->has_source_context()) { 440 if (this->has_source_context()) {
459 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 441 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
460 5, *this->source_context_, output); 442 5, *this->source_context_, output);
461 } 443 }
462 444
463 // repeated .google.protobuf.Mixin mixins = 6; 445 // repeated .google.protobuf.Mixin mixins = 6;
464 for (unsigned int i = 0, n = this->mixins_size(); i < n; i++) { 446 for (unsigned int i = 0, n = this->mixins_size(); i < n; i++) {
465 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 447 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
466 6, this->mixins(i), output); 448 6, this->mixins(i), output);
467 } 449 }
468 450
469 // optional .google.protobuf.Syntax syntax = 7; 451 // .google.protobuf.Syntax syntax = 7;
470 if (this->syntax() != 0) { 452 if (this->syntax() != 0) {
471 ::google::protobuf::internal::WireFormatLite::WriteEnum( 453 ::google::protobuf::internal::WireFormatLite::WriteEnum(
472 7, this->syntax(), output); 454 7, this->syntax(), output);
473 } 455 }
474 456
475 // @@protoc_insertion_point(serialize_end:google.protobuf.Api) 457 // @@protoc_insertion_point(serialize_end:google.protobuf.Api)
476 } 458 }
477 459
478 ::google::protobuf::uint8* Api::SerializeWithCachedSizesToArray( 460 ::google::protobuf::uint8* Api::InternalSerializeWithCachedSizesToArray(
479 ::google::protobuf::uint8* target) const { 461 bool deterministic, ::google::protobuf::uint8* target) const {
462 (void)deterministic; // Unused
480 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Api) 463 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Api)
481 // optional string name = 1; 464 // string name = 1;
482 if (this->name().size() > 0) { 465 if (this->name().size() > 0) {
483 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 466 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
484 this->name().data(), this->name().length(), 467 this->name().data(), this->name().length(),
485 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 468 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
486 "google.protobuf.Api.name"); 469 "google.protobuf.Api.name");
487 target = 470 target =
488 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 471 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
489 1, this->name(), target); 472 1, this->name(), target);
490 } 473 }
491 474
492 // repeated .google.protobuf.Method methods = 2; 475 // repeated .google.protobuf.Method methods = 2;
493 for (unsigned int i = 0, n = this->methods_size(); i < n; i++) { 476 for (unsigned int i = 0, n = this->methods_size(); i < n; i++) {
494 target = ::google::protobuf::internal::WireFormatLite:: 477 target = ::google::protobuf::internal::WireFormatLite::
495 WriteMessageNoVirtualToArray( 478 InternalWriteMessageNoVirtualToArray(
496 2, this->methods(i), target); 479 2, this->methods(i), false, target);
497 } 480 }
498 481
499 // repeated .google.protobuf.Option options = 3; 482 // repeated .google.protobuf.Option options = 3;
500 for (unsigned int i = 0, n = this->options_size(); i < n; i++) { 483 for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
501 target = ::google::protobuf::internal::WireFormatLite:: 484 target = ::google::protobuf::internal::WireFormatLite::
502 WriteMessageNoVirtualToArray( 485 InternalWriteMessageNoVirtualToArray(
503 3, this->options(i), target); 486 3, this->options(i), false, target);
504 } 487 }
505 488
506 // optional string version = 4; 489 // string version = 4;
507 if (this->version().size() > 0) { 490 if (this->version().size() > 0) {
508 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 491 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
509 this->version().data(), this->version().length(), 492 this->version().data(), this->version().length(),
510 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 493 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
511 "google.protobuf.Api.version"); 494 "google.protobuf.Api.version");
512 target = 495 target =
513 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 496 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
514 4, this->version(), target); 497 4, this->version(), target);
515 } 498 }
516 499
517 // optional .google.protobuf.SourceContext source_context = 5; 500 // .google.protobuf.SourceContext source_context = 5;
518 if (this->has_source_context()) { 501 if (this->has_source_context()) {
519 target = ::google::protobuf::internal::WireFormatLite:: 502 target = ::google::protobuf::internal::WireFormatLite::
520 WriteMessageNoVirtualToArray( 503 InternalWriteMessageNoVirtualToArray(
521 5, *this->source_context_, target); 504 5, *this->source_context_, false, target);
522 } 505 }
523 506
524 // repeated .google.protobuf.Mixin mixins = 6; 507 // repeated .google.protobuf.Mixin mixins = 6;
525 for (unsigned int i = 0, n = this->mixins_size(); i < n; i++) { 508 for (unsigned int i = 0, n = this->mixins_size(); i < n; i++) {
526 target = ::google::protobuf::internal::WireFormatLite:: 509 target = ::google::protobuf::internal::WireFormatLite::
527 WriteMessageNoVirtualToArray( 510 InternalWriteMessageNoVirtualToArray(
528 6, this->mixins(i), target); 511 6, this->mixins(i), false, target);
529 } 512 }
530 513
531 // optional .google.protobuf.Syntax syntax = 7; 514 // .google.protobuf.Syntax syntax = 7;
532 if (this->syntax() != 0) { 515 if (this->syntax() != 0) {
533 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 516 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
534 7, this->syntax(), target); 517 7, this->syntax(), target);
535 } 518 }
536 519
537 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Api) 520 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Api)
538 return target; 521 return target;
539 } 522 }
540 523
541 int Api::ByteSize() const { 524 size_t Api::ByteSizeLong() const {
542 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Api) 525 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Api)
543 int total_size = 0; 526 size_t total_size = 0;
544 527
545 // optional string name = 1; 528 // repeated .google.protobuf.Method methods = 2;
529 {
530 unsigned int count = this->methods_size();
531 total_size += 1UL * count;
532 for (unsigned int i = 0; i < count; i++) {
533 total_size +=
534 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
535 this->methods(i));
536 }
537 }
538
539 // repeated .google.protobuf.Option options = 3;
540 {
541 unsigned int count = this->options_size();
542 total_size += 1UL * count;
543 for (unsigned int i = 0; i < count; i++) {
544 total_size +=
545 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
546 this->options(i));
547 }
548 }
549
550 // repeated .google.protobuf.Mixin mixins = 6;
551 {
552 unsigned int count = this->mixins_size();
553 total_size += 1UL * count;
554 for (unsigned int i = 0; i < count; i++) {
555 total_size +=
556 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
557 this->mixins(i));
558 }
559 }
560
561 // string name = 1;
546 if (this->name().size() > 0) { 562 if (this->name().size() > 0) {
547 total_size += 1 + 563 total_size += 1 +
548 ::google::protobuf::internal::WireFormatLite::StringSize( 564 ::google::protobuf::internal::WireFormatLite::StringSize(
549 this->name()); 565 this->name());
550 } 566 }
551 567
552 // optional string version = 4; 568 // string version = 4;
553 if (this->version().size() > 0) { 569 if (this->version().size() > 0) {
554 total_size += 1 + 570 total_size += 1 +
555 ::google::protobuf::internal::WireFormatLite::StringSize( 571 ::google::protobuf::internal::WireFormatLite::StringSize(
556 this->version()); 572 this->version());
557 } 573 }
558 574
559 // optional .google.protobuf.SourceContext source_context = 5; 575 // .google.protobuf.SourceContext source_context = 5;
560 if (this->has_source_context()) { 576 if (this->has_source_context()) {
561 total_size += 1 + 577 total_size += 1 +
562 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 578 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
563 *this->source_context_); 579 *this->source_context_);
564 } 580 }
565 581
566 // optional .google.protobuf.Syntax syntax = 7; 582 // .google.protobuf.Syntax syntax = 7;
567 if (this->syntax() != 0) { 583 if (this->syntax() != 0) {
568 total_size += 1 + 584 total_size += 1 +
569 ::google::protobuf::internal::WireFormatLite::EnumSize(this->syntax()); 585 ::google::protobuf::internal::WireFormatLite::EnumSize(this->syntax());
570 } 586 }
571 587
572 // repeated .google.protobuf.Method methods = 2; 588 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
573 total_size += 1 * this->methods_size();
574 for (int i = 0; i < this->methods_size(); i++) {
575 total_size +=
576 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
577 this->methods(i));
578 }
579
580 // repeated .google.protobuf.Option options = 3;
581 total_size += 1 * this->options_size();
582 for (int i = 0; i < this->options_size(); i++) {
583 total_size +=
584 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
585 this->options(i));
586 }
587
588 // repeated .google.protobuf.Mixin mixins = 6;
589 total_size += 1 * this->mixins_size();
590 for (int i = 0; i < this->mixins_size(); i++) {
591 total_size +=
592 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
593 this->mixins(i));
594 }
595
596 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 589 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
597 _cached_size_ = total_size; 590 _cached_size_ = cached_size;
598 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 591 GOOGLE_SAFE_CONCURRENT_WRITES_END();
599 return total_size; 592 return total_size;
600 } 593 }
601 594
602 void Api::MergeFrom(const ::google::protobuf::Message& from) { 595 void Api::MergeFrom(const ::google::protobuf::Message& from) {
603 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Api) 596 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Api)
604 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 597 GOOGLE_DCHECK_NE(&from, this);
605 const Api* source = 598 const Api* source =
606 ::google::protobuf::internal::DynamicCastToGenerated<const Api>( 599 ::google::protobuf::internal::DynamicCastToGenerated<const Api>(
607 &from); 600 &from);
608 if (source == NULL) { 601 if (source == NULL) {
609 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.A pi) 602 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.A pi)
610 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 603 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
611 } else { 604 } else {
612 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.Api) 605 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.Api)
613 MergeFrom(*source); 606 MergeFrom(*source);
614 } 607 }
615 } 608 }
616 609
617 void Api::MergeFrom(const Api& from) { 610 void Api::MergeFrom(const Api& from) {
618 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Api) 611 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Api)
619 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 612 GOOGLE_DCHECK_NE(&from, this);
613 _internal_metadata_.MergeFrom(from._internal_metadata_);
620 methods_.MergeFrom(from.methods_); 614 methods_.MergeFrom(from.methods_);
621 options_.MergeFrom(from.options_); 615 options_.MergeFrom(from.options_);
622 mixins_.MergeFrom(from.mixins_); 616 mixins_.MergeFrom(from.mixins_);
623 if (from.name().size() > 0) { 617 if (from.name().size() > 0) {
624 618
625 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_); 619 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
626 } 620 }
627 if (from.version().size() > 0) { 621 if (from.version().size() > 0) {
628 622
629 version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), from.version_); 623 version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), from.version_);
(...skipping 14 matching lines...) Expand all
644 } 638 }
645 639
646 void Api::CopyFrom(const Api& from) { 640 void Api::CopyFrom(const Api& from) {
647 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Api) 641 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Api)
648 if (&from == this) return; 642 if (&from == this) return;
649 Clear(); 643 Clear();
650 MergeFrom(from); 644 MergeFrom(from);
651 } 645 }
652 646
653 bool Api::IsInitialized() const { 647 bool Api::IsInitialized() const {
654
655 return true; 648 return true;
656 } 649 }
657 650
658 void Api::Swap(Api* other) { 651 void Api::Swap(Api* other) {
659 if (other == this) return; 652 if (other == this) return;
660 InternalSwap(other); 653 InternalSwap(other);
661 } 654 }
662 void Api::InternalSwap(Api* other) { 655 void Api::InternalSwap(Api* other) {
663 name_.Swap(&other->name_);
664 methods_.UnsafeArenaSwap(&other->methods_); 656 methods_.UnsafeArenaSwap(&other->methods_);
665 options_.UnsafeArenaSwap(&other->options_); 657 options_.UnsafeArenaSwap(&other->options_);
658 mixins_.UnsafeArenaSwap(&other->mixins_);
659 name_.Swap(&other->name_);
666 version_.Swap(&other->version_); 660 version_.Swap(&other->version_);
667 std::swap(source_context_, other->source_context_); 661 std::swap(source_context_, other->source_context_);
668 mixins_.UnsafeArenaSwap(&other->mixins_);
669 std::swap(syntax_, other->syntax_); 662 std::swap(syntax_, other->syntax_);
670 _internal_metadata_.Swap(&other->_internal_metadata_);
671 std::swap(_cached_size_, other->_cached_size_); 663 std::swap(_cached_size_, other->_cached_size_);
672 } 664 }
673 665
674 ::google::protobuf::Metadata Api::GetMetadata() const { 666 ::google::protobuf::Metadata Api::GetMetadata() const {
675 protobuf_AssignDescriptorsOnce(); 667 protobuf_AssignDescriptorsOnce();
676 ::google::protobuf::Metadata metadata; 668 return file_level_metadata[0];
677 metadata.descriptor = Api_descriptor_;
678 metadata.reflection = Api_reflection_;
679 return metadata;
680 } 669 }
681 670
682 #if PROTOBUF_INLINE_NOT_IN_HEADERS 671 #if PROTOBUF_INLINE_NOT_IN_HEADERS
683 // Api 672 // Api
684 673
685 // optional string name = 1; 674 // string name = 1;
686 void Api::clear_name() { 675 void Api::clear_name() {
687 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 676 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
688 } 677 }
689 const ::std::string& Api::name() const { 678 const ::std::string& Api::name() const {
690 // @@protoc_insertion_point(field_get:google.protobuf.Api.name) 679 // @@protoc_insertion_point(field_get:google.protobuf.Api.name)
691 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 680 return name_.GetNoArena();
692 } 681 }
693 void Api::set_name(const ::std::string& value) { 682 void Api::set_name(const ::std::string& value) {
694 683
695 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 684 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
696 // @@protoc_insertion_point(field_set:google.protobuf.Api.name) 685 // @@protoc_insertion_point(field_set:google.protobuf.Api.name)
697 } 686 }
698 void Api::set_name(const char* value) { 687 void Api::set_name(const char* value) {
699 688
700 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 689 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
701 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.name) 690 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.name)
702 } 691 }
703 void Api::set_name(const char* value, size_t size) { 692 void Api::set_name(const char* value, size_t size) {
704 693
705 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 694 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
706 ::std::string(reinterpret_cast<const char*>(value), size)); 695 ::std::string(reinterpret_cast<const char*>(value), size));
707 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.name) 696 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.name)
708 } 697 }
709 ::std::string* Api::mutable_name() { 698 ::std::string* Api::mutable_name() {
710 699
711 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.name) 700 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.name)
712 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 701 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
713 } 702 }
714 ::std::string* Api::release_name() { 703 ::std::string* Api::release_name() {
715 // @@protoc_insertion_point(field_release:google.protobuf.Api.name) 704 // @@protoc_insertion_point(field_release:google.protobuf.Api.name)
716 705
717 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 706 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
718 } 707 }
719 void Api::set_allocated_name(::std::string* name) { 708 void Api::set_allocated_name(::std::string* name) {
720 if (name != NULL) { 709 if (name != NULL) {
721 710
722 } else { 711 } else {
723 712
724 } 713 }
725 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 714 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
726 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.name) 715 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.name)
727 } 716 }
728 717
729 // repeated .google.protobuf.Method methods = 2; 718 // repeated .google.protobuf.Method methods = 2;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 Api::mutable_options() { 768 Api::mutable_options() {
780 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.options) 769 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.options)
781 return &options_; 770 return &options_;
782 } 771 }
783 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& 772 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
784 Api::options() const { 773 Api::options() const {
785 // @@protoc_insertion_point(field_list:google.protobuf.Api.options) 774 // @@protoc_insertion_point(field_list:google.protobuf.Api.options)
786 return options_; 775 return options_;
787 } 776 }
788 777
789 // optional string version = 4; 778 // string version = 4;
790 void Api::clear_version() { 779 void Api::clear_version() {
791 version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 780 version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
792 } 781 }
793 const ::std::string& Api::version() const { 782 const ::std::string& Api::version() const {
794 // @@protoc_insertion_point(field_get:google.protobuf.Api.version) 783 // @@protoc_insertion_point(field_get:google.protobuf.Api.version)
795 return version_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited()); 784 return version_.GetNoArena();
796 } 785 }
797 void Api::set_version(const ::std::string& value) { 786 void Api::set_version(const ::std::string& value) {
798 787
799 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), value); 788 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), value);
800 // @@protoc_insertion_point(field_set:google.protobuf.Api.version) 789 // @@protoc_insertion_point(field_set:google.protobuf.Api.version)
801 } 790 }
802 void Api::set_version(const char* value) { 791 void Api::set_version(const char* value) {
803 792
804 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), ::std::string(value)); 793 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), ::std::string(value));
805 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.version) 794 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.version)
806 } 795 }
807 void Api::set_version(const char* value, size_t size) { 796 void Api::set_version(const char* value, size_t size) {
808 797
809 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), 798 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (),
810 ::std::string(reinterpret_cast<const char*>(value), size)); 799 ::std::string(reinterpret_cast<const char*>(value), size));
811 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.version) 800 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.version)
812 } 801 }
813 ::std::string* Api::mutable_version() { 802 ::std::string* Api::mutable_version() {
814 803
815 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.version) 804 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.version)
816 return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 805 return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
817 } 806 }
818 ::std::string* Api::release_version() { 807 ::std::string* Api::release_version() {
819 // @@protoc_insertion_point(field_release:google.protobuf.Api.version) 808 // @@protoc_insertion_point(field_release:google.protobuf.Api.version)
820 809
821 return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 810 return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
822 } 811 }
823 void Api::set_allocated_version(::std::string* version) { 812 void Api::set_allocated_version(::std::string* version) {
824 if (version != NULL) { 813 if (version != NULL) {
825 814
826 } else { 815 } else {
827 816
828 } 817 }
829 version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), version); 818 version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), version);
830 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.version) 819 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.version)
831 } 820 }
832 821
833 // optional .google.protobuf.SourceContext source_context = 5; 822 // .google.protobuf.SourceContext source_context = 5;
834 bool Api::has_source_context() const { 823 bool Api::has_source_context() const {
835 return !_is_default_instance_ && source_context_ != NULL; 824 return this != internal_default_instance() && source_context_ != NULL;
836 } 825 }
837 void Api::clear_source_context() { 826 void Api::clear_source_context() {
838 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_cont ext_; 827 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_cont ext_;
839 source_context_ = NULL; 828 source_context_ = NULL;
840 } 829 }
841 const ::google::protobuf::SourceContext& Api::source_context() const { 830 const ::google::protobuf::SourceContext& Api::source_context() const {
842 // @@protoc_insertion_point(field_get:google.protobuf.Api.source_context) 831 // @@protoc_insertion_point(field_get:google.protobuf.Api.source_context)
843 return source_context_ != NULL ? *source_context_ : *default_instance_->source _context_; 832 return source_context_ != NULL ? *source_context_
833 : *::google::protobuf::SourceContext::internal_default_ instance();
844 } 834 }
845 ::google::protobuf::SourceContext* Api::mutable_source_context() { 835 ::google::protobuf::SourceContext* Api::mutable_source_context() {
846 836
847 if (source_context_ == NULL) { 837 if (source_context_ == NULL) {
848 source_context_ = new ::google::protobuf::SourceContext; 838 source_context_ = new ::google::protobuf::SourceContext;
849 } 839 }
850 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.source_context) 840 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.source_context)
851 return source_context_; 841 return source_context_;
852 } 842 }
853 ::google::protobuf::SourceContext* Api::release_source_context() { 843 ::google::protobuf::SourceContext* Api::release_source_context() {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 Api::mutable_mixins() { 881 Api::mutable_mixins() {
892 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.mixins) 882 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.mixins)
893 return &mixins_; 883 return &mixins_;
894 } 884 }
895 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >& 885 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >&
896 Api::mixins() const { 886 Api::mixins() const {
897 // @@protoc_insertion_point(field_list:google.protobuf.Api.mixins) 887 // @@protoc_insertion_point(field_list:google.protobuf.Api.mixins)
898 return mixins_; 888 return mixins_;
899 } 889 }
900 890
901 // optional .google.protobuf.Syntax syntax = 7; 891 // .google.protobuf.Syntax syntax = 7;
902 void Api::clear_syntax() { 892 void Api::clear_syntax() {
903 syntax_ = 0; 893 syntax_ = 0;
904 } 894 }
905 ::google::protobuf::Syntax Api::syntax() const { 895 ::google::protobuf::Syntax Api::syntax() const {
906 // @@protoc_insertion_point(field_get:google.protobuf.Api.syntax) 896 // @@protoc_insertion_point(field_get:google.protobuf.Api.syntax)
907 return static_cast< ::google::protobuf::Syntax >(syntax_); 897 return static_cast< ::google::protobuf::Syntax >(syntax_);
908 } 898 }
909 void Api::set_syntax(::google::protobuf::Syntax value) { 899 void Api::set_syntax(::google::protobuf::Syntax value) {
910 900
911 syntax_ = value; 901 syntax_ = value;
912 // @@protoc_insertion_point(field_set:google.protobuf.Api.syntax) 902 // @@protoc_insertion_point(field_set:google.protobuf.Api.syntax)
913 } 903 }
914 904
915 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 905 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
916 906
917 // =================================================================== 907 // ===================================================================
918 908
919 #if !defined(_MSC_VER) || _MSC_VER >= 1900 909 #if !defined(_MSC_VER) || _MSC_VER >= 1900
920 const int Method::kNameFieldNumber; 910 const int Method::kNameFieldNumber;
921 const int Method::kRequestTypeUrlFieldNumber; 911 const int Method::kRequestTypeUrlFieldNumber;
922 const int Method::kRequestStreamingFieldNumber; 912 const int Method::kRequestStreamingFieldNumber;
923 const int Method::kResponseTypeUrlFieldNumber; 913 const int Method::kResponseTypeUrlFieldNumber;
924 const int Method::kResponseStreamingFieldNumber; 914 const int Method::kResponseStreamingFieldNumber;
925 const int Method::kOptionsFieldNumber; 915 const int Method::kOptionsFieldNumber;
926 const int Method::kSyntaxFieldNumber; 916 const int Method::kSyntaxFieldNumber;
927 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 917 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
928 918
929 Method::Method() 919 Method::Method()
930 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 920 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
921 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
922 protobuf_InitDefaults_google_2fprotobuf_2fapi_2eproto();
923 }
931 SharedCtor(); 924 SharedCtor();
932 // @@protoc_insertion_point(constructor:google.protobuf.Method) 925 // @@protoc_insertion_point(constructor:google.protobuf.Method)
933 } 926 }
934
935 void Method::InitAsDefaultInstance() {
936 _is_default_instance_ = true;
937 }
938
939 Method::Method(const Method& from) 927 Method::Method(const Method& from)
940 : ::google::protobuf::Message(), 928 : ::google::protobuf::Message(),
941 _internal_metadata_(NULL) { 929 _internal_metadata_(NULL),
942 SharedCtor(); 930 options_(from.options_),
943 MergeFrom(from); 931 _cached_size_(0) {
932 _internal_metadata_.MergeFrom(from._internal_metadata_);
933 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
934 if (from.name().size() > 0) {
935 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
936 }
937 request_type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
938 if (from.request_type_url().size() > 0) {
939 request_type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), from.request_type_url_);
940 }
941 response_type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
942 if (from.response_type_url().size() > 0) {
943 response_type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), from.response_type_url_);
944 }
945 ::memcpy(&request_streaming_, &from.request_streaming_,
946 reinterpret_cast<char*>(&syntax_) -
947 reinterpret_cast<char*>(&request_streaming_) + sizeof(syntax_));
944 // @@protoc_insertion_point(copy_constructor:google.protobuf.Method) 948 // @@protoc_insertion_point(copy_constructor:google.protobuf.Method)
945 } 949 }
946 950
947 void Method::SharedCtor() { 951 void Method::SharedCtor() {
948 _is_default_instance_ = false;
949 ::google::protobuf::internal::GetEmptyString();
950 _cached_size_ = 0;
951 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 952 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
952 request_type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()); 953 request_type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
953 request_streaming_ = false;
954 response_type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 954 response_type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
955 response_streaming_ = false; 955 ::memset(&request_streaming_, 0, reinterpret_cast<char*>(&syntax_) -
956 syntax_ = 0; 956 reinterpret_cast<char*>(&request_streaming_) + sizeof(syntax_));
957 _cached_size_ = 0;
957 } 958 }
958 959
959 Method::~Method() { 960 Method::~Method() {
960 // @@protoc_insertion_point(destructor:google.protobuf.Method) 961 // @@protoc_insertion_point(destructor:google.protobuf.Method)
961 SharedDtor(); 962 SharedDtor();
962 } 963 }
963 964
964 void Method::SharedDtor() { 965 void Method::SharedDtor() {
965 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 966 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
966 request_type_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 967 request_type_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
967 response_type_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 968 response_type_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
968 if (this != default_instance_) {
969 }
970 } 969 }
971 970
972 void Method::SetCachedSize(int size) const { 971 void Method::SetCachedSize(int size) const {
973 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 972 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
974 _cached_size_ = size; 973 _cached_size_ = size;
975 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 974 GOOGLE_SAFE_CONCURRENT_WRITES_END();
976 } 975 }
977 const ::google::protobuf::Descriptor* Method::descriptor() { 976 const ::google::protobuf::Descriptor* Method::descriptor() {
978 protobuf_AssignDescriptorsOnce(); 977 protobuf_AssignDescriptorsOnce();
979 return Method_descriptor_; 978 return file_level_metadata[1].descriptor;
980 } 979 }
981 980
982 const Method& Method::default_instance() { 981 const Method& Method::default_instance() {
983 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fapi_2eprot o(); 982 protobuf_InitDefaults_google_2fprotobuf_2fapi_2eproto();
984 return *default_instance_; 983 return *internal_default_instance();
985 } 984 }
986 985
987 Method* Method::default_instance_ = NULL;
988
989 Method* Method::New(::google::protobuf::Arena* arena) const { 986 Method* Method::New(::google::protobuf::Arena* arena) const {
990 Method* n = new Method; 987 Method* n = new Method;
991 if (arena != NULL) { 988 if (arena != NULL) {
992 arena->Own(n); 989 arena->Own(n);
993 } 990 }
994 return n; 991 return n;
995 } 992 }
996 993
997 void Method::Clear() { 994 void Method::Clear() {
998 // @@protoc_insertion_point(message_clear_start:google.protobuf.Method) 995 // @@protoc_insertion_point(message_clear_start:google.protobuf.Method)
999 #if defined(__clang__) 996 options_.Clear();
1000 #define ZR_HELPER_(f) \
1001 _Pragma("clang diagnostic push") \
1002 _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
1003 __builtin_offsetof(Method, f) \
1004 _Pragma("clang diagnostic pop")
1005 #else
1006 #define ZR_HELPER_(f) reinterpret_cast<char*>(\
1007 &reinterpret_cast<Method*>(16)->f)
1008 #endif
1009
1010 #define ZR_(first, last) do {\
1011 ::memset(&first, 0,\
1012 ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
1013 } while (0)
1014
1015 ZR_(request_streaming_, syntax_);
1016 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 997 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
1017 request_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited()); 998 request_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited());
1018 response_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited()); 999 response_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
1019 1000 ::memset(&request_streaming_, 0, reinterpret_cast<char*>(&syntax_) -
1020 #undef ZR_HELPER_ 1001 reinterpret_cast<char*>(&request_streaming_) + sizeof(syntax_));
1021 #undef ZR_
1022
1023 options_.Clear();
1024 } 1002 }
1025 1003
1026 bool Method::MergePartialFromCodedStream( 1004 bool Method::MergePartialFromCodedStream(
1027 ::google::protobuf::io::CodedInputStream* input) { 1005 ::google::protobuf::io::CodedInputStream* input) {
1028 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 1006 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1029 ::google::protobuf::uint32 tag; 1007 ::google::protobuf::uint32 tag;
1030 // @@protoc_insertion_point(parse_start:google.protobuf.Method) 1008 // @@protoc_insertion_point(parse_start:google.protobuf.Method)
1031 for (;;) { 1009 for (;;) {
1032 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 1010 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
1033 tag = p.first; 1011 tag = p.first;
1034 if (!p.second) goto handle_unusual; 1012 if (!p.second) goto handle_unusual;
1035 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 1013 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
1036 // optional string name = 1; 1014 // string name = 1;
1037 case 1: { 1015 case 1: {
1038 if (tag == 10) { 1016 if (tag == 10u) {
1039 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1017 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1040 input, this->mutable_name())); 1018 input, this->mutable_name()));
1041 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1019 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1042 this->name().data(), this->name().length(), 1020 this->name().data(), this->name().length(),
1043 ::google::protobuf::internal::WireFormatLite::PARSE, 1021 ::google::protobuf::internal::WireFormatLite::PARSE,
1044 "google.protobuf.Method.name")); 1022 "google.protobuf.Method.name"));
1045 } else { 1023 } else {
1046 goto handle_unusual; 1024 goto handle_unusual;
1047 } 1025 }
1048 if (input->ExpectTag(18)) goto parse_request_type_url;
1049 break; 1026 break;
1050 } 1027 }
1051 1028
1052 // optional string request_type_url = 2; 1029 // string request_type_url = 2;
1053 case 2: { 1030 case 2: {
1054 if (tag == 18) { 1031 if (tag == 18u) {
1055 parse_request_type_url:
1056 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1032 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1057 input, this->mutable_request_type_url())); 1033 input, this->mutable_request_type_url()));
1058 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1034 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1059 this->request_type_url().data(), this->request_type_url().length(), 1035 this->request_type_url().data(), this->request_type_url().length(),
1060 ::google::protobuf::internal::WireFormatLite::PARSE, 1036 ::google::protobuf::internal::WireFormatLite::PARSE,
1061 "google.protobuf.Method.request_type_url")); 1037 "google.protobuf.Method.request_type_url"));
1062 } else { 1038 } else {
1063 goto handle_unusual; 1039 goto handle_unusual;
1064 } 1040 }
1065 if (input->ExpectTag(24)) goto parse_request_streaming;
1066 break; 1041 break;
1067 } 1042 }
1068 1043
1069 // optional bool request_streaming = 3; 1044 // bool request_streaming = 3;
1070 case 3: { 1045 case 3: {
1071 if (tag == 24) { 1046 if (tag == 24u) {
1072 parse_request_streaming: 1047
1073 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1048 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1074 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 1049 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
1075 input, &request_streaming_))); 1050 input, &request_streaming_)));
1076
1077 } else { 1051 } else {
1078 goto handle_unusual; 1052 goto handle_unusual;
1079 } 1053 }
1080 if (input->ExpectTag(34)) goto parse_response_type_url;
1081 break; 1054 break;
1082 } 1055 }
1083 1056
1084 // optional string response_type_url = 4; 1057 // string response_type_url = 4;
1085 case 4: { 1058 case 4: {
1086 if (tag == 34) { 1059 if (tag == 34u) {
1087 parse_response_type_url:
1088 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1060 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1089 input, this->mutable_response_type_url())); 1061 input, this->mutable_response_type_url()));
1090 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1062 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1091 this->response_type_url().data(), this->response_type_url().length() , 1063 this->response_type_url().data(), this->response_type_url().length() ,
1092 ::google::protobuf::internal::WireFormatLite::PARSE, 1064 ::google::protobuf::internal::WireFormatLite::PARSE,
1093 "google.protobuf.Method.response_type_url")); 1065 "google.protobuf.Method.response_type_url"));
1094 } else { 1066 } else {
1095 goto handle_unusual; 1067 goto handle_unusual;
1096 } 1068 }
1097 if (input->ExpectTag(40)) goto parse_response_streaming;
1098 break; 1069 break;
1099 } 1070 }
1100 1071
1101 // optional bool response_streaming = 5; 1072 // bool response_streaming = 5;
1102 case 5: { 1073 case 5: {
1103 if (tag == 40) { 1074 if (tag == 40u) {
1104 parse_response_streaming: 1075
1105 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1076 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1106 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 1077 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
1107 input, &response_streaming_))); 1078 input, &response_streaming_)));
1108
1109 } else { 1079 } else {
1110 goto handle_unusual; 1080 goto handle_unusual;
1111 } 1081 }
1112 if (input->ExpectTag(50)) goto parse_options;
1113 break; 1082 break;
1114 } 1083 }
1115 1084
1116 // repeated .google.protobuf.Option options = 6; 1085 // repeated .google.protobuf.Option options = 6;
1117 case 6: { 1086 case 6: {
1118 if (tag == 50) { 1087 if (tag == 50u) {
1119 parse_options:
1120 DO_(input->IncrementRecursionDepth()); 1088 DO_(input->IncrementRecursionDepth());
1121 parse_loop_options:
1122 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 1089 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
1123 input, add_options())); 1090 input, add_options()));
1124 } else { 1091 } else {
1125 goto handle_unusual; 1092 goto handle_unusual;
1126 } 1093 }
1127 if (input->ExpectTag(50)) goto parse_loop_options;
1128 input->UnsafeDecrementRecursionDepth(); 1094 input->UnsafeDecrementRecursionDepth();
1129 if (input->ExpectTag(56)) goto parse_syntax;
1130 break; 1095 break;
1131 } 1096 }
1132 1097
1133 // optional .google.protobuf.Syntax syntax = 7; 1098 // .google.protobuf.Syntax syntax = 7;
1134 case 7: { 1099 case 7: {
1135 if (tag == 56) { 1100 if (tag == 56u) {
1136 parse_syntax:
1137 int value; 1101 int value;
1138 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1102 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1139 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> ( 1103 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> (
1140 input, &value))); 1104 input, &value)));
1141 set_syntax(static_cast< ::google::protobuf::Syntax >(value)); 1105 set_syntax(static_cast< ::google::protobuf::Syntax >(value));
1142 } else { 1106 } else {
1143 goto handle_unusual; 1107 goto handle_unusual;
1144 } 1108 }
1145 if (input->ExpectAtEnd()) goto success;
1146 break; 1109 break;
1147 } 1110 }
1148 1111
1149 default: { 1112 default: {
1150 handle_unusual: 1113 handle_unusual:
1151 if (tag == 0 || 1114 if (tag == 0 ||
1152 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 1115 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1153 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 1116 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1154 goto success; 1117 goto success;
1155 } 1118 }
1156 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)) ; 1119 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)) ;
1157 break; 1120 break;
1158 } 1121 }
1159 } 1122 }
1160 } 1123 }
1161 success: 1124 success:
1162 // @@protoc_insertion_point(parse_success:google.protobuf.Method) 1125 // @@protoc_insertion_point(parse_success:google.protobuf.Method)
1163 return true; 1126 return true;
1164 failure: 1127 failure:
1165 // @@protoc_insertion_point(parse_failure:google.protobuf.Method) 1128 // @@protoc_insertion_point(parse_failure:google.protobuf.Method)
1166 return false; 1129 return false;
1167 #undef DO_ 1130 #undef DO_
1168 } 1131 }
1169 1132
1170 void Method::SerializeWithCachedSizes( 1133 void Method::SerializeWithCachedSizes(
1171 ::google::protobuf::io::CodedOutputStream* output) const { 1134 ::google::protobuf::io::CodedOutputStream* output) const {
1172 // @@protoc_insertion_point(serialize_start:google.protobuf.Method) 1135 // @@protoc_insertion_point(serialize_start:google.protobuf.Method)
1173 // optional string name = 1; 1136 // string name = 1;
1174 if (this->name().size() > 0) { 1137 if (this->name().size() > 0) {
1175 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1138 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1176 this->name().data(), this->name().length(), 1139 this->name().data(), this->name().length(),
1177 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1140 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1178 "google.protobuf.Method.name"); 1141 "google.protobuf.Method.name");
1179 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1142 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1180 1, this->name(), output); 1143 1, this->name(), output);
1181 } 1144 }
1182 1145
1183 // optional string request_type_url = 2; 1146 // string request_type_url = 2;
1184 if (this->request_type_url().size() > 0) { 1147 if (this->request_type_url().size() > 0) {
1185 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1148 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1186 this->request_type_url().data(), this->request_type_url().length(), 1149 this->request_type_url().data(), this->request_type_url().length(),
1187 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1150 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1188 "google.protobuf.Method.request_type_url"); 1151 "google.protobuf.Method.request_type_url");
1189 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1152 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1190 2, this->request_type_url(), output); 1153 2, this->request_type_url(), output);
1191 } 1154 }
1192 1155
1193 // optional bool request_streaming = 3; 1156 // bool request_streaming = 3;
1194 if (this->request_streaming() != 0) { 1157 if (this->request_streaming() != 0) {
1195 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->request_str eaming(), output); 1158 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->request_str eaming(), output);
1196 } 1159 }
1197 1160
1198 // optional string response_type_url = 4; 1161 // string response_type_url = 4;
1199 if (this->response_type_url().size() > 0) { 1162 if (this->response_type_url().size() > 0) {
1200 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1163 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1201 this->response_type_url().data(), this->response_type_url().length(), 1164 this->response_type_url().data(), this->response_type_url().length(),
1202 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1165 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1203 "google.protobuf.Method.response_type_url"); 1166 "google.protobuf.Method.response_type_url");
1204 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1167 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1205 4, this->response_type_url(), output); 1168 4, this->response_type_url(), output);
1206 } 1169 }
1207 1170
1208 // optional bool response_streaming = 5; 1171 // bool response_streaming = 5;
1209 if (this->response_streaming() != 0) { 1172 if (this->response_streaming() != 0) {
1210 ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->response_st reaming(), output); 1173 ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->response_st reaming(), output);
1211 } 1174 }
1212 1175
1213 // repeated .google.protobuf.Option options = 6; 1176 // repeated .google.protobuf.Option options = 6;
1214 for (unsigned int i = 0, n = this->options_size(); i < n; i++) { 1177 for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
1215 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1178 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1216 6, this->options(i), output); 1179 6, this->options(i), output);
1217 } 1180 }
1218 1181
1219 // optional .google.protobuf.Syntax syntax = 7; 1182 // .google.protobuf.Syntax syntax = 7;
1220 if (this->syntax() != 0) { 1183 if (this->syntax() != 0) {
1221 ::google::protobuf::internal::WireFormatLite::WriteEnum( 1184 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1222 7, this->syntax(), output); 1185 7, this->syntax(), output);
1223 } 1186 }
1224 1187
1225 // @@protoc_insertion_point(serialize_end:google.protobuf.Method) 1188 // @@protoc_insertion_point(serialize_end:google.protobuf.Method)
1226 } 1189 }
1227 1190
1228 ::google::protobuf::uint8* Method::SerializeWithCachedSizesToArray( 1191 ::google::protobuf::uint8* Method::InternalSerializeWithCachedSizesToArray(
1229 ::google::protobuf::uint8* target) const { 1192 bool deterministic, ::google::protobuf::uint8* target) const {
1193 (void)deterministic; // Unused
1230 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Method) 1194 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Method)
1231 // optional string name = 1; 1195 // string name = 1;
1232 if (this->name().size() > 0) { 1196 if (this->name().size() > 0) {
1233 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1197 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1234 this->name().data(), this->name().length(), 1198 this->name().data(), this->name().length(),
1235 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1199 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1236 "google.protobuf.Method.name"); 1200 "google.protobuf.Method.name");
1237 target = 1201 target =
1238 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1202 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1239 1, this->name(), target); 1203 1, this->name(), target);
1240 } 1204 }
1241 1205
1242 // optional string request_type_url = 2; 1206 // string request_type_url = 2;
1243 if (this->request_type_url().size() > 0) { 1207 if (this->request_type_url().size() > 0) {
1244 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1208 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1245 this->request_type_url().data(), this->request_type_url().length(), 1209 this->request_type_url().data(), this->request_type_url().length(),
1246 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1210 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1247 "google.protobuf.Method.request_type_url"); 1211 "google.protobuf.Method.request_type_url");
1248 target = 1212 target =
1249 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1213 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1250 2, this->request_type_url(), target); 1214 2, this->request_type_url(), target);
1251 } 1215 }
1252 1216
1253 // optional bool request_streaming = 3; 1217 // bool request_streaming = 3;
1254 if (this->request_streaming() != 0) { 1218 if (this->request_streaming() != 0) {
1255 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, t his->request_streaming(), target); 1219 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, t his->request_streaming(), target);
1256 } 1220 }
1257 1221
1258 // optional string response_type_url = 4; 1222 // string response_type_url = 4;
1259 if (this->response_type_url().size() > 0) { 1223 if (this->response_type_url().size() > 0) {
1260 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1224 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1261 this->response_type_url().data(), this->response_type_url().length(), 1225 this->response_type_url().data(), this->response_type_url().length(),
1262 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1226 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1263 "google.protobuf.Method.response_type_url"); 1227 "google.protobuf.Method.response_type_url");
1264 target = 1228 target =
1265 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1229 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1266 4, this->response_type_url(), target); 1230 4, this->response_type_url(), target);
1267 } 1231 }
1268 1232
1269 // optional bool response_streaming = 5; 1233 // bool response_streaming = 5;
1270 if (this->response_streaming() != 0) { 1234 if (this->response_streaming() != 0) {
1271 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, t his->response_streaming(), target); 1235 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, t his->response_streaming(), target);
1272 } 1236 }
1273 1237
1274 // repeated .google.protobuf.Option options = 6; 1238 // repeated .google.protobuf.Option options = 6;
1275 for (unsigned int i = 0, n = this->options_size(); i < n; i++) { 1239 for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
1276 target = ::google::protobuf::internal::WireFormatLite:: 1240 target = ::google::protobuf::internal::WireFormatLite::
1277 WriteMessageNoVirtualToArray( 1241 InternalWriteMessageNoVirtualToArray(
1278 6, this->options(i), target); 1242 6, this->options(i), false, target);
1279 } 1243 }
1280 1244
1281 // optional .google.protobuf.Syntax syntax = 7; 1245 // .google.protobuf.Syntax syntax = 7;
1282 if (this->syntax() != 0) { 1246 if (this->syntax() != 0) {
1283 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1247 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1284 7, this->syntax(), target); 1248 7, this->syntax(), target);
1285 } 1249 }
1286 1250
1287 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Method) 1251 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Method)
1288 return target; 1252 return target;
1289 } 1253 }
1290 1254
1291 int Method::ByteSize() const { 1255 size_t Method::ByteSizeLong() const {
1292 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Method) 1256 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Method)
1293 int total_size = 0; 1257 size_t total_size = 0;
1294 1258
1295 // optional string name = 1; 1259 // repeated .google.protobuf.Option options = 6;
1260 {
1261 unsigned int count = this->options_size();
1262 total_size += 1UL * count;
1263 for (unsigned int i = 0; i < count; i++) {
1264 total_size +=
1265 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1266 this->options(i));
1267 }
1268 }
1269
1270 // string name = 1;
1296 if (this->name().size() > 0) { 1271 if (this->name().size() > 0) {
1297 total_size += 1 + 1272 total_size += 1 +
1298 ::google::protobuf::internal::WireFormatLite::StringSize( 1273 ::google::protobuf::internal::WireFormatLite::StringSize(
1299 this->name()); 1274 this->name());
1300 } 1275 }
1301 1276
1302 // optional string request_type_url = 2; 1277 // string request_type_url = 2;
1303 if (this->request_type_url().size() > 0) { 1278 if (this->request_type_url().size() > 0) {
1304 total_size += 1 + 1279 total_size += 1 +
1305 ::google::protobuf::internal::WireFormatLite::StringSize( 1280 ::google::protobuf::internal::WireFormatLite::StringSize(
1306 this->request_type_url()); 1281 this->request_type_url());
1307 } 1282 }
1308 1283
1309 // optional bool request_streaming = 3; 1284 // string response_type_url = 4;
1310 if (this->request_streaming() != 0) {
1311 total_size += 1 + 1;
1312 }
1313
1314 // optional string response_type_url = 4;
1315 if (this->response_type_url().size() > 0) { 1285 if (this->response_type_url().size() > 0) {
1316 total_size += 1 + 1286 total_size += 1 +
1317 ::google::protobuf::internal::WireFormatLite::StringSize( 1287 ::google::protobuf::internal::WireFormatLite::StringSize(
1318 this->response_type_url()); 1288 this->response_type_url());
1319 } 1289 }
1320 1290
1321 // optional bool response_streaming = 5; 1291 // bool request_streaming = 3;
1292 if (this->request_streaming() != 0) {
1293 total_size += 1 + 1;
1294 }
1295
1296 // bool response_streaming = 5;
1322 if (this->response_streaming() != 0) { 1297 if (this->response_streaming() != 0) {
1323 total_size += 1 + 1; 1298 total_size += 1 + 1;
1324 } 1299 }
1325 1300
1326 // optional .google.protobuf.Syntax syntax = 7; 1301 // .google.protobuf.Syntax syntax = 7;
1327 if (this->syntax() != 0) { 1302 if (this->syntax() != 0) {
1328 total_size += 1 + 1303 total_size += 1 +
1329 ::google::protobuf::internal::WireFormatLite::EnumSize(this->syntax()); 1304 ::google::protobuf::internal::WireFormatLite::EnumSize(this->syntax());
1330 } 1305 }
1331 1306
1332 // repeated .google.protobuf.Option options = 6; 1307 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1333 total_size += 1 * this->options_size();
1334 for (int i = 0; i < this->options_size(); i++) {
1335 total_size +=
1336 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1337 this->options(i));
1338 }
1339
1340 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1308 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1341 _cached_size_ = total_size; 1309 _cached_size_ = cached_size;
1342 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1310 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1343 return total_size; 1311 return total_size;
1344 } 1312 }
1345 1313
1346 void Method::MergeFrom(const ::google::protobuf::Message& from) { 1314 void Method::MergeFrom(const ::google::protobuf::Message& from) {
1347 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Method) 1315 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Method)
1348 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1316 GOOGLE_DCHECK_NE(&from, this);
1349 const Method* source = 1317 const Method* source =
1350 ::google::protobuf::internal::DynamicCastToGenerated<const Method>( 1318 ::google::protobuf::internal::DynamicCastToGenerated<const Method>(
1351 &from); 1319 &from);
1352 if (source == NULL) { 1320 if (source == NULL) {
1353 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M ethod) 1321 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M ethod)
1354 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 1322 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1355 } else { 1323 } else {
1356 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.Method) 1324 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.Method)
1357 MergeFrom(*source); 1325 MergeFrom(*source);
1358 } 1326 }
1359 } 1327 }
1360 1328
1361 void Method::MergeFrom(const Method& from) { 1329 void Method::MergeFrom(const Method& from) {
1362 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Meth od) 1330 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Meth od)
1363 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1331 GOOGLE_DCHECK_NE(&from, this);
1332 _internal_metadata_.MergeFrom(from._internal_metadata_);
1364 options_.MergeFrom(from.options_); 1333 options_.MergeFrom(from.options_);
1365 if (from.name().size() > 0) { 1334 if (from.name().size() > 0) {
1366 1335
1367 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_); 1336 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
1368 } 1337 }
1369 if (from.request_type_url().size() > 0) { 1338 if (from.request_type_url().size() > 0) {
1370 1339
1371 request_type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), from.request_type_url_); 1340 request_type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), from.request_type_url_);
1372 } 1341 }
1373 if (from.request_streaming() != 0) {
1374 set_request_streaming(from.request_streaming());
1375 }
1376 if (from.response_type_url().size() > 0) { 1342 if (from.response_type_url().size() > 0) {
1377 1343
1378 response_type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), from.response_type_url_); 1344 response_type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), from.response_type_url_);
1379 } 1345 }
1346 if (from.request_streaming() != 0) {
1347 set_request_streaming(from.request_streaming());
1348 }
1380 if (from.response_streaming() != 0) { 1349 if (from.response_streaming() != 0) {
1381 set_response_streaming(from.response_streaming()); 1350 set_response_streaming(from.response_streaming());
1382 } 1351 }
1383 if (from.syntax() != 0) { 1352 if (from.syntax() != 0) {
1384 set_syntax(from.syntax()); 1353 set_syntax(from.syntax());
1385 } 1354 }
1386 } 1355 }
1387 1356
1388 void Method::CopyFrom(const ::google::protobuf::Message& from) { 1357 void Method::CopyFrom(const ::google::protobuf::Message& from) {
1389 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Method) 1358 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Method)
1390 if (&from == this) return; 1359 if (&from == this) return;
1391 Clear(); 1360 Clear();
1392 MergeFrom(from); 1361 MergeFrom(from);
1393 } 1362 }
1394 1363
1395 void Method::CopyFrom(const Method& from) { 1364 void Method::CopyFrom(const Method& from) {
1396 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Metho d) 1365 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Metho d)
1397 if (&from == this) return; 1366 if (&from == this) return;
1398 Clear(); 1367 Clear();
1399 MergeFrom(from); 1368 MergeFrom(from);
1400 } 1369 }
1401 1370
1402 bool Method::IsInitialized() const { 1371 bool Method::IsInitialized() const {
1403
1404 return true; 1372 return true;
1405 } 1373 }
1406 1374
1407 void Method::Swap(Method* other) { 1375 void Method::Swap(Method* other) {
1408 if (other == this) return; 1376 if (other == this) return;
1409 InternalSwap(other); 1377 InternalSwap(other);
1410 } 1378 }
1411 void Method::InternalSwap(Method* other) { 1379 void Method::InternalSwap(Method* other) {
1380 options_.UnsafeArenaSwap(&other->options_);
1412 name_.Swap(&other->name_); 1381 name_.Swap(&other->name_);
1413 request_type_url_.Swap(&other->request_type_url_); 1382 request_type_url_.Swap(&other->request_type_url_);
1383 response_type_url_.Swap(&other->response_type_url_);
1414 std::swap(request_streaming_, other->request_streaming_); 1384 std::swap(request_streaming_, other->request_streaming_);
1415 response_type_url_.Swap(&other->response_type_url_);
1416 std::swap(response_streaming_, other->response_streaming_); 1385 std::swap(response_streaming_, other->response_streaming_);
1417 options_.UnsafeArenaSwap(&other->options_);
1418 std::swap(syntax_, other->syntax_); 1386 std::swap(syntax_, other->syntax_);
1419 _internal_metadata_.Swap(&other->_internal_metadata_);
1420 std::swap(_cached_size_, other->_cached_size_); 1387 std::swap(_cached_size_, other->_cached_size_);
1421 } 1388 }
1422 1389
1423 ::google::protobuf::Metadata Method::GetMetadata() const { 1390 ::google::protobuf::Metadata Method::GetMetadata() const {
1424 protobuf_AssignDescriptorsOnce(); 1391 protobuf_AssignDescriptorsOnce();
1425 ::google::protobuf::Metadata metadata; 1392 return file_level_metadata[1];
1426 metadata.descriptor = Method_descriptor_;
1427 metadata.reflection = Method_reflection_;
1428 return metadata;
1429 } 1393 }
1430 1394
1431 #if PROTOBUF_INLINE_NOT_IN_HEADERS 1395 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1432 // Method 1396 // Method
1433 1397
1434 // optional string name = 1; 1398 // string name = 1;
1435 void Method::clear_name() { 1399 void Method::clear_name() {
1436 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 1400 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
1437 } 1401 }
1438 const ::std::string& Method::name() const { 1402 const ::std::string& Method::name() const {
1439 // @@protoc_insertion_point(field_get:google.protobuf.Method.name) 1403 // @@protoc_insertion_point(field_get:google.protobuf.Method.name)
1440 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 1404 return name_.GetNoArena();
1441 } 1405 }
1442 void Method::set_name(const ::std::string& value) { 1406 void Method::set_name(const ::std::string& value) {
1443 1407
1444 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1408 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1445 // @@protoc_insertion_point(field_set:google.protobuf.Method.name) 1409 // @@protoc_insertion_point(field_set:google.protobuf.Method.name)
1446 } 1410 }
1447 void Method::set_name(const char* value) { 1411 void Method::set_name(const char* value) {
1448 1412
1449 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1413 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1450 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.name) 1414 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.name)
1451 } 1415 }
1452 void Method::set_name(const char* value, size_t size) { 1416 void Method::set_name(const char* value, size_t size) {
1453 1417
1454 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1418 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1455 ::std::string(reinterpret_cast<const char*>(value), size)); 1419 ::std::string(reinterpret_cast<const char*>(value), size));
1456 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.name) 1420 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.name)
1457 } 1421 }
1458 ::std::string* Method::mutable_name() { 1422 ::std::string* Method::mutable_name() {
1459 1423
1460 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.name) 1424 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.name)
1461 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1425 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
1462 } 1426 }
1463 ::std::string* Method::release_name() { 1427 ::std::string* Method::release_name() {
1464 // @@protoc_insertion_point(field_release:google.protobuf.Method.name) 1428 // @@protoc_insertion_point(field_release:google.protobuf.Method.name)
1465 1429
1466 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1430 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
1467 } 1431 }
1468 void Method::set_allocated_name(::std::string* name) { 1432 void Method::set_allocated_name(::std::string* name) {
1469 if (name != NULL) { 1433 if (name != NULL) {
1470 1434
1471 } else { 1435 } else {
1472 1436
1473 } 1437 }
1474 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 1438 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
1475 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.name) 1439 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.name)
1476 } 1440 }
1477 1441
1478 // optional string request_type_url = 2; 1442 // string request_type_url = 2;
1479 void Method::clear_request_type_url() { 1443 void Method::clear_request_type_url() {
1480 request_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited()); 1444 request_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited());
1481 } 1445 }
1482 const ::std::string& Method::request_type_url() const { 1446 const ::std::string& Method::request_type_url() const {
1483 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_type_url) 1447 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_type_url)
1484 return request_type_url_.GetNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 1448 return request_type_url_.GetNoArena();
1485 } 1449 }
1486 void Method::set_request_type_url(const ::std::string& value) { 1450 void Method::set_request_type_url(const ::std::string& value) {
1487 1451
1488 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), value); 1452 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), value);
1489 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_type_url) 1453 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_type_url)
1490 } 1454 }
1491 void Method::set_request_type_url(const char* value) { 1455 void Method::set_request_type_url(const char* value) {
1492 1456
1493 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), ::std::string(value)); 1457 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), ::std::string(value));
1494 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.request_type _url) 1458 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.request_type _url)
1495 } 1459 }
1496 void Method::set_request_type_url(const char* value, size_t size) { 1460 void Method::set_request_type_url(const char* value, size_t size) {
1497 1461
1498 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), 1462 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(),
1499 ::std::string(reinterpret_cast<const char*>(value), size)); 1463 ::std::string(reinterpret_cast<const char*>(value), size));
1500 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.request_t ype_url) 1464 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.request_t ype_url)
1501 } 1465 }
1502 ::std::string* Method::mutable_request_type_url() { 1466 ::std::string* Method::mutable_request_type_url() {
1503 1467
1504 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.request_type_ url) 1468 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.request_type_ url)
1505 return request_type_url_.MutableNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()); 1469 return request_type_url_.MutableNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited());
1506 } 1470 }
1507 ::std::string* Method::release_request_type_url() { 1471 ::std::string* Method::release_request_type_url() {
1508 // @@protoc_insertion_point(field_release:google.protobuf.Method.request_type_ url) 1472 // @@protoc_insertion_point(field_release:google.protobuf.Method.request_type_ url)
1509 1473
1510 return request_type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()); 1474 return request_type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited());
1511 } 1475 }
1512 void Method::set_allocated_request_type_url(::std::string* request_type_url) { 1476 void Method::set_allocated_request_type_url(::std::string* request_type_url) {
1513 if (request_type_url != NULL) { 1477 if (request_type_url != NULL) {
1514 1478
1515 } else { 1479 } else {
1516 1480
1517 } 1481 }
1518 request_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), request_type_url); 1482 request_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), request_type_url);
1519 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.request _type_url) 1483 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.request _type_url)
1520 } 1484 }
1521 1485
1522 // optional bool request_streaming = 3; 1486 // bool request_streaming = 3;
1523 void Method::clear_request_streaming() { 1487 void Method::clear_request_streaming() {
1524 request_streaming_ = false; 1488 request_streaming_ = false;
1525 } 1489 }
1526 bool Method::request_streaming() const { 1490 bool Method::request_streaming() const {
1527 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_streaming ) 1491 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_streaming )
1528 return request_streaming_; 1492 return request_streaming_;
1529 } 1493 }
1530 void Method::set_request_streaming(bool value) { 1494 void Method::set_request_streaming(bool value) {
1531 1495
1532 request_streaming_ = value; 1496 request_streaming_ = value;
1533 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_streaming ) 1497 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_streaming )
1534 } 1498 }
1535 1499
1536 // optional string response_type_url = 4; 1500 // string response_type_url = 4;
1537 void Method::clear_response_type_url() { 1501 void Method::clear_response_type_url() {
1538 response_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited()); 1502 response_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
1539 } 1503 }
1540 const ::std::string& Method::response_type_url() const { 1504 const ::std::string& Method::response_type_url() const {
1541 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_type_url ) 1505 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_type_url )
1542 return response_type_url_.GetNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 1506 return response_type_url_.GetNoArena();
1543 } 1507 }
1544 void Method::set_response_type_url(const ::std::string& value) { 1508 void Method::set_response_type_url(const ::std::string& value) {
1545 1509
1546 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), value); 1510 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), value);
1547 // @@protoc_insertion_point(field_set:google.protobuf.Method.response_type_url ) 1511 // @@protoc_insertion_point(field_set:google.protobuf.Method.response_type_url )
1548 } 1512 }
1549 void Method::set_response_type_url(const char* value) { 1513 void Method::set_response_type_url(const char* value) {
1550 1514
1551 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), ::std::string(value)); 1515 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), ::std::string(value));
1552 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.response_typ e_url) 1516 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.response_typ e_url)
1553 } 1517 }
1554 void Method::set_response_type_url(const char* value, size_t size) { 1518 void Method::set_response_type_url(const char* value, size_t size) {
1555 1519
1556 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), 1520 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(),
1557 ::std::string(reinterpret_cast<const char*>(value), size)); 1521 ::std::string(reinterpret_cast<const char*>(value), size));
1558 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.response_ type_url) 1522 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.response_ type_url)
1559 } 1523 }
1560 ::std::string* Method::mutable_response_type_url() { 1524 ::std::string* Method::mutable_response_type_url() {
1561 1525
1562 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.response_type _url) 1526 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.response_type _url)
1563 return response_type_url_.MutableNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited()); 1527 return response_type_url_.MutableNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited());
1564 } 1528 }
1565 ::std::string* Method::release_response_type_url() { 1529 ::std::string* Method::release_response_type_url() {
1566 // @@protoc_insertion_point(field_release:google.protobuf.Method.response_type _url) 1530 // @@protoc_insertion_point(field_release:google.protobuf.Method.response_type _url)
1567 1531
1568 return response_type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited()); 1532 return response_type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited());
1569 } 1533 }
1570 void Method::set_allocated_response_type_url(::std::string* response_type_url) { 1534 void Method::set_allocated_response_type_url(::std::string* response_type_url) {
1571 if (response_type_url != NULL) { 1535 if (response_type_url != NULL) {
1572 1536
1573 } else { 1537 } else {
1574 1538
1575 } 1539 }
1576 response_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), response_type_url); 1540 response_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), response_type_url);
1577 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.respons e_type_url) 1541 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.respons e_type_url)
1578 } 1542 }
1579 1543
1580 // optional bool response_streaming = 5; 1544 // bool response_streaming = 5;
1581 void Method::clear_response_streaming() { 1545 void Method::clear_response_streaming() {
1582 response_streaming_ = false; 1546 response_streaming_ = false;
1583 } 1547 }
1584 bool Method::response_streaming() const { 1548 bool Method::response_streaming() const {
1585 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_streamin g) 1549 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_streamin g)
1586 return response_streaming_; 1550 return response_streaming_;
1587 } 1551 }
1588 void Method::set_response_streaming(bool value) { 1552 void Method::set_response_streaming(bool value) {
1589 1553
1590 response_streaming_ = value; 1554 response_streaming_ = value;
1591 // @@protoc_insertion_point(field_set:google.protobuf.Method.response_streamin g) 1555 // @@protoc_insertion_point(field_set:google.protobuf.Method.response_streamin g)
1592 } 1556 }
1593 1557
1594 // repeated .google.protobuf.Option options = 6; 1558 // repeated .google.protobuf.Option options = 6;
1595 int Method::options_size() const { 1559 int Method::options_size() const {
1596 return options_.size(); 1560 return options_.size();
1597 } 1561 }
1598 void Method::clear_options() { 1562 void Method::clear_options() {
(...skipping 15 matching lines...) Expand all
1614 Method::mutable_options() { 1578 Method::mutable_options() {
1615 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Method.options) 1579 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Method.options)
1616 return &options_; 1580 return &options_;
1617 } 1581 }
1618 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& 1582 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
1619 Method::options() const { 1583 Method::options() const {
1620 // @@protoc_insertion_point(field_list:google.protobuf.Method.options) 1584 // @@protoc_insertion_point(field_list:google.protobuf.Method.options)
1621 return options_; 1585 return options_;
1622 } 1586 }
1623 1587
1624 // optional .google.protobuf.Syntax syntax = 7; 1588 // .google.protobuf.Syntax syntax = 7;
1625 void Method::clear_syntax() { 1589 void Method::clear_syntax() {
1626 syntax_ = 0; 1590 syntax_ = 0;
1627 } 1591 }
1628 ::google::protobuf::Syntax Method::syntax() const { 1592 ::google::protobuf::Syntax Method::syntax() const {
1629 // @@protoc_insertion_point(field_get:google.protobuf.Method.syntax) 1593 // @@protoc_insertion_point(field_get:google.protobuf.Method.syntax)
1630 return static_cast< ::google::protobuf::Syntax >(syntax_); 1594 return static_cast< ::google::protobuf::Syntax >(syntax_);
1631 } 1595 }
1632 void Method::set_syntax(::google::protobuf::Syntax value) { 1596 void Method::set_syntax(::google::protobuf::Syntax value) {
1633 1597
1634 syntax_ = value; 1598 syntax_ = value;
1635 // @@protoc_insertion_point(field_set:google.protobuf.Method.syntax) 1599 // @@protoc_insertion_point(field_set:google.protobuf.Method.syntax)
1636 } 1600 }
1637 1601
1638 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 1602 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1639 1603
1640 // =================================================================== 1604 // ===================================================================
1641 1605
1642 #if !defined(_MSC_VER) || _MSC_VER >= 1900 1606 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1643 const int Mixin::kNameFieldNumber; 1607 const int Mixin::kNameFieldNumber;
1644 const int Mixin::kRootFieldNumber; 1608 const int Mixin::kRootFieldNumber;
1645 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 1609 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1646 1610
1647 Mixin::Mixin() 1611 Mixin::Mixin()
1648 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 1612 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1613 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1614 protobuf_InitDefaults_google_2fprotobuf_2fapi_2eproto();
1615 }
1649 SharedCtor(); 1616 SharedCtor();
1650 // @@protoc_insertion_point(constructor:google.protobuf.Mixin) 1617 // @@protoc_insertion_point(constructor:google.protobuf.Mixin)
1651 } 1618 }
1652
1653 void Mixin::InitAsDefaultInstance() {
1654 _is_default_instance_ = true;
1655 }
1656
1657 Mixin::Mixin(const Mixin& from) 1619 Mixin::Mixin(const Mixin& from)
1658 : ::google::protobuf::Message(), 1620 : ::google::protobuf::Message(),
1659 _internal_metadata_(NULL) { 1621 _internal_metadata_(NULL),
1660 SharedCtor(); 1622 _cached_size_(0) {
1661 MergeFrom(from); 1623 _internal_metadata_.MergeFrom(from._internal_metadata_);
1624 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
1625 if (from.name().size() > 0) {
1626 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
1627 }
1628 root_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
1629 if (from.root().size() > 0) {
1630 root_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.root_);
1631 }
1662 // @@protoc_insertion_point(copy_constructor:google.protobuf.Mixin) 1632 // @@protoc_insertion_point(copy_constructor:google.protobuf.Mixin)
1663 } 1633 }
1664 1634
1665 void Mixin::SharedCtor() { 1635 void Mixin::SharedCtor() {
1666 _is_default_instance_ = false;
1667 ::google::protobuf::internal::GetEmptyString();
1668 _cached_size_ = 0;
1669 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 1636 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
1670 root_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 1637 root_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
1638 _cached_size_ = 0;
1671 } 1639 }
1672 1640
1673 Mixin::~Mixin() { 1641 Mixin::~Mixin() {
1674 // @@protoc_insertion_point(destructor:google.protobuf.Mixin) 1642 // @@protoc_insertion_point(destructor:google.protobuf.Mixin)
1675 SharedDtor(); 1643 SharedDtor();
1676 } 1644 }
1677 1645
1678 void Mixin::SharedDtor() { 1646 void Mixin::SharedDtor() {
1679 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 1647 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
1680 root_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 1648 root_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
1681 if (this != default_instance_) {
1682 }
1683 } 1649 }
1684 1650
1685 void Mixin::SetCachedSize(int size) const { 1651 void Mixin::SetCachedSize(int size) const {
1686 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1652 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1687 _cached_size_ = size; 1653 _cached_size_ = size;
1688 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1654 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1689 } 1655 }
1690 const ::google::protobuf::Descriptor* Mixin::descriptor() { 1656 const ::google::protobuf::Descriptor* Mixin::descriptor() {
1691 protobuf_AssignDescriptorsOnce(); 1657 protobuf_AssignDescriptorsOnce();
1692 return Mixin_descriptor_; 1658 return file_level_metadata[2].descriptor;
1693 } 1659 }
1694 1660
1695 const Mixin& Mixin::default_instance() { 1661 const Mixin& Mixin::default_instance() {
1696 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fapi_2eprot o(); 1662 protobuf_InitDefaults_google_2fprotobuf_2fapi_2eproto();
1697 return *default_instance_; 1663 return *internal_default_instance();
1698 } 1664 }
1699 1665
1700 Mixin* Mixin::default_instance_ = NULL;
1701
1702 Mixin* Mixin::New(::google::protobuf::Arena* arena) const { 1666 Mixin* Mixin::New(::google::protobuf::Arena* arena) const {
1703 Mixin* n = new Mixin; 1667 Mixin* n = new Mixin;
1704 if (arena != NULL) { 1668 if (arena != NULL) {
1705 arena->Own(n); 1669 arena->Own(n);
1706 } 1670 }
1707 return n; 1671 return n;
1708 } 1672 }
1709 1673
1710 void Mixin::Clear() { 1674 void Mixin::Clear() {
1711 // @@protoc_insertion_point(message_clear_start:google.protobuf.Mixin) 1675 // @@protoc_insertion_point(message_clear_start:google.protobuf.Mixin)
1712 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 1676 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
1713 root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 1677 root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
1714 } 1678 }
1715 1679
1716 bool Mixin::MergePartialFromCodedStream( 1680 bool Mixin::MergePartialFromCodedStream(
1717 ::google::protobuf::io::CodedInputStream* input) { 1681 ::google::protobuf::io::CodedInputStream* input) {
1718 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 1682 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1719 ::google::protobuf::uint32 tag; 1683 ::google::protobuf::uint32 tag;
1720 // @@protoc_insertion_point(parse_start:google.protobuf.Mixin) 1684 // @@protoc_insertion_point(parse_start:google.protobuf.Mixin)
1721 for (;;) { 1685 for (;;) {
1722 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 1686 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
1723 tag = p.first; 1687 tag = p.first;
1724 if (!p.second) goto handle_unusual; 1688 if (!p.second) goto handle_unusual;
1725 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 1689 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
1726 // optional string name = 1; 1690 // string name = 1;
1727 case 1: { 1691 case 1: {
1728 if (tag == 10) { 1692 if (tag == 10u) {
1729 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1693 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1730 input, this->mutable_name())); 1694 input, this->mutable_name()));
1731 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1695 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1732 this->name().data(), this->name().length(), 1696 this->name().data(), this->name().length(),
1733 ::google::protobuf::internal::WireFormatLite::PARSE, 1697 ::google::protobuf::internal::WireFormatLite::PARSE,
1734 "google.protobuf.Mixin.name")); 1698 "google.protobuf.Mixin.name"));
1735 } else { 1699 } else {
1736 goto handle_unusual; 1700 goto handle_unusual;
1737 } 1701 }
1738 if (input->ExpectTag(18)) goto parse_root;
1739 break; 1702 break;
1740 } 1703 }
1741 1704
1742 // optional string root = 2; 1705 // string root = 2;
1743 case 2: { 1706 case 2: {
1744 if (tag == 18) { 1707 if (tag == 18u) {
1745 parse_root:
1746 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1708 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1747 input, this->mutable_root())); 1709 input, this->mutable_root()));
1748 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1710 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1749 this->root().data(), this->root().length(), 1711 this->root().data(), this->root().length(),
1750 ::google::protobuf::internal::WireFormatLite::PARSE, 1712 ::google::protobuf::internal::WireFormatLite::PARSE,
1751 "google.protobuf.Mixin.root")); 1713 "google.protobuf.Mixin.root"));
1752 } else { 1714 } else {
1753 goto handle_unusual; 1715 goto handle_unusual;
1754 } 1716 }
1755 if (input->ExpectAtEnd()) goto success;
1756 break; 1717 break;
1757 } 1718 }
1758 1719
1759 default: { 1720 default: {
1760 handle_unusual: 1721 handle_unusual:
1761 if (tag == 0 || 1722 if (tag == 0 ||
1762 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 1723 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1763 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 1724 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1764 goto success; 1725 goto success;
1765 } 1726 }
1766 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)) ; 1727 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)) ;
1767 break; 1728 break;
1768 } 1729 }
1769 } 1730 }
1770 } 1731 }
1771 success: 1732 success:
1772 // @@protoc_insertion_point(parse_success:google.protobuf.Mixin) 1733 // @@protoc_insertion_point(parse_success:google.protobuf.Mixin)
1773 return true; 1734 return true;
1774 failure: 1735 failure:
1775 // @@protoc_insertion_point(parse_failure:google.protobuf.Mixin) 1736 // @@protoc_insertion_point(parse_failure:google.protobuf.Mixin)
1776 return false; 1737 return false;
1777 #undef DO_ 1738 #undef DO_
1778 } 1739 }
1779 1740
1780 void Mixin::SerializeWithCachedSizes( 1741 void Mixin::SerializeWithCachedSizes(
1781 ::google::protobuf::io::CodedOutputStream* output) const { 1742 ::google::protobuf::io::CodedOutputStream* output) const {
1782 // @@protoc_insertion_point(serialize_start:google.protobuf.Mixin) 1743 // @@protoc_insertion_point(serialize_start:google.protobuf.Mixin)
1783 // optional string name = 1; 1744 // string name = 1;
1784 if (this->name().size() > 0) { 1745 if (this->name().size() > 0) {
1785 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1746 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1786 this->name().data(), this->name().length(), 1747 this->name().data(), this->name().length(),
1787 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1748 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1788 "google.protobuf.Mixin.name"); 1749 "google.protobuf.Mixin.name");
1789 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1750 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1790 1, this->name(), output); 1751 1, this->name(), output);
1791 } 1752 }
1792 1753
1793 // optional string root = 2; 1754 // string root = 2;
1794 if (this->root().size() > 0) { 1755 if (this->root().size() > 0) {
1795 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1756 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1796 this->root().data(), this->root().length(), 1757 this->root().data(), this->root().length(),
1797 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1758 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1798 "google.protobuf.Mixin.root"); 1759 "google.protobuf.Mixin.root");
1799 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1760 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1800 2, this->root(), output); 1761 2, this->root(), output);
1801 } 1762 }
1802 1763
1803 // @@protoc_insertion_point(serialize_end:google.protobuf.Mixin) 1764 // @@protoc_insertion_point(serialize_end:google.protobuf.Mixin)
1804 } 1765 }
1805 1766
1806 ::google::protobuf::uint8* Mixin::SerializeWithCachedSizesToArray( 1767 ::google::protobuf::uint8* Mixin::InternalSerializeWithCachedSizesToArray(
1807 ::google::protobuf::uint8* target) const { 1768 bool deterministic, ::google::protobuf::uint8* target) const {
1769 (void)deterministic; // Unused
1808 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Mixin) 1770 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Mixin)
1809 // optional string name = 1; 1771 // string name = 1;
1810 if (this->name().size() > 0) { 1772 if (this->name().size() > 0) {
1811 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1773 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1812 this->name().data(), this->name().length(), 1774 this->name().data(), this->name().length(),
1813 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1775 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1814 "google.protobuf.Mixin.name"); 1776 "google.protobuf.Mixin.name");
1815 target = 1777 target =
1816 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1778 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1817 1, this->name(), target); 1779 1, this->name(), target);
1818 } 1780 }
1819 1781
1820 // optional string root = 2; 1782 // string root = 2;
1821 if (this->root().size() > 0) { 1783 if (this->root().size() > 0) {
1822 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1784 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1823 this->root().data(), this->root().length(), 1785 this->root().data(), this->root().length(),
1824 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1786 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1825 "google.protobuf.Mixin.root"); 1787 "google.protobuf.Mixin.root");
1826 target = 1788 target =
1827 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1789 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1828 2, this->root(), target); 1790 2, this->root(), target);
1829 } 1791 }
1830 1792
1831 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Mixin) 1793 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Mixin)
1832 return target; 1794 return target;
1833 } 1795 }
1834 1796
1835 int Mixin::ByteSize() const { 1797 size_t Mixin::ByteSizeLong() const {
1836 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Mixin) 1798 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Mixin)
1837 int total_size = 0; 1799 size_t total_size = 0;
1838 1800
1839 // optional string name = 1; 1801 // string name = 1;
1840 if (this->name().size() > 0) { 1802 if (this->name().size() > 0) {
1841 total_size += 1 + 1803 total_size += 1 +
1842 ::google::protobuf::internal::WireFormatLite::StringSize( 1804 ::google::protobuf::internal::WireFormatLite::StringSize(
1843 this->name()); 1805 this->name());
1844 } 1806 }
1845 1807
1846 // optional string root = 2; 1808 // string root = 2;
1847 if (this->root().size() > 0) { 1809 if (this->root().size() > 0) {
1848 total_size += 1 + 1810 total_size += 1 +
1849 ::google::protobuf::internal::WireFormatLite::StringSize( 1811 ::google::protobuf::internal::WireFormatLite::StringSize(
1850 this->root()); 1812 this->root());
1851 } 1813 }
1852 1814
1815 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1853 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1816 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1854 _cached_size_ = total_size; 1817 _cached_size_ = cached_size;
1855 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1818 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1856 return total_size; 1819 return total_size;
1857 } 1820 }
1858 1821
1859 void Mixin::MergeFrom(const ::google::protobuf::Message& from) { 1822 void Mixin::MergeFrom(const ::google::protobuf::Message& from) {
1860 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Mixin) 1823 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Mixin)
1861 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1824 GOOGLE_DCHECK_NE(&from, this);
1862 const Mixin* source = 1825 const Mixin* source =
1863 ::google::protobuf::internal::DynamicCastToGenerated<const Mixin>( 1826 ::google::protobuf::internal::DynamicCastToGenerated<const Mixin>(
1864 &from); 1827 &from);
1865 if (source == NULL) { 1828 if (source == NULL) {
1866 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M ixin) 1829 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M ixin)
1867 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 1830 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1868 } else { 1831 } else {
1869 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.Mixin) 1832 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.Mixin)
1870 MergeFrom(*source); 1833 MergeFrom(*source);
1871 } 1834 }
1872 } 1835 }
1873 1836
1874 void Mixin::MergeFrom(const Mixin& from) { 1837 void Mixin::MergeFrom(const Mixin& from) {
1875 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Mixi n) 1838 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Mixi n)
1876 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1839 GOOGLE_DCHECK_NE(&from, this);
1840 _internal_metadata_.MergeFrom(from._internal_metadata_);
1877 if (from.name().size() > 0) { 1841 if (from.name().size() > 0) {
1878 1842
1879 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_); 1843 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
1880 } 1844 }
1881 if (from.root().size() > 0) { 1845 if (from.root().size() > 0) {
1882 1846
1883 root_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.root_); 1847 root_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.root_);
1884 } 1848 }
1885 } 1849 }
1886 1850
1887 void Mixin::CopyFrom(const ::google::protobuf::Message& from) { 1851 void Mixin::CopyFrom(const ::google::protobuf::Message& from) {
1888 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Mixin) 1852 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Mixin)
1889 if (&from == this) return; 1853 if (&from == this) return;
1890 Clear(); 1854 Clear();
1891 MergeFrom(from); 1855 MergeFrom(from);
1892 } 1856 }
1893 1857
1894 void Mixin::CopyFrom(const Mixin& from) { 1858 void Mixin::CopyFrom(const Mixin& from) {
1895 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Mixin ) 1859 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Mixin )
1896 if (&from == this) return; 1860 if (&from == this) return;
1897 Clear(); 1861 Clear();
1898 MergeFrom(from); 1862 MergeFrom(from);
1899 } 1863 }
1900 1864
1901 bool Mixin::IsInitialized() const { 1865 bool Mixin::IsInitialized() const {
1902
1903 return true; 1866 return true;
1904 } 1867 }
1905 1868
1906 void Mixin::Swap(Mixin* other) { 1869 void Mixin::Swap(Mixin* other) {
1907 if (other == this) return; 1870 if (other == this) return;
1908 InternalSwap(other); 1871 InternalSwap(other);
1909 } 1872 }
1910 void Mixin::InternalSwap(Mixin* other) { 1873 void Mixin::InternalSwap(Mixin* other) {
1911 name_.Swap(&other->name_); 1874 name_.Swap(&other->name_);
1912 root_.Swap(&other->root_); 1875 root_.Swap(&other->root_);
1913 _internal_metadata_.Swap(&other->_internal_metadata_);
1914 std::swap(_cached_size_, other->_cached_size_); 1876 std::swap(_cached_size_, other->_cached_size_);
1915 } 1877 }
1916 1878
1917 ::google::protobuf::Metadata Mixin::GetMetadata() const { 1879 ::google::protobuf::Metadata Mixin::GetMetadata() const {
1918 protobuf_AssignDescriptorsOnce(); 1880 protobuf_AssignDescriptorsOnce();
1919 ::google::protobuf::Metadata metadata; 1881 return file_level_metadata[2];
1920 metadata.descriptor = Mixin_descriptor_;
1921 metadata.reflection = Mixin_reflection_;
1922 return metadata;
1923 } 1882 }
1924 1883
1925 #if PROTOBUF_INLINE_NOT_IN_HEADERS 1884 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1926 // Mixin 1885 // Mixin
1927 1886
1928 // optional string name = 1; 1887 // string name = 1;
1929 void Mixin::clear_name() { 1888 void Mixin::clear_name() {
1930 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 1889 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
1931 } 1890 }
1932 const ::std::string& Mixin::name() const { 1891 const ::std::string& Mixin::name() const {
1933 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.name) 1892 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.name)
1934 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 1893 return name_.GetNoArena();
1935 } 1894 }
1936 void Mixin::set_name(const ::std::string& value) { 1895 void Mixin::set_name(const ::std::string& value) {
1937 1896
1938 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1897 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1939 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.name) 1898 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.name)
1940 } 1899 }
1941 void Mixin::set_name(const char* value) { 1900 void Mixin::set_name(const char* value) {
1942 1901
1943 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1902 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1944 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.name) 1903 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.name)
1945 } 1904 }
1946 void Mixin::set_name(const char* value, size_t size) { 1905 void Mixin::set_name(const char* value, size_t size) {
1947 1906
1948 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1907 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1949 ::std::string(reinterpret_cast<const char*>(value), size)); 1908 ::std::string(reinterpret_cast<const char*>(value), size));
1950 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.name) 1909 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.name)
1951 } 1910 }
1952 ::std::string* Mixin::mutable_name() { 1911 ::std::string* Mixin::mutable_name() {
1953 1912
1954 // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.name) 1913 // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.name)
1955 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1914 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
1956 } 1915 }
1957 ::std::string* Mixin::release_name() { 1916 ::std::string* Mixin::release_name() {
1958 // @@protoc_insertion_point(field_release:google.protobuf.Mixin.name) 1917 // @@protoc_insertion_point(field_release:google.protobuf.Mixin.name)
1959 1918
1960 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1919 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
1961 } 1920 }
1962 void Mixin::set_allocated_name(::std::string* name) { 1921 void Mixin::set_allocated_name(::std::string* name) {
1963 if (name != NULL) { 1922 if (name != NULL) {
1964 1923
1965 } else { 1924 } else {
1966 1925
1967 } 1926 }
1968 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 1927 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
1969 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.name) 1928 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.name)
1970 } 1929 }
1971 1930
1972 // optional string root = 2; 1931 // string root = 2;
1973 void Mixin::clear_root() { 1932 void Mixin::clear_root() {
1974 root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 1933 root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
1975 } 1934 }
1976 const ::std::string& Mixin::root() const { 1935 const ::std::string& Mixin::root() const {
1977 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.root) 1936 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.root)
1978 return root_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 1937 return root_.GetNoArena();
1979 } 1938 }
1980 void Mixin::set_root(const ::std::string& value) { 1939 void Mixin::set_root(const ::std::string& value) {
1981 1940
1982 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1941 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1983 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.root) 1942 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.root)
1984 } 1943 }
1985 void Mixin::set_root(const char* value) { 1944 void Mixin::set_root(const char* value) {
1986 1945
1987 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1946 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1988 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.root) 1947 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.root)
1989 } 1948 }
1990 void Mixin::set_root(const char* value, size_t size) { 1949 void Mixin::set_root(const char* value, size_t size) {
1991 1950
1992 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1951 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1993 ::std::string(reinterpret_cast<const char*>(value), size)); 1952 ::std::string(reinterpret_cast<const char*>(value), size));
1994 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.root) 1953 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.root)
1995 } 1954 }
1996 ::std::string* Mixin::mutable_root() { 1955 ::std::string* Mixin::mutable_root() {
1997 1956
1998 // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.root) 1957 // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.root)
1999 return root_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1958 return root_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
2000 } 1959 }
2001 ::std::string* Mixin::release_root() { 1960 ::std::string* Mixin::release_root() {
2002 // @@protoc_insertion_point(field_release:google.protobuf.Mixin.root) 1961 // @@protoc_insertion_point(field_release:google.protobuf.Mixin.root)
2003 1962
2004 return root_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1963 return root_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
2005 } 1964 }
2006 void Mixin::set_allocated_root(::std::string* root) { 1965 void Mixin::set_allocated_root(::std::string* root) {
2007 if (root != NULL) { 1966 if (root != NULL) {
2008 1967
2009 } else { 1968 } else {
2010 1969
2011 } 1970 }
2012 root_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), root); 1971 root_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), root);
2013 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.root) 1972 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.root)
2014 } 1973 }
2015 1974
2016 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 1975 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
2017 1976
2018 // @@protoc_insertion_point(namespace_scope) 1977 // @@protoc_insertion_point(namespace_scope)
2019 1978
2020 } // namespace protobuf 1979 } // namespace protobuf
2021 } // namespace google 1980 } // namespace google
2022 1981
2023 // @@protoc_insertion_point(global_scope) 1982 // @@protoc_insertion_point(global_scope)
OLDNEW
« no previous file with comments | « third_party/protobuf/src/google/protobuf/api.pb.h ('k') | third_party/protobuf/src/google/protobuf/arena.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698