func (p *BulkDeleteMessagesParams) Valid() (err error) {
	p.m.RLock()
	defer p.m.RUnlock()

	messages := len(p.Messages)
	err = p.tooMany(messages)
	if err != nil {
		return
	}
	err = p.tooFew(messages)
	return
}
// Valid validates the BulkDeleteMessagesParams data
Valid validates the BulkDeleteMessagesParams data
// Valid validates the BulkDeleteMessagesParams data
func (p *BulkDeleteMessagesParams) Valid() (err error) {
	p.m.RLock()
	defer p.m.RUnlock()
	messages := len(p.Messages)
	err = p.tooMany(messages)
	if err != nil {
		return
	}
	err = p.tooFew(messages)
	return
}
func ( p * BulkDeleteMessagesParams ) Valid ( ) ( err error ) { p . m . RLock ( ) defer p . m . RUnlock ( ) messages := len ( p . Messages ) err = p . tooMany ( messages ) if err != nil { return } err = p . tooFew ( messages ) return }
Valid validates the BulkDeleteMessagesParams data
Valid validates the BulkDeleteMessagesParams data