Public Attributes | List of all members
com.google.protobuf.MapField< K, V >.StorageMode Enum Reference

Public Attributes

 BOTH
 
 LIST
 
 MAP
 

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 MapField.java.

Member Data Documentation

◆ BOTH

com.google.protobuf.MapField< K, V >.StorageMode.BOTH

Definition at line 83 of file MapField.java.

◆ LIST

com.google.protobuf.MapField< K, V >.StorageMode.LIST

Definition at line 82 of file MapField.java.

◆ MAP

com.google.protobuf.MapField< K, V >.StorageMode.MAP

Definition at line 81 of file MapField.java.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:07