completion {RProtoBuf} | R Documentation |
Completion support for protocol buffer messages and descriptors
Description
These functions support completion of protocol buffer messages and descriptors.
Usage
## S3 method for class 'Message'
.DollarNames(x, pattern = "")
## S3 method for class 'Descriptor'
.DollarNames(x, pattern = "")
## S3 method for class 'EnumDescriptor'
.DollarNames(x, pattern = "")
## S3 method for class 'FieldDescriptor'
.DollarNames(x, pattern = "")
## S3 method for class 'FileDescriptor'
.DollarNames(x, pattern = "")
## S3 method for class 'ServiceDescriptor'
.DollarNames(x, pattern = "")
## S3 method for class 'MethodDescriptor'
.DollarNames(x, pattern = "")
## S3 method for class 'ZeroCopyInputStream'
.DollarNames(x, pattern = "")
## S3 method for class 'ZeroCopyOutputStream'
.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 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.
Author(s)
Romain Francois <francoisromain@free.fr>
Examples
# 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>
[Package RProtoBuf version 0.4.22 Index]