Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/proto/__init__.py: 100%
26 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-06 06:03 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-06 06:03 +0000
1# Copyright 2018 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# https://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.
15from .enums import Enum
16from .fields import Field
17from .fields import MapField
18from .fields import RepeatedField
19from .marshal import Marshal
20from .message import Message
21from .modules import define_module as module
22from .primitives import ProtoType
25DOUBLE = ProtoType.DOUBLE
26FLOAT = ProtoType.FLOAT
27INT64 = ProtoType.INT64
28UINT64 = ProtoType.UINT64
29INT32 = ProtoType.INT32
30FIXED64 = ProtoType.FIXED64
31FIXED32 = ProtoType.FIXED32
32BOOL = ProtoType.BOOL
33STRING = ProtoType.STRING
34MESSAGE = ProtoType.MESSAGE
35BYTES = ProtoType.BYTES
36UINT32 = ProtoType.UINT32
37ENUM = ProtoType.ENUM
38SFIXED32 = ProtoType.SFIXED32
39SFIXED64 = ProtoType.SFIXED64
40SINT32 = ProtoType.SINT32
41SINT64 = ProtoType.SINT64
44__all__ = (
45 "Enum",
46 "Field",
47 "MapField",
48 "RepeatedField",
49 "Marshal",
50 "Message",
51 "module",
52 # Expose the types directly.
53 "DOUBLE",
54 "FLOAT",
55 "INT64",
56 "UINT64",
57 "INT32",
58 "FIXED64",
59 "FIXED32",
60 "BOOL",
61 "STRING",
62 "MESSAGE",
63 "BYTES",
64 "UINT32",
65 "ENUM",
66 "SFIXED32",
67 "SFIXED64",
68 "SINT32",
69 "SINT64",
70)