@@ -77,14 +77,22 @@ class _DeprecatedEnum:
7777
7878class _DeprecatedEnumEnumTypeWrapper (google .protobuf .internal .enum_type_wrapper ._EnumTypeWrapper [_DeprecatedEnum .ValueType ], builtins .type ):
7979 DESCRIPTOR : google .protobuf .descriptor .EnumDescriptor
80- DEPRECATED_ONE : _DeprecatedEnum .ValueType # 1
81- DEPRECATED_TWO : _DeprecatedEnum .ValueType # 2
80+ @property
81+ @deprecated ("""This enum value has been marked as deprecated using proto enum value options.""" )
82+ def DEPRECATED_ONE (self ) -> _DeprecatedEnum .ValueType : # 1
83+ """Trailing comment for enum value"""
84+ @property
85+ @deprecated ("""This enum value has been marked as deprecated using proto enum value options.""" )
86+ def DEPRECATED_TWO (self ) -> _DeprecatedEnum .ValueType : ... # 2
87+ NOT_DEPRECATED : _DeprecatedEnum .ValueType # 3
8288
8389@deprecated ("""This enum is deprecated\n 2 lines of comments\n "Quotes in comments"\n and 'single quotes'\n Trailing comment""" )
8490class DeprecatedEnum (_DeprecatedEnum , metaclass = _DeprecatedEnumEnumTypeWrapper ): ...
8591
8692DEPRECATED_ONE : DeprecatedEnum .ValueType # 1
93+ """Trailing comment for enum value"""
8794DEPRECATED_TWO : DeprecatedEnum .ValueType # 2
95+ NOT_DEPRECATED : DeprecatedEnum .ValueType # 3
8896Global___DeprecatedEnum : typing_extensions .TypeAlias = DeprecatedEnum
8997
9098@typing .final
@@ -432,15 +440,35 @@ class DeprecatedMessage(google.protobuf.message.Message):
432440 DESCRIPTOR : google .protobuf .descriptor .Descriptor
433441
434442 A_STRING_FIELD_NUMBER : builtins .int
443+ DEPRECATED_FIELD_FIELD_NUMBER : builtins .int
444+ DEPRECATED_FIELD_WITH_COMMENT_FIELD_NUMBER : builtins .int
435445 a_string : builtins .str
446+ @property
447+ @deprecated ("""This field has been marked as deprecated using proto field options.""" )
448+ def deprecated_field (self ) -> builtins .str : ...
449+ @deprecated_field .setter
450+ @deprecated ("""This field has been marked as deprecated using proto field options.""" )
451+ def deprecated_field (self , value : builtins .str ) -> None : ...
452+ @property
453+ @deprecated ("""This field has been marked as deprecated using proto field options.""" )
454+ def deprecated_field_with_comment (self ) -> builtins .str :
455+ """This field is deprecated with comment"""
456+
457+ @deprecated_field_with_comment .setter
458+ @deprecated ("""This field has been marked as deprecated using proto field options.""" )
459+ def deprecated_field_with_comment (self , value : builtins .str ) -> None :
460+ """This field is deprecated with comment"""
461+
436462 def __init__ (
437463 self ,
438464 * ,
439465 a_string : builtins .str | None = ...,
466+ deprecated_field : builtins .str | None = ...,
467+ deprecated_field_with_comment : builtins .str | None = ...,
440468 ) -> None : ...
441- _HasFieldArgType : typing_extensions .TypeAlias = typing .Literal ["a_string" , b"a_string" ]
469+ _HasFieldArgType : typing_extensions .TypeAlias = typing .Literal ["a_string" , b"a_string" , "deprecated_field" , b"deprecated_field" , "deprecated_field_with_comment" , b"deprecated_field_with_comment" ]
442470 def HasField (self , field_name : _HasFieldArgType ) -> builtins .bool : ...
443- _ClearFieldArgType : typing_extensions .TypeAlias = typing .Literal ["a_string" , b"a_string" ]
471+ _ClearFieldArgType : typing_extensions .TypeAlias = typing .Literal ["a_string" , b"a_string" , "deprecated_field" , b"deprecated_field" , "deprecated_field_with_comment" , b"deprecated_field_with_comment" ]
444472 def ClearField (self , field_name : _ClearFieldArgType ) -> None : ...
445473
446474Global___DeprecatedMessage : typing_extensions .TypeAlias = DeprecatedMessage
0 commit comments