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
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
23from .version import __version__
26DOUBLE = ProtoType.DOUBLE
27FLOAT = ProtoType.FLOAT
28INT64 = ProtoType.INT64
29UINT64 = ProtoType.UINT64
30INT32 = ProtoType.INT32
31FIXED64 = ProtoType.FIXED64
32FIXED32 = ProtoType.FIXED32
33BOOL = ProtoType.BOOL
34STRING = ProtoType.STRING
35MESSAGE = ProtoType.MESSAGE
36BYTES = ProtoType.BYTES
37UINT32 = ProtoType.UINT32
38ENUM = ProtoType.ENUM
39SFIXED32 = ProtoType.SFIXED32
40SFIXED64 = ProtoType.SFIXED64
41SINT32 = ProtoType.SINT32
42SINT64 = ProtoType.SINT64
45__all__ = (
46 "__version__",
47 "Enum",
48 "Field",
49 "MapField",
50 "RepeatedField",
51 "Marshal",
52 "Message",
53 "module",
54 # Expose the types directly.
55 "DOUBLE",
56 "FLOAT",
57 "INT64",
58 "UINT64",
59 "INT32",
60 "FIXED64",
61 "FIXED32",
62 "BOOL",
63 "STRING",
64 "MESSAGE",
65 "BYTES",
66 "UINT32",
67 "ENUM",
68 "SFIXED32",
69 "SFIXED64",
70 "SINT32",
71 "SINT64",
72)