github.com/cloudwan/edgelq-sdk@v1.15.4/monitoring/client/v4/alerting_policy/alerting_policy_service.pb.descriptors.go (about)

     1  // Code generated by protoc-gen-goten-client
     2  // API: AlertingPolicyService
     3  // DO NOT EDIT!!!
     4  
     5  package alerting_policy_client
     6  
     7  import (
     8  	"google.golang.org/protobuf/proto"
     9  
    10  	gotenclient "github.com/cloudwan/goten-sdk/runtime/client"
    11  	gotenresource "github.com/cloudwan/goten-sdk/runtime/resource"
    12  )
    13  
    14  // proto imports
    15  import (
    16  	alerting_policy "github.com/cloudwan/edgelq-sdk/monitoring/resources/v4/alerting_policy"
    17  	emptypb "google.golang.org/protobuf/types/known/emptypb"
    18  )
    19  
    20  // Reference imports to suppress errors if they are not otherwise used.
    21  var (
    22  	_ = new(proto.Message)
    23  	_ = new(gotenclient.MethodDescriptor)
    24  	_ = gotenresource.WildcardId
    25  )
    26  
    27  // make sure we're using proto imports
    28  var (
    29  	_ = &alerting_policy.AlertingPolicy{}
    30  	_ = &emptypb.Empty{}
    31  )
    32  
    33  var (
    34  	descriptorsInitialized             bool
    35  	alertingPolicyServiceDescriptor    *AlertingPolicyServiceDescriptor
    36  	getAlertingPolicyDescriptor        *GetAlertingPolicyDescriptor
    37  	batchGetAlertingPoliciesDescriptor *BatchGetAlertingPoliciesDescriptor
    38  	listAlertingPoliciesDescriptor     *ListAlertingPoliciesDescriptor
    39  	watchAlertingPolicyDescriptor      *WatchAlertingPolicyDescriptor
    40  	watchAlertingPoliciesDescriptor    *WatchAlertingPoliciesDescriptor
    41  	createAlertingPolicyDescriptor     *CreateAlertingPolicyDescriptor
    42  	updateAlertingPolicyDescriptor     *UpdateAlertingPolicyDescriptor
    43  	deleteAlertingPolicyDescriptor     *DeleteAlertingPolicyDescriptor
    44  	searchAlertingPoliciesDescriptor   *SearchAlertingPoliciesDescriptor
    45  )
    46  
    47  type GetAlertingPolicyDescriptor struct{}
    48  
    49  type GetAlertingPolicyDescriptorClientMsgHandle struct{}
    50  
    51  type GetAlertingPolicyDescriptorServerMsgHandle struct{}
    52  
    53  func (d *GetAlertingPolicyDescriptor) NewEmptyClientMsg() proto.Message {
    54  	return &GetAlertingPolicyRequest{}
    55  }
    56  
    57  func (d *GetAlertingPolicyDescriptor) NewEmptyServerMsg() proto.Message {
    58  	return &alerting_policy.AlertingPolicy{}
    59  }
    60  
    61  func (d *GetAlertingPolicyDescriptor) IsUnary() bool {
    62  	return true
    63  }
    64  
    65  func (d *GetAlertingPolicyDescriptor) IsClientStream() bool {
    66  	return false
    67  }
    68  
    69  func (d *GetAlertingPolicyDescriptor) IsServerStream() bool {
    70  	return false
    71  }
    72  
    73  func (d *GetAlertingPolicyDescriptor) IsCollection() bool {
    74  	return false
    75  }
    76  
    77  func (d *GetAlertingPolicyDescriptor) IsPlural() bool {
    78  	return false
    79  }
    80  
    81  func (d *GetAlertingPolicyDescriptor) HasResource() bool {
    82  	return true
    83  }
    84  
    85  func (d *GetAlertingPolicyDescriptor) RequestHasResourceBody() bool {
    86  	return false
    87  }
    88  
    89  func (d *GetAlertingPolicyDescriptor) GetVerb() string {
    90  	return "get"
    91  }
    92  
    93  func (d *GetAlertingPolicyDescriptor) GetMethodName() string {
    94  	return "GetAlertingPolicy"
    95  }
    96  
    97  func (d *GetAlertingPolicyDescriptor) GetFullMethodName() string {
    98  	return "/ntt.monitoring.v4.AlertingPolicyService/GetAlertingPolicy"
    99  }
   100  
   101  func (d *GetAlertingPolicyDescriptor) GetProtoPkgName() string {
   102  	return "ntt.monitoring.v4"
   103  }
   104  
   105  func (d *GetAlertingPolicyDescriptor) GetApiName() string {
   106  	return "AlertingPolicyService"
   107  }
   108  
   109  func (d *GetAlertingPolicyDescriptor) GetServiceDomain() string {
   110  	return "monitoring.edgelq.com"
   111  }
   112  
   113  func (d *GetAlertingPolicyDescriptor) GetServiceVersion() string {
   114  	return "v4"
   115  }
   116  
   117  func (d *GetAlertingPolicyDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor {
   118  	return alertingPolicyServiceDescriptor
   119  }
   120  
   121  func (d *GetAlertingPolicyDescriptor) GetResourceDescriptor() gotenresource.Descriptor {
   122  	return alerting_policy.GetDescriptor()
   123  }
   124  
   125  func (d *GetAlertingPolicyDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle {
   126  	return &GetAlertingPolicyDescriptorClientMsgHandle{}
   127  }
   128  
   129  func (d *GetAlertingPolicyDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle {
   130  	return &GetAlertingPolicyDescriptorServerMsgHandle{}
   131  }
   132  
   133  func (h *GetAlertingPolicyDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   134  	typedMsg := msg.(*GetAlertingPolicyRequest)
   135  	var asInterface interface{} = h
   136  	override, ok := asInterface.(interface {
   137  		OverrideExtractResourceName(*GetAlertingPolicyRequest) *alerting_policy.Name
   138  	})
   139  	if ok {
   140  		return override.OverrideExtractResourceName(typedMsg)
   141  	}
   142  	{
   143  		if name := typedMsg.GetName(); name != nil {
   144  			return name
   145  		}
   146  	}
   147  	return (*alerting_policy.Name)(nil)
   148  }
   149  
   150  func (h *GetAlertingPolicyDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   151  	typedMsg := msg.(*GetAlertingPolicyRequest)
   152  	var asInterface interface{} = h
   153  	override, ok := asInterface.(interface {
   154  		OverrideExtractResourceNames(*GetAlertingPolicyRequest) []*alerting_policy.Name
   155  	})
   156  	if ok {
   157  		return alerting_policy.AlertingPolicyNameList(override.OverrideExtractResourceNames(typedMsg))
   158  	}
   159  	return nil
   160  }
   161  
   162  func (h *GetAlertingPolicyDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   163  	typedMsg := msg.(*GetAlertingPolicyRequest)
   164  	var asInterface interface{} = h
   165  	override, ok := asInterface.(interface {
   166  		OverrideExtractCollectionName(*GetAlertingPolicyRequest) *alerting_policy.ParentName
   167  	})
   168  	if ok {
   169  		return override.OverrideExtractCollectionName(typedMsg)
   170  	}
   171  	return nil
   172  }
   173  
   174  func (h *GetAlertingPolicyDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   175  	typedMsg := msg.(*GetAlertingPolicyRequest)
   176  	var asInterface interface{} = h
   177  	override, ok := asInterface.(interface {
   178  		OverrideExtractResourceBody(*GetAlertingPolicyRequest) *alerting_policy.AlertingPolicy
   179  	})
   180  	if ok {
   181  		return override.OverrideExtractResourceBody(typedMsg)
   182  	}
   183  	return nil
   184  }
   185  
   186  func (h *GetAlertingPolicyDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   187  	typedMsg := msg.(*GetAlertingPolicyRequest)
   188  	var asInterface interface{} = h
   189  	override, ok := asInterface.(interface {
   190  		OverrideExtractResourceBodies(*GetAlertingPolicyRequest) []*alerting_policy.AlertingPolicy
   191  	})
   192  	if ok {
   193  		return alerting_policy.AlertingPolicyList(override.OverrideExtractResourceBodies(typedMsg))
   194  	}
   195  	return nil
   196  }
   197  
   198  func (h *GetAlertingPolicyDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   199  	typedMsg := msg.(*alerting_policy.AlertingPolicy)
   200  	var asInterface interface{} = h
   201  	override, ok := asInterface.(interface {
   202  		OverrideExtractResourceName(*alerting_policy.AlertingPolicy) *alerting_policy.Name
   203  	})
   204  	if ok {
   205  		return override.OverrideExtractResourceName(typedMsg)
   206  	}
   207  	{
   208  		if name := typedMsg.GetName(); name != nil {
   209  			return name
   210  		}
   211  	}
   212  	return (*alerting_policy.Name)(nil)
   213  }
   214  
   215  func (h *GetAlertingPolicyDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   216  	typedMsg := msg.(*alerting_policy.AlertingPolicy)
   217  	var asInterface interface{} = h
   218  	override, ok := asInterface.(interface {
   219  		OverrideExtractResourceNames(*alerting_policy.AlertingPolicy) []*alerting_policy.Name
   220  	})
   221  	if ok {
   222  		return alerting_policy.AlertingPolicyNameList(override.OverrideExtractResourceNames(typedMsg))
   223  	}
   224  	return nil
   225  }
   226  
   227  func (h *GetAlertingPolicyDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   228  	typedMsg := msg.(*alerting_policy.AlertingPolicy)
   229  	var asInterface interface{} = h
   230  	override, ok := asInterface.(interface {
   231  		OverrideExtractCollectionName(*alerting_policy.AlertingPolicy) *alerting_policy.ParentName
   232  	})
   233  	if ok {
   234  		return override.OverrideExtractCollectionName(typedMsg)
   235  	}
   236  	return nil
   237  }
   238  
   239  func (h *GetAlertingPolicyDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   240  	return msg.(*alerting_policy.AlertingPolicy)
   241  }
   242  
   243  func (h *GetAlertingPolicyDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   244  	typedMsg := msg.(*alerting_policy.AlertingPolicy)
   245  	var asInterface interface{} = h
   246  	override, ok := asInterface.(interface {
   247  		OverrideExtractResourceBodies(*alerting_policy.AlertingPolicy) []*alerting_policy.AlertingPolicy
   248  	})
   249  	if ok {
   250  		return alerting_policy.AlertingPolicyList(override.OverrideExtractResourceBodies(typedMsg))
   251  	}
   252  	return nil
   253  }
   254  
   255  func GetGetAlertingPolicyDescriptor() *GetAlertingPolicyDescriptor {
   256  	return getAlertingPolicyDescriptor
   257  }
   258  
   259  type BatchGetAlertingPoliciesDescriptor struct{}
   260  
   261  type BatchGetAlertingPoliciesDescriptorClientMsgHandle struct{}
   262  
   263  type BatchGetAlertingPoliciesDescriptorServerMsgHandle struct{}
   264  
   265  func (d *BatchGetAlertingPoliciesDescriptor) NewEmptyClientMsg() proto.Message {
   266  	return &BatchGetAlertingPoliciesRequest{}
   267  }
   268  
   269  func (d *BatchGetAlertingPoliciesDescriptor) NewEmptyServerMsg() proto.Message {
   270  	return &BatchGetAlertingPoliciesResponse{}
   271  }
   272  
   273  func (d *BatchGetAlertingPoliciesDescriptor) IsUnary() bool {
   274  	return true
   275  }
   276  
   277  func (d *BatchGetAlertingPoliciesDescriptor) IsClientStream() bool {
   278  	return false
   279  }
   280  
   281  func (d *BatchGetAlertingPoliciesDescriptor) IsServerStream() bool {
   282  	return false
   283  }
   284  
   285  func (d *BatchGetAlertingPoliciesDescriptor) IsCollection() bool {
   286  	return false
   287  }
   288  
   289  func (d *BatchGetAlertingPoliciesDescriptor) IsPlural() bool {
   290  	return true
   291  }
   292  
   293  func (d *BatchGetAlertingPoliciesDescriptor) HasResource() bool {
   294  	return true
   295  }
   296  
   297  func (d *BatchGetAlertingPoliciesDescriptor) RequestHasResourceBody() bool {
   298  	return false
   299  }
   300  
   301  func (d *BatchGetAlertingPoliciesDescriptor) GetVerb() string {
   302  	return "batchGet"
   303  }
   304  
   305  func (d *BatchGetAlertingPoliciesDescriptor) GetMethodName() string {
   306  	return "BatchGetAlertingPolicies"
   307  }
   308  
   309  func (d *BatchGetAlertingPoliciesDescriptor) GetFullMethodName() string {
   310  	return "/ntt.monitoring.v4.AlertingPolicyService/BatchGetAlertingPolicies"
   311  }
   312  
   313  func (d *BatchGetAlertingPoliciesDescriptor) GetProtoPkgName() string {
   314  	return "ntt.monitoring.v4"
   315  }
   316  
   317  func (d *BatchGetAlertingPoliciesDescriptor) GetApiName() string {
   318  	return "AlertingPolicyService"
   319  }
   320  
   321  func (d *BatchGetAlertingPoliciesDescriptor) GetServiceDomain() string {
   322  	return "monitoring.edgelq.com"
   323  }
   324  
   325  func (d *BatchGetAlertingPoliciesDescriptor) GetServiceVersion() string {
   326  	return "v4"
   327  }
   328  
   329  func (d *BatchGetAlertingPoliciesDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor {
   330  	return alertingPolicyServiceDescriptor
   331  }
   332  
   333  func (d *BatchGetAlertingPoliciesDescriptor) GetResourceDescriptor() gotenresource.Descriptor {
   334  	return alerting_policy.GetDescriptor()
   335  }
   336  
   337  func (d *BatchGetAlertingPoliciesDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle {
   338  	return &BatchGetAlertingPoliciesDescriptorClientMsgHandle{}
   339  }
   340  
   341  func (d *BatchGetAlertingPoliciesDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle {
   342  	return &BatchGetAlertingPoliciesDescriptorServerMsgHandle{}
   343  }
   344  
   345  func (h *BatchGetAlertingPoliciesDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   346  	typedMsg := msg.(*BatchGetAlertingPoliciesRequest)
   347  	var asInterface interface{} = h
   348  	override, ok := asInterface.(interface {
   349  		OverrideExtractResourceName(*BatchGetAlertingPoliciesRequest) *alerting_policy.Name
   350  	})
   351  	if ok {
   352  		return override.OverrideExtractResourceName(typedMsg)
   353  	}
   354  	return nil
   355  }
   356  
   357  func (h *BatchGetAlertingPoliciesDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   358  	typedMsg := msg.(*BatchGetAlertingPoliciesRequest)
   359  	var asInterface interface{} = h
   360  	override, ok := asInterface.(interface {
   361  		OverrideExtractResourceNames(*BatchGetAlertingPoliciesRequest) []*alerting_policy.Name
   362  	})
   363  	if ok {
   364  		return alerting_policy.AlertingPolicyNameList(override.OverrideExtractResourceNames(typedMsg))
   365  	}
   366  	{
   367  		if names := typedMsg.GetNames(); len(names) > 0 {
   368  			return alerting_policy.AlertingPolicyNameList(names)
   369  		}
   370  	}
   371  	return (alerting_policy.AlertingPolicyNameList)(nil)
   372  }
   373  
   374  func (h *BatchGetAlertingPoliciesDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   375  	typedMsg := msg.(*BatchGetAlertingPoliciesRequest)
   376  	var asInterface interface{} = h
   377  	override, ok := asInterface.(interface {
   378  		OverrideExtractCollectionName(*BatchGetAlertingPoliciesRequest) *alerting_policy.ParentName
   379  	})
   380  	if ok {
   381  		return override.OverrideExtractCollectionName(typedMsg)
   382  	}
   383  	return nil
   384  }
   385  
   386  func (h *BatchGetAlertingPoliciesDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   387  	typedMsg := msg.(*BatchGetAlertingPoliciesRequest)
   388  	var asInterface interface{} = h
   389  	override, ok := asInterface.(interface {
   390  		OverrideExtractResourceBody(*BatchGetAlertingPoliciesRequest) *alerting_policy.AlertingPolicy
   391  	})
   392  	if ok {
   393  		return override.OverrideExtractResourceBody(typedMsg)
   394  	}
   395  	return nil
   396  }
   397  
   398  func (h *BatchGetAlertingPoliciesDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   399  	typedMsg := msg.(*BatchGetAlertingPoliciesRequest)
   400  	var asInterface interface{} = h
   401  	override, ok := asInterface.(interface {
   402  		OverrideExtractResourceBodies(*BatchGetAlertingPoliciesRequest) []*alerting_policy.AlertingPolicy
   403  	})
   404  	if ok {
   405  		return alerting_policy.AlertingPolicyList(override.OverrideExtractResourceBodies(typedMsg))
   406  	}
   407  	return nil
   408  }
   409  
   410  func (h *BatchGetAlertingPoliciesDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   411  	typedMsg := msg.(*BatchGetAlertingPoliciesResponse)
   412  	var asInterface interface{} = h
   413  	override, ok := asInterface.(interface {
   414  		OverrideExtractResourceName(*BatchGetAlertingPoliciesResponse) *alerting_policy.Name
   415  	})
   416  	if ok {
   417  		return override.OverrideExtractResourceName(typedMsg)
   418  	}
   419  	return nil
   420  }
   421  
   422  func (h *BatchGetAlertingPoliciesDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   423  	typedMsg := msg.(*BatchGetAlertingPoliciesResponse)
   424  	var asInterface interface{} = h
   425  	override, ok := asInterface.(interface {
   426  		OverrideExtractResourceNames(*BatchGetAlertingPoliciesResponse) []*alerting_policy.Name
   427  	})
   428  	if ok {
   429  		return alerting_policy.AlertingPolicyNameList(override.OverrideExtractResourceNames(typedMsg))
   430  	}
   431  	{
   432  		if resources := typedMsg.GetAlertingPolicies(); len(resources) > 0 {
   433  			list := make(alerting_policy.AlertingPolicyNameList, 0, len(resources))
   434  			for _, res := range resources {
   435  				list = append(list, res.GetName())
   436  			}
   437  			return list
   438  		}
   439  	}
   440  	return (alerting_policy.AlertingPolicyNameList)(nil)
   441  }
   442  
   443  func (h *BatchGetAlertingPoliciesDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   444  	typedMsg := msg.(*BatchGetAlertingPoliciesResponse)
   445  	var asInterface interface{} = h
   446  	override, ok := asInterface.(interface {
   447  		OverrideExtractCollectionName(*BatchGetAlertingPoliciesResponse) *alerting_policy.ParentName
   448  	})
   449  	if ok {
   450  		return override.OverrideExtractCollectionName(typedMsg)
   451  	}
   452  	return nil
   453  }
   454  
   455  func (h *BatchGetAlertingPoliciesDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   456  	typedMsg := msg.(*BatchGetAlertingPoliciesResponse)
   457  	var asInterface interface{} = h
   458  	override, ok := asInterface.(interface {
   459  		OverrideExtractResourceBody(*BatchGetAlertingPoliciesResponse) *alerting_policy.AlertingPolicy
   460  	})
   461  	if ok {
   462  		return override.OverrideExtractResourceBody(typedMsg)
   463  	}
   464  	return nil
   465  }
   466  
   467  func (h *BatchGetAlertingPoliciesDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   468  	typedMsg := msg.(*BatchGetAlertingPoliciesResponse)
   469  	var asInterface interface{} = h
   470  	override, ok := asInterface.(interface {
   471  		OverrideExtractResourceBodies(*BatchGetAlertingPoliciesResponse) []*alerting_policy.AlertingPolicy
   472  	})
   473  	if ok {
   474  		return alerting_policy.AlertingPolicyList(override.OverrideExtractResourceBodies(typedMsg))
   475  	}
   476  	{
   477  		if resources := typedMsg.GetAlertingPolicies(); len(resources) > 0 {
   478  			return alerting_policy.AlertingPolicyList(resources)
   479  		}
   480  	}
   481  	return (alerting_policy.AlertingPolicyList)(nil)
   482  }
   483  
   484  func GetBatchGetAlertingPoliciesDescriptor() *BatchGetAlertingPoliciesDescriptor {
   485  	return batchGetAlertingPoliciesDescriptor
   486  }
   487  
   488  type ListAlertingPoliciesDescriptor struct{}
   489  
   490  type ListAlertingPoliciesDescriptorClientMsgHandle struct{}
   491  
   492  type ListAlertingPoliciesDescriptorServerMsgHandle struct{}
   493  
   494  func (d *ListAlertingPoliciesDescriptor) NewEmptyClientMsg() proto.Message {
   495  	return &ListAlertingPoliciesRequest{}
   496  }
   497  
   498  func (d *ListAlertingPoliciesDescriptor) NewEmptyServerMsg() proto.Message {
   499  	return &ListAlertingPoliciesResponse{}
   500  }
   501  
   502  func (d *ListAlertingPoliciesDescriptor) IsUnary() bool {
   503  	return true
   504  }
   505  
   506  func (d *ListAlertingPoliciesDescriptor) IsClientStream() bool {
   507  	return false
   508  }
   509  
   510  func (d *ListAlertingPoliciesDescriptor) IsServerStream() bool {
   511  	return false
   512  }
   513  
   514  func (d *ListAlertingPoliciesDescriptor) IsCollection() bool {
   515  	return true
   516  }
   517  
   518  func (d *ListAlertingPoliciesDescriptor) IsPlural() bool {
   519  	return true
   520  }
   521  
   522  func (d *ListAlertingPoliciesDescriptor) HasResource() bool {
   523  	return true
   524  }
   525  
   526  func (d *ListAlertingPoliciesDescriptor) RequestHasResourceBody() bool {
   527  	return false
   528  }
   529  
   530  func (d *ListAlertingPoliciesDescriptor) GetVerb() string {
   531  	return "list"
   532  }
   533  
   534  func (d *ListAlertingPoliciesDescriptor) GetMethodName() string {
   535  	return "ListAlertingPolicies"
   536  }
   537  
   538  func (d *ListAlertingPoliciesDescriptor) GetFullMethodName() string {
   539  	return "/ntt.monitoring.v4.AlertingPolicyService/ListAlertingPolicies"
   540  }
   541  
   542  func (d *ListAlertingPoliciesDescriptor) GetProtoPkgName() string {
   543  	return "ntt.monitoring.v4"
   544  }
   545  
   546  func (d *ListAlertingPoliciesDescriptor) GetApiName() string {
   547  	return "AlertingPolicyService"
   548  }
   549  
   550  func (d *ListAlertingPoliciesDescriptor) GetServiceDomain() string {
   551  	return "monitoring.edgelq.com"
   552  }
   553  
   554  func (d *ListAlertingPoliciesDescriptor) GetServiceVersion() string {
   555  	return "v4"
   556  }
   557  
   558  func (d *ListAlertingPoliciesDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor {
   559  	return alertingPolicyServiceDescriptor
   560  }
   561  
   562  func (d *ListAlertingPoliciesDescriptor) GetResourceDescriptor() gotenresource.Descriptor {
   563  	return alerting_policy.GetDescriptor()
   564  }
   565  
   566  func (d *ListAlertingPoliciesDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle {
   567  	return &ListAlertingPoliciesDescriptorClientMsgHandle{}
   568  }
   569  
   570  func (d *ListAlertingPoliciesDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle {
   571  	return &ListAlertingPoliciesDescriptorServerMsgHandle{}
   572  }
   573  
   574  func (h *ListAlertingPoliciesDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   575  	typedMsg := msg.(*ListAlertingPoliciesRequest)
   576  	var asInterface interface{} = h
   577  	override, ok := asInterface.(interface {
   578  		OverrideExtractResourceName(*ListAlertingPoliciesRequest) *alerting_policy.Name
   579  	})
   580  	if ok {
   581  		return override.OverrideExtractResourceName(typedMsg)
   582  	}
   583  	return nil
   584  }
   585  
   586  func (h *ListAlertingPoliciesDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   587  	typedMsg := msg.(*ListAlertingPoliciesRequest)
   588  	var asInterface interface{} = h
   589  	override, ok := asInterface.(interface {
   590  		OverrideExtractResourceNames(*ListAlertingPoliciesRequest) []*alerting_policy.Name
   591  	})
   592  	if ok {
   593  		return alerting_policy.AlertingPolicyNameList(override.OverrideExtractResourceNames(typedMsg))
   594  	}
   595  	return nil
   596  }
   597  
   598  func (h *ListAlertingPoliciesDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   599  	typedMsg := msg.(*ListAlertingPoliciesRequest)
   600  	var asInterface interface{} = h
   601  	override, ok := asInterface.(interface {
   602  		OverrideExtractCollectionName(*ListAlertingPoliciesRequest) *alerting_policy.ParentName
   603  	})
   604  	if ok {
   605  		return override.OverrideExtractCollectionName(typedMsg)
   606  	}
   607  	{
   608  		if parentName := typedMsg.GetParent(); parentName != nil {
   609  			return parentName
   610  		}
   611  	}
   612  	return (*alerting_policy.ParentName)(nil)
   613  }
   614  
   615  func (h *ListAlertingPoliciesDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   616  	typedMsg := msg.(*ListAlertingPoliciesRequest)
   617  	var asInterface interface{} = h
   618  	override, ok := asInterface.(interface {
   619  		OverrideExtractResourceBody(*ListAlertingPoliciesRequest) *alerting_policy.AlertingPolicy
   620  	})
   621  	if ok {
   622  		return override.OverrideExtractResourceBody(typedMsg)
   623  	}
   624  	return nil
   625  }
   626  
   627  func (h *ListAlertingPoliciesDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   628  	typedMsg := msg.(*ListAlertingPoliciesRequest)
   629  	var asInterface interface{} = h
   630  	override, ok := asInterface.(interface {
   631  		OverrideExtractResourceBodies(*ListAlertingPoliciesRequest) []*alerting_policy.AlertingPolicy
   632  	})
   633  	if ok {
   634  		return alerting_policy.AlertingPolicyList(override.OverrideExtractResourceBodies(typedMsg))
   635  	}
   636  	return nil
   637  }
   638  
   639  func (h *ListAlertingPoliciesDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   640  	typedMsg := msg.(*ListAlertingPoliciesResponse)
   641  	var asInterface interface{} = h
   642  	override, ok := asInterface.(interface {
   643  		OverrideExtractResourceName(*ListAlertingPoliciesResponse) *alerting_policy.Name
   644  	})
   645  	if ok {
   646  		return override.OverrideExtractResourceName(typedMsg)
   647  	}
   648  	return nil
   649  }
   650  
   651  func (h *ListAlertingPoliciesDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   652  	typedMsg := msg.(*ListAlertingPoliciesResponse)
   653  	var asInterface interface{} = h
   654  	override, ok := asInterface.(interface {
   655  		OverrideExtractResourceNames(*ListAlertingPoliciesResponse) []*alerting_policy.Name
   656  	})
   657  	if ok {
   658  		return alerting_policy.AlertingPolicyNameList(override.OverrideExtractResourceNames(typedMsg))
   659  	}
   660  	{
   661  		if resources := typedMsg.GetAlertingPolicies(); len(resources) > 0 {
   662  			list := make(alerting_policy.AlertingPolicyNameList, 0, len(resources))
   663  			for _, res := range resources {
   664  				list = append(list, res.GetName())
   665  			}
   666  			return list
   667  		}
   668  	}
   669  	return (alerting_policy.AlertingPolicyNameList)(nil)
   670  }
   671  
   672  func (h *ListAlertingPoliciesDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   673  	typedMsg := msg.(*ListAlertingPoliciesResponse)
   674  	var asInterface interface{} = h
   675  	override, ok := asInterface.(interface {
   676  		OverrideExtractCollectionName(*ListAlertingPoliciesResponse) *alerting_policy.ParentName
   677  	})
   678  	if ok {
   679  		return override.OverrideExtractCollectionName(typedMsg)
   680  	}
   681  	return nil
   682  }
   683  
   684  func (h *ListAlertingPoliciesDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   685  	typedMsg := msg.(*ListAlertingPoliciesResponse)
   686  	var asInterface interface{} = h
   687  	override, ok := asInterface.(interface {
   688  		OverrideExtractResourceBody(*ListAlertingPoliciesResponse) *alerting_policy.AlertingPolicy
   689  	})
   690  	if ok {
   691  		return override.OverrideExtractResourceBody(typedMsg)
   692  	}
   693  	return nil
   694  }
   695  
   696  func (h *ListAlertingPoliciesDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   697  	typedMsg := msg.(*ListAlertingPoliciesResponse)
   698  	var asInterface interface{} = h
   699  	override, ok := asInterface.(interface {
   700  		OverrideExtractResourceBodies(*ListAlertingPoliciesResponse) []*alerting_policy.AlertingPolicy
   701  	})
   702  	if ok {
   703  		return alerting_policy.AlertingPolicyList(override.OverrideExtractResourceBodies(typedMsg))
   704  	}
   705  	{
   706  		if resources := typedMsg.GetAlertingPolicies(); len(resources) > 0 {
   707  			return alerting_policy.AlertingPolicyList(resources)
   708  		}
   709  	}
   710  	return (alerting_policy.AlertingPolicyList)(nil)
   711  }
   712  
   713  func GetListAlertingPoliciesDescriptor() *ListAlertingPoliciesDescriptor {
   714  	return listAlertingPoliciesDescriptor
   715  }
   716  
   717  type WatchAlertingPolicyDescriptor struct{}
   718  
   719  type WatchAlertingPolicyDescriptorClientMsgHandle struct{}
   720  
   721  type WatchAlertingPolicyDescriptorServerMsgHandle struct{}
   722  
   723  func (d *WatchAlertingPolicyDescriptor) NewEmptyClientMsg() proto.Message {
   724  	return &WatchAlertingPolicyRequest{}
   725  }
   726  
   727  func (d *WatchAlertingPolicyDescriptor) NewEmptyServerMsg() proto.Message {
   728  	return &WatchAlertingPolicyResponse{}
   729  }
   730  
   731  func (d *WatchAlertingPolicyDescriptor) IsUnary() bool {
   732  	return false
   733  }
   734  
   735  func (d *WatchAlertingPolicyDescriptor) IsClientStream() bool {
   736  	return false
   737  }
   738  
   739  func (d *WatchAlertingPolicyDescriptor) IsServerStream() bool {
   740  	return true
   741  }
   742  
   743  func (d *WatchAlertingPolicyDescriptor) IsCollection() bool {
   744  	return false
   745  }
   746  
   747  func (d *WatchAlertingPolicyDescriptor) IsPlural() bool {
   748  	return false
   749  }
   750  
   751  func (d *WatchAlertingPolicyDescriptor) HasResource() bool {
   752  	return true
   753  }
   754  
   755  func (d *WatchAlertingPolicyDescriptor) RequestHasResourceBody() bool {
   756  	return false
   757  }
   758  
   759  func (d *WatchAlertingPolicyDescriptor) GetVerb() string {
   760  	return "watch"
   761  }
   762  
   763  func (d *WatchAlertingPolicyDescriptor) GetMethodName() string {
   764  	return "WatchAlertingPolicy"
   765  }
   766  
   767  func (d *WatchAlertingPolicyDescriptor) GetFullMethodName() string {
   768  	return "/ntt.monitoring.v4.AlertingPolicyService/WatchAlertingPolicy"
   769  }
   770  
   771  func (d *WatchAlertingPolicyDescriptor) GetProtoPkgName() string {
   772  	return "ntt.monitoring.v4"
   773  }
   774  
   775  func (d *WatchAlertingPolicyDescriptor) GetApiName() string {
   776  	return "AlertingPolicyService"
   777  }
   778  
   779  func (d *WatchAlertingPolicyDescriptor) GetServiceDomain() string {
   780  	return "monitoring.edgelq.com"
   781  }
   782  
   783  func (d *WatchAlertingPolicyDescriptor) GetServiceVersion() string {
   784  	return "v4"
   785  }
   786  
   787  func (d *WatchAlertingPolicyDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor {
   788  	return alertingPolicyServiceDescriptor
   789  }
   790  
   791  func (d *WatchAlertingPolicyDescriptor) GetResourceDescriptor() gotenresource.Descriptor {
   792  	return alerting_policy.GetDescriptor()
   793  }
   794  
   795  func (d *WatchAlertingPolicyDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle {
   796  	return &WatchAlertingPolicyDescriptorClientMsgHandle{}
   797  }
   798  
   799  func (d *WatchAlertingPolicyDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle {
   800  	return &WatchAlertingPolicyDescriptorServerMsgHandle{}
   801  }
   802  
   803  func (h *WatchAlertingPolicyDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   804  	typedMsg := msg.(*WatchAlertingPolicyRequest)
   805  	var asInterface interface{} = h
   806  	override, ok := asInterface.(interface {
   807  		OverrideExtractResourceName(*WatchAlertingPolicyRequest) *alerting_policy.Name
   808  	})
   809  	if ok {
   810  		return override.OverrideExtractResourceName(typedMsg)
   811  	}
   812  	{
   813  		if name := typedMsg.GetName(); name != nil {
   814  			return name
   815  		}
   816  	}
   817  	return (*alerting_policy.Name)(nil)
   818  }
   819  
   820  func (h *WatchAlertingPolicyDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   821  	typedMsg := msg.(*WatchAlertingPolicyRequest)
   822  	var asInterface interface{} = h
   823  	override, ok := asInterface.(interface {
   824  		OverrideExtractResourceNames(*WatchAlertingPolicyRequest) []*alerting_policy.Name
   825  	})
   826  	if ok {
   827  		return alerting_policy.AlertingPolicyNameList(override.OverrideExtractResourceNames(typedMsg))
   828  	}
   829  	return nil
   830  }
   831  
   832  func (h *WatchAlertingPolicyDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   833  	typedMsg := msg.(*WatchAlertingPolicyRequest)
   834  	var asInterface interface{} = h
   835  	override, ok := asInterface.(interface {
   836  		OverrideExtractCollectionName(*WatchAlertingPolicyRequest) *alerting_policy.ParentName
   837  	})
   838  	if ok {
   839  		return override.OverrideExtractCollectionName(typedMsg)
   840  	}
   841  	return nil
   842  }
   843  
   844  func (h *WatchAlertingPolicyDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   845  	typedMsg := msg.(*WatchAlertingPolicyRequest)
   846  	var asInterface interface{} = h
   847  	override, ok := asInterface.(interface {
   848  		OverrideExtractResourceBody(*WatchAlertingPolicyRequest) *alerting_policy.AlertingPolicy
   849  	})
   850  	if ok {
   851  		return override.OverrideExtractResourceBody(typedMsg)
   852  	}
   853  	return nil
   854  }
   855  
   856  func (h *WatchAlertingPolicyDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   857  	typedMsg := msg.(*WatchAlertingPolicyRequest)
   858  	var asInterface interface{} = h
   859  	override, ok := asInterface.(interface {
   860  		OverrideExtractResourceBodies(*WatchAlertingPolicyRequest) []*alerting_policy.AlertingPolicy
   861  	})
   862  	if ok {
   863  		return alerting_policy.AlertingPolicyList(override.OverrideExtractResourceBodies(typedMsg))
   864  	}
   865  	return nil
   866  }
   867  
   868  func (h *WatchAlertingPolicyDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   869  	typedMsg := msg.(*WatchAlertingPolicyResponse)
   870  	var asInterface interface{} = h
   871  	override, ok := asInterface.(interface {
   872  		OverrideExtractResourceName(*WatchAlertingPolicyResponse) *alerting_policy.Name
   873  	})
   874  	if ok {
   875  		return override.OverrideExtractResourceName(typedMsg)
   876  	}
   877  	{
   878  		if resChange := typedMsg.GetChange(); resChange != nil {
   879  			switch tResChange := resChange.ChangeType.(type) {
   880  			case *alerting_policy.AlertingPolicyChange_Added_:
   881  				return tResChange.Added.GetAlertingPolicy().GetName()
   882  			case *alerting_policy.AlertingPolicyChange_Modified_:
   883  				return tResChange.Modified.GetName()
   884  			case *alerting_policy.AlertingPolicyChange_Removed_:
   885  				return tResChange.Removed.GetName()
   886  			case *alerting_policy.AlertingPolicyChange_Current_:
   887  				return tResChange.Current.GetAlertingPolicy().GetName()
   888  			}
   889  		}
   890  	}
   891  	return (*alerting_policy.Name)(nil)
   892  }
   893  
   894  func (h *WatchAlertingPolicyDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   895  	typedMsg := msg.(*WatchAlertingPolicyResponse)
   896  	var asInterface interface{} = h
   897  	override, ok := asInterface.(interface {
   898  		OverrideExtractResourceNames(*WatchAlertingPolicyResponse) []*alerting_policy.Name
   899  	})
   900  	if ok {
   901  		return alerting_policy.AlertingPolicyNameList(override.OverrideExtractResourceNames(typedMsg))
   902  	}
   903  	return nil
   904  }
   905  
   906  func (h *WatchAlertingPolicyDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   907  	typedMsg := msg.(*WatchAlertingPolicyResponse)
   908  	var asInterface interface{} = h
   909  	override, ok := asInterface.(interface {
   910  		OverrideExtractCollectionName(*WatchAlertingPolicyResponse) *alerting_policy.ParentName
   911  	})
   912  	if ok {
   913  		return override.OverrideExtractCollectionName(typedMsg)
   914  	}
   915  	return nil
   916  }
   917  
   918  func (h *WatchAlertingPolicyDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   919  	typedMsg := msg.(*WatchAlertingPolicyResponse)
   920  	var asInterface interface{} = h
   921  	override, ok := asInterface.(interface {
   922  		OverrideExtractResourceBody(*WatchAlertingPolicyResponse) *alerting_policy.AlertingPolicy
   923  	})
   924  	if ok {
   925  		return override.OverrideExtractResourceBody(typedMsg)
   926  	}
   927  	{
   928  		if resChange := typedMsg.GetChange(); resChange != nil {
   929  			switch tResChange := resChange.ChangeType.(type) {
   930  			case *alerting_policy.AlertingPolicyChange_Added_:
   931  				return tResChange.Added.GetAlertingPolicy()
   932  			case *alerting_policy.AlertingPolicyChange_Modified_:
   933  				return tResChange.Modified.GetAlertingPolicy()
   934  			case *alerting_policy.AlertingPolicyChange_Current_:
   935  				return tResChange.Current.GetAlertingPolicy()
   936  			}
   937  		}
   938  	}
   939  	return (*alerting_policy.AlertingPolicy)(nil)
   940  }
   941  
   942  func (h *WatchAlertingPolicyDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   943  	typedMsg := msg.(*WatchAlertingPolicyResponse)
   944  	var asInterface interface{} = h
   945  	override, ok := asInterface.(interface {
   946  		OverrideExtractResourceBodies(*WatchAlertingPolicyResponse) []*alerting_policy.AlertingPolicy
   947  	})
   948  	if ok {
   949  		return alerting_policy.AlertingPolicyList(override.OverrideExtractResourceBodies(typedMsg))
   950  	}
   951  	return nil
   952  }
   953  
   954  func GetWatchAlertingPolicyDescriptor() *WatchAlertingPolicyDescriptor {
   955  	return watchAlertingPolicyDescriptor
   956  }
   957  
   958  type WatchAlertingPoliciesDescriptor struct{}
   959  
   960  type WatchAlertingPoliciesDescriptorClientMsgHandle struct{}
   961  
   962  type WatchAlertingPoliciesDescriptorServerMsgHandle struct{}
   963  
   964  func (d *WatchAlertingPoliciesDescriptor) NewEmptyClientMsg() proto.Message {
   965  	return &WatchAlertingPoliciesRequest{}
   966  }
   967  
   968  func (d *WatchAlertingPoliciesDescriptor) NewEmptyServerMsg() proto.Message {
   969  	return &WatchAlertingPoliciesResponse{}
   970  }
   971  
   972  func (d *WatchAlertingPoliciesDescriptor) IsUnary() bool {
   973  	return false
   974  }
   975  
   976  func (d *WatchAlertingPoliciesDescriptor) IsClientStream() bool {
   977  	return false
   978  }
   979  
   980  func (d *WatchAlertingPoliciesDescriptor) IsServerStream() bool {
   981  	return true
   982  }
   983  
   984  func (d *WatchAlertingPoliciesDescriptor) IsCollection() bool {
   985  	return true
   986  }
   987  
   988  func (d *WatchAlertingPoliciesDescriptor) IsPlural() bool {
   989  	return true
   990  }
   991  
   992  func (d *WatchAlertingPoliciesDescriptor) HasResource() bool {
   993  	return true
   994  }
   995  
   996  func (d *WatchAlertingPoliciesDescriptor) RequestHasResourceBody() bool {
   997  	return false
   998  }
   999  
  1000  func (d *WatchAlertingPoliciesDescriptor) GetVerb() string {
  1001  	return "watch"
  1002  }
  1003  
  1004  func (d *WatchAlertingPoliciesDescriptor) GetMethodName() string {
  1005  	return "WatchAlertingPolicies"
  1006  }
  1007  
  1008  func (d *WatchAlertingPoliciesDescriptor) GetFullMethodName() string {
  1009  	return "/ntt.monitoring.v4.AlertingPolicyService/WatchAlertingPolicies"
  1010  }
  1011  
  1012  func (d *WatchAlertingPoliciesDescriptor) GetProtoPkgName() string {
  1013  	return "ntt.monitoring.v4"
  1014  }
  1015  
  1016  func (d *WatchAlertingPoliciesDescriptor) GetApiName() string {
  1017  	return "AlertingPolicyService"
  1018  }
  1019  
  1020  func (d *WatchAlertingPoliciesDescriptor) GetServiceDomain() string {
  1021  	return "monitoring.edgelq.com"
  1022  }
  1023  
  1024  func (d *WatchAlertingPoliciesDescriptor) GetServiceVersion() string {
  1025  	return "v4"
  1026  }
  1027  
  1028  func (d *WatchAlertingPoliciesDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor {
  1029  	return alertingPolicyServiceDescriptor
  1030  }
  1031  
  1032  func (d *WatchAlertingPoliciesDescriptor) GetResourceDescriptor() gotenresource.Descriptor {
  1033  	return alerting_policy.GetDescriptor()
  1034  }
  1035  
  1036  func (d *WatchAlertingPoliciesDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle {
  1037  	return &WatchAlertingPoliciesDescriptorClientMsgHandle{}
  1038  }
  1039  
  1040  func (d *WatchAlertingPoliciesDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle {
  1041  	return &WatchAlertingPoliciesDescriptorServerMsgHandle{}
  1042  }
  1043  
  1044  func (h *WatchAlertingPoliciesDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
  1045  	typedMsg := msg.(*WatchAlertingPoliciesRequest)
  1046  	var asInterface interface{} = h
  1047  	override, ok := asInterface.(interface {
  1048  		OverrideExtractResourceName(*WatchAlertingPoliciesRequest) *alerting_policy.Name
  1049  	})
  1050  	if ok {
  1051  		return override.OverrideExtractResourceName(typedMsg)
  1052  	}
  1053  	return nil
  1054  }
  1055  
  1056  func (h *WatchAlertingPoliciesDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
  1057  	typedMsg := msg.(*WatchAlertingPoliciesRequest)
  1058  	var asInterface interface{} = h
  1059  	override, ok := asInterface.(interface {
  1060  		OverrideExtractResourceNames(*WatchAlertingPoliciesRequest) []*alerting_policy.Name
  1061  	})
  1062  	if ok {
  1063  		return alerting_policy.AlertingPolicyNameList(override.OverrideExtractResourceNames(typedMsg))
  1064  	}
  1065  	return nil
  1066  }
  1067  
  1068  func (h *WatchAlertingPoliciesDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
  1069  	typedMsg := msg.(*WatchAlertingPoliciesRequest)
  1070  	var asInterface interface{} = h
  1071  	override, ok := asInterface.(interface {
  1072  		OverrideExtractCollectionName(*WatchAlertingPoliciesRequest) *alerting_policy.ParentName
  1073  	})
  1074  	if ok {
  1075  		return override.OverrideExtractCollectionName(typedMsg)
  1076  	}
  1077  	{
  1078  		if parentName := typedMsg.GetParent(); parentName != nil {
  1079  			return parentName
  1080  		}
  1081  	}
  1082  	return (*alerting_policy.ParentName)(nil)
  1083  }
  1084  
  1085  func (h *WatchAlertingPoliciesDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
  1086  	typedMsg := msg.(*WatchAlertingPoliciesRequest)
  1087  	var asInterface interface{} = h
  1088  	override, ok := asInterface.(interface {
  1089  		OverrideExtractResourceBody(*WatchAlertingPoliciesRequest) *alerting_policy.AlertingPolicy
  1090  	})
  1091  	if ok {
  1092  		return override.OverrideExtractResourceBody(typedMsg)
  1093  	}
  1094  	return nil
  1095  }
  1096  
  1097  func (h *WatchAlertingPoliciesDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
  1098  	typedMsg := msg.(*WatchAlertingPoliciesRequest)
  1099  	var asInterface interface{} = h
  1100  	override, ok := asInterface.(interface {
  1101  		OverrideExtractResourceBodies(*WatchAlertingPoliciesRequest) []*alerting_policy.AlertingPolicy
  1102  	})
  1103  	if ok {
  1104  		return alerting_policy.AlertingPolicyList(override.OverrideExtractResourceBodies(typedMsg))
  1105  	}
  1106  	return nil
  1107  }
  1108  
  1109  func (h *WatchAlertingPoliciesDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
  1110  	typedMsg := msg.(*WatchAlertingPoliciesResponse)
  1111  	var asInterface interface{} = h
  1112  	override, ok := asInterface.(interface {
  1113  		OverrideExtractResourceName(*WatchAlertingPoliciesResponse) *alerting_policy.Name
  1114  	})
  1115  	if ok {
  1116  		return override.OverrideExtractResourceName(typedMsg)
  1117  	}
  1118  	return nil
  1119  }
  1120  
  1121  func (h *WatchAlertingPoliciesDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
  1122  	typedMsg := msg.(*WatchAlertingPoliciesResponse)
  1123  	var asInterface interface{} = h
  1124  	override, ok := asInterface.(interface {
  1125  		OverrideExtractResourceNames(*WatchAlertingPoliciesResponse) []*alerting_policy.Name
  1126  	})
  1127  	if ok {
  1128  		return alerting_policy.AlertingPolicyNameList(override.OverrideExtractResourceNames(typedMsg))
  1129  	}
  1130  	{
  1131  		if resChanges := typedMsg.GetAlertingPolicyChanges(); len(resChanges) > 0 {
  1132  			list := make(alerting_policy.AlertingPolicyNameList, 0, len(resChanges))
  1133  			for _, resChange := range resChanges {
  1134  				switch tResChange := resChange.ChangeType.(type) {
  1135  				case *alerting_policy.AlertingPolicyChange_Added_:
  1136  					list = append(list, tResChange.Added.GetAlertingPolicy().GetName())
  1137  				case *alerting_policy.AlertingPolicyChange_Modified_:
  1138  					list = append(list, tResChange.Modified.GetName())
  1139  				case *alerting_policy.AlertingPolicyChange_Removed_:
  1140  					list = append(list, tResChange.Removed.GetName())
  1141  				case *alerting_policy.AlertingPolicyChange_Current_:
  1142  					list = append(list, tResChange.Current.GetAlertingPolicy().GetName())
  1143  				}
  1144  			}
  1145  			return list
  1146  		}
  1147  	}
  1148  	return (alerting_policy.AlertingPolicyNameList)(nil)
  1149  }
  1150  
  1151  func (h *WatchAlertingPoliciesDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
  1152  	typedMsg := msg.(*WatchAlertingPoliciesResponse)
  1153  	var asInterface interface{} = h
  1154  	override, ok := asInterface.(interface {
  1155  		OverrideExtractCollectionName(*WatchAlertingPoliciesResponse) *alerting_policy.ParentName
  1156  	})
  1157  	if ok {
  1158  		return override.OverrideExtractCollectionName(typedMsg)
  1159  	}
  1160  	return nil
  1161  }
  1162  
  1163  func (h *WatchAlertingPoliciesDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
  1164  	typedMsg := msg.(*WatchAlertingPoliciesResponse)
  1165  	var asInterface interface{} = h
  1166  	override, ok := asInterface.(interface {
  1167  		OverrideExtractResourceBody(*WatchAlertingPoliciesResponse) *alerting_policy.AlertingPolicy
  1168  	})
  1169  	if ok {
  1170  		return override.OverrideExtractResourceBody(typedMsg)
  1171  	}
  1172  	return nil
  1173  }
  1174  
  1175  func (h *WatchAlertingPoliciesDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
  1176  	typedMsg := msg.(*WatchAlertingPoliciesResponse)
  1177  	var asInterface interface{} = h
  1178  	override, ok := asInterface.(interface {
  1179  		OverrideExtractResourceBodies(*WatchAlertingPoliciesResponse) []*alerting_policy.AlertingPolicy
  1180  	})
  1181  	if ok {
  1182  		return alerting_policy.AlertingPolicyList(override.OverrideExtractResourceBodies(typedMsg))
  1183  	}
  1184  	{
  1185  		if resChanges := typedMsg.GetAlertingPolicyChanges(); len(resChanges) > 0 {
  1186  			list := make(alerting_policy.AlertingPolicyList, 0, len(resChanges))
  1187  			for _, resChange := range resChanges {
  1188  				switch tResChange := resChange.ChangeType.(type) {
  1189  				case *alerting_policy.AlertingPolicyChange_Added_:
  1190  					list = append(list, tResChange.Added.GetAlertingPolicy())
  1191  				case *alerting_policy.AlertingPolicyChange_Modified_:
  1192  					list = append(list, tResChange.Modified.GetAlertingPolicy())
  1193  				case *alerting_policy.AlertingPolicyChange_Current_:
  1194  					list = append(list, tResChange.Current.GetAlertingPolicy())
  1195  				}
  1196  			}
  1197  			return list
  1198  		}
  1199  	}
  1200  	return (alerting_policy.AlertingPolicyList)(nil)
  1201  }
  1202  
  1203  func GetWatchAlertingPoliciesDescriptor() *WatchAlertingPoliciesDescriptor {
  1204  	return watchAlertingPoliciesDescriptor
  1205  }
  1206  
  1207  type CreateAlertingPolicyDescriptor struct{}
  1208  
  1209  type CreateAlertingPolicyDescriptorClientMsgHandle struct{}
  1210  
  1211  type CreateAlertingPolicyDescriptorServerMsgHandle struct{}
  1212  
  1213  func (d *CreateAlertingPolicyDescriptor) NewEmptyClientMsg() proto.Message {
  1214  	return &CreateAlertingPolicyRequest{}
  1215  }
  1216  
  1217  func (d *CreateAlertingPolicyDescriptor) NewEmptyServerMsg() proto.Message {
  1218  	return &alerting_policy.AlertingPolicy{}
  1219  }
  1220  
  1221  func (d *CreateAlertingPolicyDescriptor) IsUnary() bool {
  1222  	return true
  1223  }
  1224  
  1225  func (d *CreateAlertingPolicyDescriptor) IsClientStream() bool {
  1226  	return false
  1227  }
  1228  
  1229  func (d *CreateAlertingPolicyDescriptor) IsServerStream() bool {
  1230  	return false
  1231  }
  1232  
  1233  func (d *CreateAlertingPolicyDescriptor) IsCollection() bool {
  1234  	return true
  1235  }
  1236  
  1237  func (d *CreateAlertingPolicyDescriptor) IsPlural() bool {
  1238  	return false
  1239  }
  1240  
  1241  func (d *CreateAlertingPolicyDescriptor) HasResource() bool {
  1242  	return true
  1243  }
  1244  
  1245  func (d *CreateAlertingPolicyDescriptor) RequestHasResourceBody() bool {
  1246  	return true
  1247  }
  1248  
  1249  func (d *CreateAlertingPolicyDescriptor) GetVerb() string {
  1250  	return "create"
  1251  }
  1252  
  1253  func (d *CreateAlertingPolicyDescriptor) GetMethodName() string {
  1254  	return "CreateAlertingPolicy"
  1255  }
  1256  
  1257  func (d *CreateAlertingPolicyDescriptor) GetFullMethodName() string {
  1258  	return "/ntt.monitoring.v4.AlertingPolicyService/CreateAlertingPolicy"
  1259  }
  1260  
  1261  func (d *CreateAlertingPolicyDescriptor) GetProtoPkgName() string {
  1262  	return "ntt.monitoring.v4"
  1263  }
  1264  
  1265  func (d *CreateAlertingPolicyDescriptor) GetApiName() string {
  1266  	return "AlertingPolicyService"
  1267  }
  1268  
  1269  func (d *CreateAlertingPolicyDescriptor) GetServiceDomain() string {
  1270  	return "monitoring.edgelq.com"
  1271  }
  1272  
  1273  func (d *CreateAlertingPolicyDescriptor) GetServiceVersion() string {
  1274  	return "v4"
  1275  }
  1276  
  1277  func (d *CreateAlertingPolicyDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor {
  1278  	return alertingPolicyServiceDescriptor
  1279  }
  1280  
  1281  func (d *CreateAlertingPolicyDescriptor) GetResourceDescriptor() gotenresource.Descriptor {
  1282  	return alerting_policy.GetDescriptor()
  1283  }
  1284  
  1285  func (d *CreateAlertingPolicyDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle {
  1286  	return &CreateAlertingPolicyDescriptorClientMsgHandle{}
  1287  }
  1288  
  1289  func (d *CreateAlertingPolicyDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle {
  1290  	return &CreateAlertingPolicyDescriptorServerMsgHandle{}
  1291  }
  1292  
  1293  func (h *CreateAlertingPolicyDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
  1294  	typedMsg := msg.(*CreateAlertingPolicyRequest)
  1295  	var asInterface interface{} = h
  1296  	override, ok := asInterface.(interface {
  1297  		OverrideExtractResourceName(*CreateAlertingPolicyRequest) *alerting_policy.Name
  1298  	})
  1299  	if ok {
  1300  		return override.OverrideExtractResourceName(typedMsg)
  1301  	}
  1302  	{
  1303  		res := typedMsg.GetAlertingPolicy()
  1304  		if name := res.GetName(); name != nil {
  1305  			return name
  1306  		}
  1307  	}
  1308  	return (*alerting_policy.Name)(nil)
  1309  }
  1310  
  1311  func (h *CreateAlertingPolicyDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
  1312  	typedMsg := msg.(*CreateAlertingPolicyRequest)
  1313  	var asInterface interface{} = h
  1314  	override, ok := asInterface.(interface {
  1315  		OverrideExtractResourceNames(*CreateAlertingPolicyRequest) []*alerting_policy.Name
  1316  	})
  1317  	if ok {
  1318  		return alerting_policy.AlertingPolicyNameList(override.OverrideExtractResourceNames(typedMsg))
  1319  	}
  1320  	return nil
  1321  }
  1322  
  1323  func (h *CreateAlertingPolicyDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
  1324  	typedMsg := msg.(*CreateAlertingPolicyRequest)
  1325  	var asInterface interface{} = h
  1326  	override, ok := asInterface.(interface {
  1327  		OverrideExtractCollectionName(*CreateAlertingPolicyRequest) *alerting_policy.ParentName
  1328  	})
  1329  	if ok {
  1330  		return override.OverrideExtractCollectionName(typedMsg)
  1331  	}
  1332  	{
  1333  		if parentName := typedMsg.GetParent(); parentName != nil {
  1334  			return parentName
  1335  		}
  1336  	}
  1337  	return (*alerting_policy.ParentName)(nil)
  1338  }
  1339  
  1340  func (h *CreateAlertingPolicyDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
  1341  	typedMsg := msg.(*CreateAlertingPolicyRequest)
  1342  	var asInterface interface{} = h
  1343  	override, ok := asInterface.(interface {
  1344  		OverrideExtractResourceBody(*CreateAlertingPolicyRequest) *alerting_policy.AlertingPolicy
  1345  	})
  1346  	if ok {
  1347  		return override.OverrideExtractResourceBody(typedMsg)
  1348  	}
  1349  	{
  1350  		return typedMsg.GetAlertingPolicy()
  1351  	}
  1352  	return (*alerting_policy.AlertingPolicy)(nil)
  1353  }
  1354  
  1355  func (h *CreateAlertingPolicyDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
  1356  	typedMsg := msg.(*CreateAlertingPolicyRequest)
  1357  	var asInterface interface{} = h
  1358  	override, ok := asInterface.(interface {
  1359  		OverrideExtractResourceBodies(*CreateAlertingPolicyRequest) []*alerting_policy.AlertingPolicy
  1360  	})
  1361  	if ok {
  1362  		return alerting_policy.AlertingPolicyList(override.OverrideExtractResourceBodies(typedMsg))
  1363  	}
  1364  	return nil
  1365  }
  1366  
  1367  func (h *CreateAlertingPolicyDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
  1368  	typedMsg := msg.(*alerting_policy.AlertingPolicy)
  1369  	var asInterface interface{} = h
  1370  	override, ok := asInterface.(interface {
  1371  		OverrideExtractResourceName(*alerting_policy.AlertingPolicy) *alerting_policy.Name
  1372  	})
  1373  	if ok {
  1374  		return override.OverrideExtractResourceName(typedMsg)
  1375  	}
  1376  	{
  1377  		if name := typedMsg.GetName(); name != nil {
  1378  			return name
  1379  		}
  1380  	}
  1381  	return (*alerting_policy.Name)(nil)
  1382  }
  1383  
  1384  func (h *CreateAlertingPolicyDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
  1385  	typedMsg := msg.(*alerting_policy.AlertingPolicy)
  1386  	var asInterface interface{} = h
  1387  	override, ok := asInterface.(interface {
  1388  		OverrideExtractResourceNames(*alerting_policy.AlertingPolicy) []*alerting_policy.Name
  1389  	})
  1390  	if ok {
  1391  		return alerting_policy.AlertingPolicyNameList(override.OverrideExtractResourceNames(typedMsg))
  1392  	}
  1393  	return nil
  1394  }
  1395  
  1396  func (h *CreateAlertingPolicyDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
  1397  	typedMsg := msg.(*alerting_policy.AlertingPolicy)
  1398  	var asInterface interface{} = h
  1399  	override, ok := asInterface.(interface {
  1400  		OverrideExtractCollectionName(*alerting_policy.AlertingPolicy) *alerting_policy.ParentName
  1401  	})
  1402  	if ok {
  1403  		return override.OverrideExtractCollectionName(typedMsg)
  1404  	}
  1405  	return nil
  1406  }
  1407  
  1408  func (h *CreateAlertingPolicyDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
  1409  	return msg.(*alerting_policy.AlertingPolicy)
  1410  }
  1411  
  1412  func (h *CreateAlertingPolicyDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
  1413  	typedMsg := msg.(*alerting_policy.AlertingPolicy)
  1414  	var asInterface interface{} = h
  1415  	override, ok := asInterface.(interface {
  1416  		OverrideExtractResourceBodies(*alerting_policy.AlertingPolicy) []*alerting_policy.AlertingPolicy
  1417  	})
  1418  	if ok {
  1419  		return alerting_policy.AlertingPolicyList(override.OverrideExtractResourceBodies(typedMsg))
  1420  	}
  1421  	return nil
  1422  }
  1423  
  1424  func GetCreateAlertingPolicyDescriptor() *CreateAlertingPolicyDescriptor {
  1425  	return createAlertingPolicyDescriptor
  1426  }
  1427  
  1428  type UpdateAlertingPolicyDescriptor struct{}
  1429  
  1430  type UpdateAlertingPolicyDescriptorClientMsgHandle struct{}
  1431  
  1432  type UpdateAlertingPolicyDescriptorServerMsgHandle struct{}
  1433  
  1434  func (d *UpdateAlertingPolicyDescriptor) NewEmptyClientMsg() proto.Message {
  1435  	return &UpdateAlertingPolicyRequest{}
  1436  }
  1437  
  1438  func (d *UpdateAlertingPolicyDescriptor) NewEmptyServerMsg() proto.Message {
  1439  	return &alerting_policy.AlertingPolicy{}
  1440  }
  1441  
  1442  func (d *UpdateAlertingPolicyDescriptor) IsUnary() bool {
  1443  	return true
  1444  }
  1445  
  1446  func (d *UpdateAlertingPolicyDescriptor) IsClientStream() bool {
  1447  	return false
  1448  }
  1449  
  1450  func (d *UpdateAlertingPolicyDescriptor) IsServerStream() bool {
  1451  	return false
  1452  }
  1453  
  1454  func (d *UpdateAlertingPolicyDescriptor) IsCollection() bool {
  1455  	return false
  1456  }
  1457  
  1458  func (d *UpdateAlertingPolicyDescriptor) IsPlural() bool {
  1459  	return false
  1460  }
  1461  
  1462  func (d *UpdateAlertingPolicyDescriptor) HasResource() bool {
  1463  	return true
  1464  }
  1465  
  1466  func (d *UpdateAlertingPolicyDescriptor) RequestHasResourceBody() bool {
  1467  	return true
  1468  }
  1469  
  1470  func (d *UpdateAlertingPolicyDescriptor) GetVerb() string {
  1471  	return "update"
  1472  }
  1473  
  1474  func (d *UpdateAlertingPolicyDescriptor) GetMethodName() string {
  1475  	return "UpdateAlertingPolicy"
  1476  }
  1477  
  1478  func (d *UpdateAlertingPolicyDescriptor) GetFullMethodName() string {
  1479  	return "/ntt.monitoring.v4.AlertingPolicyService/UpdateAlertingPolicy"
  1480  }
  1481  
  1482  func (d *UpdateAlertingPolicyDescriptor) GetProtoPkgName() string {
  1483  	return "ntt.monitoring.v4"
  1484  }
  1485  
  1486  func (d *UpdateAlertingPolicyDescriptor) GetApiName() string {
  1487  	return "AlertingPolicyService"
  1488  }
  1489  
  1490  func (d *UpdateAlertingPolicyDescriptor) GetServiceDomain() string {
  1491  	return "monitoring.edgelq.com"
  1492  }
  1493  
  1494  func (d *UpdateAlertingPolicyDescriptor) GetServiceVersion() string {
  1495  	return "v4"
  1496  }
  1497  
  1498  func (d *UpdateAlertingPolicyDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor {
  1499  	return alertingPolicyServiceDescriptor
  1500  }
  1501  
  1502  func (d *UpdateAlertingPolicyDescriptor) GetResourceDescriptor() gotenresource.Descriptor {
  1503  	return alerting_policy.GetDescriptor()
  1504  }
  1505  
  1506  func (d *UpdateAlertingPolicyDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle {
  1507  	return &UpdateAlertingPolicyDescriptorClientMsgHandle{}
  1508  }
  1509  
  1510  func (d *UpdateAlertingPolicyDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle {
  1511  	return &UpdateAlertingPolicyDescriptorServerMsgHandle{}
  1512  }
  1513  
  1514  func (h *UpdateAlertingPolicyDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
  1515  	typedMsg := msg.(*UpdateAlertingPolicyRequest)
  1516  	var asInterface interface{} = h
  1517  	override, ok := asInterface.(interface {
  1518  		OverrideExtractResourceName(*UpdateAlertingPolicyRequest) *alerting_policy.Name
  1519  	})
  1520  	if ok {
  1521  		return override.OverrideExtractResourceName(typedMsg)
  1522  	}
  1523  	{
  1524  		res := typedMsg.GetAlertingPolicy()
  1525  		if name := res.GetName(); name != nil {
  1526  			return name
  1527  		}
  1528  	}
  1529  	return (*alerting_policy.Name)(nil)
  1530  }
  1531  
  1532  func (h *UpdateAlertingPolicyDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
  1533  	typedMsg := msg.(*UpdateAlertingPolicyRequest)
  1534  	var asInterface interface{} = h
  1535  	override, ok := asInterface.(interface {
  1536  		OverrideExtractResourceNames(*UpdateAlertingPolicyRequest) []*alerting_policy.Name
  1537  	})
  1538  	if ok {
  1539  		return alerting_policy.AlertingPolicyNameList(override.OverrideExtractResourceNames(typedMsg))
  1540  	}
  1541  	return nil
  1542  }
  1543  
  1544  func (h *UpdateAlertingPolicyDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
  1545  	typedMsg := msg.(*UpdateAlertingPolicyRequest)
  1546  	var asInterface interface{} = h
  1547  	override, ok := asInterface.(interface {
  1548  		OverrideExtractCollectionName(*UpdateAlertingPolicyRequest) *alerting_policy.ParentName
  1549  	})
  1550  	if ok {
  1551  		return override.OverrideExtractCollectionName(typedMsg)
  1552  	}
  1553  	return nil
  1554  }
  1555  
  1556  func (h *UpdateAlertingPolicyDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
  1557  	typedMsg := msg.(*UpdateAlertingPolicyRequest)
  1558  	var asInterface interface{} = h
  1559  	override, ok := asInterface.(interface {
  1560  		OverrideExtractResourceBody(*UpdateAlertingPolicyRequest) *alerting_policy.AlertingPolicy
  1561  	})
  1562  	if ok {
  1563  		return override.OverrideExtractResourceBody(typedMsg)
  1564  	}
  1565  	{
  1566  		return typedMsg.GetAlertingPolicy()
  1567  	}
  1568  	return (*alerting_policy.AlertingPolicy)(nil)
  1569  }
  1570  
  1571  func (h *UpdateAlertingPolicyDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
  1572  	typedMsg := msg.(*UpdateAlertingPolicyRequest)
  1573  	var asInterface interface{} = h
  1574  	override, ok := asInterface.(interface {
  1575  		OverrideExtractResourceBodies(*UpdateAlertingPolicyRequest) []*alerting_policy.AlertingPolicy
  1576  	})
  1577  	if ok {
  1578  		return alerting_policy.AlertingPolicyList(override.OverrideExtractResourceBodies(typedMsg))
  1579  	}
  1580  	return nil
  1581  }
  1582  
  1583  func (h *UpdateAlertingPolicyDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
  1584  	typedMsg := msg.(*alerting_policy.AlertingPolicy)
  1585  	var asInterface interface{} = h
  1586  	override, ok := asInterface.(interface {
  1587  		OverrideExtractResourceName(*alerting_policy.AlertingPolicy) *alerting_policy.Name
  1588  	})
  1589  	if ok {
  1590  		return override.OverrideExtractResourceName(typedMsg)
  1591  	}
  1592  	{
  1593  		if name := typedMsg.GetName(); name != nil {
  1594  			return name
  1595  		}
  1596  	}
  1597  	return (*alerting_policy.Name)(nil)
  1598  }
  1599  
  1600  func (h *UpdateAlertingPolicyDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
  1601  	typedMsg := msg.(*alerting_policy.AlertingPolicy)
  1602  	var asInterface interface{} = h
  1603  	override, ok := asInterface.(interface {
  1604  		OverrideExtractResourceNames(*alerting_policy.AlertingPolicy) []*alerting_policy.Name
  1605  	})
  1606  	if ok {
  1607  		return alerting_policy.AlertingPolicyNameList(override.OverrideExtractResourceNames(typedMsg))
  1608  	}
  1609  	return nil
  1610  }
  1611  
  1612  func (h *UpdateAlertingPolicyDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
  1613  	typedMsg := msg.(*alerting_policy.AlertingPolicy)
  1614  	var asInterface interface{} = h
  1615  	override, ok := asInterface.(interface {
  1616  		OverrideExtractCollectionName(*alerting_policy.AlertingPolicy) *alerting_policy.ParentName
  1617  	})
  1618  	if ok {
  1619  		return override.OverrideExtractCollectionName(typedMsg)
  1620  	}
  1621  	return nil
  1622  }
  1623  
  1624  func (h *UpdateAlertingPolicyDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
  1625  	return msg.(*alerting_policy.AlertingPolicy)
  1626  }
  1627  
  1628  func (h *UpdateAlertingPolicyDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
  1629  	typedMsg := msg.(*alerting_policy.AlertingPolicy)
  1630  	var asInterface interface{} = h
  1631  	override, ok := asInterface.(interface {
  1632  		OverrideExtractResourceBodies(*alerting_policy.AlertingPolicy) []*alerting_policy.AlertingPolicy
  1633  	})
  1634  	if ok {
  1635  		return alerting_policy.AlertingPolicyList(override.OverrideExtractResourceBodies(typedMsg))
  1636  	}
  1637  	return nil
  1638  }
  1639  
  1640  func GetUpdateAlertingPolicyDescriptor() *UpdateAlertingPolicyDescriptor {
  1641  	return updateAlertingPolicyDescriptor
  1642  }
  1643  
  1644  type DeleteAlertingPolicyDescriptor struct{}
  1645  
  1646  type DeleteAlertingPolicyDescriptorClientMsgHandle struct{}
  1647  
  1648  type DeleteAlertingPolicyDescriptorServerMsgHandle struct{}
  1649  
  1650  func (d *DeleteAlertingPolicyDescriptor) NewEmptyClientMsg() proto.Message {
  1651  	return &DeleteAlertingPolicyRequest{}
  1652  }
  1653  
  1654  func (d *DeleteAlertingPolicyDescriptor) NewEmptyServerMsg() proto.Message {
  1655  	return &emptypb.Empty{}
  1656  }
  1657  
  1658  func (d *DeleteAlertingPolicyDescriptor) IsUnary() bool {
  1659  	return true
  1660  }
  1661  
  1662  func (d *DeleteAlertingPolicyDescriptor) IsClientStream() bool {
  1663  	return false
  1664  }
  1665  
  1666  func (d *DeleteAlertingPolicyDescriptor) IsServerStream() bool {
  1667  	return false
  1668  }
  1669  
  1670  func (d *DeleteAlertingPolicyDescriptor) IsCollection() bool {
  1671  	return false
  1672  }
  1673  
  1674  func (d *DeleteAlertingPolicyDescriptor) IsPlural() bool {
  1675  	return false
  1676  }
  1677  
  1678  func (d *DeleteAlertingPolicyDescriptor) HasResource() bool {
  1679  	return true
  1680  }
  1681  
  1682  func (d *DeleteAlertingPolicyDescriptor) RequestHasResourceBody() bool {
  1683  	return false
  1684  }
  1685  
  1686  func (d *DeleteAlertingPolicyDescriptor) GetVerb() string {
  1687  	return "delete"
  1688  }
  1689  
  1690  func (d *DeleteAlertingPolicyDescriptor) GetMethodName() string {
  1691  	return "DeleteAlertingPolicy"
  1692  }
  1693  
  1694  func (d *DeleteAlertingPolicyDescriptor) GetFullMethodName() string {
  1695  	return "/ntt.monitoring.v4.AlertingPolicyService/DeleteAlertingPolicy"
  1696  }
  1697  
  1698  func (d *DeleteAlertingPolicyDescriptor) GetProtoPkgName() string {
  1699  	return "ntt.monitoring.v4"
  1700  }
  1701  
  1702  func (d *DeleteAlertingPolicyDescriptor) GetApiName() string {
  1703  	return "AlertingPolicyService"
  1704  }
  1705  
  1706  func (d *DeleteAlertingPolicyDescriptor) GetServiceDomain() string {
  1707  	return "monitoring.edgelq.com"
  1708  }
  1709  
  1710  func (d *DeleteAlertingPolicyDescriptor) GetServiceVersion() string {
  1711  	return "v4"
  1712  }
  1713  
  1714  func (d *DeleteAlertingPolicyDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor {
  1715  	return alertingPolicyServiceDescriptor
  1716  }
  1717  
  1718  func (d *DeleteAlertingPolicyDescriptor) GetResourceDescriptor() gotenresource.Descriptor {
  1719  	return alerting_policy.GetDescriptor()
  1720  }
  1721  
  1722  func (d *DeleteAlertingPolicyDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle {
  1723  	return &DeleteAlertingPolicyDescriptorClientMsgHandle{}
  1724  }
  1725  
  1726  func (d *DeleteAlertingPolicyDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle {
  1727  	return &DeleteAlertingPolicyDescriptorServerMsgHandle{}
  1728  }
  1729  
  1730  func (h *DeleteAlertingPolicyDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
  1731  	typedMsg := msg.(*DeleteAlertingPolicyRequest)
  1732  	var asInterface interface{} = h
  1733  	override, ok := asInterface.(interface {
  1734  		OverrideExtractResourceName(*DeleteAlertingPolicyRequest) *alerting_policy.Name
  1735  	})
  1736  	if ok {
  1737  		return override.OverrideExtractResourceName(typedMsg)
  1738  	}
  1739  	{
  1740  		if name := typedMsg.GetName(); name != nil {
  1741  			return name
  1742  		}
  1743  	}
  1744  	return (*alerting_policy.Name)(nil)
  1745  }
  1746  
  1747  func (h *DeleteAlertingPolicyDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
  1748  	typedMsg := msg.(*DeleteAlertingPolicyRequest)
  1749  	var asInterface interface{} = h
  1750  	override, ok := asInterface.(interface {
  1751  		OverrideExtractResourceNames(*DeleteAlertingPolicyRequest) []*alerting_policy.Name
  1752  	})
  1753  	if ok {
  1754  		return alerting_policy.AlertingPolicyNameList(override.OverrideExtractResourceNames(typedMsg))
  1755  	}
  1756  	return nil
  1757  }
  1758  
  1759  func (h *DeleteAlertingPolicyDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
  1760  	typedMsg := msg.(*DeleteAlertingPolicyRequest)
  1761  	var asInterface interface{} = h
  1762  	override, ok := asInterface.(interface {
  1763  		OverrideExtractCollectionName(*DeleteAlertingPolicyRequest) *alerting_policy.ParentName
  1764  	})
  1765  	if ok {
  1766  		return override.OverrideExtractCollectionName(typedMsg)
  1767  	}
  1768  	return nil
  1769  }
  1770  
  1771  func (h *DeleteAlertingPolicyDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
  1772  	typedMsg := msg.(*DeleteAlertingPolicyRequest)
  1773  	var asInterface interface{} = h
  1774  	override, ok := asInterface.(interface {
  1775  		OverrideExtractResourceBody(*DeleteAlertingPolicyRequest) *alerting_policy.AlertingPolicy
  1776  	})
  1777  	if ok {
  1778  		return override.OverrideExtractResourceBody(typedMsg)
  1779  	}
  1780  	return nil
  1781  }
  1782  
  1783  func (h *DeleteAlertingPolicyDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
  1784  	typedMsg := msg.(*DeleteAlertingPolicyRequest)
  1785  	var asInterface interface{} = h
  1786  	override, ok := asInterface.(interface {
  1787  		OverrideExtractResourceBodies(*DeleteAlertingPolicyRequest) []*alerting_policy.AlertingPolicy
  1788  	})
  1789  	if ok {
  1790  		return alerting_policy.AlertingPolicyList(override.OverrideExtractResourceBodies(typedMsg))
  1791  	}
  1792  	return nil
  1793  }
  1794  
  1795  func (h *DeleteAlertingPolicyDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
  1796  	typedMsg := msg.(*emptypb.Empty)
  1797  	var asInterface interface{} = h
  1798  	override, ok := asInterface.(interface {
  1799  		OverrideExtractResourceName(*emptypb.Empty) *alerting_policy.Name
  1800  	})
  1801  	if ok {
  1802  		return override.OverrideExtractResourceName(typedMsg)
  1803  	}
  1804  	return nil
  1805  }
  1806  
  1807  func (h *DeleteAlertingPolicyDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
  1808  	typedMsg := msg.(*emptypb.Empty)
  1809  	var asInterface interface{} = h
  1810  	override, ok := asInterface.(interface {
  1811  		OverrideExtractResourceNames(*emptypb.Empty) []*alerting_policy.Name
  1812  	})
  1813  	if ok {
  1814  		return alerting_policy.AlertingPolicyNameList(override.OverrideExtractResourceNames(typedMsg))
  1815  	}
  1816  	return nil
  1817  }
  1818  
  1819  func (h *DeleteAlertingPolicyDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
  1820  	typedMsg := msg.(*emptypb.Empty)
  1821  	var asInterface interface{} = h
  1822  	override, ok := asInterface.(interface {
  1823  		OverrideExtractCollectionName(*emptypb.Empty) *alerting_policy.ParentName
  1824  	})
  1825  	if ok {
  1826  		return override.OverrideExtractCollectionName(typedMsg)
  1827  	}
  1828  	return nil
  1829  }
  1830  
  1831  func (h *DeleteAlertingPolicyDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
  1832  	typedMsg := msg.(*emptypb.Empty)
  1833  	var asInterface interface{} = h
  1834  	override, ok := asInterface.(interface {
  1835  		OverrideExtractResourceBody(*emptypb.Empty) *alerting_policy.AlertingPolicy
  1836  	})
  1837  	if ok {
  1838  		return override.OverrideExtractResourceBody(typedMsg)
  1839  	}
  1840  	return nil
  1841  }
  1842  
  1843  func (h *DeleteAlertingPolicyDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
  1844  	typedMsg := msg.(*emptypb.Empty)
  1845  	var asInterface interface{} = h
  1846  	override, ok := asInterface.(interface {
  1847  		OverrideExtractResourceBodies(*emptypb.Empty) []*alerting_policy.AlertingPolicy
  1848  	})
  1849  	if ok {
  1850  		return alerting_policy.AlertingPolicyList(override.OverrideExtractResourceBodies(typedMsg))
  1851  	}
  1852  	return nil
  1853  }
  1854  
  1855  func GetDeleteAlertingPolicyDescriptor() *DeleteAlertingPolicyDescriptor {
  1856  	return deleteAlertingPolicyDescriptor
  1857  }
  1858  
  1859  type SearchAlertingPoliciesDescriptor struct{}
  1860  
  1861  type SearchAlertingPoliciesDescriptorClientMsgHandle struct{}
  1862  
  1863  type SearchAlertingPoliciesDescriptorServerMsgHandle struct{}
  1864  
  1865  func (d *SearchAlertingPoliciesDescriptor) NewEmptyClientMsg() proto.Message {
  1866  	return &SearchAlertingPoliciesRequest{}
  1867  }
  1868  
  1869  func (d *SearchAlertingPoliciesDescriptor) NewEmptyServerMsg() proto.Message {
  1870  	return &SearchAlertingPoliciesResponse{}
  1871  }
  1872  
  1873  func (d *SearchAlertingPoliciesDescriptor) IsUnary() bool {
  1874  	return true
  1875  }
  1876  
  1877  func (d *SearchAlertingPoliciesDescriptor) IsClientStream() bool {
  1878  	return false
  1879  }
  1880  
  1881  func (d *SearchAlertingPoliciesDescriptor) IsServerStream() bool {
  1882  	return false
  1883  }
  1884  
  1885  func (d *SearchAlertingPoliciesDescriptor) IsCollection() bool {
  1886  	return true
  1887  }
  1888  
  1889  func (d *SearchAlertingPoliciesDescriptor) IsPlural() bool {
  1890  	return true
  1891  }
  1892  
  1893  func (d *SearchAlertingPoliciesDescriptor) HasResource() bool {
  1894  	return true
  1895  }
  1896  
  1897  func (d *SearchAlertingPoliciesDescriptor) RequestHasResourceBody() bool {
  1898  	return false
  1899  }
  1900  
  1901  func (d *SearchAlertingPoliciesDescriptor) GetVerb() string {
  1902  	return "search"
  1903  }
  1904  
  1905  func (d *SearchAlertingPoliciesDescriptor) GetMethodName() string {
  1906  	return "SearchAlertingPolicies"
  1907  }
  1908  
  1909  func (d *SearchAlertingPoliciesDescriptor) GetFullMethodName() string {
  1910  	return "/ntt.monitoring.v4.AlertingPolicyService/SearchAlertingPolicies"
  1911  }
  1912  
  1913  func (d *SearchAlertingPoliciesDescriptor) GetProtoPkgName() string {
  1914  	return "ntt.monitoring.v4"
  1915  }
  1916  
  1917  func (d *SearchAlertingPoliciesDescriptor) GetApiName() string {
  1918  	return "AlertingPolicyService"
  1919  }
  1920  
  1921  func (d *SearchAlertingPoliciesDescriptor) GetServiceDomain() string {
  1922  	return "monitoring.edgelq.com"
  1923  }
  1924  
  1925  func (d *SearchAlertingPoliciesDescriptor) GetServiceVersion() string {
  1926  	return "v4"
  1927  }
  1928  
  1929  func (d *SearchAlertingPoliciesDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor {
  1930  	return alertingPolicyServiceDescriptor
  1931  }
  1932  
  1933  func (d *SearchAlertingPoliciesDescriptor) GetResourceDescriptor() gotenresource.Descriptor {
  1934  	return alerting_policy.GetDescriptor()
  1935  }
  1936  
  1937  func (d *SearchAlertingPoliciesDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle {
  1938  	return &SearchAlertingPoliciesDescriptorClientMsgHandle{}
  1939  }
  1940  
  1941  func (d *SearchAlertingPoliciesDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle {
  1942  	return &SearchAlertingPoliciesDescriptorServerMsgHandle{}
  1943  }
  1944  
  1945  func (h *SearchAlertingPoliciesDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
  1946  	typedMsg := msg.(*SearchAlertingPoliciesRequest)
  1947  	var asInterface interface{} = h
  1948  	override, ok := asInterface.(interface {
  1949  		OverrideExtractResourceName(*SearchAlertingPoliciesRequest) *alerting_policy.Name
  1950  	})
  1951  	if ok {
  1952  		return override.OverrideExtractResourceName(typedMsg)
  1953  	}
  1954  	return nil
  1955  }
  1956  
  1957  func (h *SearchAlertingPoliciesDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
  1958  	typedMsg := msg.(*SearchAlertingPoliciesRequest)
  1959  	var asInterface interface{} = h
  1960  	override, ok := asInterface.(interface {
  1961  		OverrideExtractResourceNames(*SearchAlertingPoliciesRequest) []*alerting_policy.Name
  1962  	})
  1963  	if ok {
  1964  		return alerting_policy.AlertingPolicyNameList(override.OverrideExtractResourceNames(typedMsg))
  1965  	}
  1966  	return nil
  1967  }
  1968  
  1969  func (h *SearchAlertingPoliciesDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
  1970  	typedMsg := msg.(*SearchAlertingPoliciesRequest)
  1971  	var asInterface interface{} = h
  1972  	override, ok := asInterface.(interface {
  1973  		OverrideExtractCollectionName(*SearchAlertingPoliciesRequest) *alerting_policy.ParentName
  1974  	})
  1975  	if ok {
  1976  		return override.OverrideExtractCollectionName(typedMsg)
  1977  	}
  1978  	{
  1979  		if parentName := typedMsg.GetParent(); parentName != nil {
  1980  			return parentName
  1981  		}
  1982  	}
  1983  	return (*alerting_policy.ParentName)(nil)
  1984  }
  1985  
  1986  func (h *SearchAlertingPoliciesDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
  1987  	typedMsg := msg.(*SearchAlertingPoliciesRequest)
  1988  	var asInterface interface{} = h
  1989  	override, ok := asInterface.(interface {
  1990  		OverrideExtractResourceBody(*SearchAlertingPoliciesRequest) *alerting_policy.AlertingPolicy
  1991  	})
  1992  	if ok {
  1993  		return override.OverrideExtractResourceBody(typedMsg)
  1994  	}
  1995  	return nil
  1996  }
  1997  
  1998  func (h *SearchAlertingPoliciesDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
  1999  	typedMsg := msg.(*SearchAlertingPoliciesRequest)
  2000  	var asInterface interface{} = h
  2001  	override, ok := asInterface.(interface {
  2002  		OverrideExtractResourceBodies(*SearchAlertingPoliciesRequest) []*alerting_policy.AlertingPolicy
  2003  	})
  2004  	if ok {
  2005  		return alerting_policy.AlertingPolicyList(override.OverrideExtractResourceBodies(typedMsg))
  2006  	}
  2007  	return nil
  2008  }
  2009  
  2010  func (h *SearchAlertingPoliciesDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
  2011  	typedMsg := msg.(*SearchAlertingPoliciesResponse)
  2012  	var asInterface interface{} = h
  2013  	override, ok := asInterface.(interface {
  2014  		OverrideExtractResourceName(*SearchAlertingPoliciesResponse) *alerting_policy.Name
  2015  	})
  2016  	if ok {
  2017  		return override.OverrideExtractResourceName(typedMsg)
  2018  	}
  2019  	return nil
  2020  }
  2021  
  2022  func (h *SearchAlertingPoliciesDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
  2023  	typedMsg := msg.(*SearchAlertingPoliciesResponse)
  2024  	var asInterface interface{} = h
  2025  	override, ok := asInterface.(interface {
  2026  		OverrideExtractResourceNames(*SearchAlertingPoliciesResponse) []*alerting_policy.Name
  2027  	})
  2028  	if ok {
  2029  		return alerting_policy.AlertingPolicyNameList(override.OverrideExtractResourceNames(typedMsg))
  2030  	}
  2031  	{
  2032  		if resources := typedMsg.GetAlertingPolicies(); len(resources) > 0 {
  2033  			list := make(alerting_policy.AlertingPolicyNameList, 0, len(resources))
  2034  			for _, res := range resources {
  2035  				list = append(list, res.GetName())
  2036  			}
  2037  			return list
  2038  		}
  2039  	}
  2040  	return (alerting_policy.AlertingPolicyNameList)(nil)
  2041  }
  2042  
  2043  func (h *SearchAlertingPoliciesDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
  2044  	typedMsg := msg.(*SearchAlertingPoliciesResponse)
  2045  	var asInterface interface{} = h
  2046  	override, ok := asInterface.(interface {
  2047  		OverrideExtractCollectionName(*SearchAlertingPoliciesResponse) *alerting_policy.ParentName
  2048  	})
  2049  	if ok {
  2050  		return override.OverrideExtractCollectionName(typedMsg)
  2051  	}
  2052  	return nil
  2053  }
  2054  
  2055  func (h *SearchAlertingPoliciesDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
  2056  	typedMsg := msg.(*SearchAlertingPoliciesResponse)
  2057  	var asInterface interface{} = h
  2058  	override, ok := asInterface.(interface {
  2059  		OverrideExtractResourceBody(*SearchAlertingPoliciesResponse) *alerting_policy.AlertingPolicy
  2060  	})
  2061  	if ok {
  2062  		return override.OverrideExtractResourceBody(typedMsg)
  2063  	}
  2064  	return nil
  2065  }
  2066  
  2067  func (h *SearchAlertingPoliciesDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
  2068  	typedMsg := msg.(*SearchAlertingPoliciesResponse)
  2069  	var asInterface interface{} = h
  2070  	override, ok := asInterface.(interface {
  2071  		OverrideExtractResourceBodies(*SearchAlertingPoliciesResponse) []*alerting_policy.AlertingPolicy
  2072  	})
  2073  	if ok {
  2074  		return alerting_policy.AlertingPolicyList(override.OverrideExtractResourceBodies(typedMsg))
  2075  	}
  2076  	{
  2077  		if resources := typedMsg.GetAlertingPolicies(); len(resources) > 0 {
  2078  			return alerting_policy.AlertingPolicyList(resources)
  2079  		}
  2080  	}
  2081  	return (alerting_policy.AlertingPolicyList)(nil)
  2082  }
  2083  
  2084  func GetSearchAlertingPoliciesDescriptor() *SearchAlertingPoliciesDescriptor {
  2085  	return searchAlertingPoliciesDescriptor
  2086  }
  2087  
  2088  type AlertingPolicyServiceDescriptor struct{}
  2089  
  2090  func (d *AlertingPolicyServiceDescriptor) AllMethodDescriptors() []gotenclient.MethodDescriptor {
  2091  	return []gotenclient.MethodDescriptor{
  2092  		getAlertingPolicyDescriptor,
  2093  		batchGetAlertingPoliciesDescriptor,
  2094  		listAlertingPoliciesDescriptor,
  2095  		watchAlertingPolicyDescriptor,
  2096  		watchAlertingPoliciesDescriptor,
  2097  		createAlertingPolicyDescriptor,
  2098  		updateAlertingPolicyDescriptor,
  2099  		deleteAlertingPolicyDescriptor,
  2100  		searchAlertingPoliciesDescriptor,
  2101  	}
  2102  }
  2103  
  2104  func (d *AlertingPolicyServiceDescriptor) GetFullAPIName() string {
  2105  	return "/ntt.monitoring.v4.AlertingPolicyService"
  2106  }
  2107  
  2108  func (d *AlertingPolicyServiceDescriptor) GetProtoPkgName() string {
  2109  	return "ntt.monitoring.v4"
  2110  }
  2111  
  2112  func (d *AlertingPolicyServiceDescriptor) GetApiName() string {
  2113  	return "AlertingPolicyService"
  2114  }
  2115  
  2116  func (d *AlertingPolicyServiceDescriptor) GetServiceDomain() string {
  2117  	return "monitoring.edgelq.com"
  2118  }
  2119  
  2120  func (d *AlertingPolicyServiceDescriptor) GetServiceVersion() string {
  2121  	return "v4"
  2122  }
  2123  
  2124  func GetAlertingPolicyServiceDescriptor() *AlertingPolicyServiceDescriptor {
  2125  	return alertingPolicyServiceDescriptor
  2126  }
  2127  
  2128  func initDescriptors() {
  2129  	alertingPolicyServiceDescriptor = &AlertingPolicyServiceDescriptor{}
  2130  	getAlertingPolicyDescriptor = &GetAlertingPolicyDescriptor{}
  2131  	batchGetAlertingPoliciesDescriptor = &BatchGetAlertingPoliciesDescriptor{}
  2132  	listAlertingPoliciesDescriptor = &ListAlertingPoliciesDescriptor{}
  2133  	watchAlertingPolicyDescriptor = &WatchAlertingPolicyDescriptor{}
  2134  	watchAlertingPoliciesDescriptor = &WatchAlertingPoliciesDescriptor{}
  2135  	createAlertingPolicyDescriptor = &CreateAlertingPolicyDescriptor{}
  2136  	updateAlertingPolicyDescriptor = &UpdateAlertingPolicyDescriptor{}
  2137  	deleteAlertingPolicyDescriptor = &DeleteAlertingPolicyDescriptor{}
  2138  	searchAlertingPoliciesDescriptor = &SearchAlertingPoliciesDescriptor{}
  2139  	gotenclient.GetRegistry().RegisterApiDescriptor(alertingPolicyServiceDescriptor)
  2140  	gotenclient.GetRegistry().RegisterMethodDescriptor(getAlertingPolicyDescriptor)
  2141  	gotenclient.GetRegistry().RegisterMethodDescriptor(batchGetAlertingPoliciesDescriptor)
  2142  	gotenclient.GetRegistry().RegisterMethodDescriptor(listAlertingPoliciesDescriptor)
  2143  	gotenclient.GetRegistry().RegisterMethodDescriptor(watchAlertingPolicyDescriptor)
  2144  	gotenclient.GetRegistry().RegisterMethodDescriptor(watchAlertingPoliciesDescriptor)
  2145  	gotenclient.GetRegistry().RegisterMethodDescriptor(createAlertingPolicyDescriptor)
  2146  	gotenclient.GetRegistry().RegisterMethodDescriptor(updateAlertingPolicyDescriptor)
  2147  	gotenclient.GetRegistry().RegisterMethodDescriptor(deleteAlertingPolicyDescriptor)
  2148  	gotenclient.GetRegistry().RegisterMethodDescriptor(searchAlertingPoliciesDescriptor)
  2149  }
  2150  
  2151  func init() {
  2152  	if !descriptorsInitialized {
  2153  		initDescriptors()
  2154  		descriptorsInitialized = true
  2155  	}
  2156  }