Google App Engine
Feedback on this document

The Variant Class

Experimental!

Google Protocol RPC is an experimental, innovative, and rapidly changing new feature for Google App Engine. Unfortunately, being on the bleeding edge means that we may make backwards-incompatible changes to Google Protocol RPC. We will inform the community when this feature is no longer experimental.
 


The protobuf wire format uses the Variant class to determine how to transmit a single piece of data. May be used by other formats; see Protocol Buffers Encoding for more information.

Variant is provided by the protorpc.messages module.

Variant has the following values:

BOOL
Boolean value (True or False)
BYTES
String of 8-bit bytes.
DOUBLE
64-bit floating point number.
ENUM
Enum value (an integer).
FLOAT
32-bit floating point number.
INT32
32-bit signed integer.
INT64
64-bit signed integer.
MESSAGE
Embedded message as byte string.
SINT32
32-bit signed integer. Uses ZigZag encoding.
SINT64
64-bit signed integer. Uses ZigZag encoding.
STRING
String of UTF-8-encoded text.
UINT32
32-bit unsigned integer.
UINT64
64-bit unsigned integer.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.