Classes | |
class | Builder |
Public Member Functions | |
byte[] | toByteArray () |
ByteString | toByteString () |
void | writeDelimitedTo (final OutputStream output) throws IOException |
void | writeTo (final OutputStream output) throws IOException |
![]() | |
Parser<? extends MessageLite > | getParserForType () |
int | getSerializedSize () |
Builder | newBuilderForType () |
Builder | toBuilder () |
void | writeTo (CodedOutputStream output) throws IOException |
![]() | |
MessageLite | getDefaultInstanceForType () |
boolean | isInitialized () |
Static Protected Member Functions | |
static< T > void | addAll (final Iterable< T > values, final Collection<? super T > list) |
static< T > void | addAll (final Iterable< T > values, final List<? super T > list) |
static void | checkByteStringIsUtf8 (ByteString byteString) throws IllegalArgumentException |
Protected Attributes | |
int | memoizedHashCode = 0 |
Private Member Functions | |
String | getSerializingExceptionMessage (String target) |
A partial implementation of the MessageLite interface which implements as many methods of that interface as possible in terms of other methods.
Definition at line 49 of file AbstractMessageLite.java.
|
inlinestaticprotected |
Definition at line 141 of file AbstractMessageLite.java.
|
inlinestaticprotected |
Definition at line 145 of file AbstractMessageLite.java.
|
inlinestaticprotected |
Definition at line 132 of file AbstractMessageLite.java.
|
inlineprivate |
Definition at line 124 of file AbstractMessageLite.java.
|
inline |
Serializes the message to a
array and returns it. This is just a trivial wrapper around writeTo(CodedOutputStream).
Implements com.google.protobuf.MessageLite.
Definition at line 67 of file AbstractMessageLite.java.
|
inline |
Serializes the message to a
and returns it. This is just a trivial wrapper around writeTo(CodedOutputStream).
Implements com.google.protobuf.MessageLite.
Definition at line 56 of file AbstractMessageLite.java.
|
inline |
Like writeTo(OutputStream), but writes the size of the message as a varint before writing the data. This allows more data to be written to the stream after the message without the need to delimit the message data yourself. Use {} (or the static method YourMessageType.parseDelimitedFrom(InputStream) ) to parse messages written by this method.
Implements com.google.protobuf.MessageLite.
Definition at line 88 of file AbstractMessageLite.java.
|
inline |
Serializes the message and writes it to
. This is just a trivial wrapper around writeTo(CodedOutputStream). This does not flush or close the stream.
NOTE: Protocol Buffers are not self-delimiting. Therefore, if you write any more data to the stream after the message, you must somehow ensure that the parser on the receiving end does not interpret this as being part of the protocol message. This can be done e.g. by writing the size of the message before the data, then making sure to limit the input to that size on the receiving end (e.g. by wrapping the InputStream in one which limits the input). Alternatively, just use writeDelimitedTo(OutputStream).
Implements com.google.protobuf.MessageLite.
Definition at line 80 of file AbstractMessageLite.java.
|
protected |
Definition at line 53 of file AbstractMessageLite.java.