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

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

	// no validation rules for Format

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