Interface MapFieldSchema

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Map<?,​?> forMapData​(java.lang.Object mapField)
      Returns the map data for read.
      MapEntryLite.Metadata<?,​?> forMapMetadata​(java.lang.Object mapDefaultEntry)
      Returns the metadata from a default entry.
      java.util.Map<?,​?> forMutableMapData​(java.lang.Object mapField)
      Returns the map data for mutation.
      int getSerializedSize​(int fieldNumber, java.lang.Object mapField, java.lang.Object mapDefaultEntry)
      Compute the serialized size for the map with a given field number.
      boolean isImmutable​(java.lang.Object mapField)
      Whether toImmutable() has been called on this map field.
      java.lang.Object mergeFrom​(java.lang.Object destMapField, java.lang.Object srcMapField)
      Merges srcMapField into destMapField, and returns the merged instance.
      java.lang.Object newMapField​(java.lang.Object mapDefaultEntry)
      Returns a new instance of the map field given a map default entry.
      java.lang.Object toImmutable​(java.lang.Object mapField)
      Returns an immutable instance of the map field.
    • Method Detail

      • forMutableMapData

        java.util.Map<?,​?> forMutableMapData​(java.lang.Object mapField)
        Returns the map data for mutation.
      • forMapData

        java.util.Map<?,​?> forMapData​(java.lang.Object mapField)
        Returns the map data for read.
      • isImmutable

        boolean isImmutable​(java.lang.Object mapField)
        Whether toImmutable() has been called on this map field.
      • toImmutable

        java.lang.Object toImmutable​(java.lang.Object mapField)
        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

        java.lang.Object newMapField​(java.lang.Object mapDefaultEntry)
        Returns a new instance of the map field given a map default entry.
      • forMapMetadata

        MapEntryLite.Metadata<?,​?> forMapMetadata​(java.lang.Object mapDefaultEntry)
        Returns the metadata from a default entry.
      • mergeFrom

        java.lang.Object mergeFrom​(java.lang.Object destMapField,
                                   java.lang.Object srcMapField)
        Merges srcMapField into destMapField, and returns the merged instance.
      • getSerializedSize

        int getSerializedSize​(int fieldNumber,
                              java.lang.Object mapField,
                              java.lang.Object mapDefaultEntry)
        Compute the serialized size for the map with a given field number.