github.com/litesolutions/justifay-api@v1.0.0-2.0.20220707114139-46f28a909481/proto/user/common.validator.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: user/common.proto
     3  
     4  package user
     5  
     6  import (
     7  	fmt "fmt"
     8  	math "math"
     9  	proto "github.com/golang/protobuf/proto"
    10  	github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators"
    11  )
    12  
    13  // Reference imports to suppress errors if they are not otherwise used.
    14  var _ = proto.Marshal
    15  var _ = fmt.Errorf
    16  var _ = math.Inf
    17  
    18  func (this *Empty) Validate() error {
    19  	return nil
    20  }
    21  func (this *RelatedUserGroup) Validate() error {
    22  	return nil
    23  }
    24  func (this *User) Validate() error {
    25  	return nil
    26  }
    27  func (this *Tag) Validate() error {
    28  	return nil
    29  }
    30  func (this *StreetAddress) Validate() error {
    31  	// Validation of proto3 map<> fields is unsupported.
    32  	return nil
    33  }
    34  func (this *Query) Validate() error {
    35  	return nil
    36  }
    37  func (this *SearchResults) Validate() error {
    38  	for _, item := range this.People {
    39  		if item != nil {
    40  			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
    41  				return github_com_mwitkow_go_proto_validators.FieldError("People", err)
    42  			}
    43  		}
    44  	}
    45  	for _, item := range this.Artists {
    46  		if item != nil {
    47  			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
    48  				return github_com_mwitkow_go_proto_validators.FieldError("Artists", err)
    49  			}
    50  		}
    51  	}
    52  	for _, item := range this.Labels {
    53  		if item != nil {
    54  			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
    55  				return github_com_mwitkow_go_proto_validators.FieldError("Labels", err)
    56  			}
    57  		}
    58  	}
    59  	return nil
    60  }