github.com/cloudwan/edgelq-sdk@v1.15.4/iam/client/v1alpha2/project_invitation/project_invitation_custom.pb.validate.go (about) 1 // Code generated by protoc-gen-goten-validate 2 // File: edgelq/iam/proto/v1alpha2/project_invitation_custom.proto 3 // DO NOT EDIT!!! 4 5 package project_invitation_client 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 project "github.com/cloudwan/edgelq-sdk/iam/resources/v1alpha2/project" 24 project_invitation "github.com/cloudwan/edgelq-sdk/iam/resources/v1alpha2/project_invitation" 25 ) 26 27 var ( 28 _ = bytes.Equal 29 _ = errors.New 30 _ = fmt.Errorf 31 _ = net.ParseIP 32 _ = regexp.Match 33 _ = strings.Split 34 _ = time.Now 35 _ = utf8.RuneCountInString 36 _ = url.Parse 37 _ = gotenvalidate.NewValidationError 38 ) 39 40 // make sure we're using proto imports 41 var ( 42 _ = &project.Project{} 43 _ = &project_invitation.ProjectInvitation{} 44 ) 45 46 func (obj *AcceptProjectInvitationRequest) GotenValidate() error { 47 if obj == nil { 48 return nil 49 } 50 if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok { 51 return cvobj.GotenCustomValidate() 52 } 53 return nil 54 } 55 func (obj *AcceptProjectInvitationResponse) GotenValidate() error { 56 if obj == nil { 57 return nil 58 } 59 if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok { 60 return cvobj.GotenCustomValidate() 61 } 62 return nil 63 } 64 func (obj *DeclineProjectInvitationRequest) GotenValidate() error { 65 if obj == nil { 66 return nil 67 } 68 if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok { 69 return cvobj.GotenCustomValidate() 70 } 71 return nil 72 } 73 func (obj *DeclineProjectInvitationResponse) GotenValidate() error { 74 if obj == nil { 75 return nil 76 } 77 if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok { 78 return cvobj.GotenCustomValidate() 79 } 80 return nil 81 } 82 func (obj *ListMyProjectInvitationsRequest) GotenValidate() error { 83 if obj == nil { 84 return nil 85 } 86 if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok { 87 return cvobj.GotenCustomValidate() 88 } 89 return nil 90 } 91 func (obj *ListMyProjectInvitationsResponse) GotenValidate() error { 92 if obj == nil { 93 return nil 94 } 95 for idx, elem := range obj.ProjectInvitations { 96 if subobj, ok := interface{}(elem).(gotenvalidate.Validator); ok { 97 if err := subobj.GotenValidate(); err != nil { 98 return gotenvalidate.NewValidationError("ListMyProjectInvitationsResponse", "projectInvitations", obj.ProjectInvitations[idx], "nested object validation failed", err) 99 } 100 } 101 } 102 if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok { 103 return cvobj.GotenCustomValidate() 104 } 105 return nil 106 } 107 func (obj *ResendProjectInvitationRequest) GotenValidate() error { 108 if obj == nil { 109 return nil 110 } 111 if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok { 112 return cvobj.GotenCustomValidate() 113 } 114 return nil 115 } 116 func (obj *ResendProjectInvitationResponse) GotenValidate() error { 117 if obj == nil { 118 return nil 119 } 120 if subobj, ok := interface{}(obj.ProjectInvitation).(gotenvalidate.Validator); ok { 121 if err := subobj.GotenValidate(); err != nil { 122 return gotenvalidate.NewValidationError("ResendProjectInvitationResponse", "projectInvitation", obj.ProjectInvitation, "nested object validation failed", err) 123 } 124 } 125 if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok { 126 return cvobj.GotenCustomValidate() 127 } 128 return nil 129 }