func (o *GetPublicSetHeartbeatParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	qrInterval := o.Interval
	qInterval := swag.FormatFloat64(qrInterval)
	if qInterval != "" {
		if err := r.SetQueryParam("interval", qInterval); err != nil {
			return err
		}
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
WriteToRequest writes these params to a swagger request
package operations
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/swag"
	strfmt "github.com/go-openapi/strfmt"
)
func NewGetPublicSetHeartbeatParams() *GetPublicSetHeartbeatParams {
	var ()
	return &GetPublicSetHeartbeatParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewGetPublicSetHeartbeatParamsWithTimeout(timeout time.Duration) *GetPublicSetHeartbeatParams {
	var ()
	return &GetPublicSetHeartbeatParams{
		timeout: timeout,
	}
}
func NewGetPublicSetHeartbeatParamsWithContext(ctx context.Context) *GetPublicSetHeartbeatParams {
	var ()
	return &GetPublicSetHeartbeatParams{
		Context: ctx,
	}
}
func NewGetPublicSetHeartbeatParamsWithHTTPClient(client *http.Client) *GetPublicSetHeartbeatParams {
	var ()
	return &GetPublicSetHeartbeatParams{
		HTTPClient: client,
	}
}
type GetPublicSetHeartbeatParams struct {
	Interval float64
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetPublicSetHeartbeatParams) WithTimeout(timeout time.Duration) *GetPublicSetHeartbeatParams {
	o.SetTimeout(timeout)
	return o
}
func (o *GetPublicSetHeartbeatParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *GetPublicSetHeartbeatParams) WithContext(ctx context.Context) *GetPublicSetHeartbeatParams {
	o.SetContext(ctx)
	return o
}
func (o *GetPublicSetHeartbeatParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *GetPublicSetHeartbeatParams) WithHTTPClient(client *http.Client) *GetPublicSetHeartbeatParams {
	o.SetHTTPClient(client)
	return o
}
func (o *GetPublicSetHeartbeatParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *GetPublicSetHeartbeatParams) WithInterval(interval float64) *GetPublicSetHeartbeatParams {
	o.SetInterval(interval)
	return o
}
func (o *GetPublicSetHeartbeatParams) SetInterval(interval float64) {
	o.Interval = interval
}