com.google.protobuf.MapField< K, V >.StorageMode Enum Reference

Detailed Description

Indicates where the data of this map field is currently stored.

When the map field is accessed (through generated API or reflection API), it will shift between these 3 modes:

         getMap()   getList()    getMutableMap()   getMutableList()
MAP      MAP        BOTH         MAP               LIST
LIST     BOTH       LIST         MAP               LIST
BOTH     BOTH       BOTH         MAP               LIST

As the map field changes its mode, the list/map reference returned in a previous method call may be invalidated.

Definition at line 80 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/MapField.java.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:06