Package com.google.protobuf
Interface MapFieldSchema
- All Known Implementing Classes:
MapFieldSchemaFull
,MapFieldSchemaLite
-
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.boolean
isImmutable
(Object mapField) Whether toImmutable() has been called on this map field.MergessrcMapField
intodestMapField
, and returns the merged instance.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.
-
Method Details
-
forMutableMapData
Returns the map data for mutation. -
forMapData
Returns the map data for read. -
isImmutable
Whether toImmutable() has been called on this map field. -
toImmutable
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. -
newMapField
Returns a new instance of the map field given a map default entry. -
forMapMetadata
Returns the metadata from a default entry. -
mergeFrom
MergessrcMapField
intodestMapField
, and returns the merged instance. -
getSerializedSize
Compute the serialized size for the map with a given field number.
-