func (o *GetGovProposalsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	if o.Depositor != nil {
		var qrDepositor string
		if o.Depositor != nil {
			qrDepositor = *o.Depositor
		}
		qDepositor := qrDepositor
		if qDepositor != "" {
			if err := r.SetQueryParam("depositor", qDepositor); err != nil {
				return err
			}
		}
	}
	if o.Status != nil {
		var qrStatus string
		if o.Status != nil {
			qrStatus = *o.Status
		}
		qStatus := qrStatus
		if qStatus != "" {
			if err := r.SetQueryParam("status", qStatus); err != nil {
				return err
			}
		}
	}
	if o.Voter != nil {
		var qrVoter string
		if o.Voter != nil {
			qrVoter = *o.Voter
		}
		qVoter := qrVoter
		if qVoter != "" {
			if err := r.SetQueryParam("voter", qVoter); err != nil {
				return err
			}
		}
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
WriteToRequest writes these params to a swagger request
package governance
import (
	"context"
	"net/http"
	"time"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	cr "github.com/go-openapi/runtime/client"
	"github.com/go-openapi/strfmt"
)
func NewGetGovProposalsParams() *GetGovProposalsParams {
	var ()
	return &GetGovProposalsParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewGetGovProposalsParamsWithTimeout(timeout time.Duration) *GetGovProposalsParams {
	var ()
	return &GetGovProposalsParams{
		timeout: timeout,
	}
}
func NewGetGovProposalsParamsWithContext(ctx context.Context) *GetGovProposalsParams {
	var ()
	return &GetGovProposalsParams{
		Context: ctx,
	}
}
func NewGetGovProposalsParamsWithHTTPClient(client *http.Client) *GetGovProposalsParams {
	var ()
	return &GetGovProposalsParams{
		HTTPClient: client,
	}
}
type GetGovProposalsParams struct {
	Depositor *string
	Status *string
	Voter *string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetGovProposalsParams) WithTimeout(timeout time.Duration) *GetGovProposalsParams {
	o.SetTimeout(timeout)
	return o
}
func (o *GetGovProposalsParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *GetGovProposalsParams) WithContext(ctx context.Context) *GetGovProposalsParams {
	o.SetContext(ctx)
	return o
}
func (o *GetGovProposalsParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *GetGovProposalsParams) WithHTTPClient(client *http.Client) *GetGovProposalsParams {
	o.SetHTTPClient(client)
	return o
}
func (o *GetGovProposalsParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *GetGovProposalsParams) WithDepositor(depositor *string) *GetGovProposalsParams {
	o.SetDepositor(depositor)
	return o
}
func (o *GetGovProposalsParams) SetDepositor(depositor *string) {
	o.Depositor = depositor
}
func (o *GetGovProposalsParams) WithStatus(status *string) *GetGovProposalsParams {
	o.SetStatus(status)
	return o
}
func (o *GetGovProposalsParams) SetStatus(status *string) {
	o.Status = status
}
func (o *GetGovProposalsParams) WithVoter(voter *string) *GetGovProposalsParams {
	o.SetVoter(voter)
	return o
}
func (o *GetGovProposalsParams) SetVoter(voter *string) {
	o.Voter = voter
}