Auto-generate files after cl/581311618

pull/14663/head
Protobuf Team Bot 1 year ago
parent e2c8113c92
commit efeee51380
  1. 37
      src/google/protobuf/any.pb.h
  2. 45
      src/google/protobuf/api.pb.h
  3. 15
      src/google/protobuf/duration.pb.h
  4. 15
      src/google/protobuf/empty.pb.h
  5. 15
      src/google/protobuf/field_mask.pb.h
  6. 15
      src/google/protobuf/source_context.pb.h
  7. 46
      src/google/protobuf/struct.pb.h
  8. 15
      src/google/protobuf/timestamp.pb.h
  9. 75
      src/google/protobuf/type.pb.h
  10. 135
      src/google/protobuf/wrappers.pb.h

@ -126,12 +126,9 @@ class PROTOBUF_EXPORT Any final :
return *internal_default_instance();
}
static inline const Any* internal_default_instance() {
return reinterpret_cast<const Any*>(
&_Any_default_instance_);
return reinterpret_cast<const Any*>(&_Any_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
static constexpr int kIndexInFileMessages = 0;
// implements Any -----------------------------------------------
bool PackFrom(const ::google::protobuf::Message& message) {
@ -150,31 +147,40 @@ class PROTOBUF_EXPORT Any final :
const ::google::protobuf::Message& message,
const ::google::protobuf::FieldDescriptor** type_url_field,
const ::google::protobuf::FieldDescriptor** value_field);
template <typename T, class = typename std::enable_if<!std::is_convertible<T, const ::google::protobuf::Message&>::value>::type>
template <
typename T,
class = typename std::enable_if<!std::is_convertible<
T, const ::google::protobuf::Message&>::value>::type>
bool PackFrom(const T& message) {
return _impl_._any_metadata_.PackFrom<T>(GetArena(), message);
}
template <typename T, class = typename std::enable_if<!std::is_convertible<T, const ::google::protobuf::Message&>::value>::type>
template <
typename T,
class = typename std::enable_if<!std::is_convertible<
T, const ::google::protobuf::Message&>::value>::type>
bool PackFrom(const T& message,
::absl::string_view type_url_prefix) {
return _impl_._any_metadata_.PackFrom<T>(GetArena(), message, type_url_prefix);}
template <typename T, class = typename std::enable_if<!std::is_convertible<T, const ::google::protobuf::Message&>::value>::type>
return _impl_._any_metadata_.PackFrom<T>(GetArena(), message, type_url_prefix);
}
template <
typename T,
class = typename std::enable_if<!std::is_convertible<
T, const ::google::protobuf::Message&>::value>::type>
bool UnpackTo(T* message) const {
return _impl_._any_metadata_.UnpackTo<T>(message);
}
template<typename T> bool Is() const {
template <typename T>
bool Is() const {
return _impl_._any_metadata_.Is<T>();
}
static bool ParseAnyTypeUrl(::absl::string_view type_url,
std::string* full_type_name);
friend void swap(Any& a, Any& b) {
a.Swap(&b);
}
friend void swap(Any& a, Any& b) { a.Swap(&b); }
inline void Swap(Any* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -286,7 +292,6 @@ class PROTOBUF_EXPORT Any final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,

@ -134,20 +134,14 @@ class PROTOBUF_EXPORT Mixin final :
return *internal_default_instance();
}
static inline const Mixin* internal_default_instance() {
return reinterpret_cast<const Mixin*>(
&_Mixin_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
friend void swap(Mixin& a, Mixin& b) {
a.Swap(&b);
return reinterpret_cast<const Mixin*>(&_Mixin_default_instance_);
}
static constexpr int kIndexInFileMessages = 2;
friend void swap(Mixin& a, Mixin& b) { a.Swap(&b); }
inline void Swap(Mixin* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -259,7 +253,6 @@ class PROTOBUF_EXPORT Mixin final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -330,20 +323,14 @@ class PROTOBUF_EXPORT Method final :
return *internal_default_instance();
}
static inline const Method* internal_default_instance() {
return reinterpret_cast<const Method*>(
&_Method_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(Method& a, Method& b) {
a.Swap(&b);
return reinterpret_cast<const Method*>(&_Method_default_instance_);
}
static constexpr int kIndexInFileMessages = 1;
friend void swap(Method& a, Method& b) { a.Swap(&b); }
inline void Swap(Method* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -524,7 +511,6 @@ class PROTOBUF_EXPORT Method final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -600,20 +586,14 @@ class PROTOBUF_EXPORT Api final :
return *internal_default_instance();
}
static inline const Api* internal_default_instance() {
return reinterpret_cast<const Api*>(
&_Api_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(Api& a, Api& b) {
a.Swap(&b);
return reinterpret_cast<const Api*>(&_Api_default_instance_);
}
static constexpr int kIndexInFileMessages = 0;
friend void swap(Api& a, Api& b) { a.Swap(&b); }
inline void Swap(Api* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -809,7 +789,6 @@ class PROTOBUF_EXPORT Api final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,

@ -126,20 +126,14 @@ class PROTOBUF_EXPORT Duration final :
return *internal_default_instance();
}
static inline const Duration* internal_default_instance() {
return reinterpret_cast<const Duration*>(
&_Duration_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(Duration& a, Duration& b) {
a.Swap(&b);
return reinterpret_cast<const Duration*>(&_Duration_default_instance_);
}
static constexpr int kIndexInFileMessages = 0;
friend void swap(Duration& a, Duration& b) { a.Swap(&b); }
inline void Swap(Duration* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -239,7 +233,6 @@ class PROTOBUF_EXPORT Duration final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,

@ -126,20 +126,14 @@ class PROTOBUF_EXPORT Empty final :
return *internal_default_instance();
}
static inline const Empty* internal_default_instance() {
return reinterpret_cast<const Empty*>(
&_Empty_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(Empty& a, Empty& b) {
a.Swap(&b);
return reinterpret_cast<const Empty*>(&_Empty_default_instance_);
}
static constexpr int kIndexInFileMessages = 0;
friend void swap(Empty& a, Empty& b) { a.Swap(&b); }
inline void Swap(Empty* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -196,7 +190,6 @@ class PROTOBUF_EXPORT Empty final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,

@ -126,20 +126,14 @@ class PROTOBUF_EXPORT FieldMask final :
return *internal_default_instance();
}
static inline const FieldMask* internal_default_instance() {
return reinterpret_cast<const FieldMask*>(
&_FieldMask_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(FieldMask& a, FieldMask& b) {
a.Swap(&b);
return reinterpret_cast<const FieldMask*>(&_FieldMask_default_instance_);
}
static constexpr int kIndexInFileMessages = 0;
friend void swap(FieldMask& a, FieldMask& b) { a.Swap(&b); }
inline void Swap(FieldMask* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -246,7 +240,6 @@ class PROTOBUF_EXPORT FieldMask final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,

@ -126,20 +126,14 @@ class PROTOBUF_EXPORT SourceContext final :
return *internal_default_instance();
}
static inline const SourceContext* internal_default_instance() {
return reinterpret_cast<const SourceContext*>(
&_SourceContext_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(SourceContext& a, SourceContext& b) {
a.Swap(&b);
return reinterpret_cast<const SourceContext*>(&_SourceContext_default_instance_);
}
static constexpr int kIndexInFileMessages = 0;
friend void swap(SourceContext& a, SourceContext& b) { a.Swap(&b); }
inline void Swap(SourceContext* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -234,7 +228,6 @@ class PROTOBUF_EXPORT SourceContext final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,

@ -171,20 +171,14 @@ class PROTOBUF_EXPORT ListValue final :
return *internal_default_instance();
}
static inline const ListValue* internal_default_instance() {
return reinterpret_cast<const ListValue*>(
&_ListValue_default_instance_);
}
static constexpr int kIndexInFileMessages =
3;
friend void swap(ListValue& a, ListValue& b) {
a.Swap(&b);
return reinterpret_cast<const ListValue*>(&_ListValue_default_instance_);
}
static constexpr int kIndexInFileMessages = 3;
friend void swap(ListValue& a, ListValue& b) { a.Swap(&b); }
inline void Swap(ListValue* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -281,7 +275,6 @@ class PROTOBUF_EXPORT ListValue final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -351,20 +344,14 @@ class PROTOBUF_EXPORT Struct final :
return *internal_default_instance();
}
static inline const Struct* internal_default_instance() {
return reinterpret_cast<const Struct*>(
&_Struct_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(Struct& a, Struct& b) {
a.Swap(&b);
return reinterpret_cast<const Struct*>(&_Struct_default_instance_);
}
static constexpr int kIndexInFileMessages = 1;
friend void swap(Struct& a, Struct& b) { a.Swap(&b); }
inline void Swap(Struct* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -459,7 +446,6 @@ class PROTOBUF_EXPORT Struct final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -568,22 +554,15 @@ class PROTOBUF_EXPORT Value final :
kListValue = 6,
KIND_NOT_SET = 0,
};
static inline const Value* internal_default_instance() {
return reinterpret_cast<const Value*>(
&_Value_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
friend void swap(Value& a, Value& b) {
a.Swap(&b);
return reinterpret_cast<const Value*>(&_Value_default_instance_);
}
static constexpr int kIndexInFileMessages = 2;
friend void swap(Value& a, Value& b) { a.Swap(&b); }
inline void Swap(Value* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -766,7 +745,6 @@ class PROTOBUF_EXPORT Value final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,

@ -126,20 +126,14 @@ class PROTOBUF_EXPORT Timestamp final :
return *internal_default_instance();
}
static inline const Timestamp* internal_default_instance() {
return reinterpret_cast<const Timestamp*>(
&_Timestamp_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(Timestamp& a, Timestamp& b) {
a.Swap(&b);
return reinterpret_cast<const Timestamp*>(&_Timestamp_default_instance_);
}
static constexpr int kIndexInFileMessages = 0;
friend void swap(Timestamp& a, Timestamp& b) { a.Swap(&b); }
inline void Swap(Timestamp* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -239,7 +233,6 @@ class PROTOBUF_EXPORT Timestamp final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,

@ -260,20 +260,14 @@ class PROTOBUF_EXPORT Option final :
return *internal_default_instance();
}
static inline const Option* internal_default_instance() {
return reinterpret_cast<const Option*>(
&_Option_default_instance_);
}
static constexpr int kIndexInFileMessages =
4;
friend void swap(Option& a, Option& b) {
a.Swap(&b);
return reinterpret_cast<const Option*>(&_Option_default_instance_);
}
static constexpr int kIndexInFileMessages = 4;
friend void swap(Option& a, Option& b) { a.Swap(&b); }
inline void Swap(Option* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -384,7 +378,6 @@ class PROTOBUF_EXPORT Option final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -456,20 +449,14 @@ class PROTOBUF_EXPORT Field final :
return *internal_default_instance();
}
static inline const Field* internal_default_instance() {
return reinterpret_cast<const Field*>(
&_Field_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(Field& a, Field& b) {
a.Swap(&b);
return reinterpret_cast<const Field*>(&_Field_default_instance_);
}
static constexpr int kIndexInFileMessages = 1;
friend void swap(Field& a, Field& b) { a.Swap(&b); }
inline void Swap(Field* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -748,7 +735,6 @@ class PROTOBUF_EXPORT Field final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -827,20 +813,14 @@ class PROTOBUF_EXPORT EnumValue final :
return *internal_default_instance();
}
static inline const EnumValue* internal_default_instance() {
return reinterpret_cast<const EnumValue*>(
&_EnumValue_default_instance_);
}
static constexpr int kIndexInFileMessages =
3;
friend void swap(EnumValue& a, EnumValue& b) {
a.Swap(&b);
return reinterpret_cast<const EnumValue*>(&_EnumValue_default_instance_);
}
static constexpr int kIndexInFileMessages = 3;
friend void swap(EnumValue& a, EnumValue& b) { a.Swap(&b); }
inline void Swap(EnumValue* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -965,7 +945,6 @@ class PROTOBUF_EXPORT EnumValue final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -1037,20 +1016,14 @@ class PROTOBUF_EXPORT Type final :
return *internal_default_instance();
}
static inline const Type* internal_default_instance() {
return reinterpret_cast<const Type*>(
&_Type_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(Type& a, Type& b) {
a.Swap(&b);
return reinterpret_cast<const Type*>(&_Type_default_instance_);
}
static constexpr int kIndexInFileMessages = 0;
friend void swap(Type& a, Type& b) { a.Swap(&b); }
inline void Swap(Type* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -1256,7 +1229,6 @@ class PROTOBUF_EXPORT Type final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -1333,20 +1305,14 @@ class PROTOBUF_EXPORT Enum final :
return *internal_default_instance();
}
static inline const Enum* internal_default_instance() {
return reinterpret_cast<const Enum*>(
&_Enum_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
friend void swap(Enum& a, Enum& b) {
a.Swap(&b);
return reinterpret_cast<const Enum*>(&_Enum_default_instance_);
}
static constexpr int kIndexInFileMessages = 2;
friend void swap(Enum& a, Enum& b) { a.Swap(&b); }
inline void Swap(Enum* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -1523,7 +1489,6 @@ class PROTOBUF_EXPORT Enum final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,

@ -150,20 +150,14 @@ class PROTOBUF_EXPORT UInt64Value final :
return *internal_default_instance();
}
static inline const UInt64Value* internal_default_instance() {
return reinterpret_cast<const UInt64Value*>(
&_UInt64Value_default_instance_);
}
static constexpr int kIndexInFileMessages =
3;
friend void swap(UInt64Value& a, UInt64Value& b) {
a.Swap(&b);
return reinterpret_cast<const UInt64Value*>(&_UInt64Value_default_instance_);
}
static constexpr int kIndexInFileMessages = 3;
friend void swap(UInt64Value& a, UInt64Value& b) { a.Swap(&b); }
inline void Swap(UInt64Value* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -252,7 +246,6 @@ class PROTOBUF_EXPORT UInt64Value final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -322,20 +315,14 @@ class PROTOBUF_EXPORT UInt32Value final :
return *internal_default_instance();
}
static inline const UInt32Value* internal_default_instance() {
return reinterpret_cast<const UInt32Value*>(
&_UInt32Value_default_instance_);
}
static constexpr int kIndexInFileMessages =
5;
friend void swap(UInt32Value& a, UInt32Value& b) {
a.Swap(&b);
return reinterpret_cast<const UInt32Value*>(&_UInt32Value_default_instance_);
}
static constexpr int kIndexInFileMessages = 5;
friend void swap(UInt32Value& a, UInt32Value& b) { a.Swap(&b); }
inline void Swap(UInt32Value* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -424,7 +411,6 @@ class PROTOBUF_EXPORT UInt32Value final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -494,20 +480,14 @@ class PROTOBUF_EXPORT StringValue final :
return *internal_default_instance();
}
static inline const StringValue* internal_default_instance() {
return reinterpret_cast<const StringValue*>(
&_StringValue_default_instance_);
}
static constexpr int kIndexInFileMessages =
7;
friend void swap(StringValue& a, StringValue& b) {
a.Swap(&b);
return reinterpret_cast<const StringValue*>(&_StringValue_default_instance_);
}
static constexpr int kIndexInFileMessages = 7;
friend void swap(StringValue& a, StringValue& b) { a.Swap(&b); }
inline void Swap(StringValue* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -602,7 +582,6 @@ class PROTOBUF_EXPORT StringValue final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -672,20 +651,14 @@ class PROTOBUF_EXPORT Int64Value final :
return *internal_default_instance();
}
static inline const Int64Value* internal_default_instance() {
return reinterpret_cast<const Int64Value*>(
&_Int64Value_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
friend void swap(Int64Value& a, Int64Value& b) {
a.Swap(&b);
return reinterpret_cast<const Int64Value*>(&_Int64Value_default_instance_);
}
static constexpr int kIndexInFileMessages = 2;
friend void swap(Int64Value& a, Int64Value& b) { a.Swap(&b); }
inline void Swap(Int64Value* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -774,7 +747,6 @@ class PROTOBUF_EXPORT Int64Value final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -844,20 +816,14 @@ class PROTOBUF_EXPORT Int32Value final :
return *internal_default_instance();
}
static inline const Int32Value* internal_default_instance() {
return reinterpret_cast<const Int32Value*>(
&_Int32Value_default_instance_);
}
static constexpr int kIndexInFileMessages =
4;
friend void swap(Int32Value& a, Int32Value& b) {
a.Swap(&b);
return reinterpret_cast<const Int32Value*>(&_Int32Value_default_instance_);
}
static constexpr int kIndexInFileMessages = 4;
friend void swap(Int32Value& a, Int32Value& b) { a.Swap(&b); }
inline void Swap(Int32Value* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -946,7 +912,6 @@ class PROTOBUF_EXPORT Int32Value final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -1016,20 +981,14 @@ class PROTOBUF_EXPORT FloatValue final :
return *internal_default_instance();
}
static inline const FloatValue* internal_default_instance() {
return reinterpret_cast<const FloatValue*>(
&_FloatValue_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(FloatValue& a, FloatValue& b) {
a.Swap(&b);
return reinterpret_cast<const FloatValue*>(&_FloatValue_default_instance_);
}
static constexpr int kIndexInFileMessages = 1;
friend void swap(FloatValue& a, FloatValue& b) { a.Swap(&b); }
inline void Swap(FloatValue* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -1118,7 +1077,6 @@ class PROTOBUF_EXPORT FloatValue final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -1188,20 +1146,14 @@ class PROTOBUF_EXPORT DoubleValue final :
return *internal_default_instance();
}
static inline const DoubleValue* internal_default_instance() {
return reinterpret_cast<const DoubleValue*>(
&_DoubleValue_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(DoubleValue& a, DoubleValue& b) {
a.Swap(&b);
return reinterpret_cast<const DoubleValue*>(&_DoubleValue_default_instance_);
}
static constexpr int kIndexInFileMessages = 0;
friend void swap(DoubleValue& a, DoubleValue& b) { a.Swap(&b); }
inline void Swap(DoubleValue* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -1290,7 +1242,6 @@ class PROTOBUF_EXPORT DoubleValue final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -1360,20 +1311,14 @@ class PROTOBUF_EXPORT BytesValue final :
return *internal_default_instance();
}
static inline const BytesValue* internal_default_instance() {
return reinterpret_cast<const BytesValue*>(
&_BytesValue_default_instance_);
}
static constexpr int kIndexInFileMessages =
8;
friend void swap(BytesValue& a, BytesValue& b) {
a.Swap(&b);
return reinterpret_cast<const BytesValue*>(&_BytesValue_default_instance_);
}
static constexpr int kIndexInFileMessages = 8;
friend void swap(BytesValue& a, BytesValue& b) { a.Swap(&b); }
inline void Swap(BytesValue* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -1468,7 +1413,6 @@ class PROTOBUF_EXPORT BytesValue final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -1538,20 +1482,14 @@ class PROTOBUF_EXPORT BoolValue final :
return *internal_default_instance();
}
static inline const BoolValue* internal_default_instance() {
return reinterpret_cast<const BoolValue*>(
&_BoolValue_default_instance_);
}
static constexpr int kIndexInFileMessages =
6;
friend void swap(BoolValue& a, BoolValue& b) {
a.Swap(&b);
return reinterpret_cast<const BoolValue*>(&_BoolValue_default_instance_);
}
static constexpr int kIndexInFileMessages = 6;
friend void swap(BoolValue& a, BoolValue& b) { a.Swap(&b); }
inline void Swap(BoolValue* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr &&
GetArena() == other->GetArena()) {
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
@ -1640,7 +1578,6 @@ class PROTOBUF_EXPORT BoolValue final :
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,

Loading…
Cancel
Save