github.com/s7techlab/cckit@v0.10.5/extensions/pinger/chaincode_pinger.validator.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: pinger/chaincode_pinger.proto
     3  
     4  package pinger
     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/genproto/googleapis/api/annotations"
    11  	_ "google.golang.org/protobuf/types/known/emptypb"
    12  	_ "google.golang.org/protobuf/types/known/timestamppb"
    13  	math "math"
    14  )
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  var _ = fmt.Errorf
    19  var _ = math.Inf
    20  
    21  func (this *PingInfo) Validate() error {
    22  	if this.EndorsingServerTime != nil {
    23  		if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.EndorsingServerTime); err != nil {
    24  			return github_com_mwitkow_go_proto_validators.FieldError("EndorsingServerTime", err)
    25  		}
    26  	}
    27  	if this.TxTime != nil {
    28  		if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TxTime); err != nil {
    29  			return github_com_mwitkow_go_proto_validators.FieldError("TxTime", err)
    30  		}
    31  	}
    32  	return nil
    33  }