RProtoBuf (version 0.4.11)

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 = "")

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.

Examples

Run this code
# NOT RUN {
# 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