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