github.com/cloudwan/edgelq-sdk@v1.15.4/monitoring/resources/v3/alerting_condition/alerting_condition.pb.object_ext.go (about)

     1  // Code generated by protoc-gen-goten-object
     2  // File: edgelq/monitoring/proto/v3/alerting_condition.proto
     3  // DO NOT EDIT!!!
     4  
     5  package alerting_condition
     6  
     7  import (
     8  	"fmt"
     9  	"sort"
    10  
    11  	"google.golang.org/protobuf/proto"
    12  	googlefieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
    13  
    14  	gotenobject "github.com/cloudwan/goten-sdk/runtime/object"
    15  )
    16  
    17  // proto imports
    18  import (
    19  	alerting_policy "github.com/cloudwan/edgelq-sdk/monitoring/resources/v3/alerting_policy"
    20  	common "github.com/cloudwan/edgelq-sdk/monitoring/resources/v3/common"
    21  	meta "github.com/cloudwan/goten-sdk/types/meta"
    22  	durationpb "google.golang.org/protobuf/types/known/durationpb"
    23  )
    24  
    25  // ensure the imports are used
    26  var (
    27  	_ = new(fmt.Stringer)
    28  	_ = new(sort.Interface)
    29  
    30  	_ = new(proto.Message)
    31  	_ = googlefieldmaskpb.FieldMask{}
    32  
    33  	_ = new(gotenobject.FieldPath)
    34  )
    35  
    36  // make sure we're using proto imports
    37  var (
    38  	_ = &alerting_policy.AlertingPolicy{}
    39  	_ = &common.LabelDescriptor{}
    40  	_ = &durationpb.Duration{}
    41  	_ = &meta.Meta{}
    42  )
    43  
    44  func (o *AlertingCondition) GotenObjectExt() {}
    45  
    46  func (o *AlertingCondition) MakeFullFieldMask() *AlertingCondition_FieldMask {
    47  	return FullAlertingCondition_FieldMask()
    48  }
    49  
    50  func (o *AlertingCondition) MakeRawFullFieldMask() gotenobject.FieldMask {
    51  	return FullAlertingCondition_FieldMask()
    52  }
    53  
    54  func (o *AlertingCondition) MakeDiffFieldMask(other *AlertingCondition) *AlertingCondition_FieldMask {
    55  	if o == nil && other == nil {
    56  		return &AlertingCondition_FieldMask{}
    57  	}
    58  	if o == nil || other == nil {
    59  		return FullAlertingCondition_FieldMask()
    60  	}
    61  
    62  	res := &AlertingCondition_FieldMask{}
    63  	if o.GetName().String() != other.GetName().String() {
    64  		res.Paths = append(res.Paths, &AlertingCondition_FieldTerminalPath{selector: AlertingCondition_FieldPathSelectorName})
    65  	}
    66  	{
    67  		subMask := o.GetMetadata().MakeDiffFieldMask(other.GetMetadata())
    68  		if subMask.IsFull() {
    69  			res.Paths = append(res.Paths, &AlertingCondition_FieldTerminalPath{selector: AlertingCondition_FieldPathSelectorMetadata})
    70  		} else {
    71  			for _, subpath := range subMask.Paths {
    72  				res.Paths = append(res.Paths, &AlertingCondition_FieldSubPath{selector: AlertingCondition_FieldPathSelectorMetadata, subPath: subpath})
    73  			}
    74  		}
    75  	}
    76  	if o.GetDisplayName() != other.GetDisplayName() {
    77  		res.Paths = append(res.Paths, &AlertingCondition_FieldTerminalPath{selector: AlertingCondition_FieldPathSelectorDisplayName})
    78  	}
    79  	if o.GetDescription() != other.GetDescription() {
    80  		res.Paths = append(res.Paths, &AlertingCondition_FieldTerminalPath{selector: AlertingCondition_FieldPathSelectorDescription})
    81  	}
    82  	{
    83  		subMask := o.GetSpec().MakeDiffFieldMask(other.GetSpec())
    84  		if subMask.IsFull() {
    85  			res.Paths = append(res.Paths, &AlertingCondition_FieldTerminalPath{selector: AlertingCondition_FieldPathSelectorSpec})
    86  		} else {
    87  			for _, subpath := range subMask.Paths {
    88  				res.Paths = append(res.Paths, &AlertingCondition_FieldSubPath{selector: AlertingCondition_FieldPathSelectorSpec, subPath: subpath})
    89  			}
    90  		}
    91  	}
    92  	{
    93  		subMask := o.GetState().MakeDiffFieldMask(other.GetState())
    94  		if subMask.IsFull() {
    95  			res.Paths = append(res.Paths, &AlertingCondition_FieldTerminalPath{selector: AlertingCondition_FieldPathSelectorState})
    96  		} else {
    97  			for _, subpath := range subMask.Paths {
    98  				res.Paths = append(res.Paths, &AlertingCondition_FieldSubPath{selector: AlertingCondition_FieldPathSelectorState, subPath: subpath})
    99  			}
   100  		}
   101  	}
   102  	return res
   103  }
   104  
   105  func (o *AlertingCondition) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask {
   106  	return o.MakeDiffFieldMask(other.(*AlertingCondition))
   107  }
   108  
   109  func (o *AlertingCondition) Clone() *AlertingCondition {
   110  	if o == nil {
   111  		return nil
   112  	}
   113  	result := &AlertingCondition{}
   114  	if o.Name == nil {
   115  		result.Name = nil
   116  	} else if data, err := o.Name.ProtoString(); err != nil {
   117  		panic(err)
   118  	} else {
   119  		result.Name = &Name{}
   120  		if err := result.Name.ParseProtoString(data); err != nil {
   121  			panic(err)
   122  		}
   123  	}
   124  	result.Metadata = o.Metadata.Clone()
   125  	result.DisplayName = o.DisplayName
   126  	result.Description = o.Description
   127  	result.Spec = o.Spec.Clone()
   128  	result.State = o.State.Clone()
   129  	return result
   130  }
   131  
   132  func (o *AlertingCondition) CloneRaw() gotenobject.GotenObjectExt {
   133  	return o.Clone()
   134  }
   135  
   136  func (o *AlertingCondition) Merge(source *AlertingCondition) {
   137  	if source.GetName() != nil {
   138  		if data, err := source.GetName().ProtoString(); err != nil {
   139  			panic(err)
   140  		} else {
   141  			o.Name = &Name{}
   142  			if err := o.Name.ParseProtoString(data); err != nil {
   143  				panic(err)
   144  			}
   145  		}
   146  	} else {
   147  		o.Name = nil
   148  	}
   149  	if source.GetMetadata() != nil {
   150  		if o.Metadata == nil {
   151  			o.Metadata = new(meta.Meta)
   152  		}
   153  		o.Metadata.Merge(source.GetMetadata())
   154  	}
   155  	o.DisplayName = source.GetDisplayName()
   156  	o.Description = source.GetDescription()
   157  	if source.GetSpec() != nil {
   158  		if o.Spec == nil {
   159  			o.Spec = new(AlertingCondition_Spec)
   160  		}
   161  		o.Spec.Merge(source.GetSpec())
   162  	}
   163  	if source.GetState() != nil {
   164  		if o.State == nil {
   165  			o.State = new(AlertingCondition_State)
   166  		}
   167  		o.State.Merge(source.GetState())
   168  	}
   169  }
   170  
   171  func (o *AlertingCondition) MergeRaw(source gotenobject.GotenObjectExt) {
   172  	o.Merge(source.(*AlertingCondition))
   173  }
   174  
   175  func (o *AlertingCondition_Spec) GotenObjectExt() {}
   176  
   177  func (o *AlertingCondition_Spec) MakeFullFieldMask() *AlertingCondition_Spec_FieldMask {
   178  	return FullAlertingCondition_Spec_FieldMask()
   179  }
   180  
   181  func (o *AlertingCondition_Spec) MakeRawFullFieldMask() gotenobject.FieldMask {
   182  	return FullAlertingCondition_Spec_FieldMask()
   183  }
   184  
   185  func (o *AlertingCondition_Spec) MakeDiffFieldMask(other *AlertingCondition_Spec) *AlertingCondition_Spec_FieldMask {
   186  	if o == nil && other == nil {
   187  		return &AlertingCondition_Spec_FieldMask{}
   188  	}
   189  	if o == nil || other == nil {
   190  		return FullAlertingCondition_Spec_FieldMask()
   191  	}
   192  
   193  	res := &AlertingCondition_Spec_FieldMask{}
   194  	{
   195  		subMask := o.GetTimeSeries().MakeDiffFieldMask(other.GetTimeSeries())
   196  		if subMask.IsFull() {
   197  			res.Paths = append(res.Paths, &AlertingConditionSpec_FieldTerminalPath{selector: AlertingConditionSpec_FieldPathSelectorTimeSeries})
   198  		} else {
   199  			for _, subpath := range subMask.Paths {
   200  				res.Paths = append(res.Paths, &AlertingConditionSpec_FieldSubPath{selector: AlertingConditionSpec_FieldPathSelectorTimeSeries, subPath: subpath})
   201  			}
   202  		}
   203  	}
   204  	{
   205  		subMask := o.GetTrigger().MakeDiffFieldMask(other.GetTrigger())
   206  		if subMask.IsFull() {
   207  			res.Paths = append(res.Paths, &AlertingConditionSpec_FieldTerminalPath{selector: AlertingConditionSpec_FieldPathSelectorTrigger})
   208  		} else {
   209  			for _, subpath := range subMask.Paths {
   210  				res.Paths = append(res.Paths, &AlertingConditionSpec_FieldSubPath{selector: AlertingConditionSpec_FieldPathSelectorTrigger, subPath: subpath})
   211  			}
   212  		}
   213  	}
   214  	return res
   215  }
   216  
   217  func (o *AlertingCondition_Spec) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask {
   218  	return o.MakeDiffFieldMask(other.(*AlertingCondition_Spec))
   219  }
   220  
   221  func (o *AlertingCondition_Spec) Clone() *AlertingCondition_Spec {
   222  	if o == nil {
   223  		return nil
   224  	}
   225  	result := &AlertingCondition_Spec{}
   226  	result.TimeSeries = o.TimeSeries.Clone()
   227  	result.Trigger = o.Trigger.Clone()
   228  	return result
   229  }
   230  
   231  func (o *AlertingCondition_Spec) CloneRaw() gotenobject.GotenObjectExt {
   232  	return o.Clone()
   233  }
   234  
   235  func (o *AlertingCondition_Spec) Merge(source *AlertingCondition_Spec) {
   236  	if source.GetTimeSeries() != nil {
   237  		if o.TimeSeries == nil {
   238  			o.TimeSeries = new(AlertingCondition_Spec_TimeSeries)
   239  		}
   240  		o.TimeSeries.Merge(source.GetTimeSeries())
   241  	}
   242  	if source.GetTrigger() != nil {
   243  		if o.Trigger == nil {
   244  			o.Trigger = new(AlertingCondition_Spec_Trigger)
   245  		}
   246  		o.Trigger.Merge(source.GetTrigger())
   247  	}
   248  }
   249  
   250  func (o *AlertingCondition_Spec) MergeRaw(source gotenobject.GotenObjectExt) {
   251  	o.Merge(source.(*AlertingCondition_Spec))
   252  }
   253  
   254  func (o *AlertingCondition_State) GotenObjectExt() {}
   255  
   256  func (o *AlertingCondition_State) MakeFullFieldMask() *AlertingCondition_State_FieldMask {
   257  	return FullAlertingCondition_State_FieldMask()
   258  }
   259  
   260  func (o *AlertingCondition_State) MakeRawFullFieldMask() gotenobject.FieldMask {
   261  	return FullAlertingCondition_State_FieldMask()
   262  }
   263  
   264  func (o *AlertingCondition_State) MakeDiffFieldMask(other *AlertingCondition_State) *AlertingCondition_State_FieldMask {
   265  	if o == nil && other == nil {
   266  		return &AlertingCondition_State_FieldMask{}
   267  	}
   268  	if o == nil || other == nil {
   269  		return FullAlertingCondition_State_FieldMask()
   270  	}
   271  
   272  	res := &AlertingCondition_State_FieldMask{}
   273  	if o.GetFiringAlertsCount() != other.GetFiringAlertsCount() {
   274  		res.Paths = append(res.Paths, &AlertingConditionState_FieldTerminalPath{selector: AlertingConditionState_FieldPathSelectorFiringAlertsCount})
   275  	}
   276  	return res
   277  }
   278  
   279  func (o *AlertingCondition_State) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask {
   280  	return o.MakeDiffFieldMask(other.(*AlertingCondition_State))
   281  }
   282  
   283  func (o *AlertingCondition_State) Clone() *AlertingCondition_State {
   284  	if o == nil {
   285  		return nil
   286  	}
   287  	result := &AlertingCondition_State{}
   288  	result.FiringAlertsCount = o.FiringAlertsCount
   289  	return result
   290  }
   291  
   292  func (o *AlertingCondition_State) CloneRaw() gotenobject.GotenObjectExt {
   293  	return o.Clone()
   294  }
   295  
   296  func (o *AlertingCondition_State) Merge(source *AlertingCondition_State) {
   297  	o.FiringAlertsCount = source.GetFiringAlertsCount()
   298  }
   299  
   300  func (o *AlertingCondition_State) MergeRaw(source gotenobject.GotenObjectExt) {
   301  	o.Merge(source.(*AlertingCondition_State))
   302  }
   303  
   304  func (o *AlertingCondition_Spec_TimeSeries) GotenObjectExt() {}
   305  
   306  func (o *AlertingCondition_Spec_TimeSeries) MakeFullFieldMask() *AlertingCondition_Spec_TimeSeries_FieldMask {
   307  	return FullAlertingCondition_Spec_TimeSeries_FieldMask()
   308  }
   309  
   310  func (o *AlertingCondition_Spec_TimeSeries) MakeRawFullFieldMask() gotenobject.FieldMask {
   311  	return FullAlertingCondition_Spec_TimeSeries_FieldMask()
   312  }
   313  
   314  func (o *AlertingCondition_Spec_TimeSeries) MakeDiffFieldMask(other *AlertingCondition_Spec_TimeSeries) *AlertingCondition_Spec_TimeSeries_FieldMask {
   315  	if o == nil && other == nil {
   316  		return &AlertingCondition_Spec_TimeSeries_FieldMask{}
   317  	}
   318  	if o == nil || other == nil {
   319  		return FullAlertingCondition_Spec_TimeSeries_FieldMask()
   320  	}
   321  
   322  	res := &AlertingCondition_Spec_TimeSeries_FieldMask{}
   323  	{
   324  		subMask := o.GetQuery().MakeDiffFieldMask(other.GetQuery())
   325  		if subMask.IsFull() {
   326  			res.Paths = append(res.Paths, &AlertingConditionSpecTimeSeries_FieldTerminalPath{selector: AlertingConditionSpecTimeSeries_FieldPathSelectorQuery})
   327  		} else {
   328  			for _, subpath := range subMask.Paths {
   329  				res.Paths = append(res.Paths, &AlertingConditionSpecTimeSeries_FieldSubPath{selector: AlertingConditionSpecTimeSeries_FieldPathSelectorQuery, subPath: subpath})
   330  			}
   331  		}
   332  	}
   333  	{
   334  		subMask := o.GetThreshold().MakeDiffFieldMask(other.GetThreshold())
   335  		if subMask.IsFull() {
   336  			res.Paths = append(res.Paths, &AlertingConditionSpecTimeSeries_FieldTerminalPath{selector: AlertingConditionSpecTimeSeries_FieldPathSelectorThreshold})
   337  		} else {
   338  			for _, subpath := range subMask.Paths {
   339  				res.Paths = append(res.Paths, &AlertingConditionSpecTimeSeries_FieldSubPath{selector: AlertingConditionSpecTimeSeries_FieldPathSelectorThreshold, subPath: subpath})
   340  			}
   341  		}
   342  	}
   343  	{
   344  		subMask := o.GetCombineThreshold().MakeDiffFieldMask(other.GetCombineThreshold())
   345  		if subMask.IsFull() {
   346  			res.Paths = append(res.Paths, &AlertingConditionSpecTimeSeries_FieldTerminalPath{selector: AlertingConditionSpecTimeSeries_FieldPathSelectorCombineThreshold})
   347  		} else {
   348  			for _, subpath := range subMask.Paths {
   349  				res.Paths = append(res.Paths, &AlertingConditionSpecTimeSeries_FieldSubPath{selector: AlertingConditionSpecTimeSeries_FieldPathSelectorCombineThreshold, subPath: subpath})
   350  			}
   351  		}
   352  	}
   353  	if !proto.Equal(o.GetDuration(), other.GetDuration()) {
   354  		res.Paths = append(res.Paths, &AlertingConditionSpecTimeSeries_FieldTerminalPath{selector: AlertingConditionSpecTimeSeries_FieldPathSelectorDuration})
   355  	}
   356  	return res
   357  }
   358  
   359  func (o *AlertingCondition_Spec_TimeSeries) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask {
   360  	return o.MakeDiffFieldMask(other.(*AlertingCondition_Spec_TimeSeries))
   361  }
   362  
   363  func (o *AlertingCondition_Spec_TimeSeries) Clone() *AlertingCondition_Spec_TimeSeries {
   364  	if o == nil {
   365  		return nil
   366  	}
   367  	result := &AlertingCondition_Spec_TimeSeries{}
   368  	result.Query = o.Query.Clone()
   369  	result.Threshold = o.Threshold.Clone()
   370  	result.CombineThreshold = o.CombineThreshold.Clone()
   371  	result.Duration = proto.Clone(o.Duration).(*durationpb.Duration)
   372  	return result
   373  }
   374  
   375  func (o *AlertingCondition_Spec_TimeSeries) CloneRaw() gotenobject.GotenObjectExt {
   376  	return o.Clone()
   377  }
   378  
   379  func (o *AlertingCondition_Spec_TimeSeries) Merge(source *AlertingCondition_Spec_TimeSeries) {
   380  	if source.GetQuery() != nil {
   381  		if o.Query == nil {
   382  			o.Query = new(AlertingCondition_Spec_TimeSeries_Query)
   383  		}
   384  		o.Query.Merge(source.GetQuery())
   385  	}
   386  	if source.GetThreshold() != nil {
   387  		if o.Threshold == nil {
   388  			o.Threshold = new(AlertingCondition_Spec_TimeSeries_Threshold)
   389  		}
   390  		o.Threshold.Merge(source.GetThreshold())
   391  	}
   392  	if source.GetCombineThreshold() != nil {
   393  		if o.CombineThreshold == nil {
   394  			o.CombineThreshold = new(AlertingCondition_Spec_TimeSeries_CombineThreshold)
   395  		}
   396  		o.CombineThreshold.Merge(source.GetCombineThreshold())
   397  	}
   398  	if source.GetDuration() != nil {
   399  		if o.Duration == nil {
   400  			o.Duration = new(durationpb.Duration)
   401  		}
   402  		proto.Merge(o.Duration, source.GetDuration())
   403  	}
   404  }
   405  
   406  func (o *AlertingCondition_Spec_TimeSeries) MergeRaw(source gotenobject.GotenObjectExt) {
   407  	o.Merge(source.(*AlertingCondition_Spec_TimeSeries))
   408  }
   409  
   410  func (o *AlertingCondition_Spec_Trigger) GotenObjectExt() {}
   411  
   412  func (o *AlertingCondition_Spec_Trigger) MakeFullFieldMask() *AlertingCondition_Spec_Trigger_FieldMask {
   413  	return FullAlertingCondition_Spec_Trigger_FieldMask()
   414  }
   415  
   416  func (o *AlertingCondition_Spec_Trigger) MakeRawFullFieldMask() gotenobject.FieldMask {
   417  	return FullAlertingCondition_Spec_Trigger_FieldMask()
   418  }
   419  
   420  func (o *AlertingCondition_Spec_Trigger) MakeDiffFieldMask(other *AlertingCondition_Spec_Trigger) *AlertingCondition_Spec_Trigger_FieldMask {
   421  	if o == nil && other == nil {
   422  		return &AlertingCondition_Spec_Trigger_FieldMask{}
   423  	}
   424  	if o == nil || other == nil {
   425  		return FullAlertingCondition_Spec_Trigger_FieldMask()
   426  	}
   427  
   428  	res := &AlertingCondition_Spec_Trigger_FieldMask{}
   429  	if o.GetType() != other.GetType() {
   430  		res.Paths = append(res.Paths, &AlertingConditionSpecTrigger_FieldTerminalPath{selector: AlertingConditionSpecTrigger_FieldPathSelectorType})
   431  	}
   432  	return res
   433  }
   434  
   435  func (o *AlertingCondition_Spec_Trigger) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask {
   436  	return o.MakeDiffFieldMask(other.(*AlertingCondition_Spec_Trigger))
   437  }
   438  
   439  func (o *AlertingCondition_Spec_Trigger) Clone() *AlertingCondition_Spec_Trigger {
   440  	if o == nil {
   441  		return nil
   442  	}
   443  	result := &AlertingCondition_Spec_Trigger{}
   444  	result.Type = o.Type
   445  	return result
   446  }
   447  
   448  func (o *AlertingCondition_Spec_Trigger) CloneRaw() gotenobject.GotenObjectExt {
   449  	return o.Clone()
   450  }
   451  
   452  func (o *AlertingCondition_Spec_Trigger) Merge(source *AlertingCondition_Spec_Trigger) {
   453  	o.Type = source.GetType()
   454  }
   455  
   456  func (o *AlertingCondition_Spec_Trigger) MergeRaw(source gotenobject.GotenObjectExt) {
   457  	o.Merge(source.(*AlertingCondition_Spec_Trigger))
   458  }
   459  
   460  func (o *AlertingCondition_Spec_TimeSeries_Query) GotenObjectExt() {}
   461  
   462  func (o *AlertingCondition_Spec_TimeSeries_Query) MakeFullFieldMask() *AlertingCondition_Spec_TimeSeries_Query_FieldMask {
   463  	return FullAlertingCondition_Spec_TimeSeries_Query_FieldMask()
   464  }
   465  
   466  func (o *AlertingCondition_Spec_TimeSeries_Query) MakeRawFullFieldMask() gotenobject.FieldMask {
   467  	return FullAlertingCondition_Spec_TimeSeries_Query_FieldMask()
   468  }
   469  
   470  func (o *AlertingCondition_Spec_TimeSeries_Query) MakeDiffFieldMask(other *AlertingCondition_Spec_TimeSeries_Query) *AlertingCondition_Spec_TimeSeries_Query_FieldMask {
   471  	if o == nil && other == nil {
   472  		return &AlertingCondition_Spec_TimeSeries_Query_FieldMask{}
   473  	}
   474  	if o == nil || other == nil {
   475  		return FullAlertingCondition_Spec_TimeSeries_Query_FieldMask()
   476  	}
   477  
   478  	res := &AlertingCondition_Spec_TimeSeries_Query_FieldMask{}
   479  	{
   480  		subMask := o.GetSelector().MakeDiffFieldMask(other.GetSelector())
   481  		if subMask.IsFull() {
   482  			res.Paths = append(res.Paths, &AlertingConditionSpecTimeSeriesQuery_FieldTerminalPath{selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorSelector})
   483  		} else {
   484  			for _, subpath := range subMask.Paths {
   485  				res.Paths = append(res.Paths, &AlertingConditionSpecTimeSeriesQuery_FieldSubPath{selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorSelector, subPath: subpath})
   486  			}
   487  		}
   488  	}
   489  	{
   490  		subMask := o.GetAggregation().MakeDiffFieldMask(other.GetAggregation())
   491  		if subMask.IsFull() {
   492  			res.Paths = append(res.Paths, &AlertingConditionSpecTimeSeriesQuery_FieldTerminalPath{selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorAggregation})
   493  		} else {
   494  			for _, subpath := range subMask.Paths {
   495  				res.Paths = append(res.Paths, &AlertingConditionSpecTimeSeriesQuery_FieldSubPath{selector: AlertingConditionSpecTimeSeriesQuery_FieldPathSelectorAggregation, subPath: subpath})
   496  			}
   497  		}
   498  	}
   499  	return res
   500  }
   501  
   502  func (o *AlertingCondition_Spec_TimeSeries_Query) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask {
   503  	return o.MakeDiffFieldMask(other.(*AlertingCondition_Spec_TimeSeries_Query))
   504  }
   505  
   506  func (o *AlertingCondition_Spec_TimeSeries_Query) Clone() *AlertingCondition_Spec_TimeSeries_Query {
   507  	if o == nil {
   508  		return nil
   509  	}
   510  	result := &AlertingCondition_Spec_TimeSeries_Query{}
   511  	result.Selector = o.Selector.Clone()
   512  	result.Aggregation = o.Aggregation.Clone()
   513  	return result
   514  }
   515  
   516  func (o *AlertingCondition_Spec_TimeSeries_Query) CloneRaw() gotenobject.GotenObjectExt {
   517  	return o.Clone()
   518  }
   519  
   520  func (o *AlertingCondition_Spec_TimeSeries_Query) Merge(source *AlertingCondition_Spec_TimeSeries_Query) {
   521  	if source.GetSelector() != nil {
   522  		if o.Selector == nil {
   523  			o.Selector = new(common.TimeSeriesSelector)
   524  		}
   525  		o.Selector.Merge(source.GetSelector())
   526  	}
   527  	if source.GetAggregation() != nil {
   528  		if o.Aggregation == nil {
   529  			o.Aggregation = new(common.Aggregation)
   530  		}
   531  		o.Aggregation.Merge(source.GetAggregation())
   532  	}
   533  }
   534  
   535  func (o *AlertingCondition_Spec_TimeSeries_Query) MergeRaw(source gotenobject.GotenObjectExt) {
   536  	o.Merge(source.(*AlertingCondition_Spec_TimeSeries_Query))
   537  }
   538  
   539  func (o *AlertingCondition_Spec_TimeSeries_Threshold) GotenObjectExt() {}
   540  
   541  func (o *AlertingCondition_Spec_TimeSeries_Threshold) MakeFullFieldMask() *AlertingCondition_Spec_TimeSeries_Threshold_FieldMask {
   542  	return FullAlertingCondition_Spec_TimeSeries_Threshold_FieldMask()
   543  }
   544  
   545  func (o *AlertingCondition_Spec_TimeSeries_Threshold) MakeRawFullFieldMask() gotenobject.FieldMask {
   546  	return FullAlertingCondition_Spec_TimeSeries_Threshold_FieldMask()
   547  }
   548  
   549  func (o *AlertingCondition_Spec_TimeSeries_Threshold) MakeDiffFieldMask(other *AlertingCondition_Spec_TimeSeries_Threshold) *AlertingCondition_Spec_TimeSeries_Threshold_FieldMask {
   550  	if o == nil && other == nil {
   551  		return &AlertingCondition_Spec_TimeSeries_Threshold_FieldMask{}
   552  	}
   553  	if o == nil || other == nil {
   554  		return FullAlertingCondition_Spec_TimeSeries_Threshold_FieldMask()
   555  	}
   556  
   557  	res := &AlertingCondition_Spec_TimeSeries_Threshold_FieldMask{}
   558  	if o.GetCompare() != other.GetCompare() {
   559  		res.Paths = append(res.Paths, &AlertingConditionSpecTimeSeriesThreshold_FieldTerminalPath{selector: AlertingConditionSpecTimeSeriesThreshold_FieldPathSelectorCompare})
   560  	}
   561  	if o.GetValue() != other.GetValue() {
   562  		res.Paths = append(res.Paths, &AlertingConditionSpecTimeSeriesThreshold_FieldTerminalPath{selector: AlertingConditionSpecTimeSeriesThreshold_FieldPathSelectorValue})
   563  	}
   564  	return res
   565  }
   566  
   567  func (o *AlertingCondition_Spec_TimeSeries_Threshold) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask {
   568  	return o.MakeDiffFieldMask(other.(*AlertingCondition_Spec_TimeSeries_Threshold))
   569  }
   570  
   571  func (o *AlertingCondition_Spec_TimeSeries_Threshold) Clone() *AlertingCondition_Spec_TimeSeries_Threshold {
   572  	if o == nil {
   573  		return nil
   574  	}
   575  	result := &AlertingCondition_Spec_TimeSeries_Threshold{}
   576  	result.Compare = o.Compare
   577  	result.Value = o.Value
   578  	return result
   579  }
   580  
   581  func (o *AlertingCondition_Spec_TimeSeries_Threshold) CloneRaw() gotenobject.GotenObjectExt {
   582  	return o.Clone()
   583  }
   584  
   585  func (o *AlertingCondition_Spec_TimeSeries_Threshold) Merge(source *AlertingCondition_Spec_TimeSeries_Threshold) {
   586  	o.Compare = source.GetCompare()
   587  	o.Value = source.GetValue()
   588  }
   589  
   590  func (o *AlertingCondition_Spec_TimeSeries_Threshold) MergeRaw(source gotenobject.GotenObjectExt) {
   591  	o.Merge(source.(*AlertingCondition_Spec_TimeSeries_Threshold))
   592  }
   593  
   594  func (o *AlertingCondition_Spec_TimeSeries_CombineThreshold) GotenObjectExt() {}
   595  
   596  func (o *AlertingCondition_Spec_TimeSeries_CombineThreshold) MakeFullFieldMask() *AlertingCondition_Spec_TimeSeries_CombineThreshold_FieldMask {
   597  	return FullAlertingCondition_Spec_TimeSeries_CombineThreshold_FieldMask()
   598  }
   599  
   600  func (o *AlertingCondition_Spec_TimeSeries_CombineThreshold) MakeRawFullFieldMask() gotenobject.FieldMask {
   601  	return FullAlertingCondition_Spec_TimeSeries_CombineThreshold_FieldMask()
   602  }
   603  
   604  func (o *AlertingCondition_Spec_TimeSeries_CombineThreshold) MakeDiffFieldMask(other *AlertingCondition_Spec_TimeSeries_CombineThreshold) *AlertingCondition_Spec_TimeSeries_CombineThreshold_FieldMask {
   605  	if o == nil && other == nil {
   606  		return &AlertingCondition_Spec_TimeSeries_CombineThreshold_FieldMask{}
   607  	}
   608  	if o == nil || other == nil {
   609  		return FullAlertingCondition_Spec_TimeSeries_CombineThreshold_FieldMask()
   610  	}
   611  
   612  	res := &AlertingCondition_Spec_TimeSeries_CombineThreshold_FieldMask{}
   613  
   614  	if len(o.GetPerMetric()) == len(other.GetPerMetric()) {
   615  		for i, lValue := range o.GetPerMetric() {
   616  			rValue := other.GetPerMetric()[i]
   617  			if len(lValue.MakeDiffFieldMask(rValue).Paths) > 0 {
   618  				res.Paths = append(res.Paths, &AlertingConditionSpecTimeSeriesCombineThreshold_FieldTerminalPath{selector: AlertingConditionSpecTimeSeriesCombineThreshold_FieldPathSelectorPerMetric})
   619  				break
   620  			}
   621  		}
   622  	} else {
   623  		res.Paths = append(res.Paths, &AlertingConditionSpecTimeSeriesCombineThreshold_FieldTerminalPath{selector: AlertingConditionSpecTimeSeriesCombineThreshold_FieldPathSelectorPerMetric})
   624  	}
   625  	if o.GetCombine() != other.GetCombine() {
   626  		res.Paths = append(res.Paths, &AlertingConditionSpecTimeSeriesCombineThreshold_FieldTerminalPath{selector: AlertingConditionSpecTimeSeriesCombineThreshold_FieldPathSelectorCombine})
   627  	}
   628  	return res
   629  }
   630  
   631  func (o *AlertingCondition_Spec_TimeSeries_CombineThreshold) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask {
   632  	return o.MakeDiffFieldMask(other.(*AlertingCondition_Spec_TimeSeries_CombineThreshold))
   633  }
   634  
   635  func (o *AlertingCondition_Spec_TimeSeries_CombineThreshold) Clone() *AlertingCondition_Spec_TimeSeries_CombineThreshold {
   636  	if o == nil {
   637  		return nil
   638  	}
   639  	result := &AlertingCondition_Spec_TimeSeries_CombineThreshold{}
   640  	result.PerMetric = map[string]*AlertingCondition_Spec_TimeSeries_Threshold{}
   641  	for key, sourceValue := range o.PerMetric {
   642  		result.PerMetric[key] = sourceValue.Clone()
   643  	}
   644  	result.Combine = o.Combine
   645  	return result
   646  }
   647  
   648  func (o *AlertingCondition_Spec_TimeSeries_CombineThreshold) CloneRaw() gotenobject.GotenObjectExt {
   649  	return o.Clone()
   650  }
   651  
   652  func (o *AlertingCondition_Spec_TimeSeries_CombineThreshold) Merge(source *AlertingCondition_Spec_TimeSeries_CombineThreshold) {
   653  	if source.GetPerMetric() != nil {
   654  		if o.PerMetric == nil {
   655  			o.PerMetric = make(map[string]*AlertingCondition_Spec_TimeSeries_Threshold, len(source.GetPerMetric()))
   656  		}
   657  		for key, sourceValue := range source.GetPerMetric() {
   658  			if sourceValue != nil {
   659  				if o.PerMetric[key] == nil {
   660  					o.PerMetric[key] = new(AlertingCondition_Spec_TimeSeries_Threshold)
   661  				}
   662  				o.PerMetric[key].Merge(sourceValue)
   663  			}
   664  		}
   665  	}
   666  	o.Combine = source.GetCombine()
   667  }
   668  
   669  func (o *AlertingCondition_Spec_TimeSeries_CombineThreshold) MergeRaw(source gotenobject.GotenObjectExt) {
   670  	o.Merge(source.(*AlertingCondition_Spec_TimeSeries_CombineThreshold))
   671  }