# Path: proto/primitives.py
# class ProtoType(enum.IntEnum):
#     """The set of basic types in protocol buffers."""
# 
#     # These values come from google/protobuf/descriptor.proto
#     DOUBLE = 1
#     FLOAT = 2
#     INT64 = 3
#     UINT64 = 4
#     INT32 = 5
#     FIXED64 = 6
#     FIXED32 = 7
#     BOOL = 8
#     STRING = 9
#     MESSAGE = 11
#     BYTES = 12
#     UINT32 = 13
#     ENUM = 14
#     SFIXED32 = 15
#     SFIXED64 = 16
#     SINT32 = 17
#     SINT64 = 18


from proto.primitives import ProtoType

    def to_proto(self, value):
        if value is not None:
            return self._python_type(value)

        return None


class Int64Rule(StringyNumberRule):
    _python_type = int
    _proto_type = ProtoType.INT64


class UInt64Rule(StringyNumberRule):
    _python_type = int
    _proto_type = ProtoType.UINT64


class SInt64Rule(StringyNumberRule):
    _python_type = int
    _proto_type = ProtoType.SINT64


class Fixed64Rule(StringyNumberRule):
    _python_type = int
    _proto_type = ProtoType.FIXED64


class SFixed64Rule(StringyNumberRule):
    _python_type = int

# Path: proto/primitives.py
# class ProtoType(enum.IntEnum):
#     """The set of basic types in protocol buffers."""
# 
#     # These values come from google/protobuf/descriptor.proto
#     DOUBLE = 1
#     FLOAT = 2
#     INT64 = 3
#     UINT64 = 4
#     INT32 = 5
#     FIXED64 = 6
#     FIXED32 = 7
#     BOOL = 8
#     STRING = 9
#     MESSAGE = 11
#     BYTES = 12
#     UINT32 = 13
#     ENUM = 14
#     SFIXED32 = 15
#     SFIXED64 = 16
#     SINT32 = 17
#     SINT64 = 18


# Path: proto/marshal/rules/stringy_numbers.py
from proto.primitives import ProtoType


    def to_proto(self, value):
        if value is not None:
            return self._python_type(value)

        return None


class Int64Rule(StringyNumberRule):
    _python_type = int
    _proto_type = ProtoType.INT64


class UInt64Rule(StringyNumberRule):
    _python_type = int
    _proto_type = ProtoType.UINT64


class SInt64Rule(StringyNumberRule):
    _python_type = int
    _proto_type = ProtoType.SINT64


class Fixed64Rule(StringyNumberRule):
    _python_type = int
    _proto_type = ProtoType.FIXED64


class SFixed64Rule(StringyNumberRule):
    _python_type = int

    _proto_type = ProtoType.SFIXED64