@@ -1036,17 +1036,10 @@ class PROTOBUF_EXPORT FieldDescriptor : private internal::SymbolBase,
1036
1036
friend class Reflection ;
1037
1037
friend class FieldDescriptorLegacy ;
1038
1038
1039
-
1040
- public:
1041
- ABSL_DEPRECATED (
1042
- " Syntax is deprecated in favor of editions, please use "
1043
- " FieldDescriptor::has_presence instead." )
1044
1039
// Returns true if this field was syntactically written with "optional" in the
1045
1040
// .proto file. Excludes singular proto3 fields that do not have a label.
1046
1041
bool has_optional_keyword () const ;
1047
1042
1048
- private:
1049
-
1050
1043
// Get the merged features that apply to this field. These are specified in
1051
1044
// the .proto file through the feature options in the message definition.
1052
1045
// Allowed features are defined by Features in descriptor.proto, along with
@@ -1219,17 +1212,10 @@ class PROTOBUF_EXPORT OneofDescriptor : private internal::SymbolBase {
1219
1212
friend class compiler ::cpp::Formatter;
1220
1213
friend class OneofDescriptorLegacy ;
1221
1214
1222
-
1223
- public:
1224
- ABSL_DEPRECATED (
1225
- " Syntax is deprecated in favor of editions, please use "
1226
- " real_oneof_decl_count for now instead of is_synthetic." )
1227
1215
// Returns whether this oneof was inserted by the compiler to wrap a proto3
1228
1216
// optional field. If this returns true, code generators should *not* emit it.
1229
1217
bool is_synthetic () const ;
1230
1218
1231
- private:
1232
-
1233
1219
// Get the merged features that apply to this oneof. These are specified in
1234
1220
// the .proto file through the feature options in the oneof definition.
1235
1221
// Allowed features are defined by Features in descriptor.proto, along with
@@ -1869,18 +1855,12 @@ class PROTOBUF_EXPORT FileDescriptor : private internal::SymbolBase {
1869
1855
// descriptor.proto, and any available extensions of that message.
1870
1856
const FileOptions& options () const ;
1871
1857
1872
-
1873
1858
private:
1874
1859
// With the upcoming release of editions, syntax should not be used for
1875
1860
// business logic. Instead, the various feature helpers defined in this file
1876
1861
// should be used to query more targeted behaviors. For example:
1877
1862
// has_presence, is_closed, requires_utf8_validation.
1878
- enum
1879
- ABSL_DEPRECATED (
1880
- " Syntax is deprecated in favor of editions. Please use targeted "
1881
- " feature helpers instead (e.g. has_presence, is_packed, "
1882
- " requires_utf8_validation, etc)." )
1883
- Syntax
1863
+ enum Syntax
1884
1864
#ifndef SWIG
1885
1865
: int
1886
1866
#endif // !SWIG
@@ -1891,10 +1871,6 @@ class PROTOBUF_EXPORT FileDescriptor : private internal::SymbolBase {
1891
1871
SYNTAX_EDITIONS = 99 ,
1892
1872
};
1893
1873
PROTOBUF_IGNORE_DEPRECATION_START
1894
- ABSL_DEPRECATED (
1895
- " Syntax is deprecated in favor of editions. Please use targeted "
1896
- " feature helpers instead (e.g. has_presence, is_packed, "
1897
- " requires_utf8_validation, etc)." )
1898
1874
Syntax syntax () const ;
1899
1875
PROTOBUF_IGNORE_DEPRECATION_STOP
1900
1876
@@ -1903,7 +1879,6 @@ class PROTOBUF_EXPORT FileDescriptor : private internal::SymbolBase {
1903
1879
friend class FileDescriptorLegacy ;
1904
1880
1905
1881
PROTOBUF_IGNORE_DEPRECATION_START
1906
- ABSL_DEPRECATED (" Syntax is deprecated in favor of editions" )
1907
1882
static const char * SyntaxName (Syntax syntax);
1908
1883
PROTOBUF_IGNORE_DEPRECATION_STOP
1909
1884
0 commit comments