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

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

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