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.intgetSerializedSize(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) booleanisImmutable(Object mapField) Whether toImmutable() has been called on this map field.MergessrcMapFieldintodestMapField, 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:MapFieldSchemaReturns the map data for mutation.- Specified by:
forMutableMapDatain interfaceMapFieldSchema
-
forMapMetadata
Description copied from interface:MapFieldSchemaReturns the metadata from a default entry.- Specified by:
forMapMetadatain interfaceMapFieldSchema
-
forMapData
Description copied from interface:MapFieldSchemaReturns the map data for read.- Specified by:
forMapDatain interfaceMapFieldSchema
-
isImmutable
Description copied from interface:MapFieldSchemaWhether toImmutable() has been called on this map field.- Specified by:
isImmutablein interfaceMapFieldSchema
-
toImmutable
Description copied from interface:MapFieldSchemaReturns 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:
toImmutablein interfaceMapFieldSchema
-
newMapField
Description copied from interface:MapFieldSchemaReturns a new instance of the map field given a map default entry.- Specified by:
newMapFieldin interfaceMapFieldSchema
-
mergeFrom
Description copied from interface:MapFieldSchemaMergessrcMapFieldintodestMapField, and returns the merged instance.- Specified by:
mergeFromin interfaceMapFieldSchema
-
mergeFromLite
-
getSerializedSize
Description copied from interface:MapFieldSchemaCompute the serialized size for the map with a given field number.- Specified by:
getSerializedSizein interfaceMapFieldSchema
-
getSerializedSizeLite
-