Google Code offered in: English - Español - 日本語 - 한국어 - Português - Pусский - 中文(简体) - 中文(繁體)
ProtoRPC is an experimental, innovative, and rapidly changing new feature for App Engine. Unfortunately, being on the bleeding edge means that we may make backwards-incompatible changes to ProtoRPC. We will inform the community when this feature is no longer experimental.
The Enum class is the base class for all enumerated types, used to initialize new Enum instances.
Enum
is provided by the protorpc.messages
module.
The constructor of the EnumField class is defined as follows:
Initializes an Enum instance automatically when the class is constructed. Integers and strings are cast automatically to the enum values.
Arguments:
Raises an exception if called on a class that has already been initialized.
The Enum class provides the following class methods: