@@ -151,9 +151,16 @@ class FileDescriptorProto(google.protobuf.message.Message):
151
151
The supported values are "proto2", "proto3", and "editions".
152
152
153
153
If `edition` is present, this value must be "editions".
154
+ WARNING: This field should only be used by protobuf plugins or special
155
+ cases like the proto compiler. Other uses are discouraged and
156
+ developers should rely on the protoreflect APIs for their client language.
154
157
"""
155
158
edition : global___Edition .ValueType
156
- """The edition of the proto file."""
159
+ """The edition of the proto file.
160
+ WARNING: This field should only be used by protobuf plugins or special
161
+ cases like the proto compiler. Other uses are discouraged and
162
+ developers should rely on the protoreflect APIs for their client language.
163
+ """
157
164
@property
158
165
def dependency (self ) -> google .protobuf .internal .containers .RepeatedScalarFieldContainer [builtins .str ]:
159
166
"""Names of files imported by this file."""
@@ -982,7 +989,11 @@ class FileOptions(google.protobuf.message.Message):
982
989
"""
983
990
@property
984
991
def features (self ) -> global___FeatureSet :
985
- """Any features defined in the specific edition."""
992
+ """Any features defined in the specific edition.
993
+ WARNING: This field should only be used by protobuf plugins or special
994
+ cases like the proto compiler. Other uses are discouraged and
995
+ developers should rely on the protoreflect APIs for their client language.
996
+ """
986
997
987
998
@property
988
999
def uninterpreted_option (self ) -> google .protobuf .internal .containers .RepeatedCompositeFieldContainer [global___UninterpretedOption ]:
@@ -1099,7 +1110,11 @@ class MessageOptions(google.protobuf.message.Message):
1099
1110
"""
1100
1111
@property
1101
1112
def features (self ) -> global___FeatureSet :
1102
- """Any features defined in the specific edition."""
1113
+ """Any features defined in the specific edition.
1114
+ WARNING: This field should only be used by protobuf plugins or special
1115
+ cases like the proto compiler. Other uses are discouraged and
1116
+ developers should rely on the protoreflect APIs for their client language.
1117
+ """
1103
1118
1104
1119
@property
1105
1120
def uninterpreted_option (self ) -> google .protobuf .internal .containers .RepeatedCompositeFieldContainer [global___UninterpretedOption ]:
@@ -1378,7 +1393,11 @@ class FieldOptions(google.protobuf.message.Message):
1378
1393
def edition_defaults (self ) -> google .protobuf .internal .containers .RepeatedCompositeFieldContainer [global___FieldOptions .EditionDefault ]: ...
1379
1394
@property
1380
1395
def features (self ) -> global___FeatureSet :
1381
- """Any features defined in the specific edition."""
1396
+ """Any features defined in the specific edition.
1397
+ WARNING: This field should only be used by protobuf plugins or special
1398
+ cases like the proto compiler. Other uses are discouraged and
1399
+ developers should rely on the protoreflect APIs for their client language.
1400
+ """
1382
1401
1383
1402
@property
1384
1403
def feature_support (self ) -> global___FieldOptions .FeatureSupport : ...
@@ -1417,7 +1436,11 @@ class OneofOptions(google.protobuf.message.Message):
1417
1436
UNINTERPRETED_OPTION_FIELD_NUMBER : builtins .int
1418
1437
@property
1419
1438
def features (self ) -> global___FeatureSet :
1420
- """Any features defined in the specific edition."""
1439
+ """Any features defined in the specific edition.
1440
+ WARNING: This field should only be used by protobuf plugins or special
1441
+ cases like the proto compiler. Other uses are discouraged and
1442
+ developers should rely on the protoreflect APIs for their client language.
1443
+ """
1421
1444
1422
1445
@property
1423
1446
def uninterpreted_option (self ) -> google .protobuf .internal .containers .RepeatedCompositeFieldContainer [global___UninterpretedOption ]:
@@ -1463,7 +1486,11 @@ class EnumOptions(google.protobuf.message.Message):
1463
1486
"""
1464
1487
@property
1465
1488
def features (self ) -> global___FeatureSet :
1466
- """Any features defined in the specific edition."""
1489
+ """Any features defined in the specific edition.
1490
+ WARNING: This field should only be used by protobuf plugins or special
1491
+ cases like the proto compiler. Other uses are discouraged and
1492
+ developers should rely on the protoreflect APIs for their client language.
1493
+ """
1467
1494
1468
1495
@property
1469
1496
def uninterpreted_option (self ) -> google .protobuf .internal .containers .RepeatedCompositeFieldContainer [global___UninterpretedOption ]:
@@ -1505,7 +1532,11 @@ class EnumValueOptions(google.protobuf.message.Message):
1505
1532
"""
1506
1533
@property
1507
1534
def features (self ) -> global___FeatureSet :
1508
- """Any features defined in the specific edition."""
1535
+ """Any features defined in the specific edition.
1536
+ WARNING: This field should only be used by protobuf plugins or special
1537
+ cases like the proto compiler. Other uses are discouraged and
1538
+ developers should rely on the protoreflect APIs for their client language.
1539
+ """
1509
1540
1510
1541
@property
1511
1542
def feature_support (self ) -> global___FieldOptions .FeatureSupport :
@@ -1549,7 +1580,11 @@ class ServiceOptions(google.protobuf.message.Message):
1549
1580
"""
1550
1581
@property
1551
1582
def features (self ) -> global___FeatureSet :
1552
- """Any features defined in the specific edition."""
1583
+ """Any features defined in the specific edition.
1584
+ WARNING: This field should only be used by protobuf plugins or special
1585
+ cases like the proto compiler. Other uses are discouraged and
1586
+ developers should rely on the protoreflect APIs for their client language.
1587
+ """
1553
1588
1554
1589
@property
1555
1590
def uninterpreted_option (self ) -> google .protobuf .internal .containers .RepeatedCompositeFieldContainer [global___UninterpretedOption ]:
@@ -1613,7 +1648,11 @@ class MethodOptions(google.protobuf.message.Message):
1613
1648
idempotency_level : global___MethodOptions .IdempotencyLevel .ValueType
1614
1649
@property
1615
1650
def features (self ) -> global___FeatureSet :
1616
- """Any features defined in the specific edition."""
1651
+ """Any features defined in the specific edition.
1652
+ WARNING: This field should only be used by protobuf plugins or special
1653
+ cases like the proto compiler. Other uses are discouraged and
1654
+ developers should rely on the protoreflect APIs for their client language.
1655
+ """
1617
1656
1618
1657
@property
1619
1658
def uninterpreted_option (self ) -> google .protobuf .internal .containers .RepeatedCompositeFieldContainer [global___UninterpretedOption ]:
@@ -1809,18 +1848,35 @@ class FeatureSet(google.protobuf.message.Message):
1809
1848
ALLOW : FeatureSet .JsonFormat .ValueType # 1
1810
1849
LEGACY_BEST_EFFORT : FeatureSet .JsonFormat .ValueType # 2
1811
1850
1851
+ class _EnforceNamingStyle :
1852
+ ValueType = typing .NewType ("ValueType" , builtins .int )
1853
+ V : typing_extensions .TypeAlias = ValueType
1854
+
1855
+ class _EnforceNamingStyleEnumTypeWrapper (google .protobuf .internal .enum_type_wrapper ._EnumTypeWrapper [FeatureSet ._EnforceNamingStyle .ValueType ], builtins .type ):
1856
+ DESCRIPTOR : google .protobuf .descriptor .EnumDescriptor
1857
+ ENFORCE_NAMING_STYLE_UNKNOWN : FeatureSet ._EnforceNamingStyle .ValueType # 0
1858
+ STYLE2024 : FeatureSet ._EnforceNamingStyle .ValueType # 1
1859
+ STYLE_LEGACY : FeatureSet ._EnforceNamingStyle .ValueType # 2
1860
+
1861
+ class EnforceNamingStyle (_EnforceNamingStyle , metaclass = _EnforceNamingStyleEnumTypeWrapper ): ...
1862
+ ENFORCE_NAMING_STYLE_UNKNOWN : FeatureSet .EnforceNamingStyle .ValueType # 0
1863
+ STYLE2024 : FeatureSet .EnforceNamingStyle .ValueType # 1
1864
+ STYLE_LEGACY : FeatureSet .EnforceNamingStyle .ValueType # 2
1865
+
1812
1866
FIELD_PRESENCE_FIELD_NUMBER : builtins .int
1813
1867
ENUM_TYPE_FIELD_NUMBER : builtins .int
1814
1868
REPEATED_FIELD_ENCODING_FIELD_NUMBER : builtins .int
1815
1869
UTF8_VALIDATION_FIELD_NUMBER : builtins .int
1816
1870
MESSAGE_ENCODING_FIELD_NUMBER : builtins .int
1817
1871
JSON_FORMAT_FIELD_NUMBER : builtins .int
1872
+ ENFORCE_NAMING_STYLE_FIELD_NUMBER : builtins .int
1818
1873
field_presence : global___FeatureSet .FieldPresence .ValueType
1819
1874
enum_type : global___FeatureSet .EnumType .ValueType
1820
1875
repeated_field_encoding : global___FeatureSet .RepeatedFieldEncoding .ValueType
1821
1876
utf8_validation : global___FeatureSet .Utf8Validation .ValueType
1822
1877
message_encoding : global___FeatureSet .MessageEncoding .ValueType
1823
1878
json_format : global___FeatureSet .JsonFormat .ValueType
1879
+ enforce_naming_style : global___FeatureSet .EnforceNamingStyle .ValueType
1824
1880
def __init__ (
1825
1881
self ,
1826
1882
* ,
@@ -1830,9 +1886,10 @@ class FeatureSet(google.protobuf.message.Message):
1830
1886
utf8_validation : global___FeatureSet .Utf8Validation .ValueType | None = ...,
1831
1887
message_encoding : global___FeatureSet .MessageEncoding .ValueType | None = ...,
1832
1888
json_format : global___FeatureSet .JsonFormat .ValueType | None = ...,
1889
+ enforce_naming_style : global___FeatureSet .EnforceNamingStyle .ValueType | None = ...,
1833
1890
) -> None : ...
1834
- def HasField (self , field_name : typing .Literal ["enum_type" , b"enum_type" , "field_presence" , b"field_presence" , "json_format" , b"json_format" , "message_encoding" , b"message_encoding" , "repeated_field_encoding" , b"repeated_field_encoding" , "utf8_validation" , b"utf8_validation" ]) -> builtins .bool : ...
1835
- def ClearField (self , field_name : typing .Literal ["enum_type" , b"enum_type" , "field_presence" , b"field_presence" , "json_format" , b"json_format" , "message_encoding" , b"message_encoding" , "repeated_field_encoding" , b"repeated_field_encoding" , "utf8_validation" , b"utf8_validation" ]) -> None : ...
1891
+ def HasField (self , field_name : typing .Literal ["enforce_naming_style" , b"enforce_naming_style" , " enum_type" , b"enum_type" , "field_presence" , b"field_presence" , "json_format" , b"json_format" , "message_encoding" , b"message_encoding" , "repeated_field_encoding" , b"repeated_field_encoding" , "utf8_validation" , b"utf8_validation" ]) -> builtins .bool : ...
1892
+ def ClearField (self , field_name : typing .Literal ["enforce_naming_style" , b"enforce_naming_style" , " enum_type" , b"enum_type" , "field_presence" , b"field_presence" , "json_format" , b"json_format" , "message_encoding" , b"message_encoding" , "repeated_field_encoding" , b"repeated_field_encoding" , "utf8_validation" , b"utf8_validation" ]) -> None : ...
1836
1893
1837
1894
global___FeatureSet = FeatureSet
1838
1895
0 commit comments