P: Protocol Buffer descriptor importer

View source: R/00classes.R

PR Documentation

Protocol Buffer descriptor importer

Description

The P function searches for a protocol message descriptor in the descriptor pool.

Usage

P(type, file)

Arguments

type

Fully qualified type name of the protocol buffer or extension

file

optional proto file. If given, the definition contained in the file is first registered with the pool of message descriptors

Value

An object of class Descriptor for message types or FieldDescriptor for extensions. An error is generated otherwise.

Author(s)

Romain Francois <francoisromain@free.fr>

Examples

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

## End(Not run)


cat(as.character( Person ))

eddelbuettel/rprotobuf documentation built on March 27, 2024, 12:22 p.m.