Auto-generate files after cl/573311752

pull/14396/head
Protobuf Team Bot 1 year ago
parent ca0243c1f4
commit e1e764e8a7
  1. 12
      src/google/protobuf/any.pb.h
  2. 36
      src/google/protobuf/api.pb.h
  3. 12
      src/google/protobuf/duration.pb.h
  4. 12
      src/google/protobuf/empty.pb.h
  5. 12
      src/google/protobuf/field_mask.pb.h
  6. 12
      src/google/protobuf/source_context.pb.h
  7. 36
      src/google/protobuf/struct.pb.h
  8. 12
      src/google/protobuf/timestamp.pb.h
  9. 60
      src/google/protobuf/type.pb.h
  10. 108
      src/google/protobuf/wrappers.pb.h

@ -92,9 +92,9 @@ class PROTOBUF_EXPORT Any final :
}
inline Any& operator=(Any&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -173,10 +173,10 @@ class PROTOBUF_EXPORT Any final :
inline void Swap(Any* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -185,7 +185,7 @@ class PROTOBUF_EXPORT Any final :
}
void UnsafeArenaSwap(Any* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}

@ -100,9 +100,9 @@ class PROTOBUF_EXPORT Mixin final :
}
inline Mixin& operator=(Mixin&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -146,10 +146,10 @@ class PROTOBUF_EXPORT Mixin final :
inline void Swap(Mixin* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -158,7 +158,7 @@ class PROTOBUF_EXPORT Mixin final :
}
void UnsafeArenaSwap(Mixin* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
@ -299,9 +299,9 @@ class PROTOBUF_EXPORT Method final :
}
inline Method& operator=(Method&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -345,10 +345,10 @@ class PROTOBUF_EXPORT Method final :
inline void Swap(Method* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -357,7 +357,7 @@ class PROTOBUF_EXPORT Method final :
}
void UnsafeArenaSwap(Method* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
@ -572,9 +572,9 @@ class PROTOBUF_EXPORT Api final :
}
inline Api& operator=(Api&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -618,10 +618,10 @@ class PROTOBUF_EXPORT Api final :
inline void Swap(Api* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -630,7 +630,7 @@ class PROTOBUF_EXPORT Api final :
}
void UnsafeArenaSwap(Api* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}

@ -92,9 +92,9 @@ class PROTOBUF_EXPORT Duration final :
}
inline Duration& operator=(Duration&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -138,10 +138,10 @@ class PROTOBUF_EXPORT Duration final :
inline void Swap(Duration* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -150,7 +150,7 @@ class PROTOBUF_EXPORT Duration final :
}
void UnsafeArenaSwap(Duration* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}

@ -92,9 +92,9 @@ class PROTOBUF_EXPORT Empty final :
}
inline Empty& operator=(Empty&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -138,10 +138,10 @@ class PROTOBUF_EXPORT Empty final :
inline void Swap(Empty* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -150,7 +150,7 @@ class PROTOBUF_EXPORT Empty final :
}
void UnsafeArenaSwap(Empty* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}

@ -92,9 +92,9 @@ class PROTOBUF_EXPORT FieldMask final :
}
inline FieldMask& operator=(FieldMask&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -138,10 +138,10 @@ class PROTOBUF_EXPORT FieldMask final :
inline void Swap(FieldMask* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -150,7 +150,7 @@ class PROTOBUF_EXPORT FieldMask final :
}
void UnsafeArenaSwap(FieldMask* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}

@ -92,9 +92,9 @@ class PROTOBUF_EXPORT SourceContext final :
}
inline SourceContext& operator=(SourceContext&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -138,10 +138,10 @@ class PROTOBUF_EXPORT SourceContext final :
inline void Swap(SourceContext* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -150,7 +150,7 @@ class PROTOBUF_EXPORT SourceContext final :
}
void UnsafeArenaSwap(SourceContext* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}

@ -137,9 +137,9 @@ class PROTOBUF_EXPORT ListValue final :
}
inline ListValue& operator=(ListValue&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -183,10 +183,10 @@ class PROTOBUF_EXPORT ListValue final :
inline void Swap(ListValue* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -195,7 +195,7 @@ class PROTOBUF_EXPORT ListValue final :
}
void UnsafeArenaSwap(ListValue* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
@ -320,9 +320,9 @@ class PROTOBUF_EXPORT Struct final :
}
inline Struct& operator=(Struct&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -366,10 +366,10 @@ class PROTOBUF_EXPORT Struct final :
inline void Swap(Struct* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -378,7 +378,7 @@ class PROTOBUF_EXPORT Struct final :
}
void UnsafeArenaSwap(Struct* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
@ -532,9 +532,9 @@ class PROTOBUF_EXPORT Value final :
}
inline Value& operator=(Value&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -588,10 +588,10 @@ class PROTOBUF_EXPORT Value final :
inline void Swap(Value* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -600,7 +600,7 @@ class PROTOBUF_EXPORT Value final :
}
void UnsafeArenaSwap(Value* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}

@ -92,9 +92,9 @@ class PROTOBUF_EXPORT Timestamp final :
}
inline Timestamp& operator=(Timestamp&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -138,10 +138,10 @@ class PROTOBUF_EXPORT Timestamp final :
inline void Swap(Timestamp* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -150,7 +150,7 @@ class PROTOBUF_EXPORT Timestamp final :
}
void UnsafeArenaSwap(Timestamp* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}

@ -226,9 +226,9 @@ class PROTOBUF_EXPORT Option final :
}
inline Option& operator=(Option&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -272,10 +272,10 @@ class PROTOBUF_EXPORT Option final :
inline void Swap(Option* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -284,7 +284,7 @@ class PROTOBUF_EXPORT Option final :
}
void UnsafeArenaSwap(Option* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
@ -425,9 +425,9 @@ class PROTOBUF_EXPORT Field final :
}
inline Field& operator=(Field&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -471,10 +471,10 @@ class PROTOBUF_EXPORT Field final :
inline void Swap(Field* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -483,7 +483,7 @@ class PROTOBUF_EXPORT Field final :
}
void UnsafeArenaSwap(Field* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
@ -799,9 +799,9 @@ class PROTOBUF_EXPORT EnumValue final :
}
inline EnumValue& operator=(EnumValue&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -845,10 +845,10 @@ class PROTOBUF_EXPORT EnumValue final :
inline void Swap(EnumValue* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -857,7 +857,7 @@ class PROTOBUF_EXPORT EnumValue final :
}
void UnsafeArenaSwap(EnumValue* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
@ -1012,9 +1012,9 @@ class PROTOBUF_EXPORT Type final :
}
inline Type& operator=(Type&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -1058,10 +1058,10 @@ class PROTOBUF_EXPORT Type final :
inline void Swap(Type* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -1070,7 +1070,7 @@ class PROTOBUF_EXPORT Type final :
}
void UnsafeArenaSwap(Type* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
@ -1311,9 +1311,9 @@ class PROTOBUF_EXPORT Enum final :
}
inline Enum& operator=(Enum&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -1357,10 +1357,10 @@ class PROTOBUF_EXPORT Enum final :
inline void Swap(Enum* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -1369,7 +1369,7 @@ class PROTOBUF_EXPORT Enum final :
}
void UnsafeArenaSwap(Enum* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}

@ -116,9 +116,9 @@ class PROTOBUF_EXPORT UInt64Value final :
}
inline UInt64Value& operator=(UInt64Value&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -162,10 +162,10 @@ class PROTOBUF_EXPORT UInt64Value final :
inline void Swap(UInt64Value* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -174,7 +174,7 @@ class PROTOBUF_EXPORT UInt64Value final :
}
void UnsafeArenaSwap(UInt64Value* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
@ -291,9 +291,9 @@ class PROTOBUF_EXPORT UInt32Value final :
}
inline UInt32Value& operator=(UInt32Value&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -337,10 +337,10 @@ class PROTOBUF_EXPORT UInt32Value final :
inline void Swap(UInt32Value* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -349,7 +349,7 @@ class PROTOBUF_EXPORT UInt32Value final :
}
void UnsafeArenaSwap(UInt32Value* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
@ -466,9 +466,9 @@ class PROTOBUF_EXPORT StringValue final :
}
inline StringValue& operator=(StringValue&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -512,10 +512,10 @@ class PROTOBUF_EXPORT StringValue final :
inline void Swap(StringValue* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -524,7 +524,7 @@ class PROTOBUF_EXPORT StringValue final :
}
void UnsafeArenaSwap(StringValue* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
@ -647,9 +647,9 @@ class PROTOBUF_EXPORT Int64Value final :
}
inline Int64Value& operator=(Int64Value&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -693,10 +693,10 @@ class PROTOBUF_EXPORT Int64Value final :
inline void Swap(Int64Value* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -705,7 +705,7 @@ class PROTOBUF_EXPORT Int64Value final :
}
void UnsafeArenaSwap(Int64Value* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
@ -822,9 +822,9 @@ class PROTOBUF_EXPORT Int32Value final :
}
inline Int32Value& operator=(Int32Value&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -868,10 +868,10 @@ class PROTOBUF_EXPORT Int32Value final :
inline void Swap(Int32Value* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -880,7 +880,7 @@ class PROTOBUF_EXPORT Int32Value final :
}
void UnsafeArenaSwap(Int32Value* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
@ -997,9 +997,9 @@ class PROTOBUF_EXPORT FloatValue final :
}
inline FloatValue& operator=(FloatValue&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -1043,10 +1043,10 @@ class PROTOBUF_EXPORT FloatValue final :
inline void Swap(FloatValue* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -1055,7 +1055,7 @@ class PROTOBUF_EXPORT FloatValue final :
}
void UnsafeArenaSwap(FloatValue* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
@ -1172,9 +1172,9 @@ class PROTOBUF_EXPORT DoubleValue final :
}
inline DoubleValue& operator=(DoubleValue&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -1218,10 +1218,10 @@ class PROTOBUF_EXPORT DoubleValue final :
inline void Swap(DoubleValue* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -1230,7 +1230,7 @@ class PROTOBUF_EXPORT DoubleValue final :
}
void UnsafeArenaSwap(DoubleValue* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
@ -1347,9 +1347,9 @@ class PROTOBUF_EXPORT BytesValue final :
}
inline BytesValue& operator=(BytesValue&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -1393,10 +1393,10 @@ class PROTOBUF_EXPORT BytesValue final :
inline void Swap(BytesValue* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -1405,7 +1405,7 @@ class PROTOBUF_EXPORT BytesValue final :
}
void UnsafeArenaSwap(BytesValue* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
@ -1528,9 +1528,9 @@ class PROTOBUF_EXPORT BoolValue final :
}
inline BoolValue& operator=(BoolValue&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
@ -1574,10 +1574,10 @@ class PROTOBUF_EXPORT BoolValue final :
inline void Swap(BoolValue* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
@ -1586,7 +1586,7 @@ class PROTOBUF_EXPORT BoolValue final :
}
void UnsafeArenaSwap(BoolValue* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}

Loading…
Cancel
Save