public abstract class AbstractMessage extends AbstractMessageLite implements Message
Message
interface which implements
as many methods of that interface as possible in terms of other methods.Modifier and Type | Class and Description |
---|---|
static class |
AbstractMessage.Builder<BuilderType extends AbstractMessage.Builder>
A partial implementation of the
Message.Builder interface which
implements as many methods of that interface as possible in terms of
other methods. |
Constructor and Description |
---|
AbstractMessage() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Compares the specified object with this message for equality.
|
int |
getSerializedSize()
Get the number of bytes required to encode this message.
|
int |
hashCode()
Returns the hash code value for this message.
|
boolean |
isInitialized()
Returns true if all required fields in the message and all embedded
messages are set, false otherwise.
|
String |
toString()
Converts the message to a string in protocol buffer text format.
|
void |
writeTo(CodedOutputStream output)
Serializes the message and writes it to
output . |
toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, newBuilderForType, toBuilder
toByteArray, toByteString, writeDelimitedTo, writeTo
public boolean isInitialized()
MessageLite
isInitialized
in interface MessageLite
public final String toString()
Message
TextFormat.printToString(Message)
.public void writeTo(CodedOutputStream output) throws IOException
MessageLite
output
. This does not
flush or close the stream.writeTo
in interface MessageLite
IOException
public int getSerializedSize()
MessageLite
getSerializedSize
in interface MessageLite
public boolean equals(Object other)
Message
getDescriptorForType()
) and has identical values for
all of its fields.public int hashCode()
Message
hashCode
in interface Message
hashCode
in class Object
Map.hashCode()
Copyright © 2008-2012. All Rights Reserved.