Java com.google.common.io.protocol ProtoBuf fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.io.protocol ProtoBuf fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.io.protocol ProtoBuf.

The text is from its open source code.

Constructor

ProtoBuf(ProtoBufType type)
Creates a protocol message according to the given description.

Method

voidaddProtoBuf(int tag, ProtoBuf value)
Appends the given (repeated) tag with the given group or message value.
intgetCount(int tag)
Returns the number of repeated and optional (0..1) values for a given tag.
intgetInt(int tag)
Returns the integer value for the given tag.
ProtoBufgetProtoBuf(int tag)
Returns the group or nested message for the given tag.
StringgetString(int tag)
Returns the string value for a given tag converted to a Java String assuming UTF-8 encoding.
booleanhas(int tag)
Convenience method for determining whether a tag has a value.
voidoutputTo(OutputStream os)
Writes this and nested protocol buffers to the given output stream.
voidsetInt(int tag, int value)
Sets the given tag to the given integer value.
voidsetLong(int tag, long value)
Sets the given tag to the given long value.
voidsetProtoBuf(int tag, ProtoBuf pb)
Sets the given tag to the given Group or nested Message.