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

	if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return DocumentDetailsValidationError{
				field:  "Metadata",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}

	if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return DocumentDetailsValidationError{
				field:  "CreatedAt",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}

	// no validation rules for Removed

	// no validation rules for Digest

	if uri, err := url.Parse(m.GetUrl()); err != nil {
		return DocumentDetailsValidationError{
			field:  "Url",
			reason: "value must be a valid URI",
			cause:  err,
		}
	} else if !uri.IsAbs() {
		return DocumentDetailsValidationError{
			field:  "Url",
			reason: "value must be absolute",
		}
	}

	return nil
}
// Validate checks the field values on DocumentDetails 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 DocumentDetails 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 DocumentDetails with the rules defined // in the proto definition for this message . If any rules are violated an // error is returned .
func (m *DocumentDetails) Validate() error {
	if m == nil {
		return nil
	}
	if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return DocumentDetailsValidationError{
				field:  "Metadata",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}
	if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return DocumentDetailsValidationError{
				field:  "CreatedAt",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}
	if uri, err := url.Parse(m.GetUrl()); err != nil {
		return DocumentDetailsValidationError{
			field:  "Url",
			reason: "value must be a valid URI",
			cause:  err,
		}
	} else if !uri.IsAbs() {
		return DocumentDetailsValidationError{
			field:  "Url",
			reason: "value must be absolute",
		}
	}
	return nil
}
func ( m * DocumentDetails ) Validate ( ) error { if m == nil { return nil } if v , ok := interface { } ( m . GetMetadata ( ) ) . ( interface { Validate ( ) error } ) ; ok { if err := v . Validate ( ) ; err != nil { return DocumentDetailsValidationError { field : " " , reason : " " , cause : err , } } } if v , ok := interface { } ( m . GetCreatedAt ( ) ) . ( interface { Validate ( ) error } ) ; ok { if err := v . Validate ( ) ; err != nil { return DocumentDetailsValidationError { field : " " , reason : " " , cause : err , } } } if uri , err := url . Parse ( m . GetUrl ( ) ) ; err != nil { return DocumentDetailsValidationError { field : " " , reason : " " , cause : err , } } else if ! uri . IsAbs ( ) { return DocumentDetailsValidationError { field : " " , reason : " " , } } return nil }
Validate checks the field values on DocumentDetails with the rules defined
in the proto definition for this message.
Validate checks the field values on DocumentDetails with the rules defined in the proto definition for this message .
// no validation rules for Removed // no validation rules for Digest