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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: user/usergroup_messages.proto
     3  
     4  package user
     5  
     6  import (
     7  	fmt "fmt"
     8  	math "math"
     9  	proto "github.com/golang/protobuf/proto"
    10  	_ "google.golang.org/genproto/googleapis/api/annotations"
    11  	_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
    12  	github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators"
    13  )
    14  
    15  // Reference imports to suppress errors if they are not otherwise used.
    16  var _ = proto.Marshal
    17  var _ = fmt.Errorf
    18  var _ = math.Inf
    19  
    20  func (this *UserGroupRequest) Validate() error {
    21  	return nil
    22  }
    23  func (this *UserGroupMembershipRequest) Validate() error {
    24  	return nil
    25  }
    26  func (this *UserGroup) Validate() error {
    27  	for _, item := range this.Followers {
    28  		if item != nil {
    29  			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
    30  				return github_com_mwitkow_go_proto_validators.FieldError("Followers", err)
    31  			}
    32  		}
    33  	}
    34  	for _, item := range this.Members {
    35  		if item != nil {
    36  			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
    37  				return github_com_mwitkow_go_proto_validators.FieldError("Members", err)
    38  			}
    39  		}
    40  	}
    41  	for _, item := range this.MemberOfGroups {
    42  		if item != nil {
    43  			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
    44  				return github_com_mwitkow_go_proto_validators.FieldError("MemberOfGroups", err)
    45  			}
    46  		}
    47  	}
    48  	for _, item := range this.Links {
    49  		if item != nil {
    50  			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
    51  				return github_com_mwitkow_go_proto_validators.FieldError("Links", err)
    52  			}
    53  		}
    54  	}
    55  	for _, item := range this.Tags {
    56  		if item != nil {
    57  			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
    58  				return github_com_mwitkow_go_proto_validators.FieldError("Tags", err)
    59  			}
    60  		}
    61  	}
    62  	if this.Address != nil {
    63  		if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Address); err != nil {
    64  			return github_com_mwitkow_go_proto_validators.FieldError("Address", err)
    65  		}
    66  	}
    67  	if this.Privacy != nil {
    68  		if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Privacy); err != nil {
    69  			return github_com_mwitkow_go_proto_validators.FieldError("Privacy", err)
    70  		}
    71  	}
    72  	for _, item := range this.RecommendedArtists {
    73  		if item != nil {
    74  			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
    75  				return github_com_mwitkow_go_proto_validators.FieldError("RecommendedArtists", err)
    76  			}
    77  		}
    78  	}
    79  	return nil
    80  }
    81  func (this *UserGroupCreateRequest) Validate() error {
    82  	return nil
    83  }
    84  func (this *UserGroupUpdateRequest) Validate() error {
    85  	return nil
    86  }
    87  func (this *UserGroupPrivateResponse) Validate() error {
    88  	return nil
    89  }
    90  func (this *UserGroupListResponse) Validate() error {
    91  	for _, item := range this.Usergroup {
    92  		if item != nil {
    93  			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
    94  				return github_com_mwitkow_go_proto_validators.FieldError("Usergroup", err)
    95  			}
    96  		}
    97  	}
    98  	return nil
    99  }
   100  func (this *UserGroupPublicResponse) Validate() error {
   101  	for _, item := range this.Links {
   102  		if item != nil {
   103  			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
   104  				return github_com_mwitkow_go_proto_validators.FieldError("Links", err)
   105  			}
   106  		}
   107  	}
   108  	return nil
   109  }
   110  func (this *UserGroupRecommended) Validate() error {
   111  	return nil
   112  }
   113  func (this *UserGroupMembers) Validate() error {
   114  	return nil
   115  }
   116  func (this *Group) Validate() error {
   117  	return nil
   118  }
   119  func (this *GroupTypes) Validate() error {
   120  	for _, item := range this.Types {
   121  		if item != nil {
   122  			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
   123  				return github_com_mwitkow_go_proto_validators.FieldError("Types", err)
   124  			}
   125  		}
   126  	}
   127  	return nil
   128  }
   129  func (this *Link) Validate() error {
   130  	return nil
   131  }
   132  func (this *Privacy) Validate() error {
   133  	return nil
   134  }
   135  func (this *GroupedUserGroups) Validate() error {
   136  	for _, item := range this.Groups {
   137  		if item != nil {
   138  			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
   139  				return github_com_mwitkow_go_proto_validators.FieldError("Groups", err)
   140  			}
   141  		}
   142  	}
   143  	return nil
   144  }