codekingpro/portable-devtools
115k
1# Copyright 2025 Google LLC2#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 at6#7# http://www.apache.org/licenses/LICENSE-2.08#9# Unless required by applicable law or agreed to in writing, software10# 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 and13# limitations under the License.14 15from typing import ClassVar as _ClassVar16 17from google.protobuf import descriptor as _descriptor18from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper19 20DESCRIPTOR: _descriptor.FileDescriptor21 22class 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 42OK: Code43CANCELLED: Code44UNKNOWN: Code45INVALID_ARGUMENT: Code46DEADLINE_EXCEEDED: Code47NOT_FOUND: Code48ALREADY_EXISTS: Code49PERMISSION_DENIED: Code50UNAUTHENTICATED: Code51RESOURCE_EXHAUSTED: Code52FAILED_PRECONDITION: Code53ABORTED: Code54OUT_OF_RANGE: Code55UNIMPLEMENTED: Code56INTERNAL: Code57UNAVAILABLE: Code58DATA_LOSS: Code59 