'Finds the primitive encoder according to the type\'s data_store_type.'

def _GetPrimitiveEncoder(self):

    primitive_cls = self._PROTO_DATA_STORE_LOOKUP[self.type.data_store_type]
    self.primitive_desc = primitive_cls(**self._kwargs)
    self.wire_type = self.primitive_desc.wire_type
    self.proto_type_name = self.primitive_desc.proto_type_name
    self.CalculateTags()
