func (ot OriginType) Validate() error {
	// As noted above, typedef'ing int means that the use of int
	// literals or explicit type conversion could result in unsupported
	// "enum" values. Otherwise OriginType would not need this method.
	if _, ok := originTypes[ot]; !ok {
		return errors.NewNotValid(nil, "unsupported origin type")
	}
	return nil
}
// Validate ensures that the origin type is correct.
Validate ensures that the origin type is correct.
// Validate ensures that the origin type is correct .
func (ot OriginType) Validate() error {
	if _, ok := originTypes[ot]; !ok {
		return errors.NewNotValid(nil, "unsupported origin type")
	}
	return nil
}
func ( ot OriginType ) Validate ( ) error { if _ , ok := originTypes [ ot ] ; ! ok { return errors . NewNotValid ( nil , " " ) } return nil }
Validate ensures that the origin type is correct.
Validate ensures that the origin type is correct .
// As noted above, typedef'ing int means that the use of int // literals or explicit type conversion could result in unsupported // "enum" values. Otherwise OriginType would not need this method.