Auto-generate files after cl/541943542

pull/13108/head
Protobuf Team Bot 2023-06-20 16:21:54 +00:00
parent a4408b1374
commit b2ffbdcfd6
8 changed files with 208 additions and 0 deletions

View File

@ -316,6 +316,7 @@ inline const std::string& Any::type_url() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Any::set_type_url(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.type_url_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.Any.type_url)
@ -326,21 +327,26 @@ inline std::string* Any::mutable_type_url() {
return _s;
}
inline const std::string& Any::_internal_type_url() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.type_url_.Get();
}
inline void Any::_internal_set_type_url(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.type_url_.Set(value, GetArenaForAllocation());
}
inline std::string* Any::_internal_mutable_type_url() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.type_url_.Mutable( GetArenaForAllocation());
}
inline std::string* Any::release_type_url() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Any.type_url)
return _impl_.type_url_.Release();
}
inline void Any::set_allocated_type_url(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.type_url_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.type_url_.IsDefault()) {
@ -361,6 +367,7 @@ inline const std::string& Any::value() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Any::set_value(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.value_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.Any.value)
@ -371,21 +378,26 @@ inline std::string* Any::mutable_value() {
return _s;
}
inline const std::string& Any::_internal_value() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.value_.Get();
}
inline void Any::_internal_set_value(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.value_.Set(value, GetArenaForAllocation());
}
inline std::string* Any::_internal_mutable_value() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.value_.Mutable( GetArenaForAllocation());
}
inline std::string* Any::release_value() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Any.value)
return _impl_.value_.Release();
}
inline void Any::set_allocated_value(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.value_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.value_.IsDefault()) {

View File

@ -820,6 +820,7 @@ inline const std::string& Api::name() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Api::set_name(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.Api.name)
@ -830,21 +831,26 @@ inline std::string* Api::mutable_name() {
return _s;
}
inline const std::string& Api::_internal_name() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.name_.Get();
}
inline void Api::_internal_set_name(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.name_.Set(value, GetArenaForAllocation());
}
inline std::string* Api::_internal_mutable_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.name_.Mutable( GetArenaForAllocation());
}
inline std::string* Api::release_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Api.name)
return _impl_.name_.Release();
}
inline void Api::set_allocated_name(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.name_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.name_.IsDefault()) {
@ -954,6 +960,7 @@ inline const std::string& Api::version() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Api::set_version(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.version_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.Api.version)
@ -964,21 +971,26 @@ inline std::string* Api::mutable_version() {
return _s;
}
inline const std::string& Api::_internal_version() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.version_.Get();
}
inline void Api::_internal_set_version(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.version_.Set(value, GetArenaForAllocation());
}
inline std::string* Api::_internal_mutable_version() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.version_.Mutable( GetArenaForAllocation());
}
inline std::string* Api::release_version() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Api.version)
return _impl_.version_.Release();
}
inline void Api::set_allocated_version(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.version_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.version_.IsDefault()) {
@ -995,6 +1007,7 @@ inline bool Api::has_source_context() const {
return value;
}
inline const ::google::protobuf::SourceContext& Api::_internal_source_context() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
const ::google::protobuf::SourceContext* p = _impl_.source_context_;
return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::SourceContext&>(::google::protobuf::_SourceContext_default_instance_);
}
@ -1003,6 +1016,7 @@ inline const ::google::protobuf::SourceContext& Api::source_context() const {
return _internal_source_context();
}
inline void Api::unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_);
}
@ -1015,6 +1029,7 @@ inline void Api::unsafe_arena_set_allocated_source_context(::google::protobuf::S
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Api.source_context)
}
inline ::google::protobuf::SourceContext* Api::release_source_context() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_._has_bits_[0] &= ~0x00000001u;
::google::protobuf::SourceContext* released = _impl_.source_context_;
@ -1033,6 +1048,7 @@ inline ::google::protobuf::SourceContext* Api::release_source_context() {
return released;
}
inline ::google::protobuf::SourceContext* Api::unsafe_arena_release_source_context() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Api.source_context)
_impl_._has_bits_[0] &= ~0x00000001u;
@ -1041,6 +1057,7 @@ inline ::google::protobuf::SourceContext* Api::unsafe_arena_release_source_conte
return temp;
}
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>(GetArenaForAllocation());
@ -1055,6 +1072,7 @@ inline ::google::protobuf::SourceContext* Api::mutable_source_context() {
}
inline void Api::set_allocated_source_context(::google::protobuf::SourceContext* value) {
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
if (message_arena == nullptr) {
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_);
}
@ -1133,9 +1151,11 @@ inline void Api::set_syntax(::google::protobuf::Syntax value) {
// @@protoc_insertion_point(field_set:google.protobuf.Api.syntax)
}
inline ::google::protobuf::Syntax Api::_internal_syntax() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return static_cast<::google::protobuf::Syntax>(_impl_.syntax_);
}
inline void Api::_internal_set_syntax(::google::protobuf::Syntax value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.syntax_ = value;
}
@ -1155,6 +1175,7 @@ inline const std::string& Method::name() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Method::set_name(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.Method.name)
@ -1165,21 +1186,26 @@ inline std::string* Method::mutable_name() {
return _s;
}
inline const std::string& Method::_internal_name() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.name_.Get();
}
inline void Method::_internal_set_name(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.name_.Set(value, GetArenaForAllocation());
}
inline std::string* Method::_internal_mutable_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.name_.Mutable( GetArenaForAllocation());
}
inline std::string* Method::release_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Method.name)
return _impl_.name_.Release();
}
inline void Method::set_allocated_name(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.name_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.name_.IsDefault()) {
@ -1200,6 +1226,7 @@ inline const std::string& Method::request_type_url() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Method::set_request_type_url(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.request_type_url_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.Method.request_type_url)
@ -1210,21 +1237,26 @@ inline std::string* Method::mutable_request_type_url() {
return _s;
}
inline const std::string& Method::_internal_request_type_url() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.request_type_url_.Get();
}
inline void Method::_internal_set_request_type_url(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.request_type_url_.Set(value, GetArenaForAllocation());
}
inline std::string* Method::_internal_mutable_request_type_url() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.request_type_url_.Mutable( GetArenaForAllocation());
}
inline std::string* Method::release_request_type_url() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Method.request_type_url)
return _impl_.request_type_url_.Release();
}
inline void Method::set_allocated_request_type_url(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.request_type_url_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.request_type_url_.IsDefault()) {
@ -1247,9 +1279,11 @@ inline void Method::set_request_streaming(bool value) {
// @@protoc_insertion_point(field_set:google.protobuf.Method.request_streaming)
}
inline bool Method::_internal_request_streaming() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.request_streaming_;
}
inline void Method::_internal_set_request_streaming(bool value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.request_streaming_ = value;
}
@ -1265,6 +1299,7 @@ inline const std::string& Method::response_type_url() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Method::set_response_type_url(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.response_type_url_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.Method.response_type_url)
@ -1275,21 +1310,26 @@ inline std::string* Method::mutable_response_type_url() {
return _s;
}
inline const std::string& Method::_internal_response_type_url() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.response_type_url_.Get();
}
inline void Method::_internal_set_response_type_url(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.response_type_url_.Set(value, GetArenaForAllocation());
}
inline std::string* Method::_internal_mutable_response_type_url() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.response_type_url_.Mutable( GetArenaForAllocation());
}
inline std::string* Method::release_response_type_url() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Method.response_type_url)
return _impl_.response_type_url_.Release();
}
inline void Method::set_allocated_response_type_url(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.response_type_url_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.response_type_url_.IsDefault()) {
@ -1312,9 +1352,11 @@ inline void Method::set_response_streaming(bool value) {
// @@protoc_insertion_point(field_set:google.protobuf.Method.response_streaming)
}
inline bool Method::_internal_response_streaming() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.response_streaming_;
}
inline void Method::_internal_set_response_streaming(bool value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.response_streaming_ = value;
}
@ -1375,9 +1417,11 @@ inline void Method::set_syntax(::google::protobuf::Syntax value) {
// @@protoc_insertion_point(field_set:google.protobuf.Method.syntax)
}
inline ::google::protobuf::Syntax Method::_internal_syntax() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return static_cast<::google::protobuf::Syntax>(_impl_.syntax_);
}
inline void Method::_internal_set_syntax(::google::protobuf::Syntax value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.syntax_ = value;
}
@ -1397,6 +1441,7 @@ inline const std::string& Mixin::name() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Mixin::set_name(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.Mixin.name)
@ -1407,21 +1452,26 @@ inline std::string* Mixin::mutable_name() {
return _s;
}
inline const std::string& Mixin::_internal_name() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.name_.Get();
}
inline void Mixin::_internal_set_name(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.name_.Set(value, GetArenaForAllocation());
}
inline std::string* Mixin::_internal_mutable_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.name_.Mutable( GetArenaForAllocation());
}
inline std::string* Mixin::release_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Mixin.name)
return _impl_.name_.Release();
}
inline void Mixin::set_allocated_name(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.name_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.name_.IsDefault()) {
@ -1442,6 +1492,7 @@ inline const std::string& Mixin::root() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Mixin::set_root(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.root_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.Mixin.root)
@ -1452,21 +1503,26 @@ inline std::string* Mixin::mutable_root() {
return _s;
}
inline const std::string& Mixin::_internal_root() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.root_.Get();
}
inline void Mixin::_internal_set_root(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.root_.Set(value, GetArenaForAllocation());
}
inline std::string* Mixin::_internal_mutable_root() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.root_.Mutable( GetArenaForAllocation());
}
inline std::string* Mixin::release_root() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Mixin.root)
return _impl_.root_.Release();
}
inline void Mixin::set_allocated_root(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.root_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.root_.IsDefault()) {

View File

@ -270,9 +270,11 @@ inline void Duration::set_seconds(::int64_t value) {
// @@protoc_insertion_point(field_set:google.protobuf.Duration.seconds)
}
inline ::int64_t Duration::_internal_seconds() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.seconds_;
}
inline void Duration::_internal_set_seconds(::int64_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.seconds_ = value;
}
@ -290,9 +292,11 @@ inline void Duration::set_nanos(::int32_t value) {
// @@protoc_insertion_point(field_set:google.protobuf.Duration.nanos)
}
inline ::int32_t Duration::_internal_nanos() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.nanos_;
}
inline void Duration::_internal_set_nanos(::int32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.nanos_ = value;
}

View File

@ -262,6 +262,7 @@ inline const std::string& SourceContext::file_name() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void SourceContext::set_file_name(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.file_name_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name)
@ -272,21 +273,26 @@ inline std::string* SourceContext::mutable_file_name() {
return _s;
}
inline const std::string& SourceContext::_internal_file_name() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.file_name_.Get();
}
inline void SourceContext::_internal_set_file_name(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.file_name_.Set(value, GetArenaForAllocation());
}
inline std::string* SourceContext::_internal_mutable_file_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.file_name_.Mutable( GetArenaForAllocation());
}
inline std::string* SourceContext::release_file_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.SourceContext.file_name)
return _impl_.file_name_.Release();
}
inline void SourceContext::set_allocated_file_name(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.file_name_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.file_name_.IsDefault()) {

View File

@ -892,6 +892,7 @@ inline const std::string& Value::string_value() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Value::set_string_value(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
if (kind_case() != kStringValue) {
clear_kind();
@ -907,12 +908,14 @@ inline std::string* Value::mutable_string_value() {
return _s;
}
inline const std::string& Value::_internal_string_value() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
if (kind_case() != kStringValue) {
return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
}
return _impl_.kind_.string_value_.Get();
}
inline void Value::_internal_set_string_value(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
if (kind_case() != kStringValue) {
clear_kind();
@ -922,6 +925,7 @@ inline void Value::_internal_set_string_value(const std::string& value) {
_impl_.kind_.string_value_.Set(value, GetArenaForAllocation());
}
inline std::string* Value::_internal_mutable_string_value() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
if (kind_case() != kStringValue) {
clear_kind();
@ -931,6 +935,7 @@ inline std::string* Value::_internal_mutable_string_value() {
return _impl_.kind_.string_value_.Mutable( GetArenaForAllocation());
}
inline std::string* Value::release_string_value() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Value.string_value)
if (kind_case() != kStringValue) {
return nullptr;
@ -939,6 +944,7 @@ inline std::string* Value::release_string_value() {
return _impl_.kind_.string_value_.Release();
}
inline void Value::set_allocated_string_value(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
if (has_kind()) {
clear_kind();
}

View File

@ -270,9 +270,11 @@ inline void Timestamp::set_seconds(::int64_t value) {
// @@protoc_insertion_point(field_set:google.protobuf.Timestamp.seconds)
}
inline ::int64_t Timestamp::_internal_seconds() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.seconds_;
}
inline void Timestamp::_internal_set_seconds(::int64_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.seconds_ = value;
}
@ -290,9 +292,11 @@ inline void Timestamp::set_nanos(::int32_t value) {
// @@protoc_insertion_point(field_set:google.protobuf.Timestamp.nanos)
}
inline ::int32_t Timestamp::_internal_nanos() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.nanos_;
}
inline void Timestamp::_internal_set_nanos(::int32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.nanos_ = value;
}

View File

@ -1506,6 +1506,7 @@ inline const std::string& Type::name() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Type::set_name(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.Type.name)
@ -1516,21 +1517,26 @@ inline std::string* Type::mutable_name() {
return _s;
}
inline const std::string& Type::_internal_name() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.name_.Get();
}
inline void Type::_internal_set_name(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.name_.Set(value, GetArenaForAllocation());
}
inline std::string* Type::_internal_mutable_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.name_.Mutable( GetArenaForAllocation());
}
inline std::string* Type::release_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Type.name)
return _impl_.name_.Release();
}
inline void Type::set_allocated_name(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.name_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.name_.IsDefault()) {
@ -1735,6 +1741,7 @@ inline bool Type::has_source_context() const {
return value;
}
inline const ::google::protobuf::SourceContext& Type::_internal_source_context() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
const ::google::protobuf::SourceContext* p = _impl_.source_context_;
return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::SourceContext&>(::google::protobuf::_SourceContext_default_instance_);
}
@ -1743,6 +1750,7 @@ inline const ::google::protobuf::SourceContext& Type::source_context() const {
return _internal_source_context();
}
inline void Type::unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_);
}
@ -1755,6 +1763,7 @@ inline void Type::unsafe_arena_set_allocated_source_context(::google::protobuf::
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Type.source_context)
}
inline ::google::protobuf::SourceContext* Type::release_source_context() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_._has_bits_[0] &= ~0x00000001u;
::google::protobuf::SourceContext* released = _impl_.source_context_;
@ -1773,6 +1782,7 @@ inline ::google::protobuf::SourceContext* Type::release_source_context() {
return released;
}
inline ::google::protobuf::SourceContext* Type::unsafe_arena_release_source_context() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Type.source_context)
_impl_._has_bits_[0] &= ~0x00000001u;
@ -1781,6 +1791,7 @@ inline ::google::protobuf::SourceContext* Type::unsafe_arena_release_source_cont
return temp;
}
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>(GetArenaForAllocation());
@ -1795,6 +1806,7 @@ inline ::google::protobuf::SourceContext* Type::mutable_source_context() {
}
inline void Type::set_allocated_source_context(::google::protobuf::SourceContext* value) {
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
if (message_arena == nullptr) {
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_);
}
@ -1827,9 +1839,11 @@ inline void Type::set_syntax(::google::protobuf::Syntax value) {
// @@protoc_insertion_point(field_set:google.protobuf.Type.syntax)
}
inline ::google::protobuf::Syntax Type::_internal_syntax() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return static_cast<::google::protobuf::Syntax>(_impl_.syntax_);
}
inline void Type::_internal_set_syntax(::google::protobuf::Syntax value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.syntax_ = value;
}
@ -1845,6 +1859,7 @@ inline const std::string& Type::edition() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Type::set_edition(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.edition_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.Type.edition)
@ -1855,21 +1870,26 @@ inline std::string* Type::mutable_edition() {
return _s;
}
inline const std::string& Type::_internal_edition() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.edition_.Get();
}
inline void Type::_internal_set_edition(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.edition_.Set(value, GetArenaForAllocation());
}
inline std::string* Type::_internal_mutable_edition() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.edition_.Mutable( GetArenaForAllocation());
}
inline std::string* Type::release_edition() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Type.edition)
return _impl_.edition_.Release();
}
inline void Type::set_allocated_edition(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.edition_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.edition_.IsDefault()) {
@ -1896,9 +1916,11 @@ inline void Field::set_kind(::google::protobuf::Field_Kind value) {
// @@protoc_insertion_point(field_set:google.protobuf.Field.kind)
}
inline ::google::protobuf::Field_Kind Field::_internal_kind() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return static_cast<::google::protobuf::Field_Kind>(_impl_.kind_);
}
inline void Field::_internal_set_kind(::google::protobuf::Field_Kind value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.kind_ = value;
}
@ -1916,9 +1938,11 @@ inline void Field::set_cardinality(::google::protobuf::Field_Cardinality value)
// @@protoc_insertion_point(field_set:google.protobuf.Field.cardinality)
}
inline ::google::protobuf::Field_Cardinality Field::_internal_cardinality() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return static_cast<::google::protobuf::Field_Cardinality>(_impl_.cardinality_);
}
inline void Field::_internal_set_cardinality(::google::protobuf::Field_Cardinality value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.cardinality_ = value;
}
@ -1936,9 +1960,11 @@ inline void Field::set_number(::int32_t value) {
// @@protoc_insertion_point(field_set:google.protobuf.Field.number)
}
inline ::int32_t Field::_internal_number() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.number_;
}
inline void Field::_internal_set_number(::int32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.number_ = value;
}
@ -1954,6 +1980,7 @@ inline const std::string& Field::name() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Field::set_name(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.Field.name)
@ -1964,21 +1991,26 @@ inline std::string* Field::mutable_name() {
return _s;
}
inline const std::string& Field::_internal_name() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.name_.Get();
}
inline void Field::_internal_set_name(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.name_.Set(value, GetArenaForAllocation());
}
inline std::string* Field::_internal_mutable_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.name_.Mutable( GetArenaForAllocation());
}
inline std::string* Field::release_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Field.name)
return _impl_.name_.Release();
}
inline void Field::set_allocated_name(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.name_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.name_.IsDefault()) {
@ -1999,6 +2031,7 @@ inline const std::string& Field::type_url() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Field::set_type_url(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.type_url_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.Field.type_url)
@ -2009,21 +2042,26 @@ inline std::string* Field::mutable_type_url() {
return _s;
}
inline const std::string& Field::_internal_type_url() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.type_url_.Get();
}
inline void Field::_internal_set_type_url(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.type_url_.Set(value, GetArenaForAllocation());
}
inline std::string* Field::_internal_mutable_type_url() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.type_url_.Mutable( GetArenaForAllocation());
}
inline std::string* Field::release_type_url() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Field.type_url)
return _impl_.type_url_.Release();
}
inline void Field::set_allocated_type_url(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.type_url_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.type_url_.IsDefault()) {
@ -2046,9 +2084,11 @@ inline void Field::set_oneof_index(::int32_t value) {
// @@protoc_insertion_point(field_set:google.protobuf.Field.oneof_index)
}
inline ::int32_t Field::_internal_oneof_index() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.oneof_index_;
}
inline void Field::_internal_set_oneof_index(::int32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.oneof_index_ = value;
}
@ -2066,9 +2106,11 @@ inline void Field::set_packed(bool value) {
// @@protoc_insertion_point(field_set:google.protobuf.Field.packed)
}
inline bool Field::_internal_packed() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.packed_;
}
inline void Field::_internal_set_packed(bool value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.packed_ = value;
}
@ -2130,6 +2172,7 @@ inline const std::string& Field::json_name() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Field::set_json_name(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.json_name_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.Field.json_name)
@ -2140,21 +2183,26 @@ inline std::string* Field::mutable_json_name() {
return _s;
}
inline const std::string& Field::_internal_json_name() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.json_name_.Get();
}
inline void Field::_internal_set_json_name(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.json_name_.Set(value, GetArenaForAllocation());
}
inline std::string* Field::_internal_mutable_json_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.json_name_.Mutable( GetArenaForAllocation());
}
inline std::string* Field::release_json_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Field.json_name)
return _impl_.json_name_.Release();
}
inline void Field::set_allocated_json_name(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.json_name_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.json_name_.IsDefault()) {
@ -2175,6 +2223,7 @@ inline const std::string& Field::default_value() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Field::set_default_value(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.default_value_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.Field.default_value)
@ -2185,21 +2234,26 @@ inline std::string* Field::mutable_default_value() {
return _s;
}
inline const std::string& Field::_internal_default_value() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.default_value_.Get();
}
inline void Field::_internal_set_default_value(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.default_value_.Set(value, GetArenaForAllocation());
}
inline std::string* Field::_internal_mutable_default_value() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.default_value_.Mutable( GetArenaForAllocation());
}
inline std::string* Field::release_default_value() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Field.default_value)
return _impl_.default_value_.Release();
}
inline void Field::set_allocated_default_value(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.default_value_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.default_value_.IsDefault()) {
@ -2224,6 +2278,7 @@ inline const std::string& Enum::name() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Enum::set_name(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.Enum.name)
@ -2234,21 +2289,26 @@ inline std::string* Enum::mutable_name() {
return _s;
}
inline const std::string& Enum::_internal_name() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.name_.Get();
}
inline void Enum::_internal_set_name(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.name_.Set(value, GetArenaForAllocation());
}
inline std::string* Enum::_internal_mutable_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.name_.Mutable( GetArenaForAllocation());
}
inline std::string* Enum::release_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Enum.name)
return _impl_.name_.Release();
}
inline void Enum::set_allocated_name(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.name_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.name_.IsDefault()) {
@ -2357,6 +2417,7 @@ inline bool Enum::has_source_context() const {
return value;
}
inline const ::google::protobuf::SourceContext& Enum::_internal_source_context() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
const ::google::protobuf::SourceContext* p = _impl_.source_context_;
return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::SourceContext&>(::google::protobuf::_SourceContext_default_instance_);
}
@ -2365,6 +2426,7 @@ inline const ::google::protobuf::SourceContext& Enum::source_context() const {
return _internal_source_context();
}
inline void Enum::unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_);
}
@ -2377,6 +2439,7 @@ inline void Enum::unsafe_arena_set_allocated_source_context(::google::protobuf::
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Enum.source_context)
}
inline ::google::protobuf::SourceContext* Enum::release_source_context() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_._has_bits_[0] &= ~0x00000001u;
::google::protobuf::SourceContext* released = _impl_.source_context_;
@ -2395,6 +2458,7 @@ inline ::google::protobuf::SourceContext* Enum::release_source_context() {
return released;
}
inline ::google::protobuf::SourceContext* Enum::unsafe_arena_release_source_context() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Enum.source_context)
_impl_._has_bits_[0] &= ~0x00000001u;
@ -2403,6 +2467,7 @@ inline ::google::protobuf::SourceContext* Enum::unsafe_arena_release_source_cont
return temp;
}
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>(GetArenaForAllocation());
@ -2417,6 +2482,7 @@ inline ::google::protobuf::SourceContext* Enum::mutable_source_context() {
}
inline void Enum::set_allocated_source_context(::google::protobuf::SourceContext* value) {
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
if (message_arena == nullptr) {
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_);
}
@ -2449,9 +2515,11 @@ inline void Enum::set_syntax(::google::protobuf::Syntax value) {
// @@protoc_insertion_point(field_set:google.protobuf.Enum.syntax)
}
inline ::google::protobuf::Syntax Enum::_internal_syntax() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return static_cast<::google::protobuf::Syntax>(_impl_.syntax_);
}
inline void Enum::_internal_set_syntax(::google::protobuf::Syntax value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.syntax_ = value;
}
@ -2467,6 +2535,7 @@ inline const std::string& Enum::edition() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Enum::set_edition(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.edition_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.Enum.edition)
@ -2477,21 +2546,26 @@ inline std::string* Enum::mutable_edition() {
return _s;
}
inline const std::string& Enum::_internal_edition() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.edition_.Get();
}
inline void Enum::_internal_set_edition(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.edition_.Set(value, GetArenaForAllocation());
}
inline std::string* Enum::_internal_mutable_edition() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.edition_.Mutable( GetArenaForAllocation());
}
inline std::string* Enum::release_edition() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Enum.edition)
return _impl_.edition_.Release();
}
inline void Enum::set_allocated_edition(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.edition_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.edition_.IsDefault()) {
@ -2516,6 +2590,7 @@ inline const std::string& EnumValue::name() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void EnumValue::set_name(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.EnumValue.name)
@ -2526,21 +2601,26 @@ inline std::string* EnumValue::mutable_name() {
return _s;
}
inline const std::string& EnumValue::_internal_name() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.name_.Get();
}
inline void EnumValue::_internal_set_name(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.name_.Set(value, GetArenaForAllocation());
}
inline std::string* EnumValue::_internal_mutable_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.name_.Mutable( GetArenaForAllocation());
}
inline std::string* EnumValue::release_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.EnumValue.name)
return _impl_.name_.Release();
}
inline void EnumValue::set_allocated_name(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.name_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.name_.IsDefault()) {
@ -2563,9 +2643,11 @@ inline void EnumValue::set_number(::int32_t value) {
// @@protoc_insertion_point(field_set:google.protobuf.EnumValue.number)
}
inline ::int32_t EnumValue::_internal_number() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.number_;
}
inline void EnumValue::_internal_set_number(::int32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.number_ = value;
}
@ -2631,6 +2713,7 @@ inline const std::string& Option::name() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Option::set_name(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.Option.name)
@ -2641,21 +2724,26 @@ inline std::string* Option::mutable_name() {
return _s;
}
inline const std::string& Option::_internal_name() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.name_.Get();
}
inline void Option::_internal_set_name(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.name_.Set(value, GetArenaForAllocation());
}
inline std::string* Option::_internal_mutable_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.name_.Mutable( GetArenaForAllocation());
}
inline std::string* Option::release_name() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Option.name)
return _impl_.name_.Release();
}
inline void Option::set_allocated_name(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.name_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.name_.IsDefault()) {
@ -2672,6 +2760,7 @@ inline bool Option::has_value() const {
return value;
}
inline const ::google::protobuf::Any& Option::_internal_value() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
const ::google::protobuf::Any* p = _impl_.value_;
return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Any&>(::google::protobuf::_Any_default_instance_);
}
@ -2680,6 +2769,7 @@ inline const ::google::protobuf::Any& Option::value() const {
return _internal_value();
}
inline void Option::unsafe_arena_set_allocated_value(::google::protobuf::Any* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_);
}
@ -2692,6 +2782,7 @@ inline void Option::unsafe_arena_set_allocated_value(::google::protobuf::Any* va
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Option.value)
}
inline ::google::protobuf::Any* Option::release_value() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_._has_bits_[0] &= ~0x00000001u;
::google::protobuf::Any* released = _impl_.value_;
@ -2710,6 +2801,7 @@ inline ::google::protobuf::Any* Option::release_value() {
return released;
}
inline ::google::protobuf::Any* Option::unsafe_arena_release_value() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.Option.value)
_impl_._has_bits_[0] &= ~0x00000001u;
@ -2718,6 +2810,7 @@ inline ::google::protobuf::Any* Option::unsafe_arena_release_value() {
return temp;
}
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>(GetArenaForAllocation());
@ -2732,6 +2825,7 @@ inline ::google::protobuf::Any* Option::mutable_value() {
}
inline void Option::set_allocated_value(::google::protobuf::Any* value) {
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
if (message_arena == nullptr) {
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_);
}

View File

@ -1574,9 +1574,11 @@ inline void DoubleValue::set_value(double value) {
// @@protoc_insertion_point(field_set:google.protobuf.DoubleValue.value)
}
inline double DoubleValue::_internal_value() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.value_;
}
inline void DoubleValue::_internal_set_value(double value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.value_ = value;
}
@ -1598,9 +1600,11 @@ inline void FloatValue::set_value(float value) {
// @@protoc_insertion_point(field_set:google.protobuf.FloatValue.value)
}
inline float FloatValue::_internal_value() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.value_;
}
inline void FloatValue::_internal_set_value(float value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.value_ = value;
}
@ -1622,9 +1626,11 @@ inline void Int64Value::set_value(::int64_t value) {
// @@protoc_insertion_point(field_set:google.protobuf.Int64Value.value)
}
inline ::int64_t Int64Value::_internal_value() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.value_;
}
inline void Int64Value::_internal_set_value(::int64_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.value_ = value;
}
@ -1646,9 +1652,11 @@ inline void UInt64Value::set_value(::uint64_t value) {
// @@protoc_insertion_point(field_set:google.protobuf.UInt64Value.value)
}
inline ::uint64_t UInt64Value::_internal_value() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.value_;
}
inline void UInt64Value::_internal_set_value(::uint64_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.value_ = value;
}
@ -1670,9 +1678,11 @@ inline void Int32Value::set_value(::int32_t value) {
// @@protoc_insertion_point(field_set:google.protobuf.Int32Value.value)
}
inline ::int32_t Int32Value::_internal_value() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.value_;
}
inline void Int32Value::_internal_set_value(::int32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.value_ = value;
}
@ -1694,9 +1704,11 @@ inline void UInt32Value::set_value(::uint32_t value) {
// @@protoc_insertion_point(field_set:google.protobuf.UInt32Value.value)
}
inline ::uint32_t UInt32Value::_internal_value() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.value_;
}
inline void UInt32Value::_internal_set_value(::uint32_t value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.value_ = value;
}
@ -1718,9 +1730,11 @@ inline void BoolValue::set_value(bool value) {
// @@protoc_insertion_point(field_set:google.protobuf.BoolValue.value)
}
inline bool BoolValue::_internal_value() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.value_;
}
inline void BoolValue::_internal_set_value(bool value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.value_ = value;
}
@ -1740,6 +1754,7 @@ inline const std::string& StringValue::value() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void StringValue::set_value(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.value_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.StringValue.value)
@ -1750,21 +1765,26 @@ inline std::string* StringValue::mutable_value() {
return _s;
}
inline const std::string& StringValue::_internal_value() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.value_.Get();
}
inline void StringValue::_internal_set_value(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.value_.Set(value, GetArenaForAllocation());
}
inline std::string* StringValue::_internal_mutable_value() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.value_.Mutable( GetArenaForAllocation());
}
inline std::string* StringValue::release_value() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.StringValue.value)
return _impl_.value_.Release();
}
inline void StringValue::set_allocated_value(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.value_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.value_.IsDefault()) {
@ -1789,6 +1809,7 @@ inline const std::string& BytesValue::value() const {
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void BytesValue::set_value(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.value_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.BytesValue.value)
@ -1799,21 +1820,26 @@ inline std::string* BytesValue::mutable_value() {
return _s;
}
inline const std::string& BytesValue::_internal_value() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.value_.Get();
}
inline void BytesValue::_internal_set_value(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
_impl_.value_.Set(value, GetArenaForAllocation());
}
inline std::string* BytesValue::_internal_mutable_value() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
;
return _impl_.value_.Mutable( GetArenaForAllocation());
}
inline std::string* BytesValue::release_value() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.protobuf.BytesValue.value)
return _impl_.value_.Release();
}
inline void BytesValue::set_allocated_value(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.value_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.value_.IsDefault()) {