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

Classes

class  Builder
 

Public Member Functions

K getKey ()
 
getValue ()
 
int getSerializedSize ()
 
void writeTo (CodedOutputStream output) throws IOException
 
boolean isInitialized ()
 
Parser< MapEntry< K, V > > getParserForType ()
 
Builder< K, V > newBuilderForType ()
 
Builder< K, V > toBuilder ()
 
MapEntry< K, V > getDefaultInstanceForType ()
 
Descriptor getDescriptorForType ()
 
Map< FieldDescriptor, ObjectgetAllFields ()
 
boolean hasField (FieldDescriptor field)
 
Object getField (FieldDescriptor field)
 
int getRepeatedFieldCount (FieldDescriptor field)
 
Object getRepeatedField (FieldDescriptor field, int index)
 
UnknownFieldSet getUnknownFields ()
 
- Public Member Functions inherited from com.google.protobuf.AbstractMessage
boolean isInitialized ()
 
List< String > findInitializationErrors ()
 
String getInitializationErrorString ()
 
boolean hasOneof (OneofDescriptor oneof)
 
FieldDescriptor getOneofFieldDescriptor (OneofDescriptor oneof)
 
final String toString ()
 
void writeTo (final CodedOutputStream output) throws IOException
 
int getSerializedSize ()
 
boolean equals (final Object other)
 
int hashCode ()
 
- Public Member Functions inherited from com.google.protobuf.AbstractMessageLite< MessageType extends AbstractMessageLite< MessageType, BuilderType, BuilderType extends AbstractMessageLite.Builder< MessageType, BuilderType >
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.MessageOrBuilder
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)
 

Static Public Member Functions

static< K, V > MapEntry< K, V > newDefaultInstance (Descriptor descriptor, WireFormat.FieldType keyType, K defaultKey, WireFormat.FieldType valueType, V defaultValue)
 

Additional Inherited Members

- Static Protected Member Functions inherited from com.google.protobuf.AbstractMessage
static int hashFields (int hash, Map< FieldDescriptor, Object > map)
 
- Static Protected Member Functions inherited from com.google.protobuf.AbstractMessageLite< MessageType extends AbstractMessageLite< MessageType, BuilderType, BuilderType extends AbstractMessageLite.Builder< MessageType, BuilderType >
static void checkByteStringIsUtf8 (ByteString byteString) throws IllegalArgumentException
 
static< T > void addAll (final Iterable< T > values, final Collection<? super T > list)
 
- Protected Attributes inherited from com.google.protobuf.AbstractMessage
int memoizedSize = -1
 
- Protected Attributes inherited from com.google.protobuf.AbstractMessageLite< MessageType extends AbstractMessageLite< MessageType, BuilderType, BuilderType extends AbstractMessageLite.Builder< MessageType, BuilderType >
int memoizedHashCode = 0
 

Detailed Description

Implements MapEntry messages.

In reflection API, map fields will be treated as repeated message fields and each map entry is accessed as a message. This MapEntry class is used to represent these map entry messages in reflection API.

Protobuf internal. Users shouldn't use this class.

Member Function Documentation

◆ getAllFields()

Map<FieldDescriptor, Object> com.google.protobuf.MapEntry< K, V >.getAllFields ( )
inline

Returns a collection of all the fields in this message which are set and their corresponding values. A singular ("required" or "optional") field is set iff hasField() returns true for that field. A "repeated" field is set iff getRepeatedFieldCount() is greater than zero. The values are exactly what would be returned by calling getField(Descriptors.FieldDescriptor) for each field. The map is guaranteed to be a sorted map, so iterating over it will return fields in order by field number.
If this is for a builder, the returned map may or may not reflect future changes to the builder. Either way, the returned map is itself unmodifiable.

Implements com.google.protobuf.MessageOrBuilder.

◆ getDefaultInstanceForType()

MapEntry<K, V> com.google.protobuf.MapEntry< K, V >.getDefaultInstanceForType ( )
inline

Get an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from the

getDefaultInstance()

method of generated message classes in that this method is an abstract method of the

MessageLite

interface whereas

getDefaultInstance()

is a static method of a specific class. They return the same thing.

Implements com.google.protobuf.MessageOrBuilder.

◆ getDescriptorForType()

Descriptor com.google.protobuf.MapEntry< K, V >.getDescriptorForType ( )
inline

Get the message's type's descriptor. This differs from the

getDescriptor()

method of generated message classes in that this method is an abstract method of the

interface whereas

getDescriptor()

is a static method of a specific class. They return the same thing.

Implements com.google.protobuf.MessageOrBuilder.

◆ getField()

Object com.google.protobuf.MapEntry< K, V >.getField ( FieldDescriptor  field)
inline

◆ getKey()

K com.google.protobuf.MapEntry< K, V >.getKey ( )
inline

◆ getParserForType()

Parser<MapEntry<K, V> > com.google.protobuf.MapEntry< K, V >.getParserForType ( )
inline

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

Implements com.google.protobuf.Message.

◆ getRepeatedField()

Object com.google.protobuf.MapEntry< K, V >.getRepeatedField ( FieldDescriptor  field,
int  index 
)
inline

◆ getRepeatedFieldCount()

int com.google.protobuf.MapEntry< K, V >.getRepeatedFieldCount ( FieldDescriptor  field)
inline

◆ getSerializedSize()

int com.google.protobuf.MapEntry< K, V >.getSerializedSize ( )
inline

Get the number of bytes required to encode this message. The result is only computed on the first call and memoized after that.

Implements com.google.protobuf.MessageLite.

◆ getUnknownFields()

UnknownFieldSet com.google.protobuf.MapEntry< K, V >.getUnknownFields ( )
inline

Get the UnknownFieldSet for this message.

Implements com.google.protobuf.MessageOrBuilder.

◆ getValue()

V com.google.protobuf.MapEntry< K, V >.getValue ( )
inline

◆ hasField()

boolean com.google.protobuf.MapEntry< K, V >.hasField ( FieldDescriptor  field)
inline

◆ isInitialized()

boolean com.google.protobuf.MapEntry< K, V >.isInitialized ( )
inline

Returns true if all required fields in the message and all embedded messages are set, false otherwise.

See also: MessageOrBuilder#getInitializationErrorString()

Implements com.google.protobuf.MessageLiteOrBuilder.

◆ newBuilderForType()

Builder<K, V> com.google.protobuf.MapEntry< K, V >.newBuilderForType ( )
inline

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

Implements com.google.protobuf.Message.

◆ newDefaultInstance()

static <K, V> MapEntry<K, V> com.google.protobuf.MapEntry< K, V >.newDefaultInstance ( Descriptor  descriptor,
WireFormat.FieldType  keyType,
K  defaultKey,
WireFormat.FieldType  valueType,
defaultValue 
)
inlinestatic

Create a default MapEntry instance. A default MapEntry instance should be created only once for each map entry message type. Generated code should store the created default instance and use it later to create new MapEntry messages of the same type.

◆ toBuilder()

Builder<K, V> com.google.protobuf.MapEntry< K, V >.toBuilder ( )
inline

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

Implements com.google.protobuf.Message.

◆ writeTo()

void com.google.protobuf.MapEntry< K, V >.writeTo ( CodedOutputStream  output) throws IOException
inline

Serializes the message and writes it to

. This does not flush or close the stream.

Implements com.google.protobuf.MessageLite.


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