webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | List of all members
com.google.protobuf.Message Interface Reference
Inheritance diagram for com.google.protobuf.Message:
com.google.protobuf.MessageLite com.google.protobuf.MessageOrBuilder com.google.protobuf.MessageLiteOrBuilder com.google.protobuf.MessageLiteOrBuilder com.google.protobuf.AbstractMessage com.google.protobuf.DynamicMessage com.google.protobuf.GeneratedMessage com.google.protobuf.MapEntry< K, V >

Classes

interface  Builder
 

Public Member Functions

Parser<? extends MessagegetParserForType ()
 
boolean equals (Object other)
 
int hashCode ()
 
String toString ()
 
Builder newBuilderForType ()
 
Builder toBuilder ()
 
- Public Member Functions inherited from com.google.protobuf.MessageLite
void writeTo (CodedOutputStream output) throws IOException
 
int getSerializedSize ()
 
ByteString toByteString ()
 
byte [] toByteArray ()
 
void writeTo (OutputStream output) throws IOException
 
void writeDelimitedTo (OutputStream output) throws IOException
 
- Public Member Functions inherited from com.google.protobuf.MessageLiteOrBuilder
boolean isInitialized ()
 
- Public Member Functions inherited from com.google.protobuf.MessageOrBuilder
Message getDefaultInstanceForType ()
 
List< String > findInitializationErrors ()
 
String getInitializationErrorString ()
 
Descriptors.Descriptor getDescriptorForType ()
 
Map< Descriptors.FieldDescriptor, ObjectgetAllFields ()
 
boolean hasOneof (Descriptors.OneofDescriptor oneof)
 
Descriptors.FieldDescriptor getOneofFieldDescriptor (Descriptors.OneofDescriptor oneof)
 
boolean hasField (Descriptors.FieldDescriptor field)
 
Object getField (Descriptors.FieldDescriptor field)
 
int getRepeatedFieldCount (Descriptors.FieldDescriptor field)
 
Object getRepeatedField (Descriptors.FieldDescriptor field, int index)
 
UnknownFieldSet getUnknownFields ()
 

Detailed Description

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.

Author
kento.nosp@m.n@go.nosp@m.ogle..nosp@m.com Kenton Varda

Member Function Documentation

◆ equals()

boolean com.google.protobuf.Message.equals ( Object  other)

Compares the specified object with this message for equality. Returns

true

if the given object is a message of the same type (as defined by

) and has identical values for all of its fields. Subclasses must implement this; inheriting

Object.equals()

is incorrect.

Parameters
otherobject to be compared for equality with this message
Returns
true
if the specified object is equal to this message

Implemented in com.google.protobuf.AbstractMessage.

◆ getParserForType()

Parser<? extends Message> com.google.protobuf.Message.getParserForType ( )

Gets the parser for a message of the same type as this message.

Implements com.google.protobuf.MessageLite.

Implemented in com.google.protobuf.DynamicMessage, com.google.protobuf.MapEntry< K, V >, and com.google.protobuf.GeneratedMessage.

◆ hashCode()

int com.google.protobuf.Message.hashCode ( )

Returns the hash code value for this message. The hash code of a message should mix the message's type (object identity of the descriptor) with its contents (known and unknown field values). Subclasses must implement this; inheriting

Object.hashCode()

is incorrect.

Returns
the hash code value for this message
See also
Map::hashCode()

Implemented in com.google.protobuf.AbstractMessage.

◆ newBuilderForType()

Builder com.google.protobuf.Message.newBuilderForType ( )

Constructs a new builder for a message of the same type as this message.

Implements com.google.protobuf.MessageLite.

Implemented in com.google.protobuf.DynamicMessage, and com.google.protobuf.MapEntry< K, V >.

◆ toBuilder()

Builder com.google.protobuf.Message.toBuilder ( )

Constructs a builder initialized with the current message. Use this to derive a new message from the current one.

Implements com.google.protobuf.MessageLite.

Implemented in com.google.protobuf.DynamicMessage, and com.google.protobuf.MapEntry< K, V >.

◆ toString()

String com.google.protobuf.Message.toString ( )

Converts the message to a string in protocol buffer text format. This is just a trivial wrapper around TextFormat#printToString(MessageOrBuilder).

Implemented in com.google.protobuf.AbstractMessage.


The documentation for this interface was generated from the following file: