// Code generated by ogen, DO NOT EDIT. package rest import ( "bytes" "net/http" "github.com/go-faster/jx" ht "github.com/ogen-go/ogen/http" ) func encodeCreatePredictionJobRequest( req *PredictionV2Request, r *http.Request, ) error { const contentType = "application/json" e := new(jx.Encoder) { req.Encode(e) } encoded := e.Bytes() ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } func encodePerformPredictionV2Request( req *PredictionV2Request, r *http.Request, ) error { const contentType = "application/json" e := new(jx.Encoder) { req.Encode(e) } encoded := e.Bytes() ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } func encodeTriggerDatasetDownloadRequest( req *DownloadRequest, r *http.Request, ) error { const contentType = "application/json" e := new(jx.Encoder) { req.Encode(e) } encoded := e.Bytes() ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil }