Class MapFieldBuilder<KeyT,​MessageOrBuilderT extends MessageOrBuilder,​MessageT extends MessageOrBuilderT,​BuilderT extends MessageOrBuilderT>


  • public class MapFieldBuilder<KeyT,​MessageOrBuilderT extends MessageOrBuilder,​MessageT extends MessageOrBuilderT,​BuilderT extends MessageOrBuilderT>
    extends MapFieldReflectionAccessor
    Internal representation of map fields in generated builders.

    This class supports accessing the map field as a Map to be used in generated API and also supports accessing the field as a List to be used in reflection API. It keeps track of where the data is currently stored and do necessary conversions between map and list.

    This class is a protobuf implementation detail. Users shouldn't use this class directly.