|
|
|
@ -29,13 +29,13 @@ namespace protobuf { |
|
|
|
|
|
|
|
|
|
inline constexpr Mixin::Impl_::Impl_( |
|
|
|
|
::_pbi::ConstantInitialized) noexcept |
|
|
|
|
: name_( |
|
|
|
|
: _cached_size_{0}, |
|
|
|
|
name_( |
|
|
|
|
&::google::protobuf::internal::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized()), |
|
|
|
|
root_( |
|
|
|
|
&::google::protobuf::internal::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized()), |
|
|
|
|
_cached_size_{0} {} |
|
|
|
|
::_pbi::ConstantInitialized()) {} |
|
|
|
|
|
|
|
|
|
template <typename> |
|
|
|
|
PROTOBUF_CONSTEXPR Mixin::Mixin(::_pbi::ConstantInitialized) |
|
|
|
@ -59,7 +59,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT |
|
|
|
|
|
|
|
|
|
inline constexpr Method::Impl_::Impl_( |
|
|
|
|
::_pbi::ConstantInitialized) noexcept |
|
|
|
|
: options_{}, |
|
|
|
|
: _cached_size_{0}, |
|
|
|
|
options_{}, |
|
|
|
|
name_( |
|
|
|
|
&::google::protobuf::internal::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized()), |
|
|
|
@ -71,8 +72,7 @@ inline constexpr Method::Impl_::Impl_( |
|
|
|
|
::_pbi::ConstantInitialized()), |
|
|
|
|
request_streaming_{false}, |
|
|
|
|
response_streaming_{false}, |
|
|
|
|
syntax_{static_cast< ::google::protobuf::Syntax >(0)}, |
|
|
|
|
_cached_size_{0} {} |
|
|
|
|
syntax_{static_cast< ::google::protobuf::Syntax >(0)} {} |
|
|
|
|
|
|
|
|
|
template <typename> |
|
|
|
|
PROTOBUF_CONSTEXPR Method::Method(::_pbi::ConstantInitialized) |
|
|
|
@ -152,14 +152,14 @@ const ::uint32_t |
|
|
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.source_context_), |
|
|
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.mixins_), |
|
|
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.syntax_), |
|
|
|
|
~0u, |
|
|
|
|
~0u, |
|
|
|
|
~0u, |
|
|
|
|
~0u, |
|
|
|
|
0, |
|
|
|
|
~0u, |
|
|
|
|
~0u, |
|
|
|
|
~0u, // no _has_bits_
|
|
|
|
|
1, |
|
|
|
|
2, |
|
|
|
|
~0u, |
|
|
|
|
3, |
|
|
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Method, _impl_._has_bits_), |
|
|
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Method, _internal_metadata_), |
|
|
|
|
~0u, // no _extensions_
|
|
|
|
|
~0u, // no _oneof_case_
|
|
|
|
@ -174,7 +174,14 @@ const ::uint32_t |
|
|
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Method, _impl_.response_streaming_), |
|
|
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Method, _impl_.options_), |
|
|
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Method, _impl_.syntax_), |
|
|
|
|
~0u, // no _has_bits_
|
|
|
|
|
0, |
|
|
|
|
1, |
|
|
|
|
3, |
|
|
|
|
2, |
|
|
|
|
4, |
|
|
|
|
~0u, |
|
|
|
|
5, |
|
|
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Mixin, _impl_._has_bits_), |
|
|
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Mixin, _internal_metadata_), |
|
|
|
|
~0u, // no _extensions_
|
|
|
|
|
~0u, // no _oneof_case_
|
|
|
|
@ -184,13 +191,15 @@ const ::uint32_t |
|
|
|
|
~0u, // no sizeof(Split)
|
|
|
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Mixin, _impl_.name_), |
|
|
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Mixin, _impl_.root_), |
|
|
|
|
0, |
|
|
|
|
1, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
static const ::_pbi::MigrationSchema |
|
|
|
|
schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
|
|
|
|
{0, 15, -1, sizeof(::google::protobuf::Api)}, |
|
|
|
|
{22, -1, -1, sizeof(::google::protobuf::Method)}, |
|
|
|
|
{37, -1, -1, sizeof(::google::protobuf::Mixin)}, |
|
|
|
|
{22, 37, -1, sizeof(::google::protobuf::Method)}, |
|
|
|
|
{44, 54, -1, sizeof(::google::protobuf::Mixin)}, |
|
|
|
|
}; |
|
|
|
|
static const ::_pb::Message* const file_default_instances[] = { |
|
|
|
|
&::google::protobuf::_Api_default_instance_._instance, |
|
|
|
@ -260,7 +269,7 @@ void Api::clear_options() { |
|
|
|
|
void Api::clear_source_context() { |
|
|
|
|
::google::protobuf::internal::TSanWrite(&_impl_); |
|
|
|
|
if (_impl_.source_context_ != nullptr) _impl_.source_context_->Clear(); |
|
|
|
|
_impl_._has_bits_[0] &= ~0x00000001u; |
|
|
|
|
_impl_._has_bits_[0] &= ~0x00000004u; |
|
|
|
|
} |
|
|
|
|
Api::Api(::google::protobuf::Arena* arena) |
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE) |
|
|
|
@ -296,7 +305,7 @@ Api::Api( |
|
|
|
|
from._internal_metadata_); |
|
|
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
|
|
|
|
::uint32_t cached_has_bits = _impl_._has_bits_[0]; |
|
|
|
|
_impl_.source_context_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::SourceContext>( |
|
|
|
|
_impl_.source_context_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::SourceContext>( |
|
|
|
|
arena, *from._impl_.source_context_) |
|
|
|
|
: nullptr; |
|
|
|
|
_impl_.syntax_ = from._impl_.syntax_; |
|
|
|
@ -419,7 +428,7 @@ const ::_pbi::TcParseTable<3, 7, 4, 39, 2> Api::_table_ = { |
|
|
|
|
{::_pbi::TcParser::MiniParse, {}}, |
|
|
|
|
// string name = 1;
|
|
|
|
|
{::_pbi::TcParser::FastUS1, |
|
|
|
|
{10, 63, 0, PROTOBUF_FIELD_OFFSET(Api, _impl_.name_)}}, |
|
|
|
|
{10, 0, 0, PROTOBUF_FIELD_OFFSET(Api, _impl_.name_)}}, |
|
|
|
|
// repeated .google.protobuf.Method methods = 2;
|
|
|
|
|
{::_pbi::TcParser::FastMtR1, |
|
|
|
|
{18, 63, 0, PROTOBUF_FIELD_OFFSET(Api, _impl_.methods_)}}, |
|
|
|
@ -428,22 +437,22 @@ const ::_pbi::TcParseTable<3, 7, 4, 39, 2> Api::_table_ = { |
|
|
|
|
{26, 63, 1, PROTOBUF_FIELD_OFFSET(Api, _impl_.options_)}}, |
|
|
|
|
// string version = 4;
|
|
|
|
|
{::_pbi::TcParser::FastUS1, |
|
|
|
|
{34, 63, 0, PROTOBUF_FIELD_OFFSET(Api, _impl_.version_)}}, |
|
|
|
|
{34, 1, 0, PROTOBUF_FIELD_OFFSET(Api, _impl_.version_)}}, |
|
|
|
|
// .google.protobuf.SourceContext source_context = 5;
|
|
|
|
|
{::_pbi::TcParser::FastMtS1, |
|
|
|
|
{42, 0, 2, PROTOBUF_FIELD_OFFSET(Api, _impl_.source_context_)}}, |
|
|
|
|
{42, 2, 2, PROTOBUF_FIELD_OFFSET(Api, _impl_.source_context_)}}, |
|
|
|
|
// repeated .google.protobuf.Mixin mixins = 6;
|
|
|
|
|
{::_pbi::TcParser::FastMtR1, |
|
|
|
|
{50, 63, 3, PROTOBUF_FIELD_OFFSET(Api, _impl_.mixins_)}}, |
|
|
|
|
// .google.protobuf.Syntax syntax = 7;
|
|
|
|
|
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Api, _impl_.syntax_), 63>(), |
|
|
|
|
{56, 63, 0, PROTOBUF_FIELD_OFFSET(Api, _impl_.syntax_)}}, |
|
|
|
|
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Api, _impl_.syntax_), 3>(), |
|
|
|
|
{56, 3, 0, PROTOBUF_FIELD_OFFSET(Api, _impl_.syntax_)}}, |
|
|
|
|
}}, {{ |
|
|
|
|
65535, 65535 |
|
|
|
|
}}, {{ |
|
|
|
|
// string name = 1;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Api, _impl_.name_), -1, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Api, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, |
|
|
|
|
(0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
// repeated .google.protobuf.Method methods = 2;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Api, _impl_.methods_), -1, 0, |
|
|
|
|
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
|
|
|
@ -451,17 +460,17 @@ const ::_pbi::TcParseTable<3, 7, 4, 39, 2> Api::_table_ = { |
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Api, _impl_.options_), -1, 1, |
|
|
|
|
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
|
|
|
|
// string version = 4;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Api, _impl_.version_), -1, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Api, _impl_.version_), _Internal::kHasBitsOffset + 1, 0, |
|
|
|
|
(0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
// .google.protobuf.SourceContext source_context = 5;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Api, _impl_.source_context_), _Internal::kHasBitsOffset + 0, 2, |
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Api, _impl_.source_context_), _Internal::kHasBitsOffset + 2, 2, |
|
|
|
|
(0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
|
|
|
|
// repeated .google.protobuf.Mixin mixins = 6;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Api, _impl_.mixins_), -1, 3, |
|
|
|
|
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
|
|
|
|
// .google.protobuf.Syntax syntax = 7;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Api, _impl_.syntax_), -1, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Api, _impl_.syntax_), _Internal::kHasBitsOffset + 3, 0, |
|
|
|
|
(0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, |
|
|
|
|
}}, {{ |
|
|
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::Method>()}, |
|
|
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::Option>()}, |
|
|
|
@ -485,12 +494,18 @@ PROTOBUF_NOINLINE void Api::Clear() { |
|
|
|
|
_impl_.methods_.Clear(); |
|
|
|
|
_impl_.options_.Clear(); |
|
|
|
|
_impl_.mixins_.Clear(); |
|
|
|
|
_impl_.name_.ClearToEmpty(); |
|
|
|
|
_impl_.version_.ClearToEmpty(); |
|
|
|
|
cached_has_bits = _impl_._has_bits_[0]; |
|
|
|
|
if (cached_has_bits & 0x00000001u) { |
|
|
|
|
ABSL_DCHECK(_impl_.source_context_ != nullptr); |
|
|
|
|
_impl_.source_context_->Clear(); |
|
|
|
|
if (cached_has_bits & 0x00000007u) { |
|
|
|
|
if (cached_has_bits & 0x00000001u) { |
|
|
|
|
_impl_.name_.ClearToEmpty(); |
|
|
|
|
} |
|
|
|
|
if (cached_has_bits & 0x00000002u) { |
|
|
|
|
_impl_.version_.ClearToEmpty(); |
|
|
|
|
} |
|
|
|
|
if (cached_has_bits & 0x00000004u) { |
|
|
|
|
ABSL_DCHECK(_impl_.source_context_ != nullptr); |
|
|
|
|
_impl_.source_context_->Clear(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
_impl_.syntax_ = 0; |
|
|
|
|
_impl_._has_bits_.Clear(); |
|
|
|
@ -513,11 +528,13 @@ PROTOBUF_NOINLINE void Api::Clear() { |
|
|
|
|
(void)cached_has_bits; |
|
|
|
|
|
|
|
|
|
// string name = 1;
|
|
|
|
|
if (!this_._internal_name().empty()) { |
|
|
|
|
const std::string& _s = this_._internal_name(); |
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Api.name"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(1, _s, target); |
|
|
|
|
if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { |
|
|
|
|
if (!this_._internal_name().empty()) { |
|
|
|
|
const std::string& _s = this_._internal_name(); |
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Api.name"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(1, _s, target); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// repeated .google.protobuf.Method methods = 2;
|
|
|
|
@ -543,16 +560,18 @@ PROTOBUF_NOINLINE void Api::Clear() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// string version = 4;
|
|
|
|
|
if (!this_._internal_version().empty()) { |
|
|
|
|
const std::string& _s = this_._internal_version(); |
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Api.version"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(4, _s, target); |
|
|
|
|
if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { |
|
|
|
|
if (!this_._internal_version().empty()) { |
|
|
|
|
const std::string& _s = this_._internal_version(); |
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Api.version"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(4, _s, target); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0]; |
|
|
|
|
// .google.protobuf.SourceContext source_context = 5;
|
|
|
|
|
if (cached_has_bits & 0x00000001u) { |
|
|
|
|
if (cached_has_bits & 0x00000004u) { |
|
|
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
|
|
|
|
5, *this_._impl_.source_context_, this_._impl_.source_context_->GetCachedSize(), target, |
|
|
|
|
stream); |
|
|
|
@ -570,10 +589,12 @@ PROTOBUF_NOINLINE void Api::Clear() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// .google.protobuf.Syntax syntax = 7;
|
|
|
|
|
if (this_._internal_syntax() != 0) { |
|
|
|
|
target = stream->EnsureSpace(target); |
|
|
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray( |
|
|
|
|
7, this_._internal_syntax(), target); |
|
|
|
|
if (cached_has_bits & 0x00000008u) { |
|
|
|
|
if (this_._internal_syntax() != 0) { |
|
|
|
|
target = stream->EnsureSpace(target); |
|
|
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray( |
|
|
|
|
7, this_._internal_syntax(), target); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
|
|
|
@ -623,31 +644,33 @@ PROTOBUF_NOINLINE void Api::Clear() { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
{ |
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0]; |
|
|
|
|
if (cached_has_bits & 0x0000000fu) { |
|
|
|
|
// string name = 1;
|
|
|
|
|
if (!this_._internal_name().empty()) { |
|
|
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( |
|
|
|
|
this_._internal_name()); |
|
|
|
|
if (cached_has_bits & 0x00000001u) { |
|
|
|
|
if (!this_._internal_name().empty()) { |
|
|
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( |
|
|
|
|
this_._internal_name()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// string version = 4;
|
|
|
|
|
if (!this_._internal_version().empty()) { |
|
|
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( |
|
|
|
|
this_._internal_version()); |
|
|
|
|
if (cached_has_bits & 0x00000002u) { |
|
|
|
|
if (!this_._internal_version().empty()) { |
|
|
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( |
|
|
|
|
this_._internal_version()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
{ |
|
|
|
|
// .google.protobuf.SourceContext source_context = 5;
|
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0]; |
|
|
|
|
if (cached_has_bits & 0x00000001u) { |
|
|
|
|
if (cached_has_bits & 0x00000004u) { |
|
|
|
|
total_size += 1 + |
|
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.source_context_); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
{ |
|
|
|
|
// .google.protobuf.Syntax syntax = 7;
|
|
|
|
|
if (this_._internal_syntax() != 0) { |
|
|
|
|
total_size += 1 + |
|
|
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_syntax()); |
|
|
|
|
if (cached_has_bits & 0x00000008u) { |
|
|
|
|
if (this_._internal_syntax() != 0) { |
|
|
|
|
total_size += 1 + |
|
|
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_syntax()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return this_.MaybeComputeUnknownFieldsSize(total_size, |
|
|
|
@ -669,24 +692,32 @@ void Api::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::pro |
|
|
|
|
from._internal_options()); |
|
|
|
|
_this->_internal_mutable_mixins()->MergeFrom( |
|
|
|
|
from._internal_mixins()); |
|
|
|
|
if (!from._internal_name().empty()) { |
|
|
|
|
_this->_internal_set_name(from._internal_name()); |
|
|
|
|
} |
|
|
|
|
if (!from._internal_version().empty()) { |
|
|
|
|
_this->_internal_set_version(from._internal_version()); |
|
|
|
|
} |
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0]; |
|
|
|
|
if (cached_has_bits & 0x00000001u) { |
|
|
|
|
ABSL_DCHECK(from._impl_.source_context_ != nullptr); |
|
|
|
|
if (_this->_impl_.source_context_ == nullptr) { |
|
|
|
|
_this->_impl_.source_context_ = |
|
|
|
|
::google::protobuf::Message::CopyConstruct<::google::protobuf::SourceContext>(arena, *from._impl_.source_context_); |
|
|
|
|
} else { |
|
|
|
|
_this->_impl_.source_context_->MergeFrom(*from._impl_.source_context_); |
|
|
|
|
if (cached_has_bits & 0x0000000fu) { |
|
|
|
|
if (cached_has_bits & 0x00000001u) { |
|
|
|
|
if (!from._internal_name().empty()) { |
|
|
|
|
_this->_internal_set_name(from._internal_name()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (cached_has_bits & 0x00000002u) { |
|
|
|
|
if (!from._internal_version().empty()) { |
|
|
|
|
_this->_internal_set_version(from._internal_version()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (cached_has_bits & 0x00000004u) { |
|
|
|
|
ABSL_DCHECK(from._impl_.source_context_ != nullptr); |
|
|
|
|
if (_this->_impl_.source_context_ == nullptr) { |
|
|
|
|
_this->_impl_.source_context_ = |
|
|
|
|
::google::protobuf::Message::CopyConstruct<::google::protobuf::SourceContext>(arena, *from._impl_.source_context_); |
|
|
|
|
} else { |
|
|
|
|
_this->_impl_.source_context_->MergeFrom(*from._impl_.source_context_); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (cached_has_bits & 0x00000008u) { |
|
|
|
|
if (from._internal_syntax() != 0) { |
|
|
|
|
_this->_impl_.syntax_ = from._impl_.syntax_; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (from._internal_syntax() != 0) { |
|
|
|
|
_this->_impl_.syntax_ = from._impl_.syntax_; |
|
|
|
|
} |
|
|
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits; |
|
|
|
|
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
@ -726,6 +757,10 @@ void Api::InternalSwap(Api* PROTOBUF_RESTRICT other) { |
|
|
|
|
|
|
|
|
|
class Method::_Internal { |
|
|
|
|
public: |
|
|
|
|
using HasBits = |
|
|
|
|
decltype(std::declval<Method>()._impl_._has_bits_); |
|
|
|
|
static constexpr ::int32_t kHasBitsOffset = |
|
|
|
|
8 * PROTOBUF_FIELD_OFFSET(Method, _impl_._has_bits_); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
void Method::clear_options() { |
|
|
|
@ -744,11 +779,12 @@ Method::Method(::google::protobuf::Arena* arena) |
|
|
|
|
inline PROTOBUF_NDEBUG_INLINE Method::Impl_::Impl_( |
|
|
|
|
::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
|
|
|
|
const Impl_& from, const ::google::protobuf::Method& from_msg) |
|
|
|
|
: options_{visibility, arena, from.options_}, |
|
|
|
|
: _has_bits_{from._has_bits_}, |
|
|
|
|
_cached_size_{0}, |
|
|
|
|
options_{visibility, arena, from.options_}, |
|
|
|
|
name_(arena, from.name_), |
|
|
|
|
request_type_url_(arena, from.request_type_url_), |
|
|
|
|
response_type_url_(arena, from.response_type_url_), |
|
|
|
|
_cached_size_{0} {} |
|
|
|
|
response_type_url_(arena, from.response_type_url_) {} |
|
|
|
|
|
|
|
|
|
Method::Method( |
|
|
|
|
::google::protobuf::Arena* arena, |
|
|
|
@ -776,11 +812,11 @@ Method::Method( |
|
|
|
|
inline PROTOBUF_NDEBUG_INLINE Method::Impl_::Impl_( |
|
|
|
|
::google::protobuf::internal::InternalVisibility visibility, |
|
|
|
|
::google::protobuf::Arena* arena) |
|
|
|
|
: options_{visibility, arena}, |
|
|
|
|
: _cached_size_{0}, |
|
|
|
|
options_{visibility, arena}, |
|
|
|
|
name_(arena), |
|
|
|
|
request_type_url_(arena), |
|
|
|
|
response_type_url_(arena), |
|
|
|
|
_cached_size_{0} {} |
|
|
|
|
response_type_url_(arena) {} |
|
|
|
|
|
|
|
|
|
inline void Method::SharedCtor(::_pb::Arena* arena) { |
|
|
|
|
new (&_impl_) Impl_(internal_visibility(), arena); |
|
|
|
@ -861,7 +897,7 @@ const ::google::protobuf::internal::ClassData* Method::GetClassData() const { |
|
|
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
|
|
|
|
const ::_pbi::TcParseTable<3, 7, 1, 68, 2> Method::_table_ = { |
|
|
|
|
{ |
|
|
|
|
0, // no _has_bits_
|
|
|
|
|
PROTOBUF_FIELD_OFFSET(Method, _impl_._has_bits_), |
|
|
|
|
0, // no _extensions_
|
|
|
|
|
7, 56, // max_field_number, fast_idx_mask
|
|
|
|
|
offsetof(decltype(_table_), field_lookup_table), |
|
|
|
@ -880,49 +916,49 @@ const ::_pbi::TcParseTable<3, 7, 1, 68, 2> Method::_table_ = { |
|
|
|
|
{::_pbi::TcParser::MiniParse, {}}, |
|
|
|
|
// string name = 1;
|
|
|
|
|
{::_pbi::TcParser::FastUS1, |
|
|
|
|
{10, 63, 0, PROTOBUF_FIELD_OFFSET(Method, _impl_.name_)}}, |
|
|
|
|
{10, 0, 0, PROTOBUF_FIELD_OFFSET(Method, _impl_.name_)}}, |
|
|
|
|
// string request_type_url = 2;
|
|
|
|
|
{::_pbi::TcParser::FastUS1, |
|
|
|
|
{18, 63, 0, PROTOBUF_FIELD_OFFSET(Method, _impl_.request_type_url_)}}, |
|
|
|
|
{18, 1, 0, PROTOBUF_FIELD_OFFSET(Method, _impl_.request_type_url_)}}, |
|
|
|
|
// bool request_streaming = 3;
|
|
|
|
|
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(Method, _impl_.request_streaming_), 63>(), |
|
|
|
|
{24, 63, 0, PROTOBUF_FIELD_OFFSET(Method, _impl_.request_streaming_)}}, |
|
|
|
|
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(Method, _impl_.request_streaming_), 3>(), |
|
|
|
|
{24, 3, 0, PROTOBUF_FIELD_OFFSET(Method, _impl_.request_streaming_)}}, |
|
|
|
|
// string response_type_url = 4;
|
|
|
|
|
{::_pbi::TcParser::FastUS1, |
|
|
|
|
{34, 63, 0, PROTOBUF_FIELD_OFFSET(Method, _impl_.response_type_url_)}}, |
|
|
|
|
{34, 2, 0, PROTOBUF_FIELD_OFFSET(Method, _impl_.response_type_url_)}}, |
|
|
|
|
// bool response_streaming = 5;
|
|
|
|
|
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(Method, _impl_.response_streaming_), 63>(), |
|
|
|
|
{40, 63, 0, PROTOBUF_FIELD_OFFSET(Method, _impl_.response_streaming_)}}, |
|
|
|
|
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(Method, _impl_.response_streaming_), 4>(), |
|
|
|
|
{40, 4, 0, PROTOBUF_FIELD_OFFSET(Method, _impl_.response_streaming_)}}, |
|
|
|
|
// repeated .google.protobuf.Option options = 6;
|
|
|
|
|
{::_pbi::TcParser::FastMtR1, |
|
|
|
|
{50, 63, 0, PROTOBUF_FIELD_OFFSET(Method, _impl_.options_)}}, |
|
|
|
|
// .google.protobuf.Syntax syntax = 7;
|
|
|
|
|
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Method, _impl_.syntax_), 63>(), |
|
|
|
|
{56, 63, 0, PROTOBUF_FIELD_OFFSET(Method, _impl_.syntax_)}}, |
|
|
|
|
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Method, _impl_.syntax_), 5>(), |
|
|
|
|
{56, 5, 0, PROTOBUF_FIELD_OFFSET(Method, _impl_.syntax_)}}, |
|
|
|
|
}}, {{ |
|
|
|
|
65535, 65535 |
|
|
|
|
}}, {{ |
|
|
|
|
// string name = 1;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Method, _impl_.name_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Method, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, |
|
|
|
|
(0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
// string request_type_url = 2;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Method, _impl_.request_type_url_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Method, _impl_.request_type_url_), _Internal::kHasBitsOffset + 1, 0, |
|
|
|
|
(0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
// bool request_streaming = 3;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Method, _impl_.request_streaming_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Method, _impl_.request_streaming_), _Internal::kHasBitsOffset + 3, 0, |
|
|
|
|
(0 | ::_fl::kFcOptional | ::_fl::kBool)}, |
|
|
|
|
// string response_type_url = 4;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Method, _impl_.response_type_url_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Method, _impl_.response_type_url_), _Internal::kHasBitsOffset + 2, 0, |
|
|
|
|
(0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
// bool response_streaming = 5;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Method, _impl_.response_streaming_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Method, _impl_.response_streaming_), _Internal::kHasBitsOffset + 4, 0, |
|
|
|
|
(0 | ::_fl::kFcOptional | ::_fl::kBool)}, |
|
|
|
|
// repeated .google.protobuf.Option options = 6;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Method, _impl_.options_), 0, 0, |
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Method, _impl_.options_), -1, 0, |
|
|
|
|
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
|
|
|
|
// .google.protobuf.Syntax syntax = 7;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Method, _impl_.syntax_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Method, _impl_.syntax_), _Internal::kHasBitsOffset + 5, 0, |
|
|
|
|
(0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, |
|
|
|
|
}}, {{ |
|
|
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::Option>()}, |
|
|
|
|
}}, {{ |
|
|
|
@ -942,12 +978,24 @@ PROTOBUF_NOINLINE void Method::Clear() { |
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
_impl_.options_.Clear(); |
|
|
|
|
_impl_.name_.ClearToEmpty(); |
|
|
|
|
_impl_.request_type_url_.ClearToEmpty(); |
|
|
|
|
_impl_.response_type_url_.ClearToEmpty(); |
|
|
|
|
::memset(&_impl_.request_streaming_, 0, static_cast<::size_t>( |
|
|
|
|
reinterpret_cast<char*>(&_impl_.syntax_) - |
|
|
|
|
reinterpret_cast<char*>(&_impl_.request_streaming_)) + sizeof(_impl_.syntax_)); |
|
|
|
|
cached_has_bits = _impl_._has_bits_[0]; |
|
|
|
|
if (cached_has_bits & 0x00000007u) { |
|
|
|
|
if (cached_has_bits & 0x00000001u) { |
|
|
|
|
_impl_.name_.ClearToEmpty(); |
|
|
|
|
} |
|
|
|
|
if (cached_has_bits & 0x00000002u) { |
|
|
|
|
_impl_.request_type_url_.ClearToEmpty(); |
|
|
|
|
} |
|
|
|
|
if (cached_has_bits & 0x00000004u) { |
|
|
|
|
_impl_.response_type_url_.ClearToEmpty(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (cached_has_bits & 0x00000038u) { |
|
|
|
|
::memset(&_impl_.request_streaming_, 0, static_cast<::size_t>( |
|
|
|
|
reinterpret_cast<char*>(&_impl_.syntax_) - |
|
|
|
|
reinterpret_cast<char*>(&_impl_.request_streaming_)) + sizeof(_impl_.syntax_)); |
|
|
|
|
} |
|
|
|
|
_impl_._has_bits_.Clear(); |
|
|
|
|
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -967,41 +1015,51 @@ PROTOBUF_NOINLINE void Method::Clear() { |
|
|
|
|
(void)cached_has_bits; |
|
|
|
|
|
|
|
|
|
// string name = 1;
|
|
|
|
|
if (!this_._internal_name().empty()) { |
|
|
|
|
const std::string& _s = this_._internal_name(); |
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Method.name"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(1, _s, target); |
|
|
|
|
if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { |
|
|
|
|
if (!this_._internal_name().empty()) { |
|
|
|
|
const std::string& _s = this_._internal_name(); |
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Method.name"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(1, _s, target); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// string request_type_url = 2;
|
|
|
|
|
if (!this_._internal_request_type_url().empty()) { |
|
|
|
|
const std::string& _s = this_._internal_request_type_url(); |
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Method.request_type_url"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(2, _s, target); |
|
|
|
|
if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { |
|
|
|
|
if (!this_._internal_request_type_url().empty()) { |
|
|
|
|
const std::string& _s = this_._internal_request_type_url(); |
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Method.request_type_url"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(2, _s, target); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// bool request_streaming = 3;
|
|
|
|
|
if (this_._internal_request_streaming() != 0) { |
|
|
|
|
target = stream->EnsureSpace(target); |
|
|
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray( |
|
|
|
|
3, this_._internal_request_streaming(), target); |
|
|
|
|
if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { |
|
|
|
|
if (this_._internal_request_streaming() != 0) { |
|
|
|
|
target = stream->EnsureSpace(target); |
|
|
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray( |
|
|
|
|
3, this_._internal_request_streaming(), target); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// string response_type_url = 4;
|
|
|
|
|
if (!this_._internal_response_type_url().empty()) { |
|
|
|
|
const std::string& _s = this_._internal_response_type_url(); |
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Method.response_type_url"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(4, _s, target); |
|
|
|
|
if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { |
|
|
|
|
if (!this_._internal_response_type_url().empty()) { |
|
|
|
|
const std::string& _s = this_._internal_response_type_url(); |
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Method.response_type_url"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(4, _s, target); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// bool response_streaming = 5;
|
|
|
|
|
if (this_._internal_response_streaming() != 0) { |
|
|
|
|
target = stream->EnsureSpace(target); |
|
|
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray( |
|
|
|
|
5, this_._internal_response_streaming(), target); |
|
|
|
|
if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { |
|
|
|
|
if (this_._internal_response_streaming() != 0) { |
|
|
|
|
target = stream->EnsureSpace(target); |
|
|
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray( |
|
|
|
|
5, this_._internal_response_streaming(), target); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// repeated .google.protobuf.Option options = 6;
|
|
|
|
@ -1016,10 +1074,12 @@ PROTOBUF_NOINLINE void Method::Clear() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// .google.protobuf.Syntax syntax = 7;
|
|
|
|
|
if (this_._internal_syntax() != 0) { |
|
|
|
|
target = stream->EnsureSpace(target); |
|
|
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray( |
|
|
|
|
7, this_._internal_syntax(), target); |
|
|
|
|
if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) { |
|
|
|
|
if (this_._internal_syntax() != 0) { |
|
|
|
|
target = stream->EnsureSpace(target); |
|
|
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray( |
|
|
|
|
7, this_._internal_syntax(), target); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
|
|
|
@ -1055,34 +1115,47 @@ PROTOBUF_NOINLINE void Method::Clear() { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
{ |
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0]; |
|
|
|
|
if (cached_has_bits & 0x0000003fu) { |
|
|
|
|
// string name = 1;
|
|
|
|
|
if (!this_._internal_name().empty()) { |
|
|
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( |
|
|
|
|
this_._internal_name()); |
|
|
|
|
if (cached_has_bits & 0x00000001u) { |
|
|
|
|
if (!this_._internal_name().empty()) { |
|
|
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( |
|
|
|
|
this_._internal_name()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// string request_type_url = 2;
|
|
|
|
|
if (!this_._internal_request_type_url().empty()) { |
|
|
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( |
|
|
|
|
this_._internal_request_type_url()); |
|
|
|
|
if (cached_has_bits & 0x00000002u) { |
|
|
|
|
if (!this_._internal_request_type_url().empty()) { |
|
|
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( |
|
|
|
|
this_._internal_request_type_url()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// string response_type_url = 4;
|
|
|
|
|
if (!this_._internal_response_type_url().empty()) { |
|
|
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( |
|
|
|
|
this_._internal_response_type_url()); |
|
|
|
|
if (cached_has_bits & 0x00000004u) { |
|
|
|
|
if (!this_._internal_response_type_url().empty()) { |
|
|
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( |
|
|
|
|
this_._internal_response_type_url()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// bool request_streaming = 3;
|
|
|
|
|
if (this_._internal_request_streaming() != 0) { |
|
|
|
|
total_size += 2; |
|
|
|
|
if (cached_has_bits & 0x00000008u) { |
|
|
|
|
if (this_._internal_request_streaming() != 0) { |
|
|
|
|
total_size += 2; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// bool response_streaming = 5;
|
|
|
|
|
if (this_._internal_response_streaming() != 0) { |
|
|
|
|
total_size += 2; |
|
|
|
|
if (cached_has_bits & 0x00000010u) { |
|
|
|
|
if (this_._internal_response_streaming() != 0) { |
|
|
|
|
total_size += 2; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// .google.protobuf.Syntax syntax = 7;
|
|
|
|
|
if (this_._internal_syntax() != 0) { |
|
|
|
|
total_size += 1 + |
|
|
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_syntax()); |
|
|
|
|
if (cached_has_bits & 0x00000020u) { |
|
|
|
|
if (this_._internal_syntax() != 0) { |
|
|
|
|
total_size += 1 + |
|
|
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_syntax()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return this_.MaybeComputeUnknownFieldsSize(total_size, |
|
|
|
@ -1099,24 +1172,40 @@ void Method::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google:: |
|
|
|
|
|
|
|
|
|
_this->_internal_mutable_options()->MergeFrom( |
|
|
|
|
from._internal_options()); |
|
|
|
|
if (!from._internal_name().empty()) { |
|
|
|
|
_this->_internal_set_name(from._internal_name()); |
|
|
|
|
} |
|
|
|
|
if (!from._internal_request_type_url().empty()) { |
|
|
|
|
_this->_internal_set_request_type_url(from._internal_request_type_url()); |
|
|
|
|
} |
|
|
|
|
if (!from._internal_response_type_url().empty()) { |
|
|
|
|
_this->_internal_set_response_type_url(from._internal_response_type_url()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_request_streaming() != 0) { |
|
|
|
|
_this->_impl_.request_streaming_ = from._impl_.request_streaming_; |
|
|
|
|
} |
|
|
|
|
if (from._internal_response_streaming() != 0) { |
|
|
|
|
_this->_impl_.response_streaming_ = from._impl_.response_streaming_; |
|
|
|
|
} |
|
|
|
|
if (from._internal_syntax() != 0) { |
|
|
|
|
_this->_impl_.syntax_ = from._impl_.syntax_; |
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0]; |
|
|
|
|
if (cached_has_bits & 0x0000003fu) { |
|
|
|
|
if (cached_has_bits & 0x00000001u) { |
|
|
|
|
if (!from._internal_name().empty()) { |
|
|
|
|
_this->_internal_set_name(from._internal_name()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (cached_has_bits & 0x00000002u) { |
|
|
|
|
if (!from._internal_request_type_url().empty()) { |
|
|
|
|
_this->_internal_set_request_type_url(from._internal_request_type_url()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (cached_has_bits & 0x00000004u) { |
|
|
|
|
if (!from._internal_response_type_url().empty()) { |
|
|
|
|
_this->_internal_set_response_type_url(from._internal_response_type_url()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (cached_has_bits & 0x00000008u) { |
|
|
|
|
if (from._internal_request_streaming() != 0) { |
|
|
|
|
_this->_impl_.request_streaming_ = from._impl_.request_streaming_; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (cached_has_bits & 0x00000010u) { |
|
|
|
|
if (from._internal_response_streaming() != 0) { |
|
|
|
|
_this->_impl_.response_streaming_ = from._impl_.response_streaming_; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (cached_has_bits & 0x00000020u) { |
|
|
|
|
if (from._internal_syntax() != 0) { |
|
|
|
|
_this->_impl_.syntax_ = from._impl_.syntax_; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits; |
|
|
|
|
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1133,6 +1222,7 @@ void Method::InternalSwap(Method* PROTOBUF_RESTRICT other) { |
|
|
|
|
auto* arena = GetArena(); |
|
|
|
|
ABSL_DCHECK_EQ(arena, other->GetArena()); |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
|
|
|
|
_impl_.options_.InternalSwap(&other->_impl_.options_); |
|
|
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); |
|
|
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.request_type_url_, &other->_impl_.request_type_url_, arena); |
|
|
|
@ -1152,6 +1242,10 @@ void Method::InternalSwap(Method* PROTOBUF_RESTRICT other) { |
|
|
|
|
|
|
|
|
|
class Mixin::_Internal { |
|
|
|
|
public: |
|
|
|
|
using HasBits = |
|
|
|
|
decltype(std::declval<Mixin>()._impl_._has_bits_); |
|
|
|
|
static constexpr ::int32_t kHasBitsOffset = |
|
|
|
|
8 * PROTOBUF_FIELD_OFFSET(Mixin, _impl_._has_bits_); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
Mixin::Mixin(::google::protobuf::Arena* arena) |
|
|
|
@ -1166,9 +1260,10 @@ Mixin::Mixin(::google::protobuf::Arena* arena) |
|
|
|
|
inline PROTOBUF_NDEBUG_INLINE Mixin::Impl_::Impl_( |
|
|
|
|
::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
|
|
|
|
const Impl_& from, const ::google::protobuf::Mixin& from_msg) |
|
|
|
|
: name_(arena, from.name_), |
|
|
|
|
root_(arena, from.root_), |
|
|
|
|
_cached_size_{0} {} |
|
|
|
|
: _has_bits_{from._has_bits_}, |
|
|
|
|
_cached_size_{0}, |
|
|
|
|
name_(arena, from.name_), |
|
|
|
|
root_(arena, from.root_) {} |
|
|
|
|
|
|
|
|
|
Mixin::Mixin( |
|
|
|
|
::google::protobuf::Arena* arena, |
|
|
|
@ -1189,9 +1284,9 @@ Mixin::Mixin( |
|
|
|
|
inline PROTOBUF_NDEBUG_INLINE Mixin::Impl_::Impl_( |
|
|
|
|
::google::protobuf::internal::InternalVisibility visibility, |
|
|
|
|
::google::protobuf::Arena* arena) |
|
|
|
|
: name_(arena), |
|
|
|
|
root_(arena), |
|
|
|
|
_cached_size_{0} {} |
|
|
|
|
: _cached_size_{0}, |
|
|
|
|
name_(arena), |
|
|
|
|
root_(arena) {} |
|
|
|
|
|
|
|
|
|
inline void Mixin::SharedCtor(::_pb::Arena* arena) { |
|
|
|
|
new (&_impl_) Impl_(internal_visibility(), arena); |
|
|
|
@ -1253,7 +1348,7 @@ const ::google::protobuf::internal::ClassData* Mixin::GetClassData() const { |
|
|
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
|
|
|
|
const ::_pbi::TcParseTable<1, 2, 0, 38, 2> Mixin::_table_ = { |
|
|
|
|
{ |
|
|
|
|
0, // no _has_bits_
|
|
|
|
|
PROTOBUF_FIELD_OFFSET(Mixin, _impl_._has_bits_), |
|
|
|
|
0, // no _extensions_
|
|
|
|
|
2, 8, // max_field_number, fast_idx_mask
|
|
|
|
|
offsetof(decltype(_table_), field_lookup_table), |
|
|
|
@ -1271,19 +1366,19 @@ const ::_pbi::TcParseTable<1, 2, 0, 38, 2> Mixin::_table_ = { |
|
|
|
|
}, {{ |
|
|
|
|
// string root = 2;
|
|
|
|
|
{::_pbi::TcParser::FastUS1, |
|
|
|
|
{18, 63, 0, PROTOBUF_FIELD_OFFSET(Mixin, _impl_.root_)}}, |
|
|
|
|
{18, 1, 0, PROTOBUF_FIELD_OFFSET(Mixin, _impl_.root_)}}, |
|
|
|
|
// string name = 1;
|
|
|
|
|
{::_pbi::TcParser::FastUS1, |
|
|
|
|
{10, 63, 0, PROTOBUF_FIELD_OFFSET(Mixin, _impl_.name_)}}, |
|
|
|
|
{10, 0, 0, PROTOBUF_FIELD_OFFSET(Mixin, _impl_.name_)}}, |
|
|
|
|
}}, {{ |
|
|
|
|
65535, 65535 |
|
|
|
|
}}, {{ |
|
|
|
|
// string name = 1;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Mixin, _impl_.name_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Mixin, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, |
|
|
|
|
(0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
// string root = 2;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Mixin, _impl_.root_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Mixin, _impl_.root_), _Internal::kHasBitsOffset + 1, 0, |
|
|
|
|
(0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
}}, |
|
|
|
|
// no aux_entries
|
|
|
|
|
{{ |
|
|
|
@ -1301,8 +1396,16 @@ PROTOBUF_NOINLINE void Mixin::Clear() { |
|
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
_impl_.name_.ClearToEmpty(); |
|
|
|
|
_impl_.root_.ClearToEmpty(); |
|
|
|
|
cached_has_bits = _impl_._has_bits_[0]; |
|
|
|
|
if (cached_has_bits & 0x00000003u) { |
|
|
|
|
if (cached_has_bits & 0x00000001u) { |
|
|
|
|
_impl_.name_.ClearToEmpty(); |
|
|
|
|
} |
|
|
|
|
if (cached_has_bits & 0x00000002u) { |
|
|
|
|
_impl_.root_.ClearToEmpty(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
_impl_._has_bits_.Clear(); |
|
|
|
|
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1322,19 +1425,23 @@ PROTOBUF_NOINLINE void Mixin::Clear() { |
|
|
|
|
(void)cached_has_bits; |
|
|
|
|
|
|
|
|
|
// string name = 1;
|
|
|
|
|
if (!this_._internal_name().empty()) { |
|
|
|
|
const std::string& _s = this_._internal_name(); |
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Mixin.name"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(1, _s, target); |
|
|
|
|
if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { |
|
|
|
|
if (!this_._internal_name().empty()) { |
|
|
|
|
const std::string& _s = this_._internal_name(); |
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Mixin.name"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(1, _s, target); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// string root = 2;
|
|
|
|
|
if (!this_._internal_root().empty()) { |
|
|
|
|
const std::string& _s = this_._internal_root(); |
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Mixin.root"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(2, _s, target); |
|
|
|
|
if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { |
|
|
|
|
if (!this_._internal_root().empty()) { |
|
|
|
|
const std::string& _s = this_._internal_root(); |
|
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Mixin.root"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(2, _s, target); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
|
|
|
@ -1361,16 +1468,21 @@ PROTOBUF_NOINLINE void Mixin::Clear() { |
|
|
|
|
(void)cached_has_bits; |
|
|
|
|
|
|
|
|
|
::_pbi::Prefetch5LinesFrom7Lines(&this_); |
|
|
|
|
{ |
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0]; |
|
|
|
|
if (cached_has_bits & 0x00000003u) { |
|
|
|
|
// string name = 1;
|
|
|
|
|
if (!this_._internal_name().empty()) { |
|
|
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( |
|
|
|
|
this_._internal_name()); |
|
|
|
|
if (cached_has_bits & 0x00000001u) { |
|
|
|
|
if (!this_._internal_name().empty()) { |
|
|
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( |
|
|
|
|
this_._internal_name()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// string root = 2;
|
|
|
|
|
if (!this_._internal_root().empty()) { |
|
|
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( |
|
|
|
|
this_._internal_root()); |
|
|
|
|
if (cached_has_bits & 0x00000002u) { |
|
|
|
|
if (!this_._internal_root().empty()) { |
|
|
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( |
|
|
|
|
this_._internal_root()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return this_.MaybeComputeUnknownFieldsSize(total_size, |
|
|
|
@ -1385,12 +1497,20 @@ void Mixin::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::p |
|
|
|
|
::uint32_t cached_has_bits = 0; |
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
if (!from._internal_name().empty()) { |
|
|
|
|
_this->_internal_set_name(from._internal_name()); |
|
|
|
|
} |
|
|
|
|
if (!from._internal_root().empty()) { |
|
|
|
|
_this->_internal_set_root(from._internal_root()); |
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0]; |
|
|
|
|
if (cached_has_bits & 0x00000003u) { |
|
|
|
|
if (cached_has_bits & 0x00000001u) { |
|
|
|
|
if (!from._internal_name().empty()) { |
|
|
|
|
_this->_internal_set_name(from._internal_name()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (cached_has_bits & 0x00000002u) { |
|
|
|
|
if (!from._internal_root().empty()) { |
|
|
|
|
_this->_internal_set_root(from._internal_root()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits; |
|
|
|
|
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1407,6 +1527,7 @@ void Mixin::InternalSwap(Mixin* PROTOBUF_RESTRICT other) { |
|
|
|
|
auto* arena = GetArena(); |
|
|
|
|
ABSL_DCHECK_EQ(arena, other->GetArena()); |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
|
|
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); |
|
|
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.root_, &other->_impl_.root_, arena); |
|
|
|
|
} |
|
|
|
|