number: Gets the declared tag number of a field

number-methodsR Documentation

Gets the declared tag number of a field

Description

Gets the declared tag number of a field

See Also

The method is implemented for FieldDescriptor and EnumValueDescriptor classes.

Examples

## Not run: 
proto.file <- system.file( "proto", "addressbook.proto", package = "RProtoBuf" )
Person <- P( "tutorial.Person", file = proto.file )

## End(Not run)


number(Person$id)
number(Person$email)
as.character(Person)

number(value(tutorial.Person$PhoneType, name="HOME"))

RProtoBuf documentation built on Nov. 3, 2022, 9:06 a.m.