RProtoBuf (version 0.4.22)

completion: Completion support for protocol buffer messages and descriptors

Description

These functions support completion of protocol buffer messages and descriptors.

Usage

# S3 method for Message
.DollarNames(x, pattern = "")
# S3 method for Descriptor
.DollarNames(x, pattern = "")
# S3 method for EnumDescriptor
.DollarNames(x, pattern = "")
# S3 method for FieldDescriptor
.DollarNames(x, pattern = "")
# S3 method for FileDescriptor
.DollarNames(x, pattern = "")
# S3 method for ServiceDescriptor
.DollarNames(x, pattern = "")
# S3 method for MethodDescriptor
.DollarNames(x, pattern = "")
# S3 method for ZeroCopyInputStream
.DollarNames(x, pattern = "")
# S3 method for ZeroCopyOutputStream
.DollarNames(x, pattern = "")

Value

Character vector containing potential completions.

For Message objects, completions are the fields of the message and a set of pseudo methods ("has")

For EnumDescriptor objects, completions are the names of the possible constants

For Descriptor objects, completions are the names of the fields, enum types and nested message types defined in the associated message type.

For FileDescriptor objects, completions are the names of the top-level descriptors (message, enum or service) contained in the associated file, or pseudo methods.

Arguments

x

message (Message) or descriptor (Descriptor)

pattern

filter

Author

Romain Francois <francoisromain@free.fr>

Examples

Run this code
# creating a prototype message from the descriptor
p <- new( tutorial.Person )

.DollarNames( p )
.DollarNames( tutorial.Person )
# but this is usually used with the  expansion on the command line
#  means "press the TAB key"
# p$
# Person$

Run the code above in your browser using DataLab