Auto-generate files after cl/580530262

pull/14665/head
Protobuf Team Bot 1 year ago
parent 01292502fa
commit 5c7b41a769
  1. 2
      src/google/protobuf/any.pb.h
  2. 9
      src/google/protobuf/api.pb.cc
  3. 8
      src/google/protobuf/api.pb.h
  4. 2
      src/google/protobuf/duration.pb.h
  5. 2
      src/google/protobuf/empty.pb.h
  6. 2
      src/google/protobuf/field_mask.pb.h
  7. 2
      src/google/protobuf/source_context.pb.h
  8. 4
      src/google/protobuf/struct.pb.cc
  9. 12
      src/google/protobuf/struct.pb.h
  10. 2
      src/google/protobuf/timestamp.pb.h
  11. 27
      src/google/protobuf/type.pb.cc
  12. 16
      src/google/protobuf/type.pb.h
  13. 18
      src/google/protobuf/wrappers.pb.h

@ -192,7 +192,7 @@ class PROTOBUF_EXPORT Any final :
// implements Message ----------------------------------------------
Any* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Any>(arena);
return ::google::protobuf::Message::DefaultConstruct<Any>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Any& from);

@ -293,9 +293,9 @@ Api::Api(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
::uint32_t cached_has_bits = _impl_._has_bits_[0];
_impl_.source_context_ = (cached_has_bits & 0x00000001u)
? CreateMaybeMessage<::google::protobuf::SourceContext>(arena, *from._impl_.source_context_)
: nullptr;
_impl_.source_context_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::SourceContext>(
arena, *from._impl_.source_context_)
: nullptr;
_impl_.syntax_ = from._impl_.syntax_;
// @@protoc_insertion_point(copy_constructor:google.protobuf.Api)
@ -596,7 +596,8 @@ void Api::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobu
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
ABSL_DCHECK(from._impl_.source_context_ != nullptr);
if (_this->_impl_.source_context_ == nullptr) {
_this->_impl_.source_context_ = CreateMaybeMessage<::google::protobuf::SourceContext>(arena, *from._impl_.source_context_);
_this->_impl_.source_context_ =
::google::protobuf::Message::CopyConstruct<::google::protobuf::SourceContext>(arena, *from._impl_.source_context_);
} else {
_this->_impl_.source_context_->MergeFrom(*from._impl_.source_context_);
}

@ -165,7 +165,7 @@ class PROTOBUF_EXPORT Mixin final :
// implements Message ----------------------------------------------
Mixin* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Mixin>(arena);
return ::google::protobuf::Message::DefaultConstruct<Mixin>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Mixin& from);
@ -361,7 +361,7 @@ class PROTOBUF_EXPORT Method final :
// implements Message ----------------------------------------------
Method* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Method>(arena);
return ::google::protobuf::Message::DefaultConstruct<Method>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Method& from);
@ -631,7 +631,7 @@ class PROTOBUF_EXPORT Api final :
// implements Message ----------------------------------------------
Api* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Api>(arena);
return ::google::protobuf::Message::DefaultConstruct<Api>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Api& from);
@ -1107,7 +1107,7 @@ inline ::google::protobuf::SourceContext* Api::_internal_mutable_source_context(
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_._has_bits_[0] |= 0x00000001u;
if (_impl_.source_context_ == nullptr) {
auto* p = CreateMaybeMessage<::google::protobuf::SourceContext>(GetArena());
auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::SourceContext>(GetArena());
_impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(p);
}
return _impl_.source_context_;

@ -157,7 +157,7 @@ class PROTOBUF_EXPORT Duration final :
// implements Message ----------------------------------------------
Duration* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Duration>(arena);
return ::google::protobuf::Message::DefaultConstruct<Duration>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Duration& from);

@ -157,7 +157,7 @@ class PROTOBUF_EXPORT Empty final :
// implements Message ----------------------------------------------
Empty* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Empty>(arena);
return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct<Empty>(arena);
}
using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom;
inline void CopyFrom(const Empty& from) {

@ -157,7 +157,7 @@ class PROTOBUF_EXPORT FieldMask final :
// implements Message ----------------------------------------------
FieldMask* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<FieldMask>(arena);
return ::google::protobuf::Message::DefaultConstruct<FieldMask>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const FieldMask& from);

@ -157,7 +157,7 @@ class PROTOBUF_EXPORT SourceContext final :
// implements Message ----------------------------------------------
SourceContext* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<SourceContext>(arena);
return ::google::protobuf::Message::DefaultConstruct<SourceContext>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const SourceContext& from);

@ -525,10 +525,10 @@ Value::Value(
_impl_.kind_.bool_value_ = from._impl_.kind_.bool_value_;
break;
case kStructValue:
_impl_.kind_.struct_value_ = CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.kind_.struct_value_);
_impl_.kind_.struct_value_ = ::google::protobuf::Message::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.kind_.struct_value_);
break;
case kListValue:
_impl_.kind_.list_value_ = CreateMaybeMessage<::google::protobuf::ListValue>(arena, *from._impl_.kind_.list_value_);
_impl_.kind_.list_value_ = ::google::protobuf::Message::CopyConstruct<::google::protobuf::ListValue>(arena, *from._impl_.kind_.list_value_);
break;
}

@ -202,7 +202,7 @@ class PROTOBUF_EXPORT ListValue final :
// implements Message ----------------------------------------------
ListValue* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<ListValue>(arena);
return ::google::protobuf::Message::DefaultConstruct<ListValue>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const ListValue& from);
@ -382,7 +382,7 @@ class PROTOBUF_EXPORT Struct final :
// implements Message ----------------------------------------------
Struct* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Struct>(arena);
return ::google::protobuf::Message::DefaultConstruct<Struct>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Struct& from);
@ -601,7 +601,7 @@ class PROTOBUF_EXPORT Value final :
// implements Message ----------------------------------------------
Value* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Value>(arena);
return ::google::protobuf::Message::DefaultConstruct<Value>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Value& from);
@ -1101,7 +1101,8 @@ inline ::google::protobuf::Struct* Value::_internal_mutable_struct_value() {
if (kind_case() != kStructValue) {
clear_kind();
set_has_struct_value();
_impl_.kind_.struct_value_ = CreateMaybeMessage<::google::protobuf::Struct>(GetArena());
_impl_.kind_.struct_value_ =
::google::protobuf::Message::DefaultConstruct<::google::protobuf::Struct>(GetArena());
}
return _impl_.kind_.struct_value_;
}
@ -1177,7 +1178,8 @@ inline ::google::protobuf::ListValue* Value::_internal_mutable_list_value() {
if (kind_case() != kListValue) {
clear_kind();
set_has_list_value();
_impl_.kind_.list_value_ = CreateMaybeMessage<::google::protobuf::ListValue>(GetArena());
_impl_.kind_.list_value_ =
::google::protobuf::Message::DefaultConstruct<::google::protobuf::ListValue>(GetArena());
}
return _impl_.kind_.list_value_;
}

@ -157,7 +157,7 @@ class PROTOBUF_EXPORT Timestamp final :
// implements Message ----------------------------------------------
Timestamp* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Timestamp>(arena);
return ::google::protobuf::Message::DefaultConstruct<Timestamp>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Timestamp& from);

@ -473,9 +473,9 @@ Type::Type(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
::uint32_t cached_has_bits = _impl_._has_bits_[0];
_impl_.source_context_ = (cached_has_bits & 0x00000001u)
? CreateMaybeMessage<::google::protobuf::SourceContext>(arena, *from._impl_.source_context_)
: nullptr;
_impl_.source_context_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::SourceContext>(
arena, *from._impl_.source_context_)
: nullptr;
_impl_.syntax_ = from._impl_.syntax_;
// @@protoc_insertion_point(copy_constructor:google.protobuf.Type)
@ -775,7 +775,8 @@ void Type::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protob
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
ABSL_DCHECK(from._impl_.source_context_ != nullptr);
if (_this->_impl_.source_context_ == nullptr) {
_this->_impl_.source_context_ = CreateMaybeMessage<::google::protobuf::SourceContext>(arena, *from._impl_.source_context_);
_this->_impl_.source_context_ =
::google::protobuf::Message::CopyConstruct<::google::protobuf::SourceContext>(arena, *from._impl_.source_context_);
} else {
_this->_impl_.source_context_->MergeFrom(*from._impl_.source_context_);
}
@ -1309,9 +1310,9 @@ Enum::Enum(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
::uint32_t cached_has_bits = _impl_._has_bits_[0];
_impl_.source_context_ = (cached_has_bits & 0x00000001u)
? CreateMaybeMessage<::google::protobuf::SourceContext>(arena, *from._impl_.source_context_)
: nullptr;
_impl_.source_context_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::SourceContext>(
arena, *from._impl_.source_context_)
: nullptr;
_impl_.syntax_ = from._impl_.syntax_;
// @@protoc_insertion_point(copy_constructor:google.protobuf.Enum)
@ -1588,7 +1589,8 @@ void Enum::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protob
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
ABSL_DCHECK(from._impl_.source_context_ != nullptr);
if (_this->_impl_.source_context_ == nullptr) {
_this->_impl_.source_context_ = CreateMaybeMessage<::google::protobuf::SourceContext>(arena, *from._impl_.source_context_);
_this->_impl_.source_context_ =
::google::protobuf::Message::CopyConstruct<::google::protobuf::SourceContext>(arena, *from._impl_.source_context_);
} else {
_this->_impl_.source_context_->MergeFrom(*from._impl_.source_context_);
}
@ -1921,9 +1923,9 @@ Option::Option(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
::uint32_t cached_has_bits = _impl_._has_bits_[0];
_impl_.value_ = (cached_has_bits & 0x00000001u)
? CreateMaybeMessage<::google::protobuf::Any>(arena, *from._impl_.value_)
: nullptr;
_impl_.value_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::Any>(
arena, *from._impl_.value_)
: nullptr;
// @@protoc_insertion_point(copy_constructor:google.protobuf.Option)
}
@ -2095,7 +2097,8 @@ void Option::MergeImpl(::google::protobuf::Message& to_msg, const ::google::prot
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
ABSL_DCHECK(from._impl_.value_ != nullptr);
if (_this->_impl_.value_ == nullptr) {
_this->_impl_.value_ = CreateMaybeMessage<::google::protobuf::Any>(arena, *from._impl_.value_);
_this->_impl_.value_ =
::google::protobuf::Message::CopyConstruct<::google::protobuf::Any>(arena, *from._impl_.value_);
} else {
_this->_impl_.value_->MergeFrom(*from._impl_.value_);
}

@ -291,7 +291,7 @@ class PROTOBUF_EXPORT Option final :
// implements Message ----------------------------------------------
Option* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Option>(arena);
return ::google::protobuf::Message::DefaultConstruct<Option>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Option& from);
@ -487,7 +487,7 @@ class PROTOBUF_EXPORT Field final :
// implements Message ----------------------------------------------
Field* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Field>(arena);
return ::google::protobuf::Message::DefaultConstruct<Field>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Field& from);
@ -858,7 +858,7 @@ class PROTOBUF_EXPORT EnumValue final :
// implements Message ----------------------------------------------
EnumValue* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<EnumValue>(arena);
return ::google::protobuf::Message::DefaultConstruct<EnumValue>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const EnumValue& from);
@ -1068,7 +1068,7 @@ class PROTOBUF_EXPORT Type final :
// implements Message ----------------------------------------------
Type* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Type>(arena);
return ::google::protobuf::Message::DefaultConstruct<Type>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Type& from);
@ -1364,7 +1364,7 @@ class PROTOBUF_EXPORT Enum final :
// implements Message ----------------------------------------------
Enum* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Enum>(arena);
return ::google::protobuf::Message::DefaultConstruct<Enum>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Enum& from);
@ -1872,7 +1872,7 @@ inline ::google::protobuf::SourceContext* Type::_internal_mutable_source_context
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_._has_bits_[0] |= 0x00000001u;
if (_impl_.source_context_ == nullptr) {
auto* p = CreateMaybeMessage<::google::protobuf::SourceContext>(GetArena());
auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::SourceContext>(GetArena());
_impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(p);
}
return _impl_.source_context_;
@ -2574,7 +2574,7 @@ inline ::google::protobuf::SourceContext* Enum::_internal_mutable_source_context
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_._has_bits_[0] |= 0x00000001u;
if (_impl_.source_context_ == nullptr) {
auto* p = CreateMaybeMessage<::google::protobuf::SourceContext>(GetArena());
auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::SourceContext>(GetArena());
_impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(p);
}
return _impl_.source_context_;
@ -2927,7 +2927,7 @@ inline ::google::protobuf::Any* Option::_internal_mutable_value() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_._has_bits_[0] |= 0x00000001u;
if (_impl_.value_ == nullptr) {
auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArena());
auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Any>(GetArena());
_impl_.value_ = reinterpret_cast<::google::protobuf::Any*>(p);
}
return _impl_.value_;

@ -181,7 +181,7 @@ class PROTOBUF_EXPORT UInt64Value final :
// implements Message ----------------------------------------------
UInt64Value* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<UInt64Value>(arena);
return ::google::protobuf::Message::DefaultConstruct<UInt64Value>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const UInt64Value& from);
@ -353,7 +353,7 @@ class PROTOBUF_EXPORT UInt32Value final :
// implements Message ----------------------------------------------
UInt32Value* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<UInt32Value>(arena);
return ::google::protobuf::Message::DefaultConstruct<UInt32Value>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const UInt32Value& from);
@ -525,7 +525,7 @@ class PROTOBUF_EXPORT StringValue final :
// implements Message ----------------------------------------------
StringValue* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<StringValue>(arena);
return ::google::protobuf::Message::DefaultConstruct<StringValue>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const StringValue& from);
@ -703,7 +703,7 @@ class PROTOBUF_EXPORT Int64Value final :
// implements Message ----------------------------------------------
Int64Value* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Int64Value>(arena);
return ::google::protobuf::Message::DefaultConstruct<Int64Value>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Int64Value& from);
@ -875,7 +875,7 @@ class PROTOBUF_EXPORT Int32Value final :
// implements Message ----------------------------------------------
Int32Value* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Int32Value>(arena);
return ::google::protobuf::Message::DefaultConstruct<Int32Value>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Int32Value& from);
@ -1047,7 +1047,7 @@ class PROTOBUF_EXPORT FloatValue final :
// implements Message ----------------------------------------------
FloatValue* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<FloatValue>(arena);
return ::google::protobuf::Message::DefaultConstruct<FloatValue>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const FloatValue& from);
@ -1219,7 +1219,7 @@ class PROTOBUF_EXPORT DoubleValue final :
// implements Message ----------------------------------------------
DoubleValue* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<DoubleValue>(arena);
return ::google::protobuf::Message::DefaultConstruct<DoubleValue>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const DoubleValue& from);
@ -1391,7 +1391,7 @@ class PROTOBUF_EXPORT BytesValue final :
// implements Message ----------------------------------------------
BytesValue* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<BytesValue>(arena);
return ::google::protobuf::Message::DefaultConstruct<BytesValue>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const BytesValue& from);
@ -1569,7 +1569,7 @@ class PROTOBUF_EXPORT BoolValue final :
// implements Message ----------------------------------------------
BoolValue* New(::google::protobuf::Arena* arena = nullptr) const final {
return CreateMaybeMessage<BoolValue>(arena);
return ::google::protobuf::Message::DefaultConstruct<BoolValue>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const BoolValue& from);

Loading…
Cancel
Save