@ -228,8 +228,6 @@ type Memo struct {
// The last update timestamp.
// If not set on creation, the server will set it to the current time.
UpdateTime * timestamppb . Timestamp ` protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty" `
// The display timestamp of the memo.
DisplayTime * timestamppb . Timestamp ` protobuf:"bytes,6,opt,name=display_time,json=displayTime,proto3" json:"display_time,omitempty" `
// Required. The content of the memo in Markdown format.
Content string ` protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty" `
// The visibility of the memo.
@ -322,13 +320,6 @@ func (x *Memo) GetUpdateTime() *timestamppb.Timestamp {
return nil
}
func ( x * Memo ) GetDisplayTime ( ) * timestamppb . Timestamp {
if x != nil {
return x . DisplayTime
}
return nil
}
func ( x * Memo ) GetContent ( ) string {
if x != nil {
return x . Content
@ -538,10 +529,10 @@ type ListMemosRequest struct {
// Default to `NORMAL`. Set to `ARCHIVED` to list archived memos.
State State ` protobuf:"varint,3,opt,name=state,proto3,enum=memos.api.v1.State" json:"state,omitempty" `
// Optional. The order to sort results by.
// Default to " display _time desc".
// Default to " create _time desc".
// Supports comma-separated list of fields following AIP-132.
// Example: "pinned desc, display_time desc" or "cre ate_time asc"
// Supported fields: pinned, display_time, create_time, update_time, name
// Example: "pinned desc, create_time desc" or "upd ate_time asc"
// Supported fields: pinned, create_time, update_time, name
OrderBy string ` protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty" `
// Optional. Filter to apply to the list results.
// Filter is a CEL expression to filter memos.
@ -2124,7 +2115,7 @@ const file_api_v1_memo_service_proto_rawDesc = "" +
"\rreaction_type\x18\x04 \x01(\tB\x03\xe0A\x02R\freactionType\x12@\n" +
"\vcreate_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
"createTime:X\xeaAU\n" +
"\x15memos.api.v1/Reaction\x12!memos/{memo}/reactions/{reaction}\x1a\x04name*\treactions2\breaction\"\x e e\b\n" +
"\x15memos.api.v1/Reaction\x12!memos/{memo}/reactions/{reaction}\x1a\x04name*\treactions2\breaction\"\x b e\b\n" +
"\x04Memo\x12\x17\n" +
"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12.\n" +
"\x05state\x18\x02 \x01(\x0e2\x13.memos.api.v1.StateB\x03\xe0A\x02R\x05state\x123\n" +
@ -2133,8 +2124,7 @@ const file_api_v1_memo_service_proto_rawDesc = "" +
"\vcreate_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x01R\n" +
"createTime\x12@\n" +
"\vupdate_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x01R\n" +
"updateTime\x12B\n" +
"\fdisplay_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x01R\vdisplayTime\x12\x1d\n" +
"updateTime\x12\x1d\n" +
"\acontent\x18\a \x01(\tB\x03\xe0A\x02R\acontent\x12=\n" +
"\n" +
"visibility\x18\t \x01(\x0e2\x18.memos.api.v1.VisibilityB\x03\xe0A\x02R\n" +
@ -2158,7 +2148,7 @@ const file_api_v1_memo_service_proto_rawDesc = "" +
"\x05title\x18\x05 \x01(\tR\x05title:7\xeaA4\n" +
"\x11memos.api.v1/Memo\x12\fmemos/{memo}\x1a\x04name*\x05memos2\x04memoB\t\n" +
"\a_parentB\v\n" +
"\t_location \"u\n" +
"\t_location J\x04\b\x06\x10\aR\fdisplay_time \"u\n" +
"\bLocation\x12%\n" +
"\vplaceholder\x18\x01 \x01(\tB\x03\xe0A\x01R\vplaceholder\x12\x1f\n" +
"\blatitude\x18\x02 \x01(\x01B\x03\xe0A\x01R\blatitude\x12!\n" +
@ -2377,74 +2367,73 @@ var file_api_v1_memo_service_proto_depIdxs = []int32{
34 , // 1: memos.api.v1.Memo.state:type_name -> memos.api.v1.State
33 , // 2: memos.api.v1.Memo.create_time:type_name -> google.protobuf.Timestamp
33 , // 3: memos.api.v1.Memo.update_time:type_name -> google.protobuf.Timestamp
33 , // 4: memos.api.v1.Memo.display_time:type_name -> google.protobuf.Timestamp
0 , // 5: memos.api.v1.Memo.visibility:type_name -> memos.api.v1.Visibility
35 , // 6: memos.api.v1.Memo.attachments:type_name -> memos.api.v1.Attachment
14 , // 7: memos.api.v1.Memo.relations:type_name -> memos.api.v1.MemoRelation
2 , // 8: memos.api.v1.Memo.reactions:type_name -> memos.api.v1.Reaction
31 , // 9: memos.api.v1.Memo.property:type_name -> memos.api.v1.Memo.Property
4 , // 10: memos.api.v1.Memo.location:type_name -> memos.api.v1.Location
3 , // 11: memos.api.v1.CreateMemoRequest.memo:type_name -> memos.api.v1.Memo
34 , // 12: memos.api.v1.ListMemosRequest.state:type_name -> memos.api.v1.State
3 , // 13: memos.api.v1.ListMemosResponse.memos:type_name -> memos.api.v1.Memo
3 , // 14: memos.api.v1.UpdateMemoRequest.memo:type_name -> memos.api.v1.Memo
36 , // 15: memos.api.v1.UpdateMemoRequest.update_mask:type_name -> google.protobuf.FieldMask
35 , // 16: memos.api.v1.SetMemoAttachmentsRequest.attachments:type_name -> memos.api.v1.Attachment
35 , // 17: memos.api.v1.ListMemoAttachmentsResponse.attachments:type_name -> memos.api.v1.Attachment
32 , // 18: memos.api.v1.MemoRelation.memo:type_name -> memos.api.v1.MemoRelation.Memo
32 , // 19: memos.api.v1.MemoRelation.related_memo:type_name -> memos.api.v1.MemoRelation.Memo
1 , // 20: memos.api.v1.MemoRelation.type:type_name -> memos.api.v1.MemoRelation.Type
14 , // 21: memos.api.v1.SetMemoRelationsRequest.relations:type_name -> memos.api.v1.MemoRelation
14 , // 22: memos.api.v1.ListMemoRelationsResponse.relations:type_name -> memos.api.v1.MemoRelation
3 , // 23: memos.api.v1.CreateMemoCommentRequest.comment:type_name -> memos.api.v1.Memo
3 , // 24: memos.api.v1.ListMemoCommentsResponse.memos:type_name -> memos.api.v1.Memo
2 , // 25: memos.api.v1.ListMemoReactionsResponse.reactions:type_name -> memos.api.v1.Reaction
2 , // 26: memos.api.v1.UpsertMemoReactionRequest.reaction:type_name -> memos.api.v1.Reaction
33 , // 27: memos.api.v1.MemoShare.create_time:type_name -> google.protobuf.Timestamp
33 , // 28: memos.api.v1.MemoShare.expire_time:type_name -> google.protobuf.Timestamp
25 , // 29: memos.api.v1.CreateMemoShareRequest.memo_share:type_name -> memos.api.v1.MemoShare
25 , // 30: memos.api.v1.ListMemoSharesResponse.memo_shares:type_name -> memos.api.v1.MemoShare
5 , // 31: memos.api.v1.MemoService.CreateMemo:input_type -> memos.api.v1.CreateMemoRequest
6 , // 32: memos.api.v1.MemoService.ListMemos:input_type -> memos.api.v1.ListMemosRequest
8 , // 33: memos.api.v1.MemoService.GetMemo:input_type -> memos.api.v1.GetMemoRequest
9 , // 34: memos.api.v1.MemoService.UpdateMemo:input_type -> memos.api.v1.UpdateMemoRequest
10 , // 35: memos.api.v1.MemoService.DeleteMemo:input_type -> memos.api.v1.DeleteMemoRequest
11 , // 36: memos.api.v1.MemoService.SetMemoAttachments:input_type -> memos.api.v1.SetMemoAttachmentsRequest
12 , // 37: memos.api.v1.MemoService.ListMemoAttachments:input_type -> memos.api.v1.ListMemoAttachmentsRequest
15 , // 38: memos.api.v1.MemoService.SetMemoRelations:input_type -> memos.api.v1.SetMemoRelationsRequest
16 , // 39: memos.api.v1.MemoService.ListMemoRelations:input_type -> memos.api.v1.ListMemoRelationsRequest
18 , // 40: memos.api.v1.MemoService.CreateMemoComment:input_type -> memos.api.v1.CreateMemoCommentRequest
19 , // 41: memos.api.v1.MemoService.ListMemoComments:input_type -> memos.api.v1.ListMemoCommentsRequest
21 , // 42: memos.api.v1.MemoService.ListMemoReactions:input_type -> memos.api.v1.ListMemoReactionsRequest
23 , // 43: memos.api.v1.MemoService.UpsertMemoReaction:input_type -> memos.api.v1.UpsertMemoReactionRequest
24 , // 44: memos.api.v1.MemoService.DeleteMemoReaction:input_type -> memos.api.v1.DeleteMemoReactionRequest
26 , // 45: memos.api.v1.MemoService.CreateMemoShare:input_type -> memos.api.v1.CreateMemoShareRequest
27 , // 46: memos.api.v1.MemoService.ListMemoShares:input_type -> memos.api.v1.ListMemoSharesRequest
29 , // 47: memos.api.v1.MemoService.DeleteMemoShare:input_type -> memos.api.v1.DeleteMemoShareRequest
30 , // 48: memos.api.v1.MemoService.GetMemoByShare:input_type -> memos.api.v1.GetMemoByShareRequest
3 , // 49: memos.api.v1.MemoService.CreateMemo:output_type -> memos.api.v1.Memo
7 , // 50: memos.api.v1.MemoService.ListMemos:output_type -> memos.api.v1.ListMemosResponse
3 , // 51: memos.api.v1.MemoService.GetMemo:output_type -> memos.api.v1.Memo
3 , // 52: memos.api.v1.MemoService.UpdateMemo:output_type -> memos.api.v1.Memo
37 , // 53: memos.api.v1.MemoService.DeleteMemo:output_type -> google.protobuf.Empty
37 , // 54: memos.api.v1.MemoService.SetMemoAttachments:output_type -> google.protobuf.Empty
13 , // 55: memos.api.v1.MemoService.ListMemoAttachments:output_type -> memos.api.v1.ListMemoAttachmentsResponse
37 , // 56: memos.api.v1.MemoService.SetMemoRelations:output_type -> google.protobuf.Empty
17 , // 57: memos.api.v1.MemoService.ListMemoRelations:output_type -> memos.api.v1.ListMemoRelationsResponse
3 , // 58: memos.api.v1.MemoService.CreateMemoComment:output_type -> memos.api.v1.Memo
20 , // 59: memos.api.v1.MemoService.ListMemoComments:output_type -> memos.api.v1.ListMemoCommentsResponse
22 , // 60: memos.api.v1.MemoService.ListMemoReactions:output_type -> memos.api.v1.ListMemoReactionsResponse
2 , // 61: memos.api.v1.MemoService.UpsertMemoReaction:output_type -> memos.api.v1.Reaction
37 , // 62: memos.api.v1.MemoService.DeleteMemoReaction:output_type -> google.protobuf.Empty
25 , // 63: memos.api.v1.MemoService.CreateMemoShare:output_type -> memos.api.v1.MemoShare
28 , // 64: memos.api.v1.MemoService.ListMemoShares:output_type -> memos.api.v1.ListMemoSharesResponse
37 , // 65: memos.api.v1.MemoService.DeleteMemoShare:output_type -> google.protobuf.Empty
3 , // 66: memos.api.v1.MemoService.GetMemoByShare:output_type -> memos.api.v1.Memo
49 , // [49:67] is the sub-list for method output_type
31 , // [31:49] is the sub-list for method input_type
31 , // [31:31] is the sub-list for extension type_name
31 , // [31:31] is the sub-list for extension extendee
0 , // [0:31] is the sub-list for field type_name
0 , // 4: memos.api.v1.Memo.visibility:type_name -> memos.api.v1.Visibility
35 , // 5: memos.api.v1.Memo.attachments:type_name -> memos.api.v1.Attachment
14 , // 6: memos.api.v1.Memo.relations:type_name -> memos.api.v1.MemoRelation
2 , // 7: memos.api.v1.Memo.reactions:type_name -> memos.api.v1.Reaction
31 , // 8: memos.api.v1.Memo.property:type_name -> memos.api.v1.Memo.Property
4 , // 9: memos.api.v1.Memo.location:type_name -> memos.api.v1.Location
3 , // 10: memos.api.v1.CreateMemoRequest.memo:type_name -> memos.api.v1.Memo
34 , // 11: memos.api.v1.ListMemosRequest.state:type_name -> memos.api.v1.State
3 , // 12: memos.api.v1.ListMemosResponse.memos:type_name -> memos.api.v1.Memo
3 , // 13: memos.api.v1.UpdateMemoRequest.memo:type_name -> memos.api.v1.Memo
36 , // 14: memos.api.v1.UpdateMemoRequest.update_mask:type_name -> google.protobuf.FieldMask
35 , // 15: memos.api.v1.SetMemoAttachmentsRequest.attachments:type_name -> memos.api.v1.Attachment
35 , // 16: memos.api.v1.ListMemoAttachmentsResponse.attachments:type_name -> memos.api.v1.Attachment
32 , // 17: memos.api.v1.MemoRelation.memo:type_name -> memos.api.v1.MemoRelation.Memo
32 , // 18: memos.api.v1.MemoRelation.related_memo:type_name -> memos.api.v1.MemoRelation.Memo
1 , // 19: memos.api.v1.MemoRelation.type:type_name -> memos.api.v1.MemoRelation.Type
14 , // 20: memos.api.v1.SetMemoRelationsRequest.relations:type_name -> memos.api.v1.MemoRelation
14 , // 21: memos.api.v1.ListMemoRelationsResponse.relations:type_name -> memos.api.v1.MemoRelation
3 , // 22: memos.api.v1.CreateMemoCommentRequest.comment:type_name -> memos.api.v1.Memo
3 , // 23: memos.api.v1.ListMemoCommentsResponse.memos:type_name -> memos.api.v1.Memo
2 , // 24: memos.api.v1.ListMemoReactionsResponse.reactions:type_name -> memos.api.v1.Reaction
2 , // 25: memos.api.v1.UpsertMemoReactionRequest.reaction:type_name -> memos.api.v1.Reaction
33 , // 26: memos.api.v1.MemoShare.create_time:type_name -> google.protobuf.Timestamp
33 , // 27: memos.api.v1.MemoShare.expire_time:type_name -> google.protobuf.Timestamp
25 , // 28: memos.api.v1.CreateMemoShareRequest.memo_share:type_name -> memos.api.v1.MemoShare
25 , // 29: memos.api.v1.ListMemoSharesResponse.memo_shares:type_name -> memos.api.v1.MemoShare
5 , // 30: memos.api.v1.MemoService.CreateMemo:input_type -> memos.api.v1.CreateMemoRequest
6 , // 31: memos.api.v1.MemoService.ListMemos:input_type -> memos.api.v1.ListMemosRequest
8 , // 32: memos.api.v1.MemoService.GetMemo:input_type -> memos.api.v1.GetMemoRequest
9 , // 33: memos.api.v1.MemoService.UpdateMemo:input_type -> memos.api.v1.UpdateMemoRequest
10 , // 34: memos.api.v1.MemoService.DeleteMemo:input_type -> memos.api.v1.DeleteMemoRequest
11 , // 35: memos.api.v1.MemoService.SetMemoAttachments:input_type -> memos.api.v1.SetMemoAttachmentsRequest
12 , // 36: memos.api.v1.MemoService.ListMemoAttachments:input_type -> memos.api.v1.ListMemoAttachmentsRequest
15 , // 37: memos.api.v1.MemoService.SetMemoRelations:input_type -> memos.api.v1.SetMemoRelationsRequest
16 , // 38: memos.api.v1.MemoService.ListMemoRelations:input_type -> memos.api.v1.ListMemoRelationsRequest
18 , // 39: memos.api.v1.MemoService.CreateMemoComment:input_type -> memos.api.v1.CreateMemoCommentRequest
19 , // 40: memos.api.v1.MemoService.ListMemoComments:input_type -> memos.api.v1.ListMemoCommentsRequest
21 , // 41: memos.api.v1.MemoService.ListMemoReactions:input_type -> memos.api.v1.ListMemoReactionsRequest
23 , // 42: memos.api.v1.MemoService.UpsertMemoReaction:input_type -> memos.api.v1.UpsertMemoReactionRequest
24 , // 43: memos.api.v1.MemoService.DeleteMemoReaction:input_type -> memos.api.v1.DeleteMemoReactionRequest
26 , // 44: memos.api.v1.MemoService.CreateMemoShare:input_type -> memos.api.v1.CreateMemoShareRequest
27 , // 45: memos.api.v1.MemoService.ListMemoShares:input_type -> memos.api.v1.ListMemoSharesRequest
29 , // 46: memos.api.v1.MemoService.DeleteMemoShare:input_type -> memos.api.v1.DeleteMemoShareRequest
30 , // 47: memos.api.v1.MemoService.GetMemoByShare:input_type -> memos.api.v1.GetMemoByShareRequest
3 , // 48: memos.api.v1.MemoService.CreateMemo:output_type -> memos.api.v1.Memo
7 , // 49: memos.api.v1.MemoService.ListMemos:output_type -> memos.api.v1.ListMemosResponse
3 , // 50: memos.api.v1.MemoService.GetMemo:output_type -> memos.api.v1.Memo
3 , // 51: memos.api.v1.MemoService.UpdateMemo:output_type -> memos.api.v1.Memo
37 , // 52: memos.api.v1.MemoService.DeleteMemo:output_type -> google.protobuf.Empty
37 , // 53: memos.api.v1.MemoService.SetMemoAttachments:output_type -> google.protobuf.Empty
13 , // 54: memos.api.v1.MemoService.ListMemoAttachments:output_type -> memos.api.v1.ListMemoAttachmentsResponse
37 , // 55: memos.api.v1.MemoService.SetMemoRelations:output_type -> google.protobuf.Empty
17 , // 56: memos.api.v1.MemoService.ListMemoRelations:output_type -> memos.api.v1.ListMemoRelationsResponse
3 , // 57: memos.api.v1.MemoService.CreateMemoComment:output_type -> memos.api.v1.Memo
20 , // 58: memos.api.v1.MemoService.ListMemoComments:output_type -> memos.api.v1.ListMemoCommentsResponse
22 , // 59: memos.api.v1.MemoService.ListMemoReactions:output_type -> memos.api.v1.ListMemoReactionsResponse
2 , // 60: memos.api.v1.MemoService.UpsertMemoReaction:output_type -> memos.api.v1.Reaction
37 , // 61: memos.api.v1.MemoService.DeleteMemoReaction:output_type -> google.protobuf.Empty
25 , // 62: memos.api.v1.MemoService.CreateMemoShare:output_type -> memos.api.v1.MemoShare
28 , // 63: memos.api.v1.MemoService.ListMemoShares:output_type -> memos.api.v1.ListMemoSharesResponse
37 , // 64: memos.api.v1.MemoService.DeleteMemoShare:output_type -> google.protobuf.Empty
3 , // 65: memos.api.v1.MemoService.GetMemoByShare:output_type -> memos.api.v1.Memo
48 , // [48:66] is the sub-list for method output_type
30 , // [30:48] is the sub-list for method input_type
30 , // [30:30] is the sub-list for extension type_name
30 , // [30:30] is the sub-list for extension extendee
0 , // [0:30] is the sub-list for field type_name
}
func init ( ) { file_api_v1_memo_service_proto_init ( ) }