65 lines
1.4 KiB
Go
65 lines
1.4 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: governance.proto
|
|
|
|
package governance
|
|
|
|
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 *Item) Validate() error {
|
|
return nil
|
|
}
|
|
func (this *ListReq) Validate() error {
|
|
return nil
|
|
}
|
|
func (this *ListResp) 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 *DeleteReq) Validate() error {
|
|
return nil
|
|
}
|
|
func (this *DeleteResp) Validate() error {
|
|
return nil
|
|
}
|
|
func (this *EditReq) Validate() error {
|
|
return nil
|
|
}
|
|
func (this *EditResp) Validate() error {
|
|
return nil
|
|
}
|
|
func (this *CreateReq) Validate() error {
|
|
return nil
|
|
}
|
|
func (this *CreateResp) Validate() error {
|
|
return nil
|
|
}
|
|
func (this *DisplayReq) Validate() error {
|
|
return nil
|
|
}
|
|
func (this *DisplayResp) 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
|
|
}
|