func (o *AuditReport) SetBSON(raw bson.Raw) error {

	if o == nil {
		return nil
	}

	s := &mongoAttributesAuditReport{}
	if err := raw.Unmarshal(s); err != nil {
		return err
	}

	o.AUID = s.AUID
	o.CWD = s.CWD
	o.EGID = s.EGID
	o.EUID = s.EUID
	o.EXE = s.EXE
	o.FSGID = s.FSGID
	o.FSUID = s.FSUID
	o.FilePath = s.FilePath
	o.GID = s.GID
	o.ID = s.ID.Hex()
	o.PER = s.PER
	o.PID = s.PID
	o.PPID = s.PPID
	o.SGID = s.SGID
	o.SUID = s.SUID
	o.UID = s.UID
	o.A0 = s.A0
	o.A1 = s.A1
	o.A2 = s.A2
	o.A3 = s.A3
	o.Arch = s.Arch
	o.Arguments = s.Arguments
	o.AuditProfileID = s.AuditProfileID
	o.AuditProfileNamespace = s.AuditProfileNamespace
	o.Command = s.Command
	o.EnforcerID = s.EnforcerID
	o.EnforcerNamespace = s.EnforcerNamespace
	o.Exit = s.Exit
	o.MigrationsLog = s.MigrationsLog
	o.ProcessingUnitID = s.ProcessingUnitID
	o.ProcessingUnitNamespace = s.ProcessingUnitNamespace
	o.RecordType = s.RecordType
	o.Sequence = s.Sequence
	o.Success = s.Success
	o.Syscall = s.Syscall
	o.Timestamp = s.Timestamp
	o.ZHash = s.ZHash
	o.Zone = s.Zone

	return nil
}
// SetBSON implements the bson marshaling interface.
// This is used to transparently convert ID to MongoDBID as ObectID.
SetBSON implements the bson marshaling interface.
This is used to transparently convert ID to MongoDBID as ObectID.
// SetBSON implements the bson marshaling interface . // This is used to transparently convert ID to MongoDBID as ObectID .
func (o *AuditReport) SetBSON(raw bson.Raw) error {
	if o == nil {
		return nil
	}
	s := &mongoAttributesAuditReport{}
	if err := raw.Unmarshal(s); err != nil {
		return err
	}
	o.AUID = s.AUID
	o.CWD = s.CWD
	o.EGID = s.EGID
	o.EUID = s.EUID
	o.EXE = s.EXE
	o.FSGID = s.FSGID
	o.FSUID = s.FSUID
	o.FilePath = s.FilePath
	o.GID = s.GID
	o.ID = s.ID.Hex()
	o.PER = s.PER
	o.PID = s.PID
	o.PPID = s.PPID
	o.SGID = s.SGID
	o.SUID = s.SUID
	o.UID = s.UID
	o.A0 = s.A0
	o.A1 = s.A1
	o.A2 = s.A2
	o.A3 = s.A3
	o.Arch = s.Arch
	o.Arguments = s.Arguments
	o.AuditProfileID = s.AuditProfileID
	o.AuditProfileNamespace = s.AuditProfileNamespace
	o.Command = s.Command
	o.EnforcerID = s.EnforcerID
	o.EnforcerNamespace = s.EnforcerNamespace
	o.Exit = s.Exit
	o.MigrationsLog = s.MigrationsLog
	o.ProcessingUnitID = s.ProcessingUnitID
	o.ProcessingUnitNamespace = s.ProcessingUnitNamespace
	o.RecordType = s.RecordType
	o.Sequence = s.Sequence
	o.Success = s.Success
	o.Syscall = s.Syscall
	o.Timestamp = s.Timestamp
	o.ZHash = s.ZHash
	o.Zone = s.Zone
	return nil
}
func ( o * AuditReport ) SetBSON ( raw bson . Raw ) error { if o == nil { return nil } s := & mongoAttributesAuditReport { } if err := raw . Unmarshal ( s ) ; err != nil { return err } o . AUID = s . AUID o . CWD = s . CWD o . EGID = s . EGID o . EUID = s . EUID o . EXE = s . EXE o . FSGID = s . FSGID o . FSUID = s . FSUID o . FilePath = s . FilePath o . GID = s . GID o . ID = s . ID . Hex ( ) o . PER = s . PER o . PID = s . PID o . PPID = s . PPID o . SGID = s . SGID o . SUID = s . SUID o . UID = s . UID o . A0 = s . A0 o . A1 = s . A1 o . A2 = s . A2 o . A3 = s . A3 o . Arch = s . Arch o . Arguments = s . Arguments o . AuditProfileID = s . AuditProfileID o . AuditProfileNamespace = s . AuditProfileNamespace o . Command = s . Command o . EnforcerID = s . EnforcerID o . EnforcerNamespace = s . EnforcerNamespace o . Exit = s . Exit o . MigrationsLog = s . MigrationsLog o . ProcessingUnitID = s . ProcessingUnitID o . ProcessingUnitNamespace = s . ProcessingUnitNamespace o . RecordType = s . RecordType o . Sequence = s . Sequence o . Success = s . Success o . Syscall = s . Syscall o . Timestamp = s . Timestamp o . ZHash = s . ZHash o . Zone = s . Zone return nil }
SetBSON implements the bson marshaling interface.
SetBSON implements the bson marshaling interface .