@@ -151,9 +151,16 @@ class FileDescriptorProto(google.protobuf.message.Message):
151151 The supported values are "proto2", "proto3", and "editions".
152152
153153 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.
154157 """
155158 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+ """
157164 @property
158165 def dependency (self ) -> google .protobuf .internal .containers .RepeatedScalarFieldContainer [builtins .str ]:
159166 """Names of files imported by this file."""
@@ -982,7 +989,11 @@ class FileOptions(google.protobuf.message.Message):
982989 """
983990 @property
984991 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+ """
986997
987998 @property
988999 def uninterpreted_option (self ) -> google .protobuf .internal .containers .RepeatedCompositeFieldContainer [global___UninterpretedOption ]:
@@ -1099,7 +1110,11 @@ class MessageOptions(google.protobuf.message.Message):
10991110 """
11001111 @property
11011112 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+ """
11031118
11041119 @property
11051120 def uninterpreted_option (self ) -> google .protobuf .internal .containers .RepeatedCompositeFieldContainer [global___UninterpretedOption ]:
@@ -1378,7 +1393,11 @@ class FieldOptions(google.protobuf.message.Message):
13781393 def edition_defaults (self ) -> google .protobuf .internal .containers .RepeatedCompositeFieldContainer [global___FieldOptions .EditionDefault ]: ...
13791394 @property
13801395 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+ """
13821401
13831402 @property
13841403 def feature_support (self ) -> global___FieldOptions .FeatureSupport : ...
@@ -1417,7 +1436,11 @@ class OneofOptions(google.protobuf.message.Message):
14171436 UNINTERPRETED_OPTION_FIELD_NUMBER : builtins .int
14181437 @property
14191438 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+ """
14211444
14221445 @property
14231446 def uninterpreted_option (self ) -> google .protobuf .internal .containers .RepeatedCompositeFieldContainer [global___UninterpretedOption ]:
@@ -1463,7 +1486,11 @@ class EnumOptions(google.protobuf.message.Message):
14631486 """
14641487 @property
14651488 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+ """
14671494
14681495 @property
14691496 def uninterpreted_option (self ) -> google .protobuf .internal .containers .RepeatedCompositeFieldContainer [global___UninterpretedOption ]:
@@ -1505,7 +1532,11 @@ class EnumValueOptions(google.protobuf.message.Message):
15051532 """
15061533 @property
15071534 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+ """
15091540
15101541 @property
15111542 def feature_support (self ) -> global___FieldOptions .FeatureSupport :
@@ -1549,7 +1580,11 @@ class ServiceOptions(google.protobuf.message.Message):
15491580 """
15501581 @property
15511582 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+ """
15531588
15541589 @property
15551590 def uninterpreted_option (self ) -> google .protobuf .internal .containers .RepeatedCompositeFieldContainer [global___UninterpretedOption ]:
@@ -1613,7 +1648,11 @@ class MethodOptions(google.protobuf.message.Message):
16131648 idempotency_level : global___MethodOptions .IdempotencyLevel .ValueType
16141649 @property
16151650 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+ """
16171656
16181657 @property
16191658 def uninterpreted_option (self ) -> google .protobuf .internal .containers .RepeatedCompositeFieldContainer [global___UninterpretedOption ]:
@@ -1809,18 +1848,35 @@ class FeatureSet(google.protobuf.message.Message):
18091848 ALLOW : FeatureSet .JsonFormat .ValueType # 1
18101849 LEGACY_BEST_EFFORT : FeatureSet .JsonFormat .ValueType # 2
18111850
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+
18121866 FIELD_PRESENCE_FIELD_NUMBER : builtins .int
18131867 ENUM_TYPE_FIELD_NUMBER : builtins .int
18141868 REPEATED_FIELD_ENCODING_FIELD_NUMBER : builtins .int
18151869 UTF8_VALIDATION_FIELD_NUMBER : builtins .int
18161870 MESSAGE_ENCODING_FIELD_NUMBER : builtins .int
18171871 JSON_FORMAT_FIELD_NUMBER : builtins .int
1872+ ENFORCE_NAMING_STYLE_FIELD_NUMBER : builtins .int
18181873 field_presence : global___FeatureSet .FieldPresence .ValueType
18191874 enum_type : global___FeatureSet .EnumType .ValueType
18201875 repeated_field_encoding : global___FeatureSet .RepeatedFieldEncoding .ValueType
18211876 utf8_validation : global___FeatureSet .Utf8Validation .ValueType
18221877 message_encoding : global___FeatureSet .MessageEncoding .ValueType
18231878 json_format : global___FeatureSet .JsonFormat .ValueType
1879+ enforce_naming_style : global___FeatureSet .EnforceNamingStyle .ValueType
18241880 def __init__ (
18251881 self ,
18261882 * ,
@@ -1830,9 +1886,10 @@ class FeatureSet(google.protobuf.message.Message):
18301886 utf8_validation : global___FeatureSet .Utf8Validation .ValueType | None = ...,
18311887 message_encoding : global___FeatureSet .MessageEncoding .ValueType | None = ...,
18321888 json_format : global___FeatureSet .JsonFormat .ValueType | None = ...,
1889+ enforce_naming_style : global___FeatureSet .EnforceNamingStyle .ValueType | None = ...,
18331890 ) -> 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 : ...
18361893
18371894global___FeatureSet = FeatureSet
18381895
0 commit comments