proto library Client - Class EnumReservedRange (v5.36.2)

Reference documentation and code samples for the proto library Client class EnumReservedRange.

Range of reserved numeric values. Reserved values may not be used by entries in the same enum. Reserved ranges may not overlap.

Note that this is distinct from DescriptorProto.ReservedRange in that it is inclusive such that it can appropriately represent the entire int32 domain.

Generated from protobuf message google.protobuf.EnumDescriptorProto.EnumReservedRange

Namespace

Google \ Protobuf \ Internal \ EnumDescriptorProto

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ start int

Inclusive.

↳ end int

Inclusive.

getStart

Inclusive.

Returns
Type Description
int

hasStart

clearStart

setStart

Inclusive.

Parameter
Name Description
var int
Returns
Type Description
$this

getEnd

Inclusive.

Returns
Type Description
int

hasEnd

clearEnd

setEnd

Inclusive.

Parameter
Name Description
var int
Returns
Type Description
$this