webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
com.google.protobuf.AbstractMessageLite< MessageType extends AbstractMessageLite< MessageType, BuilderType, BuilderType extends AbstractMessageLite.Builder< MessageType, BuilderType > Class Template Referenceabstract
Inheritance diagram for com.google.protobuf.AbstractMessageLite< MessageType extends AbstractMessageLite< MessageType, BuilderType, BuilderType extends AbstractMessageLite.Builder< MessageType, BuilderType >:
com.google.protobuf.MessageLite com.google.protobuf.MessageLiteOrBuilder com.google.protobuf.AbstractMessage com.google.protobuf.DynamicMessage com.google.protobuf.GeneratedMessage com.google.protobuf.MapEntry< K, V >

Classes

class  Builder
 

Public Member Functions

ByteString toByteString ()
 
byte [] toByteArray ()
 
void writeTo (final OutputStream output) throws IOException
 
void writeDelimitedTo (final OutputStream output) throws IOException
 
- Public Member Functions inherited from com.google.protobuf.MessageLite
void writeTo (CodedOutputStream output) throws IOException
 
int getSerializedSize ()
 
Parser<? extends MessageLitegetParserForType ()
 
Builder newBuilderForType ()
 
Builder toBuilder ()
 
- Public Member Functions inherited from com.google.protobuf.MessageLiteOrBuilder
MessageLite getDefaultInstanceForType ()
 
boolean isInitialized ()
 

Static Protected Member Functions

static void checkByteStringIsUtf8 (ByteString byteString) throws IllegalArgumentException
 
static< T > void addAll (final Iterable< T > values, final Collection<? super T > list)
 

Protected Attributes

int memoizedHashCode = 0
 

Detailed Description

A partial implementation of the MessageLite interface which implements as many methods of that interface as possible in terms of other methods.

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

Member Function Documentation

◆ addAll()

static <T> void com.google.protobuf.AbstractMessageLite< MessageType extends AbstractMessageLite< MessageType, BuilderType, BuilderType extends AbstractMessageLite.Builder< MessageType, BuilderType >.addAll ( final Iterable< T values,
final Collection<? super T list 
)
inlinestaticprotected

◆ checkByteStringIsUtf8()

static void com.google.protobuf.AbstractMessageLite< MessageType extends AbstractMessageLite< MessageType, BuilderType, BuilderType extends AbstractMessageLite.Builder< MessageType, BuilderType >.checkByteStringIsUtf8 ( ByteString  byteString) throws IllegalArgumentException
inlinestaticprotected

◆ toByteArray()

byte [] com.google.protobuf.AbstractMessageLite< MessageType extends AbstractMessageLite< MessageType, BuilderType, BuilderType extends AbstractMessageLite.Builder< MessageType, BuilderType >.toByteArray ( )
inline

Serializes the message to a

byte

array and returns it. This is just a trivial wrapper around writeTo(CodedOutputStream).

Implements com.google.protobuf.MessageLite.

◆ toByteString()

ByteString com.google.protobuf.AbstractMessageLite< MessageType extends AbstractMessageLite< MessageType, BuilderType, BuilderType extends AbstractMessageLite.Builder< MessageType, BuilderType >.toByteString ( )
inline

Serializes the message to a

ByteString

and returns it. This is just a trivial wrapper around writeTo(CodedOutputStream).

Implements com.google.protobuf.MessageLite.

◆ writeDelimitedTo()

void com.google.protobuf.AbstractMessageLite< MessageType extends AbstractMessageLite< MessageType, BuilderType, BuilderType extends AbstractMessageLite.Builder< MessageType, BuilderType >.writeDelimitedTo ( final OutputStream  output) throws IOException
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 Builder#mergeDelimitedFrom(InputStream) (or the static method

YourMessageType.parseDelimitedFrom(InputStream)

) to parse messages written by this method.

Implements com.google.protobuf.MessageLite.

◆ writeTo()

void com.google.protobuf.AbstractMessageLite< MessageType extends AbstractMessageLite< MessageType, BuilderType, BuilderType extends AbstractMessageLite.Builder< MessageType, BuilderType >.writeTo ( final OutputStream  output) throws IOException
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.

Member Data Documentation

◆ memoizedHashCode

int com.google.protobuf.AbstractMessageLite< MessageType extends AbstractMessageLite< MessageType, BuilderType, BuilderType extends AbstractMessageLite.Builder< MessageType, BuilderType >.memoizedHashCode = 0
protected

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