package network

// Code generated by cdproto-gen. DO NOT EDIT.

import (
	

	
	
	
	
	
	
	
)

// ResourceType resource type as it was perceived by the rendering engine.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ResourceType
type ResourceType string

// String returns the ResourceType as string value.
func ( ResourceType) () string {
	return string()
}

// ResourceType values.
const (
	ResourceTypeDocument           ResourceType = "Document"
	ResourceTypeStylesheet         ResourceType = "Stylesheet"
	ResourceTypeImage              ResourceType = "Image"
	ResourceTypeMedia              ResourceType = "Media"
	ResourceTypeFont               ResourceType = "Font"
	ResourceTypeScript             ResourceType = "Script"
	ResourceTypeTextTrack          ResourceType = "TextTrack"
	ResourceTypeXHR                ResourceType = "XHR"
	ResourceTypeFetch              ResourceType = "Fetch"
	ResourceTypePrefetch           ResourceType = "Prefetch"
	ResourceTypeEventSource        ResourceType = "EventSource"
	ResourceTypeWebSocket          ResourceType = "WebSocket"
	ResourceTypeManifest           ResourceType = "Manifest"
	ResourceTypeSignedExchange     ResourceType = "SignedExchange"
	ResourceTypePing               ResourceType = "Ping"
	ResourceTypeCSPViolationReport ResourceType = "CSPViolationReport"
	ResourceTypePreflight          ResourceType = "Preflight"
	ResourceTypeOther              ResourceType = "Other"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( ResourceType) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( ResourceType) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *ResourceType) ( *jlexer.Lexer) {
	 := .String()
	switch ResourceType() {
	case ResourceTypeDocument:
		* = ResourceTypeDocument
	case ResourceTypeStylesheet:
		* = ResourceTypeStylesheet
	case ResourceTypeImage:
		* = ResourceTypeImage
	case ResourceTypeMedia:
		* = ResourceTypeMedia
	case ResourceTypeFont:
		* = ResourceTypeFont
	case ResourceTypeScript:
		* = ResourceTypeScript
	case ResourceTypeTextTrack:
		* = ResourceTypeTextTrack
	case ResourceTypeXHR:
		* = ResourceTypeXHR
	case ResourceTypeFetch:
		* = ResourceTypeFetch
	case ResourceTypePrefetch:
		* = ResourceTypePrefetch
	case ResourceTypeEventSource:
		* = ResourceTypeEventSource
	case ResourceTypeWebSocket:
		* = ResourceTypeWebSocket
	case ResourceTypeManifest:
		* = ResourceTypeManifest
	case ResourceTypeSignedExchange:
		* = ResourceTypeSignedExchange
	case ResourceTypePing:
		* = ResourceTypePing
	case ResourceTypeCSPViolationReport:
		* = ResourceTypeCSPViolationReport
	case ResourceTypePreflight:
		* = ResourceTypePreflight
	case ResourceTypeOther:
		* = ResourceTypeOther

	default:
		.AddError(fmt.Errorf("unknown ResourceType value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *ResourceType) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// RequestID unique request identifier.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-RequestId
type RequestID string

// String returns the RequestID as string value.
func ( RequestID) () string {
	return string()
}

// InterceptionID unique intercepted request identifier.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-InterceptionId
type InterceptionID string

// String returns the InterceptionID as string value.
func ( InterceptionID) () string {
	return string()
}

// ErrorReason network level fetch failure reason.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ErrorReason
type ErrorReason string

// String returns the ErrorReason as string value.
func ( ErrorReason) () string {
	return string()
}

// ErrorReason values.
const (
	ErrorReasonFailed               ErrorReason = "Failed"
	ErrorReasonAborted              ErrorReason = "Aborted"
	ErrorReasonTimedOut             ErrorReason = "TimedOut"
	ErrorReasonAccessDenied         ErrorReason = "AccessDenied"
	ErrorReasonConnectionClosed     ErrorReason = "ConnectionClosed"
	ErrorReasonConnectionReset      ErrorReason = "ConnectionReset"
	ErrorReasonConnectionRefused    ErrorReason = "ConnectionRefused"
	ErrorReasonConnectionAborted    ErrorReason = "ConnectionAborted"
	ErrorReasonConnectionFailed     ErrorReason = "ConnectionFailed"
	ErrorReasonNameNotResolved      ErrorReason = "NameNotResolved"
	ErrorReasonInternetDisconnected ErrorReason = "InternetDisconnected"
	ErrorReasonAddressUnreachable   ErrorReason = "AddressUnreachable"
	ErrorReasonBlockedByClient      ErrorReason = "BlockedByClient"
	ErrorReasonBlockedByResponse    ErrorReason = "BlockedByResponse"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( ErrorReason) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( ErrorReason) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *ErrorReason) ( *jlexer.Lexer) {
	 := .String()
	switch ErrorReason() {
	case ErrorReasonFailed:
		* = ErrorReasonFailed
	case ErrorReasonAborted:
		* = ErrorReasonAborted
	case ErrorReasonTimedOut:
		* = ErrorReasonTimedOut
	case ErrorReasonAccessDenied:
		* = ErrorReasonAccessDenied
	case ErrorReasonConnectionClosed:
		* = ErrorReasonConnectionClosed
	case ErrorReasonConnectionReset:
		* = ErrorReasonConnectionReset
	case ErrorReasonConnectionRefused:
		* = ErrorReasonConnectionRefused
	case ErrorReasonConnectionAborted:
		* = ErrorReasonConnectionAborted
	case ErrorReasonConnectionFailed:
		* = ErrorReasonConnectionFailed
	case ErrorReasonNameNotResolved:
		* = ErrorReasonNameNotResolved
	case ErrorReasonInternetDisconnected:
		* = ErrorReasonInternetDisconnected
	case ErrorReasonAddressUnreachable:
		* = ErrorReasonAddressUnreachable
	case ErrorReasonBlockedByClient:
		* = ErrorReasonBlockedByClient
	case ErrorReasonBlockedByResponse:
		* = ErrorReasonBlockedByResponse

	default:
		.AddError(fmt.Errorf("unknown ErrorReason value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *ErrorReason) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// Headers request / response headers as keys / values of JSON object.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-Headers
type Headers map[string]interface{}

// ConnectionType the underlying connection technology that the browser is
// supposedly using.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ConnectionType
type ConnectionType string

// String returns the ConnectionType as string value.
func ( ConnectionType) () string {
	return string()
}

// ConnectionType values.
const (
	ConnectionTypeNone       ConnectionType = "none"
	ConnectionTypeCellular2g ConnectionType = "cellular2g"
	ConnectionTypeCellular3g ConnectionType = "cellular3g"
	ConnectionTypeCellular4g ConnectionType = "cellular4g"
	ConnectionTypeBluetooth  ConnectionType = "bluetooth"
	ConnectionTypeEthernet   ConnectionType = "ethernet"
	ConnectionTypeWifi       ConnectionType = "wifi"
	ConnectionTypeWimax      ConnectionType = "wimax"
	ConnectionTypeOther      ConnectionType = "other"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( ConnectionType) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( ConnectionType) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *ConnectionType) ( *jlexer.Lexer) {
	 := .String()
	switch ConnectionType() {
	case ConnectionTypeNone:
		* = ConnectionTypeNone
	case ConnectionTypeCellular2g:
		* = ConnectionTypeCellular2g
	case ConnectionTypeCellular3g:
		* = ConnectionTypeCellular3g
	case ConnectionTypeCellular4g:
		* = ConnectionTypeCellular4g
	case ConnectionTypeBluetooth:
		* = ConnectionTypeBluetooth
	case ConnectionTypeEthernet:
		* = ConnectionTypeEthernet
	case ConnectionTypeWifi:
		* = ConnectionTypeWifi
	case ConnectionTypeWimax:
		* = ConnectionTypeWimax
	case ConnectionTypeOther:
		* = ConnectionTypeOther

	default:
		.AddError(fmt.Errorf("unknown ConnectionType value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *ConnectionType) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// CookieSameSite represents the cookie's 'SameSite' status:
// https://tools.ietf.org/html/draft-west-first-party-cookies.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CookieSameSite
type CookieSameSite string

// String returns the CookieSameSite as string value.
func ( CookieSameSite) () string {
	return string()
}

// CookieSameSite values.
const (
	CookieSameSiteStrict CookieSameSite = "Strict"
	CookieSameSiteLax    CookieSameSite = "Lax"
	CookieSameSiteNone   CookieSameSite = "None"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( CookieSameSite) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( CookieSameSite) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *CookieSameSite) ( *jlexer.Lexer) {
	 := .String()
	switch CookieSameSite() {
	case CookieSameSiteStrict:
		* = CookieSameSiteStrict
	case CookieSameSiteLax:
		* = CookieSameSiteLax
	case CookieSameSiteNone:
		* = CookieSameSiteNone

	default:
		.AddError(fmt.Errorf("unknown CookieSameSite value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *CookieSameSite) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// CookiePriority represents the cookie's 'Priority' status:
// https://tools.ietf.org/html/draft-west-cookie-priority-00.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CookiePriority
type CookiePriority string

// String returns the CookiePriority as string value.
func ( CookiePriority) () string {
	return string()
}

// CookiePriority values.
const (
	CookiePriorityLow    CookiePriority = "Low"
	CookiePriorityMedium CookiePriority = "Medium"
	CookiePriorityHigh   CookiePriority = "High"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( CookiePriority) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( CookiePriority) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *CookiePriority) ( *jlexer.Lexer) {
	 := .String()
	switch CookiePriority() {
	case CookiePriorityLow:
		* = CookiePriorityLow
	case CookiePriorityMedium:
		* = CookiePriorityMedium
	case CookiePriorityHigh:
		* = CookiePriorityHigh

	default:
		.AddError(fmt.Errorf("unknown CookiePriority value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *CookiePriority) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// CookieSourceScheme represents the source scheme of the origin that
// originally set the cookie. A value of "Unset" allows protocol clients to
// emulate legacy cookie scope for the scheme. This is a temporary ability and
// it will be removed in the future.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CookieSourceScheme
type CookieSourceScheme string

// String returns the CookieSourceScheme as string value.
func ( CookieSourceScheme) () string {
	return string()
}

// CookieSourceScheme values.
const (
	CookieSourceSchemeUnset     CookieSourceScheme = "Unset"
	CookieSourceSchemeNonSecure CookieSourceScheme = "NonSecure"
	CookieSourceSchemeSecure    CookieSourceScheme = "Secure"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( CookieSourceScheme) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( CookieSourceScheme) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *CookieSourceScheme) ( *jlexer.Lexer) {
	 := .String()
	switch CookieSourceScheme() {
	case CookieSourceSchemeUnset:
		* = CookieSourceSchemeUnset
	case CookieSourceSchemeNonSecure:
		* = CookieSourceSchemeNonSecure
	case CookieSourceSchemeSecure:
		* = CookieSourceSchemeSecure

	default:
		.AddError(fmt.Errorf("unknown CookieSourceScheme value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *CookieSourceScheme) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// ResourceTiming timing information for the request.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ResourceTiming
type ResourceTiming struct {
	RequestTime              float64 `json:"requestTime"`              // Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime.
	ProxyStart               float64 `json:"proxyStart"`               // Started resolving proxy.
	ProxyEnd                 float64 `json:"proxyEnd"`                 // Finished resolving proxy.
	DNSStart                 float64 `json:"dnsStart"`                 // Started DNS address resolve.
	DNSEnd                   float64 `json:"dnsEnd"`                   // Finished DNS address resolve.
	ConnectStart             float64 `json:"connectStart"`             // Started connecting to the remote host.
	ConnectEnd               float64 `json:"connectEnd"`               // Connected to the remote host.
	SslStart                 float64 `json:"sslStart"`                 // Started SSL handshake.
	SslEnd                   float64 `json:"sslEnd"`                   // Finished SSL handshake.
	WorkerStart              float64 `json:"workerStart"`              // Started running ServiceWorker.
	WorkerReady              float64 `json:"workerReady"`              // Finished Starting ServiceWorker.
	WorkerFetchStart         float64 `json:"workerFetchStart"`         // Started fetch event.
	WorkerRespondWithSettled float64 `json:"workerRespondWithSettled"` // Settled fetch event respondWith promise.
	SendStart                float64 `json:"sendStart"`                // Started sending request.
	SendEnd                  float64 `json:"sendEnd"`                  // Finished sending request.
	PushStart                float64 `json:"pushStart"`                // Time the server started pushing request.
	PushEnd                  float64 `json:"pushEnd"`                  // Time the server finished pushing request.
	ReceiveHeadersStart      float64 `json:"receiveHeadersStart"`      // Started receiving response headers.
	ReceiveHeadersEnd        float64 `json:"receiveHeadersEnd"`        // Finished receiving response headers.
}

// ResourcePriority loading priority of a resource request.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ResourcePriority
type ResourcePriority string

// String returns the ResourcePriority as string value.
func ( ResourcePriority) () string {
	return string()
}

// ResourcePriority values.
const (
	ResourcePriorityVeryLow  ResourcePriority = "VeryLow"
	ResourcePriorityLow      ResourcePriority = "Low"
	ResourcePriorityMedium   ResourcePriority = "Medium"
	ResourcePriorityHigh     ResourcePriority = "High"
	ResourcePriorityVeryHigh ResourcePriority = "VeryHigh"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( ResourcePriority) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( ResourcePriority) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *ResourcePriority) ( *jlexer.Lexer) {
	 := .String()
	switch ResourcePriority() {
	case ResourcePriorityVeryLow:
		* = ResourcePriorityVeryLow
	case ResourcePriorityLow:
		* = ResourcePriorityLow
	case ResourcePriorityMedium:
		* = ResourcePriorityMedium
	case ResourcePriorityHigh:
		* = ResourcePriorityHigh
	case ResourcePriorityVeryHigh:
		* = ResourcePriorityVeryHigh

	default:
		.AddError(fmt.Errorf("unknown ResourcePriority value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *ResourcePriority) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// PostDataEntry post data entry for HTTP request.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-PostDataEntry
type PostDataEntry struct {
	Bytes string `json:"bytes,omitempty"`
}

// Request HTTP request data.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-Request
type Request struct {
	URL              string                    `json:"url"`                        // Request URL (without fragment).
	URLFragment      string                    `json:"urlFragment,omitempty"`      // Fragment of the requested URL starting with hash, if present.
	Method           string                    `json:"method"`                     // HTTP request method.
	Headers          Headers                   `json:"headers"`                    // HTTP request headers.
	PostData         string                    `json:"postData,omitempty"`         // HTTP POST request data.
	HasPostData      bool                      `json:"hasPostData,omitempty"`      // True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.
	PostDataEntries  []*PostDataEntry          `json:"postDataEntries,omitempty"`  // Request body elements. This will be converted from base64 to binary
	MixedContentType security.MixedContentType `json:"mixedContentType,omitempty"` // The mixed content type of the request.
	InitialPriority  ResourcePriority          `json:"initialPriority"`            // Priority of the resource request at the time request is sent.
	ReferrerPolicy   ReferrerPolicy            `json:"referrerPolicy"`             // The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
	IsLinkPreload    bool                      `json:"isLinkPreload,omitempty"`    // Whether is loaded via link preload.
	TrustTokenParams *TrustTokenParams         `json:"trustTokenParams,omitempty"` // Set for requests when the TrustToken API is used. Contains the parameters passed by the developer (e.g. via "fetch") as understood by the backend.
	IsSameSite       bool                      `json:"isSameSite,omitempty"`       // True if this resource request is considered to be the 'same site' as the request correspondinfg to the main frame.
}

// SignedCertificateTimestamp details of a signed certificate timestamp
// (SCT).
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-SignedCertificateTimestamp
type SignedCertificateTimestamp struct {
	Status             string  `json:"status"`             // Validation status.
	Origin             string  `json:"origin"`             // Origin.
	LogDescription     string  `json:"logDescription"`     // Log name / description.
	LogID              string  `json:"logId"`              // Log ID.
	Timestamp          float64 `json:"timestamp"`          // Issuance date. Unlike TimeSinceEpoch, this contains the number of milliseconds since January 1, 1970, UTC, not the number of seconds.
	HashAlgorithm      string  `json:"hashAlgorithm"`      // Hash algorithm.
	SignatureAlgorithm string  `json:"signatureAlgorithm"` // Signature algorithm.
	SignatureData      string  `json:"signatureData"`      // Signature data.
}

// SecurityDetails security details about a request.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-SecurityDetails
type SecurityDetails struct {
	Protocol                          string                            `json:"protocol"`                           // Protocol name (e.g. "TLS 1.2" or "QUIC").
	KeyExchange                       string                            `json:"keyExchange"`                        // Key Exchange used by the connection, or the empty string if not applicable.
	KeyExchangeGroup                  string                            `json:"keyExchangeGroup,omitempty"`         // (EC)DH group used by the connection, if applicable.
	Cipher                            string                            `json:"cipher"`                             // Cipher name.
	Mac                               string                            `json:"mac,omitempty"`                      // TLS MAC. Note that AEAD ciphers do not have separate MACs.
	CertificateID                     security.CertificateID            `json:"certificateId"`                      // Certificate ID value.
	SubjectName                       string                            `json:"subjectName"`                        // Certificate subject name.
	SanList                           []string                          `json:"sanList"`                            // Subject Alternative Name (SAN) DNS names and IP addresses.
	Issuer                            string                            `json:"issuer"`                             // Name of the issuing CA.
	ValidFrom                         *cdp.TimeSinceEpoch               `json:"validFrom"`                          // Certificate valid from date.
	ValidTo                           *cdp.TimeSinceEpoch               `json:"validTo"`                            // Certificate valid to (expiration) date
	SignedCertificateTimestampList    []*SignedCertificateTimestamp     `json:"signedCertificateTimestampList"`     // List of signed certificate timestamps (SCTs).
	CertificateTransparencyCompliance CertificateTransparencyCompliance `json:"certificateTransparencyCompliance"`  // Whether the request complied with Certificate Transparency policy
	ServerSignatureAlgorithm          int64                             `json:"serverSignatureAlgorithm,omitempty"` // The signature algorithm used by the server in the TLS server signature, represented as a TLS SignatureScheme code point. Omitted if not applicable or not known.
	EncryptedClientHello              bool                              `json:"encryptedClientHello"`               // Whether the connection used Encrypted ClientHello
}

// CertificateTransparencyCompliance whether the request complied with
// Certificate Transparency policy.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CertificateTransparencyCompliance
type CertificateTransparencyCompliance string

// String returns the CertificateTransparencyCompliance as string value.
func ( CertificateTransparencyCompliance) () string {
	return string()
}

// CertificateTransparencyCompliance values.
const (
	CertificateTransparencyComplianceUnknown      CertificateTransparencyCompliance = "unknown"
	CertificateTransparencyComplianceNotCompliant CertificateTransparencyCompliance = "not-compliant"
	CertificateTransparencyComplianceCompliant    CertificateTransparencyCompliance = "compliant"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( CertificateTransparencyCompliance) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( CertificateTransparencyCompliance) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *CertificateTransparencyCompliance) ( *jlexer.Lexer) {
	 := .String()
	switch CertificateTransparencyCompliance() {
	case CertificateTransparencyComplianceUnknown:
		* = CertificateTransparencyComplianceUnknown
	case CertificateTransparencyComplianceNotCompliant:
		* = CertificateTransparencyComplianceNotCompliant
	case CertificateTransparencyComplianceCompliant:
		* = CertificateTransparencyComplianceCompliant

	default:
		.AddError(fmt.Errorf("unknown CertificateTransparencyCompliance value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *CertificateTransparencyCompliance) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// BlockedReason the reason why request was blocked.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-BlockedReason
type BlockedReason string

// String returns the BlockedReason as string value.
func ( BlockedReason) () string {
	return string()
}

// BlockedReason values.
const (
	BlockedReasonOther                                             BlockedReason = "other"
	BlockedReasonCsp                                               BlockedReason = "csp"
	BlockedReasonMixedContent                                      BlockedReason = "mixed-content"
	BlockedReasonOrigin                                            BlockedReason = "origin"
	BlockedReasonInspector                                         BlockedReason = "inspector"
	BlockedReasonSubresourceFilter                                 BlockedReason = "subresource-filter"
	BlockedReasonContentType                                       BlockedReason = "content-type"
	BlockedReasonCoepFrameResourceNeedsCoepHeader                  BlockedReason = "coep-frame-resource-needs-coep-header"
	BlockedReasonCoopSandboxedIframeCannotNavigateToCoopPage       BlockedReason = "coop-sandboxed-iframe-cannot-navigate-to-coop-page"
	BlockedReasonCorpNotSameOrigin                                 BlockedReason = "corp-not-same-origin"
	BlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep BlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-coep"
	BlockedReasonCorpNotSameSite                                   BlockedReason = "corp-not-same-site"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( BlockedReason) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( BlockedReason) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *BlockedReason) ( *jlexer.Lexer) {
	 := .String()
	switch BlockedReason() {
	case BlockedReasonOther:
		* = BlockedReasonOther
	case BlockedReasonCsp:
		* = BlockedReasonCsp
	case BlockedReasonMixedContent:
		* = BlockedReasonMixedContent
	case BlockedReasonOrigin:
		* = BlockedReasonOrigin
	case BlockedReasonInspector:
		* = BlockedReasonInspector
	case BlockedReasonSubresourceFilter:
		* = BlockedReasonSubresourceFilter
	case BlockedReasonContentType:
		* = BlockedReasonContentType
	case BlockedReasonCoepFrameResourceNeedsCoepHeader:
		* = BlockedReasonCoepFrameResourceNeedsCoepHeader
	case BlockedReasonCoopSandboxedIframeCannotNavigateToCoopPage:
		* = BlockedReasonCoopSandboxedIframeCannotNavigateToCoopPage
	case BlockedReasonCorpNotSameOrigin:
		* = BlockedReasonCorpNotSameOrigin
	case BlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep:
		* = BlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep
	case BlockedReasonCorpNotSameSite:
		* = BlockedReasonCorpNotSameSite

	default:
		.AddError(fmt.Errorf("unknown BlockedReason value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *BlockedReason) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// CorsError the reason why request was blocked.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CorsError
type CorsError string

// String returns the CorsError as string value.
func ( CorsError) () string {
	return string()
}

// CorsError values.
const (
	CorsErrorDisallowedByMode                          CorsError = "DisallowedByMode"
	CorsErrorInvalidResponse                           CorsError = "InvalidResponse"
	CorsErrorWildcardOriginNotAllowed                  CorsError = "WildcardOriginNotAllowed"
	CorsErrorMissingAllowOriginHeader                  CorsError = "MissingAllowOriginHeader"
	CorsErrorMultipleAllowOriginValues                 CorsError = "MultipleAllowOriginValues"
	CorsErrorInvalidAllowOriginValue                   CorsError = "InvalidAllowOriginValue"
	CorsErrorAllowOriginMismatch                       CorsError = "AllowOriginMismatch"
	CorsErrorInvalidAllowCredentials                   CorsError = "InvalidAllowCredentials"
	CorsErrorCorsDisabledScheme                        CorsError = "CorsDisabledScheme"
	CorsErrorPreflightInvalidStatus                    CorsError = "PreflightInvalidStatus"
	CorsErrorPreflightDisallowedRedirect               CorsError = "PreflightDisallowedRedirect"
	CorsErrorPreflightWildcardOriginNotAllowed         CorsError = "PreflightWildcardOriginNotAllowed"
	CorsErrorPreflightMissingAllowOriginHeader         CorsError = "PreflightMissingAllowOriginHeader"
	CorsErrorPreflightMultipleAllowOriginValues        CorsError = "PreflightMultipleAllowOriginValues"
	CorsErrorPreflightInvalidAllowOriginValue          CorsError = "PreflightInvalidAllowOriginValue"
	CorsErrorPreflightAllowOriginMismatch              CorsError = "PreflightAllowOriginMismatch"
	CorsErrorPreflightInvalidAllowCredentials          CorsError = "PreflightInvalidAllowCredentials"
	CorsErrorPreflightMissingAllowExternal             CorsError = "PreflightMissingAllowExternal"
	CorsErrorPreflightInvalidAllowExternal             CorsError = "PreflightInvalidAllowExternal"
	CorsErrorPreflightMissingAllowPrivateNetwork       CorsError = "PreflightMissingAllowPrivateNetwork"
	CorsErrorPreflightInvalidAllowPrivateNetwork       CorsError = "PreflightInvalidAllowPrivateNetwork"
	CorsErrorInvalidAllowMethodsPreflightResponse      CorsError = "InvalidAllowMethodsPreflightResponse"
	CorsErrorInvalidAllowHeadersPreflightResponse      CorsError = "InvalidAllowHeadersPreflightResponse"
	CorsErrorMethodDisallowedByPreflightResponse       CorsError = "MethodDisallowedByPreflightResponse"
	CorsErrorHeaderDisallowedByPreflightResponse       CorsError = "HeaderDisallowedByPreflightResponse"
	CorsErrorRedirectContainsCredentials               CorsError = "RedirectContainsCredentials"
	CorsErrorInsecurePrivateNetwork                    CorsError = "InsecurePrivateNetwork"
	CorsErrorInvalidPrivateNetworkAccess               CorsError = "InvalidPrivateNetworkAccess"
	CorsErrorUnexpectedPrivateNetworkAccess            CorsError = "UnexpectedPrivateNetworkAccess"
	CorsErrorNoCorsRedirectModeNotFollow               CorsError = "NoCorsRedirectModeNotFollow"
	CorsErrorPreflightMissingPrivateNetworkAccessID    CorsError = "PreflightMissingPrivateNetworkAccessId"
	CorsErrorPreflightMissingPrivateNetworkAccessName  CorsError = "PreflightMissingPrivateNetworkAccessName"
	CorsErrorPrivateNetworkAccessPermissionUnavailable CorsError = "PrivateNetworkAccessPermissionUnavailable"
	CorsErrorPrivateNetworkAccessPermissionDenied      CorsError = "PrivateNetworkAccessPermissionDenied"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( CorsError) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( CorsError) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *CorsError) ( *jlexer.Lexer) {
	 := .String()
	switch CorsError() {
	case CorsErrorDisallowedByMode:
		* = CorsErrorDisallowedByMode
	case CorsErrorInvalidResponse:
		* = CorsErrorInvalidResponse
	case CorsErrorWildcardOriginNotAllowed:
		* = CorsErrorWildcardOriginNotAllowed
	case CorsErrorMissingAllowOriginHeader:
		* = CorsErrorMissingAllowOriginHeader
	case CorsErrorMultipleAllowOriginValues:
		* = CorsErrorMultipleAllowOriginValues
	case CorsErrorInvalidAllowOriginValue:
		* = CorsErrorInvalidAllowOriginValue
	case CorsErrorAllowOriginMismatch:
		* = CorsErrorAllowOriginMismatch
	case CorsErrorInvalidAllowCredentials:
		* = CorsErrorInvalidAllowCredentials
	case CorsErrorCorsDisabledScheme:
		* = CorsErrorCorsDisabledScheme
	case CorsErrorPreflightInvalidStatus:
		* = CorsErrorPreflightInvalidStatus
	case CorsErrorPreflightDisallowedRedirect:
		* = CorsErrorPreflightDisallowedRedirect
	case CorsErrorPreflightWildcardOriginNotAllowed:
		* = CorsErrorPreflightWildcardOriginNotAllowed
	case CorsErrorPreflightMissingAllowOriginHeader:
		* = CorsErrorPreflightMissingAllowOriginHeader
	case CorsErrorPreflightMultipleAllowOriginValues:
		* = CorsErrorPreflightMultipleAllowOriginValues
	case CorsErrorPreflightInvalidAllowOriginValue:
		* = CorsErrorPreflightInvalidAllowOriginValue
	case CorsErrorPreflightAllowOriginMismatch:
		* = CorsErrorPreflightAllowOriginMismatch
	case CorsErrorPreflightInvalidAllowCredentials:
		* = CorsErrorPreflightInvalidAllowCredentials
	case CorsErrorPreflightMissingAllowExternal:
		* = CorsErrorPreflightMissingAllowExternal
	case CorsErrorPreflightInvalidAllowExternal:
		* = CorsErrorPreflightInvalidAllowExternal
	case CorsErrorPreflightMissingAllowPrivateNetwork:
		* = CorsErrorPreflightMissingAllowPrivateNetwork
	case CorsErrorPreflightInvalidAllowPrivateNetwork:
		* = CorsErrorPreflightInvalidAllowPrivateNetwork
	case CorsErrorInvalidAllowMethodsPreflightResponse:
		* = CorsErrorInvalidAllowMethodsPreflightResponse
	case CorsErrorInvalidAllowHeadersPreflightResponse:
		* = CorsErrorInvalidAllowHeadersPreflightResponse
	case CorsErrorMethodDisallowedByPreflightResponse:
		* = CorsErrorMethodDisallowedByPreflightResponse
	case CorsErrorHeaderDisallowedByPreflightResponse:
		* = CorsErrorHeaderDisallowedByPreflightResponse
	case CorsErrorRedirectContainsCredentials:
		* = CorsErrorRedirectContainsCredentials
	case CorsErrorInsecurePrivateNetwork:
		* = CorsErrorInsecurePrivateNetwork
	case CorsErrorInvalidPrivateNetworkAccess:
		* = CorsErrorInvalidPrivateNetworkAccess
	case CorsErrorUnexpectedPrivateNetworkAccess:
		* = CorsErrorUnexpectedPrivateNetworkAccess
	case CorsErrorNoCorsRedirectModeNotFollow:
		* = CorsErrorNoCorsRedirectModeNotFollow
	case CorsErrorPreflightMissingPrivateNetworkAccessID:
		* = CorsErrorPreflightMissingPrivateNetworkAccessID
	case CorsErrorPreflightMissingPrivateNetworkAccessName:
		* = CorsErrorPreflightMissingPrivateNetworkAccessName
	case CorsErrorPrivateNetworkAccessPermissionUnavailable:
		* = CorsErrorPrivateNetworkAccessPermissionUnavailable
	case CorsErrorPrivateNetworkAccessPermissionDenied:
		* = CorsErrorPrivateNetworkAccessPermissionDenied

	default:
		.AddError(fmt.Errorf("unknown CorsError value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *CorsError) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// CorsErrorStatus [no description].
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CorsErrorStatus
type CorsErrorStatus struct {
	CorsError       CorsError `json:"corsError"`
	FailedParameter string    `json:"failedParameter"`
}

// ServiceWorkerResponseSource source of serviceworker response.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ServiceWorkerResponseSource
type ServiceWorkerResponseSource string

// String returns the ServiceWorkerResponseSource as string value.
func ( ServiceWorkerResponseSource) () string {
	return string()
}

// ServiceWorkerResponseSource values.
const (
	ServiceWorkerResponseSourceCacheStorage ServiceWorkerResponseSource = "cache-storage"
	ServiceWorkerResponseSourceHTTPCache    ServiceWorkerResponseSource = "http-cache"
	ServiceWorkerResponseSourceFallbackCode ServiceWorkerResponseSource = "fallback-code"
	ServiceWorkerResponseSourceNetwork      ServiceWorkerResponseSource = "network"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( ServiceWorkerResponseSource) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( ServiceWorkerResponseSource) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *ServiceWorkerResponseSource) ( *jlexer.Lexer) {
	 := .String()
	switch ServiceWorkerResponseSource() {
	case ServiceWorkerResponseSourceCacheStorage:
		* = ServiceWorkerResponseSourceCacheStorage
	case ServiceWorkerResponseSourceHTTPCache:
		* = ServiceWorkerResponseSourceHTTPCache
	case ServiceWorkerResponseSourceFallbackCode:
		* = ServiceWorkerResponseSourceFallbackCode
	case ServiceWorkerResponseSourceNetwork:
		* = ServiceWorkerResponseSourceNetwork

	default:
		.AddError(fmt.Errorf("unknown ServiceWorkerResponseSource value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *ServiceWorkerResponseSource) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// TrustTokenParams determines what type of Trust Token operation is executed
// and depending on the type, some additional parameters. The values are
// specified in third_party/blink/renderer/core/fetch/trust_token.idl.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-TrustTokenParams
type TrustTokenParams struct {
	Operation     TrustTokenOperationType       `json:"operation"`
	RefreshPolicy TrustTokenParamsRefreshPolicy `json:"refreshPolicy"`     // Only set for "token-redemption" operation and determine whether to request a fresh SRR or use a still valid cached SRR.
	Issuers       []string                      `json:"issuers,omitempty"` // Origins of issuers from whom to request tokens or redemption records.
}

// TrustTokenOperationType [no description].
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-TrustTokenOperationType
type TrustTokenOperationType string

// String returns the TrustTokenOperationType as string value.
func ( TrustTokenOperationType) () string {
	return string()
}

// TrustTokenOperationType values.
const (
	TrustTokenOperationTypeIssuance   TrustTokenOperationType = "Issuance"
	TrustTokenOperationTypeRedemption TrustTokenOperationType = "Redemption"
	TrustTokenOperationTypeSigning    TrustTokenOperationType = "Signing"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( TrustTokenOperationType) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( TrustTokenOperationType) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *TrustTokenOperationType) ( *jlexer.Lexer) {
	 := .String()
	switch TrustTokenOperationType() {
	case TrustTokenOperationTypeIssuance:
		* = TrustTokenOperationTypeIssuance
	case TrustTokenOperationTypeRedemption:
		* = TrustTokenOperationTypeRedemption
	case TrustTokenOperationTypeSigning:
		* = TrustTokenOperationTypeSigning

	default:
		.AddError(fmt.Errorf("unknown TrustTokenOperationType value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *TrustTokenOperationType) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// AlternateProtocolUsage the reason why Chrome uses a specific transport
// protocol for HTTP semantics.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-AlternateProtocolUsage
type AlternateProtocolUsage string

// String returns the AlternateProtocolUsage as string value.
func ( AlternateProtocolUsage) () string {
	return string()
}

// AlternateProtocolUsage values.
const (
	AlternateProtocolUsageAlternativeJobWonWithoutRace AlternateProtocolUsage = "alternativeJobWonWithoutRace"
	AlternateProtocolUsageAlternativeJobWonRace        AlternateProtocolUsage = "alternativeJobWonRace"
	AlternateProtocolUsageMainJobWonRace               AlternateProtocolUsage = "mainJobWonRace"
	AlternateProtocolUsageMappingMissing               AlternateProtocolUsage = "mappingMissing"
	AlternateProtocolUsageBroken                       AlternateProtocolUsage = "broken"
	AlternateProtocolUsageDNSAlpnH3jobWonWithoutRace   AlternateProtocolUsage = "dnsAlpnH3JobWonWithoutRace"
	AlternateProtocolUsageDNSAlpnH3jobWonRace          AlternateProtocolUsage = "dnsAlpnH3JobWonRace"
	AlternateProtocolUsageUnspecifiedReason            AlternateProtocolUsage = "unspecifiedReason"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( AlternateProtocolUsage) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( AlternateProtocolUsage) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *AlternateProtocolUsage) ( *jlexer.Lexer) {
	 := .String()
	switch AlternateProtocolUsage() {
	case AlternateProtocolUsageAlternativeJobWonWithoutRace:
		* = AlternateProtocolUsageAlternativeJobWonWithoutRace
	case AlternateProtocolUsageAlternativeJobWonRace:
		* = AlternateProtocolUsageAlternativeJobWonRace
	case AlternateProtocolUsageMainJobWonRace:
		* = AlternateProtocolUsageMainJobWonRace
	case AlternateProtocolUsageMappingMissing:
		* = AlternateProtocolUsageMappingMissing
	case AlternateProtocolUsageBroken:
		* = AlternateProtocolUsageBroken
	case AlternateProtocolUsageDNSAlpnH3jobWonWithoutRace:
		* = AlternateProtocolUsageDNSAlpnH3jobWonWithoutRace
	case AlternateProtocolUsageDNSAlpnH3jobWonRace:
		* = AlternateProtocolUsageDNSAlpnH3jobWonRace
	case AlternateProtocolUsageUnspecifiedReason:
		* = AlternateProtocolUsageUnspecifiedReason

	default:
		.AddError(fmt.Errorf("unknown AlternateProtocolUsage value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *AlternateProtocolUsage) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// Response HTTP response data.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-Response
type Response struct {
	URL                         string                      `json:"url"`                                   // Response URL. This URL can be different from CachedResource.url in case of redirect.
	Status                      int64                       `json:"status"`                                // HTTP response status code.
	StatusText                  string                      `json:"statusText"`                            // HTTP response status text.
	Headers                     Headers                     `json:"headers"`                               // HTTP response headers.
	MimeType                    string                      `json:"mimeType"`                              // Resource mimeType as determined by the browser.
	RequestHeaders              Headers                     `json:"requestHeaders,omitempty"`              // Refined HTTP request headers that were actually transmitted over the network.
	ConnectionReused            bool                        `json:"connectionReused"`                      // Specifies whether physical connection was actually reused for this request.
	ConnectionID                float64                     `json:"connectionId"`                          // Physical connection id that was actually used for this request.
	RemoteIPAddress             string                      `json:"remoteIPAddress,omitempty"`             // Remote IP address.
	RemotePort                  int64                       `json:"remotePort,omitempty"`                  // Remote port.
	FromDiskCache               bool                        `json:"fromDiskCache,omitempty"`               // Specifies that the request was served from the disk cache.
	FromServiceWorker           bool                        `json:"fromServiceWorker,omitempty"`           // Specifies that the request was served from the ServiceWorker.
	FromPrefetchCache           bool                        `json:"fromPrefetchCache,omitempty"`           // Specifies that the request was served from the prefetch cache.
	EncodedDataLength           float64                     `json:"encodedDataLength"`                     // Total number of bytes received for this request so far.
	Timing                      *ResourceTiming             `json:"timing,omitempty"`                      // Timing information for the given request.
	ServiceWorkerResponseSource ServiceWorkerResponseSource `json:"serviceWorkerResponseSource,omitempty"` // Response source of response from ServiceWorker.
	ResponseTime                *cdp.TimeSinceEpochMilli    `json:"responseTime,omitempty"`                // The time at which the returned response was generated.
	CacheStorageCacheName       string                      `json:"cacheStorageCacheName,omitempty"`       // Cache Storage Cache Name.
	Protocol                    string                      `json:"protocol,omitempty"`                    // Protocol used to fetch this request.
	AlternateProtocolUsage      AlternateProtocolUsage      `json:"alternateProtocolUsage,omitempty"`      // The reason why Chrome uses a specific transport protocol for HTTP semantics.
	SecurityState               security.State              `json:"securityState"`                         // Security state of the request resource.
	SecurityDetails             *SecurityDetails            `json:"securityDetails,omitempty"`             // Security details for the request.
}

// WebSocketRequest webSocket request data.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-WebSocketRequest
type WebSocketRequest struct {
	Headers Headers `json:"headers"` // HTTP request headers.
}

// WebSocketResponse webSocket response data.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-WebSocketResponse
type WebSocketResponse struct {
	Status             int64   `json:"status"`                       // HTTP response status code.
	StatusText         string  `json:"statusText"`                   // HTTP response status text.
	Headers            Headers `json:"headers"`                      // HTTP response headers.
	HeadersText        string  `json:"headersText,omitempty"`        // HTTP response headers text.
	RequestHeaders     Headers `json:"requestHeaders,omitempty"`     // HTTP request headers.
	RequestHeadersText string  `json:"requestHeadersText,omitempty"` // HTTP request headers text.
}

// WebSocketFrame webSocket message data. This represents an entire WebSocket
// message, not just a fragmented frame as the name suggests.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-WebSocketFrame
type WebSocketFrame struct {
	Opcode      float64 `json:"opcode"`      // WebSocket message opcode.
	Mask        bool    `json:"mask"`        // WebSocket message mask.
	PayloadData string  `json:"payloadData"` // WebSocket message payload data. If the opcode is 1, this is a text message and payloadData is a UTF-8 string. If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data.
}

// CachedResource information about the cached resource.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CachedResource
type CachedResource struct {
	URL      string       `json:"url"`                // Resource URL. This is the url of the original network request.
	Type     ResourceType `json:"type"`               // Type of this resource.
	Response *Response    `json:"response,omitempty"` // Cached response data.
	BodySize float64      `json:"bodySize"`           // Cached response body size.
}

// Initiator information about the request initiator.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-Initiator
type Initiator struct {
	Type         InitiatorType       `json:"type"`                   // Type of this initiator.
	Stack        *runtime.StackTrace `json:"stack,omitempty"`        // Initiator JavaScript stack trace, set for Script only.
	URL          string              `json:"url,omitempty"`          // Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type.
	LineNumber   float64             `json:"lineNumber,omitempty"`   // Initiator line number, set for Parser type or for Script type (when script is importing module) (0-based).
	ColumnNumber float64             `json:"columnNumber,omitempty"` // Initiator column number, set for Parser type or for Script type (when script is importing module) (0-based).
	RequestID    RequestID           `json:"requestId,omitempty"`    // Set if another request triggered this request (e.g. preflight).
}

// Cookie cookie object.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-Cookie
type Cookie struct {
	Name               string             `json:"name"`                         // Cookie name.
	Value              string             `json:"value"`                        // Cookie value.
	Domain             string             `json:"domain"`                       // Cookie domain.
	Path               string             `json:"path"`                         // Cookie path.
	Expires            float64            `json:"expires"`                      // Cookie expiration date as the number of seconds since the UNIX epoch.
	Size               int64              `json:"size"`                         // Cookie size.
	HTTPOnly           bool               `json:"httpOnly"`                     // True if cookie is http-only.
	Secure             bool               `json:"secure"`                       // True if cookie is secure.
	Session            bool               `json:"session"`                      // True in case of session cookie.
	SameSite           CookieSameSite     `json:"sameSite,omitempty"`           // Cookie SameSite type.
	Priority           CookiePriority     `json:"priority"`                     // Cookie Priority
	SameParty          bool               `json:"sameParty"`                    // True if cookie is SameParty.
	SourceScheme       CookieSourceScheme `json:"sourceScheme"`                 // Cookie source scheme type.
	SourcePort         int64              `json:"sourcePort"`                   // Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
	PartitionKey       string             `json:"partitionKey,omitempty"`       // Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie.
	PartitionKeyOpaque bool               `json:"partitionKeyOpaque,omitempty"` // True if cookie partition key is opaque.
}

// SetCookieBlockedReason types of reasons why a cookie may not be stored
// from a response.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-SetCookieBlockedReason
type SetCookieBlockedReason string

// String returns the SetCookieBlockedReason as string value.
func ( SetCookieBlockedReason) () string {
	return string()
}

// SetCookieBlockedReason values.
const (
	SetCookieBlockedReasonSecureOnly                               SetCookieBlockedReason = "SecureOnly"
	SetCookieBlockedReasonSameSiteStrict                           SetCookieBlockedReason = "SameSiteStrict"
	SetCookieBlockedReasonSameSiteLax                              SetCookieBlockedReason = "SameSiteLax"
	SetCookieBlockedReasonSameSiteUnspecifiedTreatedAsLax          SetCookieBlockedReason = "SameSiteUnspecifiedTreatedAsLax"
	SetCookieBlockedReasonSameSiteNoneInsecure                     SetCookieBlockedReason = "SameSiteNoneInsecure"
	SetCookieBlockedReasonUserPreferences                          SetCookieBlockedReason = "UserPreferences"
	SetCookieBlockedReasonThirdPartyPhaseout                       SetCookieBlockedReason = "ThirdPartyPhaseout"
	SetCookieBlockedReasonThirdPartyBlockedInFirstPartySet         SetCookieBlockedReason = "ThirdPartyBlockedInFirstPartySet"
	SetCookieBlockedReasonSyntaxError                              SetCookieBlockedReason = "SyntaxError"
	SetCookieBlockedReasonSchemeNotSupported                       SetCookieBlockedReason = "SchemeNotSupported"
	SetCookieBlockedReasonOverwriteSecure                          SetCookieBlockedReason = "OverwriteSecure"
	SetCookieBlockedReasonInvalidDomain                            SetCookieBlockedReason = "InvalidDomain"
	SetCookieBlockedReasonInvalidPrefix                            SetCookieBlockedReason = "InvalidPrefix"
	SetCookieBlockedReasonUnknownError                             SetCookieBlockedReason = "UnknownError"
	SetCookieBlockedReasonSchemefulSameSiteStrict                  SetCookieBlockedReason = "SchemefulSameSiteStrict"
	SetCookieBlockedReasonSchemefulSameSiteLax                     SetCookieBlockedReason = "SchemefulSameSiteLax"
	SetCookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax SetCookieBlockedReason = "SchemefulSameSiteUnspecifiedTreatedAsLax"
	SetCookieBlockedReasonSamePartyFromCrossPartyContext           SetCookieBlockedReason = "SamePartyFromCrossPartyContext"
	SetCookieBlockedReasonSamePartyConflictsWithOtherAttributes    SetCookieBlockedReason = "SamePartyConflictsWithOtherAttributes"
	SetCookieBlockedReasonNameValuePairExceedsMaxSize              SetCookieBlockedReason = "NameValuePairExceedsMaxSize"
	SetCookieBlockedReasonDisallowedCharacter                      SetCookieBlockedReason = "DisallowedCharacter"
	SetCookieBlockedReasonNoCookieContent                          SetCookieBlockedReason = "NoCookieContent"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( SetCookieBlockedReason) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( SetCookieBlockedReason) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *SetCookieBlockedReason) ( *jlexer.Lexer) {
	 := .String()
	switch SetCookieBlockedReason() {
	case SetCookieBlockedReasonSecureOnly:
		* = SetCookieBlockedReasonSecureOnly
	case SetCookieBlockedReasonSameSiteStrict:
		* = SetCookieBlockedReasonSameSiteStrict
	case SetCookieBlockedReasonSameSiteLax:
		* = SetCookieBlockedReasonSameSiteLax
	case SetCookieBlockedReasonSameSiteUnspecifiedTreatedAsLax:
		* = SetCookieBlockedReasonSameSiteUnspecifiedTreatedAsLax
	case SetCookieBlockedReasonSameSiteNoneInsecure:
		* = SetCookieBlockedReasonSameSiteNoneInsecure
	case SetCookieBlockedReasonUserPreferences:
		* = SetCookieBlockedReasonUserPreferences
	case SetCookieBlockedReasonThirdPartyPhaseout:
		* = SetCookieBlockedReasonThirdPartyPhaseout
	case SetCookieBlockedReasonThirdPartyBlockedInFirstPartySet:
		* = SetCookieBlockedReasonThirdPartyBlockedInFirstPartySet
	case SetCookieBlockedReasonSyntaxError:
		* = SetCookieBlockedReasonSyntaxError
	case SetCookieBlockedReasonSchemeNotSupported:
		* = SetCookieBlockedReasonSchemeNotSupported
	case SetCookieBlockedReasonOverwriteSecure:
		* = SetCookieBlockedReasonOverwriteSecure
	case SetCookieBlockedReasonInvalidDomain:
		* = SetCookieBlockedReasonInvalidDomain
	case SetCookieBlockedReasonInvalidPrefix:
		* = SetCookieBlockedReasonInvalidPrefix
	case SetCookieBlockedReasonUnknownError:
		* = SetCookieBlockedReasonUnknownError
	case SetCookieBlockedReasonSchemefulSameSiteStrict:
		* = SetCookieBlockedReasonSchemefulSameSiteStrict
	case SetCookieBlockedReasonSchemefulSameSiteLax:
		* = SetCookieBlockedReasonSchemefulSameSiteLax
	case SetCookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax:
		* = SetCookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax
	case SetCookieBlockedReasonSamePartyFromCrossPartyContext:
		* = SetCookieBlockedReasonSamePartyFromCrossPartyContext
	case SetCookieBlockedReasonSamePartyConflictsWithOtherAttributes:
		* = SetCookieBlockedReasonSamePartyConflictsWithOtherAttributes
	case SetCookieBlockedReasonNameValuePairExceedsMaxSize:
		* = SetCookieBlockedReasonNameValuePairExceedsMaxSize
	case SetCookieBlockedReasonDisallowedCharacter:
		* = SetCookieBlockedReasonDisallowedCharacter
	case SetCookieBlockedReasonNoCookieContent:
		* = SetCookieBlockedReasonNoCookieContent

	default:
		.AddError(fmt.Errorf("unknown SetCookieBlockedReason value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *SetCookieBlockedReason) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// CookieBlockedReason types of reasons why a cookie may not be sent with a
// request.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CookieBlockedReason
type CookieBlockedReason string

// String returns the CookieBlockedReason as string value.
func ( CookieBlockedReason) () string {
	return string()
}

// CookieBlockedReason values.
const (
	CookieBlockedReasonSecureOnly                               CookieBlockedReason = "SecureOnly"
	CookieBlockedReasonNotOnPath                                CookieBlockedReason = "NotOnPath"
	CookieBlockedReasonDomainMismatch                           CookieBlockedReason = "DomainMismatch"
	CookieBlockedReasonSameSiteStrict                           CookieBlockedReason = "SameSiteStrict"
	CookieBlockedReasonSameSiteLax                              CookieBlockedReason = "SameSiteLax"
	CookieBlockedReasonSameSiteUnspecifiedTreatedAsLax          CookieBlockedReason = "SameSiteUnspecifiedTreatedAsLax"
	CookieBlockedReasonSameSiteNoneInsecure                     CookieBlockedReason = "SameSiteNoneInsecure"
	CookieBlockedReasonUserPreferences                          CookieBlockedReason = "UserPreferences"
	CookieBlockedReasonThirdPartyPhaseout                       CookieBlockedReason = "ThirdPartyPhaseout"
	CookieBlockedReasonThirdPartyBlockedInFirstPartySet         CookieBlockedReason = "ThirdPartyBlockedInFirstPartySet"
	CookieBlockedReasonUnknownError                             CookieBlockedReason = "UnknownError"
	CookieBlockedReasonSchemefulSameSiteStrict                  CookieBlockedReason = "SchemefulSameSiteStrict"
	CookieBlockedReasonSchemefulSameSiteLax                     CookieBlockedReason = "SchemefulSameSiteLax"
	CookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax CookieBlockedReason = "SchemefulSameSiteUnspecifiedTreatedAsLax"
	CookieBlockedReasonSamePartyFromCrossPartyContext           CookieBlockedReason = "SamePartyFromCrossPartyContext"
	CookieBlockedReasonNameValuePairExceedsMaxSize              CookieBlockedReason = "NameValuePairExceedsMaxSize"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( CookieBlockedReason) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( CookieBlockedReason) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *CookieBlockedReason) ( *jlexer.Lexer) {
	 := .String()
	switch CookieBlockedReason() {
	case CookieBlockedReasonSecureOnly:
		* = CookieBlockedReasonSecureOnly
	case CookieBlockedReasonNotOnPath:
		* = CookieBlockedReasonNotOnPath
	case CookieBlockedReasonDomainMismatch:
		* = CookieBlockedReasonDomainMismatch
	case CookieBlockedReasonSameSiteStrict:
		* = CookieBlockedReasonSameSiteStrict
	case CookieBlockedReasonSameSiteLax:
		* = CookieBlockedReasonSameSiteLax
	case CookieBlockedReasonSameSiteUnspecifiedTreatedAsLax:
		* = CookieBlockedReasonSameSiteUnspecifiedTreatedAsLax
	case CookieBlockedReasonSameSiteNoneInsecure:
		* = CookieBlockedReasonSameSiteNoneInsecure
	case CookieBlockedReasonUserPreferences:
		* = CookieBlockedReasonUserPreferences
	case CookieBlockedReasonThirdPartyPhaseout:
		* = CookieBlockedReasonThirdPartyPhaseout
	case CookieBlockedReasonThirdPartyBlockedInFirstPartySet:
		* = CookieBlockedReasonThirdPartyBlockedInFirstPartySet
	case CookieBlockedReasonUnknownError:
		* = CookieBlockedReasonUnknownError
	case CookieBlockedReasonSchemefulSameSiteStrict:
		* = CookieBlockedReasonSchemefulSameSiteStrict
	case CookieBlockedReasonSchemefulSameSiteLax:
		* = CookieBlockedReasonSchemefulSameSiteLax
	case CookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax:
		* = CookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax
	case CookieBlockedReasonSamePartyFromCrossPartyContext:
		* = CookieBlockedReasonSamePartyFromCrossPartyContext
	case CookieBlockedReasonNameValuePairExceedsMaxSize:
		* = CookieBlockedReasonNameValuePairExceedsMaxSize

	default:
		.AddError(fmt.Errorf("unknown CookieBlockedReason value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *CookieBlockedReason) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// BlockedSetCookieWithReason a cookie which was not stored from a response
// with the corresponding reason.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-BlockedSetCookieWithReason
type BlockedSetCookieWithReason struct {
	BlockedReasons []SetCookieBlockedReason `json:"blockedReasons"`   // The reason(s) this cookie was blocked.
	CookieLine     string                   `json:"cookieLine"`       // The string representing this individual cookie as it would appear in the header. This is not the entire "cookie" or "set-cookie" header which could have multiple cookies.
	Cookie         *Cookie                  `json:"cookie,omitempty"` // The cookie object which represents the cookie which was not stored. It is optional because sometimes complete cookie information is not available, such as in the case of parsing errors.
}

// BlockedCookieWithReason a cookie with was not sent with a request with the
// corresponding reason.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-BlockedCookieWithReason
type BlockedCookieWithReason struct {
	BlockedReasons []CookieBlockedReason `json:"blockedReasons"` // The reason(s) the cookie was blocked.
	Cookie         *Cookie               `json:"cookie"`         // The cookie object representing the cookie which was not sent.
}

// CookieParam cookie parameter object.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CookieParam
type CookieParam struct {
	Name         string              `json:"name"`                   // Cookie name.
	Value        string              `json:"value"`                  // Cookie value.
	URL          string              `json:"url,omitempty"`          // The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie.
	Domain       string              `json:"domain,omitempty"`       // Cookie domain.
	Path         string              `json:"path,omitempty"`         // Cookie path.
	Secure       bool                `json:"secure,omitempty"`       // True if cookie is secure.
	HTTPOnly     bool                `json:"httpOnly,omitempty"`     // True if cookie is http-only.
	SameSite     CookieSameSite      `json:"sameSite,omitempty"`     // Cookie SameSite type.
	Expires      *cdp.TimeSinceEpoch `json:"expires,omitempty"`      // Cookie expiration date, session cookie if not set
	Priority     CookiePriority      `json:"priority,omitempty"`     // Cookie Priority.
	SameParty    bool                `json:"sameParty,omitempty"`    // True if cookie is SameParty.
	SourceScheme CookieSourceScheme  `json:"sourceScheme,omitempty"` // Cookie source scheme type.
	SourcePort   int64               `json:"sourcePort,omitempty"`   // Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
	PartitionKey string              `json:"partitionKey,omitempty"` // Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie. If not set, the cookie will be set as not partitioned.
}

// AuthChallenge authorization challenge for HTTP status code 401 or 407.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-AuthChallenge
type AuthChallenge struct {
	Source AuthChallengeSource `json:"source,omitempty"` // Source of the authentication challenge.
	Origin string              `json:"origin"`           // Origin of the challenger.
	Scheme string              `json:"scheme"`           // The authentication scheme used, such as basic or digest
	Realm  string              `json:"realm"`            // The realm of the challenge. May be empty.
}

// AuthChallengeResponse response to an AuthChallenge.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-AuthChallengeResponse
type AuthChallengeResponse struct {
	Response AuthChallengeResponseResponse `json:"response"`           // The decision on what to do in response to the authorization challenge.  Default means deferring to the default behavior of the net stack, which will likely either the Cancel authentication or display a popup dialog box.
	Username string                        `json:"username,omitempty"` // The username to provide, possibly empty. Should only be set if response is ProvideCredentials.
	Password string                        `json:"password,omitempty"` // The password to provide, possibly empty. Should only be set if response is ProvideCredentials.
}

// InterceptionStage stages of the interception to begin intercepting.
// Request will intercept before the request is sent. Response will intercept
// after the response is received.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-InterceptionStage
type InterceptionStage string

// String returns the InterceptionStage as string value.
func ( InterceptionStage) () string {
	return string()
}

// InterceptionStage values.
const (
	InterceptionStageRequest         InterceptionStage = "Request"
	InterceptionStageHeadersReceived InterceptionStage = "HeadersReceived"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( InterceptionStage) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( InterceptionStage) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *InterceptionStage) ( *jlexer.Lexer) {
	 := .String()
	switch InterceptionStage() {
	case InterceptionStageRequest:
		* = InterceptionStageRequest
	case InterceptionStageHeadersReceived:
		* = InterceptionStageHeadersReceived

	default:
		.AddError(fmt.Errorf("unknown InterceptionStage value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *InterceptionStage) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// RequestPattern request pattern for interception.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-RequestPattern
type RequestPattern struct {
	URLPattern        string            `json:"urlPattern,omitempty"`        // Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is backslash. Omitting is equivalent to "*".
	ResourceType      ResourceType      `json:"resourceType,omitempty"`      // If set, only requests for matching resource types will be intercepted.
	InterceptionStage InterceptionStage `json:"interceptionStage,omitempty"` // Stage at which to begin intercepting requests. Default is Request.
}

// SignedExchangeSignature information about a signed exchange signature.
// https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-SignedExchangeSignature
type SignedExchangeSignature struct {
	Label        string   `json:"label"`                  // Signed exchange signature label.
	Signature    string   `json:"signature"`              // The hex string of signed exchange signature.
	Integrity    string   `json:"integrity"`              // Signed exchange signature integrity.
	CertURL      string   `json:"certUrl,omitempty"`      // Signed exchange signature cert Url.
	CertSha256   string   `json:"certSha256,omitempty"`   // The hex string of signed exchange signature cert sha256.
	ValidityURL  string   `json:"validityUrl"`            // Signed exchange signature validity Url.
	Date         int64    `json:"date"`                   // Signed exchange signature date.
	Expires      int64    `json:"expires"`                // Signed exchange signature expires.
	Certificates []string `json:"certificates,omitempty"` // The encoded certificates.
}

// SignedExchangeHeader information about a signed exchange header.
// https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-SignedExchangeHeader
type SignedExchangeHeader struct {
	RequestURL      string                     `json:"requestUrl"`      // Signed exchange request URL.
	ResponseCode    int64                      `json:"responseCode"`    // Signed exchange response code.
	ResponseHeaders Headers                    `json:"responseHeaders"` // Signed exchange response headers.
	Signatures      []*SignedExchangeSignature `json:"signatures"`      // Signed exchange response signature.
	HeaderIntegrity string                     `json:"headerIntegrity"` // Signed exchange header integrity hash in the form of sha256-<base64-hash-value>.
}

// SignedExchangeErrorField field type for a signed exchange related error.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-SignedExchangeErrorField
type SignedExchangeErrorField string

// String returns the SignedExchangeErrorField as string value.
func ( SignedExchangeErrorField) () string {
	return string()
}

// SignedExchangeErrorField values.
const (
	SignedExchangeErrorFieldSignatureSig         SignedExchangeErrorField = "signatureSig"
	SignedExchangeErrorFieldSignatureIntegrity   SignedExchangeErrorField = "signatureIntegrity"
	SignedExchangeErrorFieldSignatureCertURL     SignedExchangeErrorField = "signatureCertUrl"
	SignedExchangeErrorFieldSignatureCertSha256  SignedExchangeErrorField = "signatureCertSha256"
	SignedExchangeErrorFieldSignatureValidityURL SignedExchangeErrorField = "signatureValidityUrl"
	SignedExchangeErrorFieldSignatureTimestamps  SignedExchangeErrorField = "signatureTimestamps"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( SignedExchangeErrorField) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( SignedExchangeErrorField) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *SignedExchangeErrorField) ( *jlexer.Lexer) {
	 := .String()
	switch SignedExchangeErrorField() {
	case SignedExchangeErrorFieldSignatureSig:
		* = SignedExchangeErrorFieldSignatureSig
	case SignedExchangeErrorFieldSignatureIntegrity:
		* = SignedExchangeErrorFieldSignatureIntegrity
	case SignedExchangeErrorFieldSignatureCertURL:
		* = SignedExchangeErrorFieldSignatureCertURL
	case SignedExchangeErrorFieldSignatureCertSha256:
		* = SignedExchangeErrorFieldSignatureCertSha256
	case SignedExchangeErrorFieldSignatureValidityURL:
		* = SignedExchangeErrorFieldSignatureValidityURL
	case SignedExchangeErrorFieldSignatureTimestamps:
		* = SignedExchangeErrorFieldSignatureTimestamps

	default:
		.AddError(fmt.Errorf("unknown SignedExchangeErrorField value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *SignedExchangeErrorField) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// SignedExchangeError information about a signed exchange response.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-SignedExchangeError
type SignedExchangeError struct {
	Message        string                   `json:"message"`                  // Error message.
	SignatureIndex int64                    `json:"signatureIndex,omitempty"` // The index of the signature which caused the error.
	ErrorField     SignedExchangeErrorField `json:"errorField,omitempty"`     // The field which caused the error.
}

// SignedExchangeInfo information about a signed exchange response.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-SignedExchangeInfo
type SignedExchangeInfo struct {
	OuterResponse   *Response              `json:"outerResponse"`             // The outer response of signed HTTP exchange which was received from network.
	Header          *SignedExchangeHeader  `json:"header,omitempty"`          // Information about the signed exchange header.
	SecurityDetails *SecurityDetails       `json:"securityDetails,omitempty"` // Security details for the signed exchange header.
	Errors          []*SignedExchangeError `json:"errors,omitempty"`          // Errors occurred while handling the signed exchagne.
}

// ContentEncoding list of content encodings supported by the backend.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ContentEncoding
type ContentEncoding string

// String returns the ContentEncoding as string value.
func ( ContentEncoding) () string {
	return string()
}

// ContentEncoding values.
const (
	ContentEncodingDeflate ContentEncoding = "deflate"
	ContentEncodingGzip    ContentEncoding = "gzip"
	ContentEncodingBr      ContentEncoding = "br"
	ContentEncodingZstd    ContentEncoding = "zstd"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( ContentEncoding) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( ContentEncoding) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *ContentEncoding) ( *jlexer.Lexer) {
	 := .String()
	switch ContentEncoding() {
	case ContentEncodingDeflate:
		* = ContentEncodingDeflate
	case ContentEncodingGzip:
		* = ContentEncodingGzip
	case ContentEncodingBr:
		* = ContentEncodingBr
	case ContentEncodingZstd:
		* = ContentEncodingZstd

	default:
		.AddError(fmt.Errorf("unknown ContentEncoding value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *ContentEncoding) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// PrivateNetworkRequestPolicy [no description].
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-PrivateNetworkRequestPolicy
type PrivateNetworkRequestPolicy string

// String returns the PrivateNetworkRequestPolicy as string value.
func ( PrivateNetworkRequestPolicy) () string {
	return string()
}

// PrivateNetworkRequestPolicy values.
const (
	PrivateNetworkRequestPolicyAllow                          PrivateNetworkRequestPolicy = "Allow"
	PrivateNetworkRequestPolicyBlockFromInsecureToMorePrivate PrivateNetworkRequestPolicy = "BlockFromInsecureToMorePrivate"
	PrivateNetworkRequestPolicyWarnFromInsecureToMorePrivate  PrivateNetworkRequestPolicy = "WarnFromInsecureToMorePrivate"
	PrivateNetworkRequestPolicyPreflightBlock                 PrivateNetworkRequestPolicy = "PreflightBlock"
	PrivateNetworkRequestPolicyPreflightWarn                  PrivateNetworkRequestPolicy = "PreflightWarn"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( PrivateNetworkRequestPolicy) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( PrivateNetworkRequestPolicy) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *PrivateNetworkRequestPolicy) ( *jlexer.Lexer) {
	 := .String()
	switch PrivateNetworkRequestPolicy() {
	case PrivateNetworkRequestPolicyAllow:
		* = PrivateNetworkRequestPolicyAllow
	case PrivateNetworkRequestPolicyBlockFromInsecureToMorePrivate:
		* = PrivateNetworkRequestPolicyBlockFromInsecureToMorePrivate
	case PrivateNetworkRequestPolicyWarnFromInsecureToMorePrivate:
		* = PrivateNetworkRequestPolicyWarnFromInsecureToMorePrivate
	case PrivateNetworkRequestPolicyPreflightBlock:
		* = PrivateNetworkRequestPolicyPreflightBlock
	case PrivateNetworkRequestPolicyPreflightWarn:
		* = PrivateNetworkRequestPolicyPreflightWarn

	default:
		.AddError(fmt.Errorf("unknown PrivateNetworkRequestPolicy value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *PrivateNetworkRequestPolicy) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// IPAddressSpace [no description].
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-IPAddressSpace
type IPAddressSpace string

// String returns the IPAddressSpace as string value.
func ( IPAddressSpace) () string {
	return string()
}

// IPAddressSpace values.
const (
	IPAddressSpaceLocal   IPAddressSpace = "Local"
	IPAddressSpacePrivate IPAddressSpace = "Private"
	IPAddressSpacePublic  IPAddressSpace = "Public"
	IPAddressSpaceUnknown IPAddressSpace = "Unknown"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( IPAddressSpace) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( IPAddressSpace) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *IPAddressSpace) ( *jlexer.Lexer) {
	 := .String()
	switch IPAddressSpace() {
	case IPAddressSpaceLocal:
		* = IPAddressSpaceLocal
	case IPAddressSpacePrivate:
		* = IPAddressSpacePrivate
	case IPAddressSpacePublic:
		* = IPAddressSpacePublic
	case IPAddressSpaceUnknown:
		* = IPAddressSpaceUnknown

	default:
		.AddError(fmt.Errorf("unknown IPAddressSpace value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *IPAddressSpace) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// ConnectTiming [no description].
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ConnectTiming
type ConnectTiming struct {
	RequestTime float64 `json:"requestTime"` // Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime. Matches ResourceTiming's requestTime for the same request (but not for redirected requests).
}

// ClientSecurityState [no description].
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ClientSecurityState
type ClientSecurityState struct {
	InitiatorIsSecureContext    bool                        `json:"initiatorIsSecureContext"`
	InitiatorIPAddressSpace     IPAddressSpace              `json:"initiatorIPAddressSpace"`
	PrivateNetworkRequestPolicy PrivateNetworkRequestPolicy `json:"privateNetworkRequestPolicy"`
}

// CrossOriginOpenerPolicyValue [no description].
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CrossOriginOpenerPolicyValue
type CrossOriginOpenerPolicyValue string

// String returns the CrossOriginOpenerPolicyValue as string value.
func ( CrossOriginOpenerPolicyValue) () string {
	return string()
}

// CrossOriginOpenerPolicyValue values.
const (
	CrossOriginOpenerPolicyValueSameOrigin                 CrossOriginOpenerPolicyValue = "SameOrigin"
	CrossOriginOpenerPolicyValueSameOriginAllowPopups      CrossOriginOpenerPolicyValue = "SameOriginAllowPopups"
	CrossOriginOpenerPolicyValueRestrictProperties         CrossOriginOpenerPolicyValue = "RestrictProperties"
	CrossOriginOpenerPolicyValueUnsafeNone                 CrossOriginOpenerPolicyValue = "UnsafeNone"
	CrossOriginOpenerPolicyValueSameOriginPlusCoep         CrossOriginOpenerPolicyValue = "SameOriginPlusCoep"
	CrossOriginOpenerPolicyValueRestrictPropertiesPlusCoep CrossOriginOpenerPolicyValue = "RestrictPropertiesPlusCoep"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( CrossOriginOpenerPolicyValue) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( CrossOriginOpenerPolicyValue) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *CrossOriginOpenerPolicyValue) ( *jlexer.Lexer) {
	 := .String()
	switch CrossOriginOpenerPolicyValue() {
	case CrossOriginOpenerPolicyValueSameOrigin:
		* = CrossOriginOpenerPolicyValueSameOrigin
	case CrossOriginOpenerPolicyValueSameOriginAllowPopups:
		* = CrossOriginOpenerPolicyValueSameOriginAllowPopups
	case CrossOriginOpenerPolicyValueRestrictProperties:
		* = CrossOriginOpenerPolicyValueRestrictProperties
	case CrossOriginOpenerPolicyValueUnsafeNone:
		* = CrossOriginOpenerPolicyValueUnsafeNone
	case CrossOriginOpenerPolicyValueSameOriginPlusCoep:
		* = CrossOriginOpenerPolicyValueSameOriginPlusCoep
	case CrossOriginOpenerPolicyValueRestrictPropertiesPlusCoep:
		* = CrossOriginOpenerPolicyValueRestrictPropertiesPlusCoep

	default:
		.AddError(fmt.Errorf("unknown CrossOriginOpenerPolicyValue value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *CrossOriginOpenerPolicyValue) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// CrossOriginOpenerPolicyStatus [no description].
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CrossOriginOpenerPolicyStatus
type CrossOriginOpenerPolicyStatus struct {
	Value                       CrossOriginOpenerPolicyValue `json:"value"`
	ReportOnlyValue             CrossOriginOpenerPolicyValue `json:"reportOnlyValue"`
	ReportingEndpoint           string                       `json:"reportingEndpoint,omitempty"`
	ReportOnlyReportingEndpoint string                       `json:"reportOnlyReportingEndpoint,omitempty"`
}

// CrossOriginEmbedderPolicyValue [no description].
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CrossOriginEmbedderPolicyValue
type CrossOriginEmbedderPolicyValue string

// String returns the CrossOriginEmbedderPolicyValue as string value.
func ( CrossOriginEmbedderPolicyValue) () string {
	return string()
}

// CrossOriginEmbedderPolicyValue values.
const (
	CrossOriginEmbedderPolicyValueNone           CrossOriginEmbedderPolicyValue = "None"
	CrossOriginEmbedderPolicyValueCredentialless CrossOriginEmbedderPolicyValue = "Credentialless"
	CrossOriginEmbedderPolicyValueRequireCorp    CrossOriginEmbedderPolicyValue = "RequireCorp"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( CrossOriginEmbedderPolicyValue) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( CrossOriginEmbedderPolicyValue) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *CrossOriginEmbedderPolicyValue) ( *jlexer.Lexer) {
	 := .String()
	switch CrossOriginEmbedderPolicyValue() {
	case CrossOriginEmbedderPolicyValueNone:
		* = CrossOriginEmbedderPolicyValueNone
	case CrossOriginEmbedderPolicyValueCredentialless:
		* = CrossOriginEmbedderPolicyValueCredentialless
	case CrossOriginEmbedderPolicyValueRequireCorp:
		* = CrossOriginEmbedderPolicyValueRequireCorp

	default:
		.AddError(fmt.Errorf("unknown CrossOriginEmbedderPolicyValue value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *CrossOriginEmbedderPolicyValue) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// CrossOriginEmbedderPolicyStatus [no description].
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CrossOriginEmbedderPolicyStatus
type CrossOriginEmbedderPolicyStatus struct {
	Value                       CrossOriginEmbedderPolicyValue `json:"value"`
	ReportOnlyValue             CrossOriginEmbedderPolicyValue `json:"reportOnlyValue"`
	ReportingEndpoint           string                         `json:"reportingEndpoint,omitempty"`
	ReportOnlyReportingEndpoint string                         `json:"reportOnlyReportingEndpoint,omitempty"`
}

// ContentSecurityPolicySource [no description].
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ContentSecurityPolicySource
type ContentSecurityPolicySource string

// String returns the ContentSecurityPolicySource as string value.
func ( ContentSecurityPolicySource) () string {
	return string()
}

// ContentSecurityPolicySource values.
const (
	ContentSecurityPolicySourceHTTP ContentSecurityPolicySource = "HTTP"
	ContentSecurityPolicySourceMeta ContentSecurityPolicySource = "Meta"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( ContentSecurityPolicySource) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( ContentSecurityPolicySource) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *ContentSecurityPolicySource) ( *jlexer.Lexer) {
	 := .String()
	switch ContentSecurityPolicySource() {
	case ContentSecurityPolicySourceHTTP:
		* = ContentSecurityPolicySourceHTTP
	case ContentSecurityPolicySourceMeta:
		* = ContentSecurityPolicySourceMeta

	default:
		.AddError(fmt.Errorf("unknown ContentSecurityPolicySource value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *ContentSecurityPolicySource) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// ContentSecurityPolicyStatus [no description].
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ContentSecurityPolicyStatus
type ContentSecurityPolicyStatus struct {
	EffectiveDirectives string                      `json:"effectiveDirectives"`
	IsEnforced          bool                        `json:"isEnforced"`
	Source              ContentSecurityPolicySource `json:"source"`
}

// SecurityIsolationStatus [no description].
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-SecurityIsolationStatus
type SecurityIsolationStatus struct {
	Coop *CrossOriginOpenerPolicyStatus   `json:"coop,omitempty"`
	Coep *CrossOriginEmbedderPolicyStatus `json:"coep,omitempty"`
	Csp  []*ContentSecurityPolicyStatus   `json:"csp,omitempty"`
}

// ReportStatus the status of a Reporting API report.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ReportStatus
type ReportStatus string

// String returns the ReportStatus as string value.
func ( ReportStatus) () string {
	return string()
}

// ReportStatus values.
const (
	ReportStatusQueued           ReportStatus = "Queued"
	ReportStatusPending          ReportStatus = "Pending"
	ReportStatusMarkedForRemoval ReportStatus = "MarkedForRemoval"
	ReportStatusSuccess          ReportStatus = "Success"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( ReportStatus) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( ReportStatus) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *ReportStatus) ( *jlexer.Lexer) {
	 := .String()
	switch ReportStatus() {
	case ReportStatusQueued:
		* = ReportStatusQueued
	case ReportStatusPending:
		* = ReportStatusPending
	case ReportStatusMarkedForRemoval:
		* = ReportStatusMarkedForRemoval
	case ReportStatusSuccess:
		* = ReportStatusSuccess

	default:
		.AddError(fmt.Errorf("unknown ReportStatus value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *ReportStatus) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// ReportID [no description].
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ReportId
type ReportID string

// String returns the ReportID as string value.
func ( ReportID) () string {
	return string()
}

// ReportingAPIReport an object representing a report generated by the
// Reporting API.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ReportingApiReport
type ReportingAPIReport struct {
	ID                ReportID            `json:"id"`
	InitiatorURL      string              `json:"initiatorUrl"`      // The URL of the document that triggered the report.
	Destination       string              `json:"destination"`       // The name of the endpoint group that should be used to deliver the report.
	Type              string              `json:"type"`              // The type of the report (specifies the set of data that is contained in the report body).
	Timestamp         *cdp.TimeSinceEpoch `json:"timestamp"`         // When the report was generated.
	Depth             int64               `json:"depth"`             // How many uploads deep the related request was.
	CompletedAttempts int64               `json:"completedAttempts"` // The number of delivery attempts made so far, not including an active attempt.
	Body              easyjson.RawMessage `json:"body"`
	Status            ReportStatus        `json:"status"`
}

// ReportingAPIEndpoint [no description].
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ReportingApiEndpoint
type ReportingAPIEndpoint struct {
	URL       string `json:"url"`       // The URL of the endpoint to which reports may be delivered.
	GroupName string `json:"groupName"` // Name of the endpoint group.
}

// LoadNetworkResourcePageResult an object providing the result of a network
// resource load.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-LoadNetworkResourcePageResult
type LoadNetworkResourcePageResult struct {
	Success        bool            `json:"success"`
	NetError       float64         `json:"netError,omitempty"` // Optional values used for error reporting.
	NetErrorName   string          `json:"netErrorName,omitempty"`
	HTTPStatusCode float64         `json:"httpStatusCode,omitempty"`
	Stream         io.StreamHandle `json:"stream,omitempty"`  // If successful, one of the following two fields holds the result.
	Headers        Headers         `json:"headers,omitempty"` // Response headers.
}

// LoadNetworkResourceOptions an options object that may be extended later to
// better support CORS, CORB and streaming.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-LoadNetworkResourceOptions
type LoadNetworkResourceOptions struct {
	DisableCache       bool `json:"disableCache"`
	IncludeCredentials bool `json:"includeCredentials"`
}

// ReferrerPolicy the referrer policy of the request, as defined in
// https://www.w3.org/TR/referrer-policy/.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-Request
type ReferrerPolicy string

// String returns the ReferrerPolicy as string value.
func ( ReferrerPolicy) () string {
	return string()
}

// ReferrerPolicy values.
const (
	ReferrerPolicyUnsafeURL                   ReferrerPolicy = "unsafe-url"
	ReferrerPolicyNoReferrerWhenDowngrade     ReferrerPolicy = "no-referrer-when-downgrade"
	ReferrerPolicyNoReferrer                  ReferrerPolicy = "no-referrer"
	ReferrerPolicyOrigin                      ReferrerPolicy = "origin"
	ReferrerPolicyOriginWhenCrossOrigin       ReferrerPolicy = "origin-when-cross-origin"
	ReferrerPolicySameOrigin                  ReferrerPolicy = "same-origin"
	ReferrerPolicyStrictOrigin                ReferrerPolicy = "strict-origin"
	ReferrerPolicyStrictOriginWhenCrossOrigin ReferrerPolicy = "strict-origin-when-cross-origin"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( ReferrerPolicy) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( ReferrerPolicy) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *ReferrerPolicy) ( *jlexer.Lexer) {
	 := .String()
	switch ReferrerPolicy() {
	case ReferrerPolicyUnsafeURL:
		* = ReferrerPolicyUnsafeURL
	case ReferrerPolicyNoReferrerWhenDowngrade:
		* = ReferrerPolicyNoReferrerWhenDowngrade
	case ReferrerPolicyNoReferrer:
		* = ReferrerPolicyNoReferrer
	case ReferrerPolicyOrigin:
		* = ReferrerPolicyOrigin
	case ReferrerPolicyOriginWhenCrossOrigin:
		* = ReferrerPolicyOriginWhenCrossOrigin
	case ReferrerPolicySameOrigin:
		* = ReferrerPolicySameOrigin
	case ReferrerPolicyStrictOrigin:
		* = ReferrerPolicyStrictOrigin
	case ReferrerPolicyStrictOriginWhenCrossOrigin:
		* = ReferrerPolicyStrictOriginWhenCrossOrigin

	default:
		.AddError(fmt.Errorf("unknown ReferrerPolicy value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *ReferrerPolicy) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// TrustTokenParamsRefreshPolicy only set for "token-redemption" operation
// and determine whether to request a fresh SRR or use a still valid cached SRR.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-TrustTokenParams
type TrustTokenParamsRefreshPolicy string

// String returns the TrustTokenParamsRefreshPolicy as string value.
func ( TrustTokenParamsRefreshPolicy) () string {
	return string()
}

// TrustTokenParamsRefreshPolicy values.
const (
	TrustTokenParamsRefreshPolicyUseCached TrustTokenParamsRefreshPolicy = "UseCached"
	TrustTokenParamsRefreshPolicyRefresh   TrustTokenParamsRefreshPolicy = "Refresh"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( TrustTokenParamsRefreshPolicy) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( TrustTokenParamsRefreshPolicy) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *TrustTokenParamsRefreshPolicy) ( *jlexer.Lexer) {
	 := .String()
	switch TrustTokenParamsRefreshPolicy() {
	case TrustTokenParamsRefreshPolicyUseCached:
		* = TrustTokenParamsRefreshPolicyUseCached
	case TrustTokenParamsRefreshPolicyRefresh:
		* = TrustTokenParamsRefreshPolicyRefresh

	default:
		.AddError(fmt.Errorf("unknown TrustTokenParamsRefreshPolicy value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *TrustTokenParamsRefreshPolicy) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// InitiatorType type of this initiator.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-Initiator
type InitiatorType string

// String returns the InitiatorType as string value.
func ( InitiatorType) () string {
	return string()
}

// InitiatorType values.
const (
	InitiatorTypeParser         InitiatorType = "parser"
	InitiatorTypeScript         InitiatorType = "script"
	InitiatorTypePreload        InitiatorType = "preload"
	InitiatorTypeSignedExchange InitiatorType = "SignedExchange"
	InitiatorTypePreflight      InitiatorType = "preflight"
	InitiatorTypeOther          InitiatorType = "other"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( InitiatorType) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( InitiatorType) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *InitiatorType) ( *jlexer.Lexer) {
	 := .String()
	switch InitiatorType() {
	case InitiatorTypeParser:
		* = InitiatorTypeParser
	case InitiatorTypeScript:
		* = InitiatorTypeScript
	case InitiatorTypePreload:
		* = InitiatorTypePreload
	case InitiatorTypeSignedExchange:
		* = InitiatorTypeSignedExchange
	case InitiatorTypePreflight:
		* = InitiatorTypePreflight
	case InitiatorTypeOther:
		* = InitiatorTypeOther

	default:
		.AddError(fmt.Errorf("unknown InitiatorType value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *InitiatorType) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// AuthChallengeSource source of the authentication challenge.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-AuthChallenge
type AuthChallengeSource string

// String returns the AuthChallengeSource as string value.
func ( AuthChallengeSource) () string {
	return string()
}

// AuthChallengeSource values.
const (
	AuthChallengeSourceServer AuthChallengeSource = "Server"
	AuthChallengeSourceProxy  AuthChallengeSource = "Proxy"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( AuthChallengeSource) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( AuthChallengeSource) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *AuthChallengeSource) ( *jlexer.Lexer) {
	 := .String()
	switch AuthChallengeSource() {
	case AuthChallengeSourceServer:
		* = AuthChallengeSourceServer
	case AuthChallengeSourceProxy:
		* = AuthChallengeSourceProxy

	default:
		.AddError(fmt.Errorf("unknown AuthChallengeSource value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *AuthChallengeSource) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// AuthChallengeResponseResponse the decision on what to do in response to
// the authorization challenge. Default means deferring to the default behavior
// of the net stack, which will likely either the Cancel authentication or
// display a popup dialog box.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-AuthChallengeResponse
type AuthChallengeResponseResponse string

// String returns the AuthChallengeResponseResponse as string value.
func ( AuthChallengeResponseResponse) () string {
	return string()
}

// AuthChallengeResponseResponse values.
const (
	AuthChallengeResponseResponseDefault            AuthChallengeResponseResponse = "Default"
	AuthChallengeResponseResponseCancelAuth         AuthChallengeResponseResponse = "CancelAuth"
	AuthChallengeResponseResponseProvideCredentials AuthChallengeResponseResponse = "ProvideCredentials"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( AuthChallengeResponseResponse) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( AuthChallengeResponseResponse) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *AuthChallengeResponseResponse) ( *jlexer.Lexer) {
	 := .String()
	switch AuthChallengeResponseResponse() {
	case AuthChallengeResponseResponseDefault:
		* = AuthChallengeResponseResponseDefault
	case AuthChallengeResponseResponseCancelAuth:
		* = AuthChallengeResponseResponseCancelAuth
	case AuthChallengeResponseResponseProvideCredentials:
		* = AuthChallengeResponseResponseProvideCredentials

	default:
		.AddError(fmt.Errorf("unknown AuthChallengeResponseResponse value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *AuthChallengeResponseResponse) ( []byte) error {
	return easyjson.Unmarshal(, )
}

// TrustTokenOperationDoneStatus detailed success or error status of the
// operation. 'AlreadyExists' also signifies a successful operation, as the
// result of the operation already exists und thus, the operation was abort
// preemptively (e.g. a cache hit).
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-trustTokenOperationDone
type TrustTokenOperationDoneStatus string

// String returns the TrustTokenOperationDoneStatus as string value.
func ( TrustTokenOperationDoneStatus) () string {
	return string()
}

// TrustTokenOperationDoneStatus values.
const (
	TrustTokenOperationDoneStatusOk                 TrustTokenOperationDoneStatus = "Ok"
	TrustTokenOperationDoneStatusInvalidArgument    TrustTokenOperationDoneStatus = "InvalidArgument"
	TrustTokenOperationDoneStatusMissingIssuerKeys  TrustTokenOperationDoneStatus = "MissingIssuerKeys"
	TrustTokenOperationDoneStatusFailedPrecondition TrustTokenOperationDoneStatus = "FailedPrecondition"
	TrustTokenOperationDoneStatusResourceExhausted  TrustTokenOperationDoneStatus = "ResourceExhausted"
	TrustTokenOperationDoneStatusAlreadyExists      TrustTokenOperationDoneStatus = "AlreadyExists"
	TrustTokenOperationDoneStatusUnavailable        TrustTokenOperationDoneStatus = "Unavailable"
	TrustTokenOperationDoneStatusUnauthorized       TrustTokenOperationDoneStatus = "Unauthorized"
	TrustTokenOperationDoneStatusBadResponse        TrustTokenOperationDoneStatus = "BadResponse"
	TrustTokenOperationDoneStatusInternalError      TrustTokenOperationDoneStatus = "InternalError"
	TrustTokenOperationDoneStatusUnknownError       TrustTokenOperationDoneStatus = "UnknownError"
	TrustTokenOperationDoneStatusFulfilledLocally   TrustTokenOperationDoneStatus = "FulfilledLocally"
)

// MarshalEasyJSON satisfies easyjson.Marshaler.
func ( TrustTokenOperationDoneStatus) ( *jwriter.Writer) {
	.String(string())
}

// MarshalJSON satisfies json.Marshaler.
func ( TrustTokenOperationDoneStatus) () ([]byte, error) {
	return easyjson.Marshal()
}

// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func ( *TrustTokenOperationDoneStatus) ( *jlexer.Lexer) {
	 := .String()
	switch TrustTokenOperationDoneStatus() {
	case TrustTokenOperationDoneStatusOk:
		* = TrustTokenOperationDoneStatusOk
	case TrustTokenOperationDoneStatusInvalidArgument:
		* = TrustTokenOperationDoneStatusInvalidArgument
	case TrustTokenOperationDoneStatusMissingIssuerKeys:
		* = TrustTokenOperationDoneStatusMissingIssuerKeys
	case TrustTokenOperationDoneStatusFailedPrecondition:
		* = TrustTokenOperationDoneStatusFailedPrecondition
	case TrustTokenOperationDoneStatusResourceExhausted:
		* = TrustTokenOperationDoneStatusResourceExhausted
	case TrustTokenOperationDoneStatusAlreadyExists:
		* = TrustTokenOperationDoneStatusAlreadyExists
	case TrustTokenOperationDoneStatusUnavailable:
		* = TrustTokenOperationDoneStatusUnavailable
	case TrustTokenOperationDoneStatusUnauthorized:
		* = TrustTokenOperationDoneStatusUnauthorized
	case TrustTokenOperationDoneStatusBadResponse:
		* = TrustTokenOperationDoneStatusBadResponse
	case TrustTokenOperationDoneStatusInternalError:
		* = TrustTokenOperationDoneStatusInternalError
	case TrustTokenOperationDoneStatusUnknownError:
		* = TrustTokenOperationDoneStatusUnknownError
	case TrustTokenOperationDoneStatusFulfilledLocally:
		* = TrustTokenOperationDoneStatusFulfilledLocally

	default:
		.AddError(fmt.Errorf("unknown TrustTokenOperationDoneStatus value: %v", ))
	}
}

// UnmarshalJSON satisfies json.Unmarshaler.
func ( *TrustTokenOperationDoneStatus) ( []byte) error {
	return easyjson.Unmarshal(, )
}