public static final class UnknownFieldSetLite.Builder extends Object
UnknownFieldSetLite
s.
Use UnknownFieldSet.newBuilder()
to construct a Builder
.
For use by generated code only.
Modifier and Type | Method and Description |
---|---|
UnknownFieldSetLite |
build()
Build the
UnknownFieldSetLite and return it. |
boolean |
mergeFieldFrom(int tag,
CodedInputStream input)
Parse a single field from
input and merge it into this set. |
UnknownFieldSetLite.Builder |
mergeLengthDelimitedField(int fieldNumber,
ByteString value)
Convenience method for merging a length-delimited field.
|
UnknownFieldSetLite.Builder |
mergeVarintField(int fieldNumber,
int value)
Convenience method for merging a new field containing a single varint
value.
|
public boolean mergeFieldFrom(int tag, CodedInputStream input) throws IOException
input
and merge it into this set.
For use by generated code only.
tag
- The field's tag number, which was already parsed.false
if the tag is an end group tag.IOException
public UnknownFieldSetLite.Builder mergeVarintField(int fieldNumber, int value)
For use by generated code only.
public UnknownFieldSetLite.Builder mergeLengthDelimitedField(int fieldNumber, ByteString value)
For use by generated code only.
public UnknownFieldSetLite build()
UnknownFieldSetLite
and return it.
Once build()
has been called, the Builder
will no
longer be usable. Calling any method after build()
will result
in undefined behavior and can cause a IllegalStateException
to be
thrown.
For use by generated code only.
Copyright © 2008–2015 Google. All rights reserved.