resource_service.pb.go 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.4
  4. // protoc (unknown)
  5. // source: api/v1/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. unsafe "unsafe"
  18. )
  19. const (
  20. // Verify that this generated code is sufficiently up-to-date.
  21. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  22. // Verify that runtime/protoimpl is sufficiently up-to-date.
  23. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  24. )
  25. type Resource struct {
  26. state protoimpl.MessageState `protogen:"open.v1"`
  27. // The name of the resource.
  28. // Format: resources/{resource}, resource is the user defined if or uuid.
  29. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  30. CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
  31. Filename string `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"`
  32. Content []byte `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
  33. ExternalLink string `protobuf:"bytes,6,opt,name=external_link,json=externalLink,proto3" json:"external_link,omitempty"`
  34. Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"`
  35. Size int64 `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"`
  36. // The related memo. Refer to `Memo.name`.
  37. Memo *string `protobuf:"bytes,9,opt,name=memo,proto3,oneof" json:"memo,omitempty"`
  38. unknownFields protoimpl.UnknownFields
  39. sizeCache protoimpl.SizeCache
  40. }
  41. func (x *Resource) Reset() {
  42. *x = Resource{}
  43. mi := &file_api_v1_resource_service_proto_msgTypes[0]
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. ms.StoreMessageInfo(mi)
  46. }
  47. func (x *Resource) String() string {
  48. return protoimpl.X.MessageStringOf(x)
  49. }
  50. func (*Resource) ProtoMessage() {}
  51. func (x *Resource) ProtoReflect() protoreflect.Message {
  52. mi := &file_api_v1_resource_service_proto_msgTypes[0]
  53. if x != nil {
  54. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  55. if ms.LoadMessageInfo() == nil {
  56. ms.StoreMessageInfo(mi)
  57. }
  58. return ms
  59. }
  60. return mi.MessageOf(x)
  61. }
  62. // Deprecated: Use Resource.ProtoReflect.Descriptor instead.
  63. func (*Resource) Descriptor() ([]byte, []int) {
  64. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{0}
  65. }
  66. func (x *Resource) GetName() string {
  67. if x != nil {
  68. return x.Name
  69. }
  70. return ""
  71. }
  72. func (x *Resource) GetCreateTime() *timestamppb.Timestamp {
  73. if x != nil {
  74. return x.CreateTime
  75. }
  76. return nil
  77. }
  78. func (x *Resource) GetFilename() string {
  79. if x != nil {
  80. return x.Filename
  81. }
  82. return ""
  83. }
  84. func (x *Resource) GetContent() []byte {
  85. if x != nil {
  86. return x.Content
  87. }
  88. return nil
  89. }
  90. func (x *Resource) GetExternalLink() string {
  91. if x != nil {
  92. return x.ExternalLink
  93. }
  94. return ""
  95. }
  96. func (x *Resource) GetType() string {
  97. if x != nil {
  98. return x.Type
  99. }
  100. return ""
  101. }
  102. func (x *Resource) GetSize() int64 {
  103. if x != nil {
  104. return x.Size
  105. }
  106. return 0
  107. }
  108. func (x *Resource) GetMemo() string {
  109. if x != nil && x.Memo != nil {
  110. return *x.Memo
  111. }
  112. return ""
  113. }
  114. type CreateResourceRequest struct {
  115. state protoimpl.MessageState `protogen:"open.v1"`
  116. Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
  117. unknownFields protoimpl.UnknownFields
  118. sizeCache protoimpl.SizeCache
  119. }
  120. func (x *CreateResourceRequest) Reset() {
  121. *x = CreateResourceRequest{}
  122. mi := &file_api_v1_resource_service_proto_msgTypes[1]
  123. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  124. ms.StoreMessageInfo(mi)
  125. }
  126. func (x *CreateResourceRequest) String() string {
  127. return protoimpl.X.MessageStringOf(x)
  128. }
  129. func (*CreateResourceRequest) ProtoMessage() {}
  130. func (x *CreateResourceRequest) ProtoReflect() protoreflect.Message {
  131. mi := &file_api_v1_resource_service_proto_msgTypes[1]
  132. if x != nil {
  133. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  134. if ms.LoadMessageInfo() == nil {
  135. ms.StoreMessageInfo(mi)
  136. }
  137. return ms
  138. }
  139. return mi.MessageOf(x)
  140. }
  141. // Deprecated: Use CreateResourceRequest.ProtoReflect.Descriptor instead.
  142. func (*CreateResourceRequest) Descriptor() ([]byte, []int) {
  143. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{1}
  144. }
  145. func (x *CreateResourceRequest) GetResource() *Resource {
  146. if x != nil {
  147. return x.Resource
  148. }
  149. return nil
  150. }
  151. type ListResourcesRequest struct {
  152. state protoimpl.MessageState `protogen:"open.v1"`
  153. unknownFields protoimpl.UnknownFields
  154. sizeCache protoimpl.SizeCache
  155. }
  156. func (x *ListResourcesRequest) Reset() {
  157. *x = ListResourcesRequest{}
  158. mi := &file_api_v1_resource_service_proto_msgTypes[2]
  159. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  160. ms.StoreMessageInfo(mi)
  161. }
  162. func (x *ListResourcesRequest) String() string {
  163. return protoimpl.X.MessageStringOf(x)
  164. }
  165. func (*ListResourcesRequest) ProtoMessage() {}
  166. func (x *ListResourcesRequest) ProtoReflect() protoreflect.Message {
  167. mi := &file_api_v1_resource_service_proto_msgTypes[2]
  168. if x != nil {
  169. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  170. if ms.LoadMessageInfo() == nil {
  171. ms.StoreMessageInfo(mi)
  172. }
  173. return ms
  174. }
  175. return mi.MessageOf(x)
  176. }
  177. // Deprecated: Use ListResourcesRequest.ProtoReflect.Descriptor instead.
  178. func (*ListResourcesRequest) Descriptor() ([]byte, []int) {
  179. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{2}
  180. }
  181. type ListResourcesResponse struct {
  182. state protoimpl.MessageState `protogen:"open.v1"`
  183. Resources []*Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
  184. unknownFields protoimpl.UnknownFields
  185. sizeCache protoimpl.SizeCache
  186. }
  187. func (x *ListResourcesResponse) Reset() {
  188. *x = ListResourcesResponse{}
  189. mi := &file_api_v1_resource_service_proto_msgTypes[3]
  190. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  191. ms.StoreMessageInfo(mi)
  192. }
  193. func (x *ListResourcesResponse) String() string {
  194. return protoimpl.X.MessageStringOf(x)
  195. }
  196. func (*ListResourcesResponse) ProtoMessage() {}
  197. func (x *ListResourcesResponse) ProtoReflect() protoreflect.Message {
  198. mi := &file_api_v1_resource_service_proto_msgTypes[3]
  199. if x != nil {
  200. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  201. if ms.LoadMessageInfo() == nil {
  202. ms.StoreMessageInfo(mi)
  203. }
  204. return ms
  205. }
  206. return mi.MessageOf(x)
  207. }
  208. // Deprecated: Use ListResourcesResponse.ProtoReflect.Descriptor instead.
  209. func (*ListResourcesResponse) Descriptor() ([]byte, []int) {
  210. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{3}
  211. }
  212. func (x *ListResourcesResponse) GetResources() []*Resource {
  213. if x != nil {
  214. return x.Resources
  215. }
  216. return nil
  217. }
  218. type GetResourceRequest struct {
  219. state protoimpl.MessageState `protogen:"open.v1"`
  220. // The name of the resource.
  221. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  222. unknownFields protoimpl.UnknownFields
  223. sizeCache protoimpl.SizeCache
  224. }
  225. func (x *GetResourceRequest) Reset() {
  226. *x = GetResourceRequest{}
  227. mi := &file_api_v1_resource_service_proto_msgTypes[4]
  228. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  229. ms.StoreMessageInfo(mi)
  230. }
  231. func (x *GetResourceRequest) String() string {
  232. return protoimpl.X.MessageStringOf(x)
  233. }
  234. func (*GetResourceRequest) ProtoMessage() {}
  235. func (x *GetResourceRequest) ProtoReflect() protoreflect.Message {
  236. mi := &file_api_v1_resource_service_proto_msgTypes[4]
  237. if x != nil {
  238. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  239. if ms.LoadMessageInfo() == nil {
  240. ms.StoreMessageInfo(mi)
  241. }
  242. return ms
  243. }
  244. return mi.MessageOf(x)
  245. }
  246. // Deprecated: Use GetResourceRequest.ProtoReflect.Descriptor instead.
  247. func (*GetResourceRequest) Descriptor() ([]byte, []int) {
  248. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{4}
  249. }
  250. func (x *GetResourceRequest) GetName() string {
  251. if x != nil {
  252. return x.Name
  253. }
  254. return ""
  255. }
  256. type GetResourceBinaryRequest struct {
  257. state protoimpl.MessageState `protogen:"open.v1"`
  258. // The name of the resource.
  259. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  260. // The filename of the resource. Mainly used for downloading.
  261. Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
  262. // A flag indicating if the thumbnail version of the resource should be returned
  263. Thumbnail bool `protobuf:"varint,3,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"`
  264. unknownFields protoimpl.UnknownFields
  265. sizeCache protoimpl.SizeCache
  266. }
  267. func (x *GetResourceBinaryRequest) Reset() {
  268. *x = GetResourceBinaryRequest{}
  269. mi := &file_api_v1_resource_service_proto_msgTypes[5]
  270. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  271. ms.StoreMessageInfo(mi)
  272. }
  273. func (x *GetResourceBinaryRequest) String() string {
  274. return protoimpl.X.MessageStringOf(x)
  275. }
  276. func (*GetResourceBinaryRequest) ProtoMessage() {}
  277. func (x *GetResourceBinaryRequest) ProtoReflect() protoreflect.Message {
  278. mi := &file_api_v1_resource_service_proto_msgTypes[5]
  279. if x != nil {
  280. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  281. if ms.LoadMessageInfo() == nil {
  282. ms.StoreMessageInfo(mi)
  283. }
  284. return ms
  285. }
  286. return mi.MessageOf(x)
  287. }
  288. // Deprecated: Use GetResourceBinaryRequest.ProtoReflect.Descriptor instead.
  289. func (*GetResourceBinaryRequest) Descriptor() ([]byte, []int) {
  290. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{5}
  291. }
  292. func (x *GetResourceBinaryRequest) GetName() string {
  293. if x != nil {
  294. return x.Name
  295. }
  296. return ""
  297. }
  298. func (x *GetResourceBinaryRequest) GetFilename() string {
  299. if x != nil {
  300. return x.Filename
  301. }
  302. return ""
  303. }
  304. func (x *GetResourceBinaryRequest) GetThumbnail() bool {
  305. if x != nil {
  306. return x.Thumbnail
  307. }
  308. return false
  309. }
  310. type UpdateResourceRequest struct {
  311. state protoimpl.MessageState `protogen:"open.v1"`
  312. Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
  313. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
  314. unknownFields protoimpl.UnknownFields
  315. sizeCache protoimpl.SizeCache
  316. }
  317. func (x *UpdateResourceRequest) Reset() {
  318. *x = UpdateResourceRequest{}
  319. mi := &file_api_v1_resource_service_proto_msgTypes[6]
  320. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  321. ms.StoreMessageInfo(mi)
  322. }
  323. func (x *UpdateResourceRequest) String() string {
  324. return protoimpl.X.MessageStringOf(x)
  325. }
  326. func (*UpdateResourceRequest) ProtoMessage() {}
  327. func (x *UpdateResourceRequest) ProtoReflect() protoreflect.Message {
  328. mi := &file_api_v1_resource_service_proto_msgTypes[6]
  329. if x != nil {
  330. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  331. if ms.LoadMessageInfo() == nil {
  332. ms.StoreMessageInfo(mi)
  333. }
  334. return ms
  335. }
  336. return mi.MessageOf(x)
  337. }
  338. // Deprecated: Use UpdateResourceRequest.ProtoReflect.Descriptor instead.
  339. func (*UpdateResourceRequest) Descriptor() ([]byte, []int) {
  340. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{6}
  341. }
  342. func (x *UpdateResourceRequest) GetResource() *Resource {
  343. if x != nil {
  344. return x.Resource
  345. }
  346. return nil
  347. }
  348. func (x *UpdateResourceRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
  349. if x != nil {
  350. return x.UpdateMask
  351. }
  352. return nil
  353. }
  354. type DeleteResourceRequest struct {
  355. state protoimpl.MessageState `protogen:"open.v1"`
  356. // The name of the resource.
  357. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  358. unknownFields protoimpl.UnknownFields
  359. sizeCache protoimpl.SizeCache
  360. }
  361. func (x *DeleteResourceRequest) Reset() {
  362. *x = DeleteResourceRequest{}
  363. mi := &file_api_v1_resource_service_proto_msgTypes[7]
  364. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  365. ms.StoreMessageInfo(mi)
  366. }
  367. func (x *DeleteResourceRequest) String() string {
  368. return protoimpl.X.MessageStringOf(x)
  369. }
  370. func (*DeleteResourceRequest) ProtoMessage() {}
  371. func (x *DeleteResourceRequest) ProtoReflect() protoreflect.Message {
  372. mi := &file_api_v1_resource_service_proto_msgTypes[7]
  373. if x != nil {
  374. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  375. if ms.LoadMessageInfo() == nil {
  376. ms.StoreMessageInfo(mi)
  377. }
  378. return ms
  379. }
  380. return mi.MessageOf(x)
  381. }
  382. // Deprecated: Use DeleteResourceRequest.ProtoReflect.Descriptor instead.
  383. func (*DeleteResourceRequest) Descriptor() ([]byte, []int) {
  384. return file_api_v1_resource_service_proto_rawDescGZIP(), []int{7}
  385. }
  386. func (x *DeleteResourceRequest) GetName() string {
  387. if x != nil {
  388. return x.Name
  389. }
  390. return ""
  391. }
  392. var File_api_v1_resource_service_proto protoreflect.FileDescriptor
  393. var file_api_v1_resource_service_proto_rawDesc = string([]byte{
  394. 0x0a, 0x1d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
  395. 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  396. 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67,
  397. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
  398. 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f,
  399. 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70,
  400. 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
  401. 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e,
  402. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
  403. 0x69, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x62, 0x6f, 0x64, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  404. 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  405. 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67,
  406. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66,
  407. 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
  408. 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  409. 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  410. 0x22, 0x92, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a,
  411. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
  412. 0x65, 0x12, 0x41, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65,
  413. 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
  414. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
  415. 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
  416. 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65,
  417. 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65,
  418. 0x12, 0x1e, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28,
  419. 0x0c, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x04, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
  420. 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x6c, 0x69, 0x6e,
  421. 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61,
  422. 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20,
  423. 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a,
  424. 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x17, 0x0a,
  425. 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x6d,
  426. 0x65, 0x6d, 0x6f, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6d, 0x65, 0x6d, 0x6f, 0x4a,
  427. 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0x4b, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52,
  428. 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32,
  429. 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
  430. 0x32, 0x16, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
  431. 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
  432. 0x63, 0x65, 0x22, 0x16, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
  433. 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4d, 0x0a, 0x15, 0x4c, 0x69,
  434. 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
  435. 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
  436. 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61,
  437. 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09,
  438. 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, 0x28, 0x0a, 0x12, 0x47, 0x65, 0x74,
  439. 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
  440. 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
  441. 0x61, 0x6d, 0x65, 0x22, 0x68, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
  442. 0x63, 0x65, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
  443. 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
  444. 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18,
  445. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12,
  446. 0x1c, 0x0a, 0x09, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01,
  447. 0x28, 0x08, 0x52, 0x09, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x22, 0x88, 0x01,
  448. 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
  449. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75,
  450. 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x65, 0x6d, 0x6f,
  451. 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
  452. 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75,
  453. 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  454. 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  455. 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70,
  456. 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x2b, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65,
  457. 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  458. 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  459. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x32, 0x97, 0x06, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
  460. 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x72, 0x0a, 0x0e, 0x43, 0x72, 0x65,
  461. 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x23, 0x2e, 0x6d, 0x65,
  462. 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
  463. 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  464. 0x1a, 0x16, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
  465. 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d,
  466. 0x3a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x11, 0x2f, 0x61, 0x70, 0x69,
  467. 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x73, 0x0a,
  468. 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x22,
  469. 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,
  470. 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
  471. 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
  472. 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52,
  473. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12,
  474. 0x11, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
  475. 0x65, 0x73, 0x12, 0x72, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
  476. 0x65, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
  477. 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75,
  478. 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  479. 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x29, 0xda, 0x41, 0x04,
  480. 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x61, 0x70, 0x69,
  481. 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
  482. 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x8e, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x52, 0x65,
  483. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x12, 0x26, 0x2e, 0x6d,
  484. 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52,
  485. 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71,
  486. 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70,
  487. 0x69, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x22, 0x3b, 0xda, 0x41, 0x0d, 0x6e,
  488. 0x61, 0x6d, 0x65, 0x2c, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93,
  489. 0x02, 0x25, 0x12, 0x23, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
  490. 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x7b, 0x66, 0x69,
  491. 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x9b, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61,
  492. 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x23, 0x2e, 0x6d, 0x65, 0x6d,
  493. 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
  494. 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  495. 0x16, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52,
  496. 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x4c, 0xda, 0x41, 0x14, 0x72, 0x65, 0x73, 0x6f,
  497. 0x75, 0x72, 0x63, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b,
  498. 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x3a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
  499. 0x32, 0x23, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75,
  500. 0x72, 0x63, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
  501. 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x78, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52,
  502. 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x23, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e,
  503. 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73,
  504. 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67,
  505. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45,
  506. 0x6d, 0x70, 0x74, 0x79, 0x22, 0x29, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4,
  507. 0x93, 0x02, 0x1c, 0x2a, 0x1a, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,
  508. 0x6d, 0x65, 0x3d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x42,
  509. 0xac, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70,
  510. 0x69, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x65,
  511. 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69,
  512. 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f,
  513. 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65,
  514. 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2, 0x02,
  515. 0x03, 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69,
  516. 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c,
  517. 0x56, 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56,
  518. 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e,
  519. 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06,
  520. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  521. })
  522. var (
  523. file_api_v1_resource_service_proto_rawDescOnce sync.Once
  524. file_api_v1_resource_service_proto_rawDescData []byte
  525. )
  526. func file_api_v1_resource_service_proto_rawDescGZIP() []byte {
  527. file_api_v1_resource_service_proto_rawDescOnce.Do(func() {
  528. file_api_v1_resource_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_v1_resource_service_proto_rawDesc), len(file_api_v1_resource_service_proto_rawDesc)))
  529. })
  530. return file_api_v1_resource_service_proto_rawDescData
  531. }
  532. var file_api_v1_resource_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
  533. var file_api_v1_resource_service_proto_goTypes = []any{
  534. (*Resource)(nil), // 0: memos.api.v1.Resource
  535. (*CreateResourceRequest)(nil), // 1: memos.api.v1.CreateResourceRequest
  536. (*ListResourcesRequest)(nil), // 2: memos.api.v1.ListResourcesRequest
  537. (*ListResourcesResponse)(nil), // 3: memos.api.v1.ListResourcesResponse
  538. (*GetResourceRequest)(nil), // 4: memos.api.v1.GetResourceRequest
  539. (*GetResourceBinaryRequest)(nil), // 5: memos.api.v1.GetResourceBinaryRequest
  540. (*UpdateResourceRequest)(nil), // 6: memos.api.v1.UpdateResourceRequest
  541. (*DeleteResourceRequest)(nil), // 7: memos.api.v1.DeleteResourceRequest
  542. (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp
  543. (*fieldmaskpb.FieldMask)(nil), // 9: google.protobuf.FieldMask
  544. (*httpbody.HttpBody)(nil), // 10: google.api.HttpBody
  545. (*emptypb.Empty)(nil), // 11: google.protobuf.Empty
  546. }
  547. var file_api_v1_resource_service_proto_depIdxs = []int32{
  548. 8, // 0: memos.api.v1.Resource.create_time:type_name -> google.protobuf.Timestamp
  549. 0, // 1: memos.api.v1.CreateResourceRequest.resource:type_name -> memos.api.v1.Resource
  550. 0, // 2: memos.api.v1.ListResourcesResponse.resources:type_name -> memos.api.v1.Resource
  551. 0, // 3: memos.api.v1.UpdateResourceRequest.resource:type_name -> memos.api.v1.Resource
  552. 9, // 4: memos.api.v1.UpdateResourceRequest.update_mask:type_name -> google.protobuf.FieldMask
  553. 1, // 5: memos.api.v1.ResourceService.CreateResource:input_type -> memos.api.v1.CreateResourceRequest
  554. 2, // 6: memos.api.v1.ResourceService.ListResources:input_type -> memos.api.v1.ListResourcesRequest
  555. 4, // 7: memos.api.v1.ResourceService.GetResource:input_type -> memos.api.v1.GetResourceRequest
  556. 5, // 8: memos.api.v1.ResourceService.GetResourceBinary:input_type -> memos.api.v1.GetResourceBinaryRequest
  557. 6, // 9: memos.api.v1.ResourceService.UpdateResource:input_type -> memos.api.v1.UpdateResourceRequest
  558. 7, // 10: memos.api.v1.ResourceService.DeleteResource:input_type -> memos.api.v1.DeleteResourceRequest
  559. 0, // 11: memos.api.v1.ResourceService.CreateResource:output_type -> memos.api.v1.Resource
  560. 3, // 12: memos.api.v1.ResourceService.ListResources:output_type -> memos.api.v1.ListResourcesResponse
  561. 0, // 13: memos.api.v1.ResourceService.GetResource:output_type -> memos.api.v1.Resource
  562. 10, // 14: memos.api.v1.ResourceService.GetResourceBinary:output_type -> google.api.HttpBody
  563. 0, // 15: memos.api.v1.ResourceService.UpdateResource:output_type -> memos.api.v1.Resource
  564. 11, // 16: memos.api.v1.ResourceService.DeleteResource:output_type -> google.protobuf.Empty
  565. 11, // [11:17] is the sub-list for method output_type
  566. 5, // [5:11] is the sub-list for method input_type
  567. 5, // [5:5] is the sub-list for extension type_name
  568. 5, // [5:5] is the sub-list for extension extendee
  569. 0, // [0:5] is the sub-list for field type_name
  570. }
  571. func init() { file_api_v1_resource_service_proto_init() }
  572. func file_api_v1_resource_service_proto_init() {
  573. if File_api_v1_resource_service_proto != nil {
  574. return
  575. }
  576. file_api_v1_resource_service_proto_msgTypes[0].OneofWrappers = []any{}
  577. type x struct{}
  578. out := protoimpl.TypeBuilder{
  579. File: protoimpl.DescBuilder{
  580. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  581. RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_v1_resource_service_proto_rawDesc), len(file_api_v1_resource_service_proto_rawDesc)),
  582. NumEnums: 0,
  583. NumMessages: 8,
  584. NumExtensions: 0,
  585. NumServices: 1,
  586. },
  587. GoTypes: file_api_v1_resource_service_proto_goTypes,
  588. DependencyIndexes: file_api_v1_resource_service_proto_depIdxs,
  589. MessageInfos: file_api_v1_resource_service_proto_msgTypes,
  590. }.Build()
  591. File_api_v1_resource_service_proto = out.File
  592. file_api_v1_resource_service_proto_goTypes = nil
  593. file_api_v1_resource_service_proto_depIdxs = nil
  594. }