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

	// no validation rules for ApiVersion

	if m.GetMetadata() == nil {
		return WatcherDetailsValidationError{
			field:  "Metadata",
			reason: "value is required",
		}
	}

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

	if m.GetSpec() == nil {
		return WatcherDetailsValidationError{
			field:  "Spec",
			reason: "value is required",
		}
	}

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

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

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