func (o *GetMessagesParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
SetTimeout adds the timeout to the get messages params
package message
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 NewGetMessagesParams() *GetMessagesParams {
	var (
		limitDefault = int64(100)
	)
	return &GetMessagesParams{
		Limit: &limitDefault,
		timeout: cr.DefaultTimeout,
	}
}
func NewGetMessagesParamsWithTimeout(timeout time.Duration) *GetMessagesParams {
	var (
		limitDefault = int64(100)
	)
	return &GetMessagesParams{
		Limit: &limitDefault,
		timeout: timeout,
	}
}
func NewGetMessagesParamsWithContext(ctx context.Context) *GetMessagesParams {
	var (
		limitDefault = int64(100)
	)
	return &GetMessagesParams{
		Limit: &limitDefault,
		Context: ctx,
	}
}
func NewGetMessagesParamsWithHTTPClient(client *http.Client) *GetMessagesParams {
	var (
		limitDefault = int64(100)
	)
	return &GetMessagesParams{
		Limit:      &limitDefault,
		HTTPClient: client,
	}
}
type GetMessagesParams struct {
	Limit *int64
	Since *int64
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetMessagesParams) WithTimeout(timeout time.Duration) *GetMessagesParams {
	o.SetTimeout(timeout)
	return o
}