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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: crosscc/cclocator_setting.proto
     3  
     4  package crosscc
     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  	math "math"
    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 *ServiceLocatorSetRequest) Validate() error {
    21  	return nil
    22  }
    23  func (this *ServiceLocator) Validate() error {
    24  	return nil
    25  }
    26  func (this *ServiceLocatorId) Validate() error {
    27  	return nil
    28  }
    29  func (this *ServiceLocators) Validate() error {
    30  	for _, item := range this.Items {
    31  		if item != nil {
    32  			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
    33  				return github_com_mwitkow_go_proto_validators.FieldError("Items", err)
    34  			}
    35  		}
    36  	}
    37  	return nil
    38  }
    39  func (this *ServiceLocatorSet) Validate() error {
    40  	return nil
    41  }
    42  func (this *PingServiceResponse) Validate() error {
    43  	if this.Locator != nil {
    44  		if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Locator); err != nil {
    45  			return github_com_mwitkow_go_proto_validators.FieldError("Locator", err)
    46  		}
    47  	}
    48  	return nil
    49  }
    50  func (this *PingServiceResponses) Validate() error {
    51  	for _, item := range this.Responses {
    52  		if item != nil {
    53  			if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
    54  				return github_com_mwitkow_go_proto_validators.FieldError("Responses", err)
    55  			}
    56  		}
    57  	}
    58  	return nil
    59  }