| Modifier and Type | Interface and Description |
|---|---|
interface |
MessageFactory<T extends ProtoMessage<T>>
Factory interface for creating messages
|
class |
ProtoMessage<MessageType extends ProtoMessage<?>>
Abstract interface implemented by Protocol Message objects.
|
class |
RepeatedMessage<MessageType extends ProtoMessage<MessageType>> |
| Modifier and Type | Method and Description |
|---|---|
static <T extends ProtoMessage<T>> |
ProtoMessage.mergeFrom(T msg,
byte[] data)
Parse
data as a message of this type and merge it with the message being built. |
static <T extends ProtoMessage<T>> |
ProtoMessage.mergeFrom(T msg,
byte[] data,
int off,
int len)
Parse
data as a message of this type and merge it with the message being built. |
static <T extends ProtoMessage<T>> |
ProtoMessage.mergeFrom(T msg,
JsonSource input)
Parse
input as a message of this type and merge it with the message being built. |
static <T extends ProtoMessage<T>> |
ProtoMessage.mergeFrom(T msg,
ProtoSource input)
Parse
input as a message of this type and merge it with the message being built. |
static <T extends ProtoMessage<T>> |
RepeatedMessage.newEmptyInstance(MessageFactory<T> factory) |
<ProtoMsg extends ProtoMessage<ProtoMsg>> |
JsonSource.parseMessage(MessageFactory<ProtoMsg> factory)
Parses a root-level object of the given message type and checks for required field initialization
|
<ProtoMsg extends ProtoMessage<ProtoMsg>> |
JsonSource.parseRepeatedMessage(MessageFactory<ProtoMsg> factory)
Parses a root-level array of the given message type and checks for required field initialization
|
<ProtoMsg extends ProtoMessage<ProtoMsg>> |
JsonSource.readGroup(ProtoMsg msg)
Read a
group field value from the source. |
<ProtoMsg extends ProtoMessage<ProtoMsg>> |
JsonSource.readMessage(ProtoMsg msg)
Reads a message value from the source and merges the contents into the provided message
|
<ProtoMsg extends ProtoMessage<ProtoMsg>> |
JsonSource.readRepeatedMessage(RepeatedMessage<ProtoMsg> value) |
| Modifier and Type | Method and Description |
|---|---|
protected MessageType[] |
RepeatedMessage.allocateArray0(int desiredSize) |
| Modifier and Type | Method and Description |
|---|---|
static int |
ProtoSink.computeGroupSize(int fieldNumber,
ProtoMessage<?> value)
Compute the number of bytes that would be needed to encode a
group field, including tag. |
static int |
ProtoSink.computeGroupSizeNoTag(ProtoMessage value)
Compute the number of bytes that would be needed to encode a
group field. |
static int |
ProtoSink.computeMessageSize(int fieldNumber,
ProtoMessage<?> value)
Compute the number of bytes that would be needed to encode an
embedded message field, including tag.
|
static int |
ProtoSink.computeMessageSizeNoTag(ProtoMessage value)
Compute the number of bytes that would be needed to encode an embedded
message field.
|
protected static void |
ProtoMessage.getMissingFields(String prefix,
String fieldName,
ProtoMessage<?> field,
List<String> results) |
void |
ProtoSource.readGroup(ProtoMessage<?> msg,
int fieldNumber)
Read a
group field value from the source. |
void |
ProtoSource.readMessage(ProtoMessage<?> msg) |
static byte[] |
ProtoMessage.toByteArray(ProtoMessage<?> msg)
Serialize to a byte array.
|
static void |
ProtoMessage.toByteArray(ProtoMessage<?> msg,
byte[] data,
int offset,
int length)
Serialize to a byte array starting at offset through length.
|
JsonSink |
JsonSink.writeGroup(FieldName name,
ProtoMessage value) |
void |
ProtoSink.writeGroup(int fieldNumber,
ProtoMessage value)
Write a
group field, including tag, to the sink. |
void |
ProtoSink.writeGroupNoTag(ProtoMessage<?> value)
Write a
group field to the sink. |
JsonSink |
JsonSink.writeMessage(FieldName name,
ProtoMessage<?> value) |
void |
ProtoSink.writeMessage(int fieldNumber,
ProtoMessage value)
Write an embedded message field, including tag, to the sink.
|
JsonSink |
JsonSink.writeMessage(ProtoMessage<?> value)
Writes a top level object {content}
|
void |
ProtoSink.writeMessageNoTag(ProtoMessage<?> value)
Write an embedded message field to the sink.
|
JsonSink |
JsonSink.writeMessageSilent(ProtoMessage<?> value)
Convenience overload for writing to in-memory sinks that don't throw IOException
|
protected abstract void |
JsonSink.writeMessageValue(ProtoMessage<?> value) |
| Constructor and Description |
|---|
UninitializedMessageException(ProtoMessage<?> message) |
Copyright © 2019–2024 HEBI Robotics. All rights reserved.