github.com/s7techlab/cckit@v0.10.5/examples/payment/schema/payment.validator.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: payment/schema/payment.proto 3 4 package schema 5 6 import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" 10 math "math" 11 ) 12 13 // Reference imports to suppress errors if they are not otherwise used. 14 var _ = proto.Marshal 15 var _ = fmt.Errorf 16 var _ = math.Inf 17 18 func (this *Payment) Validate() error { 19 return nil 20 } 21 func (this *PaymentList) Validate() error { 22 for _, item := range this.Items { 23 if item != nil { 24 if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { 25 return github_com_mwitkow_go_proto_validators.FieldError("Items", err) 26 } 27 } 28 } 29 return nil 30 } 31 func (this *PaymentEvent) Validate() error { 32 return nil 33 }