func (a *PrintToPDFArgs) SetHeaderTemplate(headerTemplate string) *PrintToPDFArgs {
	a.HeaderTemplate = &headerTemplate
	return a
}
SetHeaderTemplate sets the HeaderTemplate optional argument. HTML
template for the print header. Should be valid HTML markup with
following classes used to inject printing values into them: -
`date`: formatted print date - `title`: document title - `url`:
document location - `pageNumber`: current page number -
`totalPages`: total pages in the document

For example, `<span class=title></span>` would generate span
containing the title.
package page
import (
	"github.com/mafredri/cdp/protocol/debugger"
	"github.com/mafredri/cdp/protocol/dom"
	"github.com/mafredri/cdp/protocol/io"
	"github.com/mafredri/cdp/protocol/network"
	"github.com/mafredri/cdp/protocol/runtime"
)
type AddScriptToEvaluateOnLoadArgs struct {
	ScriptSource string `json:"scriptSource"`  
}
func NewAddScriptToEvaluateOnLoadArgs(scriptSource string) *AddScriptToEvaluateOnLoadArgs {
	args := new(AddScriptToEvaluateOnLoadArgs)
	args.ScriptSource = scriptSource
	return args
}
type AddScriptToEvaluateOnLoadReply struct {
	Identifier ScriptIdentifier `json:"identifier"`  
}
type AddScriptToEvaluateOnNewDocumentArgs struct {
	Source string `json:"source"`  
	WorldName *string `json:"worldName,omitempty"`
}
func NewAddScriptToEvaluateOnNewDocumentArgs(source string) *AddScriptToEvaluateOnNewDocumentArgs {
	args := new(AddScriptToEvaluateOnNewDocumentArgs)
	args.Source = source
	return args
}
func (a *AddScriptToEvaluateOnNewDocumentArgs) SetWorldName(worldName string) *AddScriptToEvaluateOnNewDocumentArgs {
	a.WorldName = &worldName
	return a
}
type AddScriptToEvaluateOnNewDocumentReply struct {
	Identifier ScriptIdentifier `json:"identifier"`  
}
type CaptureScreenshotArgs struct {
	Format  *string   `json:"format,omitempty"`
	Quality *int      `json:"quality,omitempty"`  
	Clip    *Viewport `json:"clip,omitempty"`     
	FromSurface *bool `json:"fromSurface,omitempty"`
}
func NewCaptureScreenshotArgs() *CaptureScreenshotArgs {
	args := new(CaptureScreenshotArgs)
	return args
}
func (a *CaptureScreenshotArgs) SetFormat(format string) *CaptureScreenshotArgs {
	a.Format = &format
	return a
}
func (a *CaptureScreenshotArgs) SetQuality(quality int) *CaptureScreenshotArgs {
	a.Quality = &quality
	return a
}
func (a *CaptureScreenshotArgs) SetClip(clip Viewport) *CaptureScreenshotArgs {
	a.Clip = &clip
	return a
}
func (a *CaptureScreenshotArgs) SetFromSurface(fromSurface bool) *CaptureScreenshotArgs {
	a.FromSurface = &fromSurface
	return a
}
type CaptureScreenshotReply struct {
	Data []byte `json:"data"`  
}
type CaptureSnapshotArgs struct {
	Format *string `json:"format,omitempty"`
}
func NewCaptureSnapshotArgs() *CaptureSnapshotArgs {
	args := new(CaptureSnapshotArgs)
	return args
}
func (a *CaptureSnapshotArgs) SetFormat(format string) *CaptureSnapshotArgs {
	a.Format = &format
	return a
}
type CaptureSnapshotReply struct {
	Data string `json:"data"`  
}
type CreateIsolatedWorldArgs struct {
	FrameID             FrameID `json:"frameId"`                        
	WorldName           *string `json:"worldName,omitempty"`            
	GrantUniveralAccess *bool   `json:"grantUniveralAccess,omitempty"`  
}
func NewCreateIsolatedWorldArgs(frameID FrameID) *CreateIsolatedWorldArgs {
	args := new(CreateIsolatedWorldArgs)
	args.FrameID = frameID
	return args
}
func (a *CreateIsolatedWorldArgs) SetWorldName(worldName string) *CreateIsolatedWorldArgs {
	a.WorldName = &worldName
	return a
}
func (a *CreateIsolatedWorldArgs) SetGrantUniveralAccess(grantUniveralAccess bool) *CreateIsolatedWorldArgs {
	a.GrantUniveralAccess = &grantUniveralAccess
	return a
}
type CreateIsolatedWorldReply struct {
	ExecutionContextID runtime.ExecutionContextID `json:"executionContextId"`  
}
type GetAppManifestReply struct {
	URL    string             `json:"url"`             
	Errors []AppManifestError `json:"errors"`          
	Data   *string            `json:"data,omitempty"`  
}
type GetInstallabilityErrorsReply struct {
	Errors []string `json:"errors"`  
}
type GetFrameTreeReply struct {
	FrameTree FrameTree `json:"frameTree"`  
}
type GetLayoutMetricsReply struct {
	LayoutViewport LayoutViewport `json:"layoutViewport"`  
	VisualViewport VisualViewport `json:"visualViewport"`  
	ContentSize    dom.Rect       `json:"contentSize"`     
}
type GetNavigationHistoryReply struct {
	CurrentIndex int               `json:"currentIndex"`  
	Entries      []NavigationEntry `json:"entries"`       
}
type GetResourceContentArgs struct {
	FrameID FrameID `json:"frameId"`  
	URL     string  `json:"url"`      
}
func NewGetResourceContentArgs(frameID FrameID, url string) *GetResourceContentArgs {
	args := new(GetResourceContentArgs)
	args.FrameID = frameID
	args.URL = url
	return args
}
type GetResourceContentReply struct {
	Content       string `json:"content"`        
	Base64Encoded bool   `json:"base64Encoded"`  
}
type GetResourceTreeReply struct {
	FrameTree FrameResourceTree `json:"frameTree"`  
}
type HandleJavaScriptDialogArgs struct {
	Accept     bool    `json:"accept"`                
	PromptText *string `json:"promptText,omitempty"`  
}
func NewHandleJavaScriptDialogArgs(accept bool) *HandleJavaScriptDialogArgs {
	args := new(HandleJavaScriptDialogArgs)
	args.Accept = accept
	return args
}
func (a *HandleJavaScriptDialogArgs) SetPromptText(promptText string) *HandleJavaScriptDialogArgs {
	a.PromptText = &promptText
	return a
}
type NavigateArgs struct {
	URL            string         `json:"url"`                       
	Referrer       *string        `json:"referrer,omitempty"`        
	TransitionType TransitionType `json:"transitionType,omitempty"`  
	FrameID        *FrameID       `json:"frameId,omitempty"`         
}
func NewNavigateArgs(url string) *NavigateArgs {
	args := new(NavigateArgs)
	args.URL = url
	return args
}
func (a *NavigateArgs) SetReferrer(referrer string) *NavigateArgs {
	a.Referrer = &referrer
	return a
}
func (a *NavigateArgs) SetTransitionType(transitionType TransitionType) *NavigateArgs {
	a.TransitionType = transitionType
	return a
}
func (a *NavigateArgs) SetFrameID(frameID FrameID) *NavigateArgs {
	a.FrameID = &frameID
	return a
}
type NavigateReply struct {
	FrameID   FrameID           `json:"frameId"`              
	LoaderID  *network.LoaderID `json:"loaderId,omitempty"`   
	ErrorText *string           `json:"errorText,omitempty"`  
}
type NavigateToHistoryEntryArgs struct {
	EntryID int `json:"entryId"`  
}
func NewNavigateToHistoryEntryArgs(entryID int) *NavigateToHistoryEntryArgs {
	args := new(NavigateToHistoryEntryArgs)
	args.EntryID = entryID
	return args
}
type PrintToPDFArgs struct {
	Landscape               *bool    `json:"landscape,omitempty"`                
	DisplayHeaderFooter     *bool    `json:"displayHeaderFooter,omitempty"`      
	PrintBackground         *bool    `json:"printBackground,omitempty"`          
	Scale                   *float64 `json:"scale,omitempty"`                    
	PaperWidth              *float64 `json:"paperWidth,omitempty"`               
	PaperHeight             *float64 `json:"paperHeight,omitempty"`              
	MarginTop               *float64 `json:"marginTop,omitempty"`                
	MarginBottom            *float64 `json:"marginBottom,omitempty"`             
	MarginLeft              *float64 `json:"marginLeft,omitempty"`               
	MarginRight             *float64 `json:"marginRight,omitempty"`              
	PageRanges              *string  `json:"pageRanges,omitempty"`               
	IgnoreInvalidPageRanges *bool    `json:"ignoreInvalidPageRanges,omitempty"`  
	HeaderTemplate          *string  `json:"headerTemplate,omitempty"`           
	FooterTemplate          *string  `json:"footerTemplate,omitempty"`           
	PreferCSSPageSize       *bool    `json:"preferCSSPageSize,omitempty"`        
	TransferMode *string `json:"transferMode,omitempty"`
}
func NewPrintToPDFArgs() *PrintToPDFArgs {
	args := new(PrintToPDFArgs)
	return args
}
func (a *PrintToPDFArgs) SetLandscape(landscape bool) *PrintToPDFArgs {
	a.Landscape = &landscape
	return a
}
func (a *PrintToPDFArgs) SetDisplayHeaderFooter(displayHeaderFooter bool) *PrintToPDFArgs {
	a.DisplayHeaderFooter = &displayHeaderFooter
	return a
}
func (a *PrintToPDFArgs) SetPrintBackground(printBackground bool) *PrintToPDFArgs {
	a.PrintBackground = &printBackground
	return a
}
func (a *PrintToPDFArgs) SetScale(scale float64) *PrintToPDFArgs {
	a.Scale = &scale
	return a
}
func (a *PrintToPDFArgs) SetPaperWidth(paperWidth float64) *PrintToPDFArgs {
	a.PaperWidth = &paperWidth
	return a
}
func (a *PrintToPDFArgs) SetPaperHeight(paperHeight float64) *PrintToPDFArgs {
	a.PaperHeight = &paperHeight
	return a
}
func (a *PrintToPDFArgs) SetMarginTop(marginTop float64) *PrintToPDFArgs {
	a.MarginTop = &marginTop
	return a
}
func (a *PrintToPDFArgs) SetMarginBottom(marginBottom float64) *PrintToPDFArgs {
	a.MarginBottom = &marginBottom
	return a
}
func (a *PrintToPDFArgs) SetMarginLeft(marginLeft float64) *PrintToPDFArgs {
	a.MarginLeft = &marginLeft
	return a
}
func (a *PrintToPDFArgs) SetMarginRight(marginRight float64) *PrintToPDFArgs {
	a.MarginRight = &marginRight
	return a
}
func (a *PrintToPDFArgs) SetPageRanges(pageRanges string) *PrintToPDFArgs {
	a.PageRanges = &pageRanges
	return a
}
func (a *PrintToPDFArgs) SetIgnoreInvalidPageRanges(ignoreInvalidPageRanges bool) *PrintToPDFArgs {
	a.IgnoreInvalidPageRanges = &ignoreInvalidPageRanges
	return a
}