RProtoBuf (version 0.4.8)

completion: Completion support for protocol buffer messages and descriptors

Description

These functions support completion of protocol buffer messages and descriptors.

Usage

".DollarNames"(x, pattern = "") ".DollarNames"(x, pattern = "") ".DollarNames"(x, pattern = "") ".DollarNames"(x, pattern = "") ".DollarNames"(x, pattern = "") ".DollarNames"(x, pattern = "") ".DollarNames"(x, pattern = "") ".DollarNames"(x, pattern = "") ".DollarNames"(x, pattern = "")

Arguments

x
message (Message) or descriptor (Descriptor)
pattern
filter

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 constantsFor 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.

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 <TAB> expansion on the command line
# <TAB> means "press the TAB key"
# p$<TAB>
# Person$<TAB>

Run the code above in your browser using DataCamp Workspace