78 lines
2.0 KiB
Go
78 lines
2.0 KiB
Go
// 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"
|
|
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
|
|
}
|