package pgproto3

import (
	
)

type GSSResponse struct {
	Data []byte
}

// Frontend identifies this message as sendable by a PostgreSQL frontend.
func ( *GSSResponse) () {}

func ( *GSSResponse) ( []byte) error {
	.Data = 
	return nil
}

func ( *GSSResponse) ( []byte) ([]byte, error) {
	,  := beginMessage(, 'p')
	 = append(, .Data...)
	return finishMessage(, )
}

// MarshalJSON implements encoding/json.Marshaler.
func ( *GSSResponse) () ([]byte, error) {
	return json.Marshal(struct {
		 string
		 []byte
	}{
		: "GSSResponse",
		: .Data,
	})
}

// UnmarshalJSON implements encoding/json.Unmarshaler.
func ( *GSSResponse) ( []byte) error {
	var  struct {
		 []byte
	}
	if  := json.Unmarshal(, &);  != nil {
		return 
	}
	.Data = .
	return nil
}