webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Classes | |
class | Builder |
Public Member Functions | |
K | getKey () |
V | 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, Object > | getAllFields () |
boolean | hasField (FieldDescriptor field) |
Object | getField (FieldDescriptor field) |
int | getRepeatedFieldCount (FieldDescriptor field) |
Object | getRepeatedField (FieldDescriptor field, int index) |
UnknownFieldSet | getUnknownFields () |
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 |
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.
|
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.
|
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
method of generated message classes in that this method is an abstract method of the
interface whereas
is a static method of a specific class. They return the same thing.
Implements com.google.protobuf.MessageOrBuilder.
|
inline |
Get the message's type's descriptor. This differs from the
method of generated message classes in that this method is an abstract method of the
interface whereas
is a static method of a specific class. They return the same thing.
Implements com.google.protobuf.MessageOrBuilder.
|
inline |
|
inline |
|
inline |
Gets the parser for a message of the same type as this message.
Implements com.google.protobuf.Message.
|
inline |
|
inline |
|
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.
|
inline |
Get the UnknownFieldSet for this message.
Implements com.google.protobuf.MessageOrBuilder.
|
inline |
|
inline |
|
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.
|
inline |
Constructs a new builder for a message of the same type as this message.
Implements com.google.protobuf.Message.
|
inlinestatic |
|
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.
|
inline |
Serializes the message and writes it to
. This does not flush or close the stream.
Implements com.google.protobuf.MessageLite.