github.com/cloudwan/edgelq-sdk@v1.15.4/iam/resources/v1/common/common.pb.validate.go (about)

     1  // Code generated by protoc-gen-goten-validate
     2  // File: edgelq/iam/proto/v1/common.proto
     3  // DO NOT EDIT!!!
     4  
     5  package iam_common
     6  
     7  import (
     8  	"bytes"
     9  	"errors"
    10  	"fmt"
    11  	"net"
    12  	"net/url"
    13  	"regexp"
    14  	"strings"
    15  	"time"
    16  	"unicode/utf8"
    17  
    18  	gotenvalidate "github.com/cloudwan/goten-sdk/runtime/validate"
    19  )
    20  
    21  // proto imports
    22  import (
    23  	meta_service "github.com/cloudwan/goten-sdk/meta-service/resources/v1/service"
    24  )
    25  
    26  var (
    27  	_ = bytes.Equal
    28  	_ = errors.New
    29  	_ = fmt.Errorf
    30  	_ = net.ParseIP
    31  	_ = regexp.Match
    32  	_ = strings.Split
    33  	_ = time.Now
    34  	_ = utf8.RuneCountInString
    35  	_ = url.Parse
    36  	_ = gotenvalidate.NewValidationError
    37  )
    38  
    39  // make sure we're using proto imports
    40  var (
    41  	_ = &meta_service.Service{}
    42  )
    43  
    44  func (obj *PCR) GotenValidate() error {
    45  	if obj == nil {
    46  		return nil
    47  	}
    48  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
    49  		return cvobj.GotenCustomValidate()
    50  	}
    51  	return nil
    52  }
    53  func (obj *ServiceBusinessTier) GotenValidate() error {
    54  	if obj == nil {
    55  		return nil
    56  	}
    57  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
    58  		return cvobj.GotenCustomValidate()
    59  	}
    60  	return nil
    61  }
    62  func (obj *ServiceErrors) GotenValidate() error {
    63  	if obj == nil {
    64  		return nil
    65  	}
    66  	for idx, elem := range obj.Errors {
    67  		if subobj, ok := interface{}(elem).(gotenvalidate.Validator); ok {
    68  			if err := subobj.GotenValidate(); err != nil {
    69  				return gotenvalidate.NewValidationError("ServiceErrors", "errors", obj.Errors[idx], "nested object validation failed", err)
    70  			}
    71  		}
    72  	}
    73  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
    74  		return cvobj.GotenCustomValidate()
    75  	}
    76  	return nil
    77  }
    78  func (obj *ServiceErrors_Error) GotenValidate() error {
    79  	if obj == nil {
    80  		return nil
    81  	}
    82  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
    83  		return cvobj.GotenCustomValidate()
    84  	}
    85  	return nil
    86  }