public static < K , V > MapEntry < K , V > newDefaultInstance ( Descriptor descriptor , WireFormat . FieldType keyType , K defaultKey , WireFormat . FieldType valueType , V defaultValue ) { return new MapEntry < K , V > ( descriptor , keyType , defaultKey , valueType , defaultValue ) ; }
Create a default MapEntry instance . A default MapEntry instance should be created only once for each map entry message type . Generated code should store the created default instance and use it later to create new MapEntry messages of the same type .