|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Message
Abstract interface implemented by Protocol Message objects.
See also MessageLite
, which defines most of the methods that typical
users care about. Message
adds to it methods that are not available
in the "lite" runtime. The biggest added features are introspection and
reflection -- i.e., getting descriptors for the message type and accessing
the field values dynamically.
Nested Class Summary | |
---|---|
static interface |
Message.Builder
Abstract interface implemented by Protocol Message builders. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
Compares the specified object with this message for equality. |
int |
hashCode()
Returns the hash code value for this message. |
Message.Builder |
newBuilderForType()
Constructs a new builder for a message of the same type as this message. |
Message.Builder |
toBuilder()
Constructs a builder initialized with the current message. |
java.lang.String |
toString()
Converts the message to a string in protocol buffer text format. |
Methods inherited from interface com.google.protobuf.MessageLite |
---|
getSerializedSize, toByteArray, toByteString, writeDelimitedTo, writeTo, writeTo |
Methods inherited from interface com.google.protobuf.MessageOrBuilder |
---|
getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField |
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder |
---|
isInitialized |
Method Detail |
---|
boolean equals(java.lang.Object other)
getDescriptorForType()
) and has identical values for
all of its fields. Subclasses must implement this; inheriting
Object.equals()
is incorrect.
equals
in class java.lang.Object
other
- object to be compared for equality with this message
int hashCode()
Object.hashCode()
is incorrect.
hashCode
in class java.lang.Object
Map.hashCode()
java.lang.String toString()
TextFormat.printToString(Message)
.
toString
in class java.lang.Object
Message.Builder newBuilderForType()
MessageLite
newBuilderForType
in interface MessageLite
Message.Builder toBuilder()
MessageLite
toBuilder
in interface MessageLite
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |