inbox_service.pb.go 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  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/inbox_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. timestamppb "google.golang.org/protobuf/types/known/timestamppb"
  14. reflect "reflect"
  15. sync "sync"
  16. unsafe "unsafe"
  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 Inbox_Status int32
  25. const (
  26. Inbox_STATUS_UNSPECIFIED Inbox_Status = 0
  27. Inbox_UNREAD Inbox_Status = 1
  28. Inbox_ARCHIVED Inbox_Status = 2
  29. )
  30. // Enum value maps for Inbox_Status.
  31. var (
  32. Inbox_Status_name = map[int32]string{
  33. 0: "STATUS_UNSPECIFIED",
  34. 1: "UNREAD",
  35. 2: "ARCHIVED",
  36. }
  37. Inbox_Status_value = map[string]int32{
  38. "STATUS_UNSPECIFIED": 0,
  39. "UNREAD": 1,
  40. "ARCHIVED": 2,
  41. }
  42. )
  43. func (x Inbox_Status) Enum() *Inbox_Status {
  44. p := new(Inbox_Status)
  45. *p = x
  46. return p
  47. }
  48. func (x Inbox_Status) String() string {
  49. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  50. }
  51. func (Inbox_Status) Descriptor() protoreflect.EnumDescriptor {
  52. return file_api_v1_inbox_service_proto_enumTypes[0].Descriptor()
  53. }
  54. func (Inbox_Status) Type() protoreflect.EnumType {
  55. return &file_api_v1_inbox_service_proto_enumTypes[0]
  56. }
  57. func (x Inbox_Status) Number() protoreflect.EnumNumber {
  58. return protoreflect.EnumNumber(x)
  59. }
  60. // Deprecated: Use Inbox_Status.Descriptor instead.
  61. func (Inbox_Status) EnumDescriptor() ([]byte, []int) {
  62. return file_api_v1_inbox_service_proto_rawDescGZIP(), []int{0, 0}
  63. }
  64. type Inbox_Type int32
  65. const (
  66. Inbox_TYPE_UNSPECIFIED Inbox_Type = 0
  67. Inbox_MEMO_COMMENT Inbox_Type = 1
  68. Inbox_VERSION_UPDATE Inbox_Type = 2
  69. )
  70. // Enum value maps for Inbox_Type.
  71. var (
  72. Inbox_Type_name = map[int32]string{
  73. 0: "TYPE_UNSPECIFIED",
  74. 1: "MEMO_COMMENT",
  75. 2: "VERSION_UPDATE",
  76. }
  77. Inbox_Type_value = map[string]int32{
  78. "TYPE_UNSPECIFIED": 0,
  79. "MEMO_COMMENT": 1,
  80. "VERSION_UPDATE": 2,
  81. }
  82. )
  83. func (x Inbox_Type) Enum() *Inbox_Type {
  84. p := new(Inbox_Type)
  85. *p = x
  86. return p
  87. }
  88. func (x Inbox_Type) String() string {
  89. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  90. }
  91. func (Inbox_Type) Descriptor() protoreflect.EnumDescriptor {
  92. return file_api_v1_inbox_service_proto_enumTypes[1].Descriptor()
  93. }
  94. func (Inbox_Type) Type() protoreflect.EnumType {
  95. return &file_api_v1_inbox_service_proto_enumTypes[1]
  96. }
  97. func (x Inbox_Type) Number() protoreflect.EnumNumber {
  98. return protoreflect.EnumNumber(x)
  99. }
  100. // Deprecated: Use Inbox_Type.Descriptor instead.
  101. func (Inbox_Type) EnumDescriptor() ([]byte, []int) {
  102. return file_api_v1_inbox_service_proto_rawDescGZIP(), []int{0, 1}
  103. }
  104. type Inbox struct {
  105. state protoimpl.MessageState `protogen:"open.v1"`
  106. // The name of the inbox.
  107. // Format: inboxes/{id}, id is the system generated auto-incremented id.
  108. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  109. // Format: users/{user}
  110. Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
  111. // Format: users/{user}
  112. Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"`
  113. Status Inbox_Status `protobuf:"varint,4,opt,name=status,proto3,enum=memos.api.v1.Inbox_Status" json:"status,omitempty"`
  114. CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
  115. Type Inbox_Type `protobuf:"varint,6,opt,name=type,proto3,enum=memos.api.v1.Inbox_Type" json:"type,omitempty"`
  116. ActivityId *int32 `protobuf:"varint,7,opt,name=activity_id,json=activityId,proto3,oneof" json:"activity_id,omitempty"`
  117. unknownFields protoimpl.UnknownFields
  118. sizeCache protoimpl.SizeCache
  119. }
  120. func (x *Inbox) Reset() {
  121. *x = Inbox{}
  122. mi := &file_api_v1_inbox_service_proto_msgTypes[0]
  123. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  124. ms.StoreMessageInfo(mi)
  125. }
  126. func (x *Inbox) String() string {
  127. return protoimpl.X.MessageStringOf(x)
  128. }
  129. func (*Inbox) ProtoMessage() {}
  130. func (x *Inbox) ProtoReflect() protoreflect.Message {
  131. mi := &file_api_v1_inbox_service_proto_msgTypes[0]
  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 Inbox.ProtoReflect.Descriptor instead.
  142. func (*Inbox) Descriptor() ([]byte, []int) {
  143. return file_api_v1_inbox_service_proto_rawDescGZIP(), []int{0}
  144. }
  145. func (x *Inbox) GetName() string {
  146. if x != nil {
  147. return x.Name
  148. }
  149. return ""
  150. }
  151. func (x *Inbox) GetSender() string {
  152. if x != nil {
  153. return x.Sender
  154. }
  155. return ""
  156. }
  157. func (x *Inbox) GetReceiver() string {
  158. if x != nil {
  159. return x.Receiver
  160. }
  161. return ""
  162. }
  163. func (x *Inbox) GetStatus() Inbox_Status {
  164. if x != nil {
  165. return x.Status
  166. }
  167. return Inbox_STATUS_UNSPECIFIED
  168. }
  169. func (x *Inbox) GetCreateTime() *timestamppb.Timestamp {
  170. if x != nil {
  171. return x.CreateTime
  172. }
  173. return nil
  174. }
  175. func (x *Inbox) GetType() Inbox_Type {
  176. if x != nil {
  177. return x.Type
  178. }
  179. return Inbox_TYPE_UNSPECIFIED
  180. }
  181. func (x *Inbox) GetActivityId() int32 {
  182. if x != nil && x.ActivityId != nil {
  183. return *x.ActivityId
  184. }
  185. return 0
  186. }
  187. type ListInboxesRequest struct {
  188. state protoimpl.MessageState `protogen:"open.v1"`
  189. // Format: users/{user}
  190. User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
  191. // The maximum number of inbox to return.
  192. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  193. // Provide this to retrieve the subsequent page.
  194. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
  195. unknownFields protoimpl.UnknownFields
  196. sizeCache protoimpl.SizeCache
  197. }
  198. func (x *ListInboxesRequest) Reset() {
  199. *x = ListInboxesRequest{}
  200. mi := &file_api_v1_inbox_service_proto_msgTypes[1]
  201. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  202. ms.StoreMessageInfo(mi)
  203. }
  204. func (x *ListInboxesRequest) String() string {
  205. return protoimpl.X.MessageStringOf(x)
  206. }
  207. func (*ListInboxesRequest) ProtoMessage() {}
  208. func (x *ListInboxesRequest) ProtoReflect() protoreflect.Message {
  209. mi := &file_api_v1_inbox_service_proto_msgTypes[1]
  210. if x != nil {
  211. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  212. if ms.LoadMessageInfo() == nil {
  213. ms.StoreMessageInfo(mi)
  214. }
  215. return ms
  216. }
  217. return mi.MessageOf(x)
  218. }
  219. // Deprecated: Use ListInboxesRequest.ProtoReflect.Descriptor instead.
  220. func (*ListInboxesRequest) Descriptor() ([]byte, []int) {
  221. return file_api_v1_inbox_service_proto_rawDescGZIP(), []int{1}
  222. }
  223. func (x *ListInboxesRequest) GetUser() string {
  224. if x != nil {
  225. return x.User
  226. }
  227. return ""
  228. }
  229. func (x *ListInboxesRequest) GetPageSize() int32 {
  230. if x != nil {
  231. return x.PageSize
  232. }
  233. return 0
  234. }
  235. func (x *ListInboxesRequest) GetPageToken() string {
  236. if x != nil {
  237. return x.PageToken
  238. }
  239. return ""
  240. }
  241. type ListInboxesResponse struct {
  242. state protoimpl.MessageState `protogen:"open.v1"`
  243. Inboxes []*Inbox `protobuf:"bytes,1,rep,name=inboxes,proto3" json:"inboxes,omitempty"`
  244. // A token, which can be sent as `page_token` to retrieve the next page.
  245. // If this field is omitted, there are no subsequent pages.
  246. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
  247. unknownFields protoimpl.UnknownFields
  248. sizeCache protoimpl.SizeCache
  249. }
  250. func (x *ListInboxesResponse) Reset() {
  251. *x = ListInboxesResponse{}
  252. mi := &file_api_v1_inbox_service_proto_msgTypes[2]
  253. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  254. ms.StoreMessageInfo(mi)
  255. }
  256. func (x *ListInboxesResponse) String() string {
  257. return protoimpl.X.MessageStringOf(x)
  258. }
  259. func (*ListInboxesResponse) ProtoMessage() {}
  260. func (x *ListInboxesResponse) ProtoReflect() protoreflect.Message {
  261. mi := &file_api_v1_inbox_service_proto_msgTypes[2]
  262. if 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 ListInboxesResponse.ProtoReflect.Descriptor instead.
  272. func (*ListInboxesResponse) Descriptor() ([]byte, []int) {
  273. return file_api_v1_inbox_service_proto_rawDescGZIP(), []int{2}
  274. }
  275. func (x *ListInboxesResponse) GetInboxes() []*Inbox {
  276. if x != nil {
  277. return x.Inboxes
  278. }
  279. return nil
  280. }
  281. func (x *ListInboxesResponse) GetNextPageToken() string {
  282. if x != nil {
  283. return x.NextPageToken
  284. }
  285. return ""
  286. }
  287. type UpdateInboxRequest struct {
  288. state protoimpl.MessageState `protogen:"open.v1"`
  289. Inbox *Inbox `protobuf:"bytes,1,opt,name=inbox,proto3" json:"inbox,omitempty"`
  290. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
  291. unknownFields protoimpl.UnknownFields
  292. sizeCache protoimpl.SizeCache
  293. }
  294. func (x *UpdateInboxRequest) Reset() {
  295. *x = UpdateInboxRequest{}
  296. mi := &file_api_v1_inbox_service_proto_msgTypes[3]
  297. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  298. ms.StoreMessageInfo(mi)
  299. }
  300. func (x *UpdateInboxRequest) String() string {
  301. return protoimpl.X.MessageStringOf(x)
  302. }
  303. func (*UpdateInboxRequest) ProtoMessage() {}
  304. func (x *UpdateInboxRequest) ProtoReflect() protoreflect.Message {
  305. mi := &file_api_v1_inbox_service_proto_msgTypes[3]
  306. if x != nil {
  307. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  308. if ms.LoadMessageInfo() == nil {
  309. ms.StoreMessageInfo(mi)
  310. }
  311. return ms
  312. }
  313. return mi.MessageOf(x)
  314. }
  315. // Deprecated: Use UpdateInboxRequest.ProtoReflect.Descriptor instead.
  316. func (*UpdateInboxRequest) Descriptor() ([]byte, []int) {
  317. return file_api_v1_inbox_service_proto_rawDescGZIP(), []int{3}
  318. }
  319. func (x *UpdateInboxRequest) GetInbox() *Inbox {
  320. if x != nil {
  321. return x.Inbox
  322. }
  323. return nil
  324. }
  325. func (x *UpdateInboxRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
  326. if x != nil {
  327. return x.UpdateMask
  328. }
  329. return nil
  330. }
  331. type DeleteInboxRequest struct {
  332. state protoimpl.MessageState `protogen:"open.v1"`
  333. // The name of the inbox to delete.
  334. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  335. unknownFields protoimpl.UnknownFields
  336. sizeCache protoimpl.SizeCache
  337. }
  338. func (x *DeleteInboxRequest) Reset() {
  339. *x = DeleteInboxRequest{}
  340. mi := &file_api_v1_inbox_service_proto_msgTypes[4]
  341. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  342. ms.StoreMessageInfo(mi)
  343. }
  344. func (x *DeleteInboxRequest) String() string {
  345. return protoimpl.X.MessageStringOf(x)
  346. }
  347. func (*DeleteInboxRequest) ProtoMessage() {}
  348. func (x *DeleteInboxRequest) ProtoReflect() protoreflect.Message {
  349. mi := &file_api_v1_inbox_service_proto_msgTypes[4]
  350. if x != nil {
  351. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  352. if ms.LoadMessageInfo() == nil {
  353. ms.StoreMessageInfo(mi)
  354. }
  355. return ms
  356. }
  357. return mi.MessageOf(x)
  358. }
  359. // Deprecated: Use DeleteInboxRequest.ProtoReflect.Descriptor instead.
  360. func (*DeleteInboxRequest) Descriptor() ([]byte, []int) {
  361. return file_api_v1_inbox_service_proto_rawDescGZIP(), []int{4}
  362. }
  363. func (x *DeleteInboxRequest) GetName() string {
  364. if x != nil {
  365. return x.Name
  366. }
  367. return ""
  368. }
  369. var File_api_v1_inbox_service_proto protoreflect.FileDescriptor
  370. var file_api_v1_inbox_service_proto_rawDesc = string([]byte{
  371. 0x0a, 0x1a, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x5f, 0x73,
  372. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6d, 0x65,
  373. 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67,
  374. 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
  375. 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  376. 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  377. 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  378. 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20,
  379. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
  380. 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  381. 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  382. 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  383. 0x6f, 0x22, 0xa4, 0x03, 0x0a, 0x05, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x6e,
  384. 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
  385. 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  386. 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69,
  387. 0x76, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69,
  388. 0x76, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20,
  389. 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  390. 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
  391. 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74,
  392. 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
  393. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
  394. 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
  395. 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01,
  396. 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
  397. 0x31, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79,
  398. 0x70, 0x65, 0x12, 0x24, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x69,
  399. 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76,
  400. 0x69, 0x74, 0x79, 0x49, 0x64, 0x88, 0x01, 0x01, 0x22, 0x3a, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74,
  401. 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53,
  402. 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x4e,
  403. 0x52, 0x45, 0x41, 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x52, 0x43, 0x48, 0x49, 0x56,
  404. 0x45, 0x44, 0x10, 0x02, 0x22, 0x42, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10,
  405. 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
  406. 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x4d, 0x45, 0x4d, 0x4f, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x45,
  407. 0x4e, 0x54, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f,
  408. 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x02, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x61, 0x63, 0x74,
  409. 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x22, 0x64, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74,
  410. 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12,
  411. 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73,
  412. 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18,
  413. 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12,
  414. 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20,
  415. 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6c,
  416. 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x65, 0x73, 0x52, 0x65, 0x73,
  417. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x65, 0x73,
  418. 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61,
  419. 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x52, 0x07, 0x69, 0x6e, 0x62,
  420. 0x6f, 0x78, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67,
  421. 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e,
  422. 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x7c, 0x0a, 0x12,
  423. 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65,
  424. 0x73, 0x74, 0x12, 0x29, 0x0a, 0x05, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28,
  425. 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
  426. 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x52, 0x05, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x12, 0x3b, 0x0a,
  427. 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01,
  428. 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  429. 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a,
  430. 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x28, 0x0a, 0x12, 0x44, 0x65,
  431. 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  432. 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
  433. 0x6e, 0x61, 0x6d, 0x65, 0x32, 0xf7, 0x02, 0x0a, 0x0c, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x53, 0x65,
  434. 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6b, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x62,
  435. 0x6f, 0x78, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69,
  436. 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x65, 0x73, 0x52,
  437. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61,
  438. 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x65,
  439. 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x17, 0x82, 0xd3, 0xe4, 0x93, 0x02,
  440. 0x11, 0x12, 0x0f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x78,
  441. 0x65, 0x73, 0x12, 0x87, 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x62,
  442. 0x6f, 0x78, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
  443. 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x52, 0x65, 0x71,
  444. 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69,
  445. 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x22, 0x41, 0xda, 0x41, 0x11, 0x69, 0x6e,
  446. 0x62, 0x6f, 0x78, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82,
  447. 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x3a, 0x05, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x32, 0x1e, 0x2f, 0x61,
  448. 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x2e, 0x6e, 0x61, 0x6d,
  449. 0x65, 0x3d, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x70, 0x0a, 0x0b,
  450. 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x12, 0x20, 0x2e, 0x6d, 0x65,
  451. 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74,
  452. 0x65, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,
  453. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
  454. 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x27, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3,
  455. 0xe4, 0x93, 0x02, 0x1a, 0x2a, 0x18, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,
  456. 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0xa9,
  457. 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69,
  458. 0x2e, 0x76, 0x31, 0x42, 0x11, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
  459. 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
  460. 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65,
  461. 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70,
  462. 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x41, 0x58,
  463. 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x56, 0x31, 0xca,
  464. 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0xe2, 0x02,
  465. 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50,
  466. 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x4d, 0x65, 0x6d, 0x6f,
  467. 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  468. 0x6f, 0x33,
  469. })
  470. var (
  471. file_api_v1_inbox_service_proto_rawDescOnce sync.Once
  472. file_api_v1_inbox_service_proto_rawDescData []byte
  473. )
  474. func file_api_v1_inbox_service_proto_rawDescGZIP() []byte {
  475. file_api_v1_inbox_service_proto_rawDescOnce.Do(func() {
  476. file_api_v1_inbox_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_v1_inbox_service_proto_rawDesc), len(file_api_v1_inbox_service_proto_rawDesc)))
  477. })
  478. return file_api_v1_inbox_service_proto_rawDescData
  479. }
  480. var file_api_v1_inbox_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  481. var file_api_v1_inbox_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  482. var file_api_v1_inbox_service_proto_goTypes = []any{
  483. (Inbox_Status)(0), // 0: memos.api.v1.Inbox.Status
  484. (Inbox_Type)(0), // 1: memos.api.v1.Inbox.Type
  485. (*Inbox)(nil), // 2: memos.api.v1.Inbox
  486. (*ListInboxesRequest)(nil), // 3: memos.api.v1.ListInboxesRequest
  487. (*ListInboxesResponse)(nil), // 4: memos.api.v1.ListInboxesResponse
  488. (*UpdateInboxRequest)(nil), // 5: memos.api.v1.UpdateInboxRequest
  489. (*DeleteInboxRequest)(nil), // 6: memos.api.v1.DeleteInboxRequest
  490. (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp
  491. (*fieldmaskpb.FieldMask)(nil), // 8: google.protobuf.FieldMask
  492. (*emptypb.Empty)(nil), // 9: google.protobuf.Empty
  493. }
  494. var file_api_v1_inbox_service_proto_depIdxs = []int32{
  495. 0, // 0: memos.api.v1.Inbox.status:type_name -> memos.api.v1.Inbox.Status
  496. 7, // 1: memos.api.v1.Inbox.create_time:type_name -> google.protobuf.Timestamp
  497. 1, // 2: memos.api.v1.Inbox.type:type_name -> memos.api.v1.Inbox.Type
  498. 2, // 3: memos.api.v1.ListInboxesResponse.inboxes:type_name -> memos.api.v1.Inbox
  499. 2, // 4: memos.api.v1.UpdateInboxRequest.inbox:type_name -> memos.api.v1.Inbox
  500. 8, // 5: memos.api.v1.UpdateInboxRequest.update_mask:type_name -> google.protobuf.FieldMask
  501. 3, // 6: memos.api.v1.InboxService.ListInboxes:input_type -> memos.api.v1.ListInboxesRequest
  502. 5, // 7: memos.api.v1.InboxService.UpdateInbox:input_type -> memos.api.v1.UpdateInboxRequest
  503. 6, // 8: memos.api.v1.InboxService.DeleteInbox:input_type -> memos.api.v1.DeleteInboxRequest
  504. 4, // 9: memos.api.v1.InboxService.ListInboxes:output_type -> memos.api.v1.ListInboxesResponse
  505. 2, // 10: memos.api.v1.InboxService.UpdateInbox:output_type -> memos.api.v1.Inbox
  506. 9, // 11: memos.api.v1.InboxService.DeleteInbox:output_type -> google.protobuf.Empty
  507. 9, // [9:12] is the sub-list for method output_type
  508. 6, // [6:9] is the sub-list for method input_type
  509. 6, // [6:6] is the sub-list for extension type_name
  510. 6, // [6:6] is the sub-list for extension extendee
  511. 0, // [0:6] is the sub-list for field type_name
  512. }
  513. func init() { file_api_v1_inbox_service_proto_init() }
  514. func file_api_v1_inbox_service_proto_init() {
  515. if File_api_v1_inbox_service_proto != nil {
  516. return
  517. }
  518. file_api_v1_inbox_service_proto_msgTypes[0].OneofWrappers = []any{}
  519. type x struct{}
  520. out := protoimpl.TypeBuilder{
  521. File: protoimpl.DescBuilder{
  522. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  523. RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_v1_inbox_service_proto_rawDesc), len(file_api_v1_inbox_service_proto_rawDesc)),
  524. NumEnums: 2,
  525. NumMessages: 5,
  526. NumExtensions: 0,
  527. NumServices: 1,
  528. },
  529. GoTypes: file_api_v1_inbox_service_proto_goTypes,
  530. DependencyIndexes: file_api_v1_inbox_service_proto_depIdxs,
  531. EnumInfos: file_api_v1_inbox_service_proto_enumTypes,
  532. MessageInfos: file_api_v1_inbox_service_proto_msgTypes,
  533. }.Build()
  534. File_api_v1_inbox_service_proto = out.File
  535. file_api_v1_inbox_service_proto_goTypes = nil
  536. file_api_v1_inbox_service_proto_depIdxs = nil
  537. }