From 7679378c7f20fb814d75ecd375e68fc32ffea9ba Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Sat, 14 Jan 2023 09:12:19 +0000 Subject: [PATCH] Auto-generate files after cl/502028351 --- src/google/protobuf/field_mask.pb.h | 10 ++++++++++ src/google/protobuf/type.pb.h | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/google/protobuf/field_mask.pb.h b/src/google/protobuf/field_mask.pb.h index 32e7823148..c80e978d93 100644 --- a/src/google/protobuf/field_mask.pb.h +++ b/src/google/protobuf/field_mask.pb.h @@ -199,11 +199,13 @@ class PROTOBUF_EXPORT FieldMask final : void set_paths(int index, const std::string& value); void set_paths(int index, std::string&& value); void set_paths(int index, const char* value); + void set_paths(int index, absl::string_view value); void set_paths(int index, const char* value, ::size_t size); std::string* add_paths(); void add_paths(const std::string& value); void add_paths(std::string&& value); void add_paths(const char* value); + void add_paths(absl::string_view value); void add_paths(const char* value, ::size_t size); const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& paths() const; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_paths(); @@ -280,6 +282,10 @@ inline void FieldMask::set_paths(int index, const char* value) { GOOGLE_ABSL_DCHECK(value != nullptr); _impl_.paths_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.protobuf.FieldMask.paths) } +inline void FieldMask::set_paths(int index, absl::string_view value) { + _impl_.paths_.Mutable(index)->assign(value.data(), value.size()); + // @@protoc_insertion_point(field_set_string_piece:google.protobuf.FieldMask.paths) +} inline void FieldMask::set_paths(int index, const char* value, ::size_t size) { _impl_.paths_.Mutable(index)->assign( reinterpret_cast(value), size); @@ -300,6 +306,10 @@ inline void FieldMask::add_paths(const char* value) { GOOGLE_ABSL_DCHECK(value != nullptr); _impl_.paths_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.protobuf.FieldMask.paths) } +inline void FieldMask::add_paths(absl::string_view value) { + _impl_.paths_.Add()->assign(value.data(), value.size()); + // @@protoc_insertion_point(field_add_string_piece:google.protobuf.FieldMask.paths) +} inline void FieldMask::add_paths(const char* value, ::size_t size) { _impl_.paths_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:google.protobuf.FieldMask.paths) diff --git a/src/google/protobuf/type.pb.h b/src/google/protobuf/type.pb.h index 2ca6437594..fabe2bf02f 100644 --- a/src/google/protobuf/type.pb.h +++ b/src/google/protobuf/type.pb.h @@ -360,11 +360,13 @@ class PROTOBUF_EXPORT Type final : void set_oneofs(int index, const std::string& value); void set_oneofs(int index, std::string&& value); void set_oneofs(int index, const char* value); + void set_oneofs(int index, absl::string_view value); void set_oneofs(int index, const char* value, ::size_t size); std::string* add_oneofs(); void add_oneofs(const std::string& value); void add_oneofs(std::string&& value); void add_oneofs(const char* value); + void add_oneofs(absl::string_view value); void add_oneofs(const char* value, ::size_t size); const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& oneofs() const; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_oneofs(); @@ -1482,6 +1484,10 @@ inline void Type::set_oneofs(int index, const char* value) { GOOGLE_ABSL_DCHECK(value != nullptr); _impl_.oneofs_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.protobuf.Type.oneofs) } +inline void Type::set_oneofs(int index, absl::string_view value) { + _impl_.oneofs_.Mutable(index)->assign(value.data(), value.size()); + // @@protoc_insertion_point(field_set_string_piece:google.protobuf.Type.oneofs) +} inline void Type::set_oneofs(int index, const char* value, ::size_t size) { _impl_.oneofs_.Mutable(index)->assign( reinterpret_cast(value), size); @@ -1502,6 +1508,10 @@ inline void Type::add_oneofs(const char* value) { GOOGLE_ABSL_DCHECK(value != nullptr); _impl_.oneofs_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.protobuf.Type.oneofs) } +inline void Type::add_oneofs(absl::string_view value) { + _impl_.oneofs_.Add()->assign(value.data(), value.size()); + // @@protoc_insertion_point(field_add_string_piece:google.protobuf.Type.oneofs) +} inline void Type::add_oneofs(const char* value, ::size_t size) { _impl_.oneofs_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:google.protobuf.Type.oneofs)