github.com/cloudwan/edgelq-sdk@v1.15.4/monitoring/client/v4/time_serie/time_serie_custom.pb.validate.go (about)

     1  // Code generated by protoc-gen-goten-validate
     2  // File: edgelq/monitoring/proto/v4/time_serie_custom.proto
     3  // DO NOT EDIT!!!
     4  
     5  package time_serie_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  	rpc "github.com/cloudwan/edgelq-sdk/common/rpc"
    24  	common "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/common"
    25  	project "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/project"
    26  	time_serie "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/time_serie"
    27  	meta_service "github.com/cloudwan/goten-sdk/meta-service/resources/v1/service"
    28  	durationpb "google.golang.org/protobuf/types/known/durationpb"
    29  	fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
    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  	_ = &rpc.Status{}
    49  	_ = &common.LabelDescriptor{}
    50  	_ = &project.Project{}
    51  	_ = &time_serie.Point{}
    52  	_ = &durationpb.Duration{}
    53  	_ = &fieldmaskpb.FieldMask{}
    54  	_ = &timestamppb.Timestamp{}
    55  	_ = &meta_service.Service{}
    56  )
    57  
    58  func (obj *ListTimeSeriesRequest) GotenValidate() error {
    59  	if obj == nil {
    60  		return nil
    61  	}
    62  	if obj.Interval == nil {
    63  		return gotenvalidate.NewValidationError("ListTimeSeriesRequest", "interval", obj.Interval, "field is required", nil)
    64  	}
    65  	if subobj, ok := interface{}(obj.Interval).(gotenvalidate.Validator); ok {
    66  		if err := subobj.GotenValidate(); err != nil {
    67  			return gotenvalidate.NewValidationError("ListTimeSeriesRequest", "interval", obj.Interval, "nested object validation failed", err)
    68  		}
    69  	}
    70  	if subobj, ok := interface{}(obj.Aggregation).(gotenvalidate.Validator); ok {
    71  		if err := subobj.GotenValidate(); err != nil {
    72  			return gotenvalidate.NewValidationError("ListTimeSeriesRequest", "aggregation", obj.Aggregation, "nested object validation failed", err)
    73  		}
    74  	}
    75  	if subobj, ok := interface{}(obj.Pagination).(gotenvalidate.Validator); ok {
    76  		if err := subobj.GotenValidate(); err != nil {
    77  			return gotenvalidate.NewValidationError("ListTimeSeriesRequest", "pagination", obj.Pagination, "nested object validation failed", err)
    78  		}
    79  	}
    80  	if !(obj.PointsCap >= 0 && obj.PointsCap <= 100000) {
    81  		return gotenvalidate.NewValidationError("ListTimeSeriesRequest", "pointsCap", obj.PointsCap, "field must be in range [0, 100000]", nil)
    82  	}
    83  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
    84  		return cvobj.GotenCustomValidate()
    85  	}
    86  	return nil
    87  }
    88  func (obj *ListTimeSeriesResponse) GotenValidate() error {
    89  	if obj == nil {
    90  		return nil
    91  	}
    92  	for idx, elem := range obj.TimeSeries {
    93  		if subobj, ok := interface{}(elem).(gotenvalidate.Validator); ok {
    94  			if err := subobj.GotenValidate(); err != nil {
    95  				return gotenvalidate.NewValidationError("ListTimeSeriesResponse", "timeSeries", obj.TimeSeries[idx], "nested object validation failed", err)
    96  			}
    97  		}
    98  	}
    99  	for idx, elem := range obj.ExecutionErrors {
   100  		if subobj, ok := interface{}(elem).(gotenvalidate.Validator); ok {
   101  			if err := subobj.GotenValidate(); err != nil {
   102  				return gotenvalidate.NewValidationError("ListTimeSeriesResponse", "executionErrors", obj.ExecutionErrors[idx], "nested object validation failed", err)
   103  			}
   104  		}
   105  	}
   106  	for idx, elem := range obj.TotalPointCounters {
   107  		if subobj, ok := interface{}(elem).(gotenvalidate.Validator); ok {
   108  			if err := subobj.GotenValidate(); err != nil {
   109  				return gotenvalidate.NewValidationError("ListTimeSeriesResponse", "totalPointCounters", obj.TotalPointCounters[idx], "nested object validation failed", err)
   110  			}
   111  		}
   112  	}
   113  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   114  		return cvobj.GotenCustomValidate()
   115  	}
   116  	return nil
   117  }
   118  func (obj *ListTimeSeriesResponse_ErrorDetails) GotenValidate() error {
   119  	if obj == nil {
   120  		return nil
   121  	}
   122  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   123  		return cvobj.GotenCustomValidate()
   124  	}
   125  	return nil
   126  }
   127  func (obj *CreateTimeSeriesRequest) GotenValidate() error {
   128  	if obj == nil {
   129  		return nil
   130  	}
   131  	for idx, elem := range obj.TimeSeries {
   132  		if subobj, ok := interface{}(elem).(gotenvalidate.Validator); ok {
   133  			if err := subobj.GotenValidate(); err != nil {
   134  				return gotenvalidate.NewValidationError("CreateTimeSeriesRequest", "timeSeries", obj.TimeSeries[idx], "nested object validation failed", err)
   135  			}
   136  		}
   137  	}
   138  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   139  		return cvobj.GotenCustomValidate()
   140  	}
   141  	return nil
   142  }
   143  func (obj *CreateTimeSeriesResponse) GotenValidate() error {
   144  	if obj == nil {
   145  		return nil
   146  	}
   147  	for idx, elem := range obj.FailedTimeSeries {
   148  		if subobj, ok := interface{}(elem).(gotenvalidate.Validator); ok {
   149  			if err := subobj.GotenValidate(); err != nil {
   150  				return gotenvalidate.NewValidationError("CreateTimeSeriesResponse", "failedTimeSeries", obj.FailedTimeSeries[idx], "nested object validation failed", err)
   151  			}
   152  		}
   153  	}
   154  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   155  		return cvobj.GotenCustomValidate()
   156  	}
   157  	return nil
   158  }
   159  func (obj *CreateTimeSeriesError) GotenValidate() error {
   160  	if obj == nil {
   161  		return nil
   162  	}
   163  	if subobj, ok := interface{}(obj.TimeSeries).(gotenvalidate.Validator); ok {
   164  		if err := subobj.GotenValidate(); err != nil {
   165  			return gotenvalidate.NewValidationError("CreateTimeSeriesError", "timeSeries", obj.TimeSeries, "nested object validation failed", err)
   166  		}
   167  	}
   168  	if subobj, ok := interface{}(obj.Status).(gotenvalidate.Validator); ok {
   169  		if err := subobj.GotenValidate(); err != nil {
   170  			return gotenvalidate.NewValidationError("CreateTimeSeriesError", "status", obj.Status, "nested object validation failed", err)
   171  		}
   172  	}
   173  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   174  		return cvobj.GotenCustomValidate()
   175  	}
   176  	return nil
   177  }
   178  func (obj *StatsQuery) GotenValidate() error {
   179  	if obj == nil {
   180  		return nil
   181  	}
   182  	switch opt := obj.Request.(type) {
   183  	case *StatsQuery_CallLatencies_:
   184  		if subobj, ok := interface{}(opt.CallLatencies).(gotenvalidate.Validator); ok {
   185  			if err := subobj.GotenValidate(); err != nil {
   186  				return gotenvalidate.NewValidationError("StatsQuery", "callLatencies", opt.CallLatencies, "nested object validation failed", err)
   187  			}
   188  		}
   189  	case *StatsQuery_ExecutedCalls_:
   190  		if subobj, ok := interface{}(opt.ExecutedCalls).(gotenvalidate.Validator); ok {
   191  			if err := subobj.GotenValidate(); err != nil {
   192  				return gotenvalidate.NewValidationError("StatsQuery", "executedCalls", opt.ExecutedCalls, "nested object validation failed", err)
   193  			}
   194  		}
   195  	case *StatsQuery_OpenCalls_:
   196  		if subobj, ok := interface{}(opt.OpenCalls).(gotenvalidate.Validator); ok {
   197  			if err := subobj.GotenValidate(); err != nil {
   198  				return gotenvalidate.NewValidationError("StatsQuery", "openCalls", opt.OpenCalls, "nested object validation failed", err)
   199  			}
   200  		}
   201  	case *StatsQuery_ErrorCounts_:
   202  		if subobj, ok := interface{}(opt.ErrorCounts).(gotenvalidate.Validator); ok {
   203  			if err := subobj.GotenValidate(); err != nil {
   204  				return gotenvalidate.NewValidationError("StatsQuery", "errorCounts", opt.ErrorCounts, "nested object validation failed", err)
   205  			}
   206  		}
   207  	case *StatsQuery_IngressThroughput_:
   208  		if subobj, ok := interface{}(opt.IngressThroughput).(gotenvalidate.Validator); ok {
   209  			if err := subobj.GotenValidate(); err != nil {
   210  				return gotenvalidate.NewValidationError("StatsQuery", "ingressThroughput", opt.IngressThroughput, "nested object validation failed", err)
   211  			}
   212  		}
   213  	case *StatsQuery_EgressThroughput_:
   214  		if subobj, ok := interface{}(opt.EgressThroughput).(gotenvalidate.Validator); ok {
   215  			if err := subobj.GotenValidate(); err != nil {
   216  				return gotenvalidate.NewValidationError("StatsQuery", "egressThroughput", opt.EgressThroughput, "nested object validation failed", err)
   217  			}
   218  		}
   219  	case *StatsQuery_StoreUsage:
   220  		if subobj, ok := interface{}(opt.StoreUsage).(gotenvalidate.Validator); ok {
   221  			if err := subobj.GotenValidate(); err != nil {
   222  				return gotenvalidate.NewValidationError("StatsQuery", "storeUsage", opt.StoreUsage, "nested object validation failed", err)
   223  			}
   224  		}
   225  	case *StatsQuery_ResourceCount_:
   226  		if subobj, ok := interface{}(opt.ResourceCount).(gotenvalidate.Validator); ok {
   227  			if err := subobj.GotenValidate(); err != nil {
   228  				return gotenvalidate.NewValidationError("StatsQuery", "resourceCount", opt.ResourceCount, "nested object validation failed", err)
   229  			}
   230  		}
   231  	case *StatsQuery_LogsUsage:
   232  		if subobj, ok := interface{}(opt.LogsUsage).(gotenvalidate.Validator); ok {
   233  			if err := subobj.GotenValidate(); err != nil {
   234  				return gotenvalidate.NewValidationError("StatsQuery", "logsUsage", opt.LogsUsage, "nested object validation failed", err)
   235  			}
   236  		}
   237  	case *StatsQuery_ActivityLogsUsage:
   238  		if subobj, ok := interface{}(opt.ActivityLogsUsage).(gotenvalidate.Validator); ok {
   239  			if err := subobj.GotenValidate(); err != nil {
   240  				return gotenvalidate.NewValidationError("StatsQuery", "activityLogsUsage", opt.ActivityLogsUsage, "nested object validation failed", err)
   241  			}
   242  		}
   243  	case *StatsQuery_ResourceChangeLogsUsage:
   244  		if subobj, ok := interface{}(opt.ResourceChangeLogsUsage).(gotenvalidate.Validator); ok {
   245  			if err := subobj.GotenValidate(); err != nil {
   246  				return gotenvalidate.NewValidationError("StatsQuery", "resourceChangeLogsUsage", opt.ResourceChangeLogsUsage, "nested object validation failed", err)
   247  			}
   248  		}
   249  	case *StatsQuery_TimeSeriesUsage:
   250  		if subobj, ok := interface{}(opt.TimeSeriesUsage).(gotenvalidate.Validator); ok {
   251  			if err := subobj.GotenValidate(); err != nil {
   252  				return gotenvalidate.NewValidationError("StatsQuery", "timeSeriesUsage", opt.TimeSeriesUsage, "nested object validation failed", err)
   253  			}
   254  		}
   255  	case *StatsQuery_TimeSeriesLatencies_:
   256  		if subobj, ok := interface{}(opt.TimeSeriesLatencies).(gotenvalidate.Validator); ok {
   257  			if err := subobj.GotenValidate(); err != nil {
   258  				return gotenvalidate.NewValidationError("StatsQuery", "timeSeriesLatencies", opt.TimeSeriesLatencies, "nested object validation failed", err)
   259  			}
   260  		}
   261  	default:
   262  		_ = opt
   263  	}
   264  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   265  		return cvobj.GotenCustomValidate()
   266  	}
   267  	return nil
   268  }
   269  func (obj *StatsQuery_CallLatencies) GotenValidate() error {
   270  	if obj == nil {
   271  		return nil
   272  	}
   273  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   274  		return cvobj.GotenCustomValidate()
   275  	}
   276  	return nil
   277  }
   278  func (obj *StatsQuery_ExecutedCalls) GotenValidate() error {
   279  	if obj == nil {
   280  		return nil
   281  	}
   282  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   283  		return cvobj.GotenCustomValidate()
   284  	}
   285  	return nil
   286  }
   287  func (obj *StatsQuery_OpenCalls) GotenValidate() error {
   288  	if obj == nil {
   289  		return nil
   290  	}
   291  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   292  		return cvobj.GotenCustomValidate()
   293  	}
   294  	return nil
   295  }
   296  func (obj *StatsQuery_ErrorCounts) GotenValidate() error {
   297  	if obj == nil {
   298  		return nil
   299  	}
   300  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   301  		return cvobj.GotenCustomValidate()
   302  	}
   303  	return nil
   304  }
   305  func (obj *StatsQuery_IngressThroughput) GotenValidate() error {
   306  	if obj == nil {
   307  		return nil
   308  	}
   309  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   310  		return cvobj.GotenCustomValidate()
   311  	}
   312  	return nil
   313  }
   314  func (obj *StatsQuery_EgressThroughput) GotenValidate() error {
   315  	if obj == nil {
   316  		return nil
   317  	}
   318  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   319  		return cvobj.GotenCustomValidate()
   320  	}
   321  	return nil
   322  }
   323  func (obj *StatsQuery_StoreOperations) GotenValidate() error {
   324  	if obj == nil {
   325  		return nil
   326  	}
   327  	if len(obj.Operations) < 1 {
   328  		return gotenvalidate.NewValidationError("StoreOperations", "operations", obj.Operations, "field must have at least 1 items", nil)
   329  	}
   330  	for _, el := range obj.Operations {
   331  
   332  		if _, ok := StatsQuery_StoreOperations_Operation_name[int32(el)]; !ok {
   333  			return gotenvalidate.NewValidationError("StoreOperations", "operations", el, "field must be a defined enum value", nil)
   334  		}
   335  	}
   336  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   337  		return cvobj.GotenCustomValidate()
   338  	}
   339  	return nil
   340  }
   341  func (obj *StatsQuery_ResourceCount) GotenValidate() error {
   342  	if obj == nil {
   343  		return nil
   344  	}
   345  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   346  		return cvobj.GotenCustomValidate()
   347  	}
   348  	return nil
   349  }
   350  func (obj *StatsQuery_Logs) GotenValidate() error {
   351  	if obj == nil {
   352  		return nil
   353  	}
   354  	if _, ok := StatsQuery_Logs_Type_name[int32(obj.Type)]; !ok {
   355  		return gotenvalidate.NewValidationError("Logs", "type", obj.Type, "field must be a defined enum value", nil)
   356  	}
   357  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   358  		return cvobj.GotenCustomValidate()
   359  	}
   360  	return nil
   361  }
   362  func (obj *StatsQuery_ActivityLogs) GotenValidate() error {
   363  	if obj == nil {
   364  		return nil
   365  	}
   366  	if _, ok := StatsQuery_ActivityLogs_Type_name[int32(obj.Type)]; !ok {
   367  		return gotenvalidate.NewValidationError("ActivityLogs", "type", obj.Type, "field must be a defined enum value", nil)
   368  	}
   369  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   370  		return cvobj.GotenCustomValidate()
   371  	}
   372  	return nil
   373  }
   374  func (obj *StatsQuery_ResourceChangeLogs) GotenValidate() error {
   375  	if obj == nil {
   376  		return nil
   377  	}
   378  	if _, ok := StatsQuery_ResourceChangeLogs_Type_name[int32(obj.Type)]; !ok {
   379  		return gotenvalidate.NewValidationError("ResourceChangeLogs", "type", obj.Type, "field must be a defined enum value", nil)
   380  	}
   381  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   382  		return cvobj.GotenCustomValidate()
   383  	}
   384  	return nil
   385  }
   386  func (obj *StatsQuery_TimeSeries) GotenValidate() error {
   387  	if obj == nil {
   388  		return nil
   389  	}
   390  	if _, ok := StatsQuery_TimeSeries_Type_name[int32(obj.Type)]; !ok {
   391  		return gotenvalidate.NewValidationError("TimeSeries", "type", obj.Type, "field must be a defined enum value", nil)
   392  	}
   393  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   394  		return cvobj.GotenCustomValidate()
   395  	}
   396  	return nil
   397  }
   398  func (obj *StatsQuery_TimeSeriesLatencies) GotenValidate() error {
   399  	if obj == nil {
   400  		return nil
   401  	}
   402  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   403  		return cvobj.GotenCustomValidate()
   404  	}
   405  	return nil
   406  }
   407  func (obj *QueryProjectTimeSeriesStatsRequest) GotenValidate() error {
   408  	if obj == nil {
   409  		return nil
   410  	}
   411  	if obj.Service == "" {
   412  		return gotenvalidate.NewValidationError("QueryProjectTimeSeriesStatsRequest", "service", obj.Service, "field is required", nil)
   413  	}
   414  	if obj.RegionId == "" {
   415  		return gotenvalidate.NewValidationError("QueryProjectTimeSeriesStatsRequest", "regionId", obj.RegionId, "field is required", nil)
   416  	}
   417  	if obj.Interval == nil {
   418  		return gotenvalidate.NewValidationError("QueryProjectTimeSeriesStatsRequest", "interval", obj.Interval, "field is required", nil)
   419  	}
   420  	if subobj, ok := interface{}(obj.Interval).(gotenvalidate.Validator); ok {
   421  		if err := subobj.GotenValidate(); err != nil {
   422  			return gotenvalidate.NewValidationError("QueryProjectTimeSeriesStatsRequest", "interval", obj.Interval, "nested object validation failed", err)
   423  		}
   424  	}
   425  	if !(obj.PageSize >= 0 && obj.PageSize <= 100000) {
   426  		return gotenvalidate.NewValidationError("QueryProjectTimeSeriesStatsRequest", "pageSize", obj.PageSize, "field must be in range [0, 100000]", nil)
   427  	}
   428  	if obj.Query == nil {
   429  		return gotenvalidate.NewValidationError("QueryProjectTimeSeriesStatsRequest", "query", obj.Query, "field is required", nil)
   430  	}
   431  	if subobj, ok := interface{}(obj.Query).(gotenvalidate.Validator); ok {
   432  		if err := subobj.GotenValidate(); err != nil {
   433  			return gotenvalidate.NewValidationError("QueryProjectTimeSeriesStatsRequest", "query", obj.Query, "nested object validation failed", err)
   434  		}
   435  	}
   436  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   437  		return cvobj.GotenCustomValidate()
   438  	}
   439  	return nil
   440  }
   441  func (obj *QueryProjectTimeSeriesStatsResponse) GotenValidate() error {
   442  	if obj == nil {
   443  		return nil
   444  	}
   445  	for idx, elem := range obj.TimeSeries {
   446  		if subobj, ok := interface{}(elem).(gotenvalidate.Validator); ok {
   447  			if err := subobj.GotenValidate(); err != nil {
   448  				return gotenvalidate.NewValidationError("QueryProjectTimeSeriesStatsResponse", "timeSeries", obj.TimeSeries[idx], "nested object validation failed", err)
   449  			}
   450  		}
   451  	}
   452  	for idx, elem := range obj.ExecutionErrors {
   453  		if subobj, ok := interface{}(elem).(gotenvalidate.Validator); ok {
   454  			if err := subobj.GotenValidate(); err != nil {
   455  				return gotenvalidate.NewValidationError("QueryProjectTimeSeriesStatsResponse", "executionErrors", obj.ExecutionErrors[idx], "nested object validation failed", err)
   456  			}
   457  		}
   458  	}
   459  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   460  		return cvobj.GotenCustomValidate()
   461  	}
   462  	return nil
   463  }
   464  func (obj *QueryProjectTimeSeriesStatsResponse_ErrorDetails) GotenValidate() error {
   465  	if obj == nil {
   466  		return nil
   467  	}
   468  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   469  		return cvobj.GotenCustomValidate()
   470  	}
   471  	return nil
   472  }
   473  func (obj *QueryServiceTimeSeriesStatsRequest) GotenValidate() error {
   474  	if obj == nil {
   475  		return nil
   476  	}
   477  	if obj.RegionId == "" {
   478  		return gotenvalidate.NewValidationError("QueryServiceTimeSeriesStatsRequest", "regionId", obj.RegionId, "field is required", nil)
   479  	}
   480  	if obj.Interval == nil {
   481  		return gotenvalidate.NewValidationError("QueryServiceTimeSeriesStatsRequest", "interval", obj.Interval, "field is required", nil)
   482  	}
   483  	if subobj, ok := interface{}(obj.Interval).(gotenvalidate.Validator); ok {
   484  		if err := subobj.GotenValidate(); err != nil {
   485  			return gotenvalidate.NewValidationError("QueryServiceTimeSeriesStatsRequest", "interval", obj.Interval, "nested object validation failed", err)
   486  		}
   487  	}
   488  	if !(obj.PageSize >= 0 && obj.PageSize <= 100000) {
   489  		return gotenvalidate.NewValidationError("QueryServiceTimeSeriesStatsRequest", "pageSize", obj.PageSize, "field must be in range [0, 100000]", nil)
   490  	}
   491  	if obj.Query == nil {
   492  		return gotenvalidate.NewValidationError("QueryServiceTimeSeriesStatsRequest", "query", obj.Query, "field is required", nil)
   493  	}
   494  	if subobj, ok := interface{}(obj.Query).(gotenvalidate.Validator); ok {
   495  		if err := subobj.GotenValidate(); err != nil {
   496  			return gotenvalidate.NewValidationError("QueryServiceTimeSeriesStatsRequest", "query", obj.Query, "nested object validation failed", err)
   497  		}
   498  	}
   499  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   500  		return cvobj.GotenCustomValidate()
   501  	}
   502  	return nil
   503  }
   504  func (obj *QueryServiceTimeSeriesStatsResponse) GotenValidate() error {
   505  	if obj == nil {
   506  		return nil
   507  	}
   508  	for idx, elem := range obj.TimeSeries {
   509  		if subobj, ok := interface{}(elem).(gotenvalidate.Validator); ok {
   510  			if err := subobj.GotenValidate(); err != nil {
   511  				return gotenvalidate.NewValidationError("QueryServiceTimeSeriesStatsResponse", "timeSeries", obj.TimeSeries[idx], "nested object validation failed", err)
   512  			}
   513  		}
   514  	}
   515  	for idx, elem := range obj.ExecutionErrors {
   516  		if subobj, ok := interface{}(elem).(gotenvalidate.Validator); ok {
   517  			if err := subobj.GotenValidate(); err != nil {
   518  				return gotenvalidate.NewValidationError("QueryServiceTimeSeriesStatsResponse", "executionErrors", obj.ExecutionErrors[idx], "nested object validation failed", err)
   519  			}
   520  		}
   521  	}
   522  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   523  		return cvobj.GotenCustomValidate()
   524  	}
   525  	return nil
   526  }
   527  func (obj *QueryServiceTimeSeriesStatsResponse_ErrorDetails) GotenValidate() error {
   528  	if obj == nil {
   529  		return nil
   530  	}
   531  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   532  		return cvobj.GotenCustomValidate()
   533  	}
   534  	return nil
   535  }
   536  func (obj *WatchTimeSeriesRequest) GotenValidate() error {
   537  	if obj == nil {
   538  		return nil
   539  	}
   540  	if subobj, ok := interface{}(obj.Aggregation).(gotenvalidate.Validator); ok {
   541  		if err := subobj.GotenValidate(); err != nil {
   542  			return gotenvalidate.NewValidationError("WatchTimeSeriesRequest", "aggregation", obj.Aggregation, "nested object validation failed", err)
   543  		}
   544  	}
   545  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   546  		return cvobj.GotenCustomValidate()
   547  	}
   548  	return nil
   549  }
   550  func (obj *WatchTimeSeriesResponse) GotenValidate() error {
   551  	if obj == nil {
   552  		return nil
   553  	}
   554  	for idx, elem := range obj.TimeSeries {
   555  		if subobj, ok := interface{}(elem).(gotenvalidate.Validator); ok {
   556  			if err := subobj.GotenValidate(); err != nil {
   557  				return gotenvalidate.NewValidationError("WatchTimeSeriesResponse", "timeSeries", obj.TimeSeries[idx], "nested object validation failed", err)
   558  			}
   559  		}
   560  	}
   561  	if cvobj, ok := interface{}(obj).(gotenvalidate.CustomValidator); ok {
   562  		return cvobj.GotenCustomValidate()
   563  	}
   564  	return nil
   565  }