idp_service.pb.go 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.4
  4. // protoc (unknown)
  5. // source: api/v1/idp_service.proto
  6. package apiv1
  7. import (
  8. _ "google.golang.org/genproto/googleapis/api/annotations"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. emptypb "google.golang.org/protobuf/types/known/emptypb"
  12. fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
  13. reflect "reflect"
  14. sync "sync"
  15. unsafe "unsafe"
  16. )
  17. const (
  18. // Verify that this generated code is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  20. // Verify that runtime/protoimpl is sufficiently up-to-date.
  21. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  22. )
  23. type IdentityProvider_Type int32
  24. const (
  25. IdentityProvider_TYPE_UNSPECIFIED IdentityProvider_Type = 0
  26. IdentityProvider_OAUTH2 IdentityProvider_Type = 1
  27. )
  28. // Enum value maps for IdentityProvider_Type.
  29. var (
  30. IdentityProvider_Type_name = map[int32]string{
  31. 0: "TYPE_UNSPECIFIED",
  32. 1: "OAUTH2",
  33. }
  34. IdentityProvider_Type_value = map[string]int32{
  35. "TYPE_UNSPECIFIED": 0,
  36. "OAUTH2": 1,
  37. }
  38. )
  39. func (x IdentityProvider_Type) Enum() *IdentityProvider_Type {
  40. p := new(IdentityProvider_Type)
  41. *p = x
  42. return p
  43. }
  44. func (x IdentityProvider_Type) String() string {
  45. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  46. }
  47. func (IdentityProvider_Type) Descriptor() protoreflect.EnumDescriptor {
  48. return file_api_v1_idp_service_proto_enumTypes[0].Descriptor()
  49. }
  50. func (IdentityProvider_Type) Type() protoreflect.EnumType {
  51. return &file_api_v1_idp_service_proto_enumTypes[0]
  52. }
  53. func (x IdentityProvider_Type) Number() protoreflect.EnumNumber {
  54. return protoreflect.EnumNumber(x)
  55. }
  56. // Deprecated: Use IdentityProvider_Type.Descriptor instead.
  57. func (IdentityProvider_Type) EnumDescriptor() ([]byte, []int) {
  58. return file_api_v1_idp_service_proto_rawDescGZIP(), []int{0, 0}
  59. }
  60. type IdentityProvider struct {
  61. state protoimpl.MessageState `protogen:"open.v1"`
  62. // The name of the identityProvider.
  63. // Format: identityProviders/{id}, id is the system generated auto-incremented id.
  64. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  65. Type IdentityProvider_Type `protobuf:"varint,2,opt,name=type,proto3,enum=memos.api.v1.IdentityProvider_Type" json:"type,omitempty"`
  66. Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
  67. IdentifierFilter string `protobuf:"bytes,4,opt,name=identifier_filter,json=identifierFilter,proto3" json:"identifier_filter,omitempty"`
  68. Config *IdentityProviderConfig `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"`
  69. unknownFields protoimpl.UnknownFields
  70. sizeCache protoimpl.SizeCache
  71. }
  72. func (x *IdentityProvider) Reset() {
  73. *x = IdentityProvider{}
  74. mi := &file_api_v1_idp_service_proto_msgTypes[0]
  75. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  76. ms.StoreMessageInfo(mi)
  77. }
  78. func (x *IdentityProvider) String() string {
  79. return protoimpl.X.MessageStringOf(x)
  80. }
  81. func (*IdentityProvider) ProtoMessage() {}
  82. func (x *IdentityProvider) ProtoReflect() protoreflect.Message {
  83. mi := &file_api_v1_idp_service_proto_msgTypes[0]
  84. if x != nil {
  85. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  86. if ms.LoadMessageInfo() == nil {
  87. ms.StoreMessageInfo(mi)
  88. }
  89. return ms
  90. }
  91. return mi.MessageOf(x)
  92. }
  93. // Deprecated: Use IdentityProvider.ProtoReflect.Descriptor instead.
  94. func (*IdentityProvider) Descriptor() ([]byte, []int) {
  95. return file_api_v1_idp_service_proto_rawDescGZIP(), []int{0}
  96. }
  97. func (x *IdentityProvider) GetName() string {
  98. if x != nil {
  99. return x.Name
  100. }
  101. return ""
  102. }
  103. func (x *IdentityProvider) GetType() IdentityProvider_Type {
  104. if x != nil {
  105. return x.Type
  106. }
  107. return IdentityProvider_TYPE_UNSPECIFIED
  108. }
  109. func (x *IdentityProvider) GetTitle() string {
  110. if x != nil {
  111. return x.Title
  112. }
  113. return ""
  114. }
  115. func (x *IdentityProvider) GetIdentifierFilter() string {
  116. if x != nil {
  117. return x.IdentifierFilter
  118. }
  119. return ""
  120. }
  121. func (x *IdentityProvider) GetConfig() *IdentityProviderConfig {
  122. if x != nil {
  123. return x.Config
  124. }
  125. return nil
  126. }
  127. type IdentityProviderConfig struct {
  128. state protoimpl.MessageState `protogen:"open.v1"`
  129. // Types that are valid to be assigned to Config:
  130. //
  131. // *IdentityProviderConfig_Oauth2Config
  132. Config isIdentityProviderConfig_Config `protobuf_oneof:"config"`
  133. unknownFields protoimpl.UnknownFields
  134. sizeCache protoimpl.SizeCache
  135. }
  136. func (x *IdentityProviderConfig) Reset() {
  137. *x = IdentityProviderConfig{}
  138. mi := &file_api_v1_idp_service_proto_msgTypes[1]
  139. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  140. ms.StoreMessageInfo(mi)
  141. }
  142. func (x *IdentityProviderConfig) String() string {
  143. return protoimpl.X.MessageStringOf(x)
  144. }
  145. func (*IdentityProviderConfig) ProtoMessage() {}
  146. func (x *IdentityProviderConfig) ProtoReflect() protoreflect.Message {
  147. mi := &file_api_v1_idp_service_proto_msgTypes[1]
  148. if x != nil {
  149. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  150. if ms.LoadMessageInfo() == nil {
  151. ms.StoreMessageInfo(mi)
  152. }
  153. return ms
  154. }
  155. return mi.MessageOf(x)
  156. }
  157. // Deprecated: Use IdentityProviderConfig.ProtoReflect.Descriptor instead.
  158. func (*IdentityProviderConfig) Descriptor() ([]byte, []int) {
  159. return file_api_v1_idp_service_proto_rawDescGZIP(), []int{1}
  160. }
  161. func (x *IdentityProviderConfig) GetConfig() isIdentityProviderConfig_Config {
  162. if x != nil {
  163. return x.Config
  164. }
  165. return nil
  166. }
  167. func (x *IdentityProviderConfig) GetOauth2Config() *OAuth2Config {
  168. if x != nil {
  169. if x, ok := x.Config.(*IdentityProviderConfig_Oauth2Config); ok {
  170. return x.Oauth2Config
  171. }
  172. }
  173. return nil
  174. }
  175. type isIdentityProviderConfig_Config interface {
  176. isIdentityProviderConfig_Config()
  177. }
  178. type IdentityProviderConfig_Oauth2Config struct {
  179. Oauth2Config *OAuth2Config `protobuf:"bytes,1,opt,name=oauth2_config,json=oauth2Config,proto3,oneof"`
  180. }
  181. func (*IdentityProviderConfig_Oauth2Config) isIdentityProviderConfig_Config() {}
  182. type FieldMapping struct {
  183. state protoimpl.MessageState `protogen:"open.v1"`
  184. Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
  185. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
  186. Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
  187. unknownFields protoimpl.UnknownFields
  188. sizeCache protoimpl.SizeCache
  189. }
  190. func (x *FieldMapping) Reset() {
  191. *x = FieldMapping{}
  192. mi := &file_api_v1_idp_service_proto_msgTypes[2]
  193. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  194. ms.StoreMessageInfo(mi)
  195. }
  196. func (x *FieldMapping) String() string {
  197. return protoimpl.X.MessageStringOf(x)
  198. }
  199. func (*FieldMapping) ProtoMessage() {}
  200. func (x *FieldMapping) ProtoReflect() protoreflect.Message {
  201. mi := &file_api_v1_idp_service_proto_msgTypes[2]
  202. if x != nil {
  203. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  204. if ms.LoadMessageInfo() == nil {
  205. ms.StoreMessageInfo(mi)
  206. }
  207. return ms
  208. }
  209. return mi.MessageOf(x)
  210. }
  211. // Deprecated: Use FieldMapping.ProtoReflect.Descriptor instead.
  212. func (*FieldMapping) Descriptor() ([]byte, []int) {
  213. return file_api_v1_idp_service_proto_rawDescGZIP(), []int{2}
  214. }
  215. func (x *FieldMapping) GetIdentifier() string {
  216. if x != nil {
  217. return x.Identifier
  218. }
  219. return ""
  220. }
  221. func (x *FieldMapping) GetDisplayName() string {
  222. if x != nil {
  223. return x.DisplayName
  224. }
  225. return ""
  226. }
  227. func (x *FieldMapping) GetEmail() string {
  228. if x != nil {
  229. return x.Email
  230. }
  231. return ""
  232. }
  233. type OAuth2Config struct {
  234. state protoimpl.MessageState `protogen:"open.v1"`
  235. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
  236. ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
  237. AuthUrl string `protobuf:"bytes,3,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"`
  238. TokenUrl string `protobuf:"bytes,4,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"`
  239. UserInfoUrl string `protobuf:"bytes,5,opt,name=user_info_url,json=userInfoUrl,proto3" json:"user_info_url,omitempty"`
  240. Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"`
  241. FieldMapping *FieldMapping `protobuf:"bytes,7,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"`
  242. unknownFields protoimpl.UnknownFields
  243. sizeCache protoimpl.SizeCache
  244. }
  245. func (x *OAuth2Config) Reset() {
  246. *x = OAuth2Config{}
  247. mi := &file_api_v1_idp_service_proto_msgTypes[3]
  248. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  249. ms.StoreMessageInfo(mi)
  250. }
  251. func (x *OAuth2Config) String() string {
  252. return protoimpl.X.MessageStringOf(x)
  253. }
  254. func (*OAuth2Config) ProtoMessage() {}
  255. func (x *OAuth2Config) ProtoReflect() protoreflect.Message {
  256. mi := &file_api_v1_idp_service_proto_msgTypes[3]
  257. if x != nil {
  258. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  259. if ms.LoadMessageInfo() == nil {
  260. ms.StoreMessageInfo(mi)
  261. }
  262. return ms
  263. }
  264. return mi.MessageOf(x)
  265. }
  266. // Deprecated: Use OAuth2Config.ProtoReflect.Descriptor instead.
  267. func (*OAuth2Config) Descriptor() ([]byte, []int) {
  268. return file_api_v1_idp_service_proto_rawDescGZIP(), []int{3}
  269. }
  270. func (x *OAuth2Config) GetClientId() string {
  271. if x != nil {
  272. return x.ClientId
  273. }
  274. return ""
  275. }
  276. func (x *OAuth2Config) GetClientSecret() string {
  277. if x != nil {
  278. return x.ClientSecret
  279. }
  280. return ""
  281. }
  282. func (x *OAuth2Config) GetAuthUrl() string {
  283. if x != nil {
  284. return x.AuthUrl
  285. }
  286. return ""
  287. }
  288. func (x *OAuth2Config) GetTokenUrl() string {
  289. if x != nil {
  290. return x.TokenUrl
  291. }
  292. return ""
  293. }
  294. func (x *OAuth2Config) GetUserInfoUrl() string {
  295. if x != nil {
  296. return x.UserInfoUrl
  297. }
  298. return ""
  299. }
  300. func (x *OAuth2Config) GetScopes() []string {
  301. if x != nil {
  302. return x.Scopes
  303. }
  304. return nil
  305. }
  306. func (x *OAuth2Config) GetFieldMapping() *FieldMapping {
  307. if x != nil {
  308. return x.FieldMapping
  309. }
  310. return nil
  311. }
  312. type ListIdentityProvidersRequest struct {
  313. state protoimpl.MessageState `protogen:"open.v1"`
  314. unknownFields protoimpl.UnknownFields
  315. sizeCache protoimpl.SizeCache
  316. }
  317. func (x *ListIdentityProvidersRequest) Reset() {
  318. *x = ListIdentityProvidersRequest{}
  319. mi := &file_api_v1_idp_service_proto_msgTypes[4]
  320. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  321. ms.StoreMessageInfo(mi)
  322. }
  323. func (x *ListIdentityProvidersRequest) String() string {
  324. return protoimpl.X.MessageStringOf(x)
  325. }
  326. func (*ListIdentityProvidersRequest) ProtoMessage() {}
  327. func (x *ListIdentityProvidersRequest) ProtoReflect() protoreflect.Message {
  328. mi := &file_api_v1_idp_service_proto_msgTypes[4]
  329. if x != nil {
  330. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  331. if ms.LoadMessageInfo() == nil {
  332. ms.StoreMessageInfo(mi)
  333. }
  334. return ms
  335. }
  336. return mi.MessageOf(x)
  337. }
  338. // Deprecated: Use ListIdentityProvidersRequest.ProtoReflect.Descriptor instead.
  339. func (*ListIdentityProvidersRequest) Descriptor() ([]byte, []int) {
  340. return file_api_v1_idp_service_proto_rawDescGZIP(), []int{4}
  341. }
  342. type ListIdentityProvidersResponse struct {
  343. state protoimpl.MessageState `protogen:"open.v1"`
  344. IdentityProviders []*IdentityProvider `protobuf:"bytes,1,rep,name=identity_providers,json=identityProviders,proto3" json:"identity_providers,omitempty"`
  345. unknownFields protoimpl.UnknownFields
  346. sizeCache protoimpl.SizeCache
  347. }
  348. func (x *ListIdentityProvidersResponse) Reset() {
  349. *x = ListIdentityProvidersResponse{}
  350. mi := &file_api_v1_idp_service_proto_msgTypes[5]
  351. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  352. ms.StoreMessageInfo(mi)
  353. }
  354. func (x *ListIdentityProvidersResponse) String() string {
  355. return protoimpl.X.MessageStringOf(x)
  356. }
  357. func (*ListIdentityProvidersResponse) ProtoMessage() {}
  358. func (x *ListIdentityProvidersResponse) ProtoReflect() protoreflect.Message {
  359. mi := &file_api_v1_idp_service_proto_msgTypes[5]
  360. if x != nil {
  361. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  362. if ms.LoadMessageInfo() == nil {
  363. ms.StoreMessageInfo(mi)
  364. }
  365. return ms
  366. }
  367. return mi.MessageOf(x)
  368. }
  369. // Deprecated: Use ListIdentityProvidersResponse.ProtoReflect.Descriptor instead.
  370. func (*ListIdentityProvidersResponse) Descriptor() ([]byte, []int) {
  371. return file_api_v1_idp_service_proto_rawDescGZIP(), []int{5}
  372. }
  373. func (x *ListIdentityProvidersResponse) GetIdentityProviders() []*IdentityProvider {
  374. if x != nil {
  375. return x.IdentityProviders
  376. }
  377. return nil
  378. }
  379. type GetIdentityProviderRequest struct {
  380. state protoimpl.MessageState `protogen:"open.v1"`
  381. // The name of the identityProvider to get.
  382. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  383. unknownFields protoimpl.UnknownFields
  384. sizeCache protoimpl.SizeCache
  385. }
  386. func (x *GetIdentityProviderRequest) Reset() {
  387. *x = GetIdentityProviderRequest{}
  388. mi := &file_api_v1_idp_service_proto_msgTypes[6]
  389. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  390. ms.StoreMessageInfo(mi)
  391. }
  392. func (x *GetIdentityProviderRequest) String() string {
  393. return protoimpl.X.MessageStringOf(x)
  394. }
  395. func (*GetIdentityProviderRequest) ProtoMessage() {}
  396. func (x *GetIdentityProviderRequest) ProtoReflect() protoreflect.Message {
  397. mi := &file_api_v1_idp_service_proto_msgTypes[6]
  398. if x != nil {
  399. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  400. if ms.LoadMessageInfo() == nil {
  401. ms.StoreMessageInfo(mi)
  402. }
  403. return ms
  404. }
  405. return mi.MessageOf(x)
  406. }
  407. // Deprecated: Use GetIdentityProviderRequest.ProtoReflect.Descriptor instead.
  408. func (*GetIdentityProviderRequest) Descriptor() ([]byte, []int) {
  409. return file_api_v1_idp_service_proto_rawDescGZIP(), []int{6}
  410. }
  411. func (x *GetIdentityProviderRequest) GetName() string {
  412. if x != nil {
  413. return x.Name
  414. }
  415. return ""
  416. }
  417. type CreateIdentityProviderRequest struct {
  418. state protoimpl.MessageState `protogen:"open.v1"`
  419. // The identityProvider to create.
  420. IdentityProvider *IdentityProvider `protobuf:"bytes,1,opt,name=identity_provider,json=identityProvider,proto3" json:"identity_provider,omitempty"`
  421. unknownFields protoimpl.UnknownFields
  422. sizeCache protoimpl.SizeCache
  423. }
  424. func (x *CreateIdentityProviderRequest) Reset() {
  425. *x = CreateIdentityProviderRequest{}
  426. mi := &file_api_v1_idp_service_proto_msgTypes[7]
  427. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  428. ms.StoreMessageInfo(mi)
  429. }
  430. func (x *CreateIdentityProviderRequest) String() string {
  431. return protoimpl.X.MessageStringOf(x)
  432. }
  433. func (*CreateIdentityProviderRequest) ProtoMessage() {}
  434. func (x *CreateIdentityProviderRequest) ProtoReflect() protoreflect.Message {
  435. mi := &file_api_v1_idp_service_proto_msgTypes[7]
  436. if x != nil {
  437. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  438. if ms.LoadMessageInfo() == nil {
  439. ms.StoreMessageInfo(mi)
  440. }
  441. return ms
  442. }
  443. return mi.MessageOf(x)
  444. }
  445. // Deprecated: Use CreateIdentityProviderRequest.ProtoReflect.Descriptor instead.
  446. func (*CreateIdentityProviderRequest) Descriptor() ([]byte, []int) {
  447. return file_api_v1_idp_service_proto_rawDescGZIP(), []int{7}
  448. }
  449. func (x *CreateIdentityProviderRequest) GetIdentityProvider() *IdentityProvider {
  450. if x != nil {
  451. return x.IdentityProvider
  452. }
  453. return nil
  454. }
  455. type UpdateIdentityProviderRequest struct {
  456. state protoimpl.MessageState `protogen:"open.v1"`
  457. // The identityProvider to update.
  458. IdentityProvider *IdentityProvider `protobuf:"bytes,1,opt,name=identity_provider,json=identityProvider,proto3" json:"identity_provider,omitempty"`
  459. // The update mask applies to the resource. Only the top level fields of
  460. // IdentityProvider are supported.
  461. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
  462. unknownFields protoimpl.UnknownFields
  463. sizeCache protoimpl.SizeCache
  464. }
  465. func (x *UpdateIdentityProviderRequest) Reset() {
  466. *x = UpdateIdentityProviderRequest{}
  467. mi := &file_api_v1_idp_service_proto_msgTypes[8]
  468. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  469. ms.StoreMessageInfo(mi)
  470. }
  471. func (x *UpdateIdentityProviderRequest) String() string {
  472. return protoimpl.X.MessageStringOf(x)
  473. }
  474. func (*UpdateIdentityProviderRequest) ProtoMessage() {}
  475. func (x *UpdateIdentityProviderRequest) ProtoReflect() protoreflect.Message {
  476. mi := &file_api_v1_idp_service_proto_msgTypes[8]
  477. if x != nil {
  478. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  479. if ms.LoadMessageInfo() == nil {
  480. ms.StoreMessageInfo(mi)
  481. }
  482. return ms
  483. }
  484. return mi.MessageOf(x)
  485. }
  486. // Deprecated: Use UpdateIdentityProviderRequest.ProtoReflect.Descriptor instead.
  487. func (*UpdateIdentityProviderRequest) Descriptor() ([]byte, []int) {
  488. return file_api_v1_idp_service_proto_rawDescGZIP(), []int{8}
  489. }
  490. func (x *UpdateIdentityProviderRequest) GetIdentityProvider() *IdentityProvider {
  491. if x != nil {
  492. return x.IdentityProvider
  493. }
  494. return nil
  495. }
  496. func (x *UpdateIdentityProviderRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
  497. if x != nil {
  498. return x.UpdateMask
  499. }
  500. return nil
  501. }
  502. type DeleteIdentityProviderRequest struct {
  503. state protoimpl.MessageState `protogen:"open.v1"`
  504. // The name of the identityProvider to delete.
  505. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  506. unknownFields protoimpl.UnknownFields
  507. sizeCache protoimpl.SizeCache
  508. }
  509. func (x *DeleteIdentityProviderRequest) Reset() {
  510. *x = DeleteIdentityProviderRequest{}
  511. mi := &file_api_v1_idp_service_proto_msgTypes[9]
  512. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  513. ms.StoreMessageInfo(mi)
  514. }
  515. func (x *DeleteIdentityProviderRequest) String() string {
  516. return protoimpl.X.MessageStringOf(x)
  517. }
  518. func (*DeleteIdentityProviderRequest) ProtoMessage() {}
  519. func (x *DeleteIdentityProviderRequest) ProtoReflect() protoreflect.Message {
  520. mi := &file_api_v1_idp_service_proto_msgTypes[9]
  521. if x != nil {
  522. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  523. if ms.LoadMessageInfo() == nil {
  524. ms.StoreMessageInfo(mi)
  525. }
  526. return ms
  527. }
  528. return mi.MessageOf(x)
  529. }
  530. // Deprecated: Use DeleteIdentityProviderRequest.ProtoReflect.Descriptor instead.
  531. func (*DeleteIdentityProviderRequest) Descriptor() ([]byte, []int) {
  532. return file_api_v1_idp_service_proto_rawDescGZIP(), []int{9}
  533. }
  534. func (x *DeleteIdentityProviderRequest) GetName() string {
  535. if x != nil {
  536. return x.Name
  537. }
  538. return ""
  539. }
  540. var File_api_v1_idp_service_proto protoreflect.FileDescriptor
  541. var file_api_v1_idp_service_proto_rawDesc = string([]byte{
  542. 0x0a, 0x18, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x64, 0x70, 0x5f, 0x73, 0x65, 0x72,
  543. 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6d, 0x65, 0x6d, 0x6f,
  544. 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  545. 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
  546. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
  547. 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
  548. 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  549. 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f,
  550. 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69,
  551. 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a,
  552. 0x02, 0x0a, 0x10, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69,
  553. 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  554. 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
  555. 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70,
  556. 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f,
  557. 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65,
  558. 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
  559. 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69,
  560. 0x66, 0x69, 0x65, 0x72, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28,
  561. 0x09, 0x52, 0x10, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x46, 0x69, 0x6c,
  562. 0x74, 0x65, 0x72, 0x12, 0x3c, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20,
  563. 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  564. 0x76, 0x31, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69,
  565. 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69,
  566. 0x67, 0x22, 0x28, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50,
  567. 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
  568. 0x0a, 0x0a, 0x06, 0x4f, 0x41, 0x55, 0x54, 0x48, 0x32, 0x10, 0x01, 0x22, 0x65, 0x0a, 0x16, 0x49,
  569. 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43,
  570. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x41, 0x0a, 0x0d, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x5f,
  571. 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d,
  572. 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x41, 0x75, 0x74,
  573. 0x68, 0x32, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0c, 0x6f, 0x61, 0x75, 0x74,
  574. 0x68, 0x32, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66,
  575. 0x69, 0x67, 0x22, 0x67, 0x0a, 0x0c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69,
  576. 0x6e, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72,
  577. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69,
  578. 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61,
  579. 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61,
  580. 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03,
  581. 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x85, 0x02, 0x0a, 0x0c,
  582. 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1b, 0x0a, 0x09,
  583. 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  584. 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69,
  585. 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  586. 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x19,
  587. 0x0a, 0x08, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  588. 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x55, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x6b,
  589. 0x65, 0x6e, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6f,
  590. 0x6b, 0x65, 0x6e, 0x55, 0x72, 0x6c, 0x12, 0x22, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69,
  591. 0x6e, 0x66, 0x6f, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x75,
  592. 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x55, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63,
  593. 0x6f, 0x70, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x70,
  594. 0x65, 0x73, 0x12, 0x3f, 0x0a, 0x0d, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x70, 0x70,
  595. 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x65, 0x6d, 0x6f,
  596. 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61,
  597. 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70,
  598. 0x69, 0x6e, 0x67, 0x22, 0x1e, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74,
  599. 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75,
  600. 0x65, 0x73, 0x74, 0x22, 0x6e, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74,
  601. 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70,
  602. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x12, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
  603. 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
  604. 0x32, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
  605. 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
  606. 0x52, 0x11, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,
  607. 0x65, 0x72, 0x73, 0x22, 0x30, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
  608. 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  609. 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  610. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x6c, 0x0a, 0x1d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49,
  611. 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52,
  612. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x11, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69,
  613. 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
  614. 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
  615. 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
  616. 0x72, 0x52, 0x10, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69,
  617. 0x64, 0x65, 0x72, 0x22, 0xa9, 0x01, 0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x64,
  618. 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65,
  619. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x11, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
  620. 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
  621. 0x32, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
  622. 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
  623. 0x52, 0x10, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,
  624. 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,
  625. 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  626. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d,
  627. 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22,
  628. 0x33, 0x0a, 0x1d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
  629. 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  630. 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
  631. 0x6e, 0x61, 0x6d, 0x65, 0x32, 0xce, 0x06, 0x0a, 0x17, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
  632. 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
  633. 0x12, 0x93, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
  634. 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x2a, 0x2e, 0x6d, 0x65, 0x6d,
  635. 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64,
  636. 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52,
  637. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61,
  638. 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
  639. 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
  640. 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x61, 0x70,
  641. 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f,
  642. 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x92, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x49, 0x64,
  643. 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x28,
  644. 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
  645. 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
  646. 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73,
  647. 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
  648. 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x31, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d,
  649. 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
  650. 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50,
  651. 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x9b, 0x01, 0x0a, 0x16,
  652. 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72,
  653. 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61,
  654. 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e,
  655. 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
  656. 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  657. 0x76, 0x31, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69,
  658. 0x64, 0x65, 0x72, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x3a, 0x11, 0x69, 0x64, 0x65,
  659. 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x19,
  660. 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
  661. 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0xd6, 0x01, 0x0a, 0x16, 0x55, 0x70,
  662. 0x64, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76,
  663. 0x69, 0x64, 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69,
  664. 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
  665. 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  666. 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
  667. 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
  668. 0x72, 0x22, 0x6f, 0xda, 0x41, 0x1d, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x70,
  669. 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d,
  670. 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x3a, 0x11, 0x69, 0x64, 0x65, 0x6e, 0x74,
  671. 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x32, 0x34, 0x2f, 0x61,
  672. 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f,
  673. 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x64,
  674. 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2f,
  675. 0x2a, 0x7d, 0x12, 0x90, 0x01, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x65,
  676. 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x2b, 0x2e,
  677. 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c,
  678. 0x65, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69,
  679. 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
  680. 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
  681. 0x74, 0x79, 0x22, 0x31, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,
  682. 0x24, 0x2a, 0x22, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,
  683. 0x3d, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
  684. 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0xa7, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65,
  685. 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x49, 0x64, 0x70, 0x53,
  686. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67,
  687. 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d,
  688. 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
  689. 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2,
  690. 0x02, 0x03, 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70,
  691. 0x69, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69,
  692. 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c,
  693. 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
  694. 0x0e, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62,
  695. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  696. })
  697. var (
  698. file_api_v1_idp_service_proto_rawDescOnce sync.Once
  699. file_api_v1_idp_service_proto_rawDescData []byte
  700. )
  701. func file_api_v1_idp_service_proto_rawDescGZIP() []byte {
  702. file_api_v1_idp_service_proto_rawDescOnce.Do(func() {
  703. file_api_v1_idp_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_v1_idp_service_proto_rawDesc), len(file_api_v1_idp_service_proto_rawDesc)))
  704. })
  705. return file_api_v1_idp_service_proto_rawDescData
  706. }
  707. var file_api_v1_idp_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  708. var file_api_v1_idp_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  709. var file_api_v1_idp_service_proto_goTypes = []any{
  710. (IdentityProvider_Type)(0), // 0: memos.api.v1.IdentityProvider.Type
  711. (*IdentityProvider)(nil), // 1: memos.api.v1.IdentityProvider
  712. (*IdentityProviderConfig)(nil), // 2: memos.api.v1.IdentityProviderConfig
  713. (*FieldMapping)(nil), // 3: memos.api.v1.FieldMapping
  714. (*OAuth2Config)(nil), // 4: memos.api.v1.OAuth2Config
  715. (*ListIdentityProvidersRequest)(nil), // 5: memos.api.v1.ListIdentityProvidersRequest
  716. (*ListIdentityProvidersResponse)(nil), // 6: memos.api.v1.ListIdentityProvidersResponse
  717. (*GetIdentityProviderRequest)(nil), // 7: memos.api.v1.GetIdentityProviderRequest
  718. (*CreateIdentityProviderRequest)(nil), // 8: memos.api.v1.CreateIdentityProviderRequest
  719. (*UpdateIdentityProviderRequest)(nil), // 9: memos.api.v1.UpdateIdentityProviderRequest
  720. (*DeleteIdentityProviderRequest)(nil), // 10: memos.api.v1.DeleteIdentityProviderRequest
  721. (*fieldmaskpb.FieldMask)(nil), // 11: google.protobuf.FieldMask
  722. (*emptypb.Empty)(nil), // 12: google.protobuf.Empty
  723. }
  724. var file_api_v1_idp_service_proto_depIdxs = []int32{
  725. 0, // 0: memos.api.v1.IdentityProvider.type:type_name -> memos.api.v1.IdentityProvider.Type
  726. 2, // 1: memos.api.v1.IdentityProvider.config:type_name -> memos.api.v1.IdentityProviderConfig
  727. 4, // 2: memos.api.v1.IdentityProviderConfig.oauth2_config:type_name -> memos.api.v1.OAuth2Config
  728. 3, // 3: memos.api.v1.OAuth2Config.field_mapping:type_name -> memos.api.v1.FieldMapping
  729. 1, // 4: memos.api.v1.ListIdentityProvidersResponse.identity_providers:type_name -> memos.api.v1.IdentityProvider
  730. 1, // 5: memos.api.v1.CreateIdentityProviderRequest.identity_provider:type_name -> memos.api.v1.IdentityProvider
  731. 1, // 6: memos.api.v1.UpdateIdentityProviderRequest.identity_provider:type_name -> memos.api.v1.IdentityProvider
  732. 11, // 7: memos.api.v1.UpdateIdentityProviderRequest.update_mask:type_name -> google.protobuf.FieldMask
  733. 5, // 8: memos.api.v1.IdentityProviderService.ListIdentityProviders:input_type -> memos.api.v1.ListIdentityProvidersRequest
  734. 7, // 9: memos.api.v1.IdentityProviderService.GetIdentityProvider:input_type -> memos.api.v1.GetIdentityProviderRequest
  735. 8, // 10: memos.api.v1.IdentityProviderService.CreateIdentityProvider:input_type -> memos.api.v1.CreateIdentityProviderRequest
  736. 9, // 11: memos.api.v1.IdentityProviderService.UpdateIdentityProvider:input_type -> memos.api.v1.UpdateIdentityProviderRequest
  737. 10, // 12: memos.api.v1.IdentityProviderService.DeleteIdentityProvider:input_type -> memos.api.v1.DeleteIdentityProviderRequest
  738. 6, // 13: memos.api.v1.IdentityProviderService.ListIdentityProviders:output_type -> memos.api.v1.ListIdentityProvidersResponse
  739. 1, // 14: memos.api.v1.IdentityProviderService.GetIdentityProvider:output_type -> memos.api.v1.IdentityProvider
  740. 1, // 15: memos.api.v1.IdentityProviderService.CreateIdentityProvider:output_type -> memos.api.v1.IdentityProvider
  741. 1, // 16: memos.api.v1.IdentityProviderService.UpdateIdentityProvider:output_type -> memos.api.v1.IdentityProvider
  742. 12, // 17: memos.api.v1.IdentityProviderService.DeleteIdentityProvider:output_type -> google.protobuf.Empty
  743. 13, // [13:18] is the sub-list for method output_type
  744. 8, // [8:13] is the sub-list for method input_type
  745. 8, // [8:8] is the sub-list for extension type_name
  746. 8, // [8:8] is the sub-list for extension extendee
  747. 0, // [0:8] is the sub-list for field type_name
  748. }
  749. func init() { file_api_v1_idp_service_proto_init() }
  750. func file_api_v1_idp_service_proto_init() {
  751. if File_api_v1_idp_service_proto != nil {
  752. return
  753. }
  754. file_api_v1_idp_service_proto_msgTypes[1].OneofWrappers = []any{
  755. (*IdentityProviderConfig_Oauth2Config)(nil),
  756. }
  757. type x struct{}
  758. out := protoimpl.TypeBuilder{
  759. File: protoimpl.DescBuilder{
  760. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  761. RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_v1_idp_service_proto_rawDesc), len(file_api_v1_idp_service_proto_rawDesc)),
  762. NumEnums: 1,
  763. NumMessages: 10,
  764. NumExtensions: 0,
  765. NumServices: 1,
  766. },
  767. GoTypes: file_api_v1_idp_service_proto_goTypes,
  768. DependencyIndexes: file_api_v1_idp_service_proto_depIdxs,
  769. EnumInfos: file_api_v1_idp_service_proto_enumTypes,
  770. MessageInfos: file_api_v1_idp_service_proto_msgTypes,
  771. }.Build()
  772. File_api_v1_idp_service_proto = out.File
  773. file_api_v1_idp_service_proto_goTypes = nil
  774. file_api_v1_idp_service_proto_depIdxs = nil
  775. }