|
|
|
@ -1506,26 +1506,26 @@ FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from) |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_name()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
name_.Set(from._internal_name(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
package_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
package_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_package()) { |
|
|
|
|
package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_package(),
|
|
|
|
|
package_.Set(from._internal_package(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
syntax_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
syntax_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
syntax_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_syntax()) { |
|
|
|
|
syntax_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_syntax(),
|
|
|
|
|
syntax_.Set(from._internal_syntax(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_options()) { |
|
|
|
@ -1544,15 +1544,15 @@ FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from) |
|
|
|
|
inline void FileDescriptorProto::SharedCtor() { |
|
|
|
|
name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
package_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
package_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
syntax_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
syntax_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
syntax_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
|
|
|
|
reinterpret_cast<char*>(&options_) - reinterpret_cast<char*>(this)), |
|
|
|
@ -1571,9 +1571,9 @@ FileDescriptorProto::~FileDescriptorProto() { |
|
|
|
|
|
|
|
|
|
inline void FileDescriptorProto::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
package_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
syntax_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
name_.Destroy(); |
|
|
|
|
package_.Destroy(); |
|
|
|
|
syntax_.Destroy(); |
|
|
|
|
if (this != internal_default_instance()) delete options_; |
|
|
|
|
if (this != internal_default_instance()) delete source_code_info_; |
|
|
|
|
} |
|
|
|
@ -2102,17 +2102,14 @@ void FileDescriptorProto::InternalSwap(FileDescriptorProto* other) { |
|
|
|
|
public_dependency_.InternalSwap(&other->public_dependency_); |
|
|
|
|
weak_dependency_.InternalSwap(&other->weak_dependency_); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&name_, lhs_arena, |
|
|
|
|
&other->name_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&package_, lhs_arena, |
|
|
|
|
&other->package_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&syntax_, lhs_arena, |
|
|
|
|
&other->syntax_, rhs_arena |
|
|
|
|
); |
|
|
|
@ -2682,10 +2679,10 @@ DescriptorProto::DescriptorProto(const DescriptorProto& from) |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_name()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
name_.Set(from._internal_name(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_options()) { |
|
|
|
@ -2699,7 +2696,7 @@ DescriptorProto::DescriptorProto(const DescriptorProto& from) |
|
|
|
|
inline void DescriptorProto::SharedCtor() { |
|
|
|
|
name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
options_ = nullptr; |
|
|
|
|
} |
|
|
|
@ -2715,7 +2712,7 @@ DescriptorProto::~DescriptorProto() { |
|
|
|
|
|
|
|
|
|
inline void DescriptorProto::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
name_.Destroy(); |
|
|
|
|
if (this != internal_default_instance()) delete options_; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -3173,7 +3170,6 @@ void DescriptorProto::InternalSwap(DescriptorProto* other) { |
|
|
|
|
reserved_range_.InternalSwap(&other->reserved_range_); |
|
|
|
|
reserved_name_.InternalSwap(&other->reserved_name_); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&name_, lhs_arena, |
|
|
|
|
&other->name_, rhs_arena |
|
|
|
|
); |
|
|
|
@ -3443,42 +3439,42 @@ FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from) |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_name()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
name_.Set(from._internal_name(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
extendee_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
extendee_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
extendee_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_extendee()) { |
|
|
|
|
extendee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_extendee(),
|
|
|
|
|
extendee_.Set(from._internal_extendee(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
type_name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
type_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
type_name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_type_name()) { |
|
|
|
|
type_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type_name(),
|
|
|
|
|
type_name_.Set(from._internal_type_name(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
default_value_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
default_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
default_value_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_default_value()) { |
|
|
|
|
default_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_default_value(),
|
|
|
|
|
default_value_.Set(from._internal_default_value(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
json_name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
json_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
json_name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_json_name()) { |
|
|
|
|
json_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_json_name(),
|
|
|
|
|
json_name_.Set(from._internal_json_name(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_options()) { |
|
|
|
@ -3495,23 +3491,23 @@ FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from) |
|
|
|
|
inline void FieldDescriptorProto::SharedCtor() { |
|
|
|
|
name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
extendee_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
extendee_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
extendee_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
type_name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
type_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
type_name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
default_value_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
default_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
default_value_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
json_name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
json_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
json_name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
|
|
|
|
reinterpret_cast<char*>(&options_) - reinterpret_cast<char*>(this)), |
|
|
|
@ -3532,11 +3528,11 @@ FieldDescriptorProto::~FieldDescriptorProto() { |
|
|
|
|
|
|
|
|
|
inline void FieldDescriptorProto::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
extendee_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
type_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
default_value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
json_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
name_.Destroy(); |
|
|
|
|
extendee_.Destroy(); |
|
|
|
|
type_name_.Destroy(); |
|
|
|
|
default_value_.Destroy(); |
|
|
|
|
json_name_.Destroy(); |
|
|
|
|
if (this != internal_default_instance()) delete options_; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -4010,27 +4006,22 @@ void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) { |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&name_, lhs_arena, |
|
|
|
|
&other->name_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&extendee_, lhs_arena, |
|
|
|
|
&other->extendee_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&type_name_, lhs_arena, |
|
|
|
|
&other->type_name_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&default_value_, lhs_arena, |
|
|
|
|
&other->default_value_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&json_name_, lhs_arena, |
|
|
|
|
&other->json_name_, rhs_arena |
|
|
|
|
); |
|
|
|
@ -4080,10 +4071,10 @@ OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from) |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_name()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
name_.Set(from._internal_name(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_options()) { |
|
|
|
@ -4097,7 +4088,7 @@ OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from) |
|
|
|
|
inline void OneofDescriptorProto::SharedCtor() { |
|
|
|
|
name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
options_ = nullptr; |
|
|
|
|
} |
|
|
|
@ -4113,7 +4104,7 @@ OneofDescriptorProto::~OneofDescriptorProto() { |
|
|
|
|
|
|
|
|
|
inline void OneofDescriptorProto::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
name_.Destroy(); |
|
|
|
|
if (this != internal_default_instance()) delete options_; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -4304,7 +4295,6 @@ void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) { |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&name_, lhs_arena, |
|
|
|
|
&other->name_, rhs_arena |
|
|
|
|
); |
|
|
|
@ -4583,10 +4573,10 @@ EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from) |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_name()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
name_.Set(from._internal_name(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_options()) { |
|
|
|
@ -4600,7 +4590,7 @@ EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from) |
|
|
|
|
inline void EnumDescriptorProto::SharedCtor() { |
|
|
|
|
name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
options_ = nullptr; |
|
|
|
|
} |
|
|
|
@ -4616,7 +4606,7 @@ EnumDescriptorProto::~EnumDescriptorProto() { |
|
|
|
|
|
|
|
|
|
inline void EnumDescriptorProto::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
name_.Destroy(); |
|
|
|
|
if (this != internal_default_instance()) delete options_; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -4909,7 +4899,6 @@ void EnumDescriptorProto::InternalSwap(EnumDescriptorProto* other) { |
|
|
|
|
reserved_range_.InternalSwap(&other->reserved_range_); |
|
|
|
|
reserved_name_.InternalSwap(&other->reserved_name_); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&name_, lhs_arena, |
|
|
|
|
&other->name_, rhs_arena |
|
|
|
|
); |
|
|
|
@ -4955,10 +4944,10 @@ EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProt |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_name()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
name_.Set(from._internal_name(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_options()) { |
|
|
|
@ -4973,7 +4962,7 @@ EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProt |
|
|
|
|
inline void EnumValueDescriptorProto::SharedCtor() { |
|
|
|
|
name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
|
|
|
|
reinterpret_cast<char*>(&options_) - reinterpret_cast<char*>(this)), |
|
|
|
@ -4992,7 +4981,7 @@ EnumValueDescriptorProto::~EnumValueDescriptorProto() { |
|
|
|
|
|
|
|
|
|
inline void EnumValueDescriptorProto::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
name_.Destroy(); |
|
|
|
|
if (this != internal_default_instance()) delete options_; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -5208,7 +5197,6 @@ void EnumValueDescriptorProto::InternalSwap(EnumValueDescriptorProto* other) { |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&name_, lhs_arena, |
|
|
|
|
&other->name_, rhs_arena |
|
|
|
|
); |
|
|
|
@ -5258,10 +5246,10 @@ ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& fro |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_name()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
name_.Set(from._internal_name(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_options()) { |
|
|
|
@ -5275,7 +5263,7 @@ ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& fro |
|
|
|
|
inline void ServiceDescriptorProto::SharedCtor() { |
|
|
|
|
name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
options_ = nullptr; |
|
|
|
|
} |
|
|
|
@ -5291,7 +5279,7 @@ ServiceDescriptorProto::~ServiceDescriptorProto() { |
|
|
|
|
|
|
|
|
|
inline void ServiceDescriptorProto::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
name_.Destroy(); |
|
|
|
|
if (this != internal_default_instance()) delete options_; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -5515,7 +5503,6 @@ void ServiceDescriptorProto::InternalSwap(ServiceDescriptorProto* other) { |
|
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]); |
|
|
|
|
method_.InternalSwap(&other->method_); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&name_, lhs_arena, |
|
|
|
|
&other->name_, rhs_arena |
|
|
|
|
); |
|
|
|
@ -5570,26 +5557,26 @@ MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from) |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_name()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
name_.Set(from._internal_name(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
input_type_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
input_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
input_type_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_input_type()) { |
|
|
|
|
input_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_input_type(),
|
|
|
|
|
input_type_.Set(from._internal_input_type(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
output_type_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
output_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
output_type_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_output_type()) { |
|
|
|
|
output_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_output_type(),
|
|
|
|
|
output_type_.Set(from._internal_output_type(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_options()) { |
|
|
|
@ -5606,15 +5593,15 @@ MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from) |
|
|
|
|
inline void MethodDescriptorProto::SharedCtor() { |
|
|
|
|
name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
input_type_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
input_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
input_type_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
output_type_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
output_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
output_type_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
|
|
|
|
reinterpret_cast<char*>(&options_) - reinterpret_cast<char*>(this)), |
|
|
|
@ -5633,9 +5620,9 @@ MethodDescriptorProto::~MethodDescriptorProto() { |
|
|
|
|
|
|
|
|
|
inline void MethodDescriptorProto::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
input_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
output_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
name_.Destroy(); |
|
|
|
|
input_type_.Destroy(); |
|
|
|
|
output_type_.Destroy(); |
|
|
|
|
if (this != internal_default_instance()) delete options_; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -5946,17 +5933,14 @@ void MethodDescriptorProto::InternalSwap(MethodDescriptorProto* other) { |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&name_, lhs_arena, |
|
|
|
|
&other->name_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&input_type_, lhs_arena, |
|
|
|
|
&other->input_type_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&output_type_, lhs_arena, |
|
|
|
|
&other->output_type_, rhs_arena |
|
|
|
|
); |
|
|
|
@ -6057,82 +6041,82 @@ FileOptions::FileOptions(const FileOptions& from) |
|
|
|
|
_extensions_.MergeFrom(internal_default_instance(), from._extensions_); |
|
|
|
|
java_package_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
java_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
java_package_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_java_package()) { |
|
|
|
|
java_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_java_package(),
|
|
|
|
|
java_package_.Set(from._internal_java_package(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
java_outer_classname_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
java_outer_classname_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
java_outer_classname_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_java_outer_classname()) { |
|
|
|
|
java_outer_classname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_java_outer_classname(),
|
|
|
|
|
java_outer_classname_.Set(from._internal_java_outer_classname(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
go_package_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
go_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
go_package_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_go_package()) { |
|
|
|
|
go_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_go_package(),
|
|
|
|
|
go_package_.Set(from._internal_go_package(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
objc_class_prefix_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
objc_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
objc_class_prefix_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_objc_class_prefix()) { |
|
|
|
|
objc_class_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_objc_class_prefix(),
|
|
|
|
|
objc_class_prefix_.Set(from._internal_objc_class_prefix(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
csharp_namespace_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
csharp_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
csharp_namespace_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_csharp_namespace()) { |
|
|
|
|
csharp_namespace_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_csharp_namespace(),
|
|
|
|
|
csharp_namespace_.Set(from._internal_csharp_namespace(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
swift_prefix_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
swift_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
swift_prefix_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_swift_prefix()) { |
|
|
|
|
swift_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_swift_prefix(),
|
|
|
|
|
swift_prefix_.Set(from._internal_swift_prefix(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
php_class_prefix_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
php_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
php_class_prefix_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_php_class_prefix()) { |
|
|
|
|
php_class_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_php_class_prefix(),
|
|
|
|
|
php_class_prefix_.Set(from._internal_php_class_prefix(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
php_namespace_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
php_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
php_namespace_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_php_namespace()) { |
|
|
|
|
php_namespace_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_php_namespace(),
|
|
|
|
|
php_namespace_.Set(from._internal_php_namespace(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
php_metadata_namespace_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
php_metadata_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
php_metadata_namespace_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_php_metadata_namespace()) { |
|
|
|
|
php_metadata_namespace_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_php_metadata_namespace(),
|
|
|
|
|
php_metadata_namespace_.Set(from._internal_php_metadata_namespace(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
ruby_package_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
ruby_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
ruby_package_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_ruby_package()) { |
|
|
|
|
ruby_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ruby_package(),
|
|
|
|
|
ruby_package_.Set(from._internal_ruby_package(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
::memcpy(&java_multiple_files_, &from.java_multiple_files_, |
|
|
|
@ -6144,43 +6128,43 @@ FileOptions::FileOptions(const FileOptions& from) |
|
|
|
|
inline void FileOptions::SharedCtor() { |
|
|
|
|
java_package_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
java_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
java_package_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
java_outer_classname_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
java_outer_classname_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
java_outer_classname_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
go_package_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
go_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
go_package_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
objc_class_prefix_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
objc_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
objc_class_prefix_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
csharp_namespace_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
csharp_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
csharp_namespace_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
swift_prefix_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
swift_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
swift_prefix_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
php_class_prefix_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
php_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
php_class_prefix_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
php_namespace_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
php_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
php_namespace_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
php_metadata_namespace_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
php_metadata_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
php_metadata_namespace_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
ruby_package_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
ruby_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
ruby_package_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
|
|
|
|
reinterpret_cast<char*>(&java_multiple_files_) - reinterpret_cast<char*>(this)), |
|
|
|
@ -6201,16 +6185,16 @@ FileOptions::~FileOptions() { |
|
|
|
|
|
|
|
|
|
inline void FileOptions::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
java_package_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
java_outer_classname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
go_package_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
objc_class_prefix_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
csharp_namespace_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
swift_prefix_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
php_class_prefix_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
php_namespace_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
php_metadata_namespace_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
ruby_package_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
java_package_.Destroy(); |
|
|
|
|
java_outer_classname_.Destroy(); |
|
|
|
|
go_package_.Destroy(); |
|
|
|
|
objc_class_prefix_.Destroy(); |
|
|
|
|
csharp_namespace_.Destroy(); |
|
|
|
|
swift_prefix_.Destroy(); |
|
|
|
|
php_class_prefix_.Destroy(); |
|
|
|
|
php_namespace_.Destroy(); |
|
|
|
|
php_metadata_namespace_.Destroy(); |
|
|
|
|
ruby_package_.Destroy(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void FileOptions::SetCachedSize(int size) const { |
|
|
|
@ -6994,52 +6978,42 @@ void FileOptions::InternalSwap(FileOptions* other) { |
|
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]); |
|
|
|
|
uninterpreted_option_.InternalSwap(&other->uninterpreted_option_); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&java_package_, lhs_arena, |
|
|
|
|
&other->java_package_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&java_outer_classname_, lhs_arena, |
|
|
|
|
&other->java_outer_classname_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&go_package_, lhs_arena, |
|
|
|
|
&other->go_package_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&objc_class_prefix_, lhs_arena, |
|
|
|
|
&other->objc_class_prefix_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&csharp_namespace_, lhs_arena, |
|
|
|
|
&other->csharp_namespace_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&swift_prefix_, lhs_arena, |
|
|
|
|
&other->swift_prefix_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&php_class_prefix_, lhs_arena, |
|
|
|
|
&other->php_class_prefix_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&php_namespace_, lhs_arena, |
|
|
|
|
&other->php_namespace_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&php_metadata_namespace_, lhs_arena, |
|
|
|
|
&other->php_metadata_namespace_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&ruby_package_, lhs_arena, |
|
|
|
|
&other->ruby_package_, rhs_arena |
|
|
|
|
); |
|
|
|
@ -9097,10 +9071,10 @@ UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOp |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
name_part_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_part_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
name_part_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_name_part()) { |
|
|
|
|
name_part_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name_part(),
|
|
|
|
|
name_part_.Set(from._internal_name_part(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
is_extension_ = from.is_extension_; |
|
|
|
@ -9110,7 +9084,7 @@ UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOp |
|
|
|
|
inline void UninterpretedOption_NamePart::SharedCtor() { |
|
|
|
|
name_part_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_part_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
name_part_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
is_extension_ = false; |
|
|
|
|
} |
|
|
|
@ -9126,7 +9100,7 @@ UninterpretedOption_NamePart::~UninterpretedOption_NamePart() { |
|
|
|
|
|
|
|
|
|
inline void UninterpretedOption_NamePart::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
name_part_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
name_part_.Destroy(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void UninterpretedOption_NamePart::SetCachedSize(int size) const { |
|
|
|
@ -9323,7 +9297,6 @@ void UninterpretedOption_NamePart::InternalSwap(UninterpretedOption_NamePart* ot |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&name_part_, lhs_arena, |
|
|
|
|
&other->name_part_, rhs_arena |
|
|
|
|
); |
|
|
|
@ -9375,26 +9348,26 @@ UninterpretedOption::UninterpretedOption(const UninterpretedOption& from) |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
identifier_value_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
identifier_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
identifier_value_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_identifier_value()) { |
|
|
|
|
identifier_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_identifier_value(),
|
|
|
|
|
identifier_value_.Set(from._internal_identifier_value(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
string_value_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
string_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
string_value_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_string_value()) { |
|
|
|
|
string_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_string_value(),
|
|
|
|
|
string_value_.Set(from._internal_string_value(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
aggregate_value_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
aggregate_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
aggregate_value_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_aggregate_value()) { |
|
|
|
|
aggregate_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_aggregate_value(),
|
|
|
|
|
aggregate_value_.Set(from._internal_aggregate_value(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
::memcpy(&positive_int_value_, &from.positive_int_value_, |
|
|
|
@ -9406,15 +9379,15 @@ UninterpretedOption::UninterpretedOption(const UninterpretedOption& from) |
|
|
|
|
inline void UninterpretedOption::SharedCtor() { |
|
|
|
|
identifier_value_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
identifier_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
identifier_value_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
string_value_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
string_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
string_value_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
aggregate_value_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
aggregate_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
aggregate_value_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
|
|
|
|
reinterpret_cast<char*>(&positive_int_value_) - reinterpret_cast<char*>(this)), |
|
|
|
@ -9433,9 +9406,9 @@ UninterpretedOption::~UninterpretedOption() { |
|
|
|
|
|
|
|
|
|
inline void UninterpretedOption::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
identifier_value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
string_value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
aggregate_value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
identifier_value_.Destroy(); |
|
|
|
|
string_value_.Destroy(); |
|
|
|
|
aggregate_value_.Destroy(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void UninterpretedOption::SetCachedSize(int size) const { |
|
|
|
@ -9764,17 +9737,14 @@ void UninterpretedOption::InternalSwap(UninterpretedOption* other) { |
|
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]); |
|
|
|
|
name_.InternalSwap(&other->name_); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&identifier_value_, lhs_arena, |
|
|
|
|
&other->identifier_value_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&string_value_, lhs_arena, |
|
|
|
|
&other->string_value_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&aggregate_value_, lhs_arena, |
|
|
|
|
&other->aggregate_value_, rhs_arena |
|
|
|
|
); |
|
|
|
@ -9823,18 +9793,18 @@ SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
leading_comments_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
leading_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
leading_comments_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_leading_comments()) { |
|
|
|
|
leading_comments_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_leading_comments(),
|
|
|
|
|
leading_comments_.Set(from._internal_leading_comments(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
trailing_comments_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
trailing_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
trailing_comments_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_trailing_comments()) { |
|
|
|
|
trailing_comments_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_trailing_comments(),
|
|
|
|
|
trailing_comments_.Set(from._internal_trailing_comments(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
// @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Location)
|
|
|
|
@ -9843,11 +9813,11 @@ SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& |
|
|
|
|
inline void SourceCodeInfo_Location::SharedCtor() { |
|
|
|
|
leading_comments_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
leading_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
leading_comments_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
trailing_comments_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
trailing_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
trailing_comments_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -9862,8 +9832,8 @@ SourceCodeInfo_Location::~SourceCodeInfo_Location() { |
|
|
|
|
|
|
|
|
|
inline void SourceCodeInfo_Location::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
leading_comments_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
trailing_comments_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
leading_comments_.Destroy(); |
|
|
|
|
trailing_comments_.Destroy(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void SourceCodeInfo_Location::SetCachedSize(int size) const { |
|
|
|
@ -10168,12 +10138,10 @@ void SourceCodeInfo_Location::InternalSwap(SourceCodeInfo_Location* other) { |
|
|
|
|
span_.InternalSwap(&other->span_); |
|
|
|
|
leading_detached_comments_.InternalSwap(&other->leading_detached_comments_); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&leading_comments_, lhs_arena, |
|
|
|
|
&other->leading_comments_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&trailing_comments_, lhs_arena, |
|
|
|
|
&other->trailing_comments_, rhs_arena |
|
|
|
|
); |
|
|
|
@ -10393,10 +10361,10 @@ GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeIn |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
source_file_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
source_file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
source_file_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (from._internal_has_source_file()) { |
|
|
|
|
source_file_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_source_file(),
|
|
|
|
|
source_file_.Set(from._internal_source_file(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
::memcpy(&begin_, &from.begin_, |
|
|
|
@ -10408,7 +10376,7 @@ GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeIn |
|
|
|
|
inline void GeneratedCodeInfo_Annotation::SharedCtor() { |
|
|
|
|
source_file_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
source_file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
source_file_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
|
|
|
|
reinterpret_cast<char*>(&begin_) - reinterpret_cast<char*>(this)), |
|
|
|
@ -10427,7 +10395,7 @@ GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() { |
|
|
|
|
|
|
|
|
|
inline void GeneratedCodeInfo_Annotation::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
source_file_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
source_file_.Destroy(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void GeneratedCodeInfo_Annotation::SetCachedSize(int size) const { |
|
|
|
@ -10672,7 +10640,6 @@ void GeneratedCodeInfo_Annotation::InternalSwap(GeneratedCodeInfo_Annotation* ot |
|
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]); |
|
|
|
|
path_.InternalSwap(&other->path_); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&source_file_, lhs_arena, |
|
|
|
|
&other->source_file_, rhs_arena |
|
|
|
|
); |
|
|
|
|