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

     1  // Code generated by protoc-gen-goten-validate
     2  // File: edgelq/logging/proto/v1/log.proto
     3  // DO NOT EDIT!!!
     4  
     5  package log
     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  	iam_project "github.com/cloudwan/edgelq-sdk/iam/resources/v1/project"
    25  	bucket "github.com/cloudwan/edgelq-sdk/logging/resources/v1/bucket"
    26  	log_descriptor "github.com/cloudwan/edgelq-sdk/logging/resources/v1/log_descriptor"
    27  	meta_service "github.com/cloudwan/goten-sdk/meta-service/resources/v1/service"
    28  	anypb "google.golang.org/protobuf/types/known/anypb"
    29  	structpb "google.golang.org/protobuf/types/known/structpb"
    30  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    31  )
    32  
    33  var (
    34  	_ = bytes.Equal
    35  	_ = errors.New
    36  	_ = fmt.Errorf
    37  	_ = net.ParseIP
    38  	_ = regexp.Match
    39  	_ = strings.Split
    40  	_ = time.Now
    41  	_ = utf8.RuneCountInString
    42  	_ = url.Parse
    43  	_ = gotenvalidate.NewValidationError
    44  )
    45  
    46  // make sure we're using proto imports
    47  var (
    48  	_ = &iam_organization.Organization{}
    49  	_ = &iam_project.Project{}
    50  	_ = &bucket.Bucket{}
    51  	_ = &log_descriptor.LogDescriptor{}
    52  	_ = &anypb.Any{}
    53  	_ = &structpb.Struct{}
    54  	_ = &timestamppb.Timestamp{}
    55  	_ = &meta_service.Service{}
    56  )
    57  
    58  func (obj *Log) GotenValidate() error {
    59  	if obj == nil {
    60  		return nil
    61  	}
    62  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
    63  		return cvobj.GotenCustomValidate()
    64  	}
    65  	return nil
    66  }