idp_service.pb.go 38 KB

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