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 protorpc.definition
package provides the following functions:
Defines an Enum class for a descriptor.
Arguments:
Returns a new messages.Enum subclass as described by enum_descriptor
.
Defines a Field instance from the provided descriptor.
Arguments:
Returns a new field instance as described by field_descriptor
.
Defines a Message class from the provided descriptor.
Arguments:
Returns a new messages.Message sub-class as described by message_descriptor
.
Defines a new service proxy.
Arguments:
Returns a class proxy capable of communicating with a remote server.
Defines a module from the given file descriptor.
Arguments:
If no module is provided, creates a new module with its name set to the file descriptor's package. If a module is provided, returns the same module.
Imports a FileDescriptor into a module space. Similar to define_file(), except that a new module and any required parent modules are created and added to the modules parameter, or sys.modules if not provided.
Arguments:
file_descriptor.package
, that module is updated with the FileDescriptor contents.Returns matches to the modules
argument, or a new module if no matches are found.
Arguments:
file_descriptor.package
, that module is updated with the FileDescriptor contents.