81 lines
2.0 KiB
Go
81 lines
2.0 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: files.proto
|
|
|
|
package files
|
|
|
|
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 *FileListReq) Validate() error {
|
|
if this.Sorting != nil {
|
|
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Sorting); err != nil {
|
|
return github_com_mwitkow_go_proto_validators.FieldError("Sorting", err)
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
func (this *Items) Validate() error {
|
|
return nil
|
|
}
|
|
func (this *Sorting) Validate() error {
|
|
return nil
|
|
}
|
|
func (this *FileListResp) Validate() error {
|
|
for _, item := range this.Items {
|
|
if item != nil {
|
|
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
|
|
return github_com_mwitkow_go_proto_validators.FieldError("Items", err)
|
|
}
|
|
}
|
|
}
|
|
if this.Sorting != nil {
|
|
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Sorting); err != nil {
|
|
return github_com_mwitkow_go_proto_validators.FieldError("Sorting", err)
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
func (this *CreateReq) Validate() error {
|
|
return nil
|
|
}
|
|
func (this *CreateResp) Validate() error {
|
|
return nil
|
|
}
|
|
func (this *DeleteReq) Validate() error {
|
|
return nil
|
|
}
|
|
func (this *DeleteResp) Validate() error {
|
|
return nil
|
|
}
|
|
func (this *UploadReq) Validate() error {
|
|
return nil
|
|
}
|
|
func (this *UploadResp) Validate() error {
|
|
return nil
|
|
}
|
|
func (this *SearchReq) Validate() error {
|
|
return nil
|
|
}
|
|
func (this *SearchResp) Validate() error {
|
|
for _, item := range this.Items {
|
|
if item != nil {
|
|
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
|
|
return github_com_mwitkow_go_proto_validators.FieldError("Items", err)
|
|
}
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
func (this *SearchResp_Nested) Validate() error {
|
|
return nil
|
|
}
|