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

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

	// no validation rules for Count

	if m.GetLastUpdated() == nil {
		return IndexValidationError{
			field:  "LastUpdated",
			reason: "value is required",
		}
	}

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

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