github.com/cloudwan/edgelq-sdk@v1.15.4/meta/client/v1alpha2/deployment/deployment_service.pb.descriptors.go (about)

     1  // Code generated by protoc-gen-goten-client
     2  // API: DeploymentService
     3  // DO NOT EDIT!!!
     4  
     5  package deployment_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  	deployment "github.com/cloudwan/edgelq-sdk/meta/resources/v1alpha2/deployment"
    17  )
    18  
    19  // Reference imports to suppress errors if they are not otherwise used.
    20  var (
    21  	_ = new(proto.Message)
    22  	_ = new(gotenclient.MethodDescriptor)
    23  	_ = gotenresource.WildcardId
    24  )
    25  
    26  // make sure we're using proto imports
    27  var (
    28  	_ = &deployment.Deployment{}
    29  )
    30  
    31  var (
    32  	descriptorsInitialized        bool
    33  	deploymentServiceDescriptor   *DeploymentServiceDescriptor
    34  	getDeploymentDescriptor       *GetDeploymentDescriptor
    35  	batchGetDeploymentsDescriptor *BatchGetDeploymentsDescriptor
    36  	listDeploymentsDescriptor     *ListDeploymentsDescriptor
    37  	watchDeploymentDescriptor     *WatchDeploymentDescriptor
    38  	watchDeploymentsDescriptor    *WatchDeploymentsDescriptor
    39  )
    40  
    41  type GetDeploymentDescriptor struct{}
    42  
    43  type GetDeploymentDescriptorClientMsgHandle struct{}
    44  
    45  type GetDeploymentDescriptorServerMsgHandle struct{}
    46  
    47  func (d *GetDeploymentDescriptor) NewEmptyClientMsg() proto.Message {
    48  	return &GetDeploymentRequest{}
    49  }
    50  
    51  func (d *GetDeploymentDescriptor) NewEmptyServerMsg() proto.Message {
    52  	return &deployment.Deployment{}
    53  }
    54  
    55  func (d *GetDeploymentDescriptor) IsUnary() bool {
    56  	return true
    57  }
    58  
    59  func (d *GetDeploymentDescriptor) IsClientStream() bool {
    60  	return false
    61  }
    62  
    63  func (d *GetDeploymentDescriptor) IsServerStream() bool {
    64  	return false
    65  }
    66  
    67  func (d *GetDeploymentDescriptor) IsCollection() bool {
    68  	return false
    69  }
    70  
    71  func (d *GetDeploymentDescriptor) IsPlural() bool {
    72  	return false
    73  }
    74  
    75  func (d *GetDeploymentDescriptor) HasResource() bool {
    76  	return true
    77  }
    78  
    79  func (d *GetDeploymentDescriptor) RequestHasResourceBody() bool {
    80  	return false
    81  }
    82  
    83  func (d *GetDeploymentDescriptor) GetVerb() string {
    84  	return "get"
    85  }
    86  
    87  func (d *GetDeploymentDescriptor) GetMethodName() string {
    88  	return "GetDeployment"
    89  }
    90  
    91  func (d *GetDeploymentDescriptor) GetFullMethodName() string {
    92  	return "/ntt.meta.v1alpha2.DeploymentService/GetDeployment"
    93  }
    94  
    95  func (d *GetDeploymentDescriptor) GetProtoPkgName() string {
    96  	return "ntt.meta.v1alpha2"
    97  }
    98  
    99  func (d *GetDeploymentDescriptor) GetApiName() string {
   100  	return "DeploymentService"
   101  }
   102  
   103  func (d *GetDeploymentDescriptor) GetServiceDomain() string {
   104  	return "meta.edgelq.com"
   105  }
   106  
   107  func (d *GetDeploymentDescriptor) GetServiceVersion() string {
   108  	return "v1alpha2"
   109  }
   110  
   111  func (d *GetDeploymentDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor {
   112  	return deploymentServiceDescriptor
   113  }
   114  
   115  func (d *GetDeploymentDescriptor) GetResourceDescriptor() gotenresource.Descriptor {
   116  	return deployment.GetDescriptor()
   117  }
   118  
   119  func (d *GetDeploymentDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle {
   120  	return &GetDeploymentDescriptorClientMsgHandle{}
   121  }
   122  
   123  func (d *GetDeploymentDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle {
   124  	return &GetDeploymentDescriptorServerMsgHandle{}
   125  }
   126  
   127  func (h *GetDeploymentDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   128  	typedMsg := msg.(*GetDeploymentRequest)
   129  	var asInterface interface{} = h
   130  	override, ok := asInterface.(interface {
   131  		OverrideExtractResourceName(*GetDeploymentRequest) *deployment.Name
   132  	})
   133  	if ok {
   134  		return override.OverrideExtractResourceName(typedMsg)
   135  	}
   136  	{
   137  		if name := typedMsg.GetName(); name != nil {
   138  			return name
   139  		}
   140  	}
   141  	return (*deployment.Name)(nil)
   142  }
   143  
   144  func (h *GetDeploymentDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   145  	typedMsg := msg.(*GetDeploymentRequest)
   146  	var asInterface interface{} = h
   147  	override, ok := asInterface.(interface {
   148  		OverrideExtractResourceNames(*GetDeploymentRequest) []*deployment.Name
   149  	})
   150  	if ok {
   151  		return deployment.DeploymentNameList(override.OverrideExtractResourceNames(typedMsg))
   152  	}
   153  	return nil
   154  }
   155  
   156  func (h *GetDeploymentDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   157  	typedMsg := msg.(*GetDeploymentRequest)
   158  	var asInterface interface{} = h
   159  	override, ok := asInterface.(interface {
   160  		OverrideExtractCollectionName(*GetDeploymentRequest) *deployment.ParentName
   161  	})
   162  	if ok {
   163  		return override.OverrideExtractCollectionName(typedMsg)
   164  	}
   165  	return nil
   166  }
   167  
   168  func (h *GetDeploymentDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   169  	typedMsg := msg.(*GetDeploymentRequest)
   170  	var asInterface interface{} = h
   171  	override, ok := asInterface.(interface {
   172  		OverrideExtractResourceBody(*GetDeploymentRequest) *deployment.Deployment
   173  	})
   174  	if ok {
   175  		return override.OverrideExtractResourceBody(typedMsg)
   176  	}
   177  	return nil
   178  }
   179  
   180  func (h *GetDeploymentDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   181  	typedMsg := msg.(*GetDeploymentRequest)
   182  	var asInterface interface{} = h
   183  	override, ok := asInterface.(interface {
   184  		OverrideExtractResourceBodies(*GetDeploymentRequest) []*deployment.Deployment
   185  	})
   186  	if ok {
   187  		return deployment.DeploymentList(override.OverrideExtractResourceBodies(typedMsg))
   188  	}
   189  	return nil
   190  }
   191  
   192  func (h *GetDeploymentDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   193  	typedMsg := msg.(*deployment.Deployment)
   194  	var asInterface interface{} = h
   195  	override, ok := asInterface.(interface {
   196  		OverrideExtractResourceName(*deployment.Deployment) *deployment.Name
   197  	})
   198  	if ok {
   199  		return override.OverrideExtractResourceName(typedMsg)
   200  	}
   201  	{
   202  		if name := typedMsg.GetName(); name != nil {
   203  			return name
   204  		}
   205  	}
   206  	return (*deployment.Name)(nil)
   207  }
   208  
   209  func (h *GetDeploymentDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   210  	typedMsg := msg.(*deployment.Deployment)
   211  	var asInterface interface{} = h
   212  	override, ok := asInterface.(interface {
   213  		OverrideExtractResourceNames(*deployment.Deployment) []*deployment.Name
   214  	})
   215  	if ok {
   216  		return deployment.DeploymentNameList(override.OverrideExtractResourceNames(typedMsg))
   217  	}
   218  	return nil
   219  }
   220  
   221  func (h *GetDeploymentDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   222  	typedMsg := msg.(*deployment.Deployment)
   223  	var asInterface interface{} = h
   224  	override, ok := asInterface.(interface {
   225  		OverrideExtractCollectionName(*deployment.Deployment) *deployment.ParentName
   226  	})
   227  	if ok {
   228  		return override.OverrideExtractCollectionName(typedMsg)
   229  	}
   230  	return nil
   231  }
   232  
   233  func (h *GetDeploymentDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   234  	return msg.(*deployment.Deployment)
   235  }
   236  
   237  func (h *GetDeploymentDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   238  	typedMsg := msg.(*deployment.Deployment)
   239  	var asInterface interface{} = h
   240  	override, ok := asInterface.(interface {
   241  		OverrideExtractResourceBodies(*deployment.Deployment) []*deployment.Deployment
   242  	})
   243  	if ok {
   244  		return deployment.DeploymentList(override.OverrideExtractResourceBodies(typedMsg))
   245  	}
   246  	return nil
   247  }
   248  
   249  func GetGetDeploymentDescriptor() *GetDeploymentDescriptor {
   250  	return getDeploymentDescriptor
   251  }
   252  
   253  type BatchGetDeploymentsDescriptor struct{}
   254  
   255  type BatchGetDeploymentsDescriptorClientMsgHandle struct{}
   256  
   257  type BatchGetDeploymentsDescriptorServerMsgHandle struct{}
   258  
   259  func (d *BatchGetDeploymentsDescriptor) NewEmptyClientMsg() proto.Message {
   260  	return &BatchGetDeploymentsRequest{}
   261  }
   262  
   263  func (d *BatchGetDeploymentsDescriptor) NewEmptyServerMsg() proto.Message {
   264  	return &BatchGetDeploymentsResponse{}
   265  }
   266  
   267  func (d *BatchGetDeploymentsDescriptor) IsUnary() bool {
   268  	return true
   269  }
   270  
   271  func (d *BatchGetDeploymentsDescriptor) IsClientStream() bool {
   272  	return false
   273  }
   274  
   275  func (d *BatchGetDeploymentsDescriptor) IsServerStream() bool {
   276  	return false
   277  }
   278  
   279  func (d *BatchGetDeploymentsDescriptor) IsCollection() bool {
   280  	return false
   281  }
   282  
   283  func (d *BatchGetDeploymentsDescriptor) IsPlural() bool {
   284  	return true
   285  }
   286  
   287  func (d *BatchGetDeploymentsDescriptor) HasResource() bool {
   288  	return true
   289  }
   290  
   291  func (d *BatchGetDeploymentsDescriptor) RequestHasResourceBody() bool {
   292  	return false
   293  }
   294  
   295  func (d *BatchGetDeploymentsDescriptor) GetVerb() string {
   296  	return "batchGet"
   297  }
   298  
   299  func (d *BatchGetDeploymentsDescriptor) GetMethodName() string {
   300  	return "BatchGetDeployments"
   301  }
   302  
   303  func (d *BatchGetDeploymentsDescriptor) GetFullMethodName() string {
   304  	return "/ntt.meta.v1alpha2.DeploymentService/BatchGetDeployments"
   305  }
   306  
   307  func (d *BatchGetDeploymentsDescriptor) GetProtoPkgName() string {
   308  	return "ntt.meta.v1alpha2"
   309  }
   310  
   311  func (d *BatchGetDeploymentsDescriptor) GetApiName() string {
   312  	return "DeploymentService"
   313  }
   314  
   315  func (d *BatchGetDeploymentsDescriptor) GetServiceDomain() string {
   316  	return "meta.edgelq.com"
   317  }
   318  
   319  func (d *BatchGetDeploymentsDescriptor) GetServiceVersion() string {
   320  	return "v1alpha2"
   321  }
   322  
   323  func (d *BatchGetDeploymentsDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor {
   324  	return deploymentServiceDescriptor
   325  }
   326  
   327  func (d *BatchGetDeploymentsDescriptor) GetResourceDescriptor() gotenresource.Descriptor {
   328  	return deployment.GetDescriptor()
   329  }
   330  
   331  func (d *BatchGetDeploymentsDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle {
   332  	return &BatchGetDeploymentsDescriptorClientMsgHandle{}
   333  }
   334  
   335  func (d *BatchGetDeploymentsDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle {
   336  	return &BatchGetDeploymentsDescriptorServerMsgHandle{}
   337  }
   338  
   339  func (h *BatchGetDeploymentsDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   340  	typedMsg := msg.(*BatchGetDeploymentsRequest)
   341  	var asInterface interface{} = h
   342  	override, ok := asInterface.(interface {
   343  		OverrideExtractResourceName(*BatchGetDeploymentsRequest) *deployment.Name
   344  	})
   345  	if ok {
   346  		return override.OverrideExtractResourceName(typedMsg)
   347  	}
   348  	return nil
   349  }
   350  
   351  func (h *BatchGetDeploymentsDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   352  	typedMsg := msg.(*BatchGetDeploymentsRequest)
   353  	var asInterface interface{} = h
   354  	override, ok := asInterface.(interface {
   355  		OverrideExtractResourceNames(*BatchGetDeploymentsRequest) []*deployment.Name
   356  	})
   357  	if ok {
   358  		return deployment.DeploymentNameList(override.OverrideExtractResourceNames(typedMsg))
   359  	}
   360  	{
   361  		if names := typedMsg.GetNames(); len(names) > 0 {
   362  			return deployment.DeploymentNameList(names)
   363  		}
   364  	}
   365  	return (deployment.DeploymentNameList)(nil)
   366  }
   367  
   368  func (h *BatchGetDeploymentsDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   369  	typedMsg := msg.(*BatchGetDeploymentsRequest)
   370  	var asInterface interface{} = h
   371  	override, ok := asInterface.(interface {
   372  		OverrideExtractCollectionName(*BatchGetDeploymentsRequest) *deployment.ParentName
   373  	})
   374  	if ok {
   375  		return override.OverrideExtractCollectionName(typedMsg)
   376  	}
   377  	return nil
   378  }
   379  
   380  func (h *BatchGetDeploymentsDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   381  	typedMsg := msg.(*BatchGetDeploymentsRequest)
   382  	var asInterface interface{} = h
   383  	override, ok := asInterface.(interface {
   384  		OverrideExtractResourceBody(*BatchGetDeploymentsRequest) *deployment.Deployment
   385  	})
   386  	if ok {
   387  		return override.OverrideExtractResourceBody(typedMsg)
   388  	}
   389  	return nil
   390  }
   391  
   392  func (h *BatchGetDeploymentsDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   393  	typedMsg := msg.(*BatchGetDeploymentsRequest)
   394  	var asInterface interface{} = h
   395  	override, ok := asInterface.(interface {
   396  		OverrideExtractResourceBodies(*BatchGetDeploymentsRequest) []*deployment.Deployment
   397  	})
   398  	if ok {
   399  		return deployment.DeploymentList(override.OverrideExtractResourceBodies(typedMsg))
   400  	}
   401  	return nil
   402  }
   403  
   404  func (h *BatchGetDeploymentsDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   405  	typedMsg := msg.(*BatchGetDeploymentsResponse)
   406  	var asInterface interface{} = h
   407  	override, ok := asInterface.(interface {
   408  		OverrideExtractResourceName(*BatchGetDeploymentsResponse) *deployment.Name
   409  	})
   410  	if ok {
   411  		return override.OverrideExtractResourceName(typedMsg)
   412  	}
   413  	return nil
   414  }
   415  
   416  func (h *BatchGetDeploymentsDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   417  	typedMsg := msg.(*BatchGetDeploymentsResponse)
   418  	var asInterface interface{} = h
   419  	override, ok := asInterface.(interface {
   420  		OverrideExtractResourceNames(*BatchGetDeploymentsResponse) []*deployment.Name
   421  	})
   422  	if ok {
   423  		return deployment.DeploymentNameList(override.OverrideExtractResourceNames(typedMsg))
   424  	}
   425  	{
   426  		if resources := typedMsg.GetDeployments(); len(resources) > 0 {
   427  			list := make(deployment.DeploymentNameList, 0, len(resources))
   428  			for _, res := range resources {
   429  				list = append(list, res.GetName())
   430  			}
   431  			return list
   432  		}
   433  	}
   434  	return (deployment.DeploymentNameList)(nil)
   435  }
   436  
   437  func (h *BatchGetDeploymentsDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   438  	typedMsg := msg.(*BatchGetDeploymentsResponse)
   439  	var asInterface interface{} = h
   440  	override, ok := asInterface.(interface {
   441  		OverrideExtractCollectionName(*BatchGetDeploymentsResponse) *deployment.ParentName
   442  	})
   443  	if ok {
   444  		return override.OverrideExtractCollectionName(typedMsg)
   445  	}
   446  	return nil
   447  }
   448  
   449  func (h *BatchGetDeploymentsDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   450  	typedMsg := msg.(*BatchGetDeploymentsResponse)
   451  	var asInterface interface{} = h
   452  	override, ok := asInterface.(interface {
   453  		OverrideExtractResourceBody(*BatchGetDeploymentsResponse) *deployment.Deployment
   454  	})
   455  	if ok {
   456  		return override.OverrideExtractResourceBody(typedMsg)
   457  	}
   458  	return nil
   459  }
   460  
   461  func (h *BatchGetDeploymentsDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   462  	typedMsg := msg.(*BatchGetDeploymentsResponse)
   463  	var asInterface interface{} = h
   464  	override, ok := asInterface.(interface {
   465  		OverrideExtractResourceBodies(*BatchGetDeploymentsResponse) []*deployment.Deployment
   466  	})
   467  	if ok {
   468  		return deployment.DeploymentList(override.OverrideExtractResourceBodies(typedMsg))
   469  	}
   470  	{
   471  		if resources := typedMsg.GetDeployments(); len(resources) > 0 {
   472  			return deployment.DeploymentList(resources)
   473  		}
   474  	}
   475  	return (deployment.DeploymentList)(nil)
   476  }
   477  
   478  func GetBatchGetDeploymentsDescriptor() *BatchGetDeploymentsDescriptor {
   479  	return batchGetDeploymentsDescriptor
   480  }
   481  
   482  type ListDeploymentsDescriptor struct{}
   483  
   484  type ListDeploymentsDescriptorClientMsgHandle struct{}
   485  
   486  type ListDeploymentsDescriptorServerMsgHandle struct{}
   487  
   488  func (d *ListDeploymentsDescriptor) NewEmptyClientMsg() proto.Message {
   489  	return &ListDeploymentsRequest{}
   490  }
   491  
   492  func (d *ListDeploymentsDescriptor) NewEmptyServerMsg() proto.Message {
   493  	return &ListDeploymentsResponse{}
   494  }
   495  
   496  func (d *ListDeploymentsDescriptor) IsUnary() bool {
   497  	return true
   498  }
   499  
   500  func (d *ListDeploymentsDescriptor) IsClientStream() bool {
   501  	return false
   502  }
   503  
   504  func (d *ListDeploymentsDescriptor) IsServerStream() bool {
   505  	return false
   506  }
   507  
   508  func (d *ListDeploymentsDescriptor) IsCollection() bool {
   509  	return true
   510  }
   511  
   512  func (d *ListDeploymentsDescriptor) IsPlural() bool {
   513  	return true
   514  }
   515  
   516  func (d *ListDeploymentsDescriptor) HasResource() bool {
   517  	return true
   518  }
   519  
   520  func (d *ListDeploymentsDescriptor) RequestHasResourceBody() bool {
   521  	return false
   522  }
   523  
   524  func (d *ListDeploymentsDescriptor) GetVerb() string {
   525  	return "list"
   526  }
   527  
   528  func (d *ListDeploymentsDescriptor) GetMethodName() string {
   529  	return "ListDeployments"
   530  }
   531  
   532  func (d *ListDeploymentsDescriptor) GetFullMethodName() string {
   533  	return "/ntt.meta.v1alpha2.DeploymentService/ListDeployments"
   534  }
   535  
   536  func (d *ListDeploymentsDescriptor) GetProtoPkgName() string {
   537  	return "ntt.meta.v1alpha2"
   538  }
   539  
   540  func (d *ListDeploymentsDescriptor) GetApiName() string {
   541  	return "DeploymentService"
   542  }
   543  
   544  func (d *ListDeploymentsDescriptor) GetServiceDomain() string {
   545  	return "meta.edgelq.com"
   546  }
   547  
   548  func (d *ListDeploymentsDescriptor) GetServiceVersion() string {
   549  	return "v1alpha2"
   550  }
   551  
   552  func (d *ListDeploymentsDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor {
   553  	return deploymentServiceDescriptor
   554  }
   555  
   556  func (d *ListDeploymentsDescriptor) GetResourceDescriptor() gotenresource.Descriptor {
   557  	return deployment.GetDescriptor()
   558  }
   559  
   560  func (d *ListDeploymentsDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle {
   561  	return &ListDeploymentsDescriptorClientMsgHandle{}
   562  }
   563  
   564  func (d *ListDeploymentsDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle {
   565  	return &ListDeploymentsDescriptorServerMsgHandle{}
   566  }
   567  
   568  func (h *ListDeploymentsDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   569  	typedMsg := msg.(*ListDeploymentsRequest)
   570  	var asInterface interface{} = h
   571  	override, ok := asInterface.(interface {
   572  		OverrideExtractResourceName(*ListDeploymentsRequest) *deployment.Name
   573  	})
   574  	if ok {
   575  		return override.OverrideExtractResourceName(typedMsg)
   576  	}
   577  	return nil
   578  }
   579  
   580  func (h *ListDeploymentsDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   581  	typedMsg := msg.(*ListDeploymentsRequest)
   582  	var asInterface interface{} = h
   583  	override, ok := asInterface.(interface {
   584  		OverrideExtractResourceNames(*ListDeploymentsRequest) []*deployment.Name
   585  	})
   586  	if ok {
   587  		return deployment.DeploymentNameList(override.OverrideExtractResourceNames(typedMsg))
   588  	}
   589  	return nil
   590  }
   591  
   592  func (h *ListDeploymentsDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   593  	typedMsg := msg.(*ListDeploymentsRequest)
   594  	var asInterface interface{} = h
   595  	override, ok := asInterface.(interface {
   596  		OverrideExtractCollectionName(*ListDeploymentsRequest) *deployment.ParentName
   597  	})
   598  	if ok {
   599  		return override.OverrideExtractCollectionName(typedMsg)
   600  	}
   601  	{
   602  		if parentName := typedMsg.GetParent(); parentName != nil {
   603  			return parentName
   604  		}
   605  	}
   606  	return (*deployment.ParentName)(nil)
   607  }
   608  
   609  func (h *ListDeploymentsDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   610  	typedMsg := msg.(*ListDeploymentsRequest)
   611  	var asInterface interface{} = h
   612  	override, ok := asInterface.(interface {
   613  		OverrideExtractResourceBody(*ListDeploymentsRequest) *deployment.Deployment
   614  	})
   615  	if ok {
   616  		return override.OverrideExtractResourceBody(typedMsg)
   617  	}
   618  	return nil
   619  }
   620  
   621  func (h *ListDeploymentsDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   622  	typedMsg := msg.(*ListDeploymentsRequest)
   623  	var asInterface interface{} = h
   624  	override, ok := asInterface.(interface {
   625  		OverrideExtractResourceBodies(*ListDeploymentsRequest) []*deployment.Deployment
   626  	})
   627  	if ok {
   628  		return deployment.DeploymentList(override.OverrideExtractResourceBodies(typedMsg))
   629  	}
   630  	return nil
   631  }
   632  
   633  func (h *ListDeploymentsDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   634  	typedMsg := msg.(*ListDeploymentsResponse)
   635  	var asInterface interface{} = h
   636  	override, ok := asInterface.(interface {
   637  		OverrideExtractResourceName(*ListDeploymentsResponse) *deployment.Name
   638  	})
   639  	if ok {
   640  		return override.OverrideExtractResourceName(typedMsg)
   641  	}
   642  	return nil
   643  }
   644  
   645  func (h *ListDeploymentsDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   646  	typedMsg := msg.(*ListDeploymentsResponse)
   647  	var asInterface interface{} = h
   648  	override, ok := asInterface.(interface {
   649  		OverrideExtractResourceNames(*ListDeploymentsResponse) []*deployment.Name
   650  	})
   651  	if ok {
   652  		return deployment.DeploymentNameList(override.OverrideExtractResourceNames(typedMsg))
   653  	}
   654  	{
   655  		if resources := typedMsg.GetDeployments(); len(resources) > 0 {
   656  			list := make(deployment.DeploymentNameList, 0, len(resources))
   657  			for _, res := range resources {
   658  				list = append(list, res.GetName())
   659  			}
   660  			return list
   661  		}
   662  	}
   663  	return (deployment.DeploymentNameList)(nil)
   664  }
   665  
   666  func (h *ListDeploymentsDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   667  	typedMsg := msg.(*ListDeploymentsResponse)
   668  	var asInterface interface{} = h
   669  	override, ok := asInterface.(interface {
   670  		OverrideExtractCollectionName(*ListDeploymentsResponse) *deployment.ParentName
   671  	})
   672  	if ok {
   673  		return override.OverrideExtractCollectionName(typedMsg)
   674  	}
   675  	return nil
   676  }
   677  
   678  func (h *ListDeploymentsDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   679  	typedMsg := msg.(*ListDeploymentsResponse)
   680  	var asInterface interface{} = h
   681  	override, ok := asInterface.(interface {
   682  		OverrideExtractResourceBody(*ListDeploymentsResponse) *deployment.Deployment
   683  	})
   684  	if ok {
   685  		return override.OverrideExtractResourceBody(typedMsg)
   686  	}
   687  	return nil
   688  }
   689  
   690  func (h *ListDeploymentsDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   691  	typedMsg := msg.(*ListDeploymentsResponse)
   692  	var asInterface interface{} = h
   693  	override, ok := asInterface.(interface {
   694  		OverrideExtractResourceBodies(*ListDeploymentsResponse) []*deployment.Deployment
   695  	})
   696  	if ok {
   697  		return deployment.DeploymentList(override.OverrideExtractResourceBodies(typedMsg))
   698  	}
   699  	{
   700  		if resources := typedMsg.GetDeployments(); len(resources) > 0 {
   701  			return deployment.DeploymentList(resources)
   702  		}
   703  	}
   704  	return (deployment.DeploymentList)(nil)
   705  }
   706  
   707  func GetListDeploymentsDescriptor() *ListDeploymentsDescriptor {
   708  	return listDeploymentsDescriptor
   709  }
   710  
   711  type WatchDeploymentDescriptor struct{}
   712  
   713  type WatchDeploymentDescriptorClientMsgHandle struct{}
   714  
   715  type WatchDeploymentDescriptorServerMsgHandle struct{}
   716  
   717  func (d *WatchDeploymentDescriptor) NewEmptyClientMsg() proto.Message {
   718  	return &WatchDeploymentRequest{}
   719  }
   720  
   721  func (d *WatchDeploymentDescriptor) NewEmptyServerMsg() proto.Message {
   722  	return &WatchDeploymentResponse{}
   723  }
   724  
   725  func (d *WatchDeploymentDescriptor) IsUnary() bool {
   726  	return false
   727  }
   728  
   729  func (d *WatchDeploymentDescriptor) IsClientStream() bool {
   730  	return false
   731  }
   732  
   733  func (d *WatchDeploymentDescriptor) IsServerStream() bool {
   734  	return true
   735  }
   736  
   737  func (d *WatchDeploymentDescriptor) IsCollection() bool {
   738  	return false
   739  }
   740  
   741  func (d *WatchDeploymentDescriptor) IsPlural() bool {
   742  	return false
   743  }
   744  
   745  func (d *WatchDeploymentDescriptor) HasResource() bool {
   746  	return true
   747  }
   748  
   749  func (d *WatchDeploymentDescriptor) RequestHasResourceBody() bool {
   750  	return false
   751  }
   752  
   753  func (d *WatchDeploymentDescriptor) GetVerb() string {
   754  	return "watch"
   755  }
   756  
   757  func (d *WatchDeploymentDescriptor) GetMethodName() string {
   758  	return "WatchDeployment"
   759  }
   760  
   761  func (d *WatchDeploymentDescriptor) GetFullMethodName() string {
   762  	return "/ntt.meta.v1alpha2.DeploymentService/WatchDeployment"
   763  }
   764  
   765  func (d *WatchDeploymentDescriptor) GetProtoPkgName() string {
   766  	return "ntt.meta.v1alpha2"
   767  }
   768  
   769  func (d *WatchDeploymentDescriptor) GetApiName() string {
   770  	return "DeploymentService"
   771  }
   772  
   773  func (d *WatchDeploymentDescriptor) GetServiceDomain() string {
   774  	return "meta.edgelq.com"
   775  }
   776  
   777  func (d *WatchDeploymentDescriptor) GetServiceVersion() string {
   778  	return "v1alpha2"
   779  }
   780  
   781  func (d *WatchDeploymentDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor {
   782  	return deploymentServiceDescriptor
   783  }
   784  
   785  func (d *WatchDeploymentDescriptor) GetResourceDescriptor() gotenresource.Descriptor {
   786  	return deployment.GetDescriptor()
   787  }
   788  
   789  func (d *WatchDeploymentDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle {
   790  	return &WatchDeploymentDescriptorClientMsgHandle{}
   791  }
   792  
   793  func (d *WatchDeploymentDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle {
   794  	return &WatchDeploymentDescriptorServerMsgHandle{}
   795  }
   796  
   797  func (h *WatchDeploymentDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   798  	typedMsg := msg.(*WatchDeploymentRequest)
   799  	var asInterface interface{} = h
   800  	override, ok := asInterface.(interface {
   801  		OverrideExtractResourceName(*WatchDeploymentRequest) *deployment.Name
   802  	})
   803  	if ok {
   804  		return override.OverrideExtractResourceName(typedMsg)
   805  	}
   806  	{
   807  		if name := typedMsg.GetName(); name != nil {
   808  			return name
   809  		}
   810  	}
   811  	return (*deployment.Name)(nil)
   812  }
   813  
   814  func (h *WatchDeploymentDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   815  	typedMsg := msg.(*WatchDeploymentRequest)
   816  	var asInterface interface{} = h
   817  	override, ok := asInterface.(interface {
   818  		OverrideExtractResourceNames(*WatchDeploymentRequest) []*deployment.Name
   819  	})
   820  	if ok {
   821  		return deployment.DeploymentNameList(override.OverrideExtractResourceNames(typedMsg))
   822  	}
   823  	return nil
   824  }
   825  
   826  func (h *WatchDeploymentDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   827  	typedMsg := msg.(*WatchDeploymentRequest)
   828  	var asInterface interface{} = h
   829  	override, ok := asInterface.(interface {
   830  		OverrideExtractCollectionName(*WatchDeploymentRequest) *deployment.ParentName
   831  	})
   832  	if ok {
   833  		return override.OverrideExtractCollectionName(typedMsg)
   834  	}
   835  	return nil
   836  }
   837  
   838  func (h *WatchDeploymentDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   839  	typedMsg := msg.(*WatchDeploymentRequest)
   840  	var asInterface interface{} = h
   841  	override, ok := asInterface.(interface {
   842  		OverrideExtractResourceBody(*WatchDeploymentRequest) *deployment.Deployment
   843  	})
   844  	if ok {
   845  		return override.OverrideExtractResourceBody(typedMsg)
   846  	}
   847  	return nil
   848  }
   849  
   850  func (h *WatchDeploymentDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   851  	typedMsg := msg.(*WatchDeploymentRequest)
   852  	var asInterface interface{} = h
   853  	override, ok := asInterface.(interface {
   854  		OverrideExtractResourceBodies(*WatchDeploymentRequest) []*deployment.Deployment
   855  	})
   856  	if ok {
   857  		return deployment.DeploymentList(override.OverrideExtractResourceBodies(typedMsg))
   858  	}
   859  	return nil
   860  }
   861  
   862  func (h *WatchDeploymentDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   863  	typedMsg := msg.(*WatchDeploymentResponse)
   864  	var asInterface interface{} = h
   865  	override, ok := asInterface.(interface {
   866  		OverrideExtractResourceName(*WatchDeploymentResponse) *deployment.Name
   867  	})
   868  	if ok {
   869  		return override.OverrideExtractResourceName(typedMsg)
   870  	}
   871  	{
   872  		if resChange := typedMsg.GetChange(); resChange != nil {
   873  			switch tResChange := resChange.ChangeType.(type) {
   874  			case *deployment.DeploymentChange_Added_:
   875  				return tResChange.Added.GetDeployment().GetName()
   876  			case *deployment.DeploymentChange_Modified_:
   877  				return tResChange.Modified.GetName()
   878  			case *deployment.DeploymentChange_Removed_:
   879  				return tResChange.Removed.GetName()
   880  			case *deployment.DeploymentChange_Current_:
   881  				return tResChange.Current.GetDeployment().GetName()
   882  			}
   883  		}
   884  	}
   885  	return (*deployment.Name)(nil)
   886  }
   887  
   888  func (h *WatchDeploymentDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   889  	typedMsg := msg.(*WatchDeploymentResponse)
   890  	var asInterface interface{} = h
   891  	override, ok := asInterface.(interface {
   892  		OverrideExtractResourceNames(*WatchDeploymentResponse) []*deployment.Name
   893  	})
   894  	if ok {
   895  		return deployment.DeploymentNameList(override.OverrideExtractResourceNames(typedMsg))
   896  	}
   897  	return nil
   898  }
   899  
   900  func (h *WatchDeploymentDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   901  	typedMsg := msg.(*WatchDeploymentResponse)
   902  	var asInterface interface{} = h
   903  	override, ok := asInterface.(interface {
   904  		OverrideExtractCollectionName(*WatchDeploymentResponse) *deployment.ParentName
   905  	})
   906  	if ok {
   907  		return override.OverrideExtractCollectionName(typedMsg)
   908  	}
   909  	return nil
   910  }
   911  
   912  func (h *WatchDeploymentDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   913  	typedMsg := msg.(*WatchDeploymentResponse)
   914  	var asInterface interface{} = h
   915  	override, ok := asInterface.(interface {
   916  		OverrideExtractResourceBody(*WatchDeploymentResponse) *deployment.Deployment
   917  	})
   918  	if ok {
   919  		return override.OverrideExtractResourceBody(typedMsg)
   920  	}
   921  	{
   922  		if resChange := typedMsg.GetChange(); resChange != nil {
   923  			switch tResChange := resChange.ChangeType.(type) {
   924  			case *deployment.DeploymentChange_Added_:
   925  				return tResChange.Added.GetDeployment()
   926  			case *deployment.DeploymentChange_Modified_:
   927  				return tResChange.Modified.GetDeployment()
   928  			case *deployment.DeploymentChange_Current_:
   929  				return tResChange.Current.GetDeployment()
   930  			}
   931  		}
   932  	}
   933  	return (*deployment.Deployment)(nil)
   934  }
   935  
   936  func (h *WatchDeploymentDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   937  	typedMsg := msg.(*WatchDeploymentResponse)
   938  	var asInterface interface{} = h
   939  	override, ok := asInterface.(interface {
   940  		OverrideExtractResourceBodies(*WatchDeploymentResponse) []*deployment.Deployment
   941  	})
   942  	if ok {
   943  		return deployment.DeploymentList(override.OverrideExtractResourceBodies(typedMsg))
   944  	}
   945  	return nil
   946  }
   947  
   948  func GetWatchDeploymentDescriptor() *WatchDeploymentDescriptor {
   949  	return watchDeploymentDescriptor
   950  }
   951  
   952  type WatchDeploymentsDescriptor struct{}
   953  
   954  type WatchDeploymentsDescriptorClientMsgHandle struct{}
   955  
   956  type WatchDeploymentsDescriptorServerMsgHandle struct{}
   957  
   958  func (d *WatchDeploymentsDescriptor) NewEmptyClientMsg() proto.Message {
   959  	return &WatchDeploymentsRequest{}
   960  }
   961  
   962  func (d *WatchDeploymentsDescriptor) NewEmptyServerMsg() proto.Message {
   963  	return &WatchDeploymentsResponse{}
   964  }
   965  
   966  func (d *WatchDeploymentsDescriptor) IsUnary() bool {
   967  	return false
   968  }
   969  
   970  func (d *WatchDeploymentsDescriptor) IsClientStream() bool {
   971  	return false
   972  }
   973  
   974  func (d *WatchDeploymentsDescriptor) IsServerStream() bool {
   975  	return true
   976  }
   977  
   978  func (d *WatchDeploymentsDescriptor) IsCollection() bool {
   979  	return true
   980  }
   981  
   982  func (d *WatchDeploymentsDescriptor) IsPlural() bool {
   983  	return true
   984  }
   985  
   986  func (d *WatchDeploymentsDescriptor) HasResource() bool {
   987  	return true
   988  }
   989  
   990  func (d *WatchDeploymentsDescriptor) RequestHasResourceBody() bool {
   991  	return false
   992  }
   993  
   994  func (d *WatchDeploymentsDescriptor) GetVerb() string {
   995  	return "watch"
   996  }
   997  
   998  func (d *WatchDeploymentsDescriptor) GetMethodName() string {
   999  	return "WatchDeployments"
  1000  }
  1001  
  1002  func (d *WatchDeploymentsDescriptor) GetFullMethodName() string {
  1003  	return "/ntt.meta.v1alpha2.DeploymentService/WatchDeployments"
  1004  }
  1005  
  1006  func (d *WatchDeploymentsDescriptor) GetProtoPkgName() string {
  1007  	return "ntt.meta.v1alpha2"
  1008  }
  1009  
  1010  func (d *WatchDeploymentsDescriptor) GetApiName() string {
  1011  	return "DeploymentService"
  1012  }
  1013  
  1014  func (d *WatchDeploymentsDescriptor) GetServiceDomain() string {
  1015  	return "meta.edgelq.com"
  1016  }
  1017  
  1018  func (d *WatchDeploymentsDescriptor) GetServiceVersion() string {
  1019  	return "v1alpha2"
  1020  }
  1021  
  1022  func (d *WatchDeploymentsDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor {
  1023  	return deploymentServiceDescriptor
  1024  }
  1025  
  1026  func (d *WatchDeploymentsDescriptor) GetResourceDescriptor() gotenresource.Descriptor {
  1027  	return deployment.GetDescriptor()
  1028  }
  1029  
  1030  func (d *WatchDeploymentsDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle {
  1031  	return &WatchDeploymentsDescriptorClientMsgHandle{}
  1032  }
  1033  
  1034  func (d *WatchDeploymentsDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle {
  1035  	return &WatchDeploymentsDescriptorServerMsgHandle{}
  1036  }
  1037  
  1038  func (h *WatchDeploymentsDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
  1039  	typedMsg := msg.(*WatchDeploymentsRequest)
  1040  	var asInterface interface{} = h
  1041  	override, ok := asInterface.(interface {
  1042  		OverrideExtractResourceName(*WatchDeploymentsRequest) *deployment.Name
  1043  	})
  1044  	if ok {
  1045  		return override.OverrideExtractResourceName(typedMsg)
  1046  	}
  1047  	return nil
  1048  }
  1049  
  1050  func (h *WatchDeploymentsDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
  1051  	typedMsg := msg.(*WatchDeploymentsRequest)
  1052  	var asInterface interface{} = h
  1053  	override, ok := asInterface.(interface {
  1054  		OverrideExtractResourceNames(*WatchDeploymentsRequest) []*deployment.Name
  1055  	})
  1056  	if ok {
  1057  		return deployment.DeploymentNameList(override.OverrideExtractResourceNames(typedMsg))
  1058  	}
  1059  	return nil
  1060  }
  1061  
  1062  func (h *WatchDeploymentsDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
  1063  	typedMsg := msg.(*WatchDeploymentsRequest)
  1064  	var asInterface interface{} = h
  1065  	override, ok := asInterface.(interface {
  1066  		OverrideExtractCollectionName(*WatchDeploymentsRequest) *deployment.ParentName
  1067  	})
  1068  	if ok {
  1069  		return override.OverrideExtractCollectionName(typedMsg)
  1070  	}
  1071  	{
  1072  		if parentName := typedMsg.GetParent(); parentName != nil {
  1073  			return parentName
  1074  		}
  1075  	}
  1076  	return (*deployment.ParentName)(nil)
  1077  }
  1078  
  1079  func (h *WatchDeploymentsDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
  1080  	typedMsg := msg.(*WatchDeploymentsRequest)
  1081  	var asInterface interface{} = h
  1082  	override, ok := asInterface.(interface {
  1083  		OverrideExtractResourceBody(*WatchDeploymentsRequest) *deployment.Deployment
  1084  	})
  1085  	if ok {
  1086  		return override.OverrideExtractResourceBody(typedMsg)
  1087  	}
  1088  	return nil
  1089  }
  1090  
  1091  func (h *WatchDeploymentsDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
  1092  	typedMsg := msg.(*WatchDeploymentsRequest)
  1093  	var asInterface interface{} = h
  1094  	override, ok := asInterface.(interface {
  1095  		OverrideExtractResourceBodies(*WatchDeploymentsRequest) []*deployment.Deployment
  1096  	})
  1097  	if ok {
  1098  		return deployment.DeploymentList(override.OverrideExtractResourceBodies(typedMsg))
  1099  	}
  1100  	return nil
  1101  }
  1102  
  1103  func (h *WatchDeploymentsDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
  1104  	typedMsg := msg.(*WatchDeploymentsResponse)
  1105  	var asInterface interface{} = h
  1106  	override, ok := asInterface.(interface {
  1107  		OverrideExtractResourceName(*WatchDeploymentsResponse) *deployment.Name
  1108  	})
  1109  	if ok {
  1110  		return override.OverrideExtractResourceName(typedMsg)
  1111  	}
  1112  	return nil
  1113  }
  1114  
  1115  func (h *WatchDeploymentsDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
  1116  	typedMsg := msg.(*WatchDeploymentsResponse)
  1117  	var asInterface interface{} = h
  1118  	override, ok := asInterface.(interface {
  1119  		OverrideExtractResourceNames(*WatchDeploymentsResponse) []*deployment.Name
  1120  	})
  1121  	if ok {
  1122  		return deployment.DeploymentNameList(override.OverrideExtractResourceNames(typedMsg))
  1123  	}
  1124  	{
  1125  		if resChanges := typedMsg.GetDeploymentChanges(); len(resChanges) > 0 {
  1126  			list := make(deployment.DeploymentNameList, 0, len(resChanges))
  1127  			for _, resChange := range resChanges {
  1128  				switch tResChange := resChange.ChangeType.(type) {
  1129  				case *deployment.DeploymentChange_Added_:
  1130  					list = append(list, tResChange.Added.GetDeployment().GetName())
  1131  				case *deployment.DeploymentChange_Modified_:
  1132  					list = append(list, tResChange.Modified.GetName())
  1133  				case *deployment.DeploymentChange_Removed_:
  1134  					list = append(list, tResChange.Removed.GetName())
  1135  				case *deployment.DeploymentChange_Current_:
  1136  					list = append(list, tResChange.Current.GetDeployment().GetName())
  1137  				}
  1138  			}
  1139  			return list
  1140  		}
  1141  	}
  1142  	return (deployment.DeploymentNameList)(nil)
  1143  }
  1144  
  1145  func (h *WatchDeploymentsDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
  1146  	typedMsg := msg.(*WatchDeploymentsResponse)
  1147  	var asInterface interface{} = h
  1148  	override, ok := asInterface.(interface {
  1149  		OverrideExtractCollectionName(*WatchDeploymentsResponse) *deployment.ParentName
  1150  	})
  1151  	if ok {
  1152  		return override.OverrideExtractCollectionName(typedMsg)
  1153  	}
  1154  	return nil
  1155  }
  1156  
  1157  func (h *WatchDeploymentsDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
  1158  	typedMsg := msg.(*WatchDeploymentsResponse)
  1159  	var asInterface interface{} = h
  1160  	override, ok := asInterface.(interface {
  1161  		OverrideExtractResourceBody(*WatchDeploymentsResponse) *deployment.Deployment
  1162  	})
  1163  	if ok {
  1164  		return override.OverrideExtractResourceBody(typedMsg)
  1165  	}
  1166  	return nil
  1167  }
  1168  
  1169  func (h *WatchDeploymentsDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
  1170  	typedMsg := msg.(*WatchDeploymentsResponse)
  1171  	var asInterface interface{} = h
  1172  	override, ok := asInterface.(interface {
  1173  		OverrideExtractResourceBodies(*WatchDeploymentsResponse) []*deployment.Deployment
  1174  	})
  1175  	if ok {
  1176  		return deployment.DeploymentList(override.OverrideExtractResourceBodies(typedMsg))
  1177  	}
  1178  	{
  1179  		if resChanges := typedMsg.GetDeploymentChanges(); len(resChanges) > 0 {
  1180  			list := make(deployment.DeploymentList, 0, len(resChanges))
  1181  			for _, resChange := range resChanges {
  1182  				switch tResChange := resChange.ChangeType.(type) {
  1183  				case *deployment.DeploymentChange_Added_:
  1184  					list = append(list, tResChange.Added.GetDeployment())
  1185  				case *deployment.DeploymentChange_Modified_:
  1186  					list = append(list, tResChange.Modified.GetDeployment())
  1187  				case *deployment.DeploymentChange_Current_:
  1188  					list = append(list, tResChange.Current.GetDeployment())
  1189  				}
  1190  			}
  1191  			return list
  1192  		}
  1193  	}
  1194  	return (deployment.DeploymentList)(nil)
  1195  }
  1196  
  1197  func GetWatchDeploymentsDescriptor() *WatchDeploymentsDescriptor {
  1198  	return watchDeploymentsDescriptor
  1199  }
  1200  
  1201  type DeploymentServiceDescriptor struct{}
  1202  
  1203  func (d *DeploymentServiceDescriptor) AllMethodDescriptors() []gotenclient.MethodDescriptor {
  1204  	return []gotenclient.MethodDescriptor{
  1205  		getDeploymentDescriptor,
  1206  		batchGetDeploymentsDescriptor,
  1207  		listDeploymentsDescriptor,
  1208  		watchDeploymentDescriptor,
  1209  		watchDeploymentsDescriptor,
  1210  	}
  1211  }
  1212  
  1213  func (d *DeploymentServiceDescriptor) GetFullAPIName() string {
  1214  	return "/ntt.meta.v1alpha2.DeploymentService"
  1215  }
  1216  
  1217  func (d *DeploymentServiceDescriptor) GetProtoPkgName() string {
  1218  	return "ntt.meta.v1alpha2"
  1219  }
  1220  
  1221  func (d *DeploymentServiceDescriptor) GetApiName() string {
  1222  	return "DeploymentService"
  1223  }
  1224  
  1225  func (d *DeploymentServiceDescriptor) GetServiceDomain() string {
  1226  	return "meta.edgelq.com"
  1227  }
  1228  
  1229  func (d *DeploymentServiceDescriptor) GetServiceVersion() string {
  1230  	return "v1alpha2"
  1231  }
  1232  
  1233  func GetDeploymentServiceDescriptor() *DeploymentServiceDescriptor {
  1234  	return deploymentServiceDescriptor
  1235  }
  1236  
  1237  func initDescriptors() {
  1238  	deploymentServiceDescriptor = &DeploymentServiceDescriptor{}
  1239  	getDeploymentDescriptor = &GetDeploymentDescriptor{}
  1240  	batchGetDeploymentsDescriptor = &BatchGetDeploymentsDescriptor{}
  1241  	listDeploymentsDescriptor = &ListDeploymentsDescriptor{}
  1242  	watchDeploymentDescriptor = &WatchDeploymentDescriptor{}
  1243  	watchDeploymentsDescriptor = &WatchDeploymentsDescriptor{}
  1244  	gotenclient.GetRegistry().RegisterApiDescriptor(deploymentServiceDescriptor)
  1245  	gotenclient.GetRegistry().RegisterMethodDescriptor(getDeploymentDescriptor)
  1246  	gotenclient.GetRegistry().RegisterMethodDescriptor(batchGetDeploymentsDescriptor)
  1247  	gotenclient.GetRegistry().RegisterMethodDescriptor(listDeploymentsDescriptor)
  1248  	gotenclient.GetRegistry().RegisterMethodDescriptor(watchDeploymentDescriptor)
  1249  	gotenclient.GetRegistry().RegisterMethodDescriptor(watchDeploymentsDescriptor)
  1250  }
  1251  
  1252  func init() {
  1253  	if !descriptorsInitialized {
  1254  		initDescriptors()
  1255  		descriptorsInitialized = true
  1256  	}
  1257  }