github.com/cloudwan/edgelq-sdk@v1.15.4/iam/client/v1/authorization/authorization_service.pb.descriptors.go (about)

     1  // Code generated by protoc-gen-goten-client
     2  // API: AuthorizationService
     3  // DO NOT EDIT!!!
     4  
     5  package authorization_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  	role_binding "github.com/cloudwan/edgelq-sdk/iam/resources/v1/role_binding"
    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  	_ = &role_binding.RoleBinding{}
    29  )
    30  
    31  var (
    32  	descriptorsInitialized          bool
    33  	authorizationServiceDescriptor  *AuthorizationServiceDescriptor
    34  	getPrincipalDescriptor          *GetPrincipalDescriptor
    35  	watchPrincipalUpdatesDescriptor *WatchPrincipalUpdatesDescriptor
    36  	checkMyRoleBindingsDescriptor   *CheckMyRoleBindingsDescriptor
    37  )
    38  
    39  type GetPrincipalDescriptor struct{}
    40  
    41  type GetPrincipalDescriptorClientMsgHandle struct{}
    42  
    43  type GetPrincipalDescriptorServerMsgHandle struct{}
    44  
    45  func (d *GetPrincipalDescriptor) NewEmptyClientMsg() proto.Message {
    46  	return &GetPrincipalRequest{}
    47  }
    48  
    49  func (d *GetPrincipalDescriptor) NewEmptyServerMsg() proto.Message {
    50  	return &GetPrincipalResponse{}
    51  }
    52  
    53  func (d *GetPrincipalDescriptor) IsUnary() bool {
    54  	return true
    55  }
    56  
    57  func (d *GetPrincipalDescriptor) IsClientStream() bool {
    58  	return false
    59  }
    60  
    61  func (d *GetPrincipalDescriptor) IsServerStream() bool {
    62  	return false
    63  }
    64  
    65  func (d *GetPrincipalDescriptor) IsCollection() bool {
    66  	return false
    67  }
    68  
    69  func (d *GetPrincipalDescriptor) IsPlural() bool {
    70  	return false
    71  }
    72  
    73  func (d *GetPrincipalDescriptor) HasResource() bool {
    74  	return false
    75  }
    76  
    77  func (d *GetPrincipalDescriptor) RequestHasResourceBody() bool {
    78  	return false
    79  }
    80  
    81  func (d *GetPrincipalDescriptor) GetVerb() string {
    82  	return "getPrincipal"
    83  }
    84  
    85  func (d *GetPrincipalDescriptor) GetMethodName() string {
    86  	return "GetPrincipal"
    87  }
    88  
    89  func (d *GetPrincipalDescriptor) GetFullMethodName() string {
    90  	return "/ntt.iam.v1.AuthorizationService/GetPrincipal"
    91  }
    92  
    93  func (d *GetPrincipalDescriptor) GetProtoPkgName() string {
    94  	return "ntt.iam.v1"
    95  }
    96  
    97  func (d *GetPrincipalDescriptor) GetApiName() string {
    98  	return "AuthorizationService"
    99  }
   100  
   101  func (d *GetPrincipalDescriptor) GetServiceDomain() string {
   102  	return "iam.edgelq.com"
   103  }
   104  
   105  func (d *GetPrincipalDescriptor) GetServiceVersion() string {
   106  	return "v1"
   107  }
   108  
   109  func (d *GetPrincipalDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor {
   110  	return authorizationServiceDescriptor
   111  }
   112  
   113  func (d *GetPrincipalDescriptor) GetResourceDescriptor() gotenresource.Descriptor {
   114  	return nil
   115  }
   116  
   117  func (d *GetPrincipalDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle {
   118  	return &GetPrincipalDescriptorClientMsgHandle{}
   119  }
   120  
   121  func (d *GetPrincipalDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle {
   122  	return &GetPrincipalDescriptorServerMsgHandle{}
   123  }
   124  
   125  func (h *GetPrincipalDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   126  	return nil
   127  }
   128  
   129  func (h *GetPrincipalDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   130  	return nil
   131  }
   132  
   133  func (h *GetPrincipalDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   134  	return nil
   135  }
   136  
   137  func (h *GetPrincipalDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   138  	return nil
   139  }
   140  
   141  func (h *GetPrincipalDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   142  	return nil
   143  }
   144  
   145  func (h *GetPrincipalDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   146  	return nil
   147  }
   148  
   149  func (h *GetPrincipalDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   150  	return nil
   151  }
   152  
   153  func (h *GetPrincipalDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   154  	return nil
   155  }
   156  
   157  func (h *GetPrincipalDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   158  	return nil
   159  }
   160  
   161  func (h *GetPrincipalDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   162  	return nil
   163  }
   164  
   165  func GetGetPrincipalDescriptor() *GetPrincipalDescriptor {
   166  	return getPrincipalDescriptor
   167  }
   168  
   169  type WatchPrincipalUpdatesDescriptor struct{}
   170  
   171  type WatchPrincipalUpdatesDescriptorClientMsgHandle struct{}
   172  
   173  type WatchPrincipalUpdatesDescriptorServerMsgHandle struct{}
   174  
   175  func (d *WatchPrincipalUpdatesDescriptor) NewEmptyClientMsg() proto.Message {
   176  	return &WatchPrincipalUpdatesRequest{}
   177  }
   178  
   179  func (d *WatchPrincipalUpdatesDescriptor) NewEmptyServerMsg() proto.Message {
   180  	return &WatchPrincipalUpdatesResponse{}
   181  }
   182  
   183  func (d *WatchPrincipalUpdatesDescriptor) IsUnary() bool {
   184  	return false
   185  }
   186  
   187  func (d *WatchPrincipalUpdatesDescriptor) IsClientStream() bool {
   188  	return false
   189  }
   190  
   191  func (d *WatchPrincipalUpdatesDescriptor) IsServerStream() bool {
   192  	return true
   193  }
   194  
   195  func (d *WatchPrincipalUpdatesDescriptor) IsCollection() bool {
   196  	return false
   197  }
   198  
   199  func (d *WatchPrincipalUpdatesDescriptor) IsPlural() bool {
   200  	return false
   201  }
   202  
   203  func (d *WatchPrincipalUpdatesDescriptor) HasResource() bool {
   204  	return false
   205  }
   206  
   207  func (d *WatchPrincipalUpdatesDescriptor) RequestHasResourceBody() bool {
   208  	return false
   209  }
   210  
   211  func (d *WatchPrincipalUpdatesDescriptor) GetVerb() string {
   212  	return "watchPrincipalUpdates"
   213  }
   214  
   215  func (d *WatchPrincipalUpdatesDescriptor) GetMethodName() string {
   216  	return "WatchPrincipalUpdates"
   217  }
   218  
   219  func (d *WatchPrincipalUpdatesDescriptor) GetFullMethodName() string {
   220  	return "/ntt.iam.v1.AuthorizationService/WatchPrincipalUpdates"
   221  }
   222  
   223  func (d *WatchPrincipalUpdatesDescriptor) GetProtoPkgName() string {
   224  	return "ntt.iam.v1"
   225  }
   226  
   227  func (d *WatchPrincipalUpdatesDescriptor) GetApiName() string {
   228  	return "AuthorizationService"
   229  }
   230  
   231  func (d *WatchPrincipalUpdatesDescriptor) GetServiceDomain() string {
   232  	return "iam.edgelq.com"
   233  }
   234  
   235  func (d *WatchPrincipalUpdatesDescriptor) GetServiceVersion() string {
   236  	return "v1"
   237  }
   238  
   239  func (d *WatchPrincipalUpdatesDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor {
   240  	return authorizationServiceDescriptor
   241  }
   242  
   243  func (d *WatchPrincipalUpdatesDescriptor) GetResourceDescriptor() gotenresource.Descriptor {
   244  	return nil
   245  }
   246  
   247  func (d *WatchPrincipalUpdatesDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle {
   248  	return &WatchPrincipalUpdatesDescriptorClientMsgHandle{}
   249  }
   250  
   251  func (d *WatchPrincipalUpdatesDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle {
   252  	return &WatchPrincipalUpdatesDescriptorServerMsgHandle{}
   253  }
   254  
   255  func (h *WatchPrincipalUpdatesDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   256  	return nil
   257  }
   258  
   259  func (h *WatchPrincipalUpdatesDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   260  	return nil
   261  }
   262  
   263  func (h *WatchPrincipalUpdatesDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   264  	return nil
   265  }
   266  
   267  func (h *WatchPrincipalUpdatesDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   268  	return nil
   269  }
   270  
   271  func (h *WatchPrincipalUpdatesDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   272  	return nil
   273  }
   274  
   275  func (h *WatchPrincipalUpdatesDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   276  	return nil
   277  }
   278  
   279  func (h *WatchPrincipalUpdatesDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   280  	return nil
   281  }
   282  
   283  func (h *WatchPrincipalUpdatesDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   284  	return nil
   285  }
   286  
   287  func (h *WatchPrincipalUpdatesDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   288  	return nil
   289  }
   290  
   291  func (h *WatchPrincipalUpdatesDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   292  	return nil
   293  }
   294  
   295  func GetWatchPrincipalUpdatesDescriptor() *WatchPrincipalUpdatesDescriptor {
   296  	return watchPrincipalUpdatesDescriptor
   297  }
   298  
   299  type CheckMyRoleBindingsDescriptor struct{}
   300  
   301  type CheckMyRoleBindingsDescriptorClientMsgHandle struct{}
   302  
   303  type CheckMyRoleBindingsDescriptorServerMsgHandle struct{}
   304  
   305  func (d *CheckMyRoleBindingsDescriptor) NewEmptyClientMsg() proto.Message {
   306  	return &CheckMyRoleBindingsRequest{}
   307  }
   308  
   309  func (d *CheckMyRoleBindingsDescriptor) NewEmptyServerMsg() proto.Message {
   310  	return &CheckMyRoleBindingsResponse{}
   311  }
   312  
   313  func (d *CheckMyRoleBindingsDescriptor) IsUnary() bool {
   314  	return true
   315  }
   316  
   317  func (d *CheckMyRoleBindingsDescriptor) IsClientStream() bool {
   318  	return false
   319  }
   320  
   321  func (d *CheckMyRoleBindingsDescriptor) IsServerStream() bool {
   322  	return false
   323  }
   324  
   325  func (d *CheckMyRoleBindingsDescriptor) IsCollection() bool {
   326  	return true
   327  }
   328  
   329  func (d *CheckMyRoleBindingsDescriptor) IsPlural() bool {
   330  	return true
   331  }
   332  
   333  func (d *CheckMyRoleBindingsDescriptor) HasResource() bool {
   334  	return true
   335  }
   336  
   337  func (d *CheckMyRoleBindingsDescriptor) RequestHasResourceBody() bool {
   338  	return false
   339  }
   340  
   341  func (d *CheckMyRoleBindingsDescriptor) GetVerb() string {
   342  	return "checkMy"
   343  }
   344  
   345  func (d *CheckMyRoleBindingsDescriptor) GetMethodName() string {
   346  	return "CheckMyRoleBindings"
   347  }
   348  
   349  func (d *CheckMyRoleBindingsDescriptor) GetFullMethodName() string {
   350  	return "/ntt.iam.v1.AuthorizationService/CheckMyRoleBindings"
   351  }
   352  
   353  func (d *CheckMyRoleBindingsDescriptor) GetProtoPkgName() string {
   354  	return "ntt.iam.v1"
   355  }
   356  
   357  func (d *CheckMyRoleBindingsDescriptor) GetApiName() string {
   358  	return "AuthorizationService"
   359  }
   360  
   361  func (d *CheckMyRoleBindingsDescriptor) GetServiceDomain() string {
   362  	return "iam.edgelq.com"
   363  }
   364  
   365  func (d *CheckMyRoleBindingsDescriptor) GetServiceVersion() string {
   366  	return "v1"
   367  }
   368  
   369  func (d *CheckMyRoleBindingsDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor {
   370  	return authorizationServiceDescriptor
   371  }
   372  
   373  func (d *CheckMyRoleBindingsDescriptor) GetResourceDescriptor() gotenresource.Descriptor {
   374  	return role_binding.GetDescriptor()
   375  }
   376  
   377  func (d *CheckMyRoleBindingsDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle {
   378  	return &CheckMyRoleBindingsDescriptorClientMsgHandle{}
   379  }
   380  
   381  func (d *CheckMyRoleBindingsDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle {
   382  	return &CheckMyRoleBindingsDescriptorServerMsgHandle{}
   383  }
   384  
   385  func (h *CheckMyRoleBindingsDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   386  	typedMsg := msg.(*CheckMyRoleBindingsRequest)
   387  	var asInterface interface{} = h
   388  	override, ok := asInterface.(interface {
   389  		OverrideExtractResourceName(*CheckMyRoleBindingsRequest) *role_binding.Name
   390  	})
   391  	if ok {
   392  		return override.OverrideExtractResourceName(typedMsg)
   393  	}
   394  	return nil
   395  }
   396  
   397  func (h *CheckMyRoleBindingsDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   398  	typedMsg := msg.(*CheckMyRoleBindingsRequest)
   399  	var asInterface interface{} = h
   400  	override, ok := asInterface.(interface {
   401  		OverrideExtractResourceNames(*CheckMyRoleBindingsRequest) []*role_binding.Name
   402  	})
   403  	if ok {
   404  		return role_binding.RoleBindingNameList(override.OverrideExtractResourceNames(typedMsg))
   405  	}
   406  	return nil
   407  }
   408  
   409  func (h *CheckMyRoleBindingsDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   410  	typedMsg := msg.(*CheckMyRoleBindingsRequest)
   411  	var asInterface interface{} = h
   412  	override, ok := asInterface.(interface {
   413  		OverrideExtractCollectionName(*CheckMyRoleBindingsRequest) *role_binding.ParentName
   414  	})
   415  	if ok {
   416  		return override.OverrideExtractCollectionName(typedMsg)
   417  	}
   418  	{
   419  		if parentName := typedMsg.GetParent(); parentName != nil {
   420  			return parentName
   421  		}
   422  	}
   423  	return (*role_binding.ParentName)(nil)
   424  }
   425  
   426  func (h *CheckMyRoleBindingsDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   427  	typedMsg := msg.(*CheckMyRoleBindingsRequest)
   428  	var asInterface interface{} = h
   429  	override, ok := asInterface.(interface {
   430  		OverrideExtractResourceBody(*CheckMyRoleBindingsRequest) *role_binding.RoleBinding
   431  	})
   432  	if ok {
   433  		return override.OverrideExtractResourceBody(typedMsg)
   434  	}
   435  	return nil
   436  }
   437  
   438  func (h *CheckMyRoleBindingsDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   439  	typedMsg := msg.(*CheckMyRoleBindingsRequest)
   440  	var asInterface interface{} = h
   441  	override, ok := asInterface.(interface {
   442  		OverrideExtractResourceBodies(*CheckMyRoleBindingsRequest) []*role_binding.RoleBinding
   443  	})
   444  	if ok {
   445  		return role_binding.RoleBindingList(override.OverrideExtractResourceBodies(typedMsg))
   446  	}
   447  	return nil
   448  }
   449  
   450  func (h *CheckMyRoleBindingsDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name {
   451  	typedMsg := msg.(*CheckMyRoleBindingsResponse)
   452  	var asInterface interface{} = h
   453  	override, ok := asInterface.(interface {
   454  		OverrideExtractResourceName(*CheckMyRoleBindingsResponse) *role_binding.Name
   455  	})
   456  	if ok {
   457  		return override.OverrideExtractResourceName(typedMsg)
   458  	}
   459  	return nil
   460  }
   461  
   462  func (h *CheckMyRoleBindingsDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList {
   463  	typedMsg := msg.(*CheckMyRoleBindingsResponse)
   464  	var asInterface interface{} = h
   465  	override, ok := asInterface.(interface {
   466  		OverrideExtractResourceNames(*CheckMyRoleBindingsResponse) []*role_binding.Name
   467  	})
   468  	if ok {
   469  		return role_binding.RoleBindingNameList(override.OverrideExtractResourceNames(typedMsg))
   470  	}
   471  	return nil
   472  }
   473  
   474  func (h *CheckMyRoleBindingsDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name {
   475  	typedMsg := msg.(*CheckMyRoleBindingsResponse)
   476  	var asInterface interface{} = h
   477  	override, ok := asInterface.(interface {
   478  		OverrideExtractCollectionName(*CheckMyRoleBindingsResponse) *role_binding.ParentName
   479  	})
   480  	if ok {
   481  		return override.OverrideExtractCollectionName(typedMsg)
   482  	}
   483  	return nil
   484  }
   485  
   486  func (h *CheckMyRoleBindingsDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource {
   487  	typedMsg := msg.(*CheckMyRoleBindingsResponse)
   488  	var asInterface interface{} = h
   489  	override, ok := asInterface.(interface {
   490  		OverrideExtractResourceBody(*CheckMyRoleBindingsResponse) *role_binding.RoleBinding
   491  	})
   492  	if ok {
   493  		return override.OverrideExtractResourceBody(typedMsg)
   494  	}
   495  	return nil
   496  }
   497  
   498  func (h *CheckMyRoleBindingsDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList {
   499  	typedMsg := msg.(*CheckMyRoleBindingsResponse)
   500  	var asInterface interface{} = h
   501  	override, ok := asInterface.(interface {
   502  		OverrideExtractResourceBodies(*CheckMyRoleBindingsResponse) []*role_binding.RoleBinding
   503  	})
   504  	if ok {
   505  		return role_binding.RoleBindingList(override.OverrideExtractResourceBodies(typedMsg))
   506  	}
   507  	return nil
   508  }
   509  
   510  func GetCheckMyRoleBindingsDescriptor() *CheckMyRoleBindingsDescriptor {
   511  	return checkMyRoleBindingsDescriptor
   512  }
   513  
   514  type AuthorizationServiceDescriptor struct{}
   515  
   516  func (d *AuthorizationServiceDescriptor) AllMethodDescriptors() []gotenclient.MethodDescriptor {
   517  	return []gotenclient.MethodDescriptor{
   518  		getPrincipalDescriptor,
   519  		watchPrincipalUpdatesDescriptor,
   520  		checkMyRoleBindingsDescriptor,
   521  	}
   522  }
   523  
   524  func (d *AuthorizationServiceDescriptor) GetFullAPIName() string {
   525  	return "/ntt.iam.v1.AuthorizationService"
   526  }
   527  
   528  func (d *AuthorizationServiceDescriptor) GetProtoPkgName() string {
   529  	return "ntt.iam.v1"
   530  }
   531  
   532  func (d *AuthorizationServiceDescriptor) GetApiName() string {
   533  	return "AuthorizationService"
   534  }
   535  
   536  func (d *AuthorizationServiceDescriptor) GetServiceDomain() string {
   537  	return "iam.edgelq.com"
   538  }
   539  
   540  func (d *AuthorizationServiceDescriptor) GetServiceVersion() string {
   541  	return "v1"
   542  }
   543  
   544  func GetAuthorizationServiceDescriptor() *AuthorizationServiceDescriptor {
   545  	return authorizationServiceDescriptor
   546  }
   547  
   548  func initDescriptors() {
   549  	authorizationServiceDescriptor = &AuthorizationServiceDescriptor{}
   550  	getPrincipalDescriptor = &GetPrincipalDescriptor{}
   551  	watchPrincipalUpdatesDescriptor = &WatchPrincipalUpdatesDescriptor{}
   552  	checkMyRoleBindingsDescriptor = &CheckMyRoleBindingsDescriptor{}
   553  	gotenclient.GetRegistry().RegisterApiDescriptor(authorizationServiceDescriptor)
   554  	gotenclient.GetRegistry().RegisterMethodDescriptor(getPrincipalDescriptor)
   555  	gotenclient.GetRegistry().RegisterMethodDescriptor(watchPrincipalUpdatesDescriptor)
   556  	gotenclient.GetRegistry().RegisterMethodDescriptor(checkMyRoleBindingsDescriptor)
   557  }
   558  
   559  func init() {
   560  	if !descriptorsInitialized {
   561  		initDescriptors()
   562  		descriptorsInitialized = true
   563  	}
   564  }