From deafb895f082a775a48732f2262a4955f0ba2f40 Mon Sep 17 00:00:00 2001 From: Mike Kruskal Date: Mon, 10 Oct 2022 22:22:56 -0700 Subject: [PATCH] Regenerate wkt protos --- objectivec/GPBAny.pbobjc.h | 1 - objectivec/GPBTimestamp.pbobjc.h | 2 - src/google/protobuf/any.pb.cc | 5 + src/google/protobuf/any.pb.h | 10 - src/google/protobuf/api.pb.cc | 15 ++ src/google/protobuf/api.pb.h | 40 --- src/google/protobuf/duration.pb.cc | 19 +- src/google/protobuf/empty.pb.cc | 1 + src/google/protobuf/field_mask.pb.cc | 5 + src/google/protobuf/source_context.pb.cc | 5 + src/google/protobuf/source_context.pb.h | 5 - src/google/protobuf/struct.pb.cc | 16 +- src/google/protobuf/struct.pb.h | 48 ++-- src/google/protobuf/timestamp.pb.cc | 19 +- src/google/protobuf/type.pb.cc | 40 ++- src/google/protobuf/type.pb.h | 320 +++++++++-------------- src/google/protobuf/wrappers.pb.cc | 122 +++++---- src/google/protobuf/wrappers.pb.h | 10 - 18 files changed, 308 insertions(+), 375 deletions(-) diff --git a/objectivec/GPBAny.pbobjc.h b/objectivec/GPBAny.pbobjc.h index 3f40181ae6..3edf349865 100644 --- a/objectivec/GPBAny.pbobjc.h +++ b/objectivec/GPBAny.pbobjc.h @@ -99,7 +99,6 @@ typedef GPB_ENUM(GPBAny_FieldNumber) { * in the type URL, for example "foo.bar.com/x/y.z" will yield type * name "y.z". * - * * JSON * * The JSON representation of an `Any` value uses the regular diff --git a/objectivec/GPBTimestamp.pbobjc.h b/objectivec/GPBTimestamp.pbobjc.h index 0f1acdd8c2..ebed8c8266 100644 --- a/objectivec/GPBTimestamp.pbobjc.h +++ b/objectivec/GPBTimestamp.pbobjc.h @@ -95,7 +95,6 @@ typedef GPB_ENUM(GPBTimestamp_FieldNumber) { * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) * .setNanos((int) ((millis % 1000) * 1000000)).build(); * - * * Example 5: Compute Timestamp from Java `Instant.now()`. * * Instant now = Instant.now(); @@ -104,7 +103,6 @@ typedef GPB_ENUM(GPBTimestamp_FieldNumber) { * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) * .setNanos(now.getNano()).build(); * - * * Example 6: Compute Timestamp from current time in Python. * * timestamp = Timestamp() diff --git a/src/google/protobuf/any.pb.cc b/src/google/protobuf/any.pb.cc index 514da7116a..9649411d68 100644 --- a/src/google/protobuf/any.pb.cc +++ b/src/google/protobuf/any.pb.cc @@ -218,6 +218,7 @@ void Any::Clear() { } const char* Any::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -267,6 +268,7 @@ failure: uint8_t* Any::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Any) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -296,6 +298,7 @@ uint8_t* Any::_InternalSerialize( } size_t Any::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Any) size_t total_size = 0; @@ -330,6 +333,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Any::GetClassData() const { re void Any::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Any) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -371,6 +375,7 @@ void Any::InternalSwap(Any* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata Any::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fany_2eproto_getter, &descriptor_table_google_2fprotobuf_2fany_2eproto_once, file_level_metadata_google_2fprotobuf_2fany_2eproto[0]); diff --git a/src/google/protobuf/any.pb.h b/src/google/protobuf/any.pb.h index 01ca5956e8..3d1e46fcc0 100644 --- a/src/google/protobuf/any.pb.h +++ b/src/google/protobuf/any.pb.h @@ -320,11 +320,6 @@ inline std::string* Any::release_type_url() { return _impl_.type_url_.Release(); } inline void Any::set_allocated_type_url(std::string* type_url) { - if (type_url != nullptr) { - - } else { - - } _impl_.type_url_.SetAllocated(type_url, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.type_url_.IsDefault()) { @@ -370,11 +365,6 @@ inline std::string* Any::release_value() { return _impl_.value_.Release(); } inline void Any::set_allocated_value(std::string* value) { - if (value != nullptr) { - - } else { - - } _impl_.value_.SetAllocated(value, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.value_.IsDefault()) { diff --git a/src/google/protobuf/api.pb.cc b/src/google/protobuf/api.pb.cc index 865bf5963b..da04763dbe 100644 --- a/src/google/protobuf/api.pb.cc +++ b/src/google/protobuf/api.pb.cc @@ -329,6 +329,7 @@ void Api::Clear() { } const char* Api::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -435,6 +436,7 @@ failure: uint8_t* Api::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Api) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -506,6 +508,7 @@ uint8_t* Api::_InternalSerialize( } size_t Api::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Api) size_t total_size = 0; @@ -574,6 +577,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Api::GetClassData() const { re void Api::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Api) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -634,6 +638,7 @@ void Api::InternalSwap(Api* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata Api::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fapi_2eproto_getter, &descriptor_table_google_2fprotobuf_2fapi_2eproto_once, file_level_metadata_google_2fprotobuf_2fapi_2eproto[0]); @@ -763,6 +768,7 @@ void Method::Clear() { } const char* Method::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -861,6 +867,7 @@ failure: uint8_t* Method::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Method) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -931,6 +938,7 @@ uint8_t* Method::_InternalSerialize( } size_t Method::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Method) size_t total_size = 0; @@ -995,6 +1003,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Method::GetClassData() const { void Method::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Method) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -1060,6 +1069,7 @@ void Method::InternalSwap(Method* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata Method::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fapi_2eproto_getter, &descriptor_table_google_2fprotobuf_2fapi_2eproto_once, file_level_metadata_google_2fprotobuf_2fapi_2eproto[1]); @@ -1154,6 +1164,7 @@ void Mixin::Clear() { } const char* Mixin::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -1204,6 +1215,7 @@ failure: uint8_t* Mixin::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Mixin) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1237,6 +1249,7 @@ uint8_t* Mixin::_InternalSerialize( } size_t Mixin::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Mixin) size_t total_size = 0; @@ -1271,6 +1284,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Mixin::GetClassData() const { void Mixin::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Mixin) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -1312,6 +1326,7 @@ void Mixin::InternalSwap(Mixin* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata Mixin::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fapi_2eproto_getter, &descriptor_table_google_2fprotobuf_2fapi_2eproto_once, file_level_metadata_google_2fprotobuf_2fapi_2eproto[2]); diff --git a/src/google/protobuf/api.pb.h b/src/google/protobuf/api.pb.h index 20c1f5a78b..2f9a865ec3 100644 --- a/src/google/protobuf/api.pb.h +++ b/src/google/protobuf/api.pb.h @@ -792,11 +792,6 @@ inline std::string* Api::release_name() { return _impl_.name_.Release(); } inline void Api::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } _impl_.name_.SetAllocated(name, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { @@ -919,11 +914,6 @@ inline std::string* Api::release_version() { return _impl_.version_.Release(); } inline void Api::set_allocated_version(std::string* version) { - if (version != nullptr) { - - } else { - - } _impl_.version_.SetAllocated(version, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.version_.IsDefault()) { @@ -955,11 +945,6 @@ inline void Api::unsafe_arena_set_allocated_source_context( delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.source_context_); } _impl_.source_context_ = source_context; - if (source_context) { - - } else { - - } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Api.source_context) } inline ::PROTOBUF_NAMESPACE_ID::SourceContext* Api::release_source_context() { @@ -1118,11 +1103,6 @@ inline std::string* Method::release_name() { return _impl_.name_.Release(); } inline void Method::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } _impl_.name_.SetAllocated(name, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { @@ -1168,11 +1148,6 @@ inline std::string* Method::release_request_type_url() { return _impl_.request_type_url_.Release(); } inline void Method::set_allocated_request_type_url(std::string* request_type_url) { - if (request_type_url != nullptr) { - - } else { - - } _impl_.request_type_url_.SetAllocated(request_type_url, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.request_type_url_.IsDefault()) { @@ -1238,11 +1213,6 @@ inline std::string* Method::release_response_type_url() { return _impl_.response_type_url_.Release(); } inline void Method::set_allocated_response_type_url(std::string* response_type_url) { - if (response_type_url != nullptr) { - - } else { - - } _impl_.response_type_url_.SetAllocated(response_type_url, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.response_type_url_.IsDefault()) { @@ -1369,11 +1339,6 @@ inline std::string* Mixin::release_name() { return _impl_.name_.Release(); } inline void Mixin::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } _impl_.name_.SetAllocated(name, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { @@ -1419,11 +1384,6 @@ inline std::string* Mixin::release_root() { return _impl_.root_.Release(); } inline void Mixin::set_allocated_root(std::string* root) { - if (root != nullptr) { - - } else { - - } _impl_.root_.SetAllocated(root, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.root_.IsDefault()) { diff --git a/src/google/protobuf/duration.pb.cc b/src/google/protobuf/duration.pb.cc index 18d3e42ad3..7c60f7f59f 100644 --- a/src/google/protobuf/duration.pb.cc +++ b/src/google/protobuf/duration.pb.cc @@ -120,17 +120,9 @@ Duration::Duration(::PROTOBUF_NAMESPACE_ID::Arena* arena, // @@protoc_insertion_point(arena_constructor:google.protobuf.Duration) } Duration::Duration(const Duration& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Duration* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.seconds_){} - , decltype(_impl_.nanos_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&_impl_.seconds_, &from._impl_.seconds_, - static_cast(reinterpret_cast(&_impl_.nanos_) - - reinterpret_cast(&_impl_.seconds_)) + sizeof(_impl_.nanos_)); + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.protobuf.Duration) } @@ -175,6 +167,7 @@ void Duration::Clear() { } const char* Duration::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -221,6 +214,7 @@ failure: uint8_t* Duration::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Duration) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -246,6 +240,7 @@ uint8_t* Duration::_InternalSerialize( } size_t Duration::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Duration) size_t total_size = 0; @@ -276,6 +271,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Duration::GetClassData() const void Duration::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Duration) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -313,6 +309,7 @@ void Duration::InternalSwap(Duration* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata Duration::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fduration_2eproto_getter, &descriptor_table_google_2fprotobuf_2fduration_2eproto_once, file_level_metadata_google_2fprotobuf_2fduration_2eproto[0]); diff --git a/src/google/protobuf/empty.pb.cc b/src/google/protobuf/empty.pb.cc index 91ba9f2c87..c04ad78a68 100644 --- a/src/google/protobuf/empty.pb.cc +++ b/src/google/protobuf/empty.pb.cc @@ -136,6 +136,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Empty::GetClassData() const { ::PROTOBUF_NAMESPACE_ID::Metadata Empty::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fempty_2eproto_getter, &descriptor_table_google_2fprotobuf_2fempty_2eproto_once, file_level_metadata_google_2fprotobuf_2fempty_2eproto[0]); diff --git a/src/google/protobuf/field_mask.pb.cc b/src/google/protobuf/field_mask.pb.cc index 42dbbd5047..de87758950 100644 --- a/src/google/protobuf/field_mask.pb.cc +++ b/src/google/protobuf/field_mask.pb.cc @@ -167,6 +167,7 @@ void FieldMask::Clear() { } const char* FieldMask::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -212,6 +213,7 @@ failure: uint8_t* FieldMask::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldMask) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -235,6 +237,7 @@ uint8_t* FieldMask::_InternalSerialize( } size_t FieldMask::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldMask) size_t total_size = 0; @@ -263,6 +266,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FieldMask::GetClassData() cons void FieldMask::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FieldMask) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -290,6 +294,7 @@ void FieldMask::InternalSwap(FieldMask* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata FieldMask::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto_getter, &descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto_once, file_level_metadata_google_2fprotobuf_2ffield_5fmask_2eproto[0]); diff --git a/src/google/protobuf/source_context.pb.cc b/src/google/protobuf/source_context.pb.cc index 1959701b80..ce0f339939 100644 --- a/src/google/protobuf/source_context.pb.cc +++ b/src/google/protobuf/source_context.pb.cc @@ -179,6 +179,7 @@ void SourceContext::Clear() { } const char* SourceContext::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -219,6 +220,7 @@ failure: uint8_t* SourceContext::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceContext) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -242,6 +244,7 @@ uint8_t* SourceContext::_InternalSerialize( } size_t SourceContext::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceContext) size_t total_size = 0; @@ -269,6 +272,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SourceContext::GetClassData() void SourceContext::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.SourceContext) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -303,6 +307,7 @@ void SourceContext::InternalSwap(SourceContext* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata SourceContext::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto_getter, &descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto_once, file_level_metadata_google_2fprotobuf_2fsource_5fcontext_2eproto[0]); diff --git a/src/google/protobuf/source_context.pb.h b/src/google/protobuf/source_context.pb.h index 8f1aeffb5e..21d2fc23a0 100644 --- a/src/google/protobuf/source_context.pb.h +++ b/src/google/protobuf/source_context.pb.h @@ -268,11 +268,6 @@ inline std::string* SourceContext::release_file_name() { return _impl_.file_name_.Release(); } inline void SourceContext::set_allocated_file_name(std::string* file_name) { - if (file_name != nullptr) { - - } else { - - } _impl_.file_name_.SetAllocated(file_name, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.file_name_.IsDefault()) { diff --git a/src/google/protobuf/struct.pb.cc b/src/google/protobuf/struct.pb.cc index aa53b799b0..eb92db0870 100644 --- a/src/google/protobuf/struct.pb.cc +++ b/src/google/protobuf/struct.pb.cc @@ -209,7 +209,6 @@ bool NullValue_IsValid(int value) { return false; } } - // =================================================================== Struct_FieldsEntry_DoNotUse::Struct_FieldsEntry_DoNotUse() {} @@ -295,6 +294,7 @@ void Struct::Clear() { } const char* Struct::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -338,6 +338,7 @@ failure: uint8_t* Struct::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Struct) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -377,6 +378,7 @@ uint8_t* Struct::_InternalSerialize( } size_t Struct::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Struct) size_t total_size = 0; @@ -406,6 +408,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Struct::GetClassData() const { void Struct::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Struct) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -433,6 +436,7 @@ void Struct::InternalSwap(Struct* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata Struct::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fstruct_2eproto_getter, &descriptor_table_google_2fprotobuf_2fstruct_2eproto_once, file_level_metadata_google_2fprotobuf_2fstruct_2eproto[1]); @@ -617,6 +621,7 @@ void Value::Clear() { } const char* Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -698,6 +703,7 @@ failure: uint8_t* Value::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Value) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -754,6 +760,7 @@ uint8_t* Value::_InternalSerialize( } size_t Value::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Value) size_t total_size = 0; @@ -816,6 +823,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Value::GetClassData() const { void Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Value) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -874,6 +882,7 @@ void Value::InternalSwap(Value* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata Value::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fstruct_2eproto_getter, &descriptor_table_google_2fprotobuf_2fstruct_2eproto_once, file_level_metadata_google_2fprotobuf_2fstruct_2eproto[2]); @@ -940,6 +949,7 @@ void ListValue::Clear() { } const char* ListValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -983,6 +993,7 @@ failure: uint8_t* ListValue::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ListValue) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1004,6 +1015,7 @@ uint8_t* ListValue::_InternalSerialize( } size_t ListValue::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ListValue) size_t total_size = 0; @@ -1031,6 +1043,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListValue::GetClassData() cons void ListValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ListValue) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -1058,6 +1071,7 @@ void ListValue::InternalSwap(ListValue* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata ListValue::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fstruct_2eproto_getter, &descriptor_table_google_2fprotobuf_2fstruct_2eproto_once, file_level_metadata_google_2fprotobuf_2fstruct_2eproto[3]); diff --git a/src/google/protobuf/struct.pb.h b/src/google/protobuf/struct.pb.h index 36ae0b86c6..b31f206529 100644 --- a/src/google/protobuf/struct.pb.h +++ b/src/google/protobuf/struct.pb.h @@ -80,31 +80,34 @@ PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_OPEN enum NullValue : int { NULL_VALUE = 0, - NullValue_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - NullValue_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + NullValue_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits::min(), + NullValue_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits::max(), }; + PROTOBUF_EXPORT bool NullValue_IsValid(int value); -constexpr NullValue NullValue_MIN = NULL_VALUE; -constexpr NullValue NullValue_MAX = NULL_VALUE; -constexpr int NullValue_ARRAYSIZE = NullValue_MAX + 1; - -PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* NullValue_descriptor(); -template -inline const std::string& NullValue_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function NullValue_Name."); - return NullValue_Name(static_cast(enum_t_value)); -} -template<> +constexpr NullValue NullValue_MIN = static_cast(0); +constexpr NullValue NullValue_MAX = static_cast(0); +constexpr int NullValue_ARRAYSIZE = 0 + 1; +PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +NullValue_descriptor(); +template +const std::string& NullValue_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to NullValue_Name()."); + return NullValue_Name(static_cast(value)); +} +template <> inline const std::string& NullValue_Name(NullValue value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum - (static_cast(value)); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( + static_cast(value)); } -inline bool NullValue_Parse( - ::absl::string_view name, NullValue* value) { +inline bool NullValue_Parse(absl::string_view name, NullValue* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - NullValue_descriptor(), name, value); + NullValue_descriptor(), name, value); } // =================================================================== @@ -1175,9 +1178,10 @@ PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::NullValue> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::NullValue>() { +struct is_proto_enum<::PROTOBUF_NAMESPACE_ID::NullValue> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::PROTOBUF_NAMESPACE_ID::NullValue>() { return ::PROTOBUF_NAMESPACE_ID::NullValue_descriptor(); } diff --git a/src/google/protobuf/timestamp.pb.cc b/src/google/protobuf/timestamp.pb.cc index a62cdcffde..a26f164d3c 100644 --- a/src/google/protobuf/timestamp.pb.cc +++ b/src/google/protobuf/timestamp.pb.cc @@ -120,17 +120,9 @@ Timestamp::Timestamp(::PROTOBUF_NAMESPACE_ID::Arena* arena, // @@protoc_insertion_point(arena_constructor:google.protobuf.Timestamp) } Timestamp::Timestamp(const Timestamp& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Timestamp* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.seconds_){} - , decltype(_impl_.nanos_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&_impl_.seconds_, &from._impl_.seconds_, - static_cast(reinterpret_cast(&_impl_.nanos_) - - reinterpret_cast(&_impl_.seconds_)) + sizeof(_impl_.nanos_)); + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.protobuf.Timestamp) } @@ -175,6 +167,7 @@ void Timestamp::Clear() { } const char* Timestamp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -221,6 +214,7 @@ failure: uint8_t* Timestamp::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Timestamp) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -246,6 +240,7 @@ uint8_t* Timestamp::_InternalSerialize( } size_t Timestamp::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Timestamp) size_t total_size = 0; @@ -276,6 +271,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Timestamp::GetClassData() cons void Timestamp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Timestamp) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -313,6 +309,7 @@ void Timestamp::InternalSwap(Timestamp* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata Timestamp::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2ftimestamp_2eproto_getter, &descriptor_table_google_2fprotobuf_2ftimestamp_2eproto_once, file_level_metadata_google_2fprotobuf_2ftimestamp_2eproto[0]); diff --git a/src/google/protobuf/type.pb.cc b/src/google/protobuf/type.pb.cc index cdebb41d33..096d52ef42 100644 --- a/src/google/protobuf/type.pb.cc +++ b/src/google/protobuf/type.pb.cc @@ -315,8 +315,9 @@ bool Field_Kind_IsValid(int value) { return false; } } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr Field_Kind Field::TYPE_UNKNOWN; constexpr Field_Kind Field::TYPE_DOUBLE; constexpr Field_Kind Field::TYPE_FLOAT; @@ -339,7 +340,9 @@ constexpr Field_Kind Field::TYPE_SINT64; constexpr Field_Kind Field::Kind_MIN; constexpr Field_Kind Field::Kind_MAX; constexpr int Field::Kind_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Field_Cardinality_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2ftype_2eproto); return file_level_enum_descriptors_google_2fprotobuf_2ftype_2eproto[1]; @@ -355,8 +358,9 @@ bool Field_Cardinality_IsValid(int value) { return false; } } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr Field_Cardinality Field::CARDINALITY_UNKNOWN; constexpr Field_Cardinality Field::CARDINALITY_OPTIONAL; constexpr Field_Cardinality Field::CARDINALITY_REQUIRED; @@ -364,7 +368,9 @@ constexpr Field_Cardinality Field::CARDINALITY_REPEATED; constexpr Field_Cardinality Field::Cardinality_MIN; constexpr Field_Cardinality Field::Cardinality_MAX; constexpr int Field::Cardinality_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Syntax_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2ftype_2eproto); return file_level_enum_descriptors_google_2fprotobuf_2ftype_2eproto[2]; @@ -378,7 +384,6 @@ bool Syntax_IsValid(int value) { return false; } } - // =================================================================== class Type::_Internal { @@ -490,6 +495,7 @@ void Type::Clear() { } const char* Type::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -588,6 +594,7 @@ failure: uint8_t* Type::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Type) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -651,6 +658,7 @@ uint8_t* Type::_InternalSerialize( } size_t Type::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Type) size_t total_size = 0; @@ -713,6 +721,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Type::GetClassData() const { r void Type::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Type) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -766,6 +775,7 @@ void Type::InternalSwap(Type* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata Type::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2ftype_2eproto_getter, &descriptor_table_google_2fprotobuf_2ftype_2eproto_once, file_level_metadata_google_2fprotobuf_2ftype_2eproto[0]); @@ -912,6 +922,7 @@ void Field::Clear() { } const char* Field::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -1037,6 +1048,7 @@ failure: uint8_t* Field::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Field) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1130,6 +1142,7 @@ uint8_t* Field::_InternalSerialize( } size_t Field::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Field) size_t total_size = 0; @@ -1212,6 +1225,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Field::GetClassData() const { void Field::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Field) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -1290,6 +1304,7 @@ void Field::InternalSwap(Field* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata Field::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2ftype_2eproto_getter, &descriptor_table_google_2fprotobuf_2ftype_2eproto_once, file_level_metadata_google_2fprotobuf_2ftype_2eproto[1]); @@ -1401,6 +1416,7 @@ void Enum::Clear() { } const char* Enum::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -1484,6 +1500,7 @@ failure: uint8_t* Enum::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Enum) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1537,6 +1554,7 @@ uint8_t* Enum::_InternalSerialize( } size_t Enum::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Enum) size_t total_size = 0; @@ -1591,6 +1609,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Enum::GetClassData() const { r void Enum::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -1642,6 +1661,7 @@ void Enum::InternalSwap(Enum* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata Enum::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2ftype_2eproto_getter, &descriptor_table_google_2fprotobuf_2ftype_2eproto_once, file_level_metadata_google_2fprotobuf_2ftype_2eproto[2]); @@ -1728,6 +1748,7 @@ void EnumValue::Clear() { } const char* EnumValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -1789,6 +1810,7 @@ failure: uint8_t* EnumValue::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1826,6 +1848,7 @@ uint8_t* EnumValue::_InternalSerialize( } size_t EnumValue::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValue) size_t total_size = 0; @@ -1865,6 +1888,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EnumValue::GetClassData() cons void EnumValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumValue) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -1905,6 +1929,7 @@ void EnumValue::InternalSwap(EnumValue* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata EnumValue::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2ftype_2eproto_getter, &descriptor_table_google_2fprotobuf_2ftype_2eproto_once, file_level_metadata_google_2fprotobuf_2ftype_2eproto[3]); @@ -2004,6 +2029,7 @@ void Option::Clear() { } const char* Option::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -2052,6 +2078,7 @@ failure: uint8_t* Option::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Option) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -2082,6 +2109,7 @@ uint8_t* Option::_InternalSerialize( } size_t Option::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Option) size_t total_size = 0; @@ -2116,6 +2144,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Option::GetClassData() const { void Option::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Option) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -2155,6 +2184,7 @@ void Option::InternalSwap(Option* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata Option::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2ftype_2eproto_getter, &descriptor_table_google_2fprotobuf_2ftype_2eproto_once, file_level_metadata_google_2fprotobuf_2ftype_2eproto[4]); diff --git a/src/google/protobuf/type.pb.h b/src/google/protobuf/type.pb.h index 18bf4cbfc3..a630ba635e 100644 --- a/src/google/protobuf/type.pb.h +++ b/src/google/protobuf/type.pb.h @@ -102,91 +102,100 @@ enum Field_Kind : int { Field_Kind_TYPE_SFIXED64 = 16, Field_Kind_TYPE_SINT32 = 17, Field_Kind_TYPE_SINT64 = 18, - Field_Kind_Field_Kind_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - Field_Kind_Field_Kind_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + Field_Kind_Field_Kind_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits::min(), + Field_Kind_Field_Kind_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits::max(), }; + PROTOBUF_EXPORT bool Field_Kind_IsValid(int value); -constexpr Field_Kind Field_Kind_Kind_MIN = Field_Kind_TYPE_UNKNOWN; -constexpr Field_Kind Field_Kind_Kind_MAX = Field_Kind_TYPE_SINT64; -constexpr int Field_Kind_Kind_ARRAYSIZE = Field_Kind_Kind_MAX + 1; - -PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Field_Kind_descriptor(); -template -inline const std::string& Field_Kind_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Field_Kind_Name."); - return Field_Kind_Name(static_cast(enum_t_value)); -} -template<> +constexpr Field_Kind Field_Kind_Kind_MIN = static_cast(0); +constexpr Field_Kind Field_Kind_Kind_MAX = static_cast(18); +constexpr int Field_Kind_Kind_ARRAYSIZE = 18 + 1; +PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +Field_Kind_descriptor(); +template +const std::string& Field_Kind_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Kind_Name()."); + return Field_Kind_Name(static_cast(value)); +} +template <> inline const std::string& Field_Kind_Name(Field_Kind value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum - (static_cast(value)); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( + static_cast(value)); } -inline bool Field_Kind_Parse( - ::absl::string_view name, Field_Kind* value) { +inline bool Field_Kind_Parse(absl::string_view name, Field_Kind* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - Field_Kind_descriptor(), name, value); + Field_Kind_descriptor(), name, value); } enum Field_Cardinality : int { Field_Cardinality_CARDINALITY_UNKNOWN = 0, Field_Cardinality_CARDINALITY_OPTIONAL = 1, Field_Cardinality_CARDINALITY_REQUIRED = 2, Field_Cardinality_CARDINALITY_REPEATED = 3, - Field_Cardinality_Field_Cardinality_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - Field_Cardinality_Field_Cardinality_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + Field_Cardinality_Field_Cardinality_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits::min(), + Field_Cardinality_Field_Cardinality_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits::max(), }; + PROTOBUF_EXPORT bool Field_Cardinality_IsValid(int value); -constexpr Field_Cardinality Field_Cardinality_Cardinality_MIN = Field_Cardinality_CARDINALITY_UNKNOWN; -constexpr Field_Cardinality Field_Cardinality_Cardinality_MAX = Field_Cardinality_CARDINALITY_REPEATED; -constexpr int Field_Cardinality_Cardinality_ARRAYSIZE = Field_Cardinality_Cardinality_MAX + 1; - -PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Field_Cardinality_descriptor(); -template -inline const std::string& Field_Cardinality_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Field_Cardinality_Name."); - return Field_Cardinality_Name(static_cast(enum_t_value)); -} -template<> +constexpr Field_Cardinality Field_Cardinality_Cardinality_MIN = static_cast(0); +constexpr Field_Cardinality Field_Cardinality_Cardinality_MAX = static_cast(3); +constexpr int Field_Cardinality_Cardinality_ARRAYSIZE = 3 + 1; +PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +Field_Cardinality_descriptor(); +template +const std::string& Field_Cardinality_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Cardinality_Name()."); + return Field_Cardinality_Name(static_cast(value)); +} +template <> inline const std::string& Field_Cardinality_Name(Field_Cardinality value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum - (static_cast(value)); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( + static_cast(value)); } -inline bool Field_Cardinality_Parse( - ::absl::string_view name, Field_Cardinality* value) { +inline bool Field_Cardinality_Parse(absl::string_view name, Field_Cardinality* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - Field_Cardinality_descriptor(), name, value); + Field_Cardinality_descriptor(), name, value); } enum Syntax : int { SYNTAX_PROTO2 = 0, SYNTAX_PROTO3 = 1, - Syntax_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - Syntax_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + Syntax_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits::min(), + Syntax_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits::max(), }; + PROTOBUF_EXPORT bool Syntax_IsValid(int value); -constexpr Syntax Syntax_MIN = SYNTAX_PROTO2; -constexpr Syntax Syntax_MAX = SYNTAX_PROTO3; -constexpr int Syntax_ARRAYSIZE = Syntax_MAX + 1; - -PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Syntax_descriptor(); -template -inline const std::string& Syntax_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Syntax_Name."); - return Syntax_Name(static_cast(enum_t_value)); -} -template<> +constexpr Syntax Syntax_MIN = static_cast(0); +constexpr Syntax Syntax_MAX = static_cast(1); +constexpr int Syntax_ARRAYSIZE = 1 + 1; +PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +Syntax_descriptor(); +template +const std::string& Syntax_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Syntax_Name()."); + return Syntax_Name(static_cast(value)); +} +template <> inline const std::string& Syntax_Name(Syntax value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum - (static_cast(value)); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( + static_cast(value)); } -inline bool Syntax_Parse( - ::absl::string_view name, Syntax* value) { +inline bool Syntax_Parse(absl::string_view name, Syntax* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - Syntax_descriptor(), name, value); + Syntax_descriptor(), name, value); } // =================================================================== @@ -561,101 +570,62 @@ class PROTOBUF_EXPORT Field final : // nested types ---------------------------------------------------- - typedef Field_Kind Kind; - static constexpr Kind TYPE_UNKNOWN = - Field_Kind_TYPE_UNKNOWN; - static constexpr Kind TYPE_DOUBLE = - Field_Kind_TYPE_DOUBLE; - static constexpr Kind TYPE_FLOAT = - Field_Kind_TYPE_FLOAT; - static constexpr Kind TYPE_INT64 = - Field_Kind_TYPE_INT64; - static constexpr Kind TYPE_UINT64 = - Field_Kind_TYPE_UINT64; - static constexpr Kind TYPE_INT32 = - Field_Kind_TYPE_INT32; - static constexpr Kind TYPE_FIXED64 = - Field_Kind_TYPE_FIXED64; - static constexpr Kind TYPE_FIXED32 = - Field_Kind_TYPE_FIXED32; - static constexpr Kind TYPE_BOOL = - Field_Kind_TYPE_BOOL; - static constexpr Kind TYPE_STRING = - Field_Kind_TYPE_STRING; - static constexpr Kind TYPE_GROUP = - Field_Kind_TYPE_GROUP; - static constexpr Kind TYPE_MESSAGE = - Field_Kind_TYPE_MESSAGE; - static constexpr Kind TYPE_BYTES = - Field_Kind_TYPE_BYTES; - static constexpr Kind TYPE_UINT32 = - Field_Kind_TYPE_UINT32; - static constexpr Kind TYPE_ENUM = - Field_Kind_TYPE_ENUM; - static constexpr Kind TYPE_SFIXED32 = - Field_Kind_TYPE_SFIXED32; - static constexpr Kind TYPE_SFIXED64 = - Field_Kind_TYPE_SFIXED64; - static constexpr Kind TYPE_SINT32 = - Field_Kind_TYPE_SINT32; - static constexpr Kind TYPE_SINT64 = - Field_Kind_TYPE_SINT64; + using Kind = Field_Kind; + static constexpr Kind TYPE_UNKNOWN = Field_Kind_TYPE_UNKNOWN; + static constexpr Kind TYPE_DOUBLE = Field_Kind_TYPE_DOUBLE; + static constexpr Kind TYPE_FLOAT = Field_Kind_TYPE_FLOAT; + static constexpr Kind TYPE_INT64 = Field_Kind_TYPE_INT64; + static constexpr Kind TYPE_UINT64 = Field_Kind_TYPE_UINT64; + static constexpr Kind TYPE_INT32 = Field_Kind_TYPE_INT32; + static constexpr Kind TYPE_FIXED64 = Field_Kind_TYPE_FIXED64; + static constexpr Kind TYPE_FIXED32 = Field_Kind_TYPE_FIXED32; + static constexpr Kind TYPE_BOOL = Field_Kind_TYPE_BOOL; + static constexpr Kind TYPE_STRING = Field_Kind_TYPE_STRING; + static constexpr Kind TYPE_GROUP = Field_Kind_TYPE_GROUP; + static constexpr Kind TYPE_MESSAGE = Field_Kind_TYPE_MESSAGE; + static constexpr Kind TYPE_BYTES = Field_Kind_TYPE_BYTES; + static constexpr Kind TYPE_UINT32 = Field_Kind_TYPE_UINT32; + static constexpr Kind TYPE_ENUM = Field_Kind_TYPE_ENUM; + static constexpr Kind TYPE_SFIXED32 = Field_Kind_TYPE_SFIXED32; + static constexpr Kind TYPE_SFIXED64 = Field_Kind_TYPE_SFIXED64; + static constexpr Kind TYPE_SINT32 = Field_Kind_TYPE_SINT32; + static constexpr Kind TYPE_SINT64 = Field_Kind_TYPE_SINT64; static inline bool Kind_IsValid(int value) { return Field_Kind_IsValid(value); } - static constexpr Kind Kind_MIN = - Field_Kind_Kind_MIN; - static constexpr Kind Kind_MAX = - Field_Kind_Kind_MAX; - static constexpr int Kind_ARRAYSIZE = - Field_Kind_Kind_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Kind_descriptor() { + static constexpr Kind Kind_MIN = Field_Kind_Kind_MIN; + static constexpr Kind Kind_MAX = Field_Kind_Kind_MAX; + static constexpr int Kind_ARRAYSIZE = Field_Kind_Kind_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Kind_descriptor() { return Field_Kind_descriptor(); } - template - static inline const std::string& Kind_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Kind_Name."); - return Field_Kind_Name(enum_t_value); + template + static inline const std::string& Kind_Name(T value) { + return Field_Kind_Name(value); } - static inline bool Kind_Parse(::absl::string_view name, - Kind* value) { + static inline bool Kind_Parse(absl::string_view name, Kind* value) { return Field_Kind_Parse(name, value); } - typedef Field_Cardinality Cardinality; - static constexpr Cardinality CARDINALITY_UNKNOWN = - Field_Cardinality_CARDINALITY_UNKNOWN; - static constexpr Cardinality CARDINALITY_OPTIONAL = - Field_Cardinality_CARDINALITY_OPTIONAL; - static constexpr Cardinality CARDINALITY_REQUIRED = - Field_Cardinality_CARDINALITY_REQUIRED; - static constexpr Cardinality CARDINALITY_REPEATED = - Field_Cardinality_CARDINALITY_REPEATED; + using Cardinality = Field_Cardinality; + static constexpr Cardinality CARDINALITY_UNKNOWN = Field_Cardinality_CARDINALITY_UNKNOWN; + static constexpr Cardinality CARDINALITY_OPTIONAL = Field_Cardinality_CARDINALITY_OPTIONAL; + static constexpr Cardinality CARDINALITY_REQUIRED = Field_Cardinality_CARDINALITY_REQUIRED; + static constexpr Cardinality CARDINALITY_REPEATED = Field_Cardinality_CARDINALITY_REPEATED; static inline bool Cardinality_IsValid(int value) { return Field_Cardinality_IsValid(value); } - static constexpr Cardinality Cardinality_MIN = - Field_Cardinality_Cardinality_MIN; - static constexpr Cardinality Cardinality_MAX = - Field_Cardinality_Cardinality_MAX; - static constexpr int Cardinality_ARRAYSIZE = - Field_Cardinality_Cardinality_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Cardinality_descriptor() { + static constexpr Cardinality Cardinality_MIN = Field_Cardinality_Cardinality_MIN; + static constexpr Cardinality Cardinality_MAX = Field_Cardinality_Cardinality_MAX; + static constexpr int Cardinality_ARRAYSIZE = Field_Cardinality_Cardinality_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Cardinality_descriptor() { return Field_Cardinality_descriptor(); } - template - static inline const std::string& Cardinality_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Cardinality_Name."); - return Field_Cardinality_Name(enum_t_value); + template + static inline const std::string& Cardinality_Name(T value) { + return Field_Cardinality_Name(value); } - static inline bool Cardinality_Parse(::absl::string_view name, - Cardinality* value) { + static inline bool Cardinality_Parse(absl::string_view name, Cardinality* value) { return Field_Cardinality_Parse(name, value); } @@ -1445,11 +1415,6 @@ inline std::string* Type::release_name() { return _impl_.name_.Release(); } inline void Type::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } _impl_.name_.SetAllocated(name, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { @@ -1634,11 +1599,6 @@ inline void Type::unsafe_arena_set_allocated_source_context( delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.source_context_); } _impl_.source_context_ = source_context; - if (source_context) { - - } else { - - } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Type.source_context) } inline ::PROTOBUF_NAMESPACE_ID::SourceContext* Type::release_source_context() { @@ -1817,11 +1777,6 @@ inline std::string* Field::release_name() { return _impl_.name_.Release(); } inline void Field::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } _impl_.name_.SetAllocated(name, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { @@ -1867,11 +1822,6 @@ inline std::string* Field::release_type_url() { return _impl_.type_url_.Release(); } inline void Field::set_allocated_type_url(std::string* type_url) { - if (type_url != nullptr) { - - } else { - - } _impl_.type_url_.SetAllocated(type_url, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.type_url_.IsDefault()) { @@ -1997,11 +1947,6 @@ inline std::string* Field::release_json_name() { return _impl_.json_name_.Release(); } inline void Field::set_allocated_json_name(std::string* json_name) { - if (json_name != nullptr) { - - } else { - - } _impl_.json_name_.SetAllocated(json_name, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.json_name_.IsDefault()) { @@ -2047,11 +1992,6 @@ inline std::string* Field::release_default_value() { return _impl_.default_value_.Release(); } inline void Field::set_allocated_default_value(std::string* default_value) { - if (default_value != nullptr) { - - } else { - - } _impl_.default_value_.SetAllocated(default_value, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.default_value_.IsDefault()) { @@ -2101,11 +2041,6 @@ inline std::string* Enum::release_name() { return _impl_.name_.Release(); } inline void Enum::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } _impl_.name_.SetAllocated(name, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { @@ -2217,11 +2152,6 @@ inline void Enum::unsafe_arena_set_allocated_source_context( delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.source_context_); } _impl_.source_context_ = source_context; - if (source_context) { - - } else { - - } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Enum.source_context) } inline ::PROTOBUF_NAMESPACE_ID::SourceContext* Enum::release_source_context() { @@ -2340,11 +2270,6 @@ inline std::string* EnumValue::release_name() { return _impl_.name_.Release(); } inline void EnumValue::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } _impl_.name_.SetAllocated(name, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { @@ -2454,11 +2379,6 @@ inline std::string* Option::release_name() { return _impl_.name_.Release(); } inline void Option::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } _impl_.name_.SetAllocated(name, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { @@ -2490,11 +2410,6 @@ inline void Option::unsafe_arena_set_allocated_value( delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.value_); } _impl_.value_ = value; - if (value) { - - } else { - - } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Option.value) } inline ::PROTOBUF_NAMESPACE_ID::Any* Option::release_value() { @@ -2563,19 +2478,22 @@ PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::Field_Kind> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::Field_Kind>() { +struct is_proto_enum<::PROTOBUF_NAMESPACE_ID::Field_Kind> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::PROTOBUF_NAMESPACE_ID::Field_Kind>() { return ::PROTOBUF_NAMESPACE_ID::Field_Kind_descriptor(); } -template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::Field_Cardinality> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::Field_Cardinality>() { +struct is_proto_enum<::PROTOBUF_NAMESPACE_ID::Field_Cardinality> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::PROTOBUF_NAMESPACE_ID::Field_Cardinality>() { return ::PROTOBUF_NAMESPACE_ID::Field_Cardinality_descriptor(); } -template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::Syntax> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::Syntax>() { +struct is_proto_enum<::PROTOBUF_NAMESPACE_ID::Syntax> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::PROTOBUF_NAMESPACE_ID::Syntax>() { return ::PROTOBUF_NAMESPACE_ID::Syntax_descriptor(); } diff --git a/src/google/protobuf/wrappers.pb.cc b/src/google/protobuf/wrappers.pb.cc index 60846db200..9bc739752e 100644 --- a/src/google/protobuf/wrappers.pb.cc +++ b/src/google/protobuf/wrappers.pb.cc @@ -324,14 +324,9 @@ DoubleValue::DoubleValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, // @@protoc_insertion_point(arena_constructor:google.protobuf.DoubleValue) } DoubleValue::DoubleValue(const DoubleValue& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - DoubleValue* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.value_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.value_ = from._impl_.value_; + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.protobuf.DoubleValue) } @@ -373,6 +368,7 @@ void DoubleValue::Clear() { } const char* DoubleValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -411,6 +407,7 @@ failure: uint8_t* DoubleValue::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DoubleValue) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -434,6 +431,7 @@ uint8_t* DoubleValue::_InternalSerialize( } size_t DoubleValue::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DoubleValue) size_t total_size = 0; @@ -463,6 +461,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DoubleValue::GetClassData() co void DoubleValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DoubleValue) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -496,6 +495,7 @@ void DoubleValue::InternalSwap(DoubleValue* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata DoubleValue::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter, &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[0]); @@ -513,14 +513,9 @@ FloatValue::FloatValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, // @@protoc_insertion_point(arena_constructor:google.protobuf.FloatValue) } FloatValue::FloatValue(const FloatValue& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - FloatValue* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.value_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.value_ = from._impl_.value_; + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.protobuf.FloatValue) } @@ -562,6 +557,7 @@ void FloatValue::Clear() { } const char* FloatValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -600,6 +596,7 @@ failure: uint8_t* FloatValue::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FloatValue) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -623,6 +620,7 @@ uint8_t* FloatValue::_InternalSerialize( } size_t FloatValue::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FloatValue) size_t total_size = 0; @@ -652,6 +650,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FloatValue::GetClassData() con void FloatValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FloatValue) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -685,6 +684,7 @@ void FloatValue::InternalSwap(FloatValue* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata FloatValue::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter, &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[1]); @@ -702,14 +702,9 @@ Int64Value::Int64Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, // @@protoc_insertion_point(arena_constructor:google.protobuf.Int64Value) } Int64Value::Int64Value(const Int64Value& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Int64Value* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.value_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.value_ = from._impl_.value_; + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.protobuf.Int64Value) } @@ -751,6 +746,7 @@ void Int64Value::Clear() { } const char* Int64Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -789,6 +785,7 @@ failure: uint8_t* Int64Value::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Int64Value) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -808,6 +805,7 @@ uint8_t* Int64Value::_InternalSerialize( } size_t Int64Value::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Int64Value) size_t total_size = 0; @@ -833,6 +831,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Int64Value::GetClassData() con void Int64Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Int64Value) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -862,6 +861,7 @@ void Int64Value::InternalSwap(Int64Value* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata Int64Value::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter, &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[2]); @@ -879,14 +879,9 @@ UInt64Value::UInt64Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, // @@protoc_insertion_point(arena_constructor:google.protobuf.UInt64Value) } UInt64Value::UInt64Value(const UInt64Value& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - UInt64Value* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.value_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.value_ = from._impl_.value_; + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.protobuf.UInt64Value) } @@ -928,6 +923,7 @@ void UInt64Value::Clear() { } const char* UInt64Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -966,6 +962,7 @@ failure: uint8_t* UInt64Value::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UInt64Value) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -985,6 +982,7 @@ uint8_t* UInt64Value::_InternalSerialize( } size_t UInt64Value::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UInt64Value) size_t total_size = 0; @@ -1010,6 +1008,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UInt64Value::GetClassData() co void UInt64Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UInt64Value) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -1039,6 +1038,7 @@ void UInt64Value::InternalSwap(UInt64Value* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata UInt64Value::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter, &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[3]); @@ -1056,14 +1056,9 @@ Int32Value::Int32Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, // @@protoc_insertion_point(arena_constructor:google.protobuf.Int32Value) } Int32Value::Int32Value(const Int32Value& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Int32Value* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.value_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.value_ = from._impl_.value_; + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.protobuf.Int32Value) } @@ -1105,6 +1100,7 @@ void Int32Value::Clear() { } const char* Int32Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -1143,6 +1139,7 @@ failure: uint8_t* Int32Value::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Int32Value) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1162,6 +1159,7 @@ uint8_t* Int32Value::_InternalSerialize( } size_t Int32Value::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Int32Value) size_t total_size = 0; @@ -1187,6 +1185,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Int32Value::GetClassData() con void Int32Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Int32Value) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -1216,6 +1215,7 @@ void Int32Value::InternalSwap(Int32Value* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata Int32Value::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter, &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[4]); @@ -1233,14 +1233,9 @@ UInt32Value::UInt32Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, // @@protoc_insertion_point(arena_constructor:google.protobuf.UInt32Value) } UInt32Value::UInt32Value(const UInt32Value& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - UInt32Value* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.value_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.value_ = from._impl_.value_; + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.protobuf.UInt32Value) } @@ -1282,6 +1277,7 @@ void UInt32Value::Clear() { } const char* UInt32Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -1320,6 +1316,7 @@ failure: uint8_t* UInt32Value::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UInt32Value) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1339,6 +1336,7 @@ uint8_t* UInt32Value::_InternalSerialize( } size_t UInt32Value::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UInt32Value) size_t total_size = 0; @@ -1364,6 +1362,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UInt32Value::GetClassData() co void UInt32Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UInt32Value) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -1393,6 +1392,7 @@ void UInt32Value::InternalSwap(UInt32Value* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata UInt32Value::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter, &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[5]); @@ -1410,14 +1410,9 @@ BoolValue::BoolValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, // @@protoc_insertion_point(arena_constructor:google.protobuf.BoolValue) } BoolValue::BoolValue(const BoolValue& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - BoolValue* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.value_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.value_ = from._impl_.value_; + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.protobuf.BoolValue) } @@ -1459,6 +1454,7 @@ void BoolValue::Clear() { } const char* BoolValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -1497,6 +1493,7 @@ failure: uint8_t* BoolValue::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.BoolValue) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1516,6 +1513,7 @@ uint8_t* BoolValue::_InternalSerialize( } size_t BoolValue::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.BoolValue) size_t total_size = 0; @@ -1541,6 +1539,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BoolValue::GetClassData() cons void BoolValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.BoolValue) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -1570,6 +1569,7 @@ void BoolValue::InternalSwap(BoolValue* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata BoolValue::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter, &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[6]); @@ -1648,6 +1648,7 @@ void StringValue::Clear() { } const char* StringValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -1688,6 +1689,7 @@ failure: uint8_t* StringValue::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.StringValue) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1711,6 +1713,7 @@ uint8_t* StringValue::_InternalSerialize( } size_t StringValue::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.StringValue) size_t total_size = 0; @@ -1738,6 +1741,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StringValue::GetClassData() co void StringValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.StringValue) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -1772,6 +1776,7 @@ void StringValue::InternalSwap(StringValue* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata StringValue::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter, &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[7]); @@ -1850,6 +1855,7 @@ void BytesValue::Clear() { } const char* BytesValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { + #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -1889,6 +1895,7 @@ failure: uint8_t* BytesValue::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.BytesValue) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1908,6 +1915,7 @@ uint8_t* BytesValue::_InternalSerialize( } size_t BytesValue::ByteSizeLong() const { + // @@protoc_insertion_point(message_byte_size_start:google.protobuf.BytesValue) size_t total_size = 0; @@ -1935,6 +1943,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BytesValue::GetClassData() con void BytesValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.BytesValue) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; @@ -1969,6 +1978,7 @@ void BytesValue::InternalSwap(BytesValue* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata BytesValue::GetMetadata() const { + return ::_pbi::AssignDescriptors( &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter, &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[8]); diff --git a/src/google/protobuf/wrappers.pb.h b/src/google/protobuf/wrappers.pb.h index 4f5684642e..48f4496c70 100644 --- a/src/google/protobuf/wrappers.pb.h +++ b/src/google/protobuf/wrappers.pb.h @@ -1657,11 +1657,6 @@ inline std::string* StringValue::release_value() { return _impl_.value_.Release(); } inline void StringValue::set_allocated_value(std::string* value) { - if (value != nullptr) { - - } else { - - } _impl_.value_.SetAllocated(value, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.value_.IsDefault()) { @@ -1711,11 +1706,6 @@ inline std::string* BytesValue::release_value() { return _impl_.value_.Release(); } inline void BytesValue::set_allocated_value(std::string* value) { - if (value != nullptr) { - - } else { - - } _impl_.value_.SetAllocated(value, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.value_.IsDefault()) {