github.com/s7techlab/cckit@v0.10.5/state/mapping/testdata/schema/with_slice_id.validator.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: mapping/testdata/schema/with_slice_id.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  	_ "google.golang.org/protobuf/types/known/timestamppb"
    11  	math "math"
    12  )
    13  
    14  // Reference imports to suppress errors if they are not otherwise used.
    15  var _ = proto.Marshal
    16  var _ = fmt.Errorf
    17  var _ = math.Inf
    18  
    19  func (this *EntityWithSliceId) Validate() error {
    20  	if this.SomeDate != nil {
    21  		if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.SomeDate); err != nil {
    22  			return github_com_mwitkow_go_proto_validators.FieldError("SomeDate", err)
    23  		}
    24  	}
    25  	return nil
    26  }