idp_service.pb.go 41 KB

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