Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



The Variant Class

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.