Annotation Interface ProtoReserved.Range
- Enclosing class:
ProtoReserved
public static @interface ProtoReserved.Range
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements -
Field Summary
Fields
-
Field Details
-
MAX_FIELD
static final int MAX_FIELDMaximum allowed value for field numbers.- See Also:
-
MAX_ENUM
static final int MAX_ENUMMaximum allowed value for enums.- See Also:
-
-
Element Details
-
from
int fromThe start of the range (inclusive). Minimum value is 1 for field numbers, but can be any 32-bit value for enums (including negative values). -
to
int toThe end of the range (inclusive). Must be strictly greater thanfrom(). The actual maximum isMAX_FIELD(229-1 = 536870911) for field numbers, but it can be any 32-bit value for enums.- Default:
2147483647
-