mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
Migrate remaining old-style $deprecated_attr$ substitutions to $DEPRECATED$ in field generators.
PiperOrigin-RevId: 910744083
This commit is contained in:
parent
b3875ccdf6
commit
6c33bda21d
9 changed files with 223 additions and 428 deletions
|
|
@ -42,9 +42,9 @@
|
|||
};
|
||||
- // optional int32 int32_field = 1;
|
||||
+ // int32 int32_field = 1;
|
||||
[[nodiscard]] bool has_int32_field()
|
||||
const;
|
||||
[[nodiscard]] bool has_int32_field() const;
|
||||
void clear_int32_field() ;
|
||||
[[nodiscard]] ::int32_t int32_field() const;
|
||||
@@ @@
|
||||
|
||||
// SimpleProto3
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<failure message="Value of: third_party/protobuf/editions/golden/simple_proto3.pb.cc
Expected: 
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: third_party/protobuf/editions/golden/simple_proto3.proto

#include "third_party/protobuf/editions/golden/simple_proto3.pb.h"

#include <algorithm>
#include <type_traits>
#include "third_party/protobuf/io/coded_stream.h"
#include "third_party/protobuf/generated_message_tctable_impl.h"
#include "third_party/protobuf/internal_visibility.h"
#include "third_party/protobuf/extension_set.h"
#include "third_party/protobuf/generated_message_util.h"
#include "third_party/protobuf/wire_format_lite.h"
#include "third_party/protobuf/io/zero_copy_stream_impl_lite.h"
// @@protoc_insertion_point(includes)

// Must be included last.
, with the difference:
@@ @@
 ::_pbi::TcParser::GetTable<::protobuf_editions_test::golden::SimpleProto3>(), // to_prefetch
 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
 }, {{
- // optional int32 int32_field = 1;
+ // int32 int32_field = 1;
 {::_pbi::TcParser::FastV32S1,
 {8, 0, 0,
 PROTOBUF_FIELD_OFFSET(SimpleProto3, _impl_.int32_field_)}},
 }}, {{
 65535, 65535
 }}, {{
- // optional int32 int32_field = 1;
+ // int32 int32_field = 1;
 {PROTOBUF_FIELD_OFFSET(SimpleProto3, _impl_.int32_field_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
 }},
 // no aux_entries
@@ @@
 (void)cached_has_bits;
 
 cached_has_bits = this_._impl_._has_bits_[0];
- // optional int32 int32_field = 1;
+ // int32 int32_field = 1;
 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
 target =
 ::proto2::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
@@ @@
 (void)cached_has_bits;
 
 {
- // optional int32 int32_field = 1;
+ // int32 int32_field = 1;
 cached_has_bits = this_._impl_._has_bits_[0];
 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(" type=""></failure>
|
||||
</testcase>
|
||||
<testcase name="third_party/protobuf/editions/golden/simple_proto3.pb.h" status="run" result="completed" classname="DiffTest">
|
||||
<failure message="Value of: third_party/protobuf/editions/golden/simple_proto3.pb.h
Expected: 
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: third_party/protobuf/editions/golden/simple_proto3.proto

#ifndef third_5fparty_2fprotobuf_2feditions_2fgolden_2fsimple_5fproto3_2eproto_2epb_2eh
#define third_5fparty_2fprotobuf_2feditions_2fgolden_2fsimple_5fproto3_2eproto_2epb_2eh

#include <limits>
#include <string>
#include <type_traits>
#include <utility>

// clang-format off
#include "third_party/protobuf/runtime_version.h"
#include "third_party/protobuf/io/coded_stream.h"
#include "third_party/protobuf/arena.h"
#include "third_party/protobuf/arenastring.h"
#include "third_party/protobuf/generated_message_tctable_decl.h"
#include "third_party/protobuf/generated_message_util.h"
#include "third_party/protobuf/metadata_lite.h"
#include "third_party/protobuf/message_lite.h"
// @@protoc_insertion_point(includes)

// Must be included last.
// clang-format on

#endif // third_5fparty_2fprotobuf_2feditions_2fgolden_2fsimple_5fproto3_2eproto_2epb_2eh
, with the difference:
@@ @@
 enum : int {
 kInt32FieldFieldNumber = 1,
 };
- // optional int32 int32_field = 1;
+ // int32 int32_field = 1;
 [[nodiscard]] bool has_int32_field()
 const;
 void clear_int32_field() ;
@@ @@
 
 // SimpleProto3
 
-// optional int32 int32_field = 1;
+// int32 int32_field = 1;
 inline bool SimpleProto3::has_int32_field() const {
 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
 return value;" type=""></failure>
|
||||
<failure message="Value of: third_party/protobuf/editions/golden/simple_proto3.pb.h
Expected: 
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: third_party/protobuf/editions/golden/simple_proto3.proto

#ifndef third_5fparty_2fprotobuf_2feditions_2fgolden_2fsimple_5fproto3_2eproto_2epb_2eh
#define third_5fparty_2fprotobuf_2feditions_2fgolden_2fsimple_5fproto3_2eproto_2epb_2eh

#include <limits>
#include <string>
#include <type_traits>
#include <utility>

// clang-format off
#include "third_party/protobuf/runtime_version.h"
#include "third_party/protobuf/io/coded_stream.h"
#include "third_party/protobuf/arena.h"
#include "third_party/protobuf/arenastring.h"
#include "third_party/protobuf/generated_message_tctable_decl.h"
#include "third_party/protobuf/generated_message_util.h"
#include "third_party/protobuf/metadata_lite.h"
#include "third_party/protobuf/message_lite.h"
// @@protoc_insertion_point(includes)

// Must be included last.
// clang-format on

#endif // third_5fparty_2fprotobuf_2feditions_2fgolden_2fsimple_5fproto3_2eproto_2epb_2eh
, with the difference:
@@ @@
 enum : int {
 kInt32FieldFieldNumber = 1,
 };
- // optional int32 int32_field = 1;
+ // int32 int32_field = 1;
 [[nodiscard]] bool has_int32_field() const;
 void clear_int32_field() ;
 [[nodiscard]] ::int32_t int32_field() const;
@@ @@
 
 // SimpleProto3
 
-// optional int32 int32_field = 1;
+// int32 int32_field = 1;
 inline bool SimpleProto3::has_int32_field() const {
 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
 return value;" type=""></failure>
|
||||
</testcase>
|
||||
<testcase name="third_party/protobuf/editions/golden/simple_proto3.proto.static_reflection.h" status="run" result="completed" classname="DiffTest">
|
||||
</testcase>
|
||||
|
|
|
|||
|
|
@ -85,7 +85,6 @@ std::vector<Sub> FieldVars(const FieldDescriptor* field, const Options& opts) {
|
|||
// Old-style names.
|
||||
{"classname", ClassName(FieldScope(field), false)},
|
||||
{"ns", Namespace(field)},
|
||||
{"deprecated_attr", DeprecatedAttribute(opts, field)},
|
||||
Sub("WeakDescriptorSelfPin",
|
||||
UsingImplicitWeakDescriptor(field->file(), opts)
|
||||
? absl::StrCat(
|
||||
|
|
|
|||
|
|
@ -170,9 +170,9 @@ void CordFieldGenerator::GenerateAccessorDeclarations(io::Printer* p) const {
|
|||
p->WithVars(AnnotatedAccessors(field_, {"mutable_"}, Semantic::kAlias));
|
||||
|
||||
p->Emit(R"cc(
|
||||
[[nodiscard]] $deprecated_attr$const ::absl::Cord& $name$() const;
|
||||
$deprecated_attr$void $set_name$(const ::absl::Cord& value);
|
||||
$deprecated_attr$void $set_name$(::absl::string_view value);
|
||||
[[nodiscard]] $DEPRECATED$ const ::absl::Cord& $name$() const;
|
||||
$DEPRECATED$void $set_name$(const ::absl::Cord& value);
|
||||
$DEPRECATED$void $set_name$(::absl::string_view value);
|
||||
|
||||
private:
|
||||
const ::absl::Cord& $_internal_name$() const;
|
||||
|
|
|
|||
|
|
@ -791,12 +791,12 @@ void MessageGenerator::GenerateFieldAccessorDeclarations(io::Printer* p) {
|
|||
{"sizer",
|
||||
[&] {
|
||||
if (!field->is_repeated()) return;
|
||||
p->Emit({Sub("name_size", absl::StrCat(name, "_size"))
|
||||
.AnnotatedAs(field)},
|
||||
R"cc(
|
||||
[[nodiscard]] $deprecated_attr $int $name_size$()
|
||||
$const_impl$;
|
||||
)cc");
|
||||
p->Emit(
|
||||
{Sub("name_size", absl::StrCat(name, "_size"))
|
||||
.AnnotatedAs(field)},
|
||||
R"cc(
|
||||
[[nodiscard]] $DEPRECATED $int $name_size$() $const_impl$;
|
||||
)cc");
|
||||
|
||||
p->Emit({Sub("_internal_name_size",
|
||||
absl::StrCat("_internal_", name, "_size"))
|
||||
|
|
@ -811,12 +811,12 @@ void MessageGenerator::GenerateFieldAccessorDeclarations(io::Printer* p) {
|
|||
{"hazzer",
|
||||
[&] {
|
||||
if (!field->has_presence()) return;
|
||||
p->Emit({Sub("has_name", absl::StrCat("has_", name))
|
||||
.AnnotatedAs(field)},
|
||||
R"cc(
|
||||
[[nodiscard]] $deprecated_attr $bool $has_name$()
|
||||
$const_impl$;
|
||||
)cc");
|
||||
p->Emit(
|
||||
{Sub("has_name", absl::StrCat("has_", name))
|
||||
.AnnotatedAs(field)},
|
||||
R"cc(
|
||||
[[nodiscard]] $DEPRECATED $bool $has_name$() $const_impl$;
|
||||
)cc");
|
||||
}},
|
||||
{"internal_hazzer",
|
||||
[&] {
|
||||
|
|
@ -841,7 +841,7 @@ void MessageGenerator::GenerateFieldAccessorDeclarations(io::Printer* p) {
|
|||
Semantic::kSet,
|
||||
})},
|
||||
R"cc(
|
||||
$deprecated_attr $void $clear_name$() $impl$;
|
||||
$DEPRECATED $void $clear_name$() $impl$;
|
||||
)cc");
|
||||
}},
|
||||
{"accessors",
|
||||
|
|
|
|||
|
|
@ -517,8 +517,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JavaFeatures final :
|
|||
kNestInFileClassFieldNumber = 5,
|
||||
};
|
||||
// optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
|
||||
[[nodiscard]] bool has_utf8_validation()
|
||||
const;
|
||||
[[nodiscard]] bool has_utf8_validation() const;
|
||||
void clear_utf8_validation() ;
|
||||
[[nodiscard]] ::pb::JavaFeatures_Utf8Validation utf8_validation() const;
|
||||
void set_utf8_validation(::pb::JavaFeatures_Utf8Validation value);
|
||||
|
|
@ -529,8 +528,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JavaFeatures final :
|
|||
|
||||
public:
|
||||
// optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
|
||||
[[nodiscard]] bool has_legacy_closed_enum()
|
||||
const;
|
||||
[[nodiscard]] bool has_legacy_closed_enum() const;
|
||||
void clear_legacy_closed_enum() ;
|
||||
[[nodiscard]] bool legacy_closed_enum() const;
|
||||
void set_legacy_closed_enum(bool value);
|
||||
|
|
@ -541,8 +539,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JavaFeatures final :
|
|||
|
||||
public:
|
||||
// optional bool large_enum = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = {
|
||||
[[nodiscard]] bool has_large_enum()
|
||||
const;
|
||||
[[nodiscard]] bool has_large_enum() const;
|
||||
void clear_large_enum() ;
|
||||
[[nodiscard]] bool large_enum() const;
|
||||
void set_large_enum(bool value);
|
||||
|
|
@ -553,8 +550,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JavaFeatures final :
|
|||
|
||||
public:
|
||||
// optional bool use_old_outer_classname_default = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FILE, edition_defaults = {
|
||||
[[nodiscard]] bool has_use_old_outer_classname_default()
|
||||
const;
|
||||
[[nodiscard]] bool has_use_old_outer_classname_default() const;
|
||||
void clear_use_old_outer_classname_default() ;
|
||||
[[nodiscard]] bool use_old_outer_classname_default() const;
|
||||
void set_use_old_outer_classname_default(bool value);
|
||||
|
|
@ -565,8 +561,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JavaFeatures final :
|
|||
|
||||
public:
|
||||
// optional .pb.JavaFeatures.NestInFileClassFeature.NestInFileClass nest_in_file_class = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_SERVICE, edition_defaults = {
|
||||
[[nodiscard]] bool has_nest_in_file_class()
|
||||
const;
|
||||
[[nodiscard]] bool has_nest_in_file_class() const;
|
||||
void clear_nest_in_file_class() ;
|
||||
[[nodiscard]] ::pb::JavaFeatures_NestInFileClassFeature_NestInFileClass nest_in_file_class() const;
|
||||
void set_nest_in_file_class(::pb::JavaFeatures_NestInFileClassFeature_NestInFileClass value);
|
||||
|
|
|
|||
|
|
@ -307,8 +307,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Version final : publi
|
|||
kPatchFieldNumber = 3,
|
||||
};
|
||||
// optional string suffix = 4;
|
||||
[[nodiscard]] bool has_suffix()
|
||||
const;
|
||||
[[nodiscard]] bool has_suffix() const;
|
||||
void clear_suffix() ;
|
||||
[[nodiscard]] const ::std::string& suffix() const;
|
||||
template <typename Arg_ = const ::std::string&, typename... Args_>
|
||||
|
|
@ -324,8 +323,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Version final : publi
|
|||
|
||||
public:
|
||||
// optional int32 major = 1;
|
||||
[[nodiscard]] bool has_major()
|
||||
const;
|
||||
[[nodiscard]] bool has_major() const;
|
||||
void clear_major() ;
|
||||
[[nodiscard]] ::int32_t major() const;
|
||||
void set_major(::int32_t value);
|
||||
|
|
@ -336,8 +334,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Version final : publi
|
|||
|
||||
public:
|
||||
// optional int32 minor = 2;
|
||||
[[nodiscard]] bool has_minor()
|
||||
const;
|
||||
[[nodiscard]] bool has_minor() const;
|
||||
void clear_minor() ;
|
||||
[[nodiscard]] ::int32_t minor() const;
|
||||
void set_minor(::int32_t value);
|
||||
|
|
@ -348,8 +345,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Version final : publi
|
|||
|
||||
public:
|
||||
// optional int32 patch = 3;
|
||||
[[nodiscard]] bool has_patch()
|
||||
const;
|
||||
[[nodiscard]] bool has_patch() const;
|
||||
void clear_patch() ;
|
||||
[[nodiscard]] ::int32_t patch() const;
|
||||
void set_patch(::int32_t value);
|
||||
|
|
@ -557,8 +553,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CodeGeneratorResponse
|
|||
kGeneratedCodeInfoFieldNumber = 16,
|
||||
};
|
||||
// optional string name = 1;
|
||||
[[nodiscard]] bool has_name()
|
||||
const;
|
||||
[[nodiscard]] bool has_name() const;
|
||||
void clear_name() ;
|
||||
[[nodiscard]] const ::std::string& name() const;
|
||||
template <typename Arg_ = const ::std::string&, typename... Args_>
|
||||
|
|
@ -574,8 +569,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CodeGeneratorResponse
|
|||
|
||||
public:
|
||||
// optional string insertion_point = 2;
|
||||
[[nodiscard]] bool has_insertion_point()
|
||||
const;
|
||||
[[nodiscard]] bool has_insertion_point() const;
|
||||
void clear_insertion_point() ;
|
||||
[[nodiscard]] const ::std::string& insertion_point() const;
|
||||
template <typename Arg_ = const ::std::string&, typename... Args_>
|
||||
|
|
@ -591,8 +585,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CodeGeneratorResponse
|
|||
|
||||
public:
|
||||
// optional string content = 15;
|
||||
[[nodiscard]] bool has_content()
|
||||
const;
|
||||
[[nodiscard]] bool has_content() const;
|
||||
void clear_content() ;
|
||||
[[nodiscard]] const ::std::string& content() const;
|
||||
template <typename Arg_ = const ::std::string&, typename... Args_>
|
||||
|
|
@ -608,8 +601,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CodeGeneratorResponse
|
|||
|
||||
public:
|
||||
// optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
|
||||
[[nodiscard]] bool has_generated_code_info()
|
||||
const;
|
||||
[[nodiscard]] bool has_generated_code_info() const;
|
||||
void clear_generated_code_info() ;
|
||||
[[nodiscard]] const ::google::protobuf::GeneratedCodeInfo& generated_code_info() const;
|
||||
[[nodiscard]] ::google::protobuf::GeneratedCodeInfo* PROTOBUF_NULLABLE release_generated_code_info();
|
||||
|
|
@ -844,8 +836,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CodeGeneratorResponse
|
|||
kMaximumEditionFieldNumber = 4,
|
||||
};
|
||||
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
|
||||
[[nodiscard]] int file_size()
|
||||
const;
|
||||
[[nodiscard]] int file_size() const;
|
||||
private:
|
||||
int _internal_file_size() const;
|
||||
|
||||
|
|
@ -865,8 +856,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CodeGeneratorResponse
|
|||
|
||||
public:
|
||||
// optional string error = 1;
|
||||
[[nodiscard]] bool has_error()
|
||||
const;
|
||||
[[nodiscard]] bool has_error() const;
|
||||
void clear_error() ;
|
||||
[[nodiscard]] const ::std::string& error() const;
|
||||
template <typename Arg_ = const ::std::string&, typename... Args_>
|
||||
|
|
@ -882,8 +872,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CodeGeneratorResponse
|
|||
|
||||
public:
|
||||
// optional uint64 supported_features = 2;
|
||||
[[nodiscard]] bool has_supported_features()
|
||||
const;
|
||||
[[nodiscard]] bool has_supported_features() const;
|
||||
void clear_supported_features() ;
|
||||
[[nodiscard]] ::uint64_t supported_features() const;
|
||||
void set_supported_features(::uint64_t value);
|
||||
|
|
@ -894,8 +883,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CodeGeneratorResponse
|
|||
|
||||
public:
|
||||
// optional int32 minimum_edition = 3;
|
||||
[[nodiscard]] bool has_minimum_edition()
|
||||
const;
|
||||
[[nodiscard]] bool has_minimum_edition() const;
|
||||
void clear_minimum_edition() ;
|
||||
[[nodiscard]] ::int32_t minimum_edition() const;
|
||||
void set_minimum_edition(::int32_t value);
|
||||
|
|
@ -906,8 +894,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CodeGeneratorResponse
|
|||
|
||||
public:
|
||||
// optional int32 maximum_edition = 4;
|
||||
[[nodiscard]] bool has_maximum_edition()
|
||||
const;
|
||||
[[nodiscard]] bool has_maximum_edition() const;
|
||||
void clear_maximum_edition() ;
|
||||
[[nodiscard]] ::int32_t maximum_edition() const;
|
||||
void set_maximum_edition(::int32_t value);
|
||||
|
|
@ -1122,8 +1109,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CodeGeneratorRequest
|
|||
kSourceFileDescriptorsFieldNumber = 17,
|
||||
};
|
||||
// repeated string file_to_generate = 1;
|
||||
[[nodiscard]] int file_to_generate_size()
|
||||
const;
|
||||
[[nodiscard]] int file_to_generate_size() const;
|
||||
private:
|
||||
int _internal_file_to_generate_size() const;
|
||||
|
||||
|
|
@ -1149,8 +1135,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CodeGeneratorRequest
|
|||
|
||||
public:
|
||||
// repeated .google.protobuf.FileDescriptorProto proto_file = 15;
|
||||
[[nodiscard]] int proto_file_size()
|
||||
const;
|
||||
[[nodiscard]] int proto_file_size() const;
|
||||
private:
|
||||
int _internal_proto_file_size() const;
|
||||
|
||||
|
|
@ -1170,8 +1155,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CodeGeneratorRequest
|
|||
|
||||
public:
|
||||
// optional string parameter = 2;
|
||||
[[nodiscard]] bool has_parameter()
|
||||
const;
|
||||
[[nodiscard]] bool has_parameter() const;
|
||||
void clear_parameter() ;
|
||||
[[nodiscard]] const ::std::string& parameter() const;
|
||||
template <typename Arg_ = const ::std::string&, typename... Args_>
|
||||
|
|
@ -1187,8 +1171,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CodeGeneratorRequest
|
|||
|
||||
public:
|
||||
// optional .google.protobuf.compiler.Version compiler_version = 3;
|
||||
[[nodiscard]] bool has_compiler_version()
|
||||
const;
|
||||
[[nodiscard]] bool has_compiler_version() const;
|
||||
void clear_compiler_version() ;
|
||||
[[nodiscard]] const ::google::protobuf::compiler::Version& compiler_version() const;
|
||||
[[nodiscard]] ::google::protobuf::compiler::Version* PROTOBUF_NULLABLE release_compiler_version();
|
||||
|
|
@ -1203,8 +1186,7 @@ class PROTOC_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CodeGeneratorRequest
|
|||
|
||||
public:
|
||||
// repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17;
|
||||
[[nodiscard]] int source_file_descriptors_size()
|
||||
const;
|
||||
[[nodiscard]] int source_file_descriptors_size() const;
|
||||
private:
|
||||
int _internal_source_file_descriptors_size() const;
|
||||
|
||||
|
|
|
|||
|
|
@ -368,8 +368,7 @@ class PROTOBUF_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CppFeatures final :
|
|||
kRepeatedTypeFieldNumber = 4,
|
||||
};
|
||||
// optional .pb.CppFeatures.StringType string_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
|
||||
[[nodiscard]] bool has_string_type()
|
||||
const;
|
||||
[[nodiscard]] bool has_string_type() const;
|
||||
void clear_string_type() ;
|
||||
[[nodiscard]] ::pb::CppFeatures_StringType string_type() const;
|
||||
void set_string_type(::pb::CppFeatures_StringType value);
|
||||
|
|
@ -380,8 +379,7 @@ class PROTOBUF_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CppFeatures final :
|
|||
|
||||
public:
|
||||
// optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
|
||||
[[nodiscard]] bool has_legacy_closed_enum()
|
||||
const;
|
||||
[[nodiscard]] bool has_legacy_closed_enum() const;
|
||||
void clear_legacy_closed_enum() ;
|
||||
[[nodiscard]] bool legacy_closed_enum() const;
|
||||
void set_legacy_closed_enum(bool value);
|
||||
|
|
@ -392,8 +390,7 @@ class PROTOBUF_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CppFeatures final :
|
|||
|
||||
public:
|
||||
// optional bool enum_name_uses_string_view = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = {
|
||||
[[nodiscard]] bool has_enum_name_uses_string_view()
|
||||
const;
|
||||
[[nodiscard]] bool has_enum_name_uses_string_view() const;
|
||||
void clear_enum_name_uses_string_view() ;
|
||||
[[nodiscard]] bool enum_name_uses_string_view() const;
|
||||
void set_enum_name_uses_string_view(bool value);
|
||||
|
|
@ -404,8 +401,7 @@ class PROTOBUF_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CppFeatures final :
|
|||
|
||||
public:
|
||||
// optional .pb.CppFeatures.RepeatedType repeated_type = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
|
||||
[[nodiscard]] bool has_repeated_type()
|
||||
const;
|
||||
[[nodiscard]] bool has_repeated_type() const;
|
||||
void clear_repeated_type() ;
|
||||
[[nodiscard]] ::pb::CppFeatures_RepeatedType repeated_type() const;
|
||||
void set_repeated_type(::pb::CppFeatures_RepeatedType value);
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue