|
|
|
@ -378,8 +378,8 @@ constexpr UninterpretedOption::UninterpretedOption( |
|
|
|
|
, identifier_value_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
|
|
|
|
, string_value_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
|
|
|
|
, aggregate_value_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
|
|
|
|
, positive_int_value_(PROTOBUF_ULONGLONG(0)) |
|
|
|
|
, negative_int_value_(PROTOBUF_LONGLONG(0)) |
|
|
|
|
, positive_int_value_(uint64_t{0u}) |
|
|
|
|
, negative_int_value_(int64_t{0}) |
|
|
|
|
, double_value_(0){} |
|
|
|
|
struct UninterpretedOptionDefaultTypeInternal { |
|
|
|
|
constexpr UninterpretedOptionDefaultTypeInternal() |
|
|
|
@ -1262,7 +1262,7 @@ FileDescriptorSet::~FileDescriptorSet() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void FileDescriptorSet::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void FileDescriptorSet::ArenaDtor(void* object) { |
|
|
|
@ -1487,17 +1487,17 @@ FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from) |
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_name()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
package_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_package()) { |
|
|
|
|
package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_package(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
syntax_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_syntax()) { |
|
|
|
|
syntax_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_syntax(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_options()) { |
|
|
|
|
options_ = new PROTOBUF_NAMESPACE_ID::FileOptions(*from.options_); |
|
|
|
@ -1529,7 +1529,7 @@ FileDescriptorProto::~FileDescriptorProto() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void FileDescriptorProto::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
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()); |
|
|
|
@ -2065,9 +2065,21 @@ void FileDescriptorProto::InternalSwap(FileDescriptorProto* other) { |
|
|
|
|
extension_.InternalSwap(&other->extension_); |
|
|
|
|
public_dependency_.InternalSwap(&other->public_dependency_); |
|
|
|
|
weak_dependency_.InternalSwap(&other->weak_dependency_); |
|
|
|
|
name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
package_.Swap(&other->package_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
syntax_.Swap(&other->syntax_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&name_, GetArenaForAllocation(), |
|
|
|
|
&other->name_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&package_, GetArenaForAllocation(), |
|
|
|
|
&other->package_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&syntax_, GetArenaForAllocation(), |
|
|
|
|
&other->syntax_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap< |
|
|
|
|
PROTOBUF_FIELD_OFFSET(FileDescriptorProto, source_code_info_) |
|
|
|
|
+ sizeof(FileDescriptorProto::source_code_info_) |
|
|
|
@ -2138,7 +2150,7 @@ DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void DescriptorProto_ExtensionRange::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
if (this != internal_default_instance()) delete options_; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -2421,7 +2433,7 @@ DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void DescriptorProto_ReservedRange::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void DescriptorProto_ReservedRange::ArenaDtor(void* object) { |
|
|
|
@ -2675,7 +2687,7 @@ DescriptorProto::DescriptorProto(const DescriptorProto& from) |
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_name()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_options()) { |
|
|
|
|
options_ = new PROTOBUF_NAMESPACE_ID::MessageOptions(*from.options_); |
|
|
|
@ -2697,7 +2709,7 @@ DescriptorProto::~DescriptorProto() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void DescriptorProto::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (this != internal_default_instance()) delete options_; |
|
|
|
|
} |
|
|
|
@ -3159,7 +3171,11 @@ void DescriptorProto::InternalSwap(DescriptorProto* other) { |
|
|
|
|
oneof_decl_.InternalSwap(&other->oneof_decl_); |
|
|
|
|
reserved_range_.InternalSwap(&other->reserved_range_); |
|
|
|
|
reserved_name_.InternalSwap(&other->reserved_name_); |
|
|
|
|
name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&name_, GetArenaForAllocation(), |
|
|
|
|
&other->name_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
swap(options_, other->options_); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -3201,7 +3217,7 @@ ExtensionRangeOptions::~ExtensionRangeOptions() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void ExtensionRangeOptions::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void ExtensionRangeOptions::ArenaDtor(void* object) { |
|
|
|
@ -3444,27 +3460,27 @@ FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from) |
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_name()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
extendee_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_extendee()) { |
|
|
|
|
extendee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_extendee(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
type_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_type_name()) { |
|
|
|
|
type_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type_name(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
default_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_default_value()) { |
|
|
|
|
default_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_default_value(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
json_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_json_name()) { |
|
|
|
|
json_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_json_name(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_options()) { |
|
|
|
|
options_ = new PROTOBUF_NAMESPACE_ID::FieldOptions(*from.options_); |
|
|
|
@ -3498,7 +3514,7 @@ FieldDescriptorProto::~FieldDescriptorProto() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void FieldDescriptorProto::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
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()); |
|
|
|
@ -3989,11 +4005,31 @@ void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) { |
|
|
|
|
using std::swap; |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]); |
|
|
|
|
name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
extendee_.Swap(&other->extendee_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
type_name_.Swap(&other->type_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
default_value_.Swap(&other->default_value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
json_name_.Swap(&other->json_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&name_, GetArenaForAllocation(), |
|
|
|
|
&other->name_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&extendee_, GetArenaForAllocation(), |
|
|
|
|
&other->extendee_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&type_name_, GetArenaForAllocation(), |
|
|
|
|
&other->type_name_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&default_value_, GetArenaForAllocation(), |
|
|
|
|
&other->default_value_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&json_name_, GetArenaForAllocation(), |
|
|
|
|
&other->json_name_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap< |
|
|
|
|
PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, proto3_optional_) |
|
|
|
|
+ sizeof(FieldDescriptorProto::proto3_optional_) |
|
|
|
@ -4041,7 +4077,7 @@ OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from) |
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_name()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_options()) { |
|
|
|
|
options_ = new PROTOBUF_NAMESPACE_ID::OneofOptions(*from.options_); |
|
|
|
@ -4063,7 +4099,7 @@ OneofDescriptorProto::~OneofDescriptorProto() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void OneofDescriptorProto::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (this != internal_default_instance()) delete options_; |
|
|
|
|
} |
|
|
|
@ -4272,7 +4308,11 @@ void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) { |
|
|
|
|
using std::swap; |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]); |
|
|
|
|
name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&name_, GetArenaForAllocation(), |
|
|
|
|
&other->name_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
swap(options_, other->options_); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -4325,7 +4365,7 @@ EnumDescriptorProto_EnumReservedRange::~EnumDescriptorProto_EnumReservedRange() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void EnumDescriptorProto_EnumReservedRange::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void EnumDescriptorProto_EnumReservedRange::ArenaDtor(void* object) { |
|
|
|
@ -4569,7 +4609,7 @@ EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from) |
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_name()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_options()) { |
|
|
|
|
options_ = new PROTOBUF_NAMESPACE_ID::EnumOptions(*from.options_); |
|
|
|
@ -4591,7 +4631,7 @@ EnumDescriptorProto::~EnumDescriptorProto() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void EnumDescriptorProto::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (this != internal_default_instance()) delete options_; |
|
|
|
|
} |
|
|
|
@ -4898,7 +4938,11 @@ void EnumDescriptorProto::InternalSwap(EnumDescriptorProto* other) { |
|
|
|
|
value_.InternalSwap(&other->value_); |
|
|
|
|
reserved_range_.InternalSwap(&other->reserved_range_); |
|
|
|
|
reserved_name_.InternalSwap(&other->reserved_name_); |
|
|
|
|
name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&name_, GetArenaForAllocation(), |
|
|
|
|
&other->name_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
swap(options_, other->options_); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -4942,7 +4986,7 @@ EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProt |
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_name()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_options()) { |
|
|
|
|
options_ = new PROTOBUF_NAMESPACE_ID::EnumValueOptions(*from.options_); |
|
|
|
@ -4968,7 +5012,7 @@ EnumValueDescriptorProto::~EnumValueDescriptorProto() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void EnumValueDescriptorProto::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (this != internal_default_instance()) delete options_; |
|
|
|
|
} |
|
|
|
@ -5203,7 +5247,11 @@ void EnumValueDescriptorProto::InternalSwap(EnumValueDescriptorProto* other) { |
|
|
|
|
using std::swap; |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]); |
|
|
|
|
name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&name_, GetArenaForAllocation(), |
|
|
|
|
&other->name_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap< |
|
|
|
|
PROTOBUF_FIELD_OFFSET(EnumValueDescriptorProto, number_) |
|
|
|
|
+ sizeof(EnumValueDescriptorProto::number_) |
|
|
|
@ -5251,7 +5299,7 @@ ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& fro |
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_name()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_options()) { |
|
|
|
|
options_ = new PROTOBUF_NAMESPACE_ID::ServiceOptions(*from.options_); |
|
|
|
@ -5273,7 +5321,7 @@ ServiceDescriptorProto::~ServiceDescriptorProto() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void ServiceDescriptorProto::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (this != internal_default_instance()) delete options_; |
|
|
|
|
} |
|
|
|
@ -5513,7 +5561,11 @@ void ServiceDescriptorProto::InternalSwap(ServiceDescriptorProto* other) { |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]); |
|
|
|
|
method_.InternalSwap(&other->method_); |
|
|
|
|
name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&name_, GetArenaForAllocation(), |
|
|
|
|
&other->name_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
swap(options_, other->options_); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -5566,17 +5618,17 @@ MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from) |
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_name()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
input_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_input_type()) { |
|
|
|
|
input_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_input_type(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
output_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_output_type()) { |
|
|
|
|
output_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_output_type(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_options()) { |
|
|
|
|
options_ = new PROTOBUF_NAMESPACE_ID::MethodOptions(*from.options_); |
|
|
|
@ -5606,7 +5658,7 @@ MethodDescriptorProto::~MethodDescriptorProto() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void MethodDescriptorProto::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
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()); |
|
|
|
@ -5933,9 +5985,21 @@ void MethodDescriptorProto::InternalSwap(MethodDescriptorProto* other) { |
|
|
|
|
using std::swap; |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]); |
|
|
|
|
name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
input_type_.Swap(&other->input_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
output_type_.Swap(&other->output_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&name_, GetArenaForAllocation(), |
|
|
|
|
&other->name_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&input_type_, GetArenaForAllocation(), |
|
|
|
|
&other->input_type_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&output_type_, GetArenaForAllocation(), |
|
|
|
|
&other->output_type_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap< |
|
|
|
|
PROTOBUF_FIELD_OFFSET(MethodDescriptorProto, server_streaming_) |
|
|
|
|
+ sizeof(MethodDescriptorProto::server_streaming_) |
|
|
|
@ -6034,52 +6098,52 @@ FileOptions::FileOptions(const FileOptions& from) |
|
|
|
|
java_package_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_java_package()) { |
|
|
|
|
java_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_java_package(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
java_outer_classname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_java_outer_classname()) { |
|
|
|
|
java_outer_classname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_java_outer_classname(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
go_package_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_go_package()) { |
|
|
|
|
go_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_go_package(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
objc_class_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_objc_class_prefix()) { |
|
|
|
|
objc_class_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_objc_class_prefix(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
csharp_namespace_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_csharp_namespace()) { |
|
|
|
|
csharp_namespace_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_csharp_namespace(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
swift_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_swift_prefix()) { |
|
|
|
|
swift_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_swift_prefix(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
php_class_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_php_class_prefix()) { |
|
|
|
|
php_class_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_php_class_prefix(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
php_namespace_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_php_namespace()) { |
|
|
|
|
php_namespace_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_php_namespace(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
php_metadata_namespace_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_php_metadata_namespace()) { |
|
|
|
|
php_metadata_namespace_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_php_metadata_namespace(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
ruby_package_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_ruby_package()) { |
|
|
|
|
ruby_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ruby_package(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
::memcpy(&java_multiple_files_, &from.java_multiple_files_, |
|
|
|
|
static_cast<size_t>(reinterpret_cast<char*>(&cc_enable_arenas_) - |
|
|
|
@ -6113,7 +6177,7 @@ FileOptions::~FileOptions() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void FileOptions::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
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()); |
|
|
|
@ -6904,16 +6968,56 @@ void FileOptions::InternalSwap(FileOptions* other) { |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]); |
|
|
|
|
uninterpreted_option_.InternalSwap(&other->uninterpreted_option_); |
|
|
|
|
java_package_.Swap(&other->java_package_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
java_outer_classname_.Swap(&other->java_outer_classname_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
go_package_.Swap(&other->go_package_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
objc_class_prefix_.Swap(&other->objc_class_prefix_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
csharp_namespace_.Swap(&other->csharp_namespace_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
swift_prefix_.Swap(&other->swift_prefix_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
php_class_prefix_.Swap(&other->php_class_prefix_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
php_namespace_.Swap(&other->php_namespace_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
php_metadata_namespace_.Swap(&other->php_metadata_namespace_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
ruby_package_.Swap(&other->ruby_package_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&java_package_, GetArenaForAllocation(), |
|
|
|
|
&other->java_package_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&java_outer_classname_, GetArenaForAllocation(), |
|
|
|
|
&other->java_outer_classname_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&go_package_, GetArenaForAllocation(), |
|
|
|
|
&other->go_package_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&objc_class_prefix_, GetArenaForAllocation(), |
|
|
|
|
&other->objc_class_prefix_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&csharp_namespace_, GetArenaForAllocation(), |
|
|
|
|
&other->csharp_namespace_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&swift_prefix_, GetArenaForAllocation(), |
|
|
|
|
&other->swift_prefix_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&php_class_prefix_, GetArenaForAllocation(), |
|
|
|
|
&other->php_class_prefix_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&php_namespace_, GetArenaForAllocation(), |
|
|
|
|
&other->php_namespace_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&php_metadata_namespace_, GetArenaForAllocation(), |
|
|
|
|
&other->php_metadata_namespace_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&ruby_package_, GetArenaForAllocation(), |
|
|
|
|
&other->ruby_package_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap< |
|
|
|
|
PROTOBUF_FIELD_OFFSET(FileOptions, deprecated_) |
|
|
|
|
+ sizeof(FileOptions::deprecated_) |
|
|
|
@ -6983,7 +7087,7 @@ MessageOptions::~MessageOptions() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void MessageOptions::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void MessageOptions::ArenaDtor(void* object) { |
|
|
|
@ -7336,7 +7440,7 @@ FieldOptions::~FieldOptions() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void FieldOptions::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void FieldOptions::ArenaDtor(void* object) { |
|
|
|
@ -7721,7 +7825,7 @@ OneofOptions::~OneofOptions() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void OneofOptions::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void OneofOptions::ArenaDtor(void* object) { |
|
|
|
@ -7953,7 +8057,7 @@ EnumOptions::~EnumOptions() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void EnumOptions::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void EnumOptions::ArenaDtor(void* object) { |
|
|
|
@ -8242,7 +8346,7 @@ EnumValueOptions::~EnumValueOptions() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void EnumValueOptions::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void EnumValueOptions::ArenaDtor(void* object) { |
|
|
|
@ -8496,7 +8600,7 @@ ServiceOptions::~ServiceOptions() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void ServiceOptions::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void ServiceOptions::ArenaDtor(void* object) { |
|
|
|
@ -8758,7 +8862,7 @@ MethodOptions::~MethodOptions() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void MethodOptions::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void MethodOptions::ArenaDtor(void* object) { |
|
|
|
@ -9046,7 +9150,7 @@ UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOp |
|
|
|
|
name_part_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_name_part()) { |
|
|
|
|
name_part_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name_part(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
is_extension_ = from.is_extension_; |
|
|
|
|
// @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption.NamePart)
|
|
|
|
@ -9064,7 +9168,7 @@ UninterpretedOption_NamePart::~UninterpretedOption_NamePart() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void UninterpretedOption_NamePart::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
name_part_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -9278,7 +9382,11 @@ void UninterpretedOption_NamePart::InternalSwap(UninterpretedOption_NamePart* ot |
|
|
|
|
using std::swap; |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]); |
|
|
|
|
name_part_.Swap(&other->name_part_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&name_part_, GetArenaForAllocation(), |
|
|
|
|
&other->name_part_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
swap(is_extension_, other->is_extension_); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -9328,17 +9436,17 @@ UninterpretedOption::UninterpretedOption(const UninterpretedOption& from) |
|
|
|
|
identifier_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_identifier_value()) { |
|
|
|
|
identifier_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_identifier_value(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_string_value()) { |
|
|
|
|
string_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_string_value(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
aggregate_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_aggregate_value()) { |
|
|
|
|
aggregate_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_aggregate_value(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
::memcpy(&positive_int_value_, &from.positive_int_value_, |
|
|
|
|
static_cast<size_t>(reinterpret_cast<char*>(&double_value_) - |
|
|
|
@ -9363,7 +9471,7 @@ UninterpretedOption::~UninterpretedOption() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void UninterpretedOption::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
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()); |
|
|
|
@ -9709,9 +9817,21 @@ void UninterpretedOption::InternalSwap(UninterpretedOption* other) { |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]); |
|
|
|
|
name_.InternalSwap(&other->name_); |
|
|
|
|
identifier_value_.Swap(&other->identifier_value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
string_value_.Swap(&other->string_value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
aggregate_value_.Swap(&other->aggregate_value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&identifier_value_, GetArenaForAllocation(), |
|
|
|
|
&other->identifier_value_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&string_value_, GetArenaForAllocation(), |
|
|
|
|
&other->string_value_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&aggregate_value_, GetArenaForAllocation(), |
|
|
|
|
&other->aggregate_value_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap< |
|
|
|
|
PROTOBUF_FIELD_OFFSET(UninterpretedOption, double_value_) |
|
|
|
|
+ sizeof(UninterpretedOption::double_value_) |
|
|
|
@ -9758,12 +9878,12 @@ SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& |
|
|
|
|
leading_comments_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_leading_comments()) { |
|
|
|
|
leading_comments_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_leading_comments(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
trailing_comments_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_trailing_comments()) { |
|
|
|
|
trailing_comments_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_trailing_comments(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
// @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Location)
|
|
|
|
|
} |
|
|
|
@ -9780,7 +9900,7 @@ SourceCodeInfo_Location::~SourceCodeInfo_Location() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void SourceCodeInfo_Location::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
leading_comments_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
trailing_comments_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
} |
|
|
|
@ -10102,8 +10222,16 @@ void SourceCodeInfo_Location::InternalSwap(SourceCodeInfo_Location* other) { |
|
|
|
|
path_.InternalSwap(&other->path_); |
|
|
|
|
span_.InternalSwap(&other->span_); |
|
|
|
|
leading_detached_comments_.InternalSwap(&other->leading_detached_comments_); |
|
|
|
|
leading_comments_.Swap(&other->leading_comments_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
trailing_comments_.Swap(&other->trailing_comments_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&leading_comments_, GetArenaForAllocation(), |
|
|
|
|
&other->leading_comments_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&trailing_comments_, GetArenaForAllocation(), |
|
|
|
|
&other->trailing_comments_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata SourceCodeInfo_Location::GetMetadata() const { |
|
|
|
@ -10142,7 +10270,7 @@ SourceCodeInfo::~SourceCodeInfo() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void SourceCodeInfo::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void SourceCodeInfo::ArenaDtor(void* object) { |
|
|
|
@ -10338,7 +10466,7 @@ GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeIn |
|
|
|
|
source_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
if (from._internal_has_source_file()) { |
|
|
|
|
source_file_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_source_file(),
|
|
|
|
|
GetArena()); |
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
::memcpy(&begin_, &from.begin_, |
|
|
|
|
static_cast<size_t>(reinterpret_cast<char*>(&end_) - |
|
|
|
@ -10361,7 +10489,7 @@ GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void GeneratedCodeInfo_Annotation::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
source_file_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -10626,7 +10754,11 @@ void GeneratedCodeInfo_Annotation::InternalSwap(GeneratedCodeInfo_Annotation* ot |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]); |
|
|
|
|
path_.InternalSwap(&other->path_); |
|
|
|
|
source_file_.Swap(&other->source_file_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
&source_file_, GetArenaForAllocation(), |
|
|
|
|
&other->source_file_, other->GetArenaForAllocation() |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap< |
|
|
|
|
PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo_Annotation, end_) |
|
|
|
|
+ sizeof(GeneratedCodeInfo_Annotation::end_) |
|
|
|
@ -10671,7 +10803,7 @@ GeneratedCodeInfo::~GeneratedCodeInfo() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void GeneratedCodeInfo::SharedDtor() { |
|
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr); |
|
|
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void GeneratedCodeInfo::ArenaDtor(void* object) { |
|
|
|
|