Python 2 is no longer supported by the community. We recommend that you migrate Python 2 apps to Python 3.

Field Classes

The Message class is used to define messages for efficient transmission across network or process space. Messages are defined using field classes.

The following field classes are provided by the protorpc.messages module:

class BooleanField()
Field definition for boolean values.
class BytesField()
Field definition for string values.
class EnumField()
See EnumField.
class FloatField()
Field definition for float values.
class IntegerField()
Field definition for integer values.
class MessageField()
See MessageField.
class StringField()
Field definition for unicode string values.

The following field classes are provided by the protorpc.message_types module:

class DateTimeField()
See DateTimeField.