Debian Codegraph @

google/rpc/code_pb2.pyi

raw
1 # Copyright 2025 Google LLC
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 from typing import ClassVar as _ClassVar
16
17 from google.protobuf import descriptor as _descriptor
18 from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
19
20 DESCRIPTOR: _descriptor.FileDescriptor
21
22 class Code(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
23 __slots__ = ()
24 OK: _ClassVar[Code]
25 CANCELLED: _ClassVar[Code]
26 UNKNOWN: _ClassVar[Code]
27 INVALID_ARGUMENT: _ClassVar[Code]
28 DEADLINE_EXCEEDED: _ClassVar[Code]
29 NOT_FOUND: _ClassVar[Code]
30 ALREADY_EXISTS: _ClassVar[Code]
31 PERMISSION_DENIED: _ClassVar[Code]
32 UNAUTHENTICATED: _ClassVar[Code]
33 RESOURCE_EXHAUSTED: _ClassVar[Code]
34 FAILED_PRECONDITION: _ClassVar[Code]
35 ABORTED: _ClassVar[Code]
36 OUT_OF_RANGE: _ClassVar[Code]
37 UNIMPLEMENTED: _ClassVar[Code]
38 INTERNAL: _ClassVar[Code]
39 UNAVAILABLE: _ClassVar[Code]
40 DATA_LOSS: _ClassVar[Code]
41
42 OK: Code
43 CANCELLED: Code
44 UNKNOWN: Code
45 INVALID_ARGUMENT: Code
46 DEADLINE_EXCEEDED: Code
47 NOT_FOUND: Code
48 ALREADY_EXISTS: Code
49 PERMISSION_DENIED: Code
50 UNAUTHENTICATED: Code
51 RESOURCE_EXHAUSTED: Code
52 FAILED_PRECONDITION: Code
53 ABORTED: Code
54 OUT_OF_RANGE: Code
55 UNIMPLEMENTED: Code
56 INTERNAL: Code
57 UNAVAILABLE: Code
58 DATA_LOSS: Code