@@ -16,29 +16,29 @@ See the License for the specific language governing permissions and
1616limitations under the License.
1717"""
1818
19- import builtins
20- import collections . abc
21- import google .protobuf . descriptor
22- import google .protobuf . internal . containers
23- import google .protobuf .internal . enum_type_wrapper
24- import google .protobuf .message
25- import google . protobuf . timestamp_pb2
19+ from collections import abc as _abc
20+ from google . protobuf import descriptor as _descriptor
21+ from google .protobuf import message as _message
22+ from google .protobuf import timestamp_pb2 as _timestamp_pb2
23+ from google .protobuf .internal import containers as _containers
24+ from google .protobuf .internal import enum_type_wrapper as _enum_type_wrapper
25+ import builtins as _builtins
2626import sys
27- import typing
27+ import typing as _typing
2828
2929if sys .version_info >= (3 , 10 ):
30- import typing as typing_extensions
30+ from typing import TypeAlias as _TypeAlias
3131else :
32- import typing_extensions
32+ from typing_extensions import TypeAlias as _TypeAlias
3333
34- DESCRIPTOR : google . protobuf . descriptor .FileDescriptor
34+ DESCRIPTOR : _descriptor .FileDescriptor
3535
3636class _ImportFindingType :
37- ValueType = typing .NewType ("ValueType" , builtins .int )
38- V : typing_extensions . TypeAlias = ValueType
37+ ValueType = _typing .NewType ("ValueType" , _builtins .int )
38+ V : _TypeAlias = ValueType # noqa: Y015
3939
40- class _ImportFindingTypeEnumTypeWrapper (google . protobuf . internal . enum_type_wrapper . _EnumTypeWrapper [_ImportFindingType .ValueType ], builtins .type ):
41- DESCRIPTOR : google . protobuf . descriptor .EnumDescriptor
40+ class _ImportFindingTypeEnumTypeWrapper (_enum_type_wrapper . _EnumTypeWrapper [_ImportFindingType .ValueType ], _builtins .type ):
41+ DESCRIPTOR : _descriptor .EnumDescriptor
4242 IMPORT_FINDING_TYPE_NONE : _ImportFindingType .ValueType # 0
4343 IMPORT_FINDING_TYPE_DELETED : _ImportFindingType .ValueType # 1
4444 IMPORT_FINDING_TYPE_INVALID_JSON : _ImportFindingType .ValueType # 2
@@ -68,40 +68,42 @@ IMPORT_FINDING_TYPE_INVALID_ALIASES: ImportFindingType.ValueType # 9
6868IMPORT_FINDING_TYPE_INVALID_UPSTREAM : ImportFindingType .ValueType # 10
6969IMPORT_FINDING_TYPE_INVALID_RELATED : ImportFindingType .ValueType # 11
7070IMPORT_FINDING_TYPE_BAD_ALIASED_CVE : ImportFindingType .ValueType # 12
71- global___ImportFindingType = ImportFindingType
71+ Global___ImportFindingType : _TypeAlias = ImportFindingType # noqa: Y015
7272
73- @typing .final
74- class ImportFinding (google . protobuf . message .Message ):
73+ @_typing .final
74+ class ImportFinding (_message .Message ):
7575 """An importfinding entry.
7676 The protobuf representation is *NOT* stable and only used for implementing
7777 the JSON based API.
7878 """
7979
80- DESCRIPTOR : google . protobuf . descriptor .Descriptor
80+ DESCRIPTOR : _descriptor .Descriptor
8181
82- BUG_ID_FIELD_NUMBER : builtins .int
83- SOURCE_FIELD_NUMBER : builtins .int
84- FINDINGS_FIELD_NUMBER : builtins .int
85- FIRST_SEEN_FIELD_NUMBER : builtins .int
86- LAST_ATTEMPT_FIELD_NUMBER : builtins .int
87- bug_id : builtins .str
88- source : builtins .str
89- @property
90- def findings (self ) -> google . protobuf . internal . containers . RepeatedScalarFieldContainer [global___ImportFindingType .ValueType ]: ...
91- @property
92- def first_seen (self ) -> google . protobuf . timestamp_pb2 .Timestamp : ...
93- @property
94- def last_attempt (self ) -> google . protobuf . timestamp_pb2 .Timestamp : ...
82+ BUG_ID_FIELD_NUMBER : _builtins .int
83+ SOURCE_FIELD_NUMBER : _builtins .int
84+ FINDINGS_FIELD_NUMBER : _builtins .int
85+ FIRST_SEEN_FIELD_NUMBER : _builtins .int
86+ LAST_ATTEMPT_FIELD_NUMBER : _builtins .int
87+ bug_id : _builtins .str
88+ source : _builtins .str
89+ @_builtins . property
90+ def findings (self ) -> _containers . RepeatedScalarFieldContainer [Global___ImportFindingType .ValueType ]: ...
91+ @_builtins . property
92+ def first_seen (self ) -> _timestamp_pb2 .Timestamp : ...
93+ @_builtins . property
94+ def last_attempt (self ) -> _timestamp_pb2 .Timestamp : ...
9595 def __init__ (
9696 self ,
9797 * ,
98- bug_id : builtins .str = ...,
99- source : builtins .str = ...,
100- findings : collections . abc . Iterable [global___ImportFindingType .ValueType ] | None = ...,
101- first_seen : google . protobuf . timestamp_pb2 .Timestamp | None = ...,
102- last_attempt : google . protobuf . timestamp_pb2 .Timestamp | None = ...,
98+ bug_id : _builtins .str = ...,
99+ source : _builtins .str = ...,
100+ findings : _abc . Iterable [Global___ImportFindingType .ValueType ] | None = ...,
101+ first_seen : _timestamp_pb2 .Timestamp | None = ...,
102+ last_attempt : _timestamp_pb2 .Timestamp | None = ...,
103103 ) -> None : ...
104- def HasField (self , field_name : typing .Literal ["first_seen" , b"first_seen" , "last_attempt" , b"last_attempt" ]) -> builtins .bool : ...
105- def ClearField (self , field_name : typing .Literal ["bug_id" , b"bug_id" , "findings" , b"findings" , "first_seen" , b"first_seen" , "last_attempt" , b"last_attempt" , "source" , b"source" ]) -> None : ...
104+ _HasFieldArgType : _TypeAlias = _typing .Literal ["first_seen" , b"first_seen" , "last_attempt" , b"last_attempt" ] # noqa: Y015
105+ def HasField (self , field_name : _HasFieldArgType ) -> _builtins .bool : ...
106+ _ClearFieldArgType : _TypeAlias = _typing .Literal ["bug_id" , b"bug_id" , "findings" , b"findings" , "first_seen" , b"first_seen" , "last_attempt" , b"last_attempt" , "source" , b"source" ] # noqa: Y015
107+ def ClearField (self , field_name : _ClearFieldArgType ) -> None : ...
106108
107- global___ImportFinding = ImportFinding
109+ Global___ImportFinding : _TypeAlias = ImportFinding # noqa: Y015
0 commit comments