Package com.google.protobuf
Class MapFieldSchemaFull
java.lang.Object
com.google.protobuf.MapFieldSchemaFull
- 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 number, Object mapField, Object mapDefaultEntry) Compute the serialized size for the map with a given field number.private static <K,V> int getSerializedSizeFull(int number, Object mapField, Object defaultEntryObject) booleanisImmutable(Object mapField) Whether toImmutable() has been called on this map field.MergessrcMapFieldintodestMapField, and returns the merged instance.private static <K,V> Object mergeFromFull(Object destMapField, Object srcMapField) newMapField(Object mapDefaultEntry) 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
-
MapFieldSchemaFull
MapFieldSchemaFull()
-
-
Method Details
-
forMutableMapData
Description copied from interface:MapFieldSchemaReturns the map data for mutation.- Specified by:
forMutableMapDatain 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
-
forMapMetadata
Description copied from interface:MapFieldSchemaReturns the metadata from a default entry.- Specified by:
forMapMetadatain interfaceMapFieldSchema
-
mergeFrom
Description copied from interface:MapFieldSchemaMergessrcMapFieldintodestMapField, and returns the merged instance.- Specified by:
mergeFromin interfaceMapFieldSchema
-
mergeFromFull
-
getSerializedSize
Description copied from interface:MapFieldSchemaCompute the serialized size for the map with a given field number.- Specified by:
getSerializedSizein interfaceMapFieldSchema
-
getSerializedSizeFull
-