Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

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

Field Classes

Stay organized with collections Save and categorize content based on your preferences.

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.