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

	if m.GetSource() == nil {
		return SpecValidationError{
			field:  "Source",
			reason: "value is required",
		}
	}

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

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

	return nil
}
// Validate checks the field values on Spec 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 Spec 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 Spec with the rules defined in the proto // definition for this message . If any rules are violated an error is returned .
func (m *Spec) Validate() error {
	if m == nil {
		return nil
	}
	if m.GetSource() == nil {
		return SpecValidationError{
			field:  "Source",
			reason: "value is required",
		}
	}
	if v, ok := interface{}(m.GetSource()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return SpecValidationError{
				field:  "Source",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}
	if v, ok := interface{}(m.GetSink()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return SpecValidationError{
				field:  "Sink",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}
	return nil
}
func ( m * Spec ) Validate ( ) error { if m == nil { return nil } if m . GetSource ( ) == nil { return SpecValidationError { field : " " , reason : " " , } } if v , ok := interface { } ( m . GetSource ( ) ) . ( interface { Validate ( ) error } ) ; ok { if err := v . Validate ( ) ; err != nil { return SpecValidationError { field : " " , reason : " " , cause : err , } } } if v , ok := interface { } ( m . GetSink ( ) ) . ( interface { Validate ( ) error } ) ; ok { if err := v . Validate ( ) ; err != nil { return SpecValidationError { field : " " , reason : " " , cause : err , } } } return nil }
Validate checks the field values on Spec with the rules defined in the proto
definition for this message.
Validate checks the field values on Spec with the rules defined in the proto definition for this message .