Python 2.7 has reached end of supportand will bedeprecatedon January 31, 2026. After deprecation, you won't be able to deploy Python 2.7applications, even if your organization previously used an organization policy tore-enable deployments of legacy runtimes. Your existing Python2.7 applications will continue to run and receive traffic after theirdeprecation date. We recommend thatyoumigrate to the latest supported version of Python.

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 theprotorpc.messages module:

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

The following field classes are provided by theprotorpc.message_types module:

class DateTimeField()
SeeDateTimeField.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-15 UTC.