Package com.google.protobuf
Class MapFieldSchemaLite
java.lang.Object
com.google.protobuf.MapFieldSchemaLite
- All Implemented Interfaces:
MapFieldSchema
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMap
<?, ?> forMapData
(Object mapField) Returns the map data for read.forMapMetadata
(Object mapDefaultEntry) Returns the metadata from a default entry.Map
<?, ?> forMutableMapData
(Object mapField) Returns the map data for mutation.int
getSerializedSize
(int fieldNumber, Object mapField, Object mapDefaultEntry) Compute the serialized size for the map with a given field number.private static <K,
V> int getSerializedSizeLite
(int fieldNumber, Object mapField, Object defaultEntry) boolean
isImmutable
(Object mapField) Whether toImmutable() has been called on this map field.MergessrcMapField
intodestMapField
, and returns the merged instance.private static <K,
V> MapFieldLite <K, V> mergeFromLite
(Object destMapField, Object srcMapField) newMapField
(Object unused) Returns a new instance of the map field given a map default entry.toImmutable
(Object mapField) Returns an immutable instance of the map field.
-
Constructor Details
-
MapFieldSchemaLite
MapFieldSchemaLite()
-
-
Method Details
-
forMutableMapData
Description copied from interface:MapFieldSchema
Returns the map data for mutation.- Specified by:
forMutableMapData
in interfaceMapFieldSchema
-
forMapMetadata
Description copied from interface:MapFieldSchema
Returns the metadata from a default entry.- Specified by:
forMapMetadata
in interfaceMapFieldSchema
-
forMapData
Description copied from interface:MapFieldSchema
Returns the map data for read.- Specified by:
forMapData
in interfaceMapFieldSchema
-
isImmutable
Description copied from interface:MapFieldSchema
Whether toImmutable() has been called on this map field.- Specified by:
isImmutable
in interfaceMapFieldSchema
-
toImmutable
Description copied from interface:MapFieldSchema
Returns an immutable instance of the map field. It may make the parameter immutable and return the parameter, or create an immutable copy. The status of the parameter after the call is undefined.- Specified by:
toImmutable
in interfaceMapFieldSchema
-
newMapField
Description copied from interface:MapFieldSchema
Returns a new instance of the map field given a map default entry.- Specified by:
newMapField
in interfaceMapFieldSchema
-
mergeFrom
Description copied from interface:MapFieldSchema
MergessrcMapField
intodestMapField
, and returns the merged instance.- Specified by:
mergeFrom
in interfaceMapFieldSchema
-
mergeFromLite
-
getSerializedSize
Description copied from interface:MapFieldSchema
Compute the serialized size for the map with a given field number.- Specified by:
getSerializedSize
in interfaceMapFieldSchema
-
getSerializedSizeLite
-