webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
com.google.protobuf.nano.ExtendableMessageNano< M extends ExtendableMessageNano< M > Class Template Referenceabstract
Inheritance diagram for com.google.protobuf.nano.ExtendableMessageNano< M extends ExtendableMessageNano< M >:
com.google.protobuf.nano.MessageNano

Public Member Functions

void writeTo (CodedOutputByteBufferNano output) throws IOException
 
final boolean hasExtension (Extension< M, ?> extension)
 
final< T > T getExtension (Extension< M, T > extension)
 
final< T > M setExtension (Extension< M, T > extension, T value)
 
M clone () throws CloneNotSupportedException
 
- Public Member Functions inherited from com.google.protobuf.nano.MessageNano
int getCachedSize ()
 
int getSerializedSize ()
 
void writeTo (CodedOutputByteBufferNano output) throws IOException
 
abstract MessageNano mergeFrom (CodedInputByteBufferNano input) throws IOException
 
String toString ()
 
MessageNano clone () throws CloneNotSupportedException
 

Protected Member Functions

int computeSerializedSize ()
 
final boolean storeUnknownField (CodedInputByteBufferNano input, int tag) throws IOException
 
- Protected Member Functions inherited from com.google.protobuf.nano.MessageNano
int computeSerializedSize ()
 

Protected Attributes

FieldArray unknownFieldData
 
- Protected Attributes inherited from com.google.protobuf.nano.MessageNano
volatile int cachedSize = -1
 

Additional Inherited Members

- Static Public Member Functions inherited from com.google.protobuf.nano.MessageNano
static final byte [] toByteArray (MessageNano msg)
 
static final void toByteArray (MessageNano msg, byte[] data, int offset, int length)
 
static final< T extends MessageNano > T mergeFrom (T msg, final byte[] data) throws InvalidProtocolBufferNanoException
 
static final< T extends MessageNano > T mergeFrom (T msg, final byte[] data, final int off, final int len) throws InvalidProtocolBufferNanoException
 
static final boolean messageNanoEquals (MessageNano a, MessageNano b)
 

Detailed Description

Base class of those Protocol Buffer messages that need to store unknown fields, such as extensions.

Member Function Documentation

◆ clone()

M com.google.protobuf.nano.ExtendableMessageNano< M extends ExtendableMessageNano< M >.clone ( void  ) throws CloneNotSupportedException
inline

◆ computeSerializedSize()

int com.google.protobuf.nano.ExtendableMessageNano< M extends ExtendableMessageNano< M >.computeSerializedSize ( )
inlineprotected

◆ getExtension()

final<T> T com.google.protobuf.nano.ExtendableMessageNano< M extends ExtendableMessageNano< M >.getExtension ( Extension< M, T extension)
inline

Gets the value stored in the specified extension of this message.

◆ hasExtension()

final boolean com.google.protobuf.nano.ExtendableMessageNano< M extends ExtendableMessageNano< M >.hasExtension ( Extension< M, ?>  extension)
inline

Checks if there is a value stored for the specified extension in this message.

◆ setExtension()

final<T> M com.google.protobuf.nano.ExtendableMessageNano< M extends ExtendableMessageNano< M >.setExtension ( Extension< M, T extension,
T  value 
)
inline

Sets the value of the specified extension of this message.

◆ storeUnknownField()

final boolean com.google.protobuf.nano.ExtendableMessageNano< M extends ExtendableMessageNano< M >.storeUnknownField ( CodedInputByteBufferNano  input,
int  tag 
) throws IOException
inlineprotected

Stores the binary data of an unknown field.

Generated messages will call this for unknown fields if the store_unknown_fields option is on.

Note that the tag might be a end-group tag (rather than the start of an unknown field) in which case we do not want to add an unknown field entry.

Parameters
inputthe input buffer.
tagthe tag of the field.
Returns
{ true} unless the tag is an end-group tag.

◆ writeTo()

Member Data Documentation

◆ unknownFieldData

A container for fields unknown to the message, including extensions. Extension fields can can be accessed through the getExtension and setExtension methods.


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