// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: pb/bundle.proto package bundle import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "google.golang.org/protobuf/types/descriptorpb" _ "github.com/mwitkow/go-proto-validators" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf func (this *CommonResponse) Validate() error { return nil } func (this *BundleProfile) Validate() error { return nil } func (this *DelBundleRequest) Validate() error { return nil } func (this *BundleListRequest) Validate() error { return nil } func (this *BundleListResponse) Validate() error { for _, item := range this.Bundles { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("Bundles", err) } } } return nil } func (this *BundleDetailRequest) Validate() error { return nil } func (this *BundleDetailResponse) Validate() error { if this.Bundle != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Bundle); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("Bundle", err) } } return nil } func (this *OrderRecord) Validate() error { return nil } func (this *OrderRecordsRequest) Validate() error { return nil } func (this *OrderRecordsResponse) Validate() error { for _, item := range this.OrderRecords { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("OrderRecords", err) } } } return nil } func (this *OrderRecordsDetailRequest) Validate() error { return nil } func (this *OrderRecordsDetailResponse) Validate() error { if this.OrderRecord != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.OrderRecord); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("OrderRecord", err) } } return nil } func (this *ValueAddBundleProfile) Validate() error { return nil } func (this *CreateValueAddBundleRequest) Validate() error { if !(this.Num > 29) { return github_com_mwitkow_go_proto_validators.FieldError("Num", fmt.Errorf(`至少数为30,最多数为100`)) } if !(this.Num < 101) { return github_com_mwitkow_go_proto_validators.FieldError("Num", fmt.Errorf(`至少数为30,最多数为100`)) } return nil } func (this *CreateValueAddBundleResponse) Validate() error { return nil } func (this *ValueAddBundleListRequest) Validate() error { return nil } func (this *ValueAddBundleListResponse) Validate() error { for _, item := range this.Data { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("Data", err) } } } return nil } func (this *ValueAddBundleDetailRequest) Validate() error { return nil } func (this *ValueAddBundleDetailResponse) Validate() error { if this.Data != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Data); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("Data", err) } } return nil }