github.com/cloudwan/edgelq-sdk@v1.15.4/limits/resources/v1/limit_pool/limit_pool.pb.validate.go (about) 1 // Code generated by protoc-gen-goten-validate 2 // File: edgelq/limits/proto/v1/limit_pool.proto 3 // DO NOT EDIT!!! 4 5 package limit_pool 6 7 import ( 8 "bytes" 9 "errors" 10 "fmt" 11 "net" 12 "net/url" 13 "regexp" 14 "strings" 15 "time" 16 "unicode/utf8" 17 18 gotenvalidate "github.com/cloudwan/goten-sdk/runtime/validate" 19 ) 20 21 // proto imports 22 import ( 23 iam_organization "github.com/cloudwan/edgelq-sdk/iam/resources/v1/organization" 24 meta_resource "github.com/cloudwan/goten-sdk/meta-service/resources/v1/resource" 25 meta_service "github.com/cloudwan/goten-sdk/meta-service/resources/v1/service" 26 meta "github.com/cloudwan/goten-sdk/types/meta" 27 ) 28 29 var ( 30 _ = bytes.Equal 31 _ = errors.New 32 _ = fmt.Errorf 33 _ = net.ParseIP 34 _ = regexp.Match 35 _ = strings.Split 36 _ = time.Now 37 _ = utf8.RuneCountInString 38 _ = url.Parse 39 _ = gotenvalidate.NewValidationError 40 ) 41 42 // make sure we're using proto imports 43 var ( 44 _ = &iam_organization.Organization{} 45 _ = &meta_resource.Resource{} 46 _ = &meta_service.Service{} 47 _ = &meta.Meta{} 48 ) 49 50 func (obj *LimitPool) GotenValidate() error { 51 if obj == nil { 52 return nil 53 } 54 if subobj, ok := interface{}(obj.Metadata).(gotenvalidate.Validator); ok { 55 if err := subobj.GotenValidate(); err != nil { 56 return gotenvalidate.NewValidationError("LimitPool", "metadata", obj.Metadata, "nested object validation failed", err) 57 } 58 } 59 if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok { 60 return cvobj.GotenCustomValidate() 61 } 62 return nil 63 }