Learn R Programming

RProtoBuf (version 0.1-0)

has-methods: Indicates if a message has the given field set

Description

This generic method, currently only implemented for Message indicates if the message has the given field set.

For non repeated fields, a call to the HasField method of the corresponding Message is issued.

For repeated fields, a call to the FieldSize method is issued, and the message is declared to have the field if the size is greater than 0.

Arguments