Skip to main content

MAX_FIELD_NUMBER

Constant MAX_FIELD_NUMBER 

Source
pub const MAX_FIELD_NUMBER: u32 = _ /* 536_870_911u32 */;
Expand description

The maximum valid protobuf field number, 2^29 − 1.

The wire-format tag packs (field_number << 3) | wire_type into a u32-decodable varint; the low 3 bits carry the wire type, leaving 29 bits for the field number. See the protobuf encoding spec.