blob: e0a249d04155a9ed73a027d4820227391abecb1c [file] [log] [blame]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: google/protobuf/api.proto
3
Brian Silverman9c614bc2016-02-15 20:20:02 -05004#include <google/protobuf/api.pb.h>
5
6#include <algorithm>
7
8#include <google/protobuf/stubs/common.h>
9#include <google/protobuf/stubs/port.h>
Brian Silverman9c614bc2016-02-15 20:20:02 -050010#include <google/protobuf/io/coded_stream.h>
11#include <google/protobuf/wire_format_lite_inl.h>
12#include <google/protobuf/descriptor.h>
13#include <google/protobuf/generated_message_reflection.h>
14#include <google/protobuf/reflection_ops.h>
15#include <google/protobuf/wire_format.h>
Austin Schuh40c16522018-10-28 20:27:54 -070016// This is a temporary google only hack
17#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
18#include "third_party/protobuf/version.h"
19#endif
Brian Silverman9c614bc2016-02-15 20:20:02 -050020// @@protoc_insertion_point(includes)
21
Austin Schuh40c16522018-10-28 20:27:54 -070022namespace protobuf_google_2fprotobuf_2fapi_2eproto {
23extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fapi_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Mixin;
24extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fapi_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Method;
25} // namespace protobuf_google_2fprotobuf_2fapi_2eproto
26namespace protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto {
27extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SourceContext;
28} // namespace protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto
29namespace protobuf_google_2fprotobuf_2ftype_2eproto {
30extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2ftype_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Option;
31} // namespace protobuf_google_2fprotobuf_2ftype_2eproto
32namespace google {
33namespace protobuf {
34class ApiDefaultTypeInternal {
35 public:
36 ::google::protobuf::internal::ExplicitlyConstructed<Api>
37 _instance;
38} _Api_default_instance_;
39class MethodDefaultTypeInternal {
40 public:
41 ::google::protobuf::internal::ExplicitlyConstructed<Method>
42 _instance;
43} _Method_default_instance_;
44class MixinDefaultTypeInternal {
45 public:
46 ::google::protobuf::internal::ExplicitlyConstructed<Mixin>
47 _instance;
48} _Mixin_default_instance_;
49} // namespace protobuf
50} // namespace google
51namespace protobuf_google_2fprotobuf_2fapi_2eproto {
52static void InitDefaultsApi() {
53 GOOGLE_PROTOBUF_VERIFY_VERSION;
54
55 {
56 void* ptr = &::google::protobuf::_Api_default_instance_;
57 new (ptr) ::google::protobuf::Api();
58 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
59 }
60 ::google::protobuf::Api::InitAsDefaultInstance();
61}
62
63LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<4> scc_info_Api =
64 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsApi}, {
65 &protobuf_google_2fprotobuf_2fapi_2eproto::scc_info_Method.base,
66 &protobuf_google_2fprotobuf_2ftype_2eproto::scc_info_Option.base,
67 &protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto::scc_info_SourceContext.base,
68 &protobuf_google_2fprotobuf_2fapi_2eproto::scc_info_Mixin.base,}};
69
70static void InitDefaultsMethod() {
71 GOOGLE_PROTOBUF_VERIFY_VERSION;
72
73 {
74 void* ptr = &::google::protobuf::_Method_default_instance_;
75 new (ptr) ::google::protobuf::Method();
76 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
77 }
78 ::google::protobuf::Method::InitAsDefaultInstance();
79}
80
81LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_Method =
82 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMethod}, {
83 &protobuf_google_2fprotobuf_2ftype_2eproto::scc_info_Option.base,}};
84
85static void InitDefaultsMixin() {
86 GOOGLE_PROTOBUF_VERIFY_VERSION;
87
88 {
89 void* ptr = &::google::protobuf::_Mixin_default_instance_;
90 new (ptr) ::google::protobuf::Mixin();
91 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
92 }
93 ::google::protobuf::Mixin::InitAsDefaultInstance();
94}
95
96LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<0> scc_info_Mixin =
97 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMixin}, {}};
98
99void InitDefaults() {
100 ::google::protobuf::internal::InitSCC(&scc_info_Api.base);
101 ::google::protobuf::internal::InitSCC(&scc_info_Method.base);
102 ::google::protobuf::internal::InitSCC(&scc_info_Mixin.base);
103}
104
105::google::protobuf::Metadata file_level_metadata[3];
106
107const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
108 ~0u, // no _has_bits_
109 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Api, _internal_metadata_),
110 ~0u, // no _extensions_
111 ~0u, // no _oneof_case_
112 ~0u, // no _weak_field_map_
113 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Api, name_),
114 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Api, methods_),
115 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Api, options_),
116 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Api, version_),
117 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Api, source_context_),
118 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Api, mixins_),
119 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Api, syntax_),
120 ~0u, // no _has_bits_
121 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Method, _internal_metadata_),
122 ~0u, // no _extensions_
123 ~0u, // no _oneof_case_
124 ~0u, // no _weak_field_map_
125 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Method, name_),
126 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Method, request_type_url_),
127 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Method, request_streaming_),
128 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Method, response_type_url_),
129 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Method, response_streaming_),
130 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Method, options_),
131 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Method, syntax_),
132 ~0u, // no _has_bits_
133 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Mixin, _internal_metadata_),
134 ~0u, // no _extensions_
135 ~0u, // no _oneof_case_
136 ~0u, // no _weak_field_map_
137 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Mixin, name_),
138 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Mixin, root_),
139};
140static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
141 { 0, -1, sizeof(::google::protobuf::Api)},
142 { 12, -1, sizeof(::google::protobuf::Method)},
143 { 24, -1, sizeof(::google::protobuf::Mixin)},
144};
145
146static ::google::protobuf::Message const * const file_default_instances[] = {
147 reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_Api_default_instance_),
148 reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_Method_default_instance_),
149 reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_Mixin_default_instance_),
150};
151
152void protobuf_AssignDescriptors() {
153 AddDescriptors();
154 AssignDescriptors(
155 "google/protobuf/api.proto", schemas, file_default_instances, TableStruct::offsets,
156 file_level_metadata, NULL, NULL);
157}
158
159void protobuf_AssignDescriptorsOnce() {
160 static ::google::protobuf::internal::once_flag once;
161 ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
162}
163
164void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
165void protobuf_RegisterTypes(const ::std::string&) {
166 protobuf_AssignDescriptorsOnce();
167 ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
168}
169
170void AddDescriptorsImpl() {
171 InitDefaults();
172 static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
173 "\n\031google/protobuf/api.proto\022\017google.prot"
174 "obuf\032$google/protobuf/source_context.pro"
175 "to\032\032google/protobuf/type.proto\"\201\002\n\003Api\022\014"
176 "\n\004name\030\001 \001(\t\022(\n\007methods\030\002 \003(\0132\027.google.p"
177 "rotobuf.Method\022(\n\007options\030\003 \003(\0132\027.google"
178 ".protobuf.Option\022\017\n\007version\030\004 \001(\t\0226\n\016sou"
179 "rce_context\030\005 \001(\0132\036.google.protobuf.Sour"
180 "ceContext\022&\n\006mixins\030\006 \003(\0132\026.google.proto"
181 "buf.Mixin\022\'\n\006syntax\030\007 \001(\0162\027.google.proto"
182 "buf.Syntax\"\325\001\n\006Method\022\014\n\004name\030\001 \001(\t\022\030\n\020r"
183 "equest_type_url\030\002 \001(\t\022\031\n\021request_streami"
184 "ng\030\003 \001(\010\022\031\n\021response_type_url\030\004 \001(\t\022\032\n\022r"
185 "esponse_streaming\030\005 \001(\010\022(\n\007options\030\006 \003(\013"
186 "2\027.google.protobuf.Option\022\'\n\006syntax\030\007 \001("
187 "\0162\027.google.protobuf.Syntax\"#\n\005Mixin\022\014\n\004n"
188 "ame\030\001 \001(\t\022\014\n\004root\030\002 \001(\tBu\n\023com.google.pr"
189 "otobufB\010ApiProtoP\001Z+google.golang.org/ge"
190 "nproto/protobuf/api;api\242\002\003GPB\252\002\036Google.P"
191 "rotobuf.WellKnownTypesb\006proto3"
192 };
193 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
194 descriptor, 750);
195 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
196 "google/protobuf/api.proto", &protobuf_RegisterTypes);
197 ::protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto::AddDescriptors();
198 ::protobuf_google_2fprotobuf_2ftype_2eproto::AddDescriptors();
199}
200
201void AddDescriptors() {
202 static ::google::protobuf::internal::once_flag once;
203 ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
204}
205// Force AddDescriptors() to be called at dynamic initialization time.
206struct StaticDescriptorInitializer {
207 StaticDescriptorInitializer() {
208 AddDescriptors();
209 }
210} static_descriptor_initializer;
211} // namespace protobuf_google_2fprotobuf_2fapi_2eproto
Brian Silverman9c614bc2016-02-15 20:20:02 -0500212namespace google {
213namespace protobuf {
214
Brian Silverman9c614bc2016-02-15 20:20:02 -0500215// ===================================================================
216
Austin Schuh40c16522018-10-28 20:27:54 -0700217void Api::InitAsDefaultInstance() {
218 ::google::protobuf::_Api_default_instance_._instance.get_mutable()->source_context_ = const_cast< ::google::protobuf::SourceContext*>(
219 ::google::protobuf::SourceContext::internal_default_instance());
220}
221void Api::clear_options() {
222 options_.Clear();
223}
224void Api::clear_source_context() {
225 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) {
226 delete source_context_;
227 }
228 source_context_ = NULL;
229}
Brian Silverman9c614bc2016-02-15 20:20:02 -0500230#if !defined(_MSC_VER) || _MSC_VER >= 1900
231const int Api::kNameFieldNumber;
232const int Api::kMethodsFieldNumber;
233const int Api::kOptionsFieldNumber;
234const int Api::kVersionFieldNumber;
235const int Api::kSourceContextFieldNumber;
236const int Api::kMixinsFieldNumber;
237const int Api::kSyntaxFieldNumber;
238#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
239
240Api::Api()
241 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
Austin Schuh40c16522018-10-28 20:27:54 -0700242 ::google::protobuf::internal::InitSCC(
243 &protobuf_google_2fprotobuf_2fapi_2eproto::scc_info_Api.base);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500244 SharedCtor();
245 // @@protoc_insertion_point(constructor:google.protobuf.Api)
246}
Brian Silverman9c614bc2016-02-15 20:20:02 -0500247Api::Api(const Api& from)
248 : ::google::protobuf::Message(),
Austin Schuh40c16522018-10-28 20:27:54 -0700249 _internal_metadata_(NULL),
250 methods_(from.methods_),
251 options_(from.options_),
252 mixins_(from.mixins_) {
253 _internal_metadata_.MergeFrom(from._internal_metadata_);
254 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
255 if (from.name().size() > 0) {
256 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
257 }
258 version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
259 if (from.version().size() > 0) {
260 version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_);
261 }
262 if (from.has_source_context()) {
263 source_context_ = new ::google::protobuf::SourceContext(*from.source_context_);
264 } else {
265 source_context_ = NULL;
266 }
267 syntax_ = from.syntax_;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500268 // @@protoc_insertion_point(copy_constructor:google.protobuf.Api)
269}
270
271void Api::SharedCtor() {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500272 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
273 version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
Austin Schuh40c16522018-10-28 20:27:54 -0700274 ::memset(&source_context_, 0, static_cast<size_t>(
275 reinterpret_cast<char*>(&syntax_) -
276 reinterpret_cast<char*>(&source_context_)) + sizeof(syntax_));
Brian Silverman9c614bc2016-02-15 20:20:02 -0500277}
278
279Api::~Api() {
280 // @@protoc_insertion_point(destructor:google.protobuf.Api)
281 SharedDtor();
282}
283
284void Api::SharedDtor() {
285 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
286 version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
Austin Schuh40c16522018-10-28 20:27:54 -0700287 if (this != internal_default_instance()) delete source_context_;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500288}
289
290void Api::SetCachedSize(int size) const {
Austin Schuh40c16522018-10-28 20:27:54 -0700291 _cached_size_.Set(size);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500292}
293const ::google::protobuf::Descriptor* Api::descriptor() {
Austin Schuh40c16522018-10-28 20:27:54 -0700294 ::protobuf_google_2fprotobuf_2fapi_2eproto::protobuf_AssignDescriptorsOnce();
295 return ::protobuf_google_2fprotobuf_2fapi_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500296}
297
298const Api& Api::default_instance() {
Austin Schuh40c16522018-10-28 20:27:54 -0700299 ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fapi_2eproto::scc_info_Api.base);
300 return *internal_default_instance();
Brian Silverman9c614bc2016-02-15 20:20:02 -0500301}
302
Brian Silverman9c614bc2016-02-15 20:20:02 -0500303
304void Api::Clear() {
Austin Schuh40c16522018-10-28 20:27:54 -0700305// @@protoc_insertion_point(message_clear_start:google.protobuf.Api)
306 ::google::protobuf::uint32 cached_has_bits = 0;
307 // Prevent compiler warnings about cached_has_bits being unused
308 (void) cached_has_bits;
309
Brian Silverman9c614bc2016-02-15 20:20:02 -0500310 methods_.Clear();
311 options_.Clear();
312 mixins_.Clear();
Austin Schuh40c16522018-10-28 20:27:54 -0700313 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
314 version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
315 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) {
316 delete source_context_;
317 }
318 source_context_ = NULL;
319 syntax_ = 0;
320 _internal_metadata_.Clear();
Brian Silverman9c614bc2016-02-15 20:20:02 -0500321}
322
323bool Api::MergePartialFromCodedStream(
324 ::google::protobuf::io::CodedInputStream* input) {
Austin Schuh40c16522018-10-28 20:27:54 -0700325#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
Brian Silverman9c614bc2016-02-15 20:20:02 -0500326 ::google::protobuf::uint32 tag;
327 // @@protoc_insertion_point(parse_start:google.protobuf.Api)
328 for (;;) {
Austin Schuh40c16522018-10-28 20:27:54 -0700329 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500330 tag = p.first;
331 if (!p.second) goto handle_unusual;
332 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
Austin Schuh40c16522018-10-28 20:27:54 -0700333 // string name = 1;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500334 case 1: {
Austin Schuh40c16522018-10-28 20:27:54 -0700335 if (static_cast< ::google::protobuf::uint8>(tag) ==
336 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500337 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
338 input, this->mutable_name()));
339 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -0700340 this->name().data(), static_cast<int>(this->name().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -0500341 ::google::protobuf::internal::WireFormatLite::PARSE,
342 "google.protobuf.Api.name"));
343 } else {
344 goto handle_unusual;
345 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500346 break;
347 }
348
349 // repeated .google.protobuf.Method methods = 2;
350 case 2: {
Austin Schuh40c16522018-10-28 20:27:54 -0700351 if (static_cast< ::google::protobuf::uint8>(tag) ==
352 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
353 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
Brian Silverman9c614bc2016-02-15 20:20:02 -0500354 input, add_methods()));
355 } else {
356 goto handle_unusual;
357 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500358 break;
359 }
360
361 // repeated .google.protobuf.Option options = 3;
362 case 3: {
Austin Schuh40c16522018-10-28 20:27:54 -0700363 if (static_cast< ::google::protobuf::uint8>(tag) ==
364 static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
365 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
Brian Silverman9c614bc2016-02-15 20:20:02 -0500366 input, add_options()));
367 } else {
368 goto handle_unusual;
369 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500370 break;
371 }
372
Austin Schuh40c16522018-10-28 20:27:54 -0700373 // string version = 4;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500374 case 4: {
Austin Schuh40c16522018-10-28 20:27:54 -0700375 if (static_cast< ::google::protobuf::uint8>(tag) ==
376 static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500377 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
378 input, this->mutable_version()));
379 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -0700380 this->version().data(), static_cast<int>(this->version().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -0500381 ::google::protobuf::internal::WireFormatLite::PARSE,
382 "google.protobuf.Api.version"));
383 } else {
384 goto handle_unusual;
385 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500386 break;
387 }
388
Austin Schuh40c16522018-10-28 20:27:54 -0700389 // .google.protobuf.SourceContext source_context = 5;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500390 case 5: {
Austin Schuh40c16522018-10-28 20:27:54 -0700391 if (static_cast< ::google::protobuf::uint8>(tag) ==
392 static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
393 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
Brian Silverman9c614bc2016-02-15 20:20:02 -0500394 input, mutable_source_context()));
395 } else {
396 goto handle_unusual;
397 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500398 break;
399 }
400
401 // repeated .google.protobuf.Mixin mixins = 6;
402 case 6: {
Austin Schuh40c16522018-10-28 20:27:54 -0700403 if (static_cast< ::google::protobuf::uint8>(tag) ==
404 static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
405 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
Brian Silverman9c614bc2016-02-15 20:20:02 -0500406 input, add_mixins()));
407 } else {
408 goto handle_unusual;
409 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500410 break;
411 }
412
Austin Schuh40c16522018-10-28 20:27:54 -0700413 // .google.protobuf.Syntax syntax = 7;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500414 case 7: {
Austin Schuh40c16522018-10-28 20:27:54 -0700415 if (static_cast< ::google::protobuf::uint8>(tag) ==
416 static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500417 int value;
418 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
419 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
420 input, &value)));
421 set_syntax(static_cast< ::google::protobuf::Syntax >(value));
422 } else {
423 goto handle_unusual;
424 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500425 break;
426 }
427
428 default: {
429 handle_unusual:
Austin Schuh40c16522018-10-28 20:27:54 -0700430 if (tag == 0) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500431 goto success;
432 }
Austin Schuh40c16522018-10-28 20:27:54 -0700433 DO_(::google::protobuf::internal::WireFormat::SkipField(
434 input, tag, _internal_metadata_.mutable_unknown_fields()));
Brian Silverman9c614bc2016-02-15 20:20:02 -0500435 break;
436 }
437 }
438 }
439success:
440 // @@protoc_insertion_point(parse_success:google.protobuf.Api)
441 return true;
442failure:
443 // @@protoc_insertion_point(parse_failure:google.protobuf.Api)
444 return false;
445#undef DO_
446}
447
448void Api::SerializeWithCachedSizes(
449 ::google::protobuf::io::CodedOutputStream* output) const {
450 // @@protoc_insertion_point(serialize_start:google.protobuf.Api)
Austin Schuh40c16522018-10-28 20:27:54 -0700451 ::google::protobuf::uint32 cached_has_bits = 0;
452 (void) cached_has_bits;
453
454 // string name = 1;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500455 if (this->name().size() > 0) {
456 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -0700457 this->name().data(), static_cast<int>(this->name().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -0500458 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
459 "google.protobuf.Api.name");
460 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
461 1, this->name(), output);
462 }
463
464 // repeated .google.protobuf.Method methods = 2;
Austin Schuh40c16522018-10-28 20:27:54 -0700465 for (unsigned int i = 0,
466 n = static_cast<unsigned int>(this->methods_size()); i < n; i++) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500467 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
Austin Schuh40c16522018-10-28 20:27:54 -0700468 2,
469 this->methods(static_cast<int>(i)),
470 output);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500471 }
472
473 // repeated .google.protobuf.Option options = 3;
Austin Schuh40c16522018-10-28 20:27:54 -0700474 for (unsigned int i = 0,
475 n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500476 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
Austin Schuh40c16522018-10-28 20:27:54 -0700477 3,
478 this->options(static_cast<int>(i)),
479 output);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500480 }
481
Austin Schuh40c16522018-10-28 20:27:54 -0700482 // string version = 4;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500483 if (this->version().size() > 0) {
484 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -0700485 this->version().data(), static_cast<int>(this->version().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -0500486 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
487 "google.protobuf.Api.version");
488 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
489 4, this->version(), output);
490 }
491
Austin Schuh40c16522018-10-28 20:27:54 -0700492 // .google.protobuf.SourceContext source_context = 5;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500493 if (this->has_source_context()) {
494 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
Austin Schuh40c16522018-10-28 20:27:54 -0700495 5, this->_internal_source_context(), output);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500496 }
497
498 // repeated .google.protobuf.Mixin mixins = 6;
Austin Schuh40c16522018-10-28 20:27:54 -0700499 for (unsigned int i = 0,
500 n = static_cast<unsigned int>(this->mixins_size()); i < n; i++) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500501 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
Austin Schuh40c16522018-10-28 20:27:54 -0700502 6,
503 this->mixins(static_cast<int>(i)),
504 output);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500505 }
506
Austin Schuh40c16522018-10-28 20:27:54 -0700507 // .google.protobuf.Syntax syntax = 7;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500508 if (this->syntax() != 0) {
509 ::google::protobuf::internal::WireFormatLite::WriteEnum(
510 7, this->syntax(), output);
511 }
512
Austin Schuh40c16522018-10-28 20:27:54 -0700513 if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
514 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
515 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
516 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500517 // @@protoc_insertion_point(serialize_end:google.protobuf.Api)
518}
519
Austin Schuh40c16522018-10-28 20:27:54 -0700520::google::protobuf::uint8* Api::InternalSerializeWithCachedSizesToArray(
521 bool deterministic, ::google::protobuf::uint8* target) const {
522 (void)deterministic; // Unused
Brian Silverman9c614bc2016-02-15 20:20:02 -0500523 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Api)
Austin Schuh40c16522018-10-28 20:27:54 -0700524 ::google::protobuf::uint32 cached_has_bits = 0;
525 (void) cached_has_bits;
526
527 // string name = 1;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500528 if (this->name().size() > 0) {
529 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -0700530 this->name().data(), static_cast<int>(this->name().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -0500531 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
532 "google.protobuf.Api.name");
533 target =
534 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
535 1, this->name(), target);
536 }
537
538 // repeated .google.protobuf.Method methods = 2;
Austin Schuh40c16522018-10-28 20:27:54 -0700539 for (unsigned int i = 0,
540 n = static_cast<unsigned int>(this->methods_size()); i < n; i++) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500541 target = ::google::protobuf::internal::WireFormatLite::
Austin Schuh40c16522018-10-28 20:27:54 -0700542 InternalWriteMessageToArray(
543 2, this->methods(static_cast<int>(i)), deterministic, target);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500544 }
545
546 // repeated .google.protobuf.Option options = 3;
Austin Schuh40c16522018-10-28 20:27:54 -0700547 for (unsigned int i = 0,
548 n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500549 target = ::google::protobuf::internal::WireFormatLite::
Austin Schuh40c16522018-10-28 20:27:54 -0700550 InternalWriteMessageToArray(
551 3, this->options(static_cast<int>(i)), deterministic, target);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500552 }
553
Austin Schuh40c16522018-10-28 20:27:54 -0700554 // string version = 4;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500555 if (this->version().size() > 0) {
556 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -0700557 this->version().data(), static_cast<int>(this->version().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -0500558 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
559 "google.protobuf.Api.version");
560 target =
561 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
562 4, this->version(), target);
563 }
564
Austin Schuh40c16522018-10-28 20:27:54 -0700565 // .google.protobuf.SourceContext source_context = 5;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500566 if (this->has_source_context()) {
567 target = ::google::protobuf::internal::WireFormatLite::
Austin Schuh40c16522018-10-28 20:27:54 -0700568 InternalWriteMessageToArray(
569 5, this->_internal_source_context(), deterministic, target);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500570 }
571
572 // repeated .google.protobuf.Mixin mixins = 6;
Austin Schuh40c16522018-10-28 20:27:54 -0700573 for (unsigned int i = 0,
574 n = static_cast<unsigned int>(this->mixins_size()); i < n; i++) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500575 target = ::google::protobuf::internal::WireFormatLite::
Austin Schuh40c16522018-10-28 20:27:54 -0700576 InternalWriteMessageToArray(
577 6, this->mixins(static_cast<int>(i)), deterministic, target);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500578 }
579
Austin Schuh40c16522018-10-28 20:27:54 -0700580 // .google.protobuf.Syntax syntax = 7;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500581 if (this->syntax() != 0) {
582 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
583 7, this->syntax(), target);
584 }
585
Austin Schuh40c16522018-10-28 20:27:54 -0700586 if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
587 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
588 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
589 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500590 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Api)
591 return target;
592}
593
Austin Schuh40c16522018-10-28 20:27:54 -0700594size_t Api::ByteSizeLong() const {
595// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Api)
596 size_t total_size = 0;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500597
Austin Schuh40c16522018-10-28 20:27:54 -0700598 if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
599 total_size +=
600 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
601 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
602 }
603 // repeated .google.protobuf.Method methods = 2;
604 {
605 unsigned int count = static_cast<unsigned int>(this->methods_size());
606 total_size += 1UL * count;
607 for (unsigned int i = 0; i < count; i++) {
608 total_size +=
609 ::google::protobuf::internal::WireFormatLite::MessageSize(
610 this->methods(static_cast<int>(i)));
611 }
612 }
613
614 // repeated .google.protobuf.Option options = 3;
615 {
616 unsigned int count = static_cast<unsigned int>(this->options_size());
617 total_size += 1UL * count;
618 for (unsigned int i = 0; i < count; i++) {
619 total_size +=
620 ::google::protobuf::internal::WireFormatLite::MessageSize(
621 this->options(static_cast<int>(i)));
622 }
623 }
624
625 // repeated .google.protobuf.Mixin mixins = 6;
626 {
627 unsigned int count = static_cast<unsigned int>(this->mixins_size());
628 total_size += 1UL * count;
629 for (unsigned int i = 0; i < count; i++) {
630 total_size +=
631 ::google::protobuf::internal::WireFormatLite::MessageSize(
632 this->mixins(static_cast<int>(i)));
633 }
634 }
635
636 // string name = 1;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500637 if (this->name().size() > 0) {
638 total_size += 1 +
639 ::google::protobuf::internal::WireFormatLite::StringSize(
640 this->name());
641 }
642
Austin Schuh40c16522018-10-28 20:27:54 -0700643 // string version = 4;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500644 if (this->version().size() > 0) {
645 total_size += 1 +
646 ::google::protobuf::internal::WireFormatLite::StringSize(
647 this->version());
648 }
649
Austin Schuh40c16522018-10-28 20:27:54 -0700650 // .google.protobuf.SourceContext source_context = 5;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500651 if (this->has_source_context()) {
652 total_size += 1 +
Austin Schuh40c16522018-10-28 20:27:54 -0700653 ::google::protobuf::internal::WireFormatLite::MessageSize(
654 *source_context_);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500655 }
656
Austin Schuh40c16522018-10-28 20:27:54 -0700657 // .google.protobuf.Syntax syntax = 7;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500658 if (this->syntax() != 0) {
659 total_size += 1 +
660 ::google::protobuf::internal::WireFormatLite::EnumSize(this->syntax());
661 }
662
Austin Schuh40c16522018-10-28 20:27:54 -0700663 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
664 SetCachedSize(cached_size);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500665 return total_size;
666}
667
668void Api::MergeFrom(const ::google::protobuf::Message& from) {
Austin Schuh40c16522018-10-28 20:27:54 -0700669// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Api)
670 GOOGLE_DCHECK_NE(&from, this);
671 const Api* source =
Brian Silverman9c614bc2016-02-15 20:20:02 -0500672 ::google::protobuf::internal::DynamicCastToGenerated<const Api>(
673 &from);
674 if (source == NULL) {
Austin Schuh40c16522018-10-28 20:27:54 -0700675 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Api)
Brian Silverman9c614bc2016-02-15 20:20:02 -0500676 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
677 } else {
Austin Schuh40c16522018-10-28 20:27:54 -0700678 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Api)
Brian Silverman9c614bc2016-02-15 20:20:02 -0500679 MergeFrom(*source);
680 }
681}
682
683void Api::MergeFrom(const Api& from) {
Austin Schuh40c16522018-10-28 20:27:54 -0700684// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Api)
685 GOOGLE_DCHECK_NE(&from, this);
686 _internal_metadata_.MergeFrom(from._internal_metadata_);
687 ::google::protobuf::uint32 cached_has_bits = 0;
688 (void) cached_has_bits;
689
Brian Silverman9c614bc2016-02-15 20:20:02 -0500690 methods_.MergeFrom(from.methods_);
691 options_.MergeFrom(from.options_);
692 mixins_.MergeFrom(from.mixins_);
693 if (from.name().size() > 0) {
694
695 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
696 }
697 if (from.version().size() > 0) {
698
699 version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_);
700 }
701 if (from.has_source_context()) {
702 mutable_source_context()->::google::protobuf::SourceContext::MergeFrom(from.source_context());
703 }
704 if (from.syntax() != 0) {
705 set_syntax(from.syntax());
706 }
707}
708
709void Api::CopyFrom(const ::google::protobuf::Message& from) {
Austin Schuh40c16522018-10-28 20:27:54 -0700710// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Api)
Brian Silverman9c614bc2016-02-15 20:20:02 -0500711 if (&from == this) return;
712 Clear();
713 MergeFrom(from);
714}
715
716void Api::CopyFrom(const Api& from) {
Austin Schuh40c16522018-10-28 20:27:54 -0700717// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Api)
Brian Silverman9c614bc2016-02-15 20:20:02 -0500718 if (&from == this) return;
719 Clear();
720 MergeFrom(from);
721}
722
723bool Api::IsInitialized() const {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500724 return true;
725}
726
727void Api::Swap(Api* other) {
728 if (other == this) return;
729 InternalSwap(other);
730}
731void Api::InternalSwap(Api* other) {
Austin Schuh40c16522018-10-28 20:27:54 -0700732 using std::swap;
733 CastToBase(&methods_)->InternalSwap(CastToBase(&other->methods_));
734 CastToBase(&options_)->InternalSwap(CastToBase(&other->options_));
735 CastToBase(&mixins_)->InternalSwap(CastToBase(&other->mixins_));
736 name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
737 GetArenaNoVirtual());
738 version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
739 GetArenaNoVirtual());
740 swap(source_context_, other->source_context_);
741 swap(syntax_, other->syntax_);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500742 _internal_metadata_.Swap(&other->_internal_metadata_);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500743}
744
745::google::protobuf::Metadata Api::GetMetadata() const {
Austin Schuh40c16522018-10-28 20:27:54 -0700746 protobuf_google_2fprotobuf_2fapi_2eproto::protobuf_AssignDescriptorsOnce();
747 return ::protobuf_google_2fprotobuf_2fapi_2eproto::file_level_metadata[kIndexInFileMessages];
Brian Silverman9c614bc2016-02-15 20:20:02 -0500748}
749
Brian Silverman9c614bc2016-02-15 20:20:02 -0500750
751// ===================================================================
752
Austin Schuh40c16522018-10-28 20:27:54 -0700753void Method::InitAsDefaultInstance() {
754}
755void Method::clear_options() {
756 options_.Clear();
757}
Brian Silverman9c614bc2016-02-15 20:20:02 -0500758#if !defined(_MSC_VER) || _MSC_VER >= 1900
759const int Method::kNameFieldNumber;
760const int Method::kRequestTypeUrlFieldNumber;
761const int Method::kRequestStreamingFieldNumber;
762const int Method::kResponseTypeUrlFieldNumber;
763const int Method::kResponseStreamingFieldNumber;
764const int Method::kOptionsFieldNumber;
765const int Method::kSyntaxFieldNumber;
766#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
767
768Method::Method()
769 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
Austin Schuh40c16522018-10-28 20:27:54 -0700770 ::google::protobuf::internal::InitSCC(
771 &protobuf_google_2fprotobuf_2fapi_2eproto::scc_info_Method.base);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500772 SharedCtor();
773 // @@protoc_insertion_point(constructor:google.protobuf.Method)
774}
Brian Silverman9c614bc2016-02-15 20:20:02 -0500775Method::Method(const Method& from)
776 : ::google::protobuf::Message(),
Austin Schuh40c16522018-10-28 20:27:54 -0700777 _internal_metadata_(NULL),
778 options_(from.options_) {
779 _internal_metadata_.MergeFrom(from._internal_metadata_);
780 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
781 if (from.name().size() > 0) {
782 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
783 }
784 request_type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
785 if (from.request_type_url().size() > 0) {
786 request_type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_type_url_);
787 }
788 response_type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
789 if (from.response_type_url().size() > 0) {
790 response_type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.response_type_url_);
791 }
792 ::memcpy(&request_streaming_, &from.request_streaming_,
793 static_cast<size_t>(reinterpret_cast<char*>(&syntax_) -
794 reinterpret_cast<char*>(&request_streaming_)) + sizeof(syntax_));
Brian Silverman9c614bc2016-02-15 20:20:02 -0500795 // @@protoc_insertion_point(copy_constructor:google.protobuf.Method)
796}
797
798void Method::SharedCtor() {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500799 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
800 request_type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
Brian Silverman9c614bc2016-02-15 20:20:02 -0500801 response_type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
Austin Schuh40c16522018-10-28 20:27:54 -0700802 ::memset(&request_streaming_, 0, static_cast<size_t>(
803 reinterpret_cast<char*>(&syntax_) -
804 reinterpret_cast<char*>(&request_streaming_)) + sizeof(syntax_));
Brian Silverman9c614bc2016-02-15 20:20:02 -0500805}
806
807Method::~Method() {
808 // @@protoc_insertion_point(destructor:google.protobuf.Method)
809 SharedDtor();
810}
811
812void Method::SharedDtor() {
813 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
814 request_type_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
815 response_type_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
Brian Silverman9c614bc2016-02-15 20:20:02 -0500816}
817
818void Method::SetCachedSize(int size) const {
Austin Schuh40c16522018-10-28 20:27:54 -0700819 _cached_size_.Set(size);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500820}
821const ::google::protobuf::Descriptor* Method::descriptor() {
Austin Schuh40c16522018-10-28 20:27:54 -0700822 ::protobuf_google_2fprotobuf_2fapi_2eproto::protobuf_AssignDescriptorsOnce();
823 return ::protobuf_google_2fprotobuf_2fapi_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500824}
825
826const Method& Method::default_instance() {
Austin Schuh40c16522018-10-28 20:27:54 -0700827 ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fapi_2eproto::scc_info_Method.base);
828 return *internal_default_instance();
Brian Silverman9c614bc2016-02-15 20:20:02 -0500829}
830
Brian Silverman9c614bc2016-02-15 20:20:02 -0500831
832void Method::Clear() {
Austin Schuh40c16522018-10-28 20:27:54 -0700833// @@protoc_insertion_point(message_clear_start:google.protobuf.Method)
834 ::google::protobuf::uint32 cached_has_bits = 0;
835 // Prevent compiler warnings about cached_has_bits being unused
836 (void) cached_has_bits;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500837
Austin Schuh40c16522018-10-28 20:27:54 -0700838 options_.Clear();
Brian Silverman9c614bc2016-02-15 20:20:02 -0500839 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
840 request_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
841 response_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
Austin Schuh40c16522018-10-28 20:27:54 -0700842 ::memset(&request_streaming_, 0, static_cast<size_t>(
843 reinterpret_cast<char*>(&syntax_) -
844 reinterpret_cast<char*>(&request_streaming_)) + sizeof(syntax_));
845 _internal_metadata_.Clear();
Brian Silverman9c614bc2016-02-15 20:20:02 -0500846}
847
848bool Method::MergePartialFromCodedStream(
849 ::google::protobuf::io::CodedInputStream* input) {
Austin Schuh40c16522018-10-28 20:27:54 -0700850#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
Brian Silverman9c614bc2016-02-15 20:20:02 -0500851 ::google::protobuf::uint32 tag;
852 // @@protoc_insertion_point(parse_start:google.protobuf.Method)
853 for (;;) {
Austin Schuh40c16522018-10-28 20:27:54 -0700854 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500855 tag = p.first;
856 if (!p.second) goto handle_unusual;
857 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
Austin Schuh40c16522018-10-28 20:27:54 -0700858 // string name = 1;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500859 case 1: {
Austin Schuh40c16522018-10-28 20:27:54 -0700860 if (static_cast< ::google::protobuf::uint8>(tag) ==
861 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500862 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
863 input, this->mutable_name()));
864 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -0700865 this->name().data(), static_cast<int>(this->name().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -0500866 ::google::protobuf::internal::WireFormatLite::PARSE,
867 "google.protobuf.Method.name"));
868 } else {
869 goto handle_unusual;
870 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500871 break;
872 }
873
Austin Schuh40c16522018-10-28 20:27:54 -0700874 // string request_type_url = 2;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500875 case 2: {
Austin Schuh40c16522018-10-28 20:27:54 -0700876 if (static_cast< ::google::protobuf::uint8>(tag) ==
877 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500878 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
879 input, this->mutable_request_type_url()));
880 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -0700881 this->request_type_url().data(), static_cast<int>(this->request_type_url().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -0500882 ::google::protobuf::internal::WireFormatLite::PARSE,
883 "google.protobuf.Method.request_type_url"));
884 } else {
885 goto handle_unusual;
886 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500887 break;
888 }
889
Austin Schuh40c16522018-10-28 20:27:54 -0700890 // bool request_streaming = 3;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500891 case 3: {
Austin Schuh40c16522018-10-28 20:27:54 -0700892 if (static_cast< ::google::protobuf::uint8>(tag) ==
893 static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
894
Brian Silverman9c614bc2016-02-15 20:20:02 -0500895 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
896 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
897 input, &request_streaming_)));
Brian Silverman9c614bc2016-02-15 20:20:02 -0500898 } else {
899 goto handle_unusual;
900 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500901 break;
902 }
903
Austin Schuh40c16522018-10-28 20:27:54 -0700904 // string response_type_url = 4;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500905 case 4: {
Austin Schuh40c16522018-10-28 20:27:54 -0700906 if (static_cast< ::google::protobuf::uint8>(tag) ==
907 static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500908 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
909 input, this->mutable_response_type_url()));
910 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -0700911 this->response_type_url().data(), static_cast<int>(this->response_type_url().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -0500912 ::google::protobuf::internal::WireFormatLite::PARSE,
913 "google.protobuf.Method.response_type_url"));
914 } else {
915 goto handle_unusual;
916 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500917 break;
918 }
919
Austin Schuh40c16522018-10-28 20:27:54 -0700920 // bool response_streaming = 5;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500921 case 5: {
Austin Schuh40c16522018-10-28 20:27:54 -0700922 if (static_cast< ::google::protobuf::uint8>(tag) ==
923 static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
924
Brian Silverman9c614bc2016-02-15 20:20:02 -0500925 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
926 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
927 input, &response_streaming_)));
Brian Silverman9c614bc2016-02-15 20:20:02 -0500928 } else {
929 goto handle_unusual;
930 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500931 break;
932 }
933
934 // repeated .google.protobuf.Option options = 6;
935 case 6: {
Austin Schuh40c16522018-10-28 20:27:54 -0700936 if (static_cast< ::google::protobuf::uint8>(tag) ==
937 static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
938 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
Brian Silverman9c614bc2016-02-15 20:20:02 -0500939 input, add_options()));
940 } else {
941 goto handle_unusual;
942 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500943 break;
944 }
945
Austin Schuh40c16522018-10-28 20:27:54 -0700946 // .google.protobuf.Syntax syntax = 7;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500947 case 7: {
Austin Schuh40c16522018-10-28 20:27:54 -0700948 if (static_cast< ::google::protobuf::uint8>(tag) ==
949 static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500950 int value;
951 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
952 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
953 input, &value)));
954 set_syntax(static_cast< ::google::protobuf::Syntax >(value));
955 } else {
956 goto handle_unusual;
957 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500958 break;
959 }
960
961 default: {
962 handle_unusual:
Austin Schuh40c16522018-10-28 20:27:54 -0700963 if (tag == 0) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500964 goto success;
965 }
Austin Schuh40c16522018-10-28 20:27:54 -0700966 DO_(::google::protobuf::internal::WireFormat::SkipField(
967 input, tag, _internal_metadata_.mutable_unknown_fields()));
Brian Silverman9c614bc2016-02-15 20:20:02 -0500968 break;
969 }
970 }
971 }
972success:
973 // @@protoc_insertion_point(parse_success:google.protobuf.Method)
974 return true;
975failure:
976 // @@protoc_insertion_point(parse_failure:google.protobuf.Method)
977 return false;
978#undef DO_
979}
980
981void Method::SerializeWithCachedSizes(
982 ::google::protobuf::io::CodedOutputStream* output) const {
983 // @@protoc_insertion_point(serialize_start:google.protobuf.Method)
Austin Schuh40c16522018-10-28 20:27:54 -0700984 ::google::protobuf::uint32 cached_has_bits = 0;
985 (void) cached_has_bits;
986
987 // string name = 1;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500988 if (this->name().size() > 0) {
989 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -0700990 this->name().data(), static_cast<int>(this->name().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -0500991 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
992 "google.protobuf.Method.name");
993 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
994 1, this->name(), output);
995 }
996
Austin Schuh40c16522018-10-28 20:27:54 -0700997 // string request_type_url = 2;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500998 if (this->request_type_url().size() > 0) {
999 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -07001000 this->request_type_url().data(), static_cast<int>(this->request_type_url().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -05001001 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1002 "google.protobuf.Method.request_type_url");
1003 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1004 2, this->request_type_url(), output);
1005 }
1006
Austin Schuh40c16522018-10-28 20:27:54 -07001007 // bool request_streaming = 3;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001008 if (this->request_streaming() != 0) {
1009 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->request_streaming(), output);
1010 }
1011
Austin Schuh40c16522018-10-28 20:27:54 -07001012 // string response_type_url = 4;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001013 if (this->response_type_url().size() > 0) {
1014 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -07001015 this->response_type_url().data(), static_cast<int>(this->response_type_url().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -05001016 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1017 "google.protobuf.Method.response_type_url");
1018 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1019 4, this->response_type_url(), output);
1020 }
1021
Austin Schuh40c16522018-10-28 20:27:54 -07001022 // bool response_streaming = 5;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001023 if (this->response_streaming() != 0) {
1024 ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->response_streaming(), output);
1025 }
1026
1027 // repeated .google.protobuf.Option options = 6;
Austin Schuh40c16522018-10-28 20:27:54 -07001028 for (unsigned int i = 0,
1029 n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
Brian Silverman9c614bc2016-02-15 20:20:02 -05001030 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
Austin Schuh40c16522018-10-28 20:27:54 -07001031 6,
1032 this->options(static_cast<int>(i)),
1033 output);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001034 }
1035
Austin Schuh40c16522018-10-28 20:27:54 -07001036 // .google.protobuf.Syntax syntax = 7;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001037 if (this->syntax() != 0) {
1038 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1039 7, this->syntax(), output);
1040 }
1041
Austin Schuh40c16522018-10-28 20:27:54 -07001042 if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1043 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1044 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
1045 }
Brian Silverman9c614bc2016-02-15 20:20:02 -05001046 // @@protoc_insertion_point(serialize_end:google.protobuf.Method)
1047}
1048
Austin Schuh40c16522018-10-28 20:27:54 -07001049::google::protobuf::uint8* Method::InternalSerializeWithCachedSizesToArray(
1050 bool deterministic, ::google::protobuf::uint8* target) const {
1051 (void)deterministic; // Unused
Brian Silverman9c614bc2016-02-15 20:20:02 -05001052 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Method)
Austin Schuh40c16522018-10-28 20:27:54 -07001053 ::google::protobuf::uint32 cached_has_bits = 0;
1054 (void) cached_has_bits;
1055
1056 // string name = 1;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001057 if (this->name().size() > 0) {
1058 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -07001059 this->name().data(), static_cast<int>(this->name().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -05001060 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1061 "google.protobuf.Method.name");
1062 target =
1063 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1064 1, this->name(), target);
1065 }
1066
Austin Schuh40c16522018-10-28 20:27:54 -07001067 // string request_type_url = 2;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001068 if (this->request_type_url().size() > 0) {
1069 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -07001070 this->request_type_url().data(), static_cast<int>(this->request_type_url().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -05001071 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1072 "google.protobuf.Method.request_type_url");
1073 target =
1074 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1075 2, this->request_type_url(), target);
1076 }
1077
Austin Schuh40c16522018-10-28 20:27:54 -07001078 // bool request_streaming = 3;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001079 if (this->request_streaming() != 0) {
1080 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->request_streaming(), target);
1081 }
1082
Austin Schuh40c16522018-10-28 20:27:54 -07001083 // string response_type_url = 4;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001084 if (this->response_type_url().size() > 0) {
1085 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -07001086 this->response_type_url().data(), static_cast<int>(this->response_type_url().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -05001087 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1088 "google.protobuf.Method.response_type_url");
1089 target =
1090 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1091 4, this->response_type_url(), target);
1092 }
1093
Austin Schuh40c16522018-10-28 20:27:54 -07001094 // bool response_streaming = 5;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001095 if (this->response_streaming() != 0) {
1096 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->response_streaming(), target);
1097 }
1098
1099 // repeated .google.protobuf.Option options = 6;
Austin Schuh40c16522018-10-28 20:27:54 -07001100 for (unsigned int i = 0,
1101 n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
Brian Silverman9c614bc2016-02-15 20:20:02 -05001102 target = ::google::protobuf::internal::WireFormatLite::
Austin Schuh40c16522018-10-28 20:27:54 -07001103 InternalWriteMessageToArray(
1104 6, this->options(static_cast<int>(i)), deterministic, target);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001105 }
1106
Austin Schuh40c16522018-10-28 20:27:54 -07001107 // .google.protobuf.Syntax syntax = 7;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001108 if (this->syntax() != 0) {
1109 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1110 7, this->syntax(), target);
1111 }
1112
Austin Schuh40c16522018-10-28 20:27:54 -07001113 if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1114 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1115 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
1116 }
Brian Silverman9c614bc2016-02-15 20:20:02 -05001117 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Method)
1118 return target;
1119}
1120
Austin Schuh40c16522018-10-28 20:27:54 -07001121size_t Method::ByteSizeLong() const {
1122// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Method)
1123 size_t total_size = 0;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001124
Austin Schuh40c16522018-10-28 20:27:54 -07001125 if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1126 total_size +=
1127 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1128 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
1129 }
1130 // repeated .google.protobuf.Option options = 6;
1131 {
1132 unsigned int count = static_cast<unsigned int>(this->options_size());
1133 total_size += 1UL * count;
1134 for (unsigned int i = 0; i < count; i++) {
1135 total_size +=
1136 ::google::protobuf::internal::WireFormatLite::MessageSize(
1137 this->options(static_cast<int>(i)));
1138 }
1139 }
1140
1141 // string name = 1;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001142 if (this->name().size() > 0) {
1143 total_size += 1 +
1144 ::google::protobuf::internal::WireFormatLite::StringSize(
1145 this->name());
1146 }
1147
Austin Schuh40c16522018-10-28 20:27:54 -07001148 // string request_type_url = 2;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001149 if (this->request_type_url().size() > 0) {
1150 total_size += 1 +
1151 ::google::protobuf::internal::WireFormatLite::StringSize(
1152 this->request_type_url());
1153 }
1154
Austin Schuh40c16522018-10-28 20:27:54 -07001155 // string response_type_url = 4;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001156 if (this->response_type_url().size() > 0) {
1157 total_size += 1 +
1158 ::google::protobuf::internal::WireFormatLite::StringSize(
1159 this->response_type_url());
1160 }
1161
Austin Schuh40c16522018-10-28 20:27:54 -07001162 // bool request_streaming = 3;
1163 if (this->request_streaming() != 0) {
1164 total_size += 1 + 1;
1165 }
1166
1167 // bool response_streaming = 5;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001168 if (this->response_streaming() != 0) {
1169 total_size += 1 + 1;
1170 }
1171
Austin Schuh40c16522018-10-28 20:27:54 -07001172 // .google.protobuf.Syntax syntax = 7;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001173 if (this->syntax() != 0) {
1174 total_size += 1 +
1175 ::google::protobuf::internal::WireFormatLite::EnumSize(this->syntax());
1176 }
1177
Austin Schuh40c16522018-10-28 20:27:54 -07001178 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1179 SetCachedSize(cached_size);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001180 return total_size;
1181}
1182
1183void Method::MergeFrom(const ::google::protobuf::Message& from) {
Austin Schuh40c16522018-10-28 20:27:54 -07001184// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Method)
1185 GOOGLE_DCHECK_NE(&from, this);
1186 const Method* source =
Brian Silverman9c614bc2016-02-15 20:20:02 -05001187 ::google::protobuf::internal::DynamicCastToGenerated<const Method>(
1188 &from);
1189 if (source == NULL) {
Austin Schuh40c16522018-10-28 20:27:54 -07001190 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Method)
Brian Silverman9c614bc2016-02-15 20:20:02 -05001191 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1192 } else {
Austin Schuh40c16522018-10-28 20:27:54 -07001193 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Method)
Brian Silverman9c614bc2016-02-15 20:20:02 -05001194 MergeFrom(*source);
1195 }
1196}
1197
1198void Method::MergeFrom(const Method& from) {
Austin Schuh40c16522018-10-28 20:27:54 -07001199// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Method)
1200 GOOGLE_DCHECK_NE(&from, this);
1201 _internal_metadata_.MergeFrom(from._internal_metadata_);
1202 ::google::protobuf::uint32 cached_has_bits = 0;
1203 (void) cached_has_bits;
1204
Brian Silverman9c614bc2016-02-15 20:20:02 -05001205 options_.MergeFrom(from.options_);
1206 if (from.name().size() > 0) {
1207
1208 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1209 }
1210 if (from.request_type_url().size() > 0) {
1211
1212 request_type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_type_url_);
1213 }
Brian Silverman9c614bc2016-02-15 20:20:02 -05001214 if (from.response_type_url().size() > 0) {
1215
1216 response_type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.response_type_url_);
1217 }
Austin Schuh40c16522018-10-28 20:27:54 -07001218 if (from.request_streaming() != 0) {
1219 set_request_streaming(from.request_streaming());
1220 }
Brian Silverman9c614bc2016-02-15 20:20:02 -05001221 if (from.response_streaming() != 0) {
1222 set_response_streaming(from.response_streaming());
1223 }
1224 if (from.syntax() != 0) {
1225 set_syntax(from.syntax());
1226 }
1227}
1228
1229void Method::CopyFrom(const ::google::protobuf::Message& from) {
Austin Schuh40c16522018-10-28 20:27:54 -07001230// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Method)
Brian Silverman9c614bc2016-02-15 20:20:02 -05001231 if (&from == this) return;
1232 Clear();
1233 MergeFrom(from);
1234}
1235
1236void Method::CopyFrom(const Method& from) {
Austin Schuh40c16522018-10-28 20:27:54 -07001237// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Method)
Brian Silverman9c614bc2016-02-15 20:20:02 -05001238 if (&from == this) return;
1239 Clear();
1240 MergeFrom(from);
1241}
1242
1243bool Method::IsInitialized() const {
Brian Silverman9c614bc2016-02-15 20:20:02 -05001244 return true;
1245}
1246
1247void Method::Swap(Method* other) {
1248 if (other == this) return;
1249 InternalSwap(other);
1250}
1251void Method::InternalSwap(Method* other) {
Austin Schuh40c16522018-10-28 20:27:54 -07001252 using std::swap;
1253 CastToBase(&options_)->InternalSwap(CastToBase(&other->options_));
1254 name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1255 GetArenaNoVirtual());
1256 request_type_url_.Swap(&other->request_type_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1257 GetArenaNoVirtual());
1258 response_type_url_.Swap(&other->response_type_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1259 GetArenaNoVirtual());
1260 swap(request_streaming_, other->request_streaming_);
1261 swap(response_streaming_, other->response_streaming_);
1262 swap(syntax_, other->syntax_);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001263 _internal_metadata_.Swap(&other->_internal_metadata_);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001264}
1265
1266::google::protobuf::Metadata Method::GetMetadata() const {
Austin Schuh40c16522018-10-28 20:27:54 -07001267 protobuf_google_2fprotobuf_2fapi_2eproto::protobuf_AssignDescriptorsOnce();
1268 return ::protobuf_google_2fprotobuf_2fapi_2eproto::file_level_metadata[kIndexInFileMessages];
Brian Silverman9c614bc2016-02-15 20:20:02 -05001269}
1270
Brian Silverman9c614bc2016-02-15 20:20:02 -05001271
1272// ===================================================================
1273
Austin Schuh40c16522018-10-28 20:27:54 -07001274void Mixin::InitAsDefaultInstance() {
1275}
Brian Silverman9c614bc2016-02-15 20:20:02 -05001276#if !defined(_MSC_VER) || _MSC_VER >= 1900
1277const int Mixin::kNameFieldNumber;
1278const int Mixin::kRootFieldNumber;
1279#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1280
1281Mixin::Mixin()
1282 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
Austin Schuh40c16522018-10-28 20:27:54 -07001283 ::google::protobuf::internal::InitSCC(
1284 &protobuf_google_2fprotobuf_2fapi_2eproto::scc_info_Mixin.base);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001285 SharedCtor();
1286 // @@protoc_insertion_point(constructor:google.protobuf.Mixin)
1287}
Brian Silverman9c614bc2016-02-15 20:20:02 -05001288Mixin::Mixin(const Mixin& from)
1289 : ::google::protobuf::Message(),
Austin Schuh40c16522018-10-28 20:27:54 -07001290 _internal_metadata_(NULL) {
1291 _internal_metadata_.MergeFrom(from._internal_metadata_);
1292 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1293 if (from.name().size() > 0) {
1294 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1295 }
1296 root_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1297 if (from.root().size() > 0) {
1298 root_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.root_);
1299 }
Brian Silverman9c614bc2016-02-15 20:20:02 -05001300 // @@protoc_insertion_point(copy_constructor:google.protobuf.Mixin)
1301}
1302
1303void Mixin::SharedCtor() {
Brian Silverman9c614bc2016-02-15 20:20:02 -05001304 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1305 root_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1306}
1307
1308Mixin::~Mixin() {
1309 // @@protoc_insertion_point(destructor:google.protobuf.Mixin)
1310 SharedDtor();
1311}
1312
1313void Mixin::SharedDtor() {
1314 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1315 root_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
Brian Silverman9c614bc2016-02-15 20:20:02 -05001316}
1317
1318void Mixin::SetCachedSize(int size) const {
Austin Schuh40c16522018-10-28 20:27:54 -07001319 _cached_size_.Set(size);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001320}
1321const ::google::protobuf::Descriptor* Mixin::descriptor() {
Austin Schuh40c16522018-10-28 20:27:54 -07001322 ::protobuf_google_2fprotobuf_2fapi_2eproto::protobuf_AssignDescriptorsOnce();
1323 return ::protobuf_google_2fprotobuf_2fapi_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001324}
1325
1326const Mixin& Mixin::default_instance() {
Austin Schuh40c16522018-10-28 20:27:54 -07001327 ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fapi_2eproto::scc_info_Mixin.base);
1328 return *internal_default_instance();
Brian Silverman9c614bc2016-02-15 20:20:02 -05001329}
1330
Brian Silverman9c614bc2016-02-15 20:20:02 -05001331
1332void Mixin::Clear() {
Austin Schuh40c16522018-10-28 20:27:54 -07001333// @@protoc_insertion_point(message_clear_start:google.protobuf.Mixin)
1334 ::google::protobuf::uint32 cached_has_bits = 0;
1335 // Prevent compiler warnings about cached_has_bits being unused
1336 (void) cached_has_bits;
1337
Brian Silverman9c614bc2016-02-15 20:20:02 -05001338 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1339 root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
Austin Schuh40c16522018-10-28 20:27:54 -07001340 _internal_metadata_.Clear();
Brian Silverman9c614bc2016-02-15 20:20:02 -05001341}
1342
1343bool Mixin::MergePartialFromCodedStream(
1344 ::google::protobuf::io::CodedInputStream* input) {
Austin Schuh40c16522018-10-28 20:27:54 -07001345#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
Brian Silverman9c614bc2016-02-15 20:20:02 -05001346 ::google::protobuf::uint32 tag;
1347 // @@protoc_insertion_point(parse_start:google.protobuf.Mixin)
1348 for (;;) {
Austin Schuh40c16522018-10-28 20:27:54 -07001349 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001350 tag = p.first;
1351 if (!p.second) goto handle_unusual;
1352 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
Austin Schuh40c16522018-10-28 20:27:54 -07001353 // string name = 1;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001354 case 1: {
Austin Schuh40c16522018-10-28 20:27:54 -07001355 if (static_cast< ::google::protobuf::uint8>(tag) ==
1356 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
Brian Silverman9c614bc2016-02-15 20:20:02 -05001357 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1358 input, this->mutable_name()));
1359 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -07001360 this->name().data(), static_cast<int>(this->name().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -05001361 ::google::protobuf::internal::WireFormatLite::PARSE,
1362 "google.protobuf.Mixin.name"));
1363 } else {
1364 goto handle_unusual;
1365 }
Brian Silverman9c614bc2016-02-15 20:20:02 -05001366 break;
1367 }
1368
Austin Schuh40c16522018-10-28 20:27:54 -07001369 // string root = 2;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001370 case 2: {
Austin Schuh40c16522018-10-28 20:27:54 -07001371 if (static_cast< ::google::protobuf::uint8>(tag) ==
1372 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
Brian Silverman9c614bc2016-02-15 20:20:02 -05001373 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1374 input, this->mutable_root()));
1375 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -07001376 this->root().data(), static_cast<int>(this->root().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -05001377 ::google::protobuf::internal::WireFormatLite::PARSE,
1378 "google.protobuf.Mixin.root"));
1379 } else {
1380 goto handle_unusual;
1381 }
Brian Silverman9c614bc2016-02-15 20:20:02 -05001382 break;
1383 }
1384
1385 default: {
1386 handle_unusual:
Austin Schuh40c16522018-10-28 20:27:54 -07001387 if (tag == 0) {
Brian Silverman9c614bc2016-02-15 20:20:02 -05001388 goto success;
1389 }
Austin Schuh40c16522018-10-28 20:27:54 -07001390 DO_(::google::protobuf::internal::WireFormat::SkipField(
1391 input, tag, _internal_metadata_.mutable_unknown_fields()));
Brian Silverman9c614bc2016-02-15 20:20:02 -05001392 break;
1393 }
1394 }
1395 }
1396success:
1397 // @@protoc_insertion_point(parse_success:google.protobuf.Mixin)
1398 return true;
1399failure:
1400 // @@protoc_insertion_point(parse_failure:google.protobuf.Mixin)
1401 return false;
1402#undef DO_
1403}
1404
1405void Mixin::SerializeWithCachedSizes(
1406 ::google::protobuf::io::CodedOutputStream* output) const {
1407 // @@protoc_insertion_point(serialize_start:google.protobuf.Mixin)
Austin Schuh40c16522018-10-28 20:27:54 -07001408 ::google::protobuf::uint32 cached_has_bits = 0;
1409 (void) cached_has_bits;
1410
1411 // string name = 1;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001412 if (this->name().size() > 0) {
1413 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -07001414 this->name().data(), static_cast<int>(this->name().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -05001415 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1416 "google.protobuf.Mixin.name");
1417 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1418 1, this->name(), output);
1419 }
1420
Austin Schuh40c16522018-10-28 20:27:54 -07001421 // string root = 2;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001422 if (this->root().size() > 0) {
1423 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -07001424 this->root().data(), static_cast<int>(this->root().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -05001425 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1426 "google.protobuf.Mixin.root");
1427 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1428 2, this->root(), output);
1429 }
1430
Austin Schuh40c16522018-10-28 20:27:54 -07001431 if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1432 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1433 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
1434 }
Brian Silverman9c614bc2016-02-15 20:20:02 -05001435 // @@protoc_insertion_point(serialize_end:google.protobuf.Mixin)
1436}
1437
Austin Schuh40c16522018-10-28 20:27:54 -07001438::google::protobuf::uint8* Mixin::InternalSerializeWithCachedSizesToArray(
1439 bool deterministic, ::google::protobuf::uint8* target) const {
1440 (void)deterministic; // Unused
Brian Silverman9c614bc2016-02-15 20:20:02 -05001441 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Mixin)
Austin Schuh40c16522018-10-28 20:27:54 -07001442 ::google::protobuf::uint32 cached_has_bits = 0;
1443 (void) cached_has_bits;
1444
1445 // string name = 1;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001446 if (this->name().size() > 0) {
1447 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -07001448 this->name().data(), static_cast<int>(this->name().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -05001449 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1450 "google.protobuf.Mixin.name");
1451 target =
1452 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1453 1, this->name(), target);
1454 }
1455
Austin Schuh40c16522018-10-28 20:27:54 -07001456 // string root = 2;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001457 if (this->root().size() > 0) {
1458 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
Austin Schuh40c16522018-10-28 20:27:54 -07001459 this->root().data(), static_cast<int>(this->root().length()),
Brian Silverman9c614bc2016-02-15 20:20:02 -05001460 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1461 "google.protobuf.Mixin.root");
1462 target =
1463 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1464 2, this->root(), target);
1465 }
1466
Austin Schuh40c16522018-10-28 20:27:54 -07001467 if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1468 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1469 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
1470 }
Brian Silverman9c614bc2016-02-15 20:20:02 -05001471 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Mixin)
1472 return target;
1473}
1474
Austin Schuh40c16522018-10-28 20:27:54 -07001475size_t Mixin::ByteSizeLong() const {
1476// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Mixin)
1477 size_t total_size = 0;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001478
Austin Schuh40c16522018-10-28 20:27:54 -07001479 if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1480 total_size +=
1481 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1482 (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
1483 }
1484 // string name = 1;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001485 if (this->name().size() > 0) {
1486 total_size += 1 +
1487 ::google::protobuf::internal::WireFormatLite::StringSize(
1488 this->name());
1489 }
1490
Austin Schuh40c16522018-10-28 20:27:54 -07001491 // string root = 2;
Brian Silverman9c614bc2016-02-15 20:20:02 -05001492 if (this->root().size() > 0) {
1493 total_size += 1 +
1494 ::google::protobuf::internal::WireFormatLite::StringSize(
1495 this->root());
1496 }
1497
Austin Schuh40c16522018-10-28 20:27:54 -07001498 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1499 SetCachedSize(cached_size);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001500 return total_size;
1501}
1502
1503void Mixin::MergeFrom(const ::google::protobuf::Message& from) {
Austin Schuh40c16522018-10-28 20:27:54 -07001504// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Mixin)
1505 GOOGLE_DCHECK_NE(&from, this);
1506 const Mixin* source =
Brian Silverman9c614bc2016-02-15 20:20:02 -05001507 ::google::protobuf::internal::DynamicCastToGenerated<const Mixin>(
1508 &from);
1509 if (source == NULL) {
Austin Schuh40c16522018-10-28 20:27:54 -07001510 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Mixin)
Brian Silverman9c614bc2016-02-15 20:20:02 -05001511 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1512 } else {
Austin Schuh40c16522018-10-28 20:27:54 -07001513 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Mixin)
Brian Silverman9c614bc2016-02-15 20:20:02 -05001514 MergeFrom(*source);
1515 }
1516}
1517
1518void Mixin::MergeFrom(const Mixin& from) {
Austin Schuh40c16522018-10-28 20:27:54 -07001519// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Mixin)
1520 GOOGLE_DCHECK_NE(&from, this);
1521 _internal_metadata_.MergeFrom(from._internal_metadata_);
1522 ::google::protobuf::uint32 cached_has_bits = 0;
1523 (void) cached_has_bits;
1524
Brian Silverman9c614bc2016-02-15 20:20:02 -05001525 if (from.name().size() > 0) {
1526
1527 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1528 }
1529 if (from.root().size() > 0) {
1530
1531 root_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.root_);
1532 }
1533}
1534
1535void Mixin::CopyFrom(const ::google::protobuf::Message& from) {
Austin Schuh40c16522018-10-28 20:27:54 -07001536// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Mixin)
Brian Silverman9c614bc2016-02-15 20:20:02 -05001537 if (&from == this) return;
1538 Clear();
1539 MergeFrom(from);
1540}
1541
1542void Mixin::CopyFrom(const Mixin& from) {
Austin Schuh40c16522018-10-28 20:27:54 -07001543// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Mixin)
Brian Silverman9c614bc2016-02-15 20:20:02 -05001544 if (&from == this) return;
1545 Clear();
1546 MergeFrom(from);
1547}
1548
1549bool Mixin::IsInitialized() const {
Brian Silverman9c614bc2016-02-15 20:20:02 -05001550 return true;
1551}
1552
1553void Mixin::Swap(Mixin* other) {
1554 if (other == this) return;
1555 InternalSwap(other);
1556}
1557void Mixin::InternalSwap(Mixin* other) {
Austin Schuh40c16522018-10-28 20:27:54 -07001558 using std::swap;
1559 name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1560 GetArenaNoVirtual());
1561 root_.Swap(&other->root_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1562 GetArenaNoVirtual());
Brian Silverman9c614bc2016-02-15 20:20:02 -05001563 _internal_metadata_.Swap(&other->_internal_metadata_);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001564}
1565
1566::google::protobuf::Metadata Mixin::GetMetadata() const {
Austin Schuh40c16522018-10-28 20:27:54 -07001567 protobuf_google_2fprotobuf_2fapi_2eproto::protobuf_AssignDescriptorsOnce();
1568 return ::protobuf_google_2fprotobuf_2fapi_2eproto::file_level_metadata[kIndexInFileMessages];
Brian Silverman9c614bc2016-02-15 20:20:02 -05001569}
1570
Brian Silverman9c614bc2016-02-15 20:20:02 -05001571
1572// @@protoc_insertion_point(namespace_scope)
Austin Schuh40c16522018-10-28 20:27:54 -07001573} // namespace protobuf
1574} // namespace google
1575namespace google {
1576namespace protobuf {
1577template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::Api* Arena::CreateMaybeMessage< ::google::protobuf::Api >(Arena* arena) {
1578 return Arena::CreateInternal< ::google::protobuf::Api >(arena);
1579}
1580template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::Method* Arena::CreateMaybeMessage< ::google::protobuf::Method >(Arena* arena) {
1581 return Arena::CreateInternal< ::google::protobuf::Method >(arena);
1582}
1583template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::Mixin* Arena::CreateMaybeMessage< ::google::protobuf::Mixin >(Arena* arena) {
1584 return Arena::CreateInternal< ::google::protobuf::Mixin >(arena);
1585}
Brian Silverman9c614bc2016-02-15 20:20:02 -05001586} // namespace protobuf
1587} // namespace google
1588
1589// @@protoc_insertion_point(global_scope)