This class serves as an utility class to help do serialization/parsing of map entries. It's used in generated code and also in the full version MapEntry message.
Protobuf internal. Users shouldn't use.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final K | |
| private static final int | |
| private final MapEntryLite. | |
| private final V | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private | MapEntryLite(WireFormat.
Creates a default MapEntryLite message instance. |
| private | MapEntryLite(MapEntryLite.
Creates a new MapEntryLite message. |
| Modifier and Type | Method and Description |
|---|---|
| public int | computeMessageSize(int fieldNumber, K key, V value)
Computes the message size for the provided key and value as though they were wrapped by a
|
| pack-priv static <K, V> int | |
| public K | |
| pack-priv MapEntryLite. | |
| public V | |
| public static <K, V> MapEntryLite | newDefaultInstance(WireFormat.
Creates a default MapEntryLite message instance. |
| public Map. | parseEntry(ByteString bytes, ExtensionRegistryLite extensionRegistry)
Parses an entry off of the input as a |
| pack-priv static <K, V> Map. | parseEntry(CodedInputStream input, MapEntryLite.
|
| pack-priv static <T> T | parseField(CodedInputStream input, ExtensionRegistryLite extensionRegistry, WireFormat.
|
| public void | parseInto(MapFieldLite<K, V> map, CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parses an entry off of the input into the map. |
| public void | serializeTo(CodedOutputStream output, int fieldNumber, K key, V value)
Serializes the provided key and value as though they were wrapped by a |
| pack-priv static <K, V> void |
| key | back to summary |
|---|---|
| private final K key | |
| KEY_FIELD_NUMBER | back to summary |
|---|---|
| private static final int KEY_FIELD_NUMBER | |
| metadata | back to summary |
|---|---|
| private final MapEntryLite. | |
| value | back to summary |
|---|---|
| private final V value | |
| VALUE_FIELD_NUMBER | back to summary |
|---|---|
| private static final int VALUE_FIELD_NUMBER | |
| MapEntryLite | back to summary |
|---|---|
| private MapEntryLite(WireFormat. Creates a default MapEntryLite message instance. | |
| MapEntryLite | back to summary |
|---|---|
| private MapEntryLite(MapEntryLite. Creates a new MapEntryLite message. | |
| computeMessageSize | back to summary |
|---|---|
| public int computeMessageSize(int fieldNumber, K key, V value) Computes the message size for the provided key and value as though they were wrapped by a
| |
| computeSerializedSize | back to summary |
|---|---|
| pack-priv static <K, V> int computeSerializedSize(MapEntryLite. | |
| getKey | back to summary |
|---|---|
| public K getKey() | |
| getMetadata | back to summary |
|---|---|
| pack-priv MapEntryLite. For experimental runtime internal use only. | |
| getValue | back to summary |
|---|---|
| public V getValue() | |
| newDefaultInstance | back to summary |
|---|---|
| public static <K, V> MapEntryLite Creates a default MapEntryLite message instance. This method is used by generated code to create the default instance for a map entry message. The created default instance should be used to create new map entry messages of the same type. For each map entry message, only one default instance should be created. | |
| parseEntry | back to summary |
|---|---|
| public Map. Parses an entry off of the input as a | |
| parseEntry | back to summary |
|---|---|
| pack-priv static <K, V> Map. | |
| parseField | back to summary |
|---|---|
pack-priv static <T> T parseField(CodedInputStream input, ExtensionRegistryLite extensionRegistry, WireFormat.
| |
| parseInto | back to summary |
|---|---|
| public void parseInto(MapFieldLite<K, V> map, CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException Parses an entry off of the input into the map. This helper avoids allocaton of a | |
| serializeTo | back to summary |
|---|---|
| public void serializeTo(CodedOutputStream output, int fieldNumber, K key, V value) throws IOException Serializes the provided key and value as though they were wrapped by a | |
| writeTo | back to summary |
|---|---|
| pack-priv static <K, V> void writeTo(CodedOutputStream output, MapEntryLite. | |
| Modifier and Type | Field and Description |
|---|---|
| public final K | |
| public final V | |
| public final WireFormat. | |
| public final WireFormat. |
| Access | Constructor and Description |
|---|---|
| public | Metadata(WireFormat.
|
| defaultKey | back to summary |
|---|---|
| public final K defaultKey | |
| defaultValue | back to summary |
|---|---|
| public final V defaultValue | |
| keyType | back to summary |
|---|---|
| public final WireFormat. | |
| valueType | back to summary |
|---|---|
| public final WireFormat. | |
| Metadata | back to summary |
|---|---|
| public Metadata(WireFormat. | |