func (o *GetStatsParams) bindParent(rawData []string, hasKey bool, formats strfmt.Registry) error {
	var raw string
	if len(rawData) > 0 {
		raw = rawData[len(rawData)-1]
	}
	if raw == "" {  
		return nil
	}
	o.Parent = &raw
	return nil
}
bindParent binds and validates parameter Parent from query.
package stats
import (
	"net/http"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/runtime/middleware"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/validate"
)
func NewGetStatsParams() GetStatsParams {
	return GetStatsParams{}
}
type GetStatsParams struct {
	HTTPRequest *http.Request `json:"-"`
	Name *string
	Parent *string
	Type *string
}
func (o *GetStatsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
	var res []error
	o.HTTPRequest = r
	qs := runtime.Values(r.URL.Query())
	qName, qhkName, _ := qs.GetOK("name")
	if err := o.bindName(qName, qhkName, route.Formats); err != nil {
		res = append(res, err)
	}
	qParent, qhkParent, _ := qs.GetOK("parent")
	if err := o.bindParent(qParent, qhkParent, route.Formats); err != nil {
		res = append(res, err)
	}
	qType, qhkType, _ := qs.GetOK("type")
	if err := o.bindType(qType, qhkType, route.Formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (o *GetStatsParams) bindName(rawData []string, hasKey bool, formats strfmt.Registry) error {
	var raw string
	if len(rawData) > 0 {
		raw = rawData[len(rawData)-1]
	}
	if raw == "" {  
		return nil
	}
	o.Name = &raw
	return nil
}