Class Encoding (2.32.0)

Encoding(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Rules used to convert to or from lower level types.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
big_endian_bytes google.cloud.bigtable_admin_v2.types.Type.Int64.Encoding.BigEndianBytes
Use BigEndianBytes encoding. This field is a member of oneof_ encoding.
ordered_code_bytes google.cloud.bigtable_admin_v2.types.Type.Int64.Encoding.OrderedCodeBytes
Use OrderedCodeBytes encoding. This field is a member of oneof_ encoding.

Classes

BigEndianBytes

BigEndianBytes(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Encodes the value as an 8-byte big-endian two's complement value.

Sorted mode: non-negative values are supported.

Distinct mode: all values are supported.

Compatible with:

  • BigQuery BINARY encoding
  • HBase Bytes.toBytes
  • Java ByteBuffer.putLong() with ByteOrder.BIG_ENDIAN

OrderedCodeBytes

OrderedCodeBytes(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Encodes the value in a variable length binary format of up to 10 bytes. Values that are closer to zero use fewer bytes.

Sorted mode: all values are supported.

Distinct mode: all values are supported.