GitHub

FeatureSet_ProtoLimitsFeature_EnforceProtoLimits

API reference for FeatureSet_ProtoLimitsFeature_EnforceProtoLimits.

The values of google.protobuf.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits.

Attributes

AttributeTypeDescription
PROTO_LIMITS_UNKNOWN= 0
LEGACY_NO_EXPLICIT_LIMITS= 1

Default pre-EDITION_2026: there are no limit enforcement at the protoc level. Practical limits still exist, but they will tend to fail while compiling protoc-generated code, and these limits tend to be language or toolchain specific.

PROTO_LIMITS2026= 2

A set of limits enforced by Edition 2026 by default. For a detailed list of all the limits please consult the Edition 2026 documentation.