diff --git a/VERSION b/VERSION index ae9a76b..a458a24 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.0.0 +9.7.0 diff --git a/google/api/annotations.grpc.pb.cc b/google/api/annotations.grpc.pb.cc index eba2174..a9895a2 100644 --- a/google/api/annotations.grpc.pb.cc +++ b/google/api/annotations.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/annotations.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include +#include +#include +#include namespace google { namespace api { diff --git a/google/api/annotations.grpc.pb.h b/google/api/annotations.grpc.pb.h index 65ffc2c..3357c2c 100644 --- a/google/api/annotations.grpc.pb.h +++ b/google/api/annotations.grpc.pb.h @@ -2,7 +2,7 @@ // If you make any local change, they will be lost. // source: google/api/annotations.proto // Original file comments: -// Copyright (c) 2015, Google Inc. +// Copyright 2015 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,24 +22,23 @@ #include "google/api/annotations.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include +#include +#include #include -#include -#include +#include +#include #include -#include -#include +#include +#include namespace google { namespace api { diff --git a/google/api/annotations.pb.cc b/google/api/annotations.pb.cc index 402b58e..8b5d5fb 100644 --- a/google/api/annotations.pb.cc +++ b/google/api/annotations.pb.cc @@ -14,17 +14,21 @@ #include // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fhttp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_HttpRule_google_2fapi_2fhttp_2eproto; + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace api { } // namespace api } // namespace google -static constexpr ::PROTOBUF_NAMESPACE_ID::Metadata* file_level_metadata_google_2fapi_2fannotations_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fannotations_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fannotations_2eproto = nullptr; -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fapi_2fannotations_2eproto::offsets[1] = {}; -static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema* schemas = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::Message* const* file_default_instances = nullptr; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fannotations_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fannotations_2eproto = nullptr; +const uint32_t TableStruct_google_2fapi_2fannotations_2eproto::offsets[1] = {}; +static constexpr ::_pbi::MigrationSchema* schemas = nullptr; +static constexpr ::_pb::Message* const* file_default_instances = nullptr; const char descriptor_table_protodef_google_2fapi_2fannotations_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\034google/api/annotations.proto\022\ngoogle.a" @@ -36,28 +40,30 @@ const char descriptor_table_protodef_google_2fapi_2fannotations_2eproto[] PROTOB "gleapis/api/annotations;annotations\242\002\004GA" "PIb\006proto3" ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_google_2fapi_2fannotations_2eproto_deps[2] = { +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fannotations_2eproto_deps[2] = { &::descriptor_table_google_2fapi_2fhttp_2eproto, &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_google_2fapi_2fannotations_2eproto_sccs[1] = { -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fapi_2fannotations_2eproto_once; -static bool descriptor_table_google_2fapi_2fannotations_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fannotations_2eproto = { - &descriptor_table_google_2fapi_2fannotations_2eproto_initialized, descriptor_table_protodef_google_2fapi_2fannotations_2eproto, "google/api/annotations.proto", 290, - &descriptor_table_google_2fapi_2fannotations_2eproto_once, descriptor_table_google_2fapi_2fannotations_2eproto_sccs, descriptor_table_google_2fapi_2fannotations_2eproto_deps, 0, 2, - schemas, file_default_instances, TableStruct_google_2fapi_2fannotations_2eproto::offsets, - file_level_metadata_google_2fapi_2fannotations_2eproto, 0, file_level_enum_descriptors_google_2fapi_2fannotations_2eproto, file_level_service_descriptors_google_2fapi_2fannotations_2eproto, +static ::_pbi::once_flag descriptor_table_google_2fapi_2fannotations_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fannotations_2eproto = { + false, false, 290, descriptor_table_protodef_google_2fapi_2fannotations_2eproto, + "google/api/annotations.proto", + &descriptor_table_google_2fapi_2fannotations_2eproto_once, descriptor_table_google_2fapi_2fannotations_2eproto_deps, 2, 0, + schemas, file_default_instances, TableStruct_google_2fapi_2fannotations_2eproto::offsets, + nullptr, file_level_enum_descriptors_google_2fapi_2fannotations_2eproto, + file_level_service_descriptors_google_2fapi_2fannotations_2eproto, }; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fannotations_2eproto_getter() { + return &descriptor_table_google_2fapi_2fannotations_2eproto; +} // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_google_2fapi_2fannotations_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2fapi_2fannotations_2eproto), true); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fannotations_2eproto(&descriptor_table_google_2fapi_2fannotations_2eproto); namespace google { namespace api { -::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions, - ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false > - http(kHttpFieldNumber, *::google::api::HttpRule::internal_default_instance()); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false> + http(kHttpFieldNumber, ::google::api::HttpRule::default_instance(), nullptr); // @@protoc_insertion_point(namespace_scope) } // namespace api diff --git a/google/api/annotations.pb.h b/google/api/annotations.pb.h index 81b740e..8b88dbb 100644 --- a/google/api/annotations.pb.h +++ b/google/api/annotations.pb.h @@ -8,12 +8,12 @@ #include #include -#if PROTOBUF_VERSION < 3011000 +#if PROTOBUF_VERSION < 3021000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3011002 < PROTOBUF_MIN_PROTOC_VERSION +#if 3021006 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -23,10 +23,8 @@ #include #include #include -#include #include -#include -#include +#include #include #include // IWYU pragma: export #include // IWYU pragma: export @@ -43,15 +41,7 @@ PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2fannotations_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; + static const uint32_t offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fannotations_2eproto; PROTOBUF_NAMESPACE_OPEN @@ -65,7 +55,7 @@ namespace api { // =================================================================== static const int kHttpFieldNumber = 72295728; -extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions, +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false > http; diff --git a/google/api/http.grpc.pb.cc b/google/api/http.grpc.pb.cc index 5a18289..c13451d 100644 --- a/google/api/http.grpc.pb.cc +++ b/google/api/http.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/http.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include +#include +#include +#include namespace google { namespace api { diff --git a/google/api/http.grpc.pb.h b/google/api/http.grpc.pb.h index 1456617..dfd8a6b 100644 --- a/google/api/http.grpc.pb.h +++ b/google/api/http.grpc.pb.h @@ -2,7 +2,7 @@ // If you make any local change, they will be lost. // source: google/api/http.proto // Original file comments: -// Copyright 2018 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,24 +22,23 @@ #include "google/api/http.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include +#include +#include #include -#include -#include +#include +#include #include -#include -#include +#include +#include namespace google { namespace api { diff --git a/google/api/http.pb.cc b/google/api/http.pb.cc index e468c0e..322dd37 100644 --- a/google/api/http.pb.cc +++ b/google/api/http.pb.cc @@ -14,120 +14,111 @@ #include // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fhttp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CustomHttpPattern_google_2fapi_2fhttp_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fhttp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_HttpRule_google_2fapi_2fhttp_2eproto; + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace api { -class HttpDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Http_default_instance_; -class HttpRuleDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr get_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr put_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr post_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr delete__; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr patch_; - const ::google::api::CustomHttpPattern* custom_; -} _HttpRule_default_instance_; -class CustomHttpPatternDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CustomHttpPattern_default_instance_; +PROTOBUF_CONSTEXPR Http::Http( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.rules_)*/{} + , /*decltype(_impl_.fully_decode_reserved_expansion_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct HttpDefaultTypeInternal { + PROTOBUF_CONSTEXPR HttpDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~HttpDefaultTypeInternal() {} + union { + Http _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpDefaultTypeInternal _Http_default_instance_; +PROTOBUF_CONSTEXPR HttpRule::HttpRule( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.additional_bindings_)*/{} + , /*decltype(_impl_.selector_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.body_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.response_body_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.pattern_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct HttpRuleDefaultTypeInternal { + PROTOBUF_CONSTEXPR HttpRuleDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~HttpRuleDefaultTypeInternal() {} + union { + HttpRule _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpRuleDefaultTypeInternal _HttpRule_default_instance_; +PROTOBUF_CONSTEXPR CustomHttpPattern::CustomHttpPattern( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.kind_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct CustomHttpPatternDefaultTypeInternal { + PROTOBUF_CONSTEXPR CustomHttpPatternDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CustomHttpPatternDefaultTypeInternal() {} + union { + CustomHttpPattern _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CustomHttpPatternDefaultTypeInternal _CustomHttpPattern_default_instance_; } // namespace api } // namespace google -static void InitDefaultsscc_info_CustomHttpPattern_google_2fapi_2fhttp_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::google::api::_CustomHttpPattern_default_instance_; - new (ptr) ::google::api::CustomHttpPattern(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::google::api::CustomHttpPattern::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CustomHttpPattern_google_2fapi_2fhttp_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CustomHttpPattern_google_2fapi_2fhttp_2eproto}, {}}; +static ::_pb::Metadata file_level_metadata_google_2fapi_2fhttp_2eproto[3]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fhttp_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fhttp_2eproto = nullptr; -static void InitDefaultsscc_info_Http_google_2fapi_2fhttp_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::google::api::_Http_default_instance_; - new (ptr) ::google::api::Http(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::google::api::Http::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Http_google_2fapi_2fhttp_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Http_google_2fapi_2fhttp_2eproto}, { - &scc_info_HttpRule_google_2fapi_2fhttp_2eproto.base,}}; - -static void InitDefaultsscc_info_HttpRule_google_2fapi_2fhttp_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::google::api::_HttpRule_default_instance_; - new (ptr) ::google::api::HttpRule(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::google::api::HttpRule::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_HttpRule_google_2fapi_2fhttp_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_HttpRule_google_2fapi_2fhttp_2eproto}, { - &scc_info_CustomHttpPattern_google_2fapi_2fhttp_2eproto.base,}}; - -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fapi_2fhttp_2eproto[3]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fhttp_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fhttp_2eproto = nullptr; - -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fapi_2fhttp_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const uint32_t TableStruct_google_2fapi_2fhttp_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::google::api::Http, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::google::api::Http, rules_), - PROTOBUF_FIELD_OFFSET(::google::api::Http, fully_decode_reserved_expansion_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.rules_), + PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.fully_decode_reserved_expansion_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, selector_), - offsetof(::google::api::HttpRuleDefaultTypeInternal, get_), - offsetof(::google::api::HttpRuleDefaultTypeInternal, put_), - offsetof(::google::api::HttpRuleDefaultTypeInternal, post_), - offsetof(::google::api::HttpRuleDefaultTypeInternal, delete__), - offsetof(::google::api::HttpRuleDefaultTypeInternal, patch_), - offsetof(::google::api::HttpRuleDefaultTypeInternal, custom_), - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, body_), - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, response_body_), - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, additional_bindings_), - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, pattern_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.selector_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.body_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.response_body_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.additional_bindings_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.pattern_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, kind_), - PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, path_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, _impl_.kind_), + PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, _impl_.path_), }; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::google::api::Http)}, - { 7, -1, sizeof(::google::api::HttpRule)}, - { 23, -1, sizeof(::google::api::CustomHttpPattern)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::Http)}, + { 8, -1, -1, sizeof(::google::api::HttpRule)}, + { 25, -1, -1, sizeof(::google::api::CustomHttpPattern)}, }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::google::api::_Http_default_instance_), - reinterpret_cast(&::google::api::_HttpRule_default_instance_), - reinterpret_cast(&::google::api::_CustomHttpPattern_default_instance_), +static const ::_pb::Message* const file_default_instances[] = { + &::google::api::_Http_default_instance_._instance, + &::google::api::_HttpRule_default_instance_._instance, + &::google::api::_CustomHttpPattern_default_instance_._instance, }; const char descriptor_table_protodef_google_2fapi_2fhttp_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -146,108 +137,98 @@ const char descriptor_table_protodef_google_2fapi_2fhttp_2eproto[] PROTOBUF_SECT "/genproto/googleapis/api/annotations;ann" "otations\370\001\001\242\002\004GAPIb\006proto3" ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_google_2fapi_2fhttp_2eproto_deps[1] = { -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_google_2fapi_2fhttp_2eproto_sccs[3] = { - &scc_info_CustomHttpPattern_google_2fapi_2fhttp_2eproto.base, - &scc_info_Http_google_2fapi_2fhttp_2eproto.base, - &scc_info_HttpRule_google_2fapi_2fhttp_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fapi_2fhttp_2eproto_once; -static bool descriptor_table_google_2fapi_2fhttp_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fhttp_2eproto = { - &descriptor_table_google_2fapi_2fhttp_2eproto_initialized, descriptor_table_protodef_google_2fapi_2fhttp_2eproto, "google/api/http.proto", 546, - &descriptor_table_google_2fapi_2fhttp_2eproto_once, descriptor_table_google_2fapi_2fhttp_2eproto_sccs, descriptor_table_google_2fapi_2fhttp_2eproto_deps, 3, 0, - schemas, file_default_instances, TableStruct_google_2fapi_2fhttp_2eproto::offsets, - file_level_metadata_google_2fapi_2fhttp_2eproto, 3, file_level_enum_descriptors_google_2fapi_2fhttp_2eproto, file_level_service_descriptors_google_2fapi_2fhttp_2eproto, +static ::_pbi::once_flag descriptor_table_google_2fapi_2fhttp_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fhttp_2eproto = { + false, false, 546, descriptor_table_protodef_google_2fapi_2fhttp_2eproto, + "google/api/http.proto", + &descriptor_table_google_2fapi_2fhttp_2eproto_once, nullptr, 0, 3, + schemas, file_default_instances, TableStruct_google_2fapi_2fhttp_2eproto::offsets, + file_level_metadata_google_2fapi_2fhttp_2eproto, file_level_enum_descriptors_google_2fapi_2fhttp_2eproto, + file_level_service_descriptors_google_2fapi_2fhttp_2eproto, }; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fhttp_2eproto_getter() { + return &descriptor_table_google_2fapi_2fhttp_2eproto; +} // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_google_2fapi_2fhttp_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2fapi_2fhttp_2eproto), true); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fhttp_2eproto(&descriptor_table_google_2fapi_2fhttp_2eproto); namespace google { namespace api { // =================================================================== -void Http::InitAsDefaultInstance() { -} class Http::_Internal { public: }; -Http::Http() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:google.api.Http) -} -Http::Http(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(arena), - rules_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +Http::Http(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:google.api.Http) } Http::Http(const Http& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - rules_(from.rules_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - fully_decode_reserved_expansion_ = from.fully_decode_reserved_expansion_; + : ::PROTOBUF_NAMESPACE_ID::Message() { + Http* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.rules_){from._impl_.rules_} + , decltype(_impl_.fully_decode_reserved_expansion_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.fully_decode_reserved_expansion_ = from._impl_.fully_decode_reserved_expansion_; // @@protoc_insertion_point(copy_constructor:google.api.Http) } -void Http::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Http_google_2fapi_2fhttp_2eproto.base); - fully_decode_reserved_expansion_ = false; +inline void Http::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.rules_){arena} + , decltype(_impl_.fully_decode_reserved_expansion_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; } Http::~Http() { // @@protoc_insertion_point(destructor:google.api.Http) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -void Http::SharedDtor() { - GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); +inline void Http::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.rules_.~RepeatedPtrField(); } -void Http::ArenaDtor(void* object) { - Http* _this = reinterpret_cast< Http* >(object); - (void)_this; -} -void Http::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void Http::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Http& Http::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Http_google_2fapi_2fhttp_2eproto.base); - return *internal_default_instance(); + _impl_._cached_size_.Set(size); } - void Http::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.Http) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - rules_.Clear(); - fully_decode_reserved_expansion_ = false; - _internal_metadata_.Clear(); + _impl_.rules_.Clear(); + _impl_.fully_decode_reserved_expansion_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Http::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Http::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .google.api.HttpRule rules = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr -= 1; do { ptr += 1; @@ -255,58 +236,63 @@ const char* Http::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // bool fully_decode_reserved_expansion = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - fully_decode_reserved_expansion_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.fully_decode_reserved_expansion_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Http::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* Http::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.Http) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // repeated .google.api.HttpRule rules = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_rules_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast(this->_internal_rules_size()); i < n; i++) { + const auto& repfield = this->_internal_rules(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_rules(i), target, stream); + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // bool fully_decode_reserved_expansion = 2; - if (this->fully_decode_reserved_expansion() != 0) { + if (this->_internal_fully_decode_reserved_expansion() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_fully_decode_reserved_expansion(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_fully_decode_reserved_expansion(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:google.api.Http) return target; @@ -316,64 +302,45 @@ size_t Http::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.Http) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.HttpRule rules = 1; total_size += 1UL * this->_internal_rules_size(); - for (const auto& msg : this->rules_) { + for (const auto& msg : this->_impl_.rules_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // bool fully_decode_reserved_expansion = 2; - if (this->fully_decode_reserved_expansion() != 0) { + if (this->_internal_fully_decode_reserved_expansion() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void Http::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:google.api.Http) - GOOGLE_DCHECK_NE(&from, this); - const Http* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.api.Http) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:google.api.Http) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Http::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Http::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Http::GetClassData() const { return &_class_data_; } + -void Http::MergeFrom(const Http& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:google.api.Http) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void Http::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.Http) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - rules_.MergeFrom(from.rules_); - if (from.fully_decode_reserved_expansion() != 0) { - _internal_set_fully_decode_reserved_expansion(from._internal_fully_decode_reserved_expansion()); + _this->_impl_.rules_.MergeFrom(from._impl_.rules_); + if (from._internal_fully_decode_reserved_expansion() != 0) { + _this->_internal_set_fully_decode_reserved_expansion(from._internal_fully_decode_reserved_expansion()); } -} - -void Http::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:google.api.Http) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Http::CopyFrom(const Http& from) { @@ -389,32 +356,19 @@ bool Http::IsInitialized() const { void Http::InternalSwap(Http* other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - rules_.InternalSwap(&other->rules_); - swap(fully_decode_reserved_expansion_, other->fully_decode_reserved_expansion_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.rules_.InternalSwap(&other->_impl_.rules_); + swap(_impl_.fully_decode_reserved_expansion_, other->_impl_.fully_decode_reserved_expansion_); } ::PROTOBUF_NAMESPACE_ID::Metadata Http::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fhttp_2eproto_getter, &descriptor_table_google_2fapi_2fhttp_2eproto_once, + file_level_metadata_google_2fapi_2fhttp_2eproto[0]); } - // =================================================================== -void HttpRule::InitAsDefaultInstance() { - ::google::api::_HttpRule_default_instance_.get_.UnsafeSetDefault( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::google::api::_HttpRule_default_instance_.put_.UnsafeSetDefault( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::google::api::_HttpRule_default_instance_.post_.UnsafeSetDefault( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::google::api::_HttpRule_default_instance_.delete__.UnsafeSetDefault( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::google::api::_HttpRule_default_instance_.patch_.UnsafeSetDefault( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::google::api::_HttpRule_default_instance_.custom_ = const_cast< ::google::api::CustomHttpPattern*>( - ::google::api::CustomHttpPattern::internal_default_instance()); -} class HttpRule::_Internal { public: static const ::google::api::CustomHttpPattern& custom(const HttpRule* msg); @@ -422,80 +376,91 @@ class HttpRule::_Internal { const ::google::api::CustomHttpPattern& HttpRule::_Internal::custom(const HttpRule* msg) { - return *msg->pattern_.custom_; + return *msg->_impl_.pattern_.custom_; } void HttpRule::set_allocated_custom(::google::api::CustomHttpPattern* custom) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_pattern(); if (custom) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(custom); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(custom); if (message_arena != submessage_arena) { custom = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, custom, submessage_arena); } set_has_custom(); - pattern_.custom_ = custom; + _impl_.pattern_.custom_ = custom; } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.custom) } -HttpRule::HttpRule() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:google.api.HttpRule) -} -HttpRule::HttpRule(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(arena), - additional_bindings_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +HttpRule::HttpRule(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:google.api.HttpRule) } HttpRule::HttpRule(const HttpRule& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - additional_bindings_(from.additional_bindings_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - selector_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + : ::PROTOBUF_NAMESPACE_ID::Message() { + HttpRule* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.additional_bindings_){from._impl_.additional_bindings_} + , decltype(_impl_.selector_){} + , decltype(_impl_.body_){} + , decltype(_impl_.response_body_){} + , decltype(_impl_.pattern_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.selector_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.selector_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_selector().empty()) { - selector_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_selector(), - GetArenaNoVirtual()); + _this->_impl_.selector_.Set(from._internal_selector(), + _this->GetArenaForAllocation()); } - body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.body_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.body_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_body().empty()) { - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_body(), - GetArenaNoVirtual()); + _this->_impl_.body_.Set(from._internal_body(), + _this->GetArenaForAllocation()); } - response_body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.response_body_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.response_body_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_response_body().empty()) { - response_body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_response_body(), - GetArenaNoVirtual()); + _this->_impl_.response_body_.Set(from._internal_response_body(), + _this->GetArenaForAllocation()); } clear_has_pattern(); switch (from.pattern_case()) { case kGet: { - _internal_set_get(from._internal_get()); + _this->_internal_set_get(from._internal_get()); break; } case kPut: { - _internal_set_put(from._internal_put()); + _this->_internal_set_put(from._internal_put()); break; } case kPost: { - _internal_set_post(from._internal_post()); + _this->_internal_set_post(from._internal_post()); break; } case kDelete: { - _internal_set_delete_(from._internal_delete_()); + _this->_internal_set_delete_(from._internal_delete_()); break; } case kPatch: { - _internal_set_patch(from._internal_patch()); + _this->_internal_set_patch(from._internal_patch()); break; } case kCustom: { - _internal_mutable_custom()->::google::api::CustomHttpPattern::MergeFrom(from._internal_custom()); + _this->_internal_mutable_custom()->::google::api::CustomHttpPattern::MergeFrom( + from._internal_custom()); break; } case PATTERN_NOT_SET: { @@ -505,75 +470,84 @@ HttpRule::HttpRule(const HttpRule& from) // @@protoc_insertion_point(copy_constructor:google.api.HttpRule) } -void HttpRule::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_HttpRule_google_2fapi_2fhttp_2eproto.base); - selector_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - response_body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void HttpRule::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.additional_bindings_){arena} + , decltype(_impl_.selector_){} + , decltype(_impl_.body_){} + , decltype(_impl_.response_body_){} + , decltype(_impl_.pattern_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + _impl_.selector_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.selector_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.body_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.body_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.response_body_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.response_body_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING clear_has_pattern(); } HttpRule::~HttpRule() { // @@protoc_insertion_point(destructor:google.api.HttpRule) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -void HttpRule::SharedDtor() { - GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); - selector_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - body_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - response_body_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void HttpRule::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.additional_bindings_.~RepeatedPtrField(); + _impl_.selector_.Destroy(); + _impl_.body_.Destroy(); + _impl_.response_body_.Destroy(); if (has_pattern()) { clear_pattern(); } } -void HttpRule::ArenaDtor(void* object) { - HttpRule* _this = reinterpret_cast< HttpRule* >(object); - (void)_this; -} -void HttpRule::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void HttpRule::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } -const HttpRule& HttpRule::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_HttpRule_google_2fapi_2fhttp_2eproto.base); - return *internal_default_instance(); -} - void HttpRule::clear_pattern() { // @@protoc_insertion_point(one_of_clear_start:google.api.HttpRule) switch (pattern_case()) { case kGet: { - pattern_.get_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + _impl_.pattern_.get_.Destroy(); break; } case kPut: { - pattern_.put_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + _impl_.pattern_.put_.Destroy(); break; } case kPost: { - pattern_.post_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + _impl_.pattern_.post_.Destroy(); break; } case kDelete: { - pattern_.delete__.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + _impl_.pattern_.delete__.Destroy(); break; } case kPatch: { - pattern_.patch_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + _impl_.pattern_.patch_.Destroy(); break; } case kCustom: { - if (GetArenaNoVirtual() == nullptr) { - delete pattern_.custom_; + if (GetArenaForAllocation() == nullptr) { + delete _impl_.pattern_.custom_; } break; } @@ -581,105 +555,111 @@ void HttpRule::clear_pattern() { break; } } - _oneof_case_[0] = PATTERN_NOT_SET; + _impl_._oneof_case_[0] = PATTERN_NOT_SET; } void HttpRule::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.HttpRule) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - additional_bindings_.Clear(); - selector_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - body_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - response_body_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + _impl_.additional_bindings_.Clear(); + _impl_.selector_.ClearToEmpty(); + _impl_.body_.ClearToEmpty(); + _impl_.response_body_.ClearToEmpty(); clear_pattern(); - _internal_metadata_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HttpRule::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* HttpRule::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string selector = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_selector(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.api.HttpRule.selector")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.selector")); + } else + goto handle_unusual; continue; // string get = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_get(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.api.HttpRule.get")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.get")); + } else + goto handle_unusual; continue; // string put = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_put(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.api.HttpRule.put")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.put")); + } else + goto handle_unusual; continue; // string post = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { auto str = _internal_mutable_post(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.api.HttpRule.post")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.post")); + } else + goto handle_unusual; continue; // string delete = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { auto str = _internal_mutable_delete_(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.api.HttpRule.delete")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.delete")); + } else + goto handle_unusual; continue; // string patch = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { auto str = _internal_mutable_patch(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.api.HttpRule.patch")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.patch")); + } else + goto handle_unusual; continue; // string body = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { auto str = _internal_mutable_body(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.api.HttpRule.body")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.body")); + } else + goto handle_unusual; continue; // .google.api.CustomHttpPattern custom = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { ptr = ctx->ParseMessage(_internal_mutable_custom(), ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated .google.api.HttpRule additional_bindings = 11; case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { ptr -= 1; do { ptr += 1; @@ -687,45 +667,50 @@ const char* HttpRule::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // string response_body = 12; case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { auto str = _internal_mutable_response_body(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.api.HttpRule.response_body")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.response_body")); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* HttpRule::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* HttpRule::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.HttpRule) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string selector = 1; - if (this->selector().size() > 0) { + if (!this->_internal_selector().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_selector().data(), static_cast(this->_internal_selector().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -785,7 +770,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* HttpRule::_InternalSerialize( } // string body = 7; - if (this->body().size() > 0) { + if (!this->_internal_body().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_body().data(), static_cast(this->_internal_body().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -796,22 +781,21 @@ ::PROTOBUF_NAMESPACE_ID::uint8* HttpRule::_InternalSerialize( // .google.api.CustomHttpPattern custom = 8; if (_internal_has_custom()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 8, _Internal::custom(this), target, stream); + InternalWriteMessage(8, _Internal::custom(this), + _Internal::custom(this).GetCachedSize(), target, stream); } // repeated .google.api.HttpRule additional_bindings = 11; - for (unsigned int i = 0, - n = static_cast(this->_internal_additional_bindings_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast(this->_internal_additional_bindings_size()); i < n; i++) { + const auto& repfield = this->_internal_additional_bindings(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(11, this->_internal_additional_bindings(i), target, stream); + InternalWriteMessage(11, repfield, repfield.GetCachedSize(), target, stream); } // string response_body = 12; - if (this->response_body().size() > 0) { + if (!this->_internal_response_body().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_response_body().data(), static_cast(this->_internal_response_body().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -821,8 +805,8 @@ ::PROTOBUF_NAMESPACE_ID::uint8* HttpRule::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:google.api.HttpRule) return target; @@ -832,33 +816,33 @@ size_t HttpRule::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.HttpRule) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.HttpRule additional_bindings = 11; total_size += 1UL * this->_internal_additional_bindings_size(); - for (const auto& msg : this->additional_bindings_) { + for (const auto& msg : this->_impl_.additional_bindings_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // string selector = 1; - if (this->selector().size() > 0) { + if (!this->_internal_selector().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_selector()); } // string body = 7; - if (this->body().size() > 0) { + if (!this->_internal_body().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_body()); } // string response_body = 12; - if (this->response_body().size() > 0) { + if (!this->_internal_response_body().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_response_body()); @@ -904,90 +888,72 @@ size_t HttpRule::ByteSizeLong() const { case kCustom: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *pattern_.custom_); + *_impl_.pattern_.custom_); break; } case PATTERN_NOT_SET: { break; } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void HttpRule::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:google.api.HttpRule) - GOOGLE_DCHECK_NE(&from, this); - const HttpRule* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.api.HttpRule) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:google.api.HttpRule) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HttpRule::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + HttpRule::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HttpRule::GetClassData() const { return &_class_data_; } -void HttpRule::MergeFrom(const HttpRule& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:google.api.HttpRule) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void HttpRule::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.HttpRule) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - additional_bindings_.MergeFrom(from.additional_bindings_); - if (from.selector().size() > 0) { - _internal_set_selector(from._internal_selector()); + _this->_impl_.additional_bindings_.MergeFrom(from._impl_.additional_bindings_); + if (!from._internal_selector().empty()) { + _this->_internal_set_selector(from._internal_selector()); } - if (from.body().size() > 0) { - _internal_set_body(from._internal_body()); + if (!from._internal_body().empty()) { + _this->_internal_set_body(from._internal_body()); } - if (from.response_body().size() > 0) { - _internal_set_response_body(from._internal_response_body()); + if (!from._internal_response_body().empty()) { + _this->_internal_set_response_body(from._internal_response_body()); } switch (from.pattern_case()) { case kGet: { - _internal_set_get(from._internal_get()); + _this->_internal_set_get(from._internal_get()); break; } case kPut: { - _internal_set_put(from._internal_put()); + _this->_internal_set_put(from._internal_put()); break; } case kPost: { - _internal_set_post(from._internal_post()); + _this->_internal_set_post(from._internal_post()); break; } case kDelete: { - _internal_set_delete_(from._internal_delete_()); + _this->_internal_set_delete_(from._internal_delete_()); break; } case kPatch: { - _internal_set_patch(from._internal_patch()); + _this->_internal_set_patch(from._internal_patch()); break; } case kCustom: { - _internal_mutable_custom()->::google::api::CustomHttpPattern::MergeFrom(from._internal_custom()); + _this->_internal_mutable_custom()->::google::api::CustomHttpPattern::MergeFrom( + from._internal_custom()); break; } case PATTERN_NOT_SET: { break; } } -} - -void HttpRule::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:google.api.HttpRule) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HttpRule::CopyFrom(const HttpRule& from) { @@ -1003,157 +969,178 @@ bool HttpRule::IsInitialized() const { void HttpRule::InternalSwap(HttpRule* other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - additional_bindings_.InternalSwap(&other->additional_bindings_); - selector_.Swap(&other->selector_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - body_.Swap(&other->body_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - response_body_.Swap(&other->response_body_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(pattern_, other->pattern_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.additional_bindings_.InternalSwap(&other->_impl_.additional_bindings_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.selector_, lhs_arena, + &other->_impl_.selector_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.body_, lhs_arena, + &other->_impl_.body_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.response_body_, lhs_arena, + &other->_impl_.response_body_, rhs_arena + ); + swap(_impl_.pattern_, other->_impl_.pattern_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata HttpRule::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fhttp_2eproto_getter, &descriptor_table_google_2fapi_2fhttp_2eproto_once, + file_level_metadata_google_2fapi_2fhttp_2eproto[1]); } - // =================================================================== -void CustomHttpPattern::InitAsDefaultInstance() { -} class CustomHttpPattern::_Internal { public: }; -CustomHttpPattern::CustomHttpPattern() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:google.api.CustomHttpPattern) -} -CustomHttpPattern::CustomHttpPattern(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +CustomHttpPattern::CustomHttpPattern(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:google.api.CustomHttpPattern) } CustomHttpPattern::CustomHttpPattern(const CustomHttpPattern& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - kind_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + : ::PROTOBUF_NAMESPACE_ID::Message() { + CustomHttpPattern* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.kind_){} + , decltype(_impl_.path_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.kind_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.kind_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_kind().empty()) { - kind_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_kind(), - GetArenaNoVirtual()); + _this->_impl_.kind_.Set(from._internal_kind(), + _this->GetArenaForAllocation()); } - path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.path_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.path_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_path().empty()) { - path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_path(), - GetArenaNoVirtual()); + _this->_impl_.path_.Set(from._internal_path(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:google.api.CustomHttpPattern) } -void CustomHttpPattern::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CustomHttpPattern_google_2fapi_2fhttp_2eproto.base); - kind_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void CustomHttpPattern::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.kind_){} + , decltype(_impl_.path_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.kind_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.kind_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.path_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.path_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } CustomHttpPattern::~CustomHttpPattern() { // @@protoc_insertion_point(destructor:google.api.CustomHttpPattern) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -void CustomHttpPattern::SharedDtor() { - GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); - kind_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void CustomHttpPattern::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.kind_.Destroy(); + _impl_.path_.Destroy(); } -void CustomHttpPattern::ArenaDtor(void* object) { - CustomHttpPattern* _this = reinterpret_cast< CustomHttpPattern* >(object); - (void)_this; -} -void CustomHttpPattern::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void CustomHttpPattern::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CustomHttpPattern& CustomHttpPattern::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CustomHttpPattern_google_2fapi_2fhttp_2eproto.base); - return *internal_default_instance(); + _impl_._cached_size_.Set(size); } - void CustomHttpPattern::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.CustomHttpPattern) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - kind_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - path_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - _internal_metadata_.Clear(); + _impl_.kind_.ClearToEmpty(); + _impl_.path_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* CustomHttpPattern::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* CustomHttpPattern::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string kind = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_kind(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.api.CustomHttpPattern.kind")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "google.api.CustomHttpPattern.kind")); + } else + goto handle_unusual; continue; // string path = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_path(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.api.CustomHttpPattern.path")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.CustomHttpPattern.path")); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* CustomHttpPattern::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* CustomHttpPattern::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.CustomHttpPattern) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string kind = 1; - if (this->kind().size() > 0) { + if (!this->_internal_kind().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_kind().data(), static_cast(this->_internal_kind().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1163,7 +1150,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* CustomHttpPattern::_InternalSerialize( } // string path = 2; - if (this->path().size() > 0) { + if (!this->_internal_path().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_path().data(), static_cast(this->_internal_path().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1173,8 +1160,8 @@ ::PROTOBUF_NAMESPACE_ID::uint8* CustomHttpPattern::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:google.api.CustomHttpPattern) return target; @@ -1184,68 +1171,49 @@ size_t CustomHttpPattern::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.CustomHttpPattern) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string kind = 1; - if (this->kind().size() > 0) { + if (!this->_internal_kind().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_kind()); } // string path = 2; - if (this->path().size() > 0) { + if (!this->_internal_path().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_path()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void CustomHttpPattern::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:google.api.CustomHttpPattern) - GOOGLE_DCHECK_NE(&from, this); - const CustomHttpPattern* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.api.CustomHttpPattern) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:google.api.CustomHttpPattern) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CustomHttpPattern::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CustomHttpPattern::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CustomHttpPattern::GetClassData() const { return &_class_data_; } -void CustomHttpPattern::MergeFrom(const CustomHttpPattern& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:google.api.CustomHttpPattern) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void CustomHttpPattern::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.CustomHttpPattern) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.kind().size() > 0) { - _internal_set_kind(from._internal_kind()); + if (!from._internal_kind().empty()) { + _this->_internal_set_kind(from._internal_kind()); } - if (from.path().size() > 0) { - _internal_set_path(from._internal_path()); + if (!from._internal_path().empty()) { + _this->_internal_set_path(from._internal_path()); } -} - -void CustomHttpPattern::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:google.api.CustomHttpPattern) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CustomHttpPattern::CopyFrom(const CustomHttpPattern& from) { @@ -1261,29 +1229,39 @@ bool CustomHttpPattern::IsInitialized() const { void CustomHttpPattern::InternalSwap(CustomHttpPattern* other) { using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - kind_.Swap(&other->kind_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - path_.Swap(&other->path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.kind_, lhs_arena, + &other->_impl_.kind_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.path_, lhs_arena, + &other->_impl_.path_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata CustomHttpPattern::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fhttp_2eproto_getter, &descriptor_table_google_2fapi_2fhttp_2eproto_once, + file_level_metadata_google_2fapi_2fhttp_2eproto[2]); } - // @@protoc_insertion_point(namespace_scope) } // namespace api } // namespace google PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::google::api::Http* Arena::CreateMaybeMessage< ::google::api::Http >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::google::api::Http* +Arena::CreateMaybeMessage< ::google::api::Http >(Arena* arena) { return Arena::CreateMessageInternal< ::google::api::Http >(arena); } -template<> PROTOBUF_NOINLINE ::google::api::HttpRule* Arena::CreateMaybeMessage< ::google::api::HttpRule >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::google::api::HttpRule* +Arena::CreateMaybeMessage< ::google::api::HttpRule >(Arena* arena) { return Arena::CreateMessageInternal< ::google::api::HttpRule >(arena); } -template<> PROTOBUF_NOINLINE ::google::api::CustomHttpPattern* Arena::CreateMaybeMessage< ::google::api::CustomHttpPattern >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::google::api::CustomHttpPattern* +Arena::CreateMaybeMessage< ::google::api::CustomHttpPattern >(Arena* arena) { return Arena::CreateMessageInternal< ::google::api::CustomHttpPattern >(arena); } PROTOBUF_NAMESPACE_CLOSE diff --git a/google/api/http.pb.h b/google/api/http.pb.h index f72312c..33ae78c 100644 --- a/google/api/http.pb.h +++ b/google/api/http.pb.h @@ -8,12 +8,12 @@ #include #include -#if PROTOBUF_VERSION < 3011000 +#if PROTOBUF_VERSION < 3021000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3011002 < PROTOBUF_MIN_PROTOC_VERSION +#if 3021006 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -23,10 +23,8 @@ #include #include #include -#include #include -#include -#include +#include #include #include #include // IWYU pragma: export @@ -43,27 +41,19 @@ PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2fhttp_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; + static const uint32_t offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fhttp_2eproto; namespace google { namespace api { class CustomHttpPattern; -class CustomHttpPatternDefaultTypeInternal; +struct CustomHttpPatternDefaultTypeInternal; extern CustomHttpPatternDefaultTypeInternal _CustomHttpPattern_default_instance_; class Http; -class HttpDefaultTypeInternal; +struct HttpDefaultTypeInternal; extern HttpDefaultTypeInternal _Http_default_instance_; class HttpRule; -class HttpRuleDefaultTypeInternal; +struct HttpRuleDefaultTypeInternal; extern HttpRuleDefaultTypeInternal _HttpRule_default_instance_; } // namespace api } // namespace google @@ -77,11 +67,12 @@ namespace api { // =================================================================== -class Http : +class Http final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.Http) */ { public: - Http(); - virtual ~Http(); + inline Http() : Http(nullptr) {} + ~Http() override; + explicit PROTOBUF_CONSTEXPR Http(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Http(const Http& from); Http(Http&& from) noexcept @@ -94,32 +85,31 @@ class Http : return *this; } inline Http& operator=(Http&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; + } + static const Http& default_instance() { + return *internal_default_instance(); } - static const Http& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Http* internal_default_instance() { return reinterpret_cast( &_Http_default_instance_); @@ -132,7 +122,12 @@ class Http : } inline void Swap(Http* other) { if (other == this) return; - if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -140,63 +135,53 @@ class Http : } void UnsafeArenaSwap(Http* other) { if (other == this) return; - GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline Http* New() const final { - return CreateMaybeMessage(nullptr); - } - - Http* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + Http* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Http& from); - void MergeFrom(const Http& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Http& from) { + Http::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Http* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.Http"; } protected: - explicit Http(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } + explicit Http(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fapi_2fhttp_2eproto); - return ::descriptor_table_google_2fapi_2fhttp_2eproto.file_level_metadata[kIndexInFileMessages]; - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -237,22 +222,25 @@ class Http : private: class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule > rules_; - bool fully_decode_reserved_expansion_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule > rules_; + bool fully_decode_reserved_expansion_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fhttp_2eproto; }; // ------------------------------------------------------------------- -class HttpRule : +class HttpRule final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.HttpRule) */ { public: - HttpRule(); - virtual ~HttpRule(); + inline HttpRule() : HttpRule(nullptr) {} + ~HttpRule() override; + explicit PROTOBUF_CONSTEXPR HttpRule(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); HttpRule(const HttpRule& from); HttpRule(HttpRule&& from) noexcept @@ -265,31 +253,31 @@ class HttpRule : return *this; } inline HttpRule& operator=(HttpRule&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; + } + static const HttpRule& default_instance() { + return *internal_default_instance(); } - static const HttpRule& default_instance(); - enum PatternCase { kGet = 2, kPut = 3, @@ -300,7 +288,6 @@ class HttpRule : PATTERN_NOT_SET = 0, }; - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const HttpRule* internal_default_instance() { return reinterpret_cast( &_HttpRule_default_instance_); @@ -313,7 +300,12 @@ class HttpRule : } inline void Swap(HttpRule* other) { if (other == this) return; - if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -321,63 +313,53 @@ class HttpRule : } void UnsafeArenaSwap(HttpRule* other) { if (other == this) return; - GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline HttpRule* New() const final { - return CreateMaybeMessage(nullptr); - } - - HttpRule* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + HttpRule* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HttpRule& from); - void MergeFrom(const HttpRule& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const HttpRule& from) { + HttpRule::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(HttpRule* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.HttpRule"; } protected: - explicit HttpRule(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } + explicit HttpRule(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fapi_2fhttp_2eproto); - return ::descriptor_table_google_2fapi_2fhttp_2eproto.file_level_metadata[kIndexInFileMessages]; - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -416,215 +398,132 @@ class HttpRule : // string selector = 1; void clear_selector(); const std::string& selector() const; - void set_selector(const std::string& value); - void set_selector(std::string&& value); - void set_selector(const char* value); - void set_selector(const char* value, size_t size); + template + void set_selector(ArgT0&& arg0, ArgT... args); std::string* mutable_selector(); - std::string* release_selector(); + PROTOBUF_NODISCARD std::string* release_selector(); void set_allocated_selector(std::string* selector); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_selector(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_selector( - std::string* selector); private: const std::string& _internal_selector() const; - void _internal_set_selector(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_selector(const std::string& value); std::string* _internal_mutable_selector(); public: // string body = 7; void clear_body(); const std::string& body() const; - void set_body(const std::string& value); - void set_body(std::string&& value); - void set_body(const char* value); - void set_body(const char* value, size_t size); + template + void set_body(ArgT0&& arg0, ArgT... args); std::string* mutable_body(); - std::string* release_body(); + PROTOBUF_NODISCARD std::string* release_body(); void set_allocated_body(std::string* body); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_body(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_body( - std::string* body); private: const std::string& _internal_body() const; - void _internal_set_body(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_body(const std::string& value); std::string* _internal_mutable_body(); public: // string response_body = 12; void clear_response_body(); const std::string& response_body() const; - void set_response_body(const std::string& value); - void set_response_body(std::string&& value); - void set_response_body(const char* value); - void set_response_body(const char* value, size_t size); + template + void set_response_body(ArgT0&& arg0, ArgT... args); std::string* mutable_response_body(); - std::string* release_response_body(); + PROTOBUF_NODISCARD std::string* release_response_body(); void set_allocated_response_body(std::string* response_body); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_response_body(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_response_body( - std::string* response_body); private: const std::string& _internal_response_body() const; - void _internal_set_response_body(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_response_body(const std::string& value); std::string* _internal_mutable_response_body(); public: // string get = 2; + bool has_get() const; private: bool _internal_has_get() const; public: void clear_get(); const std::string& get() const; - void set_get(const std::string& value); - void set_get(std::string&& value); - void set_get(const char* value); - void set_get(const char* value, size_t size); + template + void set_get(ArgT0&& arg0, ArgT... args); std::string* mutable_get(); - std::string* release_get(); + PROTOBUF_NODISCARD std::string* release_get(); void set_allocated_get(std::string* get); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_get(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_get( - std::string* get); private: const std::string& _internal_get() const; - void _internal_set_get(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_get(const std::string& value); std::string* _internal_mutable_get(); public: // string put = 3; + bool has_put() const; private: bool _internal_has_put() const; public: void clear_put(); const std::string& put() const; - void set_put(const std::string& value); - void set_put(std::string&& value); - void set_put(const char* value); - void set_put(const char* value, size_t size); + template + void set_put(ArgT0&& arg0, ArgT... args); std::string* mutable_put(); - std::string* release_put(); + PROTOBUF_NODISCARD std::string* release_put(); void set_allocated_put(std::string* put); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_put(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_put( - std::string* put); private: const std::string& _internal_put() const; - void _internal_set_put(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_put(const std::string& value); std::string* _internal_mutable_put(); public: // string post = 4; + bool has_post() const; private: bool _internal_has_post() const; public: void clear_post(); const std::string& post() const; - void set_post(const std::string& value); - void set_post(std::string&& value); - void set_post(const char* value); - void set_post(const char* value, size_t size); + template + void set_post(ArgT0&& arg0, ArgT... args); std::string* mutable_post(); - std::string* release_post(); + PROTOBUF_NODISCARD std::string* release_post(); void set_allocated_post(std::string* post); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_post(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_post( - std::string* post); private: const std::string& _internal_post() const; - void _internal_set_post(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_post(const std::string& value); std::string* _internal_mutable_post(); public: // string delete = 5; + bool has_delete_() const; private: bool _internal_has_delete_() const; public: void clear_delete_(); const std::string& delete_() const; - void set_delete_(const std::string& value); - void set_delete_(std::string&& value); - void set_delete_(const char* value); - void set_delete_(const char* value, size_t size); + template + void set_delete_(ArgT0&& arg0, ArgT... args); std::string* mutable_delete_(); - std::string* release_delete_(); + PROTOBUF_NODISCARD std::string* release_delete_(); void set_allocated_delete_(std::string* delete_); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_delete_(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_delete_( - std::string* delete_); private: const std::string& _internal_delete_() const; - void _internal_set_delete_(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_delete_(const std::string& value); std::string* _internal_mutable_delete_(); public: // string patch = 6; + bool has_patch() const; private: bool _internal_has_patch() const; public: void clear_patch(); const std::string& patch() const; - void set_patch(const std::string& value); - void set_patch(std::string&& value); - void set_patch(const char* value); - void set_patch(const char* value, size_t size); + template + void set_patch(ArgT0&& arg0, ArgT... args); std::string* mutable_patch(); - std::string* release_patch(); + PROTOBUF_NODISCARD std::string* release_patch(); void set_allocated_patch(std::string* patch); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_patch(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_patch( - std::string* patch); private: const std::string& _internal_patch() const; - void _internal_set_patch(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_patch(const std::string& value); std::string* _internal_mutable_patch(); public: @@ -635,7 +534,7 @@ class HttpRule : public: void clear_custom(); const ::google::api::CustomHttpPattern& custom() const; - ::google::api::CustomHttpPattern* release_custom(); + PROTOBUF_NODISCARD ::google::api::CustomHttpPattern* release_custom(); ::google::api::CustomHttpPattern* mutable_custom(); void set_allocated_custom(::google::api::CustomHttpPattern* custom); private: @@ -661,35 +560,39 @@ class HttpRule : inline bool has_pattern() const; inline void clear_has_pattern(); - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule > additional_bindings_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr selector_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr body_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr response_body_; - union PatternUnion { - PatternUnion() {} - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr get_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr put_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr post_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr delete__; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr patch_; - ::google::api::CustomHttpPattern* custom_; - } pattern_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule > additional_bindings_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr selector_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr body_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr response_body_; + union PatternUnion { + constexpr PatternUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr get_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr put_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr post_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr delete__; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr patch_; + ::google::api::CustomHttpPattern* custom_; + } pattern_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fhttp_2eproto; }; // ------------------------------------------------------------------- -class CustomHttpPattern : +class CustomHttpPattern final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.CustomHttpPattern) */ { public: - CustomHttpPattern(); - virtual ~CustomHttpPattern(); + inline CustomHttpPattern() : CustomHttpPattern(nullptr) {} + ~CustomHttpPattern() override; + explicit PROTOBUF_CONSTEXPR CustomHttpPattern(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); CustomHttpPattern(const CustomHttpPattern& from); CustomHttpPattern(CustomHttpPattern&& from) noexcept @@ -702,32 +605,31 @@ class CustomHttpPattern : return *this; } inline CustomHttpPattern& operator=(CustomHttpPattern&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; + } + static const CustomHttpPattern& default_instance() { + return *internal_default_instance(); } - static const CustomHttpPattern& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CustomHttpPattern* internal_default_instance() { return reinterpret_cast( &_CustomHttpPattern_default_instance_); @@ -740,7 +642,12 @@ class CustomHttpPattern : } inline void Swap(CustomHttpPattern* other) { if (other == this) return; - if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -748,63 +655,53 @@ class CustomHttpPattern : } void UnsafeArenaSwap(CustomHttpPattern* other) { if (other == this) return; - GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline CustomHttpPattern* New() const final { - return CreateMaybeMessage(nullptr); - } - - CustomHttpPattern* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + CustomHttpPattern* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CustomHttpPattern& from); - void MergeFrom(const CustomHttpPattern& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CustomHttpPattern& from) { + CustomHttpPattern::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(CustomHttpPattern* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.CustomHttpPattern"; } protected: - explicit CustomHttpPattern(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } + explicit CustomHttpPattern(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fapi_2fhttp_2eproto); - return ::descriptor_table_google_2fapi_2fhttp_2eproto.file_level_metadata[kIndexInFileMessages]; - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -817,50 +714,28 @@ class CustomHttpPattern : // string kind = 1; void clear_kind(); const std::string& kind() const; - void set_kind(const std::string& value); - void set_kind(std::string&& value); - void set_kind(const char* value); - void set_kind(const char* value, size_t size); + template + void set_kind(ArgT0&& arg0, ArgT... args); std::string* mutable_kind(); - std::string* release_kind(); + PROTOBUF_NODISCARD std::string* release_kind(); void set_allocated_kind(std::string* kind); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_kind(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_kind( - std::string* kind); private: const std::string& _internal_kind() const; - void _internal_set_kind(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_kind(const std::string& value); std::string* _internal_mutable_kind(); public: // string path = 2; void clear_path(); const std::string& path() const; - void set_path(const std::string& value); - void set_path(std::string&& value); - void set_path(const char* value); - void set_path(const char* value, size_t size); + template + void set_path(ArgT0&& arg0, ArgT... args); std::string* mutable_path(); - std::string* release_path(); + PROTOBUF_NODISCARD std::string* release_path(); void set_allocated_path(std::string* path); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_path(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_path( - std::string* path); private: const std::string& _internal_path() const; - void _internal_set_path(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value); std::string* _internal_mutable_path(); public: @@ -868,13 +743,15 @@ class CustomHttpPattern : private: class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr kind_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr kind_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fhttp_2eproto; }; // =================================================================== @@ -890,49 +767,50 @@ class CustomHttpPattern : // repeated .google.api.HttpRule rules = 1; inline int Http::_internal_rules_size() const { - return rules_.size(); + return _impl_.rules_.size(); } inline int Http::rules_size() const { return _internal_rules_size(); } inline void Http::clear_rules() { - rules_.Clear(); + _impl_.rules_.Clear(); } inline ::google::api::HttpRule* Http::mutable_rules(int index) { // @@protoc_insertion_point(field_mutable:google.api.Http.rules) - return rules_.Mutable(index); + return _impl_.rules_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >* Http::mutable_rules() { // @@protoc_insertion_point(field_mutable_list:google.api.Http.rules) - return &rules_; + return &_impl_.rules_; } inline const ::google::api::HttpRule& Http::_internal_rules(int index) const { - return rules_.Get(index); + return _impl_.rules_.Get(index); } inline const ::google::api::HttpRule& Http::rules(int index) const { // @@protoc_insertion_point(field_get:google.api.Http.rules) return _internal_rules(index); } inline ::google::api::HttpRule* Http::_internal_add_rules() { - return rules_.Add(); + return _impl_.rules_.Add(); } inline ::google::api::HttpRule* Http::add_rules() { + ::google::api::HttpRule* _add = _internal_add_rules(); // @@protoc_insertion_point(field_add:google.api.Http.rules) - return _internal_add_rules(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >& Http::rules() const { // @@protoc_insertion_point(field_list:google.api.Http.rules) - return rules_; + return _impl_.rules_; } // bool fully_decode_reserved_expansion = 2; inline void Http::clear_fully_decode_reserved_expansion() { - fully_decode_reserved_expansion_ = false; + _impl_.fully_decode_reserved_expansion_ = false; } inline bool Http::_internal_fully_decode_reserved_expansion() const { - return fully_decode_reserved_expansion_; + return _impl_.fully_decode_reserved_expansion_; } inline bool Http::fully_decode_reserved_expansion() const { // @@protoc_insertion_point(field_get:google.api.Http.fully_decode_reserved_expansion) @@ -940,7 +818,7 @@ inline bool Http::fully_decode_reserved_expansion() const { } inline void Http::_internal_set_fully_decode_reserved_expansion(bool value) { - fully_decode_reserved_expansion_ = value; + _impl_.fully_decode_reserved_expansion_ = value; } inline void Http::set_fully_decode_reserved_expansion(bool value) { _internal_set_fully_decode_reserved_expansion(value); @@ -953,55 +831,38 @@ inline void Http::set_fully_decode_reserved_expansion(bool value) { // string selector = 1; inline void HttpRule::clear_selector() { - selector_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + _impl_.selector_.ClearToEmpty(); } inline const std::string& HttpRule::selector() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.selector) return _internal_selector(); } -inline void HttpRule::set_selector(const std::string& value) { - _internal_set_selector(value); +template +inline PROTOBUF_ALWAYS_INLINE +void HttpRule::set_selector(ArgT0&& arg0, ArgT... args) { + + _impl_.selector_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.HttpRule.selector) } inline std::string* HttpRule::mutable_selector() { + std::string* _s = _internal_mutable_selector(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.selector) - return _internal_mutable_selector(); + return _s; } inline const std::string& HttpRule::_internal_selector() const { - return selector_.Get(); + return _impl_.selector_.Get(); } inline void HttpRule::_internal_set_selector(const std::string& value) { - selector_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); -} -inline void HttpRule::set_selector(std::string&& value) { - - selector_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.selector) -} -inline void HttpRule::set_selector(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - selector_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:google.api.HttpRule.selector) -} -inline void HttpRule::set_selector(const char* value, - size_t size) { - - selector_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.selector) + _impl_.selector_.Set(value, GetArenaForAllocation()); } inline std::string* HttpRule::_internal_mutable_selector() { - return selector_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return _impl_.selector_.Mutable(GetArenaForAllocation()); } inline std::string* HttpRule::release_selector() { // @@protoc_insertion_point(field_release:google.api.HttpRule.selector) - - return selector_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return _impl_.selector_.Release(); } inline void HttpRule::set_allocated_selector(std::string* selector) { if (selector != nullptr) { @@ -1009,41 +870,28 @@ inline void HttpRule::set_allocated_selector(std::string* selector) { } else { } - selector_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), selector, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.selector) -} -inline std::string* HttpRule::unsafe_arena_release_selector() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.selector) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - - return selector_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HttpRule::unsafe_arena_set_allocated_selector( - std::string* selector) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (selector != nullptr) { - - } else { - + _impl_.selector_.SetAllocated(selector, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.selector_.IsDefault()) { + _impl_.selector_.Set("", GetArenaForAllocation()); } - selector_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - selector, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.selector) +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.selector) } // string get = 2; inline bool HttpRule::_internal_has_get() const { return pattern_case() == kGet; } +inline bool HttpRule::has_get() const { + return _internal_has_get(); +} inline void HttpRule::set_has_get() { - _oneof_case_[0] = kGet; + _impl_._oneof_case_[0] = kGet; } inline void HttpRule::clear_get() { if (_internal_has_get()) { - pattern_.get_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + _impl_.pattern_.get_.Destroy(); clear_has_pattern(); } } @@ -1051,79 +899,48 @@ inline const std::string& HttpRule::get() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.get) return _internal_get(); } -inline void HttpRule::set_get(const std::string& value) { - _internal_set_get(value); +template +inline void HttpRule::set_get(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_get()) { + clear_pattern(); + set_has_get(); + _impl_.pattern_.get_.InitDefault(); + } + _impl_.pattern_.get_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.HttpRule.get) } inline std::string* HttpRule::mutable_get() { + std::string* _s = _internal_mutable_get(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.get) - return _internal_mutable_get(); + return _s; } inline const std::string& HttpRule::_internal_get() const { if (_internal_has_get()) { - return pattern_.get_.Get(); + return _impl_.pattern_.get_.Get(); } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void HttpRule::_internal_set_get(const std::string& value) { if (!_internal_has_get()) { clear_pattern(); set_has_get(); - pattern_.get_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - pattern_.get_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, - GetArenaNoVirtual()); -} -inline void HttpRule::set_get(std::string&& value) { - // @@protoc_insertion_point(field_set:google.api.HttpRule.get) - if (!_internal_has_get()) { - clear_pattern(); - set_has_get(); - pattern_.get_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - pattern_.get_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.get) -} -inline void HttpRule::set_get(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_get()) { - clear_pattern(); - set_has_get(); - pattern_.get_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.pattern_.get_.InitDefault(); } - pattern_.get_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:google.api.HttpRule.get) -} -inline void HttpRule::set_get(const char* value, - size_t size) { - if (!_internal_has_get()) { - clear_pattern(); - set_has_get(); - pattern_.get_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - pattern_.get_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.get) + _impl_.pattern_.get_.Set(value, GetArenaForAllocation()); } inline std::string* HttpRule::_internal_mutable_get() { if (!_internal_has_get()) { clear_pattern(); set_has_get(); - pattern_.get_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.pattern_.get_.InitDefault(); } - return pattern_.get_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return _impl_.pattern_.get_.Mutable( GetArenaForAllocation()); } inline std::string* HttpRule::release_get() { // @@protoc_insertion_point(field_release:google.api.HttpRule.get) if (_internal_has_get()) { clear_has_pattern(); - return pattern_.get_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return _impl_.pattern_.get_.Release(); } else { return nullptr; } @@ -1134,45 +951,24 @@ inline void HttpRule::set_allocated_get(std::string* get) { } if (get != nullptr) { set_has_get(); - pattern_.get_.UnsafeSetDefault(get); + _impl_.pattern_.get_.InitAllocated(get, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.get) } -inline std::string* HttpRule::unsafe_arena_release_get() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.get) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (_internal_has_get()) { - clear_has_pattern(); - return pattern_.get_.UnsafeArenaRelease( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - } else { - return nullptr; - } -} -inline void HttpRule::unsafe_arena_set_allocated_get(std::string* get) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (!_internal_has_get()) { - pattern_.get_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - clear_pattern(); - if (get) { - set_has_get(); - pattern_.get_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), get, GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.get) -} // string put = 3; inline bool HttpRule::_internal_has_put() const { return pattern_case() == kPut; } +inline bool HttpRule::has_put() const { + return _internal_has_put(); +} inline void HttpRule::set_has_put() { - _oneof_case_[0] = kPut; + _impl_._oneof_case_[0] = kPut; } inline void HttpRule::clear_put() { if (_internal_has_put()) { - pattern_.put_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + _impl_.pattern_.put_.Destroy(); clear_has_pattern(); } } @@ -1180,79 +976,48 @@ inline const std::string& HttpRule::put() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.put) return _internal_put(); } -inline void HttpRule::set_put(const std::string& value) { - _internal_set_put(value); +template +inline void HttpRule::set_put(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_put()) { + clear_pattern(); + set_has_put(); + _impl_.pattern_.put_.InitDefault(); + } + _impl_.pattern_.put_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.HttpRule.put) } inline std::string* HttpRule::mutable_put() { + std::string* _s = _internal_mutable_put(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.put) - return _internal_mutable_put(); + return _s; } inline const std::string& HttpRule::_internal_put() const { if (_internal_has_put()) { - return pattern_.put_.Get(); + return _impl_.pattern_.put_.Get(); } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void HttpRule::_internal_set_put(const std::string& value) { if (!_internal_has_put()) { clear_pattern(); set_has_put(); - pattern_.put_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - pattern_.put_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, - GetArenaNoVirtual()); -} -inline void HttpRule::set_put(std::string&& value) { - // @@protoc_insertion_point(field_set:google.api.HttpRule.put) - if (!_internal_has_put()) { - clear_pattern(); - set_has_put(); - pattern_.put_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.pattern_.put_.InitDefault(); } - pattern_.put_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.put) -} -inline void HttpRule::set_put(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_put()) { - clear_pattern(); - set_has_put(); - pattern_.put_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - pattern_.put_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:google.api.HttpRule.put) -} -inline void HttpRule::set_put(const char* value, - size_t size) { - if (!_internal_has_put()) { - clear_pattern(); - set_has_put(); - pattern_.put_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - pattern_.put_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.put) + _impl_.pattern_.put_.Set(value, GetArenaForAllocation()); } inline std::string* HttpRule::_internal_mutable_put() { if (!_internal_has_put()) { clear_pattern(); set_has_put(); - pattern_.put_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.pattern_.put_.InitDefault(); } - return pattern_.put_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return _impl_.pattern_.put_.Mutable( GetArenaForAllocation()); } inline std::string* HttpRule::release_put() { // @@protoc_insertion_point(field_release:google.api.HttpRule.put) if (_internal_has_put()) { clear_has_pattern(); - return pattern_.put_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return _impl_.pattern_.put_.Release(); } else { return nullptr; } @@ -1263,45 +1028,24 @@ inline void HttpRule::set_allocated_put(std::string* put) { } if (put != nullptr) { set_has_put(); - pattern_.put_.UnsafeSetDefault(put); + _impl_.pattern_.put_.InitAllocated(put, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.put) } -inline std::string* HttpRule::unsafe_arena_release_put() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.put) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (_internal_has_put()) { - clear_has_pattern(); - return pattern_.put_.UnsafeArenaRelease( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - } else { - return nullptr; - } -} -inline void HttpRule::unsafe_arena_set_allocated_put(std::string* put) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (!_internal_has_put()) { - pattern_.put_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - clear_pattern(); - if (put) { - set_has_put(); - pattern_.put_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), put, GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.put) -} // string post = 4; inline bool HttpRule::_internal_has_post() const { return pattern_case() == kPost; } +inline bool HttpRule::has_post() const { + return _internal_has_post(); +} inline void HttpRule::set_has_post() { - _oneof_case_[0] = kPost; + _impl_._oneof_case_[0] = kPost; } inline void HttpRule::clear_post() { if (_internal_has_post()) { - pattern_.post_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + _impl_.pattern_.post_.Destroy(); clear_has_pattern(); } } @@ -1309,79 +1053,48 @@ inline const std::string& HttpRule::post() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.post) return _internal_post(); } -inline void HttpRule::set_post(const std::string& value) { - _internal_set_post(value); +template +inline void HttpRule::set_post(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_post()) { + clear_pattern(); + set_has_post(); + _impl_.pattern_.post_.InitDefault(); + } + _impl_.pattern_.post_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.HttpRule.post) } inline std::string* HttpRule::mutable_post() { + std::string* _s = _internal_mutable_post(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.post) - return _internal_mutable_post(); + return _s; } inline const std::string& HttpRule::_internal_post() const { if (_internal_has_post()) { - return pattern_.post_.Get(); + return _impl_.pattern_.post_.Get(); } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void HttpRule::_internal_set_post(const std::string& value) { if (!_internal_has_post()) { clear_pattern(); set_has_post(); - pattern_.post_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - pattern_.post_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, - GetArenaNoVirtual()); -} -inline void HttpRule::set_post(std::string&& value) { - // @@protoc_insertion_point(field_set:google.api.HttpRule.post) - if (!_internal_has_post()) { - clear_pattern(); - set_has_post(); - pattern_.post_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - pattern_.post_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.post) -} -inline void HttpRule::set_post(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_post()) { - clear_pattern(); - set_has_post(); - pattern_.post_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - pattern_.post_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:google.api.HttpRule.post) -} -inline void HttpRule::set_post(const char* value, - size_t size) { - if (!_internal_has_post()) { - clear_pattern(); - set_has_post(); - pattern_.post_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.pattern_.post_.InitDefault(); } - pattern_.post_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.post) + _impl_.pattern_.post_.Set(value, GetArenaForAllocation()); } inline std::string* HttpRule::_internal_mutable_post() { if (!_internal_has_post()) { clear_pattern(); set_has_post(); - pattern_.post_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.pattern_.post_.InitDefault(); } - return pattern_.post_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return _impl_.pattern_.post_.Mutable( GetArenaForAllocation()); } inline std::string* HttpRule::release_post() { // @@protoc_insertion_point(field_release:google.api.HttpRule.post) if (_internal_has_post()) { clear_has_pattern(); - return pattern_.post_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return _impl_.pattern_.post_.Release(); } else { return nullptr; } @@ -1392,45 +1105,24 @@ inline void HttpRule::set_allocated_post(std::string* post) { } if (post != nullptr) { set_has_post(); - pattern_.post_.UnsafeSetDefault(post); + _impl_.pattern_.post_.InitAllocated(post, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.post) } -inline std::string* HttpRule::unsafe_arena_release_post() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.post) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (_internal_has_post()) { - clear_has_pattern(); - return pattern_.post_.UnsafeArenaRelease( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - } else { - return nullptr; - } -} -inline void HttpRule::unsafe_arena_set_allocated_post(std::string* post) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (!_internal_has_post()) { - pattern_.post_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - clear_pattern(); - if (post) { - set_has_post(); - pattern_.post_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), post, GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.post) -} // string delete = 5; inline bool HttpRule::_internal_has_delete_() const { return pattern_case() == kDelete; } +inline bool HttpRule::has_delete_() const { + return _internal_has_delete_(); +} inline void HttpRule::set_has_delete_() { - _oneof_case_[0] = kDelete; + _impl_._oneof_case_[0] = kDelete; } inline void HttpRule::clear_delete_() { if (_internal_has_delete_()) { - pattern_.delete__.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + _impl_.pattern_.delete__.Destroy(); clear_has_pattern(); } } @@ -1438,79 +1130,48 @@ inline const std::string& HttpRule::delete_() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.delete) return _internal_delete_(); } -inline void HttpRule::set_delete_(const std::string& value) { - _internal_set_delete_(value); +template +inline void HttpRule::set_delete_(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_delete_()) { + clear_pattern(); + set_has_delete_(); + _impl_.pattern_.delete__.InitDefault(); + } + _impl_.pattern_.delete__.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.HttpRule.delete) } inline std::string* HttpRule::mutable_delete_() { + std::string* _s = _internal_mutable_delete_(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.delete) - return _internal_mutable_delete_(); + return _s; } inline const std::string& HttpRule::_internal_delete_() const { if (_internal_has_delete_()) { - return pattern_.delete__.Get(); + return _impl_.pattern_.delete__.Get(); } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void HttpRule::_internal_set_delete_(const std::string& value) { if (!_internal_has_delete_()) { clear_pattern(); set_has_delete_(); - pattern_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.pattern_.delete__.InitDefault(); } - pattern_.delete__.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, - GetArenaNoVirtual()); -} -inline void HttpRule::set_delete_(std::string&& value) { - // @@protoc_insertion_point(field_set:google.api.HttpRule.delete) - if (!_internal_has_delete_()) { - clear_pattern(); - set_has_delete_(); - pattern_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - pattern_.delete__.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.delete) -} -inline void HttpRule::set_delete_(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_delete_()) { - clear_pattern(); - set_has_delete_(); - pattern_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - pattern_.delete__.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:google.api.HttpRule.delete) -} -inline void HttpRule::set_delete_(const char* value, - size_t size) { - if (!_internal_has_delete_()) { - clear_pattern(); - set_has_delete_(); - pattern_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - pattern_.delete__.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.delete) + _impl_.pattern_.delete__.Set(value, GetArenaForAllocation()); } inline std::string* HttpRule::_internal_mutable_delete_() { if (!_internal_has_delete_()) { clear_pattern(); set_has_delete_(); - pattern_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.pattern_.delete__.InitDefault(); } - return pattern_.delete__.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return _impl_.pattern_.delete__.Mutable( GetArenaForAllocation()); } inline std::string* HttpRule::release_delete_() { // @@protoc_insertion_point(field_release:google.api.HttpRule.delete) if (_internal_has_delete_()) { clear_has_pattern(); - return pattern_.delete__.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return _impl_.pattern_.delete__.Release(); } else { return nullptr; } @@ -1521,45 +1182,24 @@ inline void HttpRule::set_allocated_delete_(std::string* delete_) { } if (delete_ != nullptr) { set_has_delete_(); - pattern_.delete__.UnsafeSetDefault(delete_); + _impl_.pattern_.delete__.InitAllocated(delete_, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.delete) } -inline std::string* HttpRule::unsafe_arena_release_delete_() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.delete) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (_internal_has_delete_()) { - clear_has_pattern(); - return pattern_.delete__.UnsafeArenaRelease( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - } else { - return nullptr; - } -} -inline void HttpRule::unsafe_arena_set_allocated_delete_(std::string* delete_) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (!_internal_has_delete_()) { - pattern_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - clear_pattern(); - if (delete_) { - set_has_delete_(); - pattern_.delete__.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), delete_, GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.delete) -} // string patch = 6; inline bool HttpRule::_internal_has_patch() const { return pattern_case() == kPatch; } +inline bool HttpRule::has_patch() const { + return _internal_has_patch(); +} inline void HttpRule::set_has_patch() { - _oneof_case_[0] = kPatch; + _impl_._oneof_case_[0] = kPatch; } inline void HttpRule::clear_patch() { if (_internal_has_patch()) { - pattern_.patch_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + _impl_.pattern_.patch_.Destroy(); clear_has_pattern(); } } @@ -1567,79 +1207,48 @@ inline const std::string& HttpRule::patch() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.patch) return _internal_patch(); } -inline void HttpRule::set_patch(const std::string& value) { - _internal_set_patch(value); +template +inline void HttpRule::set_patch(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_patch()) { + clear_pattern(); + set_has_patch(); + _impl_.pattern_.patch_.InitDefault(); + } + _impl_.pattern_.patch_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.HttpRule.patch) } inline std::string* HttpRule::mutable_patch() { + std::string* _s = _internal_mutable_patch(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.patch) - return _internal_mutable_patch(); + return _s; } inline const std::string& HttpRule::_internal_patch() const { if (_internal_has_patch()) { - return pattern_.patch_.Get(); + return _impl_.pattern_.patch_.Get(); } - return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void HttpRule::_internal_set_patch(const std::string& value) { if (!_internal_has_patch()) { clear_pattern(); set_has_patch(); - pattern_.patch_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - pattern_.patch_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, - GetArenaNoVirtual()); -} -inline void HttpRule::set_patch(std::string&& value) { - // @@protoc_insertion_point(field_set:google.api.HttpRule.patch) - if (!_internal_has_patch()) { - clear_pattern(); - set_has_patch(); - pattern_.patch_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - pattern_.patch_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.patch) -} -inline void HttpRule::set_patch(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!_internal_has_patch()) { - clear_pattern(); - set_has_patch(); - pattern_.patch_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - pattern_.patch_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:google.api.HttpRule.patch) -} -inline void HttpRule::set_patch(const char* value, - size_t size) { - if (!_internal_has_patch()) { - clear_pattern(); - set_has_patch(); - pattern_.patch_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.pattern_.patch_.InitDefault(); } - pattern_.patch_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.patch) + _impl_.pattern_.patch_.Set(value, GetArenaForAllocation()); } inline std::string* HttpRule::_internal_mutable_patch() { if (!_internal_has_patch()) { clear_pattern(); set_has_patch(); - pattern_.patch_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.pattern_.patch_.InitDefault(); } - return pattern_.patch_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return _impl_.pattern_.patch_.Mutable( GetArenaForAllocation()); } inline std::string* HttpRule::release_patch() { // @@protoc_insertion_point(field_release:google.api.HttpRule.patch) if (_internal_has_patch()) { clear_has_pattern(); - return pattern_.patch_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + return _impl_.pattern_.patch_.Release(); } else { return nullptr; } @@ -1650,33 +1259,10 @@ inline void HttpRule::set_allocated_patch(std::string* patch) { } if (patch != nullptr) { set_has_patch(); - pattern_.patch_.UnsafeSetDefault(patch); + _impl_.pattern_.patch_.InitAllocated(patch, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.patch) } -inline std::string* HttpRule::unsafe_arena_release_patch() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.patch) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (_internal_has_patch()) { - clear_has_pattern(); - return pattern_.patch_.UnsafeArenaRelease( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - } else { - return nullptr; - } -} -inline void HttpRule::unsafe_arena_set_allocated_patch(std::string* patch) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (!_internal_has_patch()) { - pattern_.patch_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - } - clear_pattern(); - if (patch) { - set_has_patch(); - pattern_.patch_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), patch, GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.patch) -} // .google.api.CustomHttpPattern custom = 8; inline bool HttpRule::_internal_has_custom() const { @@ -1686,12 +1272,12 @@ inline bool HttpRule::has_custom() const { return _internal_has_custom(); } inline void HttpRule::set_has_custom() { - _oneof_case_[0] = kCustom; + _impl_._oneof_case_[0] = kCustom; } inline void HttpRule::clear_custom() { if (_internal_has_custom()) { - if (GetArenaNoVirtual() == nullptr) { - delete pattern_.custom_; + if (GetArenaForAllocation() == nullptr) { + delete _impl_.pattern_.custom_; } clear_has_pattern(); } @@ -1700,11 +1286,11 @@ inline ::google::api::CustomHttpPattern* HttpRule::release_custom() { // @@protoc_insertion_point(field_release:google.api.HttpRule.custom) if (_internal_has_custom()) { clear_has_pattern(); - ::google::api::CustomHttpPattern* temp = pattern_.custom_; - if (GetArenaNoVirtual() != nullptr) { + ::google::api::CustomHttpPattern* temp = _impl_.pattern_.custom_; + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - pattern_.custom_ = nullptr; + _impl_.pattern_.custom_ = nullptr; return temp; } else { return nullptr; @@ -1712,8 +1298,8 @@ inline ::google::api::CustomHttpPattern* HttpRule::release_custom() { } inline const ::google::api::CustomHttpPattern& HttpRule::_internal_custom() const { return _internal_has_custom() - ? *pattern_.custom_ - : *reinterpret_cast< ::google::api::CustomHttpPattern*>(&::google::api::_CustomHttpPattern_default_instance_); + ? *_impl_.pattern_.custom_ + : reinterpret_cast< ::google::api::CustomHttpPattern&>(::google::api::_CustomHttpPattern_default_instance_); } inline const ::google::api::CustomHttpPattern& HttpRule::custom() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.custom) @@ -1723,8 +1309,8 @@ inline ::google::api::CustomHttpPattern* HttpRule::unsafe_arena_release_custom() // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.custom) if (_internal_has_custom()) { clear_has_pattern(); - ::google::api::CustomHttpPattern* temp = pattern_.custom_; - pattern_.custom_ = nullptr; + ::google::api::CustomHttpPattern* temp = _impl_.pattern_.custom_; + _impl_.pattern_.custom_ = nullptr; return temp; } else { return nullptr; @@ -1734,7 +1320,7 @@ inline void HttpRule::unsafe_arena_set_allocated_custom(::google::api::CustomHtt clear_pattern(); if (custom) { set_has_custom(); - pattern_.custom_ = custom; + _impl_.pattern_.custom_ = custom; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.custom) } @@ -1742,67 +1328,50 @@ inline ::google::api::CustomHttpPattern* HttpRule::_internal_mutable_custom() { if (!_internal_has_custom()) { clear_pattern(); set_has_custom(); - pattern_.custom_ = CreateMaybeMessage< ::google::api::CustomHttpPattern >( - GetArenaNoVirtual()); + _impl_.pattern_.custom_ = CreateMaybeMessage< ::google::api::CustomHttpPattern >(GetArenaForAllocation()); } - return pattern_.custom_; + return _impl_.pattern_.custom_; } inline ::google::api::CustomHttpPattern* HttpRule::mutable_custom() { + ::google::api::CustomHttpPattern* _msg = _internal_mutable_custom(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.custom) - return _internal_mutable_custom(); + return _msg; } // string body = 7; inline void HttpRule::clear_body() { - body_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + _impl_.body_.ClearToEmpty(); } inline const std::string& HttpRule::body() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.body) return _internal_body(); } -inline void HttpRule::set_body(const std::string& value) { - _internal_set_body(value); +template +inline PROTOBUF_ALWAYS_INLINE +void HttpRule::set_body(ArgT0&& arg0, ArgT... args) { + + _impl_.body_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.HttpRule.body) } inline std::string* HttpRule::mutable_body() { + std::string* _s = _internal_mutable_body(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.body) - return _internal_mutable_body(); + return _s; } inline const std::string& HttpRule::_internal_body() const { - return body_.Get(); + return _impl_.body_.Get(); } inline void HttpRule::_internal_set_body(const std::string& value) { - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); -} -inline void HttpRule::set_body(std::string&& value) { - - body_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.body) -} -inline void HttpRule::set_body(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:google.api.HttpRule.body) -} -inline void HttpRule::set_body(const char* value, - size_t size) { - - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.body) + _impl_.body_.Set(value, GetArenaForAllocation()); } inline std::string* HttpRule::_internal_mutable_body() { - return body_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return _impl_.body_.Mutable(GetArenaForAllocation()); } inline std::string* HttpRule::release_body() { // @@protoc_insertion_point(field_release:google.api.HttpRule.body) - - return body_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return _impl_.body_.Release(); } inline void HttpRule::set_allocated_body(std::string* body) { if (body != nullptr) { @@ -1810,81 +1379,49 @@ inline void HttpRule::set_allocated_body(std::string* body) { } else { } - body_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), body, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.body) -} -inline std::string* HttpRule::unsafe_arena_release_body() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.body) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - - return body_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HttpRule::unsafe_arena_set_allocated_body( - std::string* body) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (body != nullptr) { - - } else { - + _impl_.body_.SetAllocated(body, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.body_.IsDefault()) { + _impl_.body_.Set("", GetArenaForAllocation()); } - body_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - body, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.body) +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.body) } // string response_body = 12; inline void HttpRule::clear_response_body() { - response_body_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + _impl_.response_body_.ClearToEmpty(); } inline const std::string& HttpRule::response_body() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.response_body) return _internal_response_body(); } -inline void HttpRule::set_response_body(const std::string& value) { - _internal_set_response_body(value); +template +inline PROTOBUF_ALWAYS_INLINE +void HttpRule::set_response_body(ArgT0&& arg0, ArgT... args) { + + _impl_.response_body_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.HttpRule.response_body) } inline std::string* HttpRule::mutable_response_body() { + std::string* _s = _internal_mutable_response_body(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.response_body) - return _internal_mutable_response_body(); + return _s; } inline const std::string& HttpRule::_internal_response_body() const { - return response_body_.Get(); + return _impl_.response_body_.Get(); } inline void HttpRule::_internal_set_response_body(const std::string& value) { - response_body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); -} -inline void HttpRule::set_response_body(std::string&& value) { - - response_body_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.response_body) -} -inline void HttpRule::set_response_body(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - response_body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:google.api.HttpRule.response_body) -} -inline void HttpRule::set_response_body(const char* value, - size_t size) { - - response_body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.response_body) + _impl_.response_body_.Set(value, GetArenaForAllocation()); } inline std::string* HttpRule::_internal_mutable_response_body() { - return response_body_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return _impl_.response_body_.Mutable(GetArenaForAllocation()); } inline std::string* HttpRule::release_response_body() { // @@protoc_insertion_point(field_release:google.api.HttpRule.response_body) - - return response_body_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return _impl_.response_body_.Release(); } inline void HttpRule::set_allocated_response_body(std::string* response_body) { if (response_body != nullptr) { @@ -1892,77 +1429,63 @@ inline void HttpRule::set_allocated_response_body(std::string* response_body) { } else { } - response_body_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), response_body, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.response_body) -} -inline std::string* HttpRule::unsafe_arena_release_response_body() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.response_body) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - - return response_body_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HttpRule::unsafe_arena_set_allocated_response_body( - std::string* response_body) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (response_body != nullptr) { - - } else { - + _impl_.response_body_.SetAllocated(response_body, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.response_body_.IsDefault()) { + _impl_.response_body_.Set("", GetArenaForAllocation()); } - response_body_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - response_body, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.response_body) +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.response_body) } // repeated .google.api.HttpRule additional_bindings = 11; inline int HttpRule::_internal_additional_bindings_size() const { - return additional_bindings_.size(); + return _impl_.additional_bindings_.size(); } inline int HttpRule::additional_bindings_size() const { return _internal_additional_bindings_size(); } inline void HttpRule::clear_additional_bindings() { - additional_bindings_.Clear(); + _impl_.additional_bindings_.Clear(); } inline ::google::api::HttpRule* HttpRule::mutable_additional_bindings(int index) { // @@protoc_insertion_point(field_mutable:google.api.HttpRule.additional_bindings) - return additional_bindings_.Mutable(index); + return _impl_.additional_bindings_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >* HttpRule::mutable_additional_bindings() { // @@protoc_insertion_point(field_mutable_list:google.api.HttpRule.additional_bindings) - return &additional_bindings_; + return &_impl_.additional_bindings_; } inline const ::google::api::HttpRule& HttpRule::_internal_additional_bindings(int index) const { - return additional_bindings_.Get(index); + return _impl_.additional_bindings_.Get(index); } inline const ::google::api::HttpRule& HttpRule::additional_bindings(int index) const { // @@protoc_insertion_point(field_get:google.api.HttpRule.additional_bindings) return _internal_additional_bindings(index); } inline ::google::api::HttpRule* HttpRule::_internal_add_additional_bindings() { - return additional_bindings_.Add(); + return _impl_.additional_bindings_.Add(); } inline ::google::api::HttpRule* HttpRule::add_additional_bindings() { + ::google::api::HttpRule* _add = _internal_add_additional_bindings(); // @@protoc_insertion_point(field_add:google.api.HttpRule.additional_bindings) - return _internal_add_additional_bindings(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >& HttpRule::additional_bindings() const { // @@protoc_insertion_point(field_list:google.api.HttpRule.additional_bindings) - return additional_bindings_; + return _impl_.additional_bindings_; } inline bool HttpRule::has_pattern() const { return pattern_case() != PATTERN_NOT_SET; } inline void HttpRule::clear_has_pattern() { - _oneof_case_[0] = PATTERN_NOT_SET; + _impl_._oneof_case_[0] = PATTERN_NOT_SET; } inline HttpRule::PatternCase HttpRule::pattern_case() const { - return HttpRule::PatternCase(_oneof_case_[0]); + return HttpRule::PatternCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -1970,55 +1493,38 @@ inline HttpRule::PatternCase HttpRule::pattern_case() const { // string kind = 1; inline void CustomHttpPattern::clear_kind() { - kind_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + _impl_.kind_.ClearToEmpty(); } inline const std::string& CustomHttpPattern::kind() const { // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.kind) return _internal_kind(); } -inline void CustomHttpPattern::set_kind(const std::string& value) { - _internal_set_kind(value); +template +inline PROTOBUF_ALWAYS_INLINE +void CustomHttpPattern::set_kind(ArgT0&& arg0, ArgT... args) { + + _impl_.kind_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.kind) } inline std::string* CustomHttpPattern::mutable_kind() { + std::string* _s = _internal_mutable_kind(); // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.kind) - return _internal_mutable_kind(); + return _s; } inline const std::string& CustomHttpPattern::_internal_kind() const { - return kind_.Get(); + return _impl_.kind_.Get(); } inline void CustomHttpPattern::_internal_set_kind(const std::string& value) { - kind_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); -} -inline void CustomHttpPattern::set_kind(std::string&& value) { - - kind_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:google.api.CustomHttpPattern.kind) -} -inline void CustomHttpPattern::set_kind(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - kind_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:google.api.CustomHttpPattern.kind) -} -inline void CustomHttpPattern::set_kind(const char* value, - size_t size) { - - kind_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:google.api.CustomHttpPattern.kind) + _impl_.kind_.Set(value, GetArenaForAllocation()); } inline std::string* CustomHttpPattern::_internal_mutable_kind() { - return kind_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return _impl_.kind_.Mutable(GetArenaForAllocation()); } inline std::string* CustomHttpPattern::release_kind() { // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.kind) - - return kind_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return _impl_.kind_.Release(); } inline void CustomHttpPattern::set_allocated_kind(std::string* kind) { if (kind != nullptr) { @@ -2026,81 +1532,49 @@ inline void CustomHttpPattern::set_allocated_kind(std::string* kind) { } else { } - kind_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), kind, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.kind) -} -inline std::string* CustomHttpPattern::unsafe_arena_release_kind() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.CustomHttpPattern.kind) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - - return kind_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void CustomHttpPattern::unsafe_arena_set_allocated_kind( - std::string* kind) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (kind != nullptr) { - - } else { - + _impl_.kind_.SetAllocated(kind, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.kind_.IsDefault()) { + _impl_.kind_.Set("", GetArenaForAllocation()); } - kind_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - kind, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.CustomHttpPattern.kind) +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.kind) } // string path = 2; inline void CustomHttpPattern::clear_path() { - path_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + _impl_.path_.ClearToEmpty(); } inline const std::string& CustomHttpPattern::path() const { // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.path) return _internal_path(); } -inline void CustomHttpPattern::set_path(const std::string& value) { - _internal_set_path(value); +template +inline PROTOBUF_ALWAYS_INLINE +void CustomHttpPattern::set_path(ArgT0&& arg0, ArgT... args) { + + _impl_.path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.path) } inline std::string* CustomHttpPattern::mutable_path() { + std::string* _s = _internal_mutable_path(); // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.path) - return _internal_mutable_path(); + return _s; } inline const std::string& CustomHttpPattern::_internal_path() const { - return path_.Get(); + return _impl_.path_.Get(); } inline void CustomHttpPattern::_internal_set_path(const std::string& value) { - path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); -} -inline void CustomHttpPattern::set_path(std::string&& value) { - - path_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:google.api.CustomHttpPattern.path) -} -inline void CustomHttpPattern::set_path(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:google.api.CustomHttpPattern.path) -} -inline void CustomHttpPattern::set_path(const char* value, - size_t size) { - - path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:google.api.CustomHttpPattern.path) + _impl_.path_.Set(value, GetArenaForAllocation()); } inline std::string* CustomHttpPattern::_internal_mutable_path() { - return path_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return _impl_.path_.Mutable(GetArenaForAllocation()); } inline std::string* CustomHttpPattern::release_path() { // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.path) - - return path_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + return _impl_.path_.Release(); } inline void CustomHttpPattern::set_allocated_path(std::string* path) { if (path != nullptr) { @@ -2108,28 +1582,13 @@ inline void CustomHttpPattern::set_allocated_path(std::string* path) { } else { } - path_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), path, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.path) -} -inline std::string* CustomHttpPattern::unsafe_arena_release_path() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.api.CustomHttpPattern.path) - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - - return path_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void CustomHttpPattern::unsafe_arena_set_allocated_path( - std::string* path) { - GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); - if (path != nullptr) { - - } else { - + _impl_.path_.SetAllocated(path, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.path_.IsDefault()) { + _impl_.path_.Set("", GetArenaForAllocation()); } - path_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - path, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.CustomHttpPattern.path) +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.path) } #ifdef __GNUC__ diff --git a/proto/clarifai/api/resources.grpc.pb.cc b/proto/clarifai/api/resources.grpc.pb.cc index 8482b12..080cec2 100644 --- a/proto/clarifai/api/resources.grpc.pb.cc +++ b/proto/clarifai/api/resources.grpc.pb.cc @@ -6,19 +6,19 @@ #include "proto/clarifai/api/resources.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include +#include +#include +#include namespace clarifai { namespace api { diff --git a/proto/clarifai/api/resources.grpc.pb.h b/proto/clarifai/api/resources.grpc.pb.h index ffde690..e7b7d81 100644 --- a/proto/clarifai/api/resources.grpc.pb.h +++ b/proto/clarifai/api/resources.grpc.pb.h @@ -7,24 +7,23 @@ #include "proto/clarifai/api/resources.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include +#include +#include #include -#include -#include +#include +#include #include -#include -#include +#include +#include namespace clarifai { namespace api { diff --git a/proto/clarifai/api/resources.pb.cc b/proto/clarifai/api/resources.pb.cc index 260de5e..7218ce2 100644 --- a/proto/clarifai/api/resources.pb.cc +++ b/proto/clarifai/api/resources.pb.cc @@ -14,51250 +14,77450 @@ #include // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_APIPostModelOutputsCollectorSource_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AiAssistParameters_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<13> scc_info_And_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<14> scc_info_Annotation_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_App_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AppDuplicationFilters_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Audio_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AudioInfo_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_BinaryMetrics_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_BoundingBox_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectorSource_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Color_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Concept_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ConceptTypeCount_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ConfusionMatrix_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ConfusionMatrixEntry_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CooccurrenceMatrix_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CooccurrenceMatrixEntry_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DatasetVersionMetrics_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DetailConceptCount_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EmailAddress_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Embedding_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<8> scc_info_EvalMetrics_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_EvalTestSetEntry_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Filter_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FrameInfo_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_Geo_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GeoBoxedPoint_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GeoLimit_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GeoPoint_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_HostedURL_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Image_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ImageInfo_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ImportInfo_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_InputInfo_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LOPQEvalResult_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LabelCount_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LabelDistribution_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LossCurveEntry_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Mask_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MetricsSummary_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_ModelTypeEnumOption_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ModelTypeEnumOptionAlias_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ModelTypeRangeInfo_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_NodeInput_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_OutputConfig_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_OutputInfo_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Point_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Polygon_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PrecisionRecallCurve_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ROC_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Rank_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_RegionInfo_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_StatValueAggregate_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_StatValueAggregateQuery_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<8> scc_info_Task_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TaskAIAssistant_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TaskInputSource_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_TaskReview_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TaskReviewConsensusStrategyInfo_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TaskReviewManualStrategyInfo_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TaskWorker_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TaskWorkerPartitionedStrategyInfo_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Text_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TextInfo_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TimeInfo_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TimeRange_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TrackerMetrics_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TrainInfo_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_User_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_UserDetail_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Video_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VideoInfo_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Visibility_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_W3C_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_WorkflowNode_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fresources_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_WorkflowVersion_proto_2fclarifai_2fapi_2fresources_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proto_2fclarifai_2fapi_2fstatus_2fstatus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Status_proto_2fclarifai_2fapi_2fstatus_2fstatus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; -namespace clarifai { -namespace api { -class AnnotationDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Annotation_default_instance_; -class AppDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _App_default_instance_; -class AppQueryDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _AppQuery_default_instance_; -class CollaboratorDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Collaborator_default_instance_; -class CollaborationDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Collaboration_default_instance_; -class AudioDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed