1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/api.proto
3
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include <google/protobuf/api.pb.h>
6
7 #include <algorithm>
8
9 #include <google/protobuf/stubs/common.h>
10 #include <google/protobuf/stubs/port.h>
11 #include <google/protobuf/stubs/once.h>
12 #include <google/protobuf/io/coded_stream.h>
13 #include <google/protobuf/wire_format_lite_inl.h>
14 #include <google/protobuf/descriptor.h>
15 #include <google/protobuf/generated_message_reflection.h>
16 #include <google/protobuf/reflection_ops.h>
17 #include <google/protobuf/wire_format.h>
18 // @@protoc_insertion_point(includes)
19
20 namespace google {
21 namespace protobuf {
22 class ApiDefaultTypeInternal {
23 public:
24 ::google::protobuf::internal::ExplicitlyConstructed<Api>
25 _instance;
26 } _Api_default_instance_;
27 class MethodDefaultTypeInternal {
28 public:
29 ::google::protobuf::internal::ExplicitlyConstructed<Method>
30 _instance;
31 } _Method_default_instance_;
32 class MixinDefaultTypeInternal {
33 public:
34 ::google::protobuf::internal::ExplicitlyConstructed<Mixin>
35 _instance;
36 } _Mixin_default_instance_;
37
38 namespace protobuf_google_2fprotobuf_2fapi_2eproto {
39
40
41 namespace {
42
43 ::google::protobuf::Metadata file_level_metadata[3];
44
45 } // namespace
46
47 PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField
48 const TableStruct::entries[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
49 {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0},
50 };
51
52 PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField
53 const TableStruct::aux[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
54 ::google::protobuf::internal::AuxillaryParseTableField(),
55 };
56 PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const
57 TableStruct::schema[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
58 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
59 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
60 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
61 };
62
63 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
64 ~0u, // no _has_bits_
65 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, _internal_metadata_),
66 ~0u, // no _extensions_
67 ~0u, // no _oneof_case_
68 ~0u, // no _weak_field_map_
69 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, name_),
70 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, methods_),
71 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, options_),
72 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, version_),
73 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, source_context_),
74 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, mixins_),
75 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, syntax_),
76 ~0u, // no _has_bits_
77 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, _internal_metadata_),
78 ~0u, // no _extensions_
79 ~0u, // no _oneof_case_
80 ~0u, // no _weak_field_map_
81 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, name_),
82 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, request_type_url_),
83 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, request_streaming_),
84 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, response_type_url_),
85 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, response_streaming_),
86 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, options_),
87 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, syntax_),
88 ~0u, // no _has_bits_
89 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mixin, _internal_metadata_),
90 ~0u, // no _extensions_
91 ~0u, // no _oneof_case_
92 ~0u, // no _weak_field_map_
93 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mixin, name_),
94 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mixin, root_),
95 };
96 static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
97 { 0, -1, sizeof(Api)},
98 { 12, -1, sizeof(Method)},
99 { 24, -1, sizeof(Mixin)},
100 };
101
102 static ::google::protobuf::Message const * const file_default_instances[] = {
103 reinterpret_cast<const ::google::protobuf::Message*>(&_Api_default_instance_),
104 reinterpret_cast<const ::google::protobuf::Message*>(&_Method_default_instance_),
105 reinterpret_cast<const ::google::protobuf::Message*>(&_Mixin_default_instance_),
106 };
107
108 namespace {
109
protobuf_AssignDescriptors()110 void protobuf_AssignDescriptors() {
111 AddDescriptors();
112 ::google::protobuf::MessageFactory* factory = NULL;
113 AssignDescriptors(
114 "google/protobuf/api.proto", schemas, file_default_instances, TableStruct::offsets, factory,
115 file_level_metadata, NULL, NULL);
116 }
117
protobuf_AssignDescriptorsOnce()118 void protobuf_AssignDescriptorsOnce() {
119 static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
120 ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
121 }
122
123 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
protobuf_RegisterTypes(const::std::string &)124 void protobuf_RegisterTypes(const ::std::string&) {
125 protobuf_AssignDescriptorsOnce();
126 ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
127 }
128
129 } // namespace
InitDefaultsImpl()130 void TableStruct::InitDefaultsImpl() {
131 GOOGLE_PROTOBUF_VERIFY_VERSION;
132
133 ::google::protobuf::internal::InitProtobufDefaults();
134 ::google::protobuf::protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto::InitDefaults();
135 ::google::protobuf::protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaults();
136 _Api_default_instance_._instance.DefaultConstruct();
137 ::google::protobuf::internal::OnShutdownDestroyMessage(
138 &_Api_default_instance_);_Method_default_instance_._instance.DefaultConstruct();
139 ::google::protobuf::internal::OnShutdownDestroyMessage(
140 &_Method_default_instance_);_Mixin_default_instance_._instance.DefaultConstruct();
141 ::google::protobuf::internal::OnShutdownDestroyMessage(
142 &_Mixin_default_instance_);_Api_default_instance_._instance.get_mutable()->source_context_ = const_cast< ::google::protobuf::SourceContext*>(
143 ::google::protobuf::SourceContext::internal_default_instance());
144 }
145
InitDefaults()146 void InitDefaults() {
147 static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
148 ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl);
149 }
150 namespace {
AddDescriptorsImpl()151 void AddDescriptorsImpl() {
152 InitDefaults();
153 static const char descriptor[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
154 "\n\031google/protobuf/api.proto\022\017google.prot"
155 "obuf\032$google/protobuf/source_context.pro"
156 "to\032\032google/protobuf/type.proto\"\201\002\n\003Api\022\014"
157 "\n\004name\030\001 \001(\t\022(\n\007methods\030\002 \003(\0132\027.google.p"
158 "rotobuf.Method\022(\n\007options\030\003 \003(\0132\027.google"
159 ".protobuf.Option\022\017\n\007version\030\004 \001(\t\0226\n\016sou"
160 "rce_context\030\005 \001(\0132\036.google.protobuf.Sour"
161 "ceContext\022&\n\006mixins\030\006 \003(\0132\026.google.proto"
162 "buf.Mixin\022\'\n\006syntax\030\007 \001(\0162\027.google.proto"
163 "buf.Syntax\"\325\001\n\006Method\022\014\n\004name\030\001 \001(\t\022\030\n\020r"
164 "equest_type_url\030\002 \001(\t\022\031\n\021request_streami"
165 "ng\030\003 \001(\010\022\031\n\021response_type_url\030\004 \001(\t\022\032\n\022r"
166 "esponse_streaming\030\005 \001(\010\022(\n\007options\030\006 \003(\013"
167 "2\027.google.protobuf.Option\022\'\n\006syntax\030\007 \001("
168 "\0162\027.google.protobuf.Syntax\"#\n\005Mixin\022\014\n\004n"
169 "ame\030\001 \001(\t\022\014\n\004root\030\002 \001(\tBu\n\023com.google.pr"
170 "otobufB\010ApiProtoP\001Z+google.golang.org/ge"
171 "nproto/protobuf/api;api\242\002\003GPB\252\002\036Google.P"
172 "rotobuf.WellKnownTypesb\006proto3"
173 };
174 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
175 descriptor, 750);
176 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
177 "google/protobuf/api.proto", &protobuf_RegisterTypes);
178 ::google::protobuf::protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto::AddDescriptors();
179 ::google::protobuf::protobuf_google_2fprotobuf_2ftype_2eproto::AddDescriptors();
180 }
181 } // anonymous namespace
182
AddDescriptors()183 void AddDescriptors() {
184 static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
185 ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
186 }
187 // Force AddDescriptors() to be called at dynamic initialization time.
188 struct StaticDescriptorInitializer {
StaticDescriptorInitializergoogle::protobuf::protobuf_google_2fprotobuf_2fapi_2eproto::StaticDescriptorInitializer189 StaticDescriptorInitializer() {
190 AddDescriptors();
191 }
192 } static_descriptor_initializer;
193
194 } // namespace protobuf_google_2fprotobuf_2fapi_2eproto
195
196
197 // ===================================================================
198
199 #if !defined(_MSC_VER) || _MSC_VER >= 1900
200 const int Api::kNameFieldNumber;
201 const int Api::kMethodsFieldNumber;
202 const int Api::kOptionsFieldNumber;
203 const int Api::kVersionFieldNumber;
204 const int Api::kSourceContextFieldNumber;
205 const int Api::kMixinsFieldNumber;
206 const int Api::kSyntaxFieldNumber;
207 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
208
Api()209 Api::Api()
210 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
211 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
212 protobuf_google_2fprotobuf_2fapi_2eproto::InitDefaults();
213 }
214 SharedCtor();
215 // @@protoc_insertion_point(constructor:google.protobuf.Api)
216 }
Api(const Api & from)217 Api::Api(const Api& from)
218 : ::google::protobuf::Message(),
219 _internal_metadata_(NULL),
220 methods_(from.methods_),
221 options_(from.options_),
222 mixins_(from.mixins_),
223 _cached_size_(0) {
224 _internal_metadata_.MergeFrom(from._internal_metadata_);
225 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
226 if (from.name().size() > 0) {
227 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
228 }
229 version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
230 if (from.version().size() > 0) {
231 version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_);
232 }
233 if (from.has_source_context()) {
234 source_context_ = new ::google::protobuf::SourceContext(*from.source_context_);
235 } else {
236 source_context_ = NULL;
237 }
238 syntax_ = from.syntax_;
239 // @@protoc_insertion_point(copy_constructor:google.protobuf.Api)
240 }
241
SharedCtor()242 void Api::SharedCtor() {
243 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
244 version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
245 ::memset(&source_context_, 0, static_cast<size_t>(
246 reinterpret_cast<char*>(&syntax_) -
247 reinterpret_cast<char*>(&source_context_)) + sizeof(syntax_));
248 _cached_size_ = 0;
249 }
250
~Api()251 Api::~Api() {
252 // @@protoc_insertion_point(destructor:google.protobuf.Api)
253 SharedDtor();
254 }
255
SharedDtor()256 void Api::SharedDtor() {
257 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
258 version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
259 if (this != internal_default_instance()) delete source_context_;
260 }
261
SetCachedSize(int size) const262 void Api::SetCachedSize(int size) const {
263 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
264 _cached_size_ = size;
265 GOOGLE_SAFE_CONCURRENT_WRITES_END();
266 }
descriptor()267 const ::google::protobuf::Descriptor* Api::descriptor() {
268 protobuf_google_2fprotobuf_2fapi_2eproto::protobuf_AssignDescriptorsOnce();
269 return protobuf_google_2fprotobuf_2fapi_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
270 }
271
default_instance()272 const Api& Api::default_instance() {
273 protobuf_google_2fprotobuf_2fapi_2eproto::InitDefaults();
274 return *internal_default_instance();
275 }
276
New(::google::protobuf::Arena * arena) const277 Api* Api::New(::google::protobuf::Arena* arena) const {
278 Api* n = new Api;
279 if (arena != NULL) {
280 arena->Own(n);
281 }
282 return n;
283 }
284
Clear()285 void Api::Clear() {
286 // @@protoc_insertion_point(message_clear_start:google.protobuf.Api)
287 ::google::protobuf::uint32 cached_has_bits = 0;
288 // Prevent compiler warnings about cached_has_bits being unused
289 (void) cached_has_bits;
290
291 methods_.Clear();
292 options_.Clear();
293 mixins_.Clear();
294 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
295 version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
296 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) {
297 delete source_context_;
298 }
299 source_context_ = NULL;
300 syntax_ = 0;
301 _internal_metadata_.Clear();
302 }
303
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)304 bool Api::MergePartialFromCodedStream(
305 ::google::protobuf::io::CodedInputStream* input) {
306 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
307 ::google::protobuf::uint32 tag;
308 // @@protoc_insertion_point(parse_start:google.protobuf.Api)
309 for (;;) {
310 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
311 tag = p.first;
312 if (!p.second) goto handle_unusual;
313 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
314 // string name = 1;
315 case 1: {
316 if (static_cast< ::google::protobuf::uint8>(tag) ==
317 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
318 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
319 input, this->mutable_name()));
320 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
321 this->name().data(), static_cast<int>(this->name().length()),
322 ::google::protobuf::internal::WireFormatLite::PARSE,
323 "google.protobuf.Api.name"));
324 } else {
325 goto handle_unusual;
326 }
327 break;
328 }
329
330 // repeated .google.protobuf.Method methods = 2;
331 case 2: {
332 if (static_cast< ::google::protobuf::uint8>(tag) ==
333 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
334 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
335 input, add_methods()));
336 } else {
337 goto handle_unusual;
338 }
339 break;
340 }
341
342 // repeated .google.protobuf.Option options = 3;
343 case 3: {
344 if (static_cast< ::google::protobuf::uint8>(tag) ==
345 static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
346 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
347 input, add_options()));
348 } else {
349 goto handle_unusual;
350 }
351 break;
352 }
353
354 // string version = 4;
355 case 4: {
356 if (static_cast< ::google::protobuf::uint8>(tag) ==
357 static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
358 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
359 input, this->mutable_version()));
360 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
361 this->version().data(), static_cast<int>(this->version().length()),
362 ::google::protobuf::internal::WireFormatLite::PARSE,
363 "google.protobuf.Api.version"));
364 } else {
365 goto handle_unusual;
366 }
367 break;
368 }
369
370 // .google.protobuf.SourceContext source_context = 5;
371 case 5: {
372 if (static_cast< ::google::protobuf::uint8>(tag) ==
373 static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
374 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
375 input, mutable_source_context()));
376 } else {
377 goto handle_unusual;
378 }
379 break;
380 }
381
382 // repeated .google.protobuf.Mixin mixins = 6;
383 case 6: {
384 if (static_cast< ::google::protobuf::uint8>(tag) ==
385 static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
386 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
387 input, add_mixins()));
388 } else {
389 goto handle_unusual;
390 }
391 break;
392 }
393
394 // .google.protobuf.Syntax syntax = 7;
395 case 7: {
396 if (static_cast< ::google::protobuf::uint8>(tag) ==
397 static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
398 int value;
399 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
400 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
401 input, &value)));
402 set_syntax(static_cast< ::google::protobuf::Syntax >(value));
403 } else {
404 goto handle_unusual;
405 }
406 break;
407 }
408
409 default: {
410 handle_unusual:
411 if (tag == 0) {
412 goto success;
413 }
414 DO_(::google::protobuf::internal::WireFormat::SkipField(
415 input, tag, _internal_metadata_.mutable_unknown_fields()));
416 break;
417 }
418 }
419 }
420 success:
421 // @@protoc_insertion_point(parse_success:google.protobuf.Api)
422 return true;
423 failure:
424 // @@protoc_insertion_point(parse_failure:google.protobuf.Api)
425 return false;
426 #undef DO_
427 }
428
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const429 void Api::SerializeWithCachedSizes(
430 ::google::protobuf::io::CodedOutputStream* output) const {
431 // @@protoc_insertion_point(serialize_start:google.protobuf.Api)
432 ::google::protobuf::uint32 cached_has_bits = 0;
433 (void) cached_has_bits;
434
435 // string name = 1;
436 if (this->name().size() > 0) {
437 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
438 this->name().data(), static_cast<int>(this->name().length()),
439 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
440 "google.protobuf.Api.name");
441 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
442 1, this->name(), output);
443 }
444
445 // repeated .google.protobuf.Method methods = 2;
446 for (unsigned int i = 0,
447 n = static_cast<unsigned int>(this->methods_size()); i < n; i++) {
448 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
449 2, this->methods(static_cast<int>(i)), output);
450 }
451
452 // repeated .google.protobuf.Option options = 3;
453 for (unsigned int i = 0,
454 n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
455 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
456 3, this->options(static_cast<int>(i)), output);
457 }
458
459 // string version = 4;
460 if (this->version().size() > 0) {
461 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
462 this->version().data(), static_cast<int>(this->version().length()),
463 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
464 "google.protobuf.Api.version");
465 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
466 4, this->version(), output);
467 }
468
469 // .google.protobuf.SourceContext source_context = 5;
470 if (this->has_source_context()) {
471 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
472 5, *this->source_context_, output);
473 }
474
475 // repeated .google.protobuf.Mixin mixins = 6;
476 for (unsigned int i = 0,
477 n = static_cast<unsigned int>(this->mixins_size()); i < n; i++) {
478 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
479 6, this->mixins(static_cast<int>(i)), output);
480 }
481
482 // .google.protobuf.Syntax syntax = 7;
483 if (this->syntax() != 0) {
484 ::google::protobuf::internal::WireFormatLite::WriteEnum(
485 7, this->syntax(), output);
486 }
487
488 if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
489 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
490 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
491 }
492 // @@protoc_insertion_point(serialize_end:google.protobuf.Api)
493 }
494
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const495 ::google::protobuf::uint8* Api::InternalSerializeWithCachedSizesToArray(
496 bool deterministic, ::google::protobuf::uint8* target) const {
497 (void)deterministic; // Unused
498 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Api)
499 ::google::protobuf::uint32 cached_has_bits = 0;
500 (void) cached_has_bits;
501
502 // string name = 1;
503 if (this->name().size() > 0) {
504 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
505 this->name().data(), static_cast<int>(this->name().length()),
506 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
507 "google.protobuf.Api.name");
508 target =
509 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
510 1, this->name(), target);
511 }
512
513 // repeated .google.protobuf.Method methods = 2;
514 for (unsigned int i = 0,
515 n = static_cast<unsigned int>(this->methods_size()); i < n; i++) {
516 target = ::google::protobuf::internal::WireFormatLite::
517 InternalWriteMessageNoVirtualToArray(
518 2, this->methods(static_cast<int>(i)), deterministic, target);
519 }
520
521 // repeated .google.protobuf.Option options = 3;
522 for (unsigned int i = 0,
523 n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
524 target = ::google::protobuf::internal::WireFormatLite::
525 InternalWriteMessageNoVirtualToArray(
526 3, this->options(static_cast<int>(i)), deterministic, target);
527 }
528
529 // string version = 4;
530 if (this->version().size() > 0) {
531 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
532 this->version().data(), static_cast<int>(this->version().length()),
533 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
534 "google.protobuf.Api.version");
535 target =
536 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
537 4, this->version(), target);
538 }
539
540 // .google.protobuf.SourceContext source_context = 5;
541 if (this->has_source_context()) {
542 target = ::google::protobuf::internal::WireFormatLite::
543 InternalWriteMessageNoVirtualToArray(
544 5, *this->source_context_, deterministic, target);
545 }
546
547 // repeated .google.protobuf.Mixin mixins = 6;
548 for (unsigned int i = 0,
549 n = static_cast<unsigned int>(this->mixins_size()); i < n; i++) {
550 target = ::google::protobuf::internal::WireFormatLite::
551 InternalWriteMessageNoVirtualToArray(
552 6, this->mixins(static_cast<int>(i)), deterministic, target);
553 }
554
555 // .google.protobuf.Syntax syntax = 7;
556 if (this->syntax() != 0) {
557 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
558 7, this->syntax(), target);
559 }
560
561 if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
562 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
563 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
564 }
565 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Api)
566 return target;
567 }
568
ByteSizeLong() const569 size_t Api::ByteSizeLong() const {
570 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Api)
571 size_t total_size = 0;
572
573 if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
574 total_size +=
575 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
576 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
577 }
578 // repeated .google.protobuf.Method methods = 2;
579 {
580 unsigned int count = static_cast<unsigned int>(this->methods_size());
581 total_size += 1UL * count;
582 for (unsigned int i = 0; i < count; i++) {
583 total_size +=
584 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
585 this->methods(static_cast<int>(i)));
586 }
587 }
588
589 // repeated .google.protobuf.Option options = 3;
590 {
591 unsigned int count = static_cast<unsigned int>(this->options_size());
592 total_size += 1UL * count;
593 for (unsigned int i = 0; i < count; i++) {
594 total_size +=
595 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
596 this->options(static_cast<int>(i)));
597 }
598 }
599
600 // repeated .google.protobuf.Mixin mixins = 6;
601 {
602 unsigned int count = static_cast<unsigned int>(this->mixins_size());
603 total_size += 1UL * count;
604 for (unsigned int i = 0; i < count; i++) {
605 total_size +=
606 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
607 this->mixins(static_cast<int>(i)));
608 }
609 }
610
611 // string name = 1;
612 if (this->name().size() > 0) {
613 total_size += 1 +
614 ::google::protobuf::internal::WireFormatLite::StringSize(
615 this->name());
616 }
617
618 // string version = 4;
619 if (this->version().size() > 0) {
620 total_size += 1 +
621 ::google::protobuf::internal::WireFormatLite::StringSize(
622 this->version());
623 }
624
625 // .google.protobuf.SourceContext source_context = 5;
626 if (this->has_source_context()) {
627 total_size += 1 +
628 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
629 *this->source_context_);
630 }
631
632 // .google.protobuf.Syntax syntax = 7;
633 if (this->syntax() != 0) {
634 total_size += 1 +
635 ::google::protobuf::internal::WireFormatLite::EnumSize(this->syntax());
636 }
637
638 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
639 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
640 _cached_size_ = cached_size;
641 GOOGLE_SAFE_CONCURRENT_WRITES_END();
642 return total_size;
643 }
644
MergeFrom(const::google::protobuf::Message & from)645 void Api::MergeFrom(const ::google::protobuf::Message& from) {
646 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Api)
647 GOOGLE_DCHECK_NE(&from, this);
648 const Api* source =
649 ::google::protobuf::internal::DynamicCastToGenerated<const Api>(
650 &from);
651 if (source == NULL) {
652 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Api)
653 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
654 } else {
655 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Api)
656 MergeFrom(*source);
657 }
658 }
659
MergeFrom(const Api & from)660 void Api::MergeFrom(const Api& from) {
661 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Api)
662 GOOGLE_DCHECK_NE(&from, this);
663 _internal_metadata_.MergeFrom(from._internal_metadata_);
664 ::google::protobuf::uint32 cached_has_bits = 0;
665 (void) cached_has_bits;
666
667 methods_.MergeFrom(from.methods_);
668 options_.MergeFrom(from.options_);
669 mixins_.MergeFrom(from.mixins_);
670 if (from.name().size() > 0) {
671
672 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
673 }
674 if (from.version().size() > 0) {
675
676 version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_);
677 }
678 if (from.has_source_context()) {
679 mutable_source_context()->::google::protobuf::SourceContext::MergeFrom(from.source_context());
680 }
681 if (from.syntax() != 0) {
682 set_syntax(from.syntax());
683 }
684 }
685
CopyFrom(const::google::protobuf::Message & from)686 void Api::CopyFrom(const ::google::protobuf::Message& from) {
687 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Api)
688 if (&from == this) return;
689 Clear();
690 MergeFrom(from);
691 }
692
CopyFrom(const Api & from)693 void Api::CopyFrom(const Api& from) {
694 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Api)
695 if (&from == this) return;
696 Clear();
697 MergeFrom(from);
698 }
699
IsInitialized() const700 bool Api::IsInitialized() const {
701 return true;
702 }
703
Swap(Api * other)704 void Api::Swap(Api* other) {
705 if (other == this) return;
706 InternalSwap(other);
707 }
InternalSwap(Api * other)708 void Api::InternalSwap(Api* other) {
709 using std::swap;
710 methods_.InternalSwap(&other->methods_);
711 options_.InternalSwap(&other->options_);
712 mixins_.InternalSwap(&other->mixins_);
713 name_.Swap(&other->name_);
714 version_.Swap(&other->version_);
715 swap(source_context_, other->source_context_);
716 swap(syntax_, other->syntax_);
717 _internal_metadata_.Swap(&other->_internal_metadata_);
718 swap(_cached_size_, other->_cached_size_);
719 }
720
GetMetadata() const721 ::google::protobuf::Metadata Api::GetMetadata() const {
722 protobuf_google_2fprotobuf_2fapi_2eproto::protobuf_AssignDescriptorsOnce();
723 return protobuf_google_2fprotobuf_2fapi_2eproto::file_level_metadata[kIndexInFileMessages];
724 }
725
726 #if PROTOBUF_INLINE_NOT_IN_HEADERS
727 // Api
728
729 // string name = 1;
clear_name()730 void Api::clear_name() {
731 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
732 }
name() const733 const ::std::string& Api::name() const {
734 // @@protoc_insertion_point(field_get:google.protobuf.Api.name)
735 return name_.GetNoArena();
736 }
set_name(const::std::string & value)737 void Api::set_name(const ::std::string& value) {
738
739 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
740 // @@protoc_insertion_point(field_set:google.protobuf.Api.name)
741 }
742 #if LANG_CXX11
set_name(::std::string && value)743 void Api::set_name(::std::string&& value) {
744
745 name_.SetNoArena(
746 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
747 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Api.name)
748 }
749 #endif
set_name(const char * value)750 void Api::set_name(const char* value) {
751 GOOGLE_DCHECK(value != NULL);
752
753 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
754 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.name)
755 }
set_name(const char * value,size_t size)756 void Api::set_name(const char* value, size_t size) {
757
758 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
759 ::std::string(reinterpret_cast<const char*>(value), size));
760 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.name)
761 }
mutable_name()762 ::std::string* Api::mutable_name() {
763
764 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.name)
765 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
766 }
release_name()767 ::std::string* Api::release_name() {
768 // @@protoc_insertion_point(field_release:google.protobuf.Api.name)
769
770 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
771 }
set_allocated_name(::std::string * name)772 void Api::set_allocated_name(::std::string* name) {
773 if (name != NULL) {
774
775 } else {
776
777 }
778 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
779 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.name)
780 }
781
782 // repeated .google.protobuf.Method methods = 2;
methods_size() const783 int Api::methods_size() const {
784 return methods_.size();
785 }
clear_methods()786 void Api::clear_methods() {
787 methods_.Clear();
788 }
methods(int index) const789 const ::google::protobuf::Method& Api::methods(int index) const {
790 // @@protoc_insertion_point(field_get:google.protobuf.Api.methods)
791 return methods_.Get(index);
792 }
mutable_methods(int index)793 ::google::protobuf::Method* Api::mutable_methods(int index) {
794 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.methods)
795 return methods_.Mutable(index);
796 }
add_methods()797 ::google::protobuf::Method* Api::add_methods() {
798 // @@protoc_insertion_point(field_add:google.protobuf.Api.methods)
799 return methods_.Add();
800 }
801 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >*
mutable_methods()802 Api::mutable_methods() {
803 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.methods)
804 return &methods_;
805 }
806 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >&
methods() const807 Api::methods() const {
808 // @@protoc_insertion_point(field_list:google.protobuf.Api.methods)
809 return methods_;
810 }
811
812 // repeated .google.protobuf.Option options = 3;
options_size() const813 int Api::options_size() const {
814 return options_.size();
815 }
clear_options()816 void Api::clear_options() {
817 options_.Clear();
818 }
options(int index) const819 const ::google::protobuf::Option& Api::options(int index) const {
820 // @@protoc_insertion_point(field_get:google.protobuf.Api.options)
821 return options_.Get(index);
822 }
mutable_options(int index)823 ::google::protobuf::Option* Api::mutable_options(int index) {
824 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.options)
825 return options_.Mutable(index);
826 }
add_options()827 ::google::protobuf::Option* Api::add_options() {
828 // @@protoc_insertion_point(field_add:google.protobuf.Api.options)
829 return options_.Add();
830 }
831 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
mutable_options()832 Api::mutable_options() {
833 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.options)
834 return &options_;
835 }
836 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
options() const837 Api::options() const {
838 // @@protoc_insertion_point(field_list:google.protobuf.Api.options)
839 return options_;
840 }
841
842 // string version = 4;
clear_version()843 void Api::clear_version() {
844 version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
845 }
version() const846 const ::std::string& Api::version() const {
847 // @@protoc_insertion_point(field_get:google.protobuf.Api.version)
848 return version_.GetNoArena();
849 }
set_version(const::std::string & value)850 void Api::set_version(const ::std::string& value) {
851
852 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
853 // @@protoc_insertion_point(field_set:google.protobuf.Api.version)
854 }
855 #if LANG_CXX11
set_version(::std::string && value)856 void Api::set_version(::std::string&& value) {
857
858 version_.SetNoArena(
859 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
860 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Api.version)
861 }
862 #endif
set_version(const char * value)863 void Api::set_version(const char* value) {
864 GOOGLE_DCHECK(value != NULL);
865
866 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
867 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.version)
868 }
set_version(const char * value,size_t size)869 void Api::set_version(const char* value, size_t size) {
870
871 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
872 ::std::string(reinterpret_cast<const char*>(value), size));
873 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.version)
874 }
mutable_version()875 ::std::string* Api::mutable_version() {
876
877 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.version)
878 return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
879 }
release_version()880 ::std::string* Api::release_version() {
881 // @@protoc_insertion_point(field_release:google.protobuf.Api.version)
882
883 return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
884 }
set_allocated_version(::std::string * version)885 void Api::set_allocated_version(::std::string* version) {
886 if (version != NULL) {
887
888 } else {
889
890 }
891 version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version);
892 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.version)
893 }
894
895 // .google.protobuf.SourceContext source_context = 5;
has_source_context() const896 bool Api::has_source_context() const {
897 return this != internal_default_instance() && source_context_ != NULL;
898 }
clear_source_context()899 void Api::clear_source_context() {
900 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_context_;
901 source_context_ = NULL;
902 }
source_context() const903 const ::google::protobuf::SourceContext& Api::source_context() const {
904 const ::google::protobuf::SourceContext* p = source_context_;
905 // @@protoc_insertion_point(field_get:google.protobuf.Api.source_context)
906 return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::SourceContext*>(
907 &::google::protobuf::_SourceContext_default_instance_);
908 }
mutable_source_context()909 ::google::protobuf::SourceContext* Api::mutable_source_context() {
910
911 if (source_context_ == NULL) {
912 source_context_ = new ::google::protobuf::SourceContext;
913 }
914 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.source_context)
915 return source_context_;
916 }
release_source_context()917 ::google::protobuf::SourceContext* Api::release_source_context() {
918 // @@protoc_insertion_point(field_release:google.protobuf.Api.source_context)
919
920 ::google::protobuf::SourceContext* temp = source_context_;
921 source_context_ = NULL;
922 return temp;
923 }
set_allocated_source_context(::google::protobuf::SourceContext * source_context)924 void Api::set_allocated_source_context(::google::protobuf::SourceContext* source_context) {
925 delete source_context_;
926 source_context_ = source_context;
927 if (source_context) {
928
929 } else {
930
931 }
932 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.source_context)
933 }
934
935 // repeated .google.protobuf.Mixin mixins = 6;
mixins_size() const936 int Api::mixins_size() const {
937 return mixins_.size();
938 }
clear_mixins()939 void Api::clear_mixins() {
940 mixins_.Clear();
941 }
mixins(int index) const942 const ::google::protobuf::Mixin& Api::mixins(int index) const {
943 // @@protoc_insertion_point(field_get:google.protobuf.Api.mixins)
944 return mixins_.Get(index);
945 }
mutable_mixins(int index)946 ::google::protobuf::Mixin* Api::mutable_mixins(int index) {
947 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.mixins)
948 return mixins_.Mutable(index);
949 }
add_mixins()950 ::google::protobuf::Mixin* Api::add_mixins() {
951 // @@protoc_insertion_point(field_add:google.protobuf.Api.mixins)
952 return mixins_.Add();
953 }
954 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >*
mutable_mixins()955 Api::mutable_mixins() {
956 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.mixins)
957 return &mixins_;
958 }
959 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >&
mixins() const960 Api::mixins() const {
961 // @@protoc_insertion_point(field_list:google.protobuf.Api.mixins)
962 return mixins_;
963 }
964
965 // .google.protobuf.Syntax syntax = 7;
clear_syntax()966 void Api::clear_syntax() {
967 syntax_ = 0;
968 }
syntax() const969 ::google::protobuf::Syntax Api::syntax() const {
970 // @@protoc_insertion_point(field_get:google.protobuf.Api.syntax)
971 return static_cast< ::google::protobuf::Syntax >(syntax_);
972 }
set_syntax(::google::protobuf::Syntax value)973 void Api::set_syntax(::google::protobuf::Syntax value) {
974
975 syntax_ = value;
976 // @@protoc_insertion_point(field_set:google.protobuf.Api.syntax)
977 }
978
979 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
980
981 // ===================================================================
982
983 #if !defined(_MSC_VER) || _MSC_VER >= 1900
984 const int Method::kNameFieldNumber;
985 const int Method::kRequestTypeUrlFieldNumber;
986 const int Method::kRequestStreamingFieldNumber;
987 const int Method::kResponseTypeUrlFieldNumber;
988 const int Method::kResponseStreamingFieldNumber;
989 const int Method::kOptionsFieldNumber;
990 const int Method::kSyntaxFieldNumber;
991 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
992
Method()993 Method::Method()
994 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
995 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
996 protobuf_google_2fprotobuf_2fapi_2eproto::InitDefaults();
997 }
998 SharedCtor();
999 // @@protoc_insertion_point(constructor:google.protobuf.Method)
1000 }
Method(const Method & from)1001 Method::Method(const Method& from)
1002 : ::google::protobuf::Message(),
1003 _internal_metadata_(NULL),
1004 options_(from.options_),
1005 _cached_size_(0) {
1006 _internal_metadata_.MergeFrom(from._internal_metadata_);
1007 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1008 if (from.name().size() > 0) {
1009 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1010 }
1011 request_type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1012 if (from.request_type_url().size() > 0) {
1013 request_type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_type_url_);
1014 }
1015 response_type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1016 if (from.response_type_url().size() > 0) {
1017 response_type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.response_type_url_);
1018 }
1019 ::memcpy(&request_streaming_, &from.request_streaming_,
1020 static_cast<size_t>(reinterpret_cast<char*>(&syntax_) -
1021 reinterpret_cast<char*>(&request_streaming_)) + sizeof(syntax_));
1022 // @@protoc_insertion_point(copy_constructor:google.protobuf.Method)
1023 }
1024
SharedCtor()1025 void Method::SharedCtor() {
1026 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1027 request_type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1028 response_type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1029 ::memset(&request_streaming_, 0, static_cast<size_t>(
1030 reinterpret_cast<char*>(&syntax_) -
1031 reinterpret_cast<char*>(&request_streaming_)) + sizeof(syntax_));
1032 _cached_size_ = 0;
1033 }
1034
~Method()1035 Method::~Method() {
1036 // @@protoc_insertion_point(destructor:google.protobuf.Method)
1037 SharedDtor();
1038 }
1039
SharedDtor()1040 void Method::SharedDtor() {
1041 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1042 request_type_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1043 response_type_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1044 }
1045
SetCachedSize(int size) const1046 void Method::SetCachedSize(int size) const {
1047 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1048 _cached_size_ = size;
1049 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1050 }
descriptor()1051 const ::google::protobuf::Descriptor* Method::descriptor() {
1052 protobuf_google_2fprotobuf_2fapi_2eproto::protobuf_AssignDescriptorsOnce();
1053 return protobuf_google_2fprotobuf_2fapi_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1054 }
1055
default_instance()1056 const Method& Method::default_instance() {
1057 protobuf_google_2fprotobuf_2fapi_2eproto::InitDefaults();
1058 return *internal_default_instance();
1059 }
1060
New(::google::protobuf::Arena * arena) const1061 Method* Method::New(::google::protobuf::Arena* arena) const {
1062 Method* n = new Method;
1063 if (arena != NULL) {
1064 arena->Own(n);
1065 }
1066 return n;
1067 }
1068
Clear()1069 void Method::Clear() {
1070 // @@protoc_insertion_point(message_clear_start:google.protobuf.Method)
1071 ::google::protobuf::uint32 cached_has_bits = 0;
1072 // Prevent compiler warnings about cached_has_bits being unused
1073 (void) cached_has_bits;
1074
1075 options_.Clear();
1076 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1077 request_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1078 response_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1079 ::memset(&request_streaming_, 0, static_cast<size_t>(
1080 reinterpret_cast<char*>(&syntax_) -
1081 reinterpret_cast<char*>(&request_streaming_)) + sizeof(syntax_));
1082 _internal_metadata_.Clear();
1083 }
1084
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)1085 bool Method::MergePartialFromCodedStream(
1086 ::google::protobuf::io::CodedInputStream* input) {
1087 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1088 ::google::protobuf::uint32 tag;
1089 // @@protoc_insertion_point(parse_start:google.protobuf.Method)
1090 for (;;) {
1091 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1092 tag = p.first;
1093 if (!p.second) goto handle_unusual;
1094 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1095 // string name = 1;
1096 case 1: {
1097 if (static_cast< ::google::protobuf::uint8>(tag) ==
1098 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1099 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1100 input, this->mutable_name()));
1101 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1102 this->name().data(), static_cast<int>(this->name().length()),
1103 ::google::protobuf::internal::WireFormatLite::PARSE,
1104 "google.protobuf.Method.name"));
1105 } else {
1106 goto handle_unusual;
1107 }
1108 break;
1109 }
1110
1111 // string request_type_url = 2;
1112 case 2: {
1113 if (static_cast< ::google::protobuf::uint8>(tag) ==
1114 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1115 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1116 input, this->mutable_request_type_url()));
1117 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1118 this->request_type_url().data(), static_cast<int>(this->request_type_url().length()),
1119 ::google::protobuf::internal::WireFormatLite::PARSE,
1120 "google.protobuf.Method.request_type_url"));
1121 } else {
1122 goto handle_unusual;
1123 }
1124 break;
1125 }
1126
1127 // bool request_streaming = 3;
1128 case 3: {
1129 if (static_cast< ::google::protobuf::uint8>(tag) ==
1130 static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
1131
1132 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1133 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1134 input, &request_streaming_)));
1135 } else {
1136 goto handle_unusual;
1137 }
1138 break;
1139 }
1140
1141 // string response_type_url = 4;
1142 case 4: {
1143 if (static_cast< ::google::protobuf::uint8>(tag) ==
1144 static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
1145 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1146 input, this->mutable_response_type_url()));
1147 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1148 this->response_type_url().data(), static_cast<int>(this->response_type_url().length()),
1149 ::google::protobuf::internal::WireFormatLite::PARSE,
1150 "google.protobuf.Method.response_type_url"));
1151 } else {
1152 goto handle_unusual;
1153 }
1154 break;
1155 }
1156
1157 // bool response_streaming = 5;
1158 case 5: {
1159 if (static_cast< ::google::protobuf::uint8>(tag) ==
1160 static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
1161
1162 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1163 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1164 input, &response_streaming_)));
1165 } else {
1166 goto handle_unusual;
1167 }
1168 break;
1169 }
1170
1171 // repeated .google.protobuf.Option options = 6;
1172 case 6: {
1173 if (static_cast< ::google::protobuf::uint8>(tag) ==
1174 static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
1175 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1176 input, add_options()));
1177 } else {
1178 goto handle_unusual;
1179 }
1180 break;
1181 }
1182
1183 // .google.protobuf.Syntax syntax = 7;
1184 case 7: {
1185 if (static_cast< ::google::protobuf::uint8>(tag) ==
1186 static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
1187 int value;
1188 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1189 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1190 input, &value)));
1191 set_syntax(static_cast< ::google::protobuf::Syntax >(value));
1192 } else {
1193 goto handle_unusual;
1194 }
1195 break;
1196 }
1197
1198 default: {
1199 handle_unusual:
1200 if (tag == 0) {
1201 goto success;
1202 }
1203 DO_(::google::protobuf::internal::WireFormat::SkipField(
1204 input, tag, _internal_metadata_.mutable_unknown_fields()));
1205 break;
1206 }
1207 }
1208 }
1209 success:
1210 // @@protoc_insertion_point(parse_success:google.protobuf.Method)
1211 return true;
1212 failure:
1213 // @@protoc_insertion_point(parse_failure:google.protobuf.Method)
1214 return false;
1215 #undef DO_
1216 }
1217
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1218 void Method::SerializeWithCachedSizes(
1219 ::google::protobuf::io::CodedOutputStream* output) const {
1220 // @@protoc_insertion_point(serialize_start:google.protobuf.Method)
1221 ::google::protobuf::uint32 cached_has_bits = 0;
1222 (void) cached_has_bits;
1223
1224 // string name = 1;
1225 if (this->name().size() > 0) {
1226 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1227 this->name().data(), static_cast<int>(this->name().length()),
1228 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1229 "google.protobuf.Method.name");
1230 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1231 1, this->name(), output);
1232 }
1233
1234 // string request_type_url = 2;
1235 if (this->request_type_url().size() > 0) {
1236 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1237 this->request_type_url().data(), static_cast<int>(this->request_type_url().length()),
1238 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1239 "google.protobuf.Method.request_type_url");
1240 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1241 2, this->request_type_url(), output);
1242 }
1243
1244 // bool request_streaming = 3;
1245 if (this->request_streaming() != 0) {
1246 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->request_streaming(), output);
1247 }
1248
1249 // string response_type_url = 4;
1250 if (this->response_type_url().size() > 0) {
1251 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1252 this->response_type_url().data(), static_cast<int>(this->response_type_url().length()),
1253 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1254 "google.protobuf.Method.response_type_url");
1255 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1256 4, this->response_type_url(), output);
1257 }
1258
1259 // bool response_streaming = 5;
1260 if (this->response_streaming() != 0) {
1261 ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->response_streaming(), output);
1262 }
1263
1264 // repeated .google.protobuf.Option options = 6;
1265 for (unsigned int i = 0,
1266 n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
1267 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1268 6, this->options(static_cast<int>(i)), output);
1269 }
1270
1271 // .google.protobuf.Syntax syntax = 7;
1272 if (this->syntax() != 0) {
1273 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1274 7, this->syntax(), output);
1275 }
1276
1277 if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1278 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1279 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
1280 }
1281 // @@protoc_insertion_point(serialize_end:google.protobuf.Method)
1282 }
1283
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const1284 ::google::protobuf::uint8* Method::InternalSerializeWithCachedSizesToArray(
1285 bool deterministic, ::google::protobuf::uint8* target) const {
1286 (void)deterministic; // Unused
1287 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Method)
1288 ::google::protobuf::uint32 cached_has_bits = 0;
1289 (void) cached_has_bits;
1290
1291 // string name = 1;
1292 if (this->name().size() > 0) {
1293 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1294 this->name().data(), static_cast<int>(this->name().length()),
1295 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1296 "google.protobuf.Method.name");
1297 target =
1298 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1299 1, this->name(), target);
1300 }
1301
1302 // string request_type_url = 2;
1303 if (this->request_type_url().size() > 0) {
1304 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1305 this->request_type_url().data(), static_cast<int>(this->request_type_url().length()),
1306 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1307 "google.protobuf.Method.request_type_url");
1308 target =
1309 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1310 2, this->request_type_url(), target);
1311 }
1312
1313 // bool request_streaming = 3;
1314 if (this->request_streaming() != 0) {
1315 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->request_streaming(), target);
1316 }
1317
1318 // string response_type_url = 4;
1319 if (this->response_type_url().size() > 0) {
1320 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1321 this->response_type_url().data(), static_cast<int>(this->response_type_url().length()),
1322 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1323 "google.protobuf.Method.response_type_url");
1324 target =
1325 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1326 4, this->response_type_url(), target);
1327 }
1328
1329 // bool response_streaming = 5;
1330 if (this->response_streaming() != 0) {
1331 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->response_streaming(), target);
1332 }
1333
1334 // repeated .google.protobuf.Option options = 6;
1335 for (unsigned int i = 0,
1336 n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
1337 target = ::google::protobuf::internal::WireFormatLite::
1338 InternalWriteMessageNoVirtualToArray(
1339 6, this->options(static_cast<int>(i)), deterministic, target);
1340 }
1341
1342 // .google.protobuf.Syntax syntax = 7;
1343 if (this->syntax() != 0) {
1344 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1345 7, this->syntax(), target);
1346 }
1347
1348 if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1349 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1350 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
1351 }
1352 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Method)
1353 return target;
1354 }
1355
ByteSizeLong() const1356 size_t Method::ByteSizeLong() const {
1357 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Method)
1358 size_t total_size = 0;
1359
1360 if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1361 total_size +=
1362 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1363 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
1364 }
1365 // repeated .google.protobuf.Option options = 6;
1366 {
1367 unsigned int count = static_cast<unsigned int>(this->options_size());
1368 total_size += 1UL * count;
1369 for (unsigned int i = 0; i < count; i++) {
1370 total_size +=
1371 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1372 this->options(static_cast<int>(i)));
1373 }
1374 }
1375
1376 // string name = 1;
1377 if (this->name().size() > 0) {
1378 total_size += 1 +
1379 ::google::protobuf::internal::WireFormatLite::StringSize(
1380 this->name());
1381 }
1382
1383 // string request_type_url = 2;
1384 if (this->request_type_url().size() > 0) {
1385 total_size += 1 +
1386 ::google::protobuf::internal::WireFormatLite::StringSize(
1387 this->request_type_url());
1388 }
1389
1390 // string response_type_url = 4;
1391 if (this->response_type_url().size() > 0) {
1392 total_size += 1 +
1393 ::google::protobuf::internal::WireFormatLite::StringSize(
1394 this->response_type_url());
1395 }
1396
1397 // bool request_streaming = 3;
1398 if (this->request_streaming() != 0) {
1399 total_size += 1 + 1;
1400 }
1401
1402 // bool response_streaming = 5;
1403 if (this->response_streaming() != 0) {
1404 total_size += 1 + 1;
1405 }
1406
1407 // .google.protobuf.Syntax syntax = 7;
1408 if (this->syntax() != 0) {
1409 total_size += 1 +
1410 ::google::protobuf::internal::WireFormatLite::EnumSize(this->syntax());
1411 }
1412
1413 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1414 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1415 _cached_size_ = cached_size;
1416 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1417 return total_size;
1418 }
1419
MergeFrom(const::google::protobuf::Message & from)1420 void Method::MergeFrom(const ::google::protobuf::Message& from) {
1421 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Method)
1422 GOOGLE_DCHECK_NE(&from, this);
1423 const Method* source =
1424 ::google::protobuf::internal::DynamicCastToGenerated<const Method>(
1425 &from);
1426 if (source == NULL) {
1427 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Method)
1428 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1429 } else {
1430 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Method)
1431 MergeFrom(*source);
1432 }
1433 }
1434
MergeFrom(const Method & from)1435 void Method::MergeFrom(const Method& from) {
1436 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Method)
1437 GOOGLE_DCHECK_NE(&from, this);
1438 _internal_metadata_.MergeFrom(from._internal_metadata_);
1439 ::google::protobuf::uint32 cached_has_bits = 0;
1440 (void) cached_has_bits;
1441
1442 options_.MergeFrom(from.options_);
1443 if (from.name().size() > 0) {
1444
1445 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1446 }
1447 if (from.request_type_url().size() > 0) {
1448
1449 request_type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_type_url_);
1450 }
1451 if (from.response_type_url().size() > 0) {
1452
1453 response_type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.response_type_url_);
1454 }
1455 if (from.request_streaming() != 0) {
1456 set_request_streaming(from.request_streaming());
1457 }
1458 if (from.response_streaming() != 0) {
1459 set_response_streaming(from.response_streaming());
1460 }
1461 if (from.syntax() != 0) {
1462 set_syntax(from.syntax());
1463 }
1464 }
1465
CopyFrom(const::google::protobuf::Message & from)1466 void Method::CopyFrom(const ::google::protobuf::Message& from) {
1467 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Method)
1468 if (&from == this) return;
1469 Clear();
1470 MergeFrom(from);
1471 }
1472
CopyFrom(const Method & from)1473 void Method::CopyFrom(const Method& from) {
1474 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Method)
1475 if (&from == this) return;
1476 Clear();
1477 MergeFrom(from);
1478 }
1479
IsInitialized() const1480 bool Method::IsInitialized() const {
1481 return true;
1482 }
1483
Swap(Method * other)1484 void Method::Swap(Method* other) {
1485 if (other == this) return;
1486 InternalSwap(other);
1487 }
InternalSwap(Method * other)1488 void Method::InternalSwap(Method* other) {
1489 using std::swap;
1490 options_.InternalSwap(&other->options_);
1491 name_.Swap(&other->name_);
1492 request_type_url_.Swap(&other->request_type_url_);
1493 response_type_url_.Swap(&other->response_type_url_);
1494 swap(request_streaming_, other->request_streaming_);
1495 swap(response_streaming_, other->response_streaming_);
1496 swap(syntax_, other->syntax_);
1497 _internal_metadata_.Swap(&other->_internal_metadata_);
1498 swap(_cached_size_, other->_cached_size_);
1499 }
1500
GetMetadata() const1501 ::google::protobuf::Metadata Method::GetMetadata() const {
1502 protobuf_google_2fprotobuf_2fapi_2eproto::protobuf_AssignDescriptorsOnce();
1503 return protobuf_google_2fprotobuf_2fapi_2eproto::file_level_metadata[kIndexInFileMessages];
1504 }
1505
1506 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1507 // Method
1508
1509 // string name = 1;
clear_name()1510 void Method::clear_name() {
1511 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1512 }
name() const1513 const ::std::string& Method::name() const {
1514 // @@protoc_insertion_point(field_get:google.protobuf.Method.name)
1515 return name_.GetNoArena();
1516 }
set_name(const::std::string & value)1517 void Method::set_name(const ::std::string& value) {
1518
1519 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1520 // @@protoc_insertion_point(field_set:google.protobuf.Method.name)
1521 }
1522 #if LANG_CXX11
set_name(::std::string && value)1523 void Method::set_name(::std::string&& value) {
1524
1525 name_.SetNoArena(
1526 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1527 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Method.name)
1528 }
1529 #endif
set_name(const char * value)1530 void Method::set_name(const char* value) {
1531 GOOGLE_DCHECK(value != NULL);
1532
1533 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1534 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.name)
1535 }
set_name(const char * value,size_t size)1536 void Method::set_name(const char* value, size_t size) {
1537
1538 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1539 ::std::string(reinterpret_cast<const char*>(value), size));
1540 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.name)
1541 }
mutable_name()1542 ::std::string* Method::mutable_name() {
1543
1544 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.name)
1545 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1546 }
release_name()1547 ::std::string* Method::release_name() {
1548 // @@protoc_insertion_point(field_release:google.protobuf.Method.name)
1549
1550 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1551 }
set_allocated_name(::std::string * name)1552 void Method::set_allocated_name(::std::string* name) {
1553 if (name != NULL) {
1554
1555 } else {
1556
1557 }
1558 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
1559 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.name)
1560 }
1561
1562 // string request_type_url = 2;
clear_request_type_url()1563 void Method::clear_request_type_url() {
1564 request_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1565 }
request_type_url() const1566 const ::std::string& Method::request_type_url() const {
1567 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_type_url)
1568 return request_type_url_.GetNoArena();
1569 }
set_request_type_url(const::std::string & value)1570 void Method::set_request_type_url(const ::std::string& value) {
1571
1572 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1573 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_type_url)
1574 }
1575 #if LANG_CXX11
set_request_type_url(::std::string && value)1576 void Method::set_request_type_url(::std::string&& value) {
1577
1578 request_type_url_.SetNoArena(
1579 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1580 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Method.request_type_url)
1581 }
1582 #endif
set_request_type_url(const char * value)1583 void Method::set_request_type_url(const char* value) {
1584 GOOGLE_DCHECK(value != NULL);
1585
1586 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1587 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.request_type_url)
1588 }
set_request_type_url(const char * value,size_t size)1589 void Method::set_request_type_url(const char* value, size_t size) {
1590
1591 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1592 ::std::string(reinterpret_cast<const char*>(value), size));
1593 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.request_type_url)
1594 }
mutable_request_type_url()1595 ::std::string* Method::mutable_request_type_url() {
1596
1597 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.request_type_url)
1598 return request_type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1599 }
release_request_type_url()1600 ::std::string* Method::release_request_type_url() {
1601 // @@protoc_insertion_point(field_release:google.protobuf.Method.request_type_url)
1602
1603 return request_type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1604 }
set_allocated_request_type_url(::std::string * request_type_url)1605 void Method::set_allocated_request_type_url(::std::string* request_type_url) {
1606 if (request_type_url != NULL) {
1607
1608 } else {
1609
1610 }
1611 request_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_type_url);
1612 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.request_type_url)
1613 }
1614
1615 // bool request_streaming = 3;
clear_request_streaming()1616 void Method::clear_request_streaming() {
1617 request_streaming_ = false;
1618 }
request_streaming() const1619 bool Method::request_streaming() const {
1620 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_streaming)
1621 return request_streaming_;
1622 }
set_request_streaming(bool value)1623 void Method::set_request_streaming(bool value) {
1624
1625 request_streaming_ = value;
1626 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_streaming)
1627 }
1628
1629 // string response_type_url = 4;
clear_response_type_url()1630 void Method::clear_response_type_url() {
1631 response_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1632 }
response_type_url() const1633 const ::std::string& Method::response_type_url() const {
1634 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_type_url)
1635 return response_type_url_.GetNoArena();
1636 }
set_response_type_url(const::std::string & value)1637 void Method::set_response_type_url(const ::std::string& value) {
1638
1639 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1640 // @@protoc_insertion_point(field_set:google.protobuf.Method.response_type_url)
1641 }
1642 #if LANG_CXX11
set_response_type_url(::std::string && value)1643 void Method::set_response_type_url(::std::string&& value) {
1644
1645 response_type_url_.SetNoArena(
1646 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1647 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Method.response_type_url)
1648 }
1649 #endif
set_response_type_url(const char * value)1650 void Method::set_response_type_url(const char* value) {
1651 GOOGLE_DCHECK(value != NULL);
1652
1653 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1654 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.response_type_url)
1655 }
set_response_type_url(const char * value,size_t size)1656 void Method::set_response_type_url(const char* value, size_t size) {
1657
1658 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1659 ::std::string(reinterpret_cast<const char*>(value), size));
1660 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.response_type_url)
1661 }
mutable_response_type_url()1662 ::std::string* Method::mutable_response_type_url() {
1663
1664 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.response_type_url)
1665 return response_type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1666 }
release_response_type_url()1667 ::std::string* Method::release_response_type_url() {
1668 // @@protoc_insertion_point(field_release:google.protobuf.Method.response_type_url)
1669
1670 return response_type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1671 }
set_allocated_response_type_url(::std::string * response_type_url)1672 void Method::set_allocated_response_type_url(::std::string* response_type_url) {
1673 if (response_type_url != NULL) {
1674
1675 } else {
1676
1677 }
1678 response_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), response_type_url);
1679 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.response_type_url)
1680 }
1681
1682 // bool response_streaming = 5;
clear_response_streaming()1683 void Method::clear_response_streaming() {
1684 response_streaming_ = false;
1685 }
response_streaming() const1686 bool Method::response_streaming() const {
1687 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_streaming)
1688 return response_streaming_;
1689 }
set_response_streaming(bool value)1690 void Method::set_response_streaming(bool value) {
1691
1692 response_streaming_ = value;
1693 // @@protoc_insertion_point(field_set:google.protobuf.Method.response_streaming)
1694 }
1695
1696 // repeated .google.protobuf.Option options = 6;
options_size() const1697 int Method::options_size() const {
1698 return options_.size();
1699 }
clear_options()1700 void Method::clear_options() {
1701 options_.Clear();
1702 }
options(int index) const1703 const ::google::protobuf::Option& Method::options(int index) const {
1704 // @@protoc_insertion_point(field_get:google.protobuf.Method.options)
1705 return options_.Get(index);
1706 }
mutable_options(int index)1707 ::google::protobuf::Option* Method::mutable_options(int index) {
1708 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.options)
1709 return options_.Mutable(index);
1710 }
add_options()1711 ::google::protobuf::Option* Method::add_options() {
1712 // @@protoc_insertion_point(field_add:google.protobuf.Method.options)
1713 return options_.Add();
1714 }
1715 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
mutable_options()1716 Method::mutable_options() {
1717 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Method.options)
1718 return &options_;
1719 }
1720 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
options() const1721 Method::options() const {
1722 // @@protoc_insertion_point(field_list:google.protobuf.Method.options)
1723 return options_;
1724 }
1725
1726 // .google.protobuf.Syntax syntax = 7;
clear_syntax()1727 void Method::clear_syntax() {
1728 syntax_ = 0;
1729 }
syntax() const1730 ::google::protobuf::Syntax Method::syntax() const {
1731 // @@protoc_insertion_point(field_get:google.protobuf.Method.syntax)
1732 return static_cast< ::google::protobuf::Syntax >(syntax_);
1733 }
set_syntax(::google::protobuf::Syntax value)1734 void Method::set_syntax(::google::protobuf::Syntax value) {
1735
1736 syntax_ = value;
1737 // @@protoc_insertion_point(field_set:google.protobuf.Method.syntax)
1738 }
1739
1740 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1741
1742 // ===================================================================
1743
1744 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1745 const int Mixin::kNameFieldNumber;
1746 const int Mixin::kRootFieldNumber;
1747 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1748
Mixin()1749 Mixin::Mixin()
1750 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1751 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1752 protobuf_google_2fprotobuf_2fapi_2eproto::InitDefaults();
1753 }
1754 SharedCtor();
1755 // @@protoc_insertion_point(constructor:google.protobuf.Mixin)
1756 }
Mixin(const Mixin & from)1757 Mixin::Mixin(const Mixin& from)
1758 : ::google::protobuf::Message(),
1759 _internal_metadata_(NULL),
1760 _cached_size_(0) {
1761 _internal_metadata_.MergeFrom(from._internal_metadata_);
1762 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1763 if (from.name().size() > 0) {
1764 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1765 }
1766 root_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1767 if (from.root().size() > 0) {
1768 root_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.root_);
1769 }
1770 // @@protoc_insertion_point(copy_constructor:google.protobuf.Mixin)
1771 }
1772
SharedCtor()1773 void Mixin::SharedCtor() {
1774 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1775 root_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1776 _cached_size_ = 0;
1777 }
1778
~Mixin()1779 Mixin::~Mixin() {
1780 // @@protoc_insertion_point(destructor:google.protobuf.Mixin)
1781 SharedDtor();
1782 }
1783
SharedDtor()1784 void Mixin::SharedDtor() {
1785 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1786 root_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1787 }
1788
SetCachedSize(int size) const1789 void Mixin::SetCachedSize(int size) const {
1790 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1791 _cached_size_ = size;
1792 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1793 }
descriptor()1794 const ::google::protobuf::Descriptor* Mixin::descriptor() {
1795 protobuf_google_2fprotobuf_2fapi_2eproto::protobuf_AssignDescriptorsOnce();
1796 return protobuf_google_2fprotobuf_2fapi_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1797 }
1798
default_instance()1799 const Mixin& Mixin::default_instance() {
1800 protobuf_google_2fprotobuf_2fapi_2eproto::InitDefaults();
1801 return *internal_default_instance();
1802 }
1803
New(::google::protobuf::Arena * arena) const1804 Mixin* Mixin::New(::google::protobuf::Arena* arena) const {
1805 Mixin* n = new Mixin;
1806 if (arena != NULL) {
1807 arena->Own(n);
1808 }
1809 return n;
1810 }
1811
Clear()1812 void Mixin::Clear() {
1813 // @@protoc_insertion_point(message_clear_start:google.protobuf.Mixin)
1814 ::google::protobuf::uint32 cached_has_bits = 0;
1815 // Prevent compiler warnings about cached_has_bits being unused
1816 (void) cached_has_bits;
1817
1818 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1819 root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1820 _internal_metadata_.Clear();
1821 }
1822
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)1823 bool Mixin::MergePartialFromCodedStream(
1824 ::google::protobuf::io::CodedInputStream* input) {
1825 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1826 ::google::protobuf::uint32 tag;
1827 // @@protoc_insertion_point(parse_start:google.protobuf.Mixin)
1828 for (;;) {
1829 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1830 tag = p.first;
1831 if (!p.second) goto handle_unusual;
1832 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1833 // string name = 1;
1834 case 1: {
1835 if (static_cast< ::google::protobuf::uint8>(tag) ==
1836 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1837 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1838 input, this->mutable_name()));
1839 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1840 this->name().data(), static_cast<int>(this->name().length()),
1841 ::google::protobuf::internal::WireFormatLite::PARSE,
1842 "google.protobuf.Mixin.name"));
1843 } else {
1844 goto handle_unusual;
1845 }
1846 break;
1847 }
1848
1849 // string root = 2;
1850 case 2: {
1851 if (static_cast< ::google::protobuf::uint8>(tag) ==
1852 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1853 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1854 input, this->mutable_root()));
1855 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1856 this->root().data(), static_cast<int>(this->root().length()),
1857 ::google::protobuf::internal::WireFormatLite::PARSE,
1858 "google.protobuf.Mixin.root"));
1859 } else {
1860 goto handle_unusual;
1861 }
1862 break;
1863 }
1864
1865 default: {
1866 handle_unusual:
1867 if (tag == 0) {
1868 goto success;
1869 }
1870 DO_(::google::protobuf::internal::WireFormat::SkipField(
1871 input, tag, _internal_metadata_.mutable_unknown_fields()));
1872 break;
1873 }
1874 }
1875 }
1876 success:
1877 // @@protoc_insertion_point(parse_success:google.protobuf.Mixin)
1878 return true;
1879 failure:
1880 // @@protoc_insertion_point(parse_failure:google.protobuf.Mixin)
1881 return false;
1882 #undef DO_
1883 }
1884
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1885 void Mixin::SerializeWithCachedSizes(
1886 ::google::protobuf::io::CodedOutputStream* output) const {
1887 // @@protoc_insertion_point(serialize_start:google.protobuf.Mixin)
1888 ::google::protobuf::uint32 cached_has_bits = 0;
1889 (void) cached_has_bits;
1890
1891 // string name = 1;
1892 if (this->name().size() > 0) {
1893 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1894 this->name().data(), static_cast<int>(this->name().length()),
1895 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1896 "google.protobuf.Mixin.name");
1897 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1898 1, this->name(), output);
1899 }
1900
1901 // string root = 2;
1902 if (this->root().size() > 0) {
1903 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1904 this->root().data(), static_cast<int>(this->root().length()),
1905 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1906 "google.protobuf.Mixin.root");
1907 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1908 2, this->root(), output);
1909 }
1910
1911 if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1912 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1913 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
1914 }
1915 // @@protoc_insertion_point(serialize_end:google.protobuf.Mixin)
1916 }
1917
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const1918 ::google::protobuf::uint8* Mixin::InternalSerializeWithCachedSizesToArray(
1919 bool deterministic, ::google::protobuf::uint8* target) const {
1920 (void)deterministic; // Unused
1921 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Mixin)
1922 ::google::protobuf::uint32 cached_has_bits = 0;
1923 (void) cached_has_bits;
1924
1925 // string name = 1;
1926 if (this->name().size() > 0) {
1927 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1928 this->name().data(), static_cast<int>(this->name().length()),
1929 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1930 "google.protobuf.Mixin.name");
1931 target =
1932 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1933 1, this->name(), target);
1934 }
1935
1936 // string root = 2;
1937 if (this->root().size() > 0) {
1938 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1939 this->root().data(), static_cast<int>(this->root().length()),
1940 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1941 "google.protobuf.Mixin.root");
1942 target =
1943 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1944 2, this->root(), target);
1945 }
1946
1947 if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1948 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1949 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
1950 }
1951 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Mixin)
1952 return target;
1953 }
1954
ByteSizeLong() const1955 size_t Mixin::ByteSizeLong() const {
1956 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Mixin)
1957 size_t total_size = 0;
1958
1959 if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1960 total_size +=
1961 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1962 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
1963 }
1964 // string name = 1;
1965 if (this->name().size() > 0) {
1966 total_size += 1 +
1967 ::google::protobuf::internal::WireFormatLite::StringSize(
1968 this->name());
1969 }
1970
1971 // string root = 2;
1972 if (this->root().size() > 0) {
1973 total_size += 1 +
1974 ::google::protobuf::internal::WireFormatLite::StringSize(
1975 this->root());
1976 }
1977
1978 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1979 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1980 _cached_size_ = cached_size;
1981 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1982 return total_size;
1983 }
1984
MergeFrom(const::google::protobuf::Message & from)1985 void Mixin::MergeFrom(const ::google::protobuf::Message& from) {
1986 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Mixin)
1987 GOOGLE_DCHECK_NE(&from, this);
1988 const Mixin* source =
1989 ::google::protobuf::internal::DynamicCastToGenerated<const Mixin>(
1990 &from);
1991 if (source == NULL) {
1992 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Mixin)
1993 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1994 } else {
1995 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Mixin)
1996 MergeFrom(*source);
1997 }
1998 }
1999
MergeFrom(const Mixin & from)2000 void Mixin::MergeFrom(const Mixin& from) {
2001 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Mixin)
2002 GOOGLE_DCHECK_NE(&from, this);
2003 _internal_metadata_.MergeFrom(from._internal_metadata_);
2004 ::google::protobuf::uint32 cached_has_bits = 0;
2005 (void) cached_has_bits;
2006
2007 if (from.name().size() > 0) {
2008
2009 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
2010 }
2011 if (from.root().size() > 0) {
2012
2013 root_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.root_);
2014 }
2015 }
2016
CopyFrom(const::google::protobuf::Message & from)2017 void Mixin::CopyFrom(const ::google::protobuf::Message& from) {
2018 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Mixin)
2019 if (&from == this) return;
2020 Clear();
2021 MergeFrom(from);
2022 }
2023
CopyFrom(const Mixin & from)2024 void Mixin::CopyFrom(const Mixin& from) {
2025 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Mixin)
2026 if (&from == this) return;
2027 Clear();
2028 MergeFrom(from);
2029 }
2030
IsInitialized() const2031 bool Mixin::IsInitialized() const {
2032 return true;
2033 }
2034
Swap(Mixin * other)2035 void Mixin::Swap(Mixin* other) {
2036 if (other == this) return;
2037 InternalSwap(other);
2038 }
InternalSwap(Mixin * other)2039 void Mixin::InternalSwap(Mixin* other) {
2040 using std::swap;
2041 name_.Swap(&other->name_);
2042 root_.Swap(&other->root_);
2043 _internal_metadata_.Swap(&other->_internal_metadata_);
2044 swap(_cached_size_, other->_cached_size_);
2045 }
2046
GetMetadata() const2047 ::google::protobuf::Metadata Mixin::GetMetadata() const {
2048 protobuf_google_2fprotobuf_2fapi_2eproto::protobuf_AssignDescriptorsOnce();
2049 return protobuf_google_2fprotobuf_2fapi_2eproto::file_level_metadata[kIndexInFileMessages];
2050 }
2051
2052 #if PROTOBUF_INLINE_NOT_IN_HEADERS
2053 // Mixin
2054
2055 // string name = 1;
clear_name()2056 void Mixin::clear_name() {
2057 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2058 }
name() const2059 const ::std::string& Mixin::name() const {
2060 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.name)
2061 return name_.GetNoArena();
2062 }
set_name(const::std::string & value)2063 void Mixin::set_name(const ::std::string& value) {
2064
2065 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2066 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.name)
2067 }
2068 #if LANG_CXX11
set_name(::std::string && value)2069 void Mixin::set_name(::std::string&& value) {
2070
2071 name_.SetNoArena(
2072 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
2073 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Mixin.name)
2074 }
2075 #endif
set_name(const char * value)2076 void Mixin::set_name(const char* value) {
2077 GOOGLE_DCHECK(value != NULL);
2078
2079 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2080 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.name)
2081 }
set_name(const char * value,size_t size)2082 void Mixin::set_name(const char* value, size_t size) {
2083
2084 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2085 ::std::string(reinterpret_cast<const char*>(value), size));
2086 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.name)
2087 }
mutable_name()2088 ::std::string* Mixin::mutable_name() {
2089
2090 // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.name)
2091 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2092 }
release_name()2093 ::std::string* Mixin::release_name() {
2094 // @@protoc_insertion_point(field_release:google.protobuf.Mixin.name)
2095
2096 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2097 }
set_allocated_name(::std::string * name)2098 void Mixin::set_allocated_name(::std::string* name) {
2099 if (name != NULL) {
2100
2101 } else {
2102
2103 }
2104 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
2105 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.name)
2106 }
2107
2108 // string root = 2;
clear_root()2109 void Mixin::clear_root() {
2110 root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2111 }
root() const2112 const ::std::string& Mixin::root() const {
2113 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.root)
2114 return root_.GetNoArena();
2115 }
set_root(const::std::string & value)2116 void Mixin::set_root(const ::std::string& value) {
2117
2118 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2119 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.root)
2120 }
2121 #if LANG_CXX11
set_root(::std::string && value)2122 void Mixin::set_root(::std::string&& value) {
2123
2124 root_.SetNoArena(
2125 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
2126 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Mixin.root)
2127 }
2128 #endif
set_root(const char * value)2129 void Mixin::set_root(const char* value) {
2130 GOOGLE_DCHECK(value != NULL);
2131
2132 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2133 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.root)
2134 }
set_root(const char * value,size_t size)2135 void Mixin::set_root(const char* value, size_t size) {
2136
2137 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2138 ::std::string(reinterpret_cast<const char*>(value), size));
2139 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.root)
2140 }
mutable_root()2141 ::std::string* Mixin::mutable_root() {
2142
2143 // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.root)
2144 return root_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2145 }
release_root()2146 ::std::string* Mixin::release_root() {
2147 // @@protoc_insertion_point(field_release:google.protobuf.Mixin.root)
2148
2149 return root_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2150 }
set_allocated_root(::std::string * root)2151 void Mixin::set_allocated_root(::std::string* root) {
2152 if (root != NULL) {
2153
2154 } else {
2155
2156 }
2157 root_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), root);
2158 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.root)
2159 }
2160
2161 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
2162
2163 // @@protoc_insertion_point(namespace_scope)
2164
2165 } // namespace protobuf
2166 } // namespace google
2167
2168 // @@protoc_insertion_point(global_scope)
2169