public abstract static class Message.Builder<T extends Message> extends Object
| Constructor and Description |
|---|
Message.Builder()
Constructs a Builder with no unknown field data.
|
Message.Builder(Message message)
Constructs a Builder with unknown field data initialized to a copy of any unknown
field data in the given
Message. |
| Modifier and Type | Method and Description |
|---|---|
void |
addFixed32(int tag,
int value)
Adds a
fixed32 value to the unknown field set with the given tag number. |
void |
addFixed64(int tag,
long value)
Adds a
fixed64 value to the unknown field set with the given tag number. |
void |
addLengthDelimited(int tag,
ByteString value)
Adds a length delimited value to the unknown field set with the given tag number.
|
void |
addVarint(int tag,
long value)
Adds a
varint value to the unknown field set with the given tag number. |
abstract T |
build()
Returns an immutable
Message based on the fields that have been set
in this builder. |
void |
checkRequiredFields()
Throws an exception if a required field has not been set.
|
public Message.Builder()
public void addVarint(int tag,
long value)
varint value to the unknown field set with the given tag number.public void addFixed32(int tag,
int value)
fixed32 value to the unknown field set with the given tag number.public void addFixed64(int tag,
long value)
fixed64 value to the unknown field set with the given tag number.public void addLengthDelimited(int tag,
ByteString value)
public void checkRequiredFields()
Copyright © 2013 Square, Inc.. All Rights Reserved.