Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/proto/__init__.py: 96%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
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, MapField, RepeatedField
17from .marshal import Marshal
18from .message import Message
19from .modules import define_module as module
20from .primitives import ProtoType
21from .version import __version__
23DOUBLE = ProtoType.DOUBLE
24FLOAT = ProtoType.FLOAT
25INT64 = ProtoType.INT64
26UINT64 = ProtoType.UINT64
27INT32 = ProtoType.INT32
28FIXED64 = ProtoType.FIXED64
29FIXED32 = ProtoType.FIXED32
30BOOL = ProtoType.BOOL
31STRING = ProtoType.STRING
32MESSAGE = ProtoType.MESSAGE
33BYTES = ProtoType.BYTES
34UINT32 = ProtoType.UINT32
35ENUM = ProtoType.ENUM
36SFIXED32 = ProtoType.SFIXED32
37SFIXED64 = ProtoType.SFIXED64
38SINT32 = ProtoType.SINT32
39SINT64 = ProtoType.SINT64
42__all__ = (
43 "__version__",
44 "Enum",
45 "Field",
46 "MapField",
47 "RepeatedField",
48 "Marshal",
49 "Message",
50 "module",
51 # Expose the types directly.
52 "DOUBLE",
53 "FLOAT",
54 "INT64",
55 "UINT64",
56 "INT32",
57 "FIXED64",
58 "FIXED32",
59 "BOOL",
60 "STRING",
61 "MESSAGE",
62 "BYTES",
63 "UINT32",
64 "ENUM",
65 "SFIXED32",
66 "SFIXED64",
67 "SINT32",
68 "SINT64",
69)