inbox_service.pb.go 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.3
  4. // protoc (unknown)
  5. // source: api/v1/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. )
  17. const (
  18. // Verify that this generated code is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  20. // Verify that runtime/protoimpl is sufficiently up-to-date.
  21. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  22. )
  23. type Inbox_Status int32
  24. const (
  25. Inbox_STATUS_UNSPECIFIED Inbox_Status = 0
  26. Inbox_UNREAD Inbox_Status = 1
  27. Inbox_ARCHIVED Inbox_Status = 2
  28. )
  29. // Enum value maps for Inbox_Status.
  30. var (
  31. Inbox_Status_name = map[int32]string{
  32. 0: "STATUS_UNSPECIFIED",
  33. 1: "UNREAD",
  34. 2: "ARCHIVED",
  35. }
  36. Inbox_Status_value = map[string]int32{
  37. "STATUS_UNSPECIFIED": 0,
  38. "UNREAD": 1,
  39. "ARCHIVED": 2,
  40. }
  41. )
  42. func (x Inbox_Status) Enum() *Inbox_Status {
  43. p := new(Inbox_Status)
  44. *p = x
  45. return p
  46. }
  47. func (x Inbox_Status) String() string {
  48. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  49. }
  50. func (Inbox_Status) Descriptor() protoreflect.EnumDescriptor {
  51. return file_api_v1_inbox_service_proto_enumTypes[0].Descriptor()
  52. }
  53. func (Inbox_Status) Type() protoreflect.EnumType {
  54. return &file_api_v1_inbox_service_proto_enumTypes[0]
  55. }
  56. func (x Inbox_Status) Number() protoreflect.EnumNumber {
  57. return protoreflect.EnumNumber(x)
  58. }
  59. // Deprecated: Use Inbox_Status.Descriptor instead.
  60. func (Inbox_Status) EnumDescriptor() ([]byte, []int) {
  61. return file_api_v1_inbox_service_proto_rawDescGZIP(), []int{0, 0}
  62. }
  63. type Inbox_Type int32
  64. const (
  65. Inbox_TYPE_UNSPECIFIED Inbox_Type = 0
  66. Inbox_MEMO_COMMENT Inbox_Type = 1
  67. Inbox_VERSION_UPDATE Inbox_Type = 2
  68. )
  69. // Enum value maps for Inbox_Type.
  70. var (
  71. Inbox_Type_name = map[int32]string{
  72. 0: "TYPE_UNSPECIFIED",
  73. 1: "MEMO_COMMENT",
  74. 2: "VERSION_UPDATE",
  75. }
  76. Inbox_Type_value = map[string]int32{
  77. "TYPE_UNSPECIFIED": 0,
  78. "MEMO_COMMENT": 1,
  79. "VERSION_UPDATE": 2,
  80. }
  81. )
  82. func (x Inbox_Type) Enum() *Inbox_Type {
  83. p := new(Inbox_Type)
  84. *p = x
  85. return p
  86. }
  87. func (x Inbox_Type) String() string {
  88. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  89. }
  90. func (Inbox_Type) Descriptor() protoreflect.EnumDescriptor {
  91. return file_api_v1_inbox_service_proto_enumTypes[1].Descriptor()
  92. }
  93. func (Inbox_Type) Type() protoreflect.EnumType {
  94. return &file_api_v1_inbox_service_proto_enumTypes[1]
  95. }
  96. func (x Inbox_Type) Number() protoreflect.EnumNumber {
  97. return protoreflect.EnumNumber(x)
  98. }
  99. // Deprecated: Use Inbox_Type.Descriptor instead.
  100. func (Inbox_Type) EnumDescriptor() ([]byte, []int) {
  101. return file_api_v1_inbox_service_proto_rawDescGZIP(), []int{0, 1}
  102. }
  103. type Inbox struct {
  104. state protoimpl.MessageState `protogen:"open.v1"`
  105. // The name of the inbox.
  106. // Format: inboxes/{id}
  107. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  108. // Format: users/{user}
  109. Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
  110. // Format: users/{user}
  111. Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"`
  112. Status Inbox_Status `protobuf:"varint,4,opt,name=status,proto3,enum=memos.api.v1.Inbox_Status" json:"status,omitempty"`
  113. CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
  114. Type Inbox_Type `protobuf:"varint,6,opt,name=type,proto3,enum=memos.api.v1.Inbox_Type" json:"type,omitempty"`
  115. ActivityId *int32 `protobuf:"varint,7,opt,name=activity_id,json=activityId,proto3,oneof" json:"activity_id,omitempty"`
  116. unknownFields protoimpl.UnknownFields
  117. sizeCache protoimpl.SizeCache
  118. }
  119. func (x *Inbox) Reset() {
  120. *x = Inbox{}
  121. mi := &file_api_v1_inbox_service_proto_msgTypes[0]
  122. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  123. ms.StoreMessageInfo(mi)
  124. }
  125. func (x *Inbox) String() string {
  126. return protoimpl.X.MessageStringOf(x)
  127. }
  128. func (*Inbox) ProtoMessage() {}
  129. func (x *Inbox) ProtoReflect() protoreflect.Message {
  130. mi := &file_api_v1_inbox_service_proto_msgTypes[0]
  131. if x != nil {
  132. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  133. if ms.LoadMessageInfo() == nil {
  134. ms.StoreMessageInfo(mi)
  135. }
  136. return ms
  137. }
  138. return mi.MessageOf(x)
  139. }
  140. // Deprecated: Use Inbox.ProtoReflect.Descriptor instead.
  141. func (*Inbox) Descriptor() ([]byte, []int) {
  142. return file_api_v1_inbox_service_proto_rawDescGZIP(), []int{0}
  143. }
  144. func (x *Inbox) GetName() string {
  145. if x != nil {
  146. return x.Name
  147. }
  148. return ""
  149. }
  150. func (x *Inbox) GetSender() string {
  151. if x != nil {
  152. return x.Sender
  153. }
  154. return ""
  155. }
  156. func (x *Inbox) GetReceiver() string {
  157. if x != nil {
  158. return x.Receiver
  159. }
  160. return ""
  161. }
  162. func (x *Inbox) GetStatus() Inbox_Status {
  163. if x != nil {
  164. return x.Status
  165. }
  166. return Inbox_STATUS_UNSPECIFIED
  167. }
  168. func (x *Inbox) GetCreateTime() *timestamppb.Timestamp {
  169. if x != nil {
  170. return x.CreateTime
  171. }
  172. return nil
  173. }
  174. func (x *Inbox) GetType() Inbox_Type {
  175. if x != nil {
  176. return x.Type
  177. }
  178. return Inbox_TYPE_UNSPECIFIED
  179. }
  180. func (x *Inbox) GetActivityId() int32 {
  181. if x != nil && x.ActivityId != nil {
  182. return *x.ActivityId
  183. }
  184. return 0
  185. }
  186. type ListInboxesRequest struct {
  187. state protoimpl.MessageState `protogen:"open.v1"`
  188. // Format: users/{user}
  189. User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
  190. // The maximum number of inbox to return.
  191. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  192. // Provide this to retrieve the subsequent page.
  193. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
  194. unknownFields protoimpl.UnknownFields
  195. sizeCache protoimpl.SizeCache
  196. }
  197. func (x *ListInboxesRequest) Reset() {
  198. *x = ListInboxesRequest{}
  199. mi := &file_api_v1_inbox_service_proto_msgTypes[1]
  200. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  201. ms.StoreMessageInfo(mi)
  202. }
  203. func (x *ListInboxesRequest) String() string {
  204. return protoimpl.X.MessageStringOf(x)
  205. }
  206. func (*ListInboxesRequest) ProtoMessage() {}
  207. func (x *ListInboxesRequest) ProtoReflect() protoreflect.Message {
  208. mi := &file_api_v1_inbox_service_proto_msgTypes[1]
  209. if x != nil {
  210. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  211. if ms.LoadMessageInfo() == nil {
  212. ms.StoreMessageInfo(mi)
  213. }
  214. return ms
  215. }
  216. return mi.MessageOf(x)
  217. }
  218. // Deprecated: Use ListInboxesRequest.ProtoReflect.Descriptor instead.
  219. func (*ListInboxesRequest) Descriptor() ([]byte, []int) {
  220. return file_api_v1_inbox_service_proto_rawDescGZIP(), []int{1}
  221. }
  222. func (x *ListInboxesRequest) GetUser() string {
  223. if x != nil {
  224. return x.User
  225. }
  226. return ""
  227. }
  228. func (x *ListInboxesRequest) GetPageSize() int32 {
  229. if x != nil {
  230. return x.PageSize
  231. }
  232. return 0
  233. }
  234. func (x *ListInboxesRequest) GetPageToken() string {
  235. if x != nil {
  236. return x.PageToken
  237. }
  238. return ""
  239. }
  240. type ListInboxesResponse struct {
  241. state protoimpl.MessageState `protogen:"open.v1"`
  242. Inboxes []*Inbox `protobuf:"bytes,1,rep,name=inboxes,proto3" json:"inboxes,omitempty"`
  243. // A token, which can be sent as `page_token` to retrieve the next page.
  244. // If this field is omitted, there are no subsequent pages.
  245. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
  246. unknownFields protoimpl.UnknownFields
  247. sizeCache protoimpl.SizeCache
  248. }
  249. func (x *ListInboxesResponse) Reset() {
  250. *x = ListInboxesResponse{}
  251. mi := &file_api_v1_inbox_service_proto_msgTypes[2]
  252. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  253. ms.StoreMessageInfo(mi)
  254. }
  255. func (x *ListInboxesResponse) String() string {
  256. return protoimpl.X.MessageStringOf(x)
  257. }
  258. func (*ListInboxesResponse) ProtoMessage() {}
  259. func (x *ListInboxesResponse) ProtoReflect() protoreflect.Message {
  260. mi := &file_api_v1_inbox_service_proto_msgTypes[2]
  261. if x != nil {
  262. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  263. if ms.LoadMessageInfo() == nil {
  264. ms.StoreMessageInfo(mi)
  265. }
  266. return ms
  267. }
  268. return mi.MessageOf(x)
  269. }
  270. // Deprecated: Use ListInboxesResponse.ProtoReflect.Descriptor instead.
  271. func (*ListInboxesResponse) Descriptor() ([]byte, []int) {
  272. return file_api_v1_inbox_service_proto_rawDescGZIP(), []int{2}
  273. }
  274. func (x *ListInboxesResponse) GetInboxes() []*Inbox {
  275. if x != nil {
  276. return x.Inboxes
  277. }
  278. return nil
  279. }
  280. func (x *ListInboxesResponse) GetNextPageToken() string {
  281. if x != nil {
  282. return x.NextPageToken
  283. }
  284. return ""
  285. }
  286. type UpdateInboxRequest struct {
  287. state protoimpl.MessageState `protogen:"open.v1"`
  288. Inbox *Inbox `protobuf:"bytes,1,opt,name=inbox,proto3" json:"inbox,omitempty"`
  289. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
  290. unknownFields protoimpl.UnknownFields
  291. sizeCache protoimpl.SizeCache
  292. }
  293. func (x *UpdateInboxRequest) Reset() {
  294. *x = UpdateInboxRequest{}
  295. mi := &file_api_v1_inbox_service_proto_msgTypes[3]
  296. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  297. ms.StoreMessageInfo(mi)
  298. }
  299. func (x *UpdateInboxRequest) String() string {
  300. return protoimpl.X.MessageStringOf(x)
  301. }
  302. func (*UpdateInboxRequest) ProtoMessage() {}
  303. func (x *UpdateInboxRequest) ProtoReflect() protoreflect.Message {
  304. mi := &file_api_v1_inbox_service_proto_msgTypes[3]
  305. if x != nil {
  306. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  307. if ms.LoadMessageInfo() == nil {
  308. ms.StoreMessageInfo(mi)
  309. }
  310. return ms
  311. }
  312. return mi.MessageOf(x)
  313. }
  314. // Deprecated: Use UpdateInboxRequest.ProtoReflect.Descriptor instead.
  315. func (*UpdateInboxRequest) Descriptor() ([]byte, []int) {
  316. return file_api_v1_inbox_service_proto_rawDescGZIP(), []int{3}
  317. }
  318. func (x *UpdateInboxRequest) GetInbox() *Inbox {
  319. if x != nil {
  320. return x.Inbox
  321. }
  322. return nil
  323. }
  324. func (x *UpdateInboxRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
  325. if x != nil {
  326. return x.UpdateMask
  327. }
  328. return nil
  329. }
  330. type DeleteInboxRequest struct {
  331. state protoimpl.MessageState `protogen:"open.v1"`
  332. // The name of the inbox to delete.
  333. // Format: inboxes/{id}
  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 = []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 = file_api_v1_inbox_service_proto_rawDesc
  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(file_api_v1_inbox_service_proto_rawDescData)
  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: 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_rawDesc = nil
  536. file_api_v1_inbox_service_proto_goTypes = nil
  537. file_api_v1_inbox_service_proto_depIdxs = nil
  538. }