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