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

	// no validation rules for ApiVersion

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

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

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

	if v, ok := interface{}(m.GetSpec()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return CollectDetailsValidationError{
				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 CollectDetailsValidationError{
				field:  "Status",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}

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