resource_service.pb.go 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009
  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/resource_service.proto
  6. package apiv1
  7. import (
  8. _ "google.golang.org/genproto/googleapis/api/annotations"
  9. httpbody "google.golang.org/genproto/googleapis/api/httpbody"
  10. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  11. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12. emptypb "google.golang.org/protobuf/types/known/emptypb"
  13. fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
  14. timestamppb "google.golang.org/protobuf/types/known/timestamppb"
  15. reflect "reflect"
  16. sync "sync"
  17. )
  18. const (
  19. // Verify that this generated code is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  21. // Verify that runtime/protoimpl is sufficiently up-to-date.
  22. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  23. )
  24. type Resource struct {
  25. state protoimpl.MessageState
  26. sizeCache protoimpl.SizeCache
  27. unknownFields protoimpl.UnknownFields
  28. // The name of the resource.
  29. // Format: resources/{id}
  30. // id is the system generated unique identifier.
  31. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  32. // The user defined id of the resource.
  33. Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
  34. CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
  35. Filename string `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"`
  36. Content []byte `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
  37. ExternalLink string `protobuf:"bytes,6,opt,name=external_link,json=externalLink,proto3" json:"external_link,omitempty"`
  38. Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"`
  39. Size int64 `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"`
  40. // The related memo.
  41. // Format: memos/{id}
  42. Memo *string `protobuf:"bytes,9,opt,name=memo,proto3,oneof" json:"memo,omitempty"`
  43. }
  44. func (x *Resource) Reset() {
  45. *x = Resource{}
  46. if protoimpl.UnsafeEnabled {
  47. mi := &file_api_v1_resource_service_proto_msgTypes[0]
  48. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  49. ms.StoreMessageInfo(mi)
  50. }
  51. }
  52. func (x *Resource) String() string {
  53. return protoimpl.X.MessageStringOf(x)
  54. }
  55. func (*Resource) ProtoMessage() {}
  56. func (x *Resource) ProtoReflect() protoreflect.Message {
  57. mi := &file_api_v1_resource_service_proto_msgTypes[0]
  58. if protoimpl.UnsafeEnabled && x != nil {
  59. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  60. if ms.LoadMessageInfo() == nil {
  61. ms.StoreMessageInfo(mi)
  62. }
  63. return ms
  64. }
  65. return mi.MessageOf(x)
  66. }
  67. // Deprecated: Use Resource.ProtoReflect.Descriptor instead.
  68. func (*Resource) Descriptor() ([]byte, []int) {
  69. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{0}
  70. }
  71. func (x *Resource) GetName() string {
  72. if x != nil {
  73. return x.Name
  74. }
  75. return ""
  76. }
  77. func (x *Resource) GetUid() string {
  78. if x != nil {
  79. return x.Uid
  80. }
  81. return ""
  82. }
  83. func (x *Resource) GetCreateTime() *timestamppb.Timestamp {
  84. if x != nil {
  85. return x.CreateTime
  86. }
  87. return nil
  88. }
  89. func (x *Resource) GetFilename() string {
  90. if x != nil {
  91. return x.Filename
  92. }
  93. return ""
  94. }
  95. func (x *Resource) GetContent() []byte {
  96. if x != nil {
  97. return x.Content
  98. }
  99. return nil
  100. }
  101. func (x *Resource) GetExternalLink() string {
  102. if x != nil {
  103. return x.ExternalLink
  104. }
  105. return ""
  106. }
  107. func (x *Resource) GetType() string {
  108. if x != nil {
  109. return x.Type
  110. }
  111. return ""
  112. }
  113. func (x *Resource) GetSize() int64 {
  114. if x != nil {
  115. return x.Size
  116. }
  117. return 0
  118. }
  119. func (x *Resource) GetMemo() string {
  120. if x != nil && x.Memo != nil {
  121. return *x.Memo
  122. }
  123. return ""
  124. }
  125. type CreateResourceRequest struct {
  126. state protoimpl.MessageState
  127. sizeCache protoimpl.SizeCache
  128. unknownFields protoimpl.UnknownFields
  129. Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
  130. }
  131. func (x *CreateResourceRequest) Reset() {
  132. *x = CreateResourceRequest{}
  133. if protoimpl.UnsafeEnabled {
  134. mi := &file_api_v1_resource_service_proto_msgTypes[1]
  135. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  136. ms.StoreMessageInfo(mi)
  137. }
  138. }
  139. func (x *CreateResourceRequest) String() string {
  140. return protoimpl.X.MessageStringOf(x)
  141. }
  142. func (*CreateResourceRequest) ProtoMessage() {}
  143. func (x *CreateResourceRequest) ProtoReflect() protoreflect.Message {
  144. mi := &file_api_v1_resource_service_proto_msgTypes[1]
  145. if protoimpl.UnsafeEnabled && x != nil {
  146. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  147. if ms.LoadMessageInfo() == nil {
  148. ms.StoreMessageInfo(mi)
  149. }
  150. return ms
  151. }
  152. return mi.MessageOf(x)
  153. }
  154. // Deprecated: Use CreateResourceRequest.ProtoReflect.Descriptor instead.
  155. func (*CreateResourceRequest) Descriptor() ([]byte, []int) {
  156. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{1}
  157. }
  158. func (x *CreateResourceRequest) GetResource() *Resource {
  159. if x != nil {
  160. return x.Resource
  161. }
  162. return nil
  163. }
  164. type ListResourcesRequest struct {
  165. state protoimpl.MessageState
  166. sizeCache protoimpl.SizeCache
  167. unknownFields protoimpl.UnknownFields
  168. }
  169. func (x *ListResourcesRequest) Reset() {
  170. *x = ListResourcesRequest{}
  171. if protoimpl.UnsafeEnabled {
  172. mi := &file_api_v1_resource_service_proto_msgTypes[2]
  173. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  174. ms.StoreMessageInfo(mi)
  175. }
  176. }
  177. func (x *ListResourcesRequest) String() string {
  178. return protoimpl.X.MessageStringOf(x)
  179. }
  180. func (*ListResourcesRequest) ProtoMessage() {}
  181. func (x *ListResourcesRequest) ProtoReflect() protoreflect.Message {
  182. mi := &file_api_v1_resource_service_proto_msgTypes[2]
  183. if protoimpl.UnsafeEnabled && x != nil {
  184. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  185. if ms.LoadMessageInfo() == nil {
  186. ms.StoreMessageInfo(mi)
  187. }
  188. return ms
  189. }
  190. return mi.MessageOf(x)
  191. }
  192. // Deprecated: Use ListResourcesRequest.ProtoReflect.Descriptor instead.
  193. func (*ListResourcesRequest) Descriptor() ([]byte, []int) {
  194. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{2}
  195. }
  196. type ListResourcesResponse struct {
  197. state protoimpl.MessageState
  198. sizeCache protoimpl.SizeCache
  199. unknownFields protoimpl.UnknownFields
  200. Resources []*Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
  201. }
  202. func (x *ListResourcesResponse) Reset() {
  203. *x = ListResourcesResponse{}
  204. if protoimpl.UnsafeEnabled {
  205. mi := &file_api_v1_resource_service_proto_msgTypes[3]
  206. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  207. ms.StoreMessageInfo(mi)
  208. }
  209. }
  210. func (x *ListResourcesResponse) String() string {
  211. return protoimpl.X.MessageStringOf(x)
  212. }
  213. func (*ListResourcesResponse) ProtoMessage() {}
  214. func (x *ListResourcesResponse) ProtoReflect() protoreflect.Message {
  215. mi := &file_api_v1_resource_service_proto_msgTypes[3]
  216. if protoimpl.UnsafeEnabled && x != nil {
  217. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  218. if ms.LoadMessageInfo() == nil {
  219. ms.StoreMessageInfo(mi)
  220. }
  221. return ms
  222. }
  223. return mi.MessageOf(x)
  224. }
  225. // Deprecated: Use ListResourcesResponse.ProtoReflect.Descriptor instead.
  226. func (*ListResourcesResponse) Descriptor() ([]byte, []int) {
  227. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{3}
  228. }
  229. func (x *ListResourcesResponse) GetResources() []*Resource {
  230. if x != nil {
  231. return x.Resources
  232. }
  233. return nil
  234. }
  235. type SearchResourcesRequest struct {
  236. state protoimpl.MessageState
  237. sizeCache protoimpl.SizeCache
  238. unknownFields protoimpl.UnknownFields
  239. Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
  240. }
  241. func (x *SearchResourcesRequest) Reset() {
  242. *x = SearchResourcesRequest{}
  243. if protoimpl.UnsafeEnabled {
  244. mi := &file_api_v1_resource_service_proto_msgTypes[4]
  245. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  246. ms.StoreMessageInfo(mi)
  247. }
  248. }
  249. func (x *SearchResourcesRequest) String() string {
  250. return protoimpl.X.MessageStringOf(x)
  251. }
  252. func (*SearchResourcesRequest) ProtoMessage() {}
  253. func (x *SearchResourcesRequest) ProtoReflect() protoreflect.Message {
  254. mi := &file_api_v1_resource_service_proto_msgTypes[4]
  255. if protoimpl.UnsafeEnabled && x != nil {
  256. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  257. if ms.LoadMessageInfo() == nil {
  258. ms.StoreMessageInfo(mi)
  259. }
  260. return ms
  261. }
  262. return mi.MessageOf(x)
  263. }
  264. // Deprecated: Use SearchResourcesRequest.ProtoReflect.Descriptor instead.
  265. func (*SearchResourcesRequest) Descriptor() ([]byte, []int) {
  266. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{4}
  267. }
  268. func (x *SearchResourcesRequest) GetFilter() string {
  269. if x != nil {
  270. return x.Filter
  271. }
  272. return ""
  273. }
  274. type SearchResourcesResponse struct {
  275. state protoimpl.MessageState
  276. sizeCache protoimpl.SizeCache
  277. unknownFields protoimpl.UnknownFields
  278. Resources []*Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
  279. }
  280. func (x *SearchResourcesResponse) Reset() {
  281. *x = SearchResourcesResponse{}
  282. if protoimpl.UnsafeEnabled {
  283. mi := &file_api_v1_resource_service_proto_msgTypes[5]
  284. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  285. ms.StoreMessageInfo(mi)
  286. }
  287. }
  288. func (x *SearchResourcesResponse) String() string {
  289. return protoimpl.X.MessageStringOf(x)
  290. }
  291. func (*SearchResourcesResponse) ProtoMessage() {}
  292. func (x *SearchResourcesResponse) ProtoReflect() protoreflect.Message {
  293. mi := &file_api_v1_resource_service_proto_msgTypes[5]
  294. if protoimpl.UnsafeEnabled && x != nil {
  295. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  296. if ms.LoadMessageInfo() == nil {
  297. ms.StoreMessageInfo(mi)
  298. }
  299. return ms
  300. }
  301. return mi.MessageOf(x)
  302. }
  303. // Deprecated: Use SearchResourcesResponse.ProtoReflect.Descriptor instead.
  304. func (*SearchResourcesResponse) Descriptor() ([]byte, []int) {
  305. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{5}
  306. }
  307. func (x *SearchResourcesResponse) GetResources() []*Resource {
  308. if x != nil {
  309. return x.Resources
  310. }
  311. return nil
  312. }
  313. type GetResourceRequest struct {
  314. state protoimpl.MessageState
  315. sizeCache protoimpl.SizeCache
  316. unknownFields protoimpl.UnknownFields
  317. // The name of the resource.
  318. // Format: resources/{id}
  319. // id is the system generated unique identifier.
  320. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  321. }
  322. func (x *GetResourceRequest) Reset() {
  323. *x = GetResourceRequest{}
  324. if protoimpl.UnsafeEnabled {
  325. mi := &file_api_v1_resource_service_proto_msgTypes[6]
  326. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  327. ms.StoreMessageInfo(mi)
  328. }
  329. }
  330. func (x *GetResourceRequest) String() string {
  331. return protoimpl.X.MessageStringOf(x)
  332. }
  333. func (*GetResourceRequest) ProtoMessage() {}
  334. func (x *GetResourceRequest) ProtoReflect() protoreflect.Message {
  335. mi := &file_api_v1_resource_service_proto_msgTypes[6]
  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 GetResourceRequest.ProtoReflect.Descriptor instead.
  346. func (*GetResourceRequest) Descriptor() ([]byte, []int) {
  347. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{6}
  348. }
  349. func (x *GetResourceRequest) GetName() string {
  350. if x != nil {
  351. return x.Name
  352. }
  353. return ""
  354. }
  355. type GetResourceByUidRequest struct {
  356. state protoimpl.MessageState
  357. sizeCache protoimpl.SizeCache
  358. unknownFields protoimpl.UnknownFields
  359. // The uid of the resource.
  360. Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
  361. }
  362. func (x *GetResourceByUidRequest) Reset() {
  363. *x = GetResourceByUidRequest{}
  364. if protoimpl.UnsafeEnabled {
  365. mi := &file_api_v1_resource_service_proto_msgTypes[7]
  366. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  367. ms.StoreMessageInfo(mi)
  368. }
  369. }
  370. func (x *GetResourceByUidRequest) String() string {
  371. return protoimpl.X.MessageStringOf(x)
  372. }
  373. func (*GetResourceByUidRequest) ProtoMessage() {}
  374. func (x *GetResourceByUidRequest) ProtoReflect() protoreflect.Message {
  375. mi := &file_api_v1_resource_service_proto_msgTypes[7]
  376. if protoimpl.UnsafeEnabled && x != nil {
  377. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  378. if ms.LoadMessageInfo() == nil {
  379. ms.StoreMessageInfo(mi)
  380. }
  381. return ms
  382. }
  383. return mi.MessageOf(x)
  384. }
  385. // Deprecated: Use GetResourceByUidRequest.ProtoReflect.Descriptor instead.
  386. func (*GetResourceByUidRequest) Descriptor() ([]byte, []int) {
  387. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{7}
  388. }
  389. func (x *GetResourceByUidRequest) GetUid() string {
  390. if x != nil {
  391. return x.Uid
  392. }
  393. return ""
  394. }
  395. type GetResourceBinaryRequest struct {
  396. state protoimpl.MessageState
  397. sizeCache protoimpl.SizeCache
  398. unknownFields protoimpl.UnknownFields
  399. // The name of the resource.
  400. // Format: resources/{id}
  401. // id is the system generated unique identifier.
  402. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  403. // The filename of the resource. Mainly used for downloading.
  404. Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
  405. }
  406. func (x *GetResourceBinaryRequest) Reset() {
  407. *x = GetResourceBinaryRequest{}
  408. if protoimpl.UnsafeEnabled {
  409. mi := &file_api_v1_resource_service_proto_msgTypes[8]
  410. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  411. ms.StoreMessageInfo(mi)
  412. }
  413. }
  414. func (x *GetResourceBinaryRequest) String() string {
  415. return protoimpl.X.MessageStringOf(x)
  416. }
  417. func (*GetResourceBinaryRequest) ProtoMessage() {}
  418. func (x *GetResourceBinaryRequest) ProtoReflect() protoreflect.Message {
  419. mi := &file_api_v1_resource_service_proto_msgTypes[8]
  420. if protoimpl.UnsafeEnabled && x != nil {
  421. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  422. if ms.LoadMessageInfo() == nil {
  423. ms.StoreMessageInfo(mi)
  424. }
  425. return ms
  426. }
  427. return mi.MessageOf(x)
  428. }
  429. // Deprecated: Use GetResourceBinaryRequest.ProtoReflect.Descriptor instead.
  430. func (*GetResourceBinaryRequest) Descriptor() ([]byte, []int) {
  431. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{8}
  432. }
  433. func (x *GetResourceBinaryRequest) GetName() string {
  434. if x != nil {
  435. return x.Name
  436. }
  437. return ""
  438. }
  439. func (x *GetResourceBinaryRequest) GetFilename() string {
  440. if x != nil {
  441. return x.Filename
  442. }
  443. return ""
  444. }
  445. type UpdateResourceRequest struct {
  446. state protoimpl.MessageState
  447. sizeCache protoimpl.SizeCache
  448. unknownFields protoimpl.UnknownFields
  449. Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
  450. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
  451. }
  452. func (x *UpdateResourceRequest) Reset() {
  453. *x = UpdateResourceRequest{}
  454. if protoimpl.UnsafeEnabled {
  455. mi := &file_api_v1_resource_service_proto_msgTypes[9]
  456. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  457. ms.StoreMessageInfo(mi)
  458. }
  459. }
  460. func (x *UpdateResourceRequest) String() string {
  461. return protoimpl.X.MessageStringOf(x)
  462. }
  463. func (*UpdateResourceRequest) ProtoMessage() {}
  464. func (x *UpdateResourceRequest) ProtoReflect() protoreflect.Message {
  465. mi := &file_api_v1_resource_service_proto_msgTypes[9]
  466. if protoimpl.UnsafeEnabled && x != nil {
  467. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  468. if ms.LoadMessageInfo() == nil {
  469. ms.StoreMessageInfo(mi)
  470. }
  471. return ms
  472. }
  473. return mi.MessageOf(x)
  474. }
  475. // Deprecated: Use UpdateResourceRequest.ProtoReflect.Descriptor instead.
  476. func (*UpdateResourceRequest) Descriptor() ([]byte, []int) {
  477. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{9}
  478. }
  479. func (x *UpdateResourceRequest) GetResource() *Resource {
  480. if x != nil {
  481. return x.Resource
  482. }
  483. return nil
  484. }
  485. func (x *UpdateResourceRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
  486. if x != nil {
  487. return x.UpdateMask
  488. }
  489. return nil
  490. }
  491. type DeleteResourceRequest struct {
  492. state protoimpl.MessageState
  493. sizeCache protoimpl.SizeCache
  494. unknownFields protoimpl.UnknownFields
  495. // The name of the resource.
  496. // Format: resources/{id}
  497. // id is the system generated unique identifier.
  498. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  499. }
  500. func (x *DeleteResourceRequest) Reset() {
  501. *x = DeleteResourceRequest{}
  502. if protoimpl.UnsafeEnabled {
  503. mi := &file_api_v1_resource_service_proto_msgTypes[10]
  504. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  505. ms.StoreMessageInfo(mi)
  506. }
  507. }
  508. func (x *DeleteResourceRequest) String() string {
  509. return protoimpl.X.MessageStringOf(x)
  510. }
  511. func (*DeleteResourceRequest) ProtoMessage() {}
  512. func (x *DeleteResourceRequest) ProtoReflect() protoreflect.Message {
  513. mi := &file_api_v1_resource_service_proto_msgTypes[10]
  514. if protoimpl.UnsafeEnabled && x != nil {
  515. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  516. if ms.LoadMessageInfo() == nil {
  517. ms.StoreMessageInfo(mi)
  518. }
  519. return ms
  520. }
  521. return mi.MessageOf(x)
  522. }
  523. // Deprecated: Use DeleteResourceRequest.ProtoReflect.Descriptor instead.
  524. func (*DeleteResourceRequest) Descriptor() ([]byte, []int) {
  525. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{10}
  526. }
  527. func (x *DeleteResourceRequest) GetName() string {
  528. if x != nil {
  529. return x.Name
  530. }
  531. return ""
  532. }
  533. var File_api_v1_resource_service_proto protoreflect.FileDescriptor
  534. var file_api_v1_resource_service_proto_rawDesc = []byte{
  535. 0x0a, 0x1d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
  536. 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  537. 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67,
  538. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
  539. 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f,
  540. 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70,
  541. 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
  542. 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e,
  543. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
  544. 0x69, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x62, 0x6f, 0x64, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  545. 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  546. 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67,
  547. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66,
  548. 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
  549. 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  550. 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  551. 0x22, 0x9e, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a,
  552. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
  553. 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
  554. 0x75, 0x69, 0x64, 0x12, 0x41, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69,
  555. 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  556. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
  557. 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61,
  558. 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61,
  559. 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61,
  560. 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20,
  561. 0x01, 0x28, 0x0c, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x04, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65,
  562. 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x6c,
  563. 0x69, 0x6e, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x78, 0x74, 0x65, 0x72,
  564. 0x6e, 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
  565. 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73,
  566. 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12,
  567. 0x17, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52,
  568. 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6d, 0x65, 0x6d,
  569. 0x6f, 0x22, 0x4b, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75,
  570. 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x08, 0x72, 0x65,
  571. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d,
  572. 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f,
  573. 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x16,
  574. 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52,
  575. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4d, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
  576. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  577. 0x34, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
  578. 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
  579. 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f,
  580. 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, 0x30, 0x0a, 0x16, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52,
  581. 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
  582. 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  583. 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x4f, 0x0a, 0x17, 0x53, 0x65, 0x61, 0x72, 0x63,
  584. 0x68, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  585. 0x73, 0x65, 0x12, 0x34, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18,
  586. 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70,
  587. 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x72,
  588. 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, 0x28, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x52,
  589. 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12,
  590. 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
  591. 0x6d, 0x65, 0x22, 0x2b, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
  592. 0x65, 0x42, 0x79, 0x55, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a,
  593. 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22,
  594. 0x4a, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x69,
  595. 0x6e, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e,
  596. 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
  597. 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  598. 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x15,
  599. 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65,
  600. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
  601. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e,
  602. 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52,
  603. 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64,
  604. 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
  605. 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  606. 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61,
  607. 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x2b, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
  608. 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
  609. 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
  610. 0x61, 0x6d, 0x65, 0x32, 0x9b, 0x08, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
  611. 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x72, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74,
  612. 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x23, 0x2e, 0x6d, 0x65, 0x6d, 0x6f,
  613. 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52,
  614. 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16,
  615. 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65,
  616. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, 0x08,
  617. 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x11, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76,
  618. 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x73, 0x0a, 0x0d, 0x4c,
  619. 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x22, 0x2e, 0x6d,
  620. 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74,
  621. 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  622. 0x1a, 0x23, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
  623. 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73,
  624. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f,
  625. 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
  626. 0x12, 0x80, 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x6f, 0x75,
  627. 0x72, 0x63, 0x65, 0x73, 0x12, 0x24, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69,
  628. 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
  629. 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6d, 0x65, 0x6d,
  630. 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,
  631. 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  632. 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x61, 0x70, 0x69, 0x2f,
  633. 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61,
  634. 0x72, 0x63, 0x68, 0x12, 0x72, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
  635. 0x63, 0x65, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
  636. 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71,
  637. 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69,
  638. 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x29, 0xda, 0x41,
  639. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x61, 0x70,
  640. 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x72, 0x65, 0x73, 0x6f, 0x75,
  641. 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x52, 0x65,
  642. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x79, 0x55, 0x69, 0x64, 0x12, 0x25, 0x2e, 0x6d, 0x65,
  643. 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65,
  644. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x79, 0x55, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
  645. 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
  646. 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x2c, 0xda, 0x41, 0x03, 0x75,
  647. 0x69, 0x64, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76,
  648. 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x3a, 0x62, 0x79, 0x2d, 0x75,
  649. 0x69, 0x64, 0x2f, 0x7b, 0x75, 0x69, 0x64, 0x7d, 0x12, 0x8e, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74,
  650. 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x12, 0x26,
  651. 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
  652. 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x52,
  653. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
  654. 0x61, 0x70, 0x69, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x22, 0x3b, 0xda, 0x41,
  655. 0x0d, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3,
  656. 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
  657. 0x65, 0x3d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x7b,
  658. 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x9b, 0x01, 0x0a, 0x0e, 0x55, 0x70,
  659. 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x23, 0x2e, 0x6d,
  660. 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61,
  661. 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  662. 0x74, 0x1a, 0x16, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
  663. 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x4c, 0xda, 0x41, 0x14, 0x72, 0x65,
  664. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,
  665. 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x3a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
  666. 0x63, 0x65, 0x32, 0x23, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73,
  667. 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x72, 0x65, 0x73, 0x6f, 0x75,
  668. 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x78, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74,
  669. 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x23, 0x2e, 0x6d, 0x65, 0x6d, 0x6f,
  670. 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52,
  671. 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16,
  672. 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  673. 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x29, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82,
  674. 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x2a, 0x1a, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
  675. 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a,
  676. 0x7d, 0x42, 0xac, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e,
  677. 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
  678. 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30,
  679. 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65,
  680. 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
  681. 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31,
  682. 0xa2, 0x02, 0x03, 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41,
  683. 0x70, 0x69, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70,
  684. 0x69, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69,
  685. 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea,
  686. 0x02, 0x0e, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31,
  687. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  688. }
  689. var (
  690. file_api_v1_resource_service_proto_rawDescOnce sync.Once
  691. file_api_v1_resource_service_proto_rawDescData = file_api_v1_resource_service_proto_rawDesc
  692. )
  693. func file_api_v1_resource_service_proto_rawDescGZIP() []byte {
  694. file_api_v1_resource_service_proto_rawDescOnce.Do(func() {
  695. file_api_v1_resource_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_v1_resource_service_proto_rawDescData)
  696. })
  697. return file_api_v1_resource_service_proto_rawDescData
  698. }
  699. var file_api_v1_resource_service_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
  700. var file_api_v1_resource_service_proto_goTypes = []any{
  701. (*Resource)(nil), // 0: memos.api.v1.Resource
  702. (*CreateResourceRequest)(nil), // 1: memos.api.v1.CreateResourceRequest
  703. (*ListResourcesRequest)(nil), // 2: memos.api.v1.ListResourcesRequest
  704. (*ListResourcesResponse)(nil), // 3: memos.api.v1.ListResourcesResponse
  705. (*SearchResourcesRequest)(nil), // 4: memos.api.v1.SearchResourcesRequest
  706. (*SearchResourcesResponse)(nil), // 5: memos.api.v1.SearchResourcesResponse
  707. (*GetResourceRequest)(nil), // 6: memos.api.v1.GetResourceRequest
  708. (*GetResourceByUidRequest)(nil), // 7: memos.api.v1.GetResourceByUidRequest
  709. (*GetResourceBinaryRequest)(nil), // 8: memos.api.v1.GetResourceBinaryRequest
  710. (*UpdateResourceRequest)(nil), // 9: memos.api.v1.UpdateResourceRequest
  711. (*DeleteResourceRequest)(nil), // 10: memos.api.v1.DeleteResourceRequest
  712. (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp
  713. (*fieldmaskpb.FieldMask)(nil), // 12: google.protobuf.FieldMask
  714. (*httpbody.HttpBody)(nil), // 13: google.api.HttpBody
  715. (*emptypb.Empty)(nil), // 14: google.protobuf.Empty
  716. }
  717. var file_api_v1_resource_service_proto_depIdxs = []int32{
  718. 11, // 0: memos.api.v1.Resource.create_time:type_name -> google.protobuf.Timestamp
  719. 0, // 1: memos.api.v1.CreateResourceRequest.resource:type_name -> memos.api.v1.Resource
  720. 0, // 2: memos.api.v1.ListResourcesResponse.resources:type_name -> memos.api.v1.Resource
  721. 0, // 3: memos.api.v1.SearchResourcesResponse.resources:type_name -> memos.api.v1.Resource
  722. 0, // 4: memos.api.v1.UpdateResourceRequest.resource:type_name -> memos.api.v1.Resource
  723. 12, // 5: memos.api.v1.UpdateResourceRequest.update_mask:type_name -> google.protobuf.FieldMask
  724. 1, // 6: memos.api.v1.ResourceService.CreateResource:input_type -> memos.api.v1.CreateResourceRequest
  725. 2, // 7: memos.api.v1.ResourceService.ListResources:input_type -> memos.api.v1.ListResourcesRequest
  726. 4, // 8: memos.api.v1.ResourceService.SearchResources:input_type -> memos.api.v1.SearchResourcesRequest
  727. 6, // 9: memos.api.v1.ResourceService.GetResource:input_type -> memos.api.v1.GetResourceRequest
  728. 7, // 10: memos.api.v1.ResourceService.GetResourceByUid:input_type -> memos.api.v1.GetResourceByUidRequest
  729. 8, // 11: memos.api.v1.ResourceService.GetResourceBinary:input_type -> memos.api.v1.GetResourceBinaryRequest
  730. 9, // 12: memos.api.v1.ResourceService.UpdateResource:input_type -> memos.api.v1.UpdateResourceRequest
  731. 10, // 13: memos.api.v1.ResourceService.DeleteResource:input_type -> memos.api.v1.DeleteResourceRequest
  732. 0, // 14: memos.api.v1.ResourceService.CreateResource:output_type -> memos.api.v1.Resource
  733. 3, // 15: memos.api.v1.ResourceService.ListResources:output_type -> memos.api.v1.ListResourcesResponse
  734. 5, // 16: memos.api.v1.ResourceService.SearchResources:output_type -> memos.api.v1.SearchResourcesResponse
  735. 0, // 17: memos.api.v1.ResourceService.GetResource:output_type -> memos.api.v1.Resource
  736. 0, // 18: memos.api.v1.ResourceService.GetResourceByUid:output_type -> memos.api.v1.Resource
  737. 13, // 19: memos.api.v1.ResourceService.GetResourceBinary:output_type -> google.api.HttpBody
  738. 0, // 20: memos.api.v1.ResourceService.UpdateResource:output_type -> memos.api.v1.Resource
  739. 14, // 21: memos.api.v1.ResourceService.DeleteResource:output_type -> google.protobuf.Empty
  740. 14, // [14:22] is the sub-list for method output_type
  741. 6, // [6:14] is the sub-list for method input_type
  742. 6, // [6:6] is the sub-list for extension type_name
  743. 6, // [6:6] is the sub-list for extension extendee
  744. 0, // [0:6] is the sub-list for field type_name
  745. }
  746. func init() { file_api_v1_resource_service_proto_init() }
  747. func file_api_v1_resource_service_proto_init() {
  748. if File_api_v1_resource_service_proto != nil {
  749. return
  750. }
  751. if !protoimpl.UnsafeEnabled {
  752. file_api_v1_resource_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
  753. switch v := v.(*Resource); i {
  754. case 0:
  755. return &v.state
  756. case 1:
  757. return &v.sizeCache
  758. case 2:
  759. return &v.unknownFields
  760. default:
  761. return nil
  762. }
  763. }
  764. file_api_v1_resource_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
  765. switch v := v.(*CreateResourceRequest); i {
  766. case 0:
  767. return &v.state
  768. case 1:
  769. return &v.sizeCache
  770. case 2:
  771. return &v.unknownFields
  772. default:
  773. return nil
  774. }
  775. }
  776. file_api_v1_resource_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
  777. switch v := v.(*ListResourcesRequest); i {
  778. case 0:
  779. return &v.state
  780. case 1:
  781. return &v.sizeCache
  782. case 2:
  783. return &v.unknownFields
  784. default:
  785. return nil
  786. }
  787. }
  788. file_api_v1_resource_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
  789. switch v := v.(*ListResourcesResponse); i {
  790. case 0:
  791. return &v.state
  792. case 1:
  793. return &v.sizeCache
  794. case 2:
  795. return &v.unknownFields
  796. default:
  797. return nil
  798. }
  799. }
  800. file_api_v1_resource_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
  801. switch v := v.(*SearchResourcesRequest); i {
  802. case 0:
  803. return &v.state
  804. case 1:
  805. return &v.sizeCache
  806. case 2:
  807. return &v.unknownFields
  808. default:
  809. return nil
  810. }
  811. }
  812. file_api_v1_resource_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
  813. switch v := v.(*SearchResourcesResponse); i {
  814. case 0:
  815. return &v.state
  816. case 1:
  817. return &v.sizeCache
  818. case 2:
  819. return &v.unknownFields
  820. default:
  821. return nil
  822. }
  823. }
  824. file_api_v1_resource_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
  825. switch v := v.(*GetResourceRequest); i {
  826. case 0:
  827. return &v.state
  828. case 1:
  829. return &v.sizeCache
  830. case 2:
  831. return &v.unknownFields
  832. default:
  833. return nil
  834. }
  835. }
  836. file_api_v1_resource_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
  837. switch v := v.(*GetResourceByUidRequest); i {
  838. case 0:
  839. return &v.state
  840. case 1:
  841. return &v.sizeCache
  842. case 2:
  843. return &v.unknownFields
  844. default:
  845. return nil
  846. }
  847. }
  848. file_api_v1_resource_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
  849. switch v := v.(*GetResourceBinaryRequest); i {
  850. case 0:
  851. return &v.state
  852. case 1:
  853. return &v.sizeCache
  854. case 2:
  855. return &v.unknownFields
  856. default:
  857. return nil
  858. }
  859. }
  860. file_api_v1_resource_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
  861. switch v := v.(*UpdateResourceRequest); i {
  862. case 0:
  863. return &v.state
  864. case 1:
  865. return &v.sizeCache
  866. case 2:
  867. return &v.unknownFields
  868. default:
  869. return nil
  870. }
  871. }
  872. file_api_v1_resource_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
  873. switch v := v.(*DeleteResourceRequest); i {
  874. case 0:
  875. return &v.state
  876. case 1:
  877. return &v.sizeCache
  878. case 2:
  879. return &v.unknownFields
  880. default:
  881. return nil
  882. }
  883. }
  884. }
  885. file_api_v1_resource_service_proto_msgTypes[0].OneofWrappers = []any{}
  886. type x struct{}
  887. out := protoimpl.TypeBuilder{
  888. File: protoimpl.DescBuilder{
  889. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  890. RawDescriptor: file_api_v1_resource_service_proto_rawDesc,
  891. NumEnums: 0,
  892. NumMessages: 11,
  893. NumExtensions: 0,
  894. NumServices: 1,
  895. },
  896. GoTypes: file_api_v1_resource_service_proto_goTypes,
  897. DependencyIndexes: file_api_v1_resource_service_proto_depIdxs,
  898. MessageInfos: file_api_v1_resource_service_proto_msgTypes,
  899. }.Build()
  900. File_api_v1_resource_service_proto = out.File
  901. file_api_v1_resource_service_proto_rawDesc = nil
  902. file_api_v1_resource_service_proto_goTypes = nil
  903. file_api_v1_resource_service_proto_depIdxs = nil
  904. }