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

	if o == nil {
		return nil
	}

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

	o.ID = s.ID.Hex()
	o.CreateTime = s.CreateTime
	o.Errors = s.Errors
	o.MigrationsLog = s.MigrationsLog
	o.Namespace = s.Namespace
	o.PingID = s.PingID
	o.PingPairs = s.PingPairs
	o.RefreshID = s.RefreshID
	o.RemoteProbes = s.RemoteProbes
	o.UpdateTime = s.UpdateTime
	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 *PingResult) SetBSON(raw bson.Raw) error {
	if o == nil {
		return nil
	}
	s := &mongoAttributesPingResult{}
	if err := raw.Unmarshal(s); err != nil {
		return err
	}
	o.ID = s.ID.Hex()
	o.CreateTime = s.CreateTime
	o.Errors = s.Errors
	o.MigrationsLog = s.MigrationsLog
	o.Namespace = s.Namespace
	o.PingID = s.PingID
	o.PingPairs = s.PingPairs
	o.RefreshID = s.RefreshID
	o.RemoteProbes = s.RemoteProbes
	o.UpdateTime = s.UpdateTime
	o.ZHash = s.ZHash
	o.Zone = s.Zone
	return nil
}
func ( o * PingResult ) SetBSON ( raw bson . Raw ) error { if o == nil { return nil } s := & mongoAttributesPingResult { } if err := raw . Unmarshal ( s ) ; err != nil { return err } o . ID = s . ID . Hex ( ) o . CreateTime = s . CreateTime o . Errors = s . Errors o . MigrationsLog = s . MigrationsLog o . Namespace = s . Namespace o . PingID = s . PingID o . PingPairs = s . PingPairs o . RefreshID = s . RefreshID o . RemoteProbes = s . RemoteProbes o . UpdateTime = s . UpdateTime o . ZHash = s . ZHash o . Zone = s . Zone return nil }
SetBSON implements the bson marshaling interface.
SetBSON implements the bson marshaling interface .