This is an implementation of the runtime.Marshaler interface marshaling responses to csv.
You might register the marshaler using
mux := runtime.NewServeMux(runtime.WithMarshalerOption("text/csv", &csv.Marshaler{}))
Documentation on grpc-gateway custom marshalers may be found here.