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

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

	// no validation rules for Parser

	// no validation rules for Format

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

	return nil
}
// Validate checks the field values on Source 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 Source 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 Source with the rules defined in the // proto definition for this message . If any rules are violated an error is returned .
func (m *Source) Validate() error {
	if m == nil {
		return nil
	}
	if _, err := url.Parse(m.GetUrl()); err != nil {
		return SourceValidationError{
			field:  "Url",
			reason: "value must be a valid URI",
			cause:  err,
		}
	}
	if v, ok := interface{}(m.GetInterval()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return SourceValidationError{
				field:  "Interval",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}
	return nil
}
func ( m * Source ) Validate ( ) error { if m == nil { return nil } if _ , err := url . Parse ( m . GetUrl ( ) ) ; err != nil { return SourceValidationError { field : " " , reason : " " , cause : err , } } if v , ok := interface { } ( m . GetInterval ( ) ) . ( interface { Validate ( ) error } ) ; ok { if err := v . Validate ( ) ; err != nil { return SourceValidationError { field : " " , reason : " " , cause : err , } } } return nil }
Validate checks the field values on Source with the rules defined in the
proto definition for this message.
Validate checks the field values on Source with the rules defined in the proto definition for this message .
// no validation rules for Parser // no validation rules for Format