github.com/cloudwan/edgelq-sdk@v1.15.4/limits/client/v1/limit_pool/limit_pool_custom.pb.validate.go (about)

     1  // Code generated by protoc-gen-goten-validate
     2  // File: edgelq/limits/proto/v1/limit_pool_custom.proto
     3  // DO NOT EDIT!!!
     4  
     5  package limit_pool_client
     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  	iam_organization "github.com/cloudwan/edgelq-sdk/iam/resources/v1/organization"
    24  	limit_pool "github.com/cloudwan/edgelq-sdk/limits/resources/v1/limit_pool"
    25  	meta_service "github.com/cloudwan/goten-sdk/meta-service/resources/v1/service"
    26  )
    27  
    28  var (
    29  	_ = bytes.Equal
    30  	_ = errors.New
    31  	_ = fmt.Errorf
    32  	_ = net.ParseIP
    33  	_ = regexp.Match
    34  	_ = strings.Split
    35  	_ = time.Now
    36  	_ = utf8.RuneCountInString
    37  	_ = url.Parse
    38  	_ = gotenvalidate.NewValidationError
    39  )
    40  
    41  // make sure we're using proto imports
    42  var (
    43  	_ = &iam_organization.Organization{}
    44  	_ = &limit_pool.LimitPool{}
    45  	_ = &meta_service.Service{}
    46  )
    47  
    48  func (obj *MigrateLimitPoolSourceRequest) GotenValidate() error {
    49  	if obj == nil {
    50  		return nil
    51  	}
    52  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
    53  		return cvobj.GotenCustomValidate()
    54  	}
    55  	return nil
    56  }