func (m *Documents) Validate() error {
	if m == nil {
		return nil
	}

	for idx, item := range m.GetDocument() {
		_, _ = idx, item

		if v, ok := interface{}(item).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return DocumentsValidationError{
					field:  fmt.Sprintf("Document[%v]", idx),
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}

	}

	if m.GetLastUpdated() == nil {
		return DocumentsValidationError{
			field:  "LastUpdated",
			reason: "value is required",
		}
	}

	return nil
}
// Validate checks the field values on Documents with the rules defined in the
// proto definition for this message. If any rules are violated, an error is returned.
Validate checks the field values on Documents with the rules defined in the
proto definition for this message. If any rules are violated, an error is returned.
// Validate checks the field values on Documents with the rules defined in the // proto definition for this message . If any rules are violated an error is returned .
func (m *Documents) Validate() error {
	if m == nil {
		return nil
	}
	for idx, item := range m.GetDocument() {
		_, _ = idx, item
		if v, ok := interface{}(item).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return DocumentsValidationError{
					field:  fmt.Sprintf("Document[%v]", idx),
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}
	}
	if m.GetLastUpdated() == nil {
		return DocumentsValidationError{
			field:  "LastUpdated",
			reason: "value is required",
		}
	}
	return nil
}
func ( m * Documents ) Validate ( ) error { if m == nil { return nil } for idx , item := range m . GetDocument ( ) { _ , _ = idx , item if v , ok := interface { } ( item ) . ( interface { Validate ( ) error } ) ; ok { if err := v . Validate ( ) ; err != nil { return DocumentsValidationError { field : fmt . Sprintf ( " " , idx ) , reason : " " , cause : err , } } } } if m . GetLastUpdated ( ) == nil { return DocumentsValidationError { field : " " , reason : " " , } } return nil }
Validate checks the field values on Documents with the rules defined in the
proto definition for this message.
Validate checks the field values on Documents with the rules defined in the proto definition for this message .