Example usage for Java com.google.common.io.protocol ProtoBuf fields, constructors, methods, implement or subclass
The text is from its open source code.
ProtoBuf(ProtoBufType type) Creates a protocol message according to the given description. |
void | addProtoBuf(int tag, ProtoBuf value) Appends the given (repeated) tag with the given group or message value. |
int | getCount(int tag) Returns the number of repeated and optional (0..1) values for a given tag. |
int | getInt(int tag) Returns the integer value for the given tag. |
ProtoBuf | getProtoBuf(int tag) Returns the group or nested message for the given tag. |
String | getString(int tag) Returns the string value for a given tag converted to a Java String assuming UTF-8 encoding. |
boolean | has(int tag) Convenience method for determining whether a tag has a value. |
void | outputTo(OutputStream os) Writes this and nested protocol buffers to the given output stream. |
void | setInt(int tag, int value) Sets the given tag to the given integer value. |
void | setLong(int tag, long value) Sets the given tag to the given long value. |
void | setProtoBuf(int tag, ProtoBuf pb) Sets the given tag to the given Group or nested Message. |