FileDescriptor-class: Class "FileDescriptor"

FileDescriptor-classR Documentation

Class "FileDescriptor"

Description

Class "FileDescriptor"

Objects from the Class

Objects are usually created using the fileDescriptor method

Slots

pointer:

external pointer to a google::protobuf::FileDescriptor C++ object

package:

the package name defined in the file, e.g. 'tutorial'.

filename:

the filename of this FileDescriptor

Methods

$

signature(x = "FileDescriptor"): used to invoke a pseudo method of the file descriptor or get a top level message, enum or service descriptor

toString

signature(x = "FileDescriptor" ) : gets the debug string

as.character

signature(x = "FileDescriptor" ) : gets the debug string

show

signature(x = "FileDescriptor" ) : prints small text

name

signature(object = "FileDescriptor" ) : name of the file

Author(s)

Romain Francois <francoisromain@free.fr>

References

The https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.descriptor?csw=1

See Also

Descriptor

Examples

# example proto file supplied with this package
desc <- P("tutorial.Person")
person <- new(desc)

person$fileDescriptor()
name(person$fileDescriptor())
# [1] "addressbook.proto"
as.character(person$fileDescriptor())

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