From e527b6a878437027d6dc9dbb70edde347409a27f Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 10 Oct 2024 21:06:32 +0800 Subject: [PATCH] feat: move reaction type to setting --- proto/api/v1/reaction_service.proto | 17 +- proto/api/v1/workspace_setting_service.proto | 2 + proto/gen/api/v1/activity_service.pb.go | 114 +-- proto/gen/api/v1/auth_service.pb.go | 136 +-- proto/gen/api/v1/common.pb.go | 26 +- proto/gen/api/v1/idp_service.pb.go | 224 +---- proto/gen/api/v1/inbox_service.pb.go | 114 +-- proto/gen/api/v1/markdown_service.pb.go | 906 ++++-------------- proto/gen/api/v1/memo_relation_service.pb.go | 26 +- proto/gen/api/v1/memo_service.pb.go | 576 ++--------- proto/gen/api/v1/reaction_service.pb.go | 188 +--- proto/gen/api/v1/resource_service.pb.go | 202 +--- proto/gen/api/v1/user_service.pb.go | 400 ++------ proto/gen/api/v1/webhook_service.pb.go | 180 +--- proto/gen/api/v1/workspace_service.pb.go | 48 +- .../api/v1/workspace_setting_service.pb.go | 279 ++---- proto/gen/apidocs.swagger.yaml | 24 +- proto/gen/store/activity.pb.go | 70 +- proto/gen/store/idp.pb.go | 92 +- proto/gen/store/inbox.pb.go | 26 +- proto/gen/store/memo.pb.go | 70 +- proto/gen/store/reaction.pb.go | 138 +-- proto/gen/store/resource.pb.go | 48 +- proto/gen/store/user_setting.pb.go | 70 +- proto/gen/store/workspace_setting.pb.go | 208 ++-- proto/store/reaction.proto | 16 - proto/store/workspace_setting.proto | 2 + server/router/api/v1/reaction_service.go | 5 +- .../api/v1/workspace_setting_service.go | 2 + store/db/mysql/reaction.go | 7 +- store/db/postgres/reaction.go | 7 +- store/db/sqlite/reaction.go | 7 +- .../mysql/prod/0.22/04__reactions.sql | 26 + .../postgres/prod/0.22/04__reactions.sql | 26 + .../sqlite/prod/0.22/04__reactions.sql | 26 + store/reaction.go | 4 +- test/store/migrator_test.go | 2 +- test/store/reaction_test.go | 3 +- web/src/components/MemoReactionListView.tsx | 6 +- web/src/components/ReactionSelector.tsx | 33 +- web/src/components/ReactionView.tsx | 38 +- 41 files changed, 927 insertions(+), 3467 deletions(-) create mode 100644 store/migration/mysql/prod/0.22/04__reactions.sql create mode 100644 store/migration/postgres/prod/0.22/04__reactions.sql create mode 100644 store/migration/sqlite/prod/0.22/04__reactions.sql diff --git a/proto/api/v1/reaction_service.proto b/proto/api/v1/reaction_service.proto index 0de470c0..c16df1d1 100644 --- a/proto/api/v1/reaction_service.proto +++ b/proto/api/v1/reaction_service.proto @@ -13,20 +13,5 @@ message Reaction { string content_id = 3; - enum Type { - TYPE_UNSPECIFIED = 0; - THUMBS_UP = 1; - THUMBS_DOWN = 2; - HEART = 3; - FIRE = 4; - CLAPPING_HANDS = 5; - LAUGH = 6; - OK_HAND = 7; - ROCKET = 8; - EYES = 9; - THINKING_FACE = 10; - CLOWN_FACE = 11; - QUESTION_MARK = 12; - } - Type reaction_type = 4; + string reaction_type = 4; } diff --git a/proto/api/v1/workspace_setting_service.proto b/proto/api/v1/workspace_setting_service.proto index 9624c451..b380e606 100644 --- a/proto/api/v1/workspace_setting_service.proto +++ b/proto/api/v1/workspace_setting_service.proto @@ -113,6 +113,8 @@ message WorkspaceMemoRelatedSetting { bool enable_location = 8; // default_visibility set the global memos default visibility. string default_visibility = 9; + // reactions is the list of reactions. + repeated string reactions = 10; } message GetWorkspaceSettingRequest { diff --git a/proto/gen/api/v1/activity_service.pb.go b/proto/gen/api/v1/activity_service.pb.go index 46e3a9d6..d1ab0b2e 100644 --- a/proto/gen/api/v1/activity_service.pb.go +++ b/proto/gen/api/v1/activity_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: api/v1/activity_service.proto @@ -44,11 +44,9 @@ type Activity struct { func (x *Activity) Reset() { *x = Activity{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_activity_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_activity_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Activity) String() string { @@ -59,7 +57,7 @@ func (*Activity) ProtoMessage() {} func (x *Activity) ProtoReflect() protoreflect.Message { mi := &file_api_v1_activity_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -127,11 +125,9 @@ type ActivityPayload struct { func (x *ActivityPayload) Reset() { *x = ActivityPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_activity_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_activity_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ActivityPayload) String() string { @@ -142,7 +138,7 @@ func (*ActivityPayload) ProtoMessage() {} func (x *ActivityPayload) ProtoReflect() protoreflect.Message { mi := &file_api_v1_activity_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -185,11 +181,9 @@ type ActivityMemoCommentPayload struct { func (x *ActivityMemoCommentPayload) Reset() { *x = ActivityMemoCommentPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_activity_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_activity_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ActivityMemoCommentPayload) String() string { @@ -200,7 +194,7 @@ func (*ActivityMemoCommentPayload) ProtoMessage() {} func (x *ActivityMemoCommentPayload) ProtoReflect() protoreflect.Message { mi := &file_api_v1_activity_service_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -240,11 +234,9 @@ type ActivityVersionUpdatePayload struct { func (x *ActivityVersionUpdatePayload) Reset() { *x = ActivityVersionUpdatePayload{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_activity_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_activity_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ActivityVersionUpdatePayload) String() string { @@ -255,7 +247,7 @@ func (*ActivityVersionUpdatePayload) ProtoMessage() {} func (x *ActivityVersionUpdatePayload) ProtoReflect() protoreflect.Message { mi := &file_api_v1_activity_service_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -289,11 +281,9 @@ type GetActivityRequest struct { func (x *GetActivityRequest) Reset() { *x = GetActivityRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_activity_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_activity_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetActivityRequest) String() string { @@ -304,7 +294,7 @@ func (*GetActivityRequest) ProtoMessage() {} func (x *GetActivityRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_activity_service_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -440,68 +430,6 @@ func file_api_v1_activity_service_proto_init() { if File_api_v1_activity_service_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_api_v1_activity_service_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Activity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_activity_service_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ActivityPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_activity_service_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*ActivityMemoCommentPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_activity_service_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ActivityVersionUpdatePayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_activity_service_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*GetActivityRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/proto/gen/api/v1/auth_service.pb.go b/proto/gen/api/v1/auth_service.pb.go index 3ce9adad..3d581705 100644 --- a/proto/gen/api/v1/auth_service.pb.go +++ b/proto/gen/api/v1/auth_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: api/v1/auth_service.proto @@ -30,11 +30,9 @@ type GetAuthStatusRequest struct { func (x *GetAuthStatusRequest) Reset() { *x = GetAuthStatusRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_auth_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_auth_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAuthStatusRequest) String() string { @@ -45,7 +43,7 @@ func (*GetAuthStatusRequest) ProtoMessage() {} func (x *GetAuthStatusRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_auth_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -70,11 +68,9 @@ type GetAuthStatusResponse struct { func (x *GetAuthStatusResponse) Reset() { *x = GetAuthStatusResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_auth_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_auth_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAuthStatusResponse) String() string { @@ -85,7 +81,7 @@ func (*GetAuthStatusResponse) ProtoMessage() {} func (x *GetAuthStatusResponse) ProtoReflect() protoreflect.Message { mi := &file_api_v1_auth_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -122,11 +118,9 @@ type SignInRequest struct { func (x *SignInRequest) Reset() { *x = SignInRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_auth_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_auth_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignInRequest) String() string { @@ -137,7 +131,7 @@ func (*SignInRequest) ProtoMessage() {} func (x *SignInRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_auth_service_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -188,11 +182,9 @@ type SignInWithSSORequest struct { func (x *SignInWithSSORequest) Reset() { *x = SignInWithSSORequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_auth_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_auth_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignInWithSSORequest) String() string { @@ -203,7 +195,7 @@ func (*SignInWithSSORequest) ProtoMessage() {} func (x *SignInWithSSORequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_auth_service_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -252,11 +244,9 @@ type SignUpRequest struct { func (x *SignUpRequest) Reset() { *x = SignUpRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_auth_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_auth_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignUpRequest) String() string { @@ -267,7 +257,7 @@ func (*SignUpRequest) ProtoMessage() {} func (x *SignUpRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_auth_service_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -304,11 +294,9 @@ type SignOutRequest struct { func (x *SignOutRequest) Reset() { *x = SignOutRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_auth_service_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_auth_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignOutRequest) String() string { @@ -319,7 +307,7 @@ func (*SignOutRequest) ProtoMessage() {} func (x *SignOutRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_auth_service_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -462,80 +450,6 @@ func file_api_v1_auth_service_proto_init() { return } file_api_v1_user_service_proto_init() - if !protoimpl.UnsafeEnabled { - file_api_v1_auth_service_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*GetAuthStatusRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_auth_service_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*GetAuthStatusResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_auth_service_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*SignInRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_auth_service_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*SignInWithSSORequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_auth_service_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*SignUpRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_auth_service_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*SignOutRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/proto/gen/api/v1/common.pb.go b/proto/gen/api/v1/common.pb.go index de1ef438..595acc15 100644 --- a/proto/gen/api/v1/common.pb.go +++ b/proto/gen/api/v1/common.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: api/v1/common.proto @@ -81,11 +81,9 @@ type PageToken struct { func (x *PageToken) Reset() { *x = PageToken{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_common_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_common_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PageToken) String() string { @@ -96,7 +94,7 @@ func (*PageToken) ProtoMessage() {} func (x *PageToken) ProtoReflect() protoreflect.Message { mi := &file_api_v1_common_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -182,20 +180,6 @@ func file_api_v1_common_proto_init() { if File_api_v1_common_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_api_v1_common_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*PageToken); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/proto/gen/api/v1/idp_service.pb.go b/proto/gen/api/v1/idp_service.pb.go index 65957c8a..d8fd1f74 100644 --- a/proto/gen/api/v1/idp_service.pb.go +++ b/proto/gen/api/v1/idp_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: api/v1/idp_service.proto @@ -85,11 +85,9 @@ type IdentityProvider struct { func (x *IdentityProvider) Reset() { *x = IdentityProvider{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_idp_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_idp_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IdentityProvider) String() string { @@ -100,7 +98,7 @@ func (*IdentityProvider) ProtoMessage() {} func (x *IdentityProvider) ProtoReflect() protoreflect.Message { mi := &file_api_v1_idp_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -163,11 +161,9 @@ type IdentityProviderConfig struct { func (x *IdentityProviderConfig) Reset() { *x = IdentityProviderConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_idp_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_idp_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IdentityProviderConfig) String() string { @@ -178,7 +174,7 @@ func (*IdentityProviderConfig) ProtoMessage() {} func (x *IdentityProviderConfig) ProtoReflect() protoreflect.Message { mi := &file_api_v1_idp_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -229,11 +225,9 @@ type FieldMapping struct { func (x *FieldMapping) Reset() { *x = FieldMapping{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_idp_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_idp_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldMapping) String() string { @@ -244,7 +238,7 @@ func (*FieldMapping) ProtoMessage() {} func (x *FieldMapping) ProtoReflect() protoreflect.Message { mi := &file_api_v1_idp_service_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -296,11 +290,9 @@ type OAuth2Config struct { func (x *OAuth2Config) Reset() { *x = OAuth2Config{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_idp_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_idp_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OAuth2Config) String() string { @@ -311,7 +303,7 @@ func (*OAuth2Config) ProtoMessage() {} func (x *OAuth2Config) ProtoReflect() protoreflect.Message { mi := &file_api_v1_idp_service_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -383,11 +375,9 @@ type ListIdentityProvidersRequest struct { func (x *ListIdentityProvidersRequest) Reset() { *x = ListIdentityProvidersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_idp_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_idp_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListIdentityProvidersRequest) String() string { @@ -398,7 +388,7 @@ func (*ListIdentityProvidersRequest) ProtoMessage() {} func (x *ListIdentityProvidersRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_idp_service_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -423,11 +413,9 @@ type ListIdentityProvidersResponse struct { func (x *ListIdentityProvidersResponse) Reset() { *x = ListIdentityProvidersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_idp_service_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_idp_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListIdentityProvidersResponse) String() string { @@ -438,7 +426,7 @@ func (*ListIdentityProvidersResponse) ProtoMessage() {} func (x *ListIdentityProvidersResponse) ProtoReflect() protoreflect.Message { mi := &file_api_v1_idp_service_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -472,11 +460,9 @@ type GetIdentityProviderRequest struct { func (x *GetIdentityProviderRequest) Reset() { *x = GetIdentityProviderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_idp_service_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_idp_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetIdentityProviderRequest) String() string { @@ -487,7 +473,7 @@ func (*GetIdentityProviderRequest) ProtoMessage() {} func (x *GetIdentityProviderRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_idp_service_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -520,11 +506,9 @@ type CreateIdentityProviderRequest struct { func (x *CreateIdentityProviderRequest) Reset() { *x = CreateIdentityProviderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_idp_service_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_idp_service_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateIdentityProviderRequest) String() string { @@ -535,7 +519,7 @@ func (*CreateIdentityProviderRequest) ProtoMessage() {} func (x *CreateIdentityProviderRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_idp_service_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -571,11 +555,9 @@ type UpdateIdentityProviderRequest struct { func (x *UpdateIdentityProviderRequest) Reset() { *x = UpdateIdentityProviderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_idp_service_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_idp_service_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateIdentityProviderRequest) String() string { @@ -586,7 +568,7 @@ func (*UpdateIdentityProviderRequest) ProtoMessage() {} func (x *UpdateIdentityProviderRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_idp_service_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -627,11 +609,9 @@ type DeleteIdentityProviderRequest struct { func (x *DeleteIdentityProviderRequest) Reset() { *x = DeleteIdentityProviderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_idp_service_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_idp_service_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteIdentityProviderRequest) String() string { @@ -642,7 +622,7 @@ func (*DeleteIdentityProviderRequest) ProtoMessage() {} func (x *DeleteIdentityProviderRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_idp_service_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -883,128 +863,6 @@ func file_api_v1_idp_service_proto_init() { if File_api_v1_idp_service_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_api_v1_idp_service_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*IdentityProvider); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_idp_service_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*IdentityProviderConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_idp_service_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*FieldMapping); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_idp_service_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*OAuth2Config); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_idp_service_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*ListIdentityProvidersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_idp_service_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*ListIdentityProvidersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_idp_service_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*GetIdentityProviderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_idp_service_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*CreateIdentityProviderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_idp_service_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*UpdateIdentityProviderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_idp_service_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*DeleteIdentityProviderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_api_v1_idp_service_proto_msgTypes[1].OneofWrappers = []any{ (*IdentityProviderConfig_Oauth2Config)(nil), } diff --git a/proto/gen/api/v1/inbox_service.pb.go b/proto/gen/api/v1/inbox_service.pb.go index 89208214..ad6b86d6 100644 --- a/proto/gen/api/v1/inbox_service.pb.go +++ b/proto/gen/api/v1/inbox_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: api/v1/inbox_service.proto @@ -142,11 +142,9 @@ type Inbox struct { func (x *Inbox) Reset() { *x = Inbox{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_inbox_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_inbox_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Inbox) String() string { @@ -157,7 +155,7 @@ func (*Inbox) ProtoMessage() {} func (x *Inbox) ProtoReflect() protoreflect.Message { mi := &file_api_v1_inbox_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -232,11 +230,9 @@ type ListInboxesRequest struct { func (x *ListInboxesRequest) Reset() { *x = ListInboxesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_inbox_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_inbox_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListInboxesRequest) String() string { @@ -247,7 +243,7 @@ func (*ListInboxesRequest) ProtoMessage() {} func (x *ListInboxesRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_inbox_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -279,11 +275,9 @@ type ListInboxesResponse struct { func (x *ListInboxesResponse) Reset() { *x = ListInboxesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_inbox_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_inbox_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListInboxesResponse) String() string { @@ -294,7 +288,7 @@ func (*ListInboxesResponse) ProtoMessage() {} func (x *ListInboxesResponse) ProtoReflect() protoreflect.Message { mi := &file_api_v1_inbox_service_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -327,11 +321,9 @@ type UpdateInboxRequest struct { func (x *UpdateInboxRequest) Reset() { *x = UpdateInboxRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_inbox_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_inbox_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateInboxRequest) String() string { @@ -342,7 +334,7 @@ func (*UpdateInboxRequest) ProtoMessage() {} func (x *UpdateInboxRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_inbox_service_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -383,11 +375,9 @@ type DeleteInboxRequest struct { func (x *DeleteInboxRequest) Reset() { *x = DeleteInboxRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_inbox_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_inbox_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteInboxRequest) String() string { @@ -398,7 +388,7 @@ func (*DeleteInboxRequest) ProtoMessage() {} func (x *DeleteInboxRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_inbox_service_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -567,68 +557,6 @@ func file_api_v1_inbox_service_proto_init() { if File_api_v1_inbox_service_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_api_v1_inbox_service_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Inbox); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_inbox_service_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ListInboxesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_inbox_service_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*ListInboxesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_inbox_service_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*UpdateInboxRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_inbox_service_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*DeleteInboxRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_api_v1_inbox_service_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ diff --git a/proto/gen/api/v1/markdown_service.pb.go b/proto/gen/api/v1/markdown_service.pb.go index 2e532c4f..bf768a45 100644 --- a/proto/gen/api/v1/markdown_service.pb.go +++ b/proto/gen/api/v1/markdown_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: api/v1/markdown_service.proto @@ -221,11 +221,9 @@ type ParseMarkdownRequest struct { func (x *ParseMarkdownRequest) Reset() { *x = ParseMarkdownRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ParseMarkdownRequest) String() string { @@ -236,7 +234,7 @@ func (*ParseMarkdownRequest) ProtoMessage() {} func (x *ParseMarkdownRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -268,11 +266,9 @@ type ParseMarkdownResponse struct { func (x *ParseMarkdownResponse) Reset() { *x = ParseMarkdownResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ParseMarkdownResponse) String() string { @@ -283,7 +279,7 @@ func (*ParseMarkdownResponse) ProtoMessage() {} func (x *ParseMarkdownResponse) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -315,11 +311,9 @@ type RestoreMarkdownNodesRequest struct { func (x *RestoreMarkdownNodesRequest) Reset() { *x = RestoreMarkdownNodesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RestoreMarkdownNodesRequest) String() string { @@ -330,7 +324,7 @@ func (*RestoreMarkdownNodesRequest) ProtoMessage() {} func (x *RestoreMarkdownNodesRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -362,11 +356,9 @@ type RestoreMarkdownNodesResponse struct { func (x *RestoreMarkdownNodesResponse) Reset() { *x = RestoreMarkdownNodesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RestoreMarkdownNodesResponse) String() string { @@ -377,7 +369,7 @@ func (*RestoreMarkdownNodesResponse) ProtoMessage() {} func (x *RestoreMarkdownNodesResponse) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -409,11 +401,9 @@ type StringifyMarkdownNodesRequest struct { func (x *StringifyMarkdownNodesRequest) Reset() { *x = StringifyMarkdownNodesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StringifyMarkdownNodesRequest) String() string { @@ -424,7 +414,7 @@ func (*StringifyMarkdownNodesRequest) ProtoMessage() {} func (x *StringifyMarkdownNodesRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -456,11 +446,9 @@ type StringifyMarkdownNodesResponse struct { func (x *StringifyMarkdownNodesResponse) Reset() { *x = StringifyMarkdownNodesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StringifyMarkdownNodesResponse) String() string { @@ -471,7 +459,7 @@ func (*StringifyMarkdownNodesResponse) ProtoMessage() {} func (x *StringifyMarkdownNodesResponse) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -503,11 +491,9 @@ type GetLinkMetadataRequest struct { func (x *GetLinkMetadataRequest) Reset() { *x = GetLinkMetadataRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetLinkMetadataRequest) String() string { @@ -518,7 +504,7 @@ func (*GetLinkMetadataRequest) ProtoMessage() {} func (x *GetLinkMetadataRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -552,11 +538,9 @@ type LinkMetadata struct { func (x *LinkMetadata) Reset() { *x = LinkMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LinkMetadata) String() string { @@ -567,7 +551,7 @@ func (*LinkMetadata) ProtoMessage() {} func (x *LinkMetadata) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -647,11 +631,9 @@ type Node struct { func (x *Node) Reset() { *x = Node{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Node) String() string { @@ -662,7 +644,7 @@ func (*Node) ProtoMessage() {} func (x *Node) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1108,11 +1090,9 @@ type LineBreakNode struct { func (x *LineBreakNode) Reset() { *x = LineBreakNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LineBreakNode) String() string { @@ -1123,7 +1103,7 @@ func (*LineBreakNode) ProtoMessage() {} func (x *LineBreakNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1148,11 +1128,9 @@ type ParagraphNode struct { func (x *ParagraphNode) Reset() { *x = ParagraphNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ParagraphNode) String() string { @@ -1163,7 +1141,7 @@ func (*ParagraphNode) ProtoMessage() {} func (x *ParagraphNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1196,11 +1174,9 @@ type CodeBlockNode struct { func (x *CodeBlockNode) Reset() { *x = CodeBlockNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CodeBlockNode) String() string { @@ -1211,7 +1187,7 @@ func (*CodeBlockNode) ProtoMessage() {} func (x *CodeBlockNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1251,11 +1227,9 @@ type HeadingNode struct { func (x *HeadingNode) Reset() { *x = HeadingNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HeadingNode) String() string { @@ -1266,7 +1240,7 @@ func (*HeadingNode) ProtoMessage() {} func (x *HeadingNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1305,11 +1279,9 @@ type HorizontalRuleNode struct { func (x *HorizontalRuleNode) Reset() { *x = HorizontalRuleNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HorizontalRuleNode) String() string { @@ -1320,7 +1292,7 @@ func (*HorizontalRuleNode) ProtoMessage() {} func (x *HorizontalRuleNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1352,11 +1324,9 @@ type BlockquoteNode struct { func (x *BlockquoteNode) Reset() { *x = BlockquoteNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockquoteNode) String() string { @@ -1367,7 +1337,7 @@ func (*BlockquoteNode) ProtoMessage() {} func (x *BlockquoteNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1401,11 +1371,9 @@ type ListNode struct { func (x *ListNode) Reset() { *x = ListNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListNode) String() string { @@ -1416,7 +1384,7 @@ func (*ListNode) ProtoMessage() {} func (x *ListNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1464,11 +1432,9 @@ type OrderedListItemNode struct { func (x *OrderedListItemNode) Reset() { *x = OrderedListItemNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OrderedListItemNode) String() string { @@ -1479,7 +1445,7 @@ func (*OrderedListItemNode) ProtoMessage() {} func (x *OrderedListItemNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1527,11 +1493,9 @@ type UnorderedListItemNode struct { func (x *UnorderedListItemNode) Reset() { *x = UnorderedListItemNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UnorderedListItemNode) String() string { @@ -1542,7 +1506,7 @@ func (*UnorderedListItemNode) ProtoMessage() {} func (x *UnorderedListItemNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1591,11 +1555,9 @@ type TaskListItemNode struct { func (x *TaskListItemNode) Reset() { *x = TaskListItemNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TaskListItemNode) String() string { @@ -1606,7 +1568,7 @@ func (*TaskListItemNode) ProtoMessage() {} func (x *TaskListItemNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1659,11 +1621,9 @@ type MathBlockNode struct { func (x *MathBlockNode) Reset() { *x = MathBlockNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MathBlockNode) String() string { @@ -1674,7 +1634,7 @@ func (*MathBlockNode) ProtoMessage() {} func (x *MathBlockNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1708,11 +1668,9 @@ type TableNode struct { func (x *TableNode) Reset() { *x = TableNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TableNode) String() string { @@ -1723,7 +1681,7 @@ func (*TableNode) ProtoMessage() {} func (x *TableNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1770,11 +1728,9 @@ type EmbeddedContentNode struct { func (x *EmbeddedContentNode) Reset() { *x = EmbeddedContentNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EmbeddedContentNode) String() string { @@ -1785,7 +1741,7 @@ func (*EmbeddedContentNode) ProtoMessage() {} func (x *EmbeddedContentNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1824,11 +1780,9 @@ type TextNode struct { func (x *TextNode) Reset() { *x = TextNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TextNode) String() string { @@ -1839,7 +1793,7 @@ func (*TextNode) ProtoMessage() {} func (x *TextNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1872,11 +1826,9 @@ type BoldNode struct { func (x *BoldNode) Reset() { *x = BoldNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BoldNode) String() string { @@ -1887,7 +1839,7 @@ func (*BoldNode) ProtoMessage() {} func (x *BoldNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1927,11 +1879,9 @@ type ItalicNode struct { func (x *ItalicNode) Reset() { *x = ItalicNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ItalicNode) String() string { @@ -1942,7 +1892,7 @@ func (*ItalicNode) ProtoMessage() {} func (x *ItalicNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1982,11 +1932,9 @@ type BoldItalicNode struct { func (x *BoldItalicNode) Reset() { *x = BoldItalicNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BoldItalicNode) String() string { @@ -1997,7 +1945,7 @@ func (*BoldItalicNode) ProtoMessage() {} func (x *BoldItalicNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2036,11 +1984,9 @@ type CodeNode struct { func (x *CodeNode) Reset() { *x = CodeNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CodeNode) String() string { @@ -2051,7 +1997,7 @@ func (*CodeNode) ProtoMessage() {} func (x *CodeNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2084,11 +2030,9 @@ type ImageNode struct { func (x *ImageNode) Reset() { *x = ImageNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImageNode) String() string { @@ -2099,7 +2043,7 @@ func (*ImageNode) ProtoMessage() {} func (x *ImageNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2139,11 +2083,9 @@ type LinkNode struct { func (x *LinkNode) Reset() { *x = LinkNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LinkNode) String() string { @@ -2154,7 +2096,7 @@ func (*LinkNode) ProtoMessage() {} func (x *LinkNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2194,11 +2136,9 @@ type AutoLinkNode struct { func (x *AutoLinkNode) Reset() { *x = AutoLinkNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AutoLinkNode) String() string { @@ -2209,7 +2149,7 @@ func (*AutoLinkNode) ProtoMessage() {} func (x *AutoLinkNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2248,11 +2188,9 @@ type TagNode struct { func (x *TagNode) Reset() { *x = TagNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TagNode) String() string { @@ -2263,7 +2201,7 @@ func (*TagNode) ProtoMessage() {} func (x *TagNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2295,11 +2233,9 @@ type StrikethroughNode struct { func (x *StrikethroughNode) Reset() { *x = StrikethroughNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StrikethroughNode) String() string { @@ -2310,7 +2246,7 @@ func (*StrikethroughNode) ProtoMessage() {} func (x *StrikethroughNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2342,11 +2278,9 @@ type EscapingCharacterNode struct { func (x *EscapingCharacterNode) Reset() { *x = EscapingCharacterNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EscapingCharacterNode) String() string { @@ -2357,7 +2291,7 @@ func (*EscapingCharacterNode) ProtoMessage() {} func (x *EscapingCharacterNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2389,11 +2323,9 @@ type MathNode struct { func (x *MathNode) Reset() { *x = MathNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MathNode) String() string { @@ -2404,7 +2336,7 @@ func (*MathNode) ProtoMessage() {} func (x *MathNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2436,11 +2368,9 @@ type HighlightNode struct { func (x *HighlightNode) Reset() { *x = HighlightNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HighlightNode) String() string { @@ -2451,7 +2381,7 @@ func (*HighlightNode) ProtoMessage() {} func (x *HighlightNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2483,11 +2413,9 @@ type SubscriptNode struct { func (x *SubscriptNode) Reset() { *x = SubscriptNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SubscriptNode) String() string { @@ -2498,7 +2426,7 @@ func (*SubscriptNode) ProtoMessage() {} func (x *SubscriptNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2530,11 +2458,9 @@ type SuperscriptNode struct { func (x *SuperscriptNode) Reset() { *x = SuperscriptNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SuperscriptNode) String() string { @@ -2545,7 +2471,7 @@ func (*SuperscriptNode) ProtoMessage() {} func (x *SuperscriptNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2578,11 +2504,9 @@ type ReferencedContentNode struct { func (x *ReferencedContentNode) Reset() { *x = ReferencedContentNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReferencedContentNode) String() string { @@ -2593,7 +2517,7 @@ func (*ReferencedContentNode) ProtoMessage() {} func (x *ReferencedContentNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2632,11 +2556,9 @@ type SpoilerNode struct { func (x *SpoilerNode) Reset() { *x = SpoilerNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SpoilerNode) String() string { @@ -2647,7 +2569,7 @@ func (*SpoilerNode) ProtoMessage() {} func (x *SpoilerNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2680,11 +2602,9 @@ type HTMLElementNode struct { func (x *HTMLElementNode) Reset() { *x = HTMLElementNode{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HTMLElementNode) String() string { @@ -2695,7 +2615,7 @@ func (*HTMLElementNode) ProtoMessage() {} func (x *HTMLElementNode) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2734,11 +2654,9 @@ type TableNode_Row struct { func (x *TableNode_Row) Reset() { *x = TableNode_Row{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_markdown_service_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_markdown_service_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TableNode_Row) String() string { @@ -2749,7 +2667,7 @@ func (*TableNode_Row) ProtoMessage() {} func (x *TableNode_Row) ProtoReflect() protoreflect.Message { mi := &file_api_v1_markdown_service_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3311,500 +3229,6 @@ func file_api_v1_markdown_service_proto_init() { if File_api_v1_markdown_service_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_api_v1_markdown_service_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ParseMarkdownRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ParseMarkdownResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*RestoreMarkdownNodesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*RestoreMarkdownNodesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*StringifyMarkdownNodesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*StringifyMarkdownNodesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*GetLinkMetadataRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*LinkMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*Node); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*LineBreakNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*ParagraphNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*CodeBlockNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*HeadingNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*HorizontalRuleNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*BlockquoteNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*ListNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*OrderedListItemNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*UnorderedListItemNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*TaskListItemNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*MathBlockNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[20].Exporter = func(v any, i int) any { - switch v := v.(*TableNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[21].Exporter = func(v any, i int) any { - switch v := v.(*EmbeddedContentNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[22].Exporter = func(v any, i int) any { - switch v := v.(*TextNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[23].Exporter = func(v any, i int) any { - switch v := v.(*BoldNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[24].Exporter = func(v any, i int) any { - switch v := v.(*ItalicNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[25].Exporter = func(v any, i int) any { - switch v := v.(*BoldItalicNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[26].Exporter = func(v any, i int) any { - switch v := v.(*CodeNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[27].Exporter = func(v any, i int) any { - switch v := v.(*ImageNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[28].Exporter = func(v any, i int) any { - switch v := v.(*LinkNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[29].Exporter = func(v any, i int) any { - switch v := v.(*AutoLinkNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[30].Exporter = func(v any, i int) any { - switch v := v.(*TagNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[31].Exporter = func(v any, i int) any { - switch v := v.(*StrikethroughNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[32].Exporter = func(v any, i int) any { - switch v := v.(*EscapingCharacterNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[33].Exporter = func(v any, i int) any { - switch v := v.(*MathNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[34].Exporter = func(v any, i int) any { - switch v := v.(*HighlightNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[35].Exporter = func(v any, i int) any { - switch v := v.(*SubscriptNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[36].Exporter = func(v any, i int) any { - switch v := v.(*SuperscriptNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[37].Exporter = func(v any, i int) any { - switch v := v.(*ReferencedContentNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[38].Exporter = func(v any, i int) any { - switch v := v.(*SpoilerNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[39].Exporter = func(v any, i int) any { - switch v := v.(*HTMLElementNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_markdown_service_proto_msgTypes[40].Exporter = func(v any, i int) any { - switch v := v.(*TableNode_Row); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_api_v1_markdown_service_proto_msgTypes[8].OneofWrappers = []any{ (*Node_LineBreakNode)(nil), (*Node_ParagraphNode)(nil), diff --git a/proto/gen/api/v1/memo_relation_service.pb.go b/proto/gen/api/v1/memo_relation_service.pb.go index 0f386462..5f7ed5c1 100644 --- a/proto/gen/api/v1/memo_relation_service.pb.go +++ b/proto/gen/api/v1/memo_relation_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: api/v1/memo_relation_service.proto @@ -85,11 +85,9 @@ type MemoRelation struct { func (x *MemoRelation) Reset() { *x = MemoRelation{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_relation_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_relation_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MemoRelation) String() string { @@ -100,7 +98,7 @@ func (*MemoRelation) ProtoMessage() {} func (x *MemoRelation) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_relation_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -200,20 +198,6 @@ func file_api_v1_memo_relation_service_proto_init() { if File_api_v1_memo_relation_service_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_api_v1_memo_relation_service_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*MemoRelation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/proto/gen/api/v1/memo_service.pb.go b/proto/gen/api/v1/memo_service.pb.go index be5d0aa1..954b82f6 100644 --- a/proto/gen/api/v1/memo_service.pb.go +++ b/proto/gen/api/v1/memo_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: api/v1/memo_service.proto @@ -165,11 +165,9 @@ type Memo struct { func (x *Memo) Reset() { *x = Memo{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Memo) String() string { @@ -180,7 +178,7 @@ func (*Memo) ProtoMessage() {} func (x *Memo) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -342,11 +340,9 @@ type MemoProperty struct { func (x *MemoProperty) Reset() { *x = MemoProperty{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MemoProperty) String() string { @@ -357,7 +353,7 @@ func (*MemoProperty) ProtoMessage() {} func (x *MemoProperty) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -419,11 +415,9 @@ type Location struct { func (x *Location) Reset() { *x = Location{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Location) String() string { @@ -434,7 +428,7 @@ func (*Location) ProtoMessage() {} func (x *Location) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -484,11 +478,9 @@ type CreateMemoRequest struct { func (x *CreateMemoRequest) Reset() { *x = CreateMemoRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateMemoRequest) String() string { @@ -499,7 +491,7 @@ func (*CreateMemoRequest) ProtoMessage() {} func (x *CreateMemoRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -568,11 +560,9 @@ type ListMemosRequest struct { func (x *ListMemosRequest) Reset() { *x = ListMemosRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListMemosRequest) String() string { @@ -583,7 +573,7 @@ func (*ListMemosRequest) ProtoMessage() {} func (x *ListMemosRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -639,11 +629,9 @@ type ListMemosResponse struct { func (x *ListMemosResponse) Reset() { *x = ListMemosResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListMemosResponse) String() string { @@ -654,7 +642,7 @@ func (*ListMemosResponse) ProtoMessage() {} func (x *ListMemosResponse) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -695,11 +683,9 @@ type GetMemoRequest struct { func (x *GetMemoRequest) Reset() { *x = GetMemoRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMemoRequest) String() string { @@ -710,7 +696,7 @@ func (*GetMemoRequest) ProtoMessage() {} func (x *GetMemoRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -743,11 +729,9 @@ type GetMemoByUidRequest struct { func (x *GetMemoByUidRequest) Reset() { *x = GetMemoByUidRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMemoByUidRequest) String() string { @@ -758,7 +742,7 @@ func (*GetMemoByUidRequest) ProtoMessage() {} func (x *GetMemoByUidRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -791,11 +775,9 @@ type UpdateMemoRequest struct { func (x *UpdateMemoRequest) Reset() { *x = UpdateMemoRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateMemoRequest) String() string { @@ -806,7 +788,7 @@ func (*UpdateMemoRequest) ProtoMessage() {} func (x *UpdateMemoRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -847,11 +829,9 @@ type DeleteMemoRequest struct { func (x *DeleteMemoRequest) Reset() { *x = DeleteMemoRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteMemoRequest) String() string { @@ -862,7 +842,7 @@ func (*DeleteMemoRequest) ProtoMessage() {} func (x *DeleteMemoRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -896,11 +876,9 @@ type RebuildMemoPropertyRequest struct { func (x *RebuildMemoPropertyRequest) Reset() { *x = RebuildMemoPropertyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RebuildMemoPropertyRequest) String() string { @@ -911,7 +889,7 @@ func (*RebuildMemoPropertyRequest) ProtoMessage() {} func (x *RebuildMemoPropertyRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -947,11 +925,9 @@ type RenameMemoTagRequest struct { func (x *RenameMemoTagRequest) Reset() { *x = RenameMemoTagRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RenameMemoTagRequest) String() string { @@ -962,7 +938,7 @@ func (*RenameMemoTagRequest) ProtoMessage() {} func (x *RenameMemoTagRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1012,11 +988,9 @@ type DeleteMemoTagRequest struct { func (x *DeleteMemoTagRequest) Reset() { *x = DeleteMemoTagRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteMemoTagRequest) String() string { @@ -1027,7 +1001,7 @@ func (*DeleteMemoTagRequest) ProtoMessage() {} func (x *DeleteMemoTagRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1076,11 +1050,9 @@ type SetMemoResourcesRequest struct { func (x *SetMemoResourcesRequest) Reset() { *x = SetMemoResourcesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SetMemoResourcesRequest) String() string { @@ -1091,7 +1063,7 @@ func (*SetMemoResourcesRequest) ProtoMessage() {} func (x *SetMemoResourcesRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1132,11 +1104,9 @@ type ListMemoResourcesRequest struct { func (x *ListMemoResourcesRequest) Reset() { *x = ListMemoResourcesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListMemoResourcesRequest) String() string { @@ -1147,7 +1117,7 @@ func (*ListMemoResourcesRequest) ProtoMessage() {} func (x *ListMemoResourcesRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1179,11 +1149,9 @@ type ListMemoResourcesResponse struct { func (x *ListMemoResourcesResponse) Reset() { *x = ListMemoResourcesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListMemoResourcesResponse) String() string { @@ -1194,7 +1162,7 @@ func (*ListMemoResourcesResponse) ProtoMessage() {} func (x *ListMemoResourcesResponse) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1229,11 +1197,9 @@ type SetMemoRelationsRequest struct { func (x *SetMemoRelationsRequest) Reset() { *x = SetMemoRelationsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SetMemoRelationsRequest) String() string { @@ -1244,7 +1210,7 @@ func (*SetMemoRelationsRequest) ProtoMessage() {} func (x *SetMemoRelationsRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1285,11 +1251,9 @@ type ListMemoRelationsRequest struct { func (x *ListMemoRelationsRequest) Reset() { *x = ListMemoRelationsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListMemoRelationsRequest) String() string { @@ -1300,7 +1264,7 @@ func (*ListMemoRelationsRequest) ProtoMessage() {} func (x *ListMemoRelationsRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1332,11 +1296,9 @@ type ListMemoRelationsResponse struct { func (x *ListMemoRelationsResponse) Reset() { *x = ListMemoRelationsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListMemoRelationsResponse) String() string { @@ -1347,7 +1309,7 @@ func (*ListMemoRelationsResponse) ProtoMessage() {} func (x *ListMemoRelationsResponse) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1382,11 +1344,9 @@ type CreateMemoCommentRequest struct { func (x *CreateMemoCommentRequest) Reset() { *x = CreateMemoCommentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateMemoCommentRequest) String() string { @@ -1397,7 +1357,7 @@ func (*CreateMemoCommentRequest) ProtoMessage() {} func (x *CreateMemoCommentRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1438,11 +1398,9 @@ type ListMemoCommentsRequest struct { func (x *ListMemoCommentsRequest) Reset() { *x = ListMemoCommentsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListMemoCommentsRequest) String() string { @@ -1453,7 +1411,7 @@ func (*ListMemoCommentsRequest) ProtoMessage() {} func (x *ListMemoCommentsRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1485,11 +1443,9 @@ type ListMemoCommentsResponse struct { func (x *ListMemoCommentsResponse) Reset() { *x = ListMemoCommentsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListMemoCommentsResponse) String() string { @@ -1500,7 +1456,7 @@ func (*ListMemoCommentsResponse) ProtoMessage() {} func (x *ListMemoCommentsResponse) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1534,11 +1490,9 @@ type ListMemoReactionsRequest struct { func (x *ListMemoReactionsRequest) Reset() { *x = ListMemoReactionsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListMemoReactionsRequest) String() string { @@ -1549,7 +1503,7 @@ func (*ListMemoReactionsRequest) ProtoMessage() {} func (x *ListMemoReactionsRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1581,11 +1535,9 @@ type ListMemoReactionsResponse struct { func (x *ListMemoReactionsResponse) Reset() { *x = ListMemoReactionsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListMemoReactionsResponse) String() string { @@ -1596,7 +1548,7 @@ func (*ListMemoReactionsResponse) ProtoMessage() {} func (x *ListMemoReactionsResponse) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1631,11 +1583,9 @@ type UpsertMemoReactionRequest struct { func (x *UpsertMemoReactionRequest) Reset() { *x = UpsertMemoReactionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpsertMemoReactionRequest) String() string { @@ -1646,7 +1596,7 @@ func (*UpsertMemoReactionRequest) ProtoMessage() {} func (x *UpsertMemoReactionRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1685,11 +1635,9 @@ type DeleteMemoReactionRequest struct { func (x *DeleteMemoReactionRequest) Reset() { *x = DeleteMemoReactionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_memo_service_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_memo_service_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteMemoReactionRequest) String() string { @@ -1700,7 +1648,7 @@ func (*DeleteMemoReactionRequest) ProtoMessage() {} func (x *DeleteMemoReactionRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_memo_service_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2252,320 +2200,6 @@ func file_api_v1_memo_service_proto_init() { file_api_v1_memo_relation_service_proto_init() file_api_v1_reaction_service_proto_init() file_api_v1_resource_service_proto_init() - if !protoimpl.UnsafeEnabled { - file_api_v1_memo_service_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Memo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*MemoProperty); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*Location); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*CreateMemoRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*ListMemosRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*ListMemosResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*GetMemoRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*GetMemoByUidRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*UpdateMemoRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*DeleteMemoRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*RebuildMemoPropertyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*RenameMemoTagRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*DeleteMemoTagRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*SetMemoResourcesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*ListMemoResourcesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*ListMemoResourcesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*SetMemoRelationsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*ListMemoRelationsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*ListMemoRelationsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*CreateMemoCommentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[20].Exporter = func(v any, i int) any { - switch v := v.(*ListMemoCommentsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[21].Exporter = func(v any, i int) any { - switch v := v.(*ListMemoCommentsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[22].Exporter = func(v any, i int) any { - switch v := v.(*ListMemoReactionsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[23].Exporter = func(v any, i int) any { - switch v := v.(*ListMemoReactionsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[24].Exporter = func(v any, i int) any { - switch v := v.(*UpsertMemoReactionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_memo_service_proto_msgTypes[25].Exporter = func(v any, i int) any { - switch v := v.(*DeleteMemoReactionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_api_v1_memo_service_proto_msgTypes[0].OneofWrappers = []any{} file_api_v1_memo_service_proto_msgTypes[3].OneofWrappers = []any{} type x struct{} diff --git a/proto/gen/api/v1/reaction_service.pb.go b/proto/gen/api/v1/reaction_service.pb.go index 3a8a63dd..9d996a96 100644 --- a/proto/gen/api/v1/reaction_service.pb.go +++ b/proto/gen/api/v1/reaction_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: api/v1/reaction_service.proto @@ -20,85 +20,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type Reaction_Type int32 - -const ( - Reaction_TYPE_UNSPECIFIED Reaction_Type = 0 - Reaction_THUMBS_UP Reaction_Type = 1 - Reaction_THUMBS_DOWN Reaction_Type = 2 - Reaction_HEART Reaction_Type = 3 - Reaction_FIRE Reaction_Type = 4 - Reaction_CLAPPING_HANDS Reaction_Type = 5 - Reaction_LAUGH Reaction_Type = 6 - Reaction_OK_HAND Reaction_Type = 7 - Reaction_ROCKET Reaction_Type = 8 - Reaction_EYES Reaction_Type = 9 - Reaction_THINKING_FACE Reaction_Type = 10 - Reaction_CLOWN_FACE Reaction_Type = 11 - Reaction_QUESTION_MARK Reaction_Type = 12 -) - -// Enum value maps for Reaction_Type. -var ( - Reaction_Type_name = map[int32]string{ - 0: "TYPE_UNSPECIFIED", - 1: "THUMBS_UP", - 2: "THUMBS_DOWN", - 3: "HEART", - 4: "FIRE", - 5: "CLAPPING_HANDS", - 6: "LAUGH", - 7: "OK_HAND", - 8: "ROCKET", - 9: "EYES", - 10: "THINKING_FACE", - 11: "CLOWN_FACE", - 12: "QUESTION_MARK", - } - Reaction_Type_value = map[string]int32{ - "TYPE_UNSPECIFIED": 0, - "THUMBS_UP": 1, - "THUMBS_DOWN": 2, - "HEART": 3, - "FIRE": 4, - "CLAPPING_HANDS": 5, - "LAUGH": 6, - "OK_HAND": 7, - "ROCKET": 8, - "EYES": 9, - "THINKING_FACE": 10, - "CLOWN_FACE": 11, - "QUESTION_MARK": 12, - } -) - -func (x Reaction_Type) Enum() *Reaction_Type { - p := new(Reaction_Type) - *p = x - return p -} - -func (x Reaction_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Reaction_Type) Descriptor() protoreflect.EnumDescriptor { - return file_api_v1_reaction_service_proto_enumTypes[0].Descriptor() -} - -func (Reaction_Type) Type() protoreflect.EnumType { - return &file_api_v1_reaction_service_proto_enumTypes[0] -} - -func (x Reaction_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Reaction_Type.Descriptor instead. -func (Reaction_Type) EnumDescriptor() ([]byte, []int) { - return file_api_v1_reaction_service_proto_rawDescGZIP(), []int{0, 0} -} - type Reaction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -107,18 +28,16 @@ type Reaction struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // The name of the creator. // Format: users/{id} - Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` - ContentId string `protobuf:"bytes,3,opt,name=content_id,json=contentId,proto3" json:"content_id,omitempty"` - ReactionType Reaction_Type `protobuf:"varint,4,opt,name=reaction_type,json=reactionType,proto3,enum=memos.api.v1.Reaction_Type" json:"reaction_type,omitempty"` + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` + ContentId string `protobuf:"bytes,3,opt,name=content_id,json=contentId,proto3" json:"content_id,omitempty"` + ReactionType string `protobuf:"bytes,4,opt,name=reaction_type,json=reactionType,proto3" json:"reaction_type,omitempty"` } func (x *Reaction) Reset() { *x = Reaction{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_reaction_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_reaction_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Reaction) String() string { @@ -129,7 +48,7 @@ func (*Reaction) ProtoMessage() {} func (x *Reaction) ProtoReflect() protoreflect.Message { mi := &file_api_v1_reaction_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -165,11 +84,11 @@ func (x *Reaction) GetContentId() string { return "" } -func (x *Reaction) GetReactionType() Reaction_Type { +func (x *Reaction) GetReactionType() string { if x != nil { return x.ReactionType } - return Reaction_TYPE_UNSPECIFIED + return "" } var File_api_v1_reaction_service_proto protoreflect.FileDescriptor @@ -177,41 +96,26 @@ var File_api_v1_reaction_service_proto protoreflect.FileDescriptor var file_api_v1_reaction_service_proto_rawDesc = []byte{ 0x0a, 0x1d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x22, 0xe1, 0x02, - 0x0a, 0x08, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x74, 0x49, 0x64, 0x12, 0x40, 0x0a, 0x0d, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x6d, 0x65, 0x6d, - 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0xc9, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, - 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x48, 0x55, 0x4d, 0x42, 0x53, 0x5f, 0x55, - 0x50, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x48, 0x55, 0x4d, 0x42, 0x53, 0x5f, 0x44, 0x4f, - 0x57, 0x4e, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x48, 0x45, 0x41, 0x52, 0x54, 0x10, 0x03, 0x12, - 0x08, 0x0a, 0x04, 0x46, 0x49, 0x52, 0x45, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4c, 0x41, - 0x50, 0x50, 0x49, 0x4e, 0x47, 0x5f, 0x48, 0x41, 0x4e, 0x44, 0x53, 0x10, 0x05, 0x12, 0x09, 0x0a, - 0x05, 0x4c, 0x41, 0x55, 0x47, 0x48, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x4b, 0x5f, 0x48, - 0x41, 0x4e, 0x44, 0x10, 0x07, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x4f, 0x43, 0x4b, 0x45, 0x54, 0x10, - 0x08, 0x12, 0x08, 0x0a, 0x04, 0x45, 0x59, 0x45, 0x53, 0x10, 0x09, 0x12, 0x11, 0x0a, 0x0d, 0x54, - 0x48, 0x49, 0x4e, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x46, 0x41, 0x43, 0x45, 0x10, 0x0a, 0x12, 0x0e, - 0x0a, 0x0a, 0x43, 0x4c, 0x4f, 0x57, 0x4e, 0x5f, 0x46, 0x41, 0x43, 0x45, 0x10, 0x0b, 0x12, 0x11, - 0x0a, 0x0d, 0x51, 0x55, 0x45, 0x53, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x10, - 0x0c, 0x42, 0xac, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, - 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, - 0xa2, 0x02, 0x03, 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x70, 0x69, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, - 0x69, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, - 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x0e, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x22, 0x78, 0x0a, + 0x08, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x42, 0xac, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, + 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x52, 0x65, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, + 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, + 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, + 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, + 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -226,19 +130,16 @@ func file_api_v1_reaction_service_proto_rawDescGZIP() []byte { return file_api_v1_reaction_service_proto_rawDescData } -var file_api_v1_reaction_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_api_v1_reaction_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_api_v1_reaction_service_proto_goTypes = []any{ - (Reaction_Type)(0), // 0: memos.api.v1.Reaction.Type - (*Reaction)(nil), // 1: memos.api.v1.Reaction + (*Reaction)(nil), // 0: memos.api.v1.Reaction } var file_api_v1_reaction_service_proto_depIdxs = []int32{ - 0, // 0: memos.api.v1.Reaction.reaction_type:type_name -> memos.api.v1.Reaction.Type - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } func init() { file_api_v1_reaction_service_proto_init() } @@ -246,33 +147,18 @@ func file_api_v1_reaction_service_proto_init() { if File_api_v1_reaction_service_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_api_v1_reaction_service_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Reaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_api_v1_reaction_service_proto_rawDesc, - NumEnums: 1, + NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, GoTypes: file_api_v1_reaction_service_proto_goTypes, DependencyIndexes: file_api_v1_reaction_service_proto_depIdxs, - EnumInfos: file_api_v1_reaction_service_proto_enumTypes, MessageInfos: file_api_v1_reaction_service_proto_msgTypes, }.Build() File_api_v1_reaction_service_proto = out.File diff --git a/proto/gen/api/v1/resource_service.pb.go b/proto/gen/api/v1/resource_service.pb.go index 3c08230d..29f254bf 100644 --- a/proto/gen/api/v1/resource_service.pb.go +++ b/proto/gen/api/v1/resource_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: api/v1/resource_service.proto @@ -49,11 +49,9 @@ type Resource struct { func (x *Resource) Reset() { *x = Resource{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_resource_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_resource_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Resource) String() string { @@ -64,7 +62,7 @@ func (*Resource) ProtoMessage() {} func (x *Resource) ProtoReflect() protoreflect.Message { mi := &file_api_v1_resource_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -152,11 +150,9 @@ type CreateResourceRequest struct { func (x *CreateResourceRequest) Reset() { *x = CreateResourceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_resource_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_resource_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateResourceRequest) String() string { @@ -167,7 +163,7 @@ func (*CreateResourceRequest) ProtoMessage() {} func (x *CreateResourceRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_resource_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -197,11 +193,9 @@ type ListResourcesRequest struct { func (x *ListResourcesRequest) Reset() { *x = ListResourcesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_resource_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_resource_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListResourcesRequest) String() string { @@ -212,7 +206,7 @@ func (*ListResourcesRequest) ProtoMessage() {} func (x *ListResourcesRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_resource_service_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -237,11 +231,9 @@ type ListResourcesResponse struct { func (x *ListResourcesResponse) Reset() { *x = ListResourcesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_resource_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_resource_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListResourcesResponse) String() string { @@ -252,7 +244,7 @@ func (*ListResourcesResponse) ProtoMessage() {} func (x *ListResourcesResponse) ProtoReflect() protoreflect.Message { mi := &file_api_v1_resource_service_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -287,11 +279,9 @@ type GetResourceRequest struct { func (x *GetResourceRequest) Reset() { *x = GetResourceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_resource_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_resource_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetResourceRequest) String() string { @@ -302,7 +292,7 @@ func (*GetResourceRequest) ProtoMessage() {} func (x *GetResourceRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_resource_service_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -335,11 +325,9 @@ type GetResourceByUidRequest struct { func (x *GetResourceByUidRequest) Reset() { *x = GetResourceByUidRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_resource_service_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_resource_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetResourceByUidRequest) String() string { @@ -350,7 +338,7 @@ func (*GetResourceByUidRequest) ProtoMessage() {} func (x *GetResourceByUidRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_resource_service_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -389,11 +377,9 @@ type GetResourceBinaryRequest struct { func (x *GetResourceBinaryRequest) Reset() { *x = GetResourceBinaryRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_resource_service_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_resource_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetResourceBinaryRequest) String() string { @@ -404,7 +390,7 @@ func (*GetResourceBinaryRequest) ProtoMessage() {} func (x *GetResourceBinaryRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_resource_service_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -451,11 +437,9 @@ type UpdateResourceRequest struct { func (x *UpdateResourceRequest) Reset() { *x = UpdateResourceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_resource_service_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_resource_service_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateResourceRequest) String() string { @@ -466,7 +450,7 @@ func (*UpdateResourceRequest) ProtoMessage() {} func (x *UpdateResourceRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_resource_service_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -508,11 +492,9 @@ type DeleteResourceRequest struct { func (x *DeleteResourceRequest) Reset() { *x = DeleteResourceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_resource_service_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_resource_service_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteResourceRequest) String() string { @@ -523,7 +505,7 @@ func (*DeleteResourceRequest) ProtoMessage() {} func (x *DeleteResourceRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_resource_service_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -748,116 +730,6 @@ func file_api_v1_resource_service_proto_init() { if File_api_v1_resource_service_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_api_v1_resource_service_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Resource); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_resource_service_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*CreateResourceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_resource_service_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*ListResourcesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_resource_service_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ListResourcesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_resource_service_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*GetResourceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_resource_service_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*GetResourceByUidRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_resource_service_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*GetResourceBinaryRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_resource_service_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*UpdateResourceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_resource_service_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*DeleteResourceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_api_v1_resource_service_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ diff --git a/proto/gen/api/v1/user_service.pb.go b/proto/gen/api/v1/user_service.pb.go index 9f25cf9e..f007908d 100644 --- a/proto/gen/api/v1/user_service.pb.go +++ b/proto/gen/api/v1/user_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: api/v1/user_service.proto @@ -101,11 +101,9 @@ type User struct { func (x *User) Reset() { *x = User{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_user_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_user_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *User) String() string { @@ -116,7 +114,7 @@ func (*User) ProtoMessage() {} func (x *User) ProtoReflect() protoreflect.Message { mi := &file_api_v1_user_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -223,11 +221,9 @@ type ListUsersRequest struct { func (x *ListUsersRequest) Reset() { *x = ListUsersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_user_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_user_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListUsersRequest) String() string { @@ -238,7 +234,7 @@ func (*ListUsersRequest) ProtoMessage() {} func (x *ListUsersRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_user_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -263,11 +259,9 @@ type ListUsersResponse struct { func (x *ListUsersResponse) Reset() { *x = ListUsersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_user_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_user_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListUsersResponse) String() string { @@ -278,7 +272,7 @@ func (*ListUsersResponse) ProtoMessage() {} func (x *ListUsersResponse) ProtoReflect() protoreflect.Message { mi := &file_api_v1_user_service_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -312,11 +306,9 @@ type SearchUsersRequest struct { func (x *SearchUsersRequest) Reset() { *x = SearchUsersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_user_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_user_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchUsersRequest) String() string { @@ -327,7 +319,7 @@ func (*SearchUsersRequest) ProtoMessage() {} func (x *SearchUsersRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_user_service_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -359,11 +351,9 @@ type SearchUsersResponse struct { func (x *SearchUsersResponse) Reset() { *x = SearchUsersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_user_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_user_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchUsersResponse) String() string { @@ -374,7 +364,7 @@ func (*SearchUsersResponse) ProtoMessage() {} func (x *SearchUsersResponse) ProtoReflect() protoreflect.Message { mi := &file_api_v1_user_service_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -408,11 +398,9 @@ type GetUserRequest struct { func (x *GetUserRequest) Reset() { *x = GetUserRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_user_service_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_user_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetUserRequest) String() string { @@ -423,7 +411,7 @@ func (*GetUserRequest) ProtoMessage() {} func (x *GetUserRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_user_service_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -459,11 +447,9 @@ type GetUserAvatarBinaryRequest struct { func (x *GetUserAvatarBinaryRequest) Reset() { *x = GetUserAvatarBinaryRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_user_service_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_user_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetUserAvatarBinaryRequest) String() string { @@ -474,7 +460,7 @@ func (*GetUserAvatarBinaryRequest) ProtoMessage() {} func (x *GetUserAvatarBinaryRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_user_service_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -513,11 +499,9 @@ type CreateUserRequest struct { func (x *CreateUserRequest) Reset() { *x = CreateUserRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_user_service_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_user_service_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateUserRequest) String() string { @@ -528,7 +512,7 @@ func (*CreateUserRequest) ProtoMessage() {} func (x *CreateUserRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_user_service_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -561,11 +545,9 @@ type UpdateUserRequest struct { func (x *UpdateUserRequest) Reset() { *x = UpdateUserRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_user_service_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_user_service_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateUserRequest) String() string { @@ -576,7 +558,7 @@ func (*UpdateUserRequest) ProtoMessage() {} func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_user_service_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -617,11 +599,9 @@ type DeleteUserRequest struct { func (x *DeleteUserRequest) Reset() { *x = DeleteUserRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_user_service_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_user_service_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteUserRequest) String() string { @@ -632,7 +612,7 @@ func (*DeleteUserRequest) ProtoMessage() {} func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_user_service_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -672,11 +652,9 @@ type UserSetting struct { func (x *UserSetting) Reset() { *x = UserSetting{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_user_service_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_user_service_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UserSetting) String() string { @@ -687,7 +665,7 @@ func (*UserSetting) ProtoMessage() {} func (x *UserSetting) ProtoReflect() protoreflect.Message { mi := &file_api_v1_user_service_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -742,11 +720,9 @@ type GetUserSettingRequest struct { func (x *GetUserSettingRequest) Reset() { *x = GetUserSettingRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_user_service_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_user_service_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetUserSettingRequest) String() string { @@ -757,7 +733,7 @@ func (*GetUserSettingRequest) ProtoMessage() {} func (x *GetUserSettingRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_user_service_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -790,11 +766,9 @@ type UpdateUserSettingRequest struct { func (x *UpdateUserSettingRequest) Reset() { *x = UpdateUserSettingRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_user_service_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_user_service_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateUserSettingRequest) String() string { @@ -805,7 +779,7 @@ func (*UpdateUserSettingRequest) ProtoMessage() {} func (x *UpdateUserSettingRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_user_service_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -847,11 +821,9 @@ type UserAccessToken struct { func (x *UserAccessToken) Reset() { *x = UserAccessToken{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_user_service_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_user_service_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UserAccessToken) String() string { @@ -862,7 +834,7 @@ func (*UserAccessToken) ProtoMessage() {} func (x *UserAccessToken) ProtoReflect() protoreflect.Message { mi := &file_api_v1_user_service_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -917,11 +889,9 @@ type ListUserAccessTokensRequest struct { func (x *ListUserAccessTokensRequest) Reset() { *x = ListUserAccessTokensRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_user_service_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_user_service_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListUserAccessTokensRequest) String() string { @@ -932,7 +902,7 @@ func (*ListUserAccessTokensRequest) ProtoMessage() {} func (x *ListUserAccessTokensRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_user_service_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -964,11 +934,9 @@ type ListUserAccessTokensResponse struct { func (x *ListUserAccessTokensResponse) Reset() { *x = ListUserAccessTokensResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_user_service_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_user_service_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListUserAccessTokensResponse) String() string { @@ -979,7 +947,7 @@ func (*ListUserAccessTokensResponse) ProtoMessage() {} func (x *ListUserAccessTokensResponse) ProtoReflect() protoreflect.Message { mi := &file_api_v1_user_service_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1015,11 +983,9 @@ type CreateUserAccessTokenRequest struct { func (x *CreateUserAccessTokenRequest) Reset() { *x = CreateUserAccessTokenRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_user_service_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_user_service_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateUserAccessTokenRequest) String() string { @@ -1030,7 +996,7 @@ func (*CreateUserAccessTokenRequest) ProtoMessage() {} func (x *CreateUserAccessTokenRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_user_service_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1080,11 +1046,9 @@ type DeleteUserAccessTokenRequest struct { func (x *DeleteUserAccessTokenRequest) Reset() { *x = DeleteUserAccessTokenRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_user_service_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_user_service_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteUserAccessTokenRequest) String() string { @@ -1095,7 +1059,7 @@ func (*DeleteUserAccessTokenRequest) ProtoMessage() {} func (x *DeleteUserAccessTokenRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_user_service_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1477,224 +1441,6 @@ func file_api_v1_user_service_proto_init() { return } file_api_v1_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_api_v1_user_service_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*User); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_user_service_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ListUsersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_user_service_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*ListUsersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_user_service_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*SearchUsersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_user_service_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*SearchUsersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_user_service_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*GetUserRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_user_service_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*GetUserAvatarBinaryRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_user_service_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*CreateUserRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_user_service_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*UpdateUserRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_user_service_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*DeleteUserRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_user_service_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*UserSetting); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_user_service_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*GetUserSettingRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_user_service_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*UpdateUserSettingRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_user_service_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*UserAccessToken); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_user_service_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*ListUserAccessTokensRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_user_service_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*ListUserAccessTokensResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_user_service_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*CreateUserAccessTokenRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_user_service_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*DeleteUserAccessTokenRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_api_v1_user_service_proto_msgTypes[16].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ diff --git a/proto/gen/api/v1/webhook_service.pb.go b/proto/gen/api/v1/webhook_service.pb.go index 3a2c83dc..b7801f24 100644 --- a/proto/gen/api/v1/webhook_service.pb.go +++ b/proto/gen/api/v1/webhook_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: api/v1/webhook_service.proto @@ -40,11 +40,9 @@ type Webhook struct { func (x *Webhook) Reset() { *x = Webhook{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_webhook_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_webhook_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Webhook) String() string { @@ -55,7 +53,7 @@ func (*Webhook) ProtoMessage() {} func (x *Webhook) ProtoReflect() protoreflect.Message { mi := &file_api_v1_webhook_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -130,11 +128,9 @@ type CreateWebhookRequest struct { func (x *CreateWebhookRequest) Reset() { *x = CreateWebhookRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_webhook_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_webhook_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateWebhookRequest) String() string { @@ -145,7 +141,7 @@ func (*CreateWebhookRequest) ProtoMessage() {} func (x *CreateWebhookRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_webhook_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -184,11 +180,9 @@ type GetWebhookRequest struct { func (x *GetWebhookRequest) Reset() { *x = GetWebhookRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_webhook_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_webhook_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetWebhookRequest) String() string { @@ -199,7 +193,7 @@ func (*GetWebhookRequest) ProtoMessage() {} func (x *GetWebhookRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_webhook_service_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -231,11 +225,9 @@ type ListWebhooksRequest struct { func (x *ListWebhooksRequest) Reset() { *x = ListWebhooksRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_webhook_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_webhook_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListWebhooksRequest) String() string { @@ -246,7 +238,7 @@ func (*ListWebhooksRequest) ProtoMessage() {} func (x *ListWebhooksRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_webhook_service_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -278,11 +270,9 @@ type ListWebhooksResponse struct { func (x *ListWebhooksResponse) Reset() { *x = ListWebhooksResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_webhook_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_webhook_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListWebhooksResponse) String() string { @@ -293,7 +283,7 @@ func (*ListWebhooksResponse) ProtoMessage() {} func (x *ListWebhooksResponse) ProtoReflect() protoreflect.Message { mi := &file_api_v1_webhook_service_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -326,11 +316,9 @@ type UpdateWebhookRequest struct { func (x *UpdateWebhookRequest) Reset() { *x = UpdateWebhookRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_webhook_service_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_webhook_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateWebhookRequest) String() string { @@ -341,7 +329,7 @@ func (*UpdateWebhookRequest) ProtoMessage() {} func (x *UpdateWebhookRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_webhook_service_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -380,11 +368,9 @@ type DeleteWebhookRequest struct { func (x *DeleteWebhookRequest) Reset() { *x = DeleteWebhookRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_webhook_service_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_webhook_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteWebhookRequest) String() string { @@ -395,7 +381,7 @@ func (*DeleteWebhookRequest) ProtoMessage() {} func (x *DeleteWebhookRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_webhook_service_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -431,11 +417,9 @@ type WebhookRequestPayload struct { func (x *WebhookRequestPayload) Reset() { *x = WebhookRequestPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_webhook_service_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_webhook_service_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WebhookRequestPayload) String() string { @@ -446,7 +430,7 @@ func (*WebhookRequestPayload) ProtoMessage() {} func (x *WebhookRequestPayload) ProtoReflect() protoreflect.Message { mi := &file_api_v1_webhook_service_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -682,104 +666,6 @@ func file_api_v1_webhook_service_proto_init() { } file_api_v1_common_proto_init() file_api_v1_memo_service_proto_init() - if !protoimpl.UnsafeEnabled { - file_api_v1_webhook_service_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Webhook); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_webhook_service_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*CreateWebhookRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_webhook_service_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*GetWebhookRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_webhook_service_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ListWebhooksRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_webhook_service_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*ListWebhooksResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_webhook_service_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*UpdateWebhookRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_webhook_service_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*DeleteWebhookRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_webhook_service_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*WebhookRequestPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/proto/gen/api/v1/workspace_service.pb.go b/proto/gen/api/v1/workspace_service.pb.go index 1f1594c0..a31d3bc4 100644 --- a/proto/gen/api/v1/workspace_service.pb.go +++ b/proto/gen/api/v1/workspace_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: api/v1/workspace_service.proto @@ -39,11 +39,9 @@ type WorkspaceProfile struct { func (x *WorkspaceProfile) Reset() { *x = WorkspaceProfile{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_workspace_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_workspace_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceProfile) String() string { @@ -54,7 +52,7 @@ func (*WorkspaceProfile) ProtoMessage() {} func (x *WorkspaceProfile) ProtoReflect() protoreflect.Message { mi := &file_api_v1_workspace_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -105,11 +103,9 @@ type GetWorkspaceProfileRequest struct { func (x *GetWorkspaceProfileRequest) Reset() { *x = GetWorkspaceProfileRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_workspace_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_workspace_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetWorkspaceProfileRequest) String() string { @@ -120,7 +116,7 @@ func (*GetWorkspaceProfileRequest) ProtoMessage() {} func (x *GetWorkspaceProfileRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_workspace_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -208,32 +204,6 @@ func file_api_v1_workspace_service_proto_init() { if File_api_v1_workspace_service_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_api_v1_workspace_service_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceProfile); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_workspace_service_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*GetWorkspaceProfileRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/proto/gen/api/v1/workspace_setting_service.pb.go b/proto/gen/api/v1/workspace_setting_service.pb.go index 446e5303..54bd3fca 100644 --- a/proto/gen/api/v1/workspace_setting_service.pb.go +++ b/proto/gen/api/v1/workspace_setting_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: api/v1/workspace_setting_service.proto @@ -94,11 +94,9 @@ type WorkspaceSetting struct { func (x *WorkspaceSetting) Reset() { *x = WorkspaceSetting{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_workspace_setting_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_workspace_setting_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceSetting) String() string { @@ -109,7 +107,7 @@ func (*WorkspaceSetting) ProtoMessage() {} func (x *WorkspaceSetting) ProtoReflect() protoreflect.Message { mi := &file_api_v1_workspace_setting_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -208,11 +206,9 @@ type WorkspaceGeneralSetting struct { func (x *WorkspaceGeneralSetting) Reset() { *x = WorkspaceGeneralSetting{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_workspace_setting_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_workspace_setting_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceGeneralSetting) String() string { @@ -223,7 +219,7 @@ func (*WorkspaceGeneralSetting) ProtoMessage() {} func (x *WorkspaceGeneralSetting) ProtoReflect() protoreflect.Message { mi := &file_api_v1_workspace_setting_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -308,11 +304,9 @@ type WorkspaceCustomProfile struct { func (x *WorkspaceCustomProfile) Reset() { *x = WorkspaceCustomProfile{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_workspace_setting_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_workspace_setting_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceCustomProfile) String() string { @@ -323,7 +317,7 @@ func (*WorkspaceCustomProfile) ProtoMessage() {} func (x *WorkspaceCustomProfile) ProtoReflect() protoreflect.Message { mi := &file_api_v1_workspace_setting_service_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -391,11 +385,9 @@ type WorkspaceStorageSetting struct { func (x *WorkspaceStorageSetting) Reset() { *x = WorkspaceStorageSetting{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_workspace_setting_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_workspace_setting_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceStorageSetting) String() string { @@ -406,7 +398,7 @@ func (*WorkspaceStorageSetting) ProtoMessage() {} func (x *WorkspaceStorageSetting) ProtoReflect() protoreflect.Message { mi := &file_api_v1_workspace_setting_service_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -472,15 +464,15 @@ type WorkspaceMemoRelatedSetting struct { EnableLocation bool `protobuf:"varint,8,opt,name=enable_location,json=enableLocation,proto3" json:"enable_location,omitempty"` // default_visibility set the global memos default visibility. DefaultVisibility string `protobuf:"bytes,9,opt,name=default_visibility,json=defaultVisibility,proto3" json:"default_visibility,omitempty"` + // reactions is the list of reactions. + Reactions []string `protobuf:"bytes,10,rep,name=reactions,proto3" json:"reactions,omitempty"` } func (x *WorkspaceMemoRelatedSetting) Reset() { *x = WorkspaceMemoRelatedSetting{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_workspace_setting_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_workspace_setting_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceMemoRelatedSetting) String() string { @@ -491,7 +483,7 @@ func (*WorkspaceMemoRelatedSetting) ProtoMessage() {} func (x *WorkspaceMemoRelatedSetting) ProtoReflect() protoreflect.Message { mi := &file_api_v1_workspace_setting_service_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -569,6 +561,13 @@ func (x *WorkspaceMemoRelatedSetting) GetDefaultVisibility() string { return "" } +func (x *WorkspaceMemoRelatedSetting) GetReactions() []string { + if x != nil { + return x.Reactions + } + return nil +} + type GetWorkspaceSettingRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -581,11 +580,9 @@ type GetWorkspaceSettingRequest struct { func (x *GetWorkspaceSettingRequest) Reset() { *x = GetWorkspaceSettingRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_workspace_setting_service_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_workspace_setting_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetWorkspaceSettingRequest) String() string { @@ -596,7 +593,7 @@ func (*GetWorkspaceSettingRequest) ProtoMessage() {} func (x *GetWorkspaceSettingRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_workspace_setting_service_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -629,11 +626,9 @@ type SetWorkspaceSettingRequest struct { func (x *SetWorkspaceSettingRequest) Reset() { *x = SetWorkspaceSettingRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_workspace_setting_service_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_workspace_setting_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SetWorkspaceSettingRequest) String() string { @@ -644,7 +639,7 @@ func (*SetWorkspaceSettingRequest) ProtoMessage() {} func (x *SetWorkspaceSettingRequest) ProtoReflect() protoreflect.Message { mi := &file_api_v1_workspace_setting_service_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -681,11 +676,9 @@ type WorkspaceStorageSetting_S3Config struct { func (x *WorkspaceStorageSetting_S3Config) Reset() { *x = WorkspaceStorageSetting_S3Config{} - if protoimpl.UnsafeEnabled { - mi := &file_api_v1_workspace_setting_service_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_api_v1_workspace_setting_service_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceStorageSetting_S3Config) String() string { @@ -696,7 +689,7 @@ func (*WorkspaceStorageSetting_S3Config) ProtoMessage() {} func (x *WorkspaceStorageSetting_S3Config) ProtoReflect() protoreflect.Message { mi := &file_api_v1_workspace_setting_service_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -850,7 +843,7 @@ var file_api_v1_workspace_setting_service_proto_rawDesc = []byte{ 0x4f, 0x52, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x10, - 0x02, 0x12, 0x06, 0x0a, 0x02, 0x53, 0x33, 0x10, 0x03, 0x22, 0xde, 0x03, 0x0a, 0x1b, 0x57, 0x6f, + 0x02, 0x12, 0x06, 0x0a, 0x02, 0x53, 0x33, 0x10, 0x03, 0x22, 0xfc, 0x03, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x3c, 0x0a, 0x1a, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x76, 0x69, 0x73, @@ -880,50 +873,52 @@ var file_api_v1_workspace_setting_service_proto_rawDesc = []byte{ 0x62, 0x6c, 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x22, 0x36, 0x0a, 0x1a, 0x47, 0x65, - 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, - 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x22, 0x56, 0x0a, 0x1a, 0x53, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x38, 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, - 0x67, 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0xd9, 0x02, 0x0a, 0x17, 0x57, - 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x93, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x57, 0x6f, - 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x28, - 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, - 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, - 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x32, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, - 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, - 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa7, 0x01, 0x0a, - 0x13, 0x53, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, - 0x74, 0x69, 0x6e, 0x67, 0x12, 0x28, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, - 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, - 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x46, - 0xda, 0x41, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, - 0x3a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x2b, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x7b, 0x73, 0x65, - 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69, - 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, - 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x1c, 0x57, 0x6f, 0x72, + 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x72, + 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x36, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x57, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x22, 0x56, 0x0a, 0x1a, 0x53, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, + 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, + 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0xd9, 0x02, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, - 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2, 0x02, 0x03, - 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69, 0x2e, - 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, - 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x4d, - 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x93, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x28, 0x2e, 0x6d, + 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x57, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x32, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x73, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa7, 0x01, 0x0a, 0x13, 0x53, + 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x12, 0x28, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, + 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x46, 0xda, 0x41, + 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x3a, 0x07, + 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x2b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x7b, 0x73, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, + 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, + 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x1c, 0x57, 0x6f, 0x72, 0x6b, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, + 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x41, + 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x56, 0x31, + 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0xe2, + 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x4d, 0x65, 0x6d, + 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -975,104 +970,6 @@ func file_api_v1_workspace_setting_service_proto_init() { if File_api_v1_workspace_setting_service_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_api_v1_workspace_setting_service_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceSetting); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_workspace_setting_service_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceGeneralSetting); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_workspace_setting_service_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceCustomProfile); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_workspace_setting_service_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceStorageSetting); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_workspace_setting_service_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceMemoRelatedSetting); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_workspace_setting_service_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*GetWorkspaceSettingRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_workspace_setting_service_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*SetWorkspaceSettingRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_v1_workspace_setting_service_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceStorageSetting_S3Config); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_api_v1_workspace_setting_service_proto_msgTypes[0].OneofWrappers = []any{ (*WorkspaceSetting_GeneralSetting)(nil), (*WorkspaceSetting_StorageSetting)(nil), diff --git a/proto/gen/apidocs.swagger.yaml b/proto/gen/apidocs.swagger.yaml index 7d81ab95..ddd31ab1 100644 --- a/proto/gen/apidocs.swagger.yaml +++ b/proto/gen/apidocs.swagger.yaml @@ -2084,6 +2084,11 @@ definitions: defaultVisibility: type: string description: default_visibility set the global memos default visibility. + reactions: + type: array + items: + type: string + description: reactions is the list of reactions. apiv1WorkspaceSetting: type: object properties: @@ -2864,24 +2869,7 @@ definitions: contentId: type: string reactionType: - $ref: '#/definitions/v1ReactionType' - v1ReactionType: - type: string - enum: - - TYPE_UNSPECIFIED - - THUMBS_UP - - THUMBS_DOWN - - HEART - - FIRE - - CLAPPING_HANDS - - LAUGH - - OK_HAND - - ROCKET - - EYES - - THINKING_FACE - - CLOWN_FACE - - QUESTION_MARK - default: TYPE_UNSPECIFIED + type: string v1ReferencedContentNode: type: object properties: diff --git a/proto/gen/store/activity.pb.go b/proto/gen/store/activity.pb.go index 8844dbf4..2aa480f6 100644 --- a/proto/gen/store/activity.pb.go +++ b/proto/gen/store/activity.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: store/activity.proto @@ -31,11 +31,9 @@ type ActivityMemoCommentPayload struct { func (x *ActivityMemoCommentPayload) Reset() { *x = ActivityMemoCommentPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_store_activity_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_activity_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ActivityMemoCommentPayload) String() string { @@ -46,7 +44,7 @@ func (*ActivityMemoCommentPayload) ProtoMessage() {} func (x *ActivityMemoCommentPayload) ProtoReflect() protoreflect.Message { mi := &file_store_activity_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -85,11 +83,9 @@ type ActivityVersionUpdatePayload struct { func (x *ActivityVersionUpdatePayload) Reset() { *x = ActivityVersionUpdatePayload{} - if protoimpl.UnsafeEnabled { - mi := &file_store_activity_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_activity_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ActivityVersionUpdatePayload) String() string { @@ -100,7 +96,7 @@ func (*ActivityVersionUpdatePayload) ProtoMessage() {} func (x *ActivityVersionUpdatePayload) ProtoReflect() protoreflect.Message { mi := &file_store_activity_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -133,11 +129,9 @@ type ActivityPayload struct { func (x *ActivityPayload) Reset() { *x = ActivityPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_store_activity_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_activity_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ActivityPayload) String() string { @@ -148,7 +142,7 @@ func (*ActivityPayload) ProtoMessage() {} func (x *ActivityPayload) ProtoReflect() protoreflect.Message { mi := &file_store_activity_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -249,44 +243,6 @@ func file_store_activity_proto_init() { if File_store_activity_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_store_activity_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ActivityMemoCommentPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_store_activity_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ActivityVersionUpdatePayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_store_activity_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*ActivityPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/proto/gen/store/idp.pb.go b/proto/gen/store/idp.pb.go index 6a48db97..ccf3b362 100644 --- a/proto/gen/store/idp.pb.go +++ b/proto/gen/store/idp.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: store/idp.proto @@ -80,11 +80,9 @@ type IdentityProvider struct { func (x *IdentityProvider) Reset() { *x = IdentityProvider{} - if protoimpl.UnsafeEnabled { - mi := &file_store_idp_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_idp_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IdentityProvider) String() string { @@ -95,7 +93,7 @@ func (*IdentityProvider) ProtoMessage() {} func (x *IdentityProvider) ProtoReflect() protoreflect.Message { mi := &file_store_idp_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -158,11 +156,9 @@ type IdentityProviderConfig struct { func (x *IdentityProviderConfig) Reset() { *x = IdentityProviderConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_store_idp_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_idp_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IdentityProviderConfig) String() string { @@ -173,7 +169,7 @@ func (*IdentityProviderConfig) ProtoMessage() {} func (x *IdentityProviderConfig) ProtoReflect() protoreflect.Message { mi := &file_store_idp_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -224,11 +220,9 @@ type FieldMapping struct { func (x *FieldMapping) Reset() { *x = FieldMapping{} - if protoimpl.UnsafeEnabled { - mi := &file_store_idp_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_idp_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldMapping) String() string { @@ -239,7 +233,7 @@ func (*FieldMapping) ProtoMessage() {} func (x *FieldMapping) ProtoReflect() protoreflect.Message { mi := &file_store_idp_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -291,11 +285,9 @@ type OAuth2Config struct { func (x *OAuth2Config) Reset() { *x = OAuth2Config{} - if protoimpl.UnsafeEnabled { - mi := &file_store_idp_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_idp_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OAuth2Config) String() string { @@ -306,7 +298,7 @@ func (*OAuth2Config) ProtoMessage() {} func (x *OAuth2Config) ProtoReflect() protoreflect.Message { mi := &file_store_idp_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -471,56 +463,6 @@ func file_store_idp_proto_init() { if File_store_idp_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_store_idp_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*IdentityProvider); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_store_idp_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*IdentityProviderConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_store_idp_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*FieldMapping); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_store_idp_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*OAuth2Config); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_store_idp_proto_msgTypes[1].OneofWrappers = []any{ (*IdentityProviderConfig_Oauth2Config)(nil), } diff --git a/proto/gen/store/inbox.pb.go b/proto/gen/store/inbox.pb.go index 6afd863d..d083f929 100644 --- a/proto/gen/store/inbox.pb.go +++ b/proto/gen/store/inbox.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: store/inbox.proto @@ -80,11 +80,9 @@ type InboxMessage struct { func (x *InboxMessage) Reset() { *x = InboxMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_store_inbox_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_inbox_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InboxMessage) String() string { @@ -95,7 +93,7 @@ func (*InboxMessage) ProtoMessage() {} func (x *InboxMessage) ProtoReflect() protoreflect.Message { mi := &file_store_inbox_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -185,20 +183,6 @@ func file_store_inbox_proto_init() { if File_store_inbox_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_store_inbox_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*InboxMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_store_inbox_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ diff --git a/proto/gen/store/memo.pb.go b/proto/gen/store/memo.pb.go index 4ea78a7f..27db70f6 100644 --- a/proto/gen/store/memo.pb.go +++ b/proto/gen/store/memo.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: store/memo.proto @@ -31,11 +31,9 @@ type MemoPayload struct { func (x *MemoPayload) Reset() { *x = MemoPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_store_memo_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_memo_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MemoPayload) String() string { @@ -46,7 +44,7 @@ func (*MemoPayload) ProtoMessage() {} func (x *MemoPayload) ProtoReflect() protoreflect.Message { mi := &file_store_memo_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -89,11 +87,9 @@ type MemoPayload_Property struct { func (x *MemoPayload_Property) Reset() { *x = MemoPayload_Property{} - if protoimpl.UnsafeEnabled { - mi := &file_store_memo_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_memo_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MemoPayload_Property) String() string { @@ -104,7 +100,7 @@ func (*MemoPayload_Property) ProtoMessage() {} func (x *MemoPayload_Property) ProtoReflect() protoreflect.Message { mi := &file_store_memo_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -166,11 +162,9 @@ type MemoPayload_Location struct { func (x *MemoPayload_Location) Reset() { *x = MemoPayload_Location{} - if protoimpl.UnsafeEnabled { - mi := &file_store_memo_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_memo_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MemoPayload_Location) String() string { @@ -181,7 +175,7 @@ func (*MemoPayload_Location) ProtoMessage() {} func (x *MemoPayload_Location) ProtoReflect() protoreflect.Message { mi := &file_store_memo_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -294,44 +288,6 @@ func file_store_memo_proto_init() { if File_store_memo_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_store_memo_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*MemoPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_store_memo_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*MemoPayload_Property); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_store_memo_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*MemoPayload_Location); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/proto/gen/store/reaction.pb.go b/proto/gen/store/reaction.pb.go index fb27fd1d..821c6c58 100644 --- a/proto/gen/store/reaction.pb.go +++ b/proto/gen/store/reaction.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: store/reaction.proto @@ -10,7 +10,6 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -20,133 +19,25 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type ReactionType int32 - -const ( - ReactionType_REACTION_TYPE_UNSPECIFIED ReactionType = 0 - ReactionType_THUMBS_UP ReactionType = 1 - ReactionType_THUMBS_DOWN ReactionType = 2 - ReactionType_HEART ReactionType = 3 - ReactionType_FIRE ReactionType = 4 - ReactionType_CLAPPING_HANDS ReactionType = 5 - ReactionType_LAUGH ReactionType = 6 - ReactionType_OK_HAND ReactionType = 7 - ReactionType_ROCKET ReactionType = 8 - ReactionType_EYES ReactionType = 9 - ReactionType_THINKING_FACE ReactionType = 10 - ReactionType_CLOWN_FACE ReactionType = 11 - ReactionType_QUESTION_MARK ReactionType = 12 -) - -// Enum value maps for ReactionType. -var ( - ReactionType_name = map[int32]string{ - 0: "REACTION_TYPE_UNSPECIFIED", - 1: "THUMBS_UP", - 2: "THUMBS_DOWN", - 3: "HEART", - 4: "FIRE", - 5: "CLAPPING_HANDS", - 6: "LAUGH", - 7: "OK_HAND", - 8: "ROCKET", - 9: "EYES", - 10: "THINKING_FACE", - 11: "CLOWN_FACE", - 12: "QUESTION_MARK", - } - ReactionType_value = map[string]int32{ - "REACTION_TYPE_UNSPECIFIED": 0, - "THUMBS_UP": 1, - "THUMBS_DOWN": 2, - "HEART": 3, - "FIRE": 4, - "CLAPPING_HANDS": 5, - "LAUGH": 6, - "OK_HAND": 7, - "ROCKET": 8, - "EYES": 9, - "THINKING_FACE": 10, - "CLOWN_FACE": 11, - "QUESTION_MARK": 12, - } -) - -func (x ReactionType) Enum() *ReactionType { - p := new(ReactionType) - *p = x - return p -} - -func (x ReactionType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ReactionType) Descriptor() protoreflect.EnumDescriptor { - return file_store_reaction_proto_enumTypes[0].Descriptor() -} - -func (ReactionType) Type() protoreflect.EnumType { - return &file_store_reaction_proto_enumTypes[0] -} - -func (x ReactionType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ReactionType.Descriptor instead. -func (ReactionType) EnumDescriptor() ([]byte, []int) { - return file_store_reaction_proto_rawDescGZIP(), []int{0} -} - var File_store_reaction_proto protoreflect.FileDescriptor var file_store_reaction_proto_rawDesc = []byte{ 0x0a, 0x14, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, - 0x6f, 0x72, 0x65, 0x2a, 0xda, 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x52, 0x45, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, - 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x48, 0x55, 0x4d, 0x42, 0x53, 0x5f, 0x55, 0x50, - 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x48, 0x55, 0x4d, 0x42, 0x53, 0x5f, 0x44, 0x4f, 0x57, - 0x4e, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x48, 0x45, 0x41, 0x52, 0x54, 0x10, 0x03, 0x12, 0x08, - 0x0a, 0x04, 0x46, 0x49, 0x52, 0x45, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4c, 0x41, 0x50, - 0x50, 0x49, 0x4e, 0x47, 0x5f, 0x48, 0x41, 0x4e, 0x44, 0x53, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, - 0x4c, 0x41, 0x55, 0x47, 0x48, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x4b, 0x5f, 0x48, 0x41, - 0x4e, 0x44, 0x10, 0x07, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x4f, 0x43, 0x4b, 0x45, 0x54, 0x10, 0x08, - 0x12, 0x08, 0x0a, 0x04, 0x45, 0x59, 0x45, 0x53, 0x10, 0x09, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x48, - 0x49, 0x4e, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x46, 0x41, 0x43, 0x45, 0x10, 0x0a, 0x12, 0x0e, 0x0a, - 0x0a, 0x43, 0x4c, 0x4f, 0x57, 0x4e, 0x5f, 0x46, 0x41, 0x43, 0x45, 0x10, 0x0b, 0x12, 0x11, 0x0a, - 0x0d, 0x51, 0x55, 0x45, 0x53, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x10, 0x0c, - 0x42, 0x98, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x65, 0x42, 0x0d, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, - 0xa2, 0x02, 0x03, 0x4d, 0x53, 0x58, 0xaa, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x53, - 0x74, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, - 0x72, 0x65, 0xe2, 0x02, 0x17, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x4d, - 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x6f, 0x72, 0x65, 0x42, 0x98, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, + 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x0d, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, + 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x4d, 0x53, 0x58, 0xaa, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, + 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, + 0x53, 0x74, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x17, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, + 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_store_reaction_proto_rawDescOnce sync.Once - file_store_reaction_proto_rawDescData = file_store_reaction_proto_rawDesc -) - -func file_store_reaction_proto_rawDescGZIP() []byte { - file_store_reaction_proto_rawDescOnce.Do(func() { - file_store_reaction_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_reaction_proto_rawDescData) - }) - return file_store_reaction_proto_rawDescData -} - -var file_store_reaction_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_store_reaction_proto_goTypes = []any{ - (ReactionType)(0), // 0: memos.store.ReactionType -} +var file_store_reaction_proto_goTypes = []any{} var file_store_reaction_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type @@ -165,14 +56,13 @@ func file_store_reaction_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_store_reaction_proto_rawDesc, - NumEnums: 1, + NumEnums: 0, NumMessages: 0, NumExtensions: 0, NumServices: 0, }, GoTypes: file_store_reaction_proto_goTypes, DependencyIndexes: file_store_reaction_proto_depIdxs, - EnumInfos: file_store_reaction_proto_enumTypes, }.Build() File_store_reaction_proto = out.File file_store_reaction_proto_rawDesc = nil diff --git a/proto/gen/store/resource.pb.go b/proto/gen/store/resource.pb.go index e797e8b4..67ab5dc7 100644 --- a/proto/gen/store/resource.pb.go +++ b/proto/gen/store/resource.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: store/resource.proto @@ -86,11 +86,9 @@ type ResourcePayload struct { func (x *ResourcePayload) Reset() { *x = ResourcePayload{} - if protoimpl.UnsafeEnabled { - mi := &file_store_resource_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_resource_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResourcePayload) String() string { @@ -101,7 +99,7 @@ func (*ResourcePayload) ProtoMessage() {} func (x *ResourcePayload) ProtoReflect() protoreflect.Message { mi := &file_store_resource_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -155,11 +153,9 @@ type ResourcePayload_S3Object struct { func (x *ResourcePayload_S3Object) Reset() { *x = ResourcePayload_S3Object{} - if protoimpl.UnsafeEnabled { - mi := &file_store_resource_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_resource_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResourcePayload_S3Object) String() string { @@ -170,7 +166,7 @@ func (*ResourcePayload_S3Object) ProtoMessage() {} func (x *ResourcePayload_S3Object) ProtoReflect() protoreflect.Message { mi := &file_store_resource_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -288,32 +284,6 @@ func file_store_resource_proto_init() { return } file_store_workspace_setting_proto_init() - if !protoimpl.UnsafeEnabled { - file_store_resource_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ResourcePayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_store_resource_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ResourcePayload_S3Object); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_store_resource_proto_msgTypes[0].OneofWrappers = []any{ (*ResourcePayload_S3Object_)(nil), } diff --git a/proto/gen/store/user_setting.pb.go b/proto/gen/store/user_setting.pb.go index cd3115a5..d8954f66 100644 --- a/proto/gen/store/user_setting.pb.go +++ b/proto/gen/store/user_setting.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: store/user_setting.proto @@ -97,11 +97,9 @@ type UserSetting struct { func (x *UserSetting) Reset() { *x = UserSetting{} - if protoimpl.UnsafeEnabled { - mi := &file_store_user_setting_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_user_setting_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UserSetting) String() string { @@ -112,7 +110,7 @@ func (*UserSetting) ProtoMessage() {} func (x *UserSetting) ProtoReflect() protoreflect.Message { mi := &file_store_user_setting_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -214,11 +212,9 @@ type AccessTokensUserSetting struct { func (x *AccessTokensUserSetting) Reset() { *x = AccessTokensUserSetting{} - if protoimpl.UnsafeEnabled { - mi := &file_store_user_setting_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_user_setting_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccessTokensUserSetting) String() string { @@ -229,7 +225,7 @@ func (*AccessTokensUserSetting) ProtoMessage() {} func (x *AccessTokensUserSetting) ProtoReflect() protoreflect.Message { mi := &file_store_user_setting_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -265,11 +261,9 @@ type AccessTokensUserSetting_AccessToken struct { func (x *AccessTokensUserSetting_AccessToken) Reset() { *x = AccessTokensUserSetting_AccessToken{} - if protoimpl.UnsafeEnabled { - mi := &file_store_user_setting_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_user_setting_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccessTokensUserSetting_AccessToken) String() string { @@ -280,7 +274,7 @@ func (*AccessTokensUserSetting_AccessToken) ProtoMessage() {} func (x *AccessTokensUserSetting_AccessToken) ProtoReflect() protoreflect.Message { mi := &file_store_user_setting_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -401,44 +395,6 @@ func file_store_user_setting_proto_init() { if File_store_user_setting_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_store_user_setting_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*UserSetting); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_store_user_setting_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*AccessTokensUserSetting); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_store_user_setting_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*AccessTokensUserSetting_AccessToken); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_store_user_setting_proto_msgTypes[0].OneofWrappers = []any{ (*UserSetting_AccessTokens)(nil), (*UserSetting_Locale)(nil), diff --git a/proto/gen/store/workspace_setting.pb.go b/proto/gen/store/workspace_setting.pb.go index c02b72c3..e9343bfa 100644 --- a/proto/gen/store/workspace_setting.pb.go +++ b/proto/gen/store/workspace_setting.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: store/workspace_setting.proto @@ -151,11 +151,9 @@ type WorkspaceSetting struct { func (x *WorkspaceSetting) Reset() { *x = WorkspaceSetting{} - if protoimpl.UnsafeEnabled { - mi := &file_store_workspace_setting_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_workspace_setting_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceSetting) String() string { @@ -166,7 +164,7 @@ func (*WorkspaceSetting) ProtoMessage() {} func (x *WorkspaceSetting) ProtoReflect() protoreflect.Message { mi := &file_store_workspace_setting_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -264,11 +262,9 @@ type WorkspaceBasicSetting struct { func (x *WorkspaceBasicSetting) Reset() { *x = WorkspaceBasicSetting{} - if protoimpl.UnsafeEnabled { - mi := &file_store_workspace_setting_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_workspace_setting_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceBasicSetting) String() string { @@ -279,7 +275,7 @@ func (*WorkspaceBasicSetting) ProtoMessage() {} func (x *WorkspaceBasicSetting) ProtoReflect() protoreflect.Message { mi := &file_store_workspace_setting_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -335,11 +331,9 @@ type WorkspaceGeneralSetting struct { func (x *WorkspaceGeneralSetting) Reset() { *x = WorkspaceGeneralSetting{} - if protoimpl.UnsafeEnabled { - mi := &file_store_workspace_setting_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_workspace_setting_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceGeneralSetting) String() string { @@ -350,7 +344,7 @@ func (*WorkspaceGeneralSetting) ProtoMessage() {} func (x *WorkspaceGeneralSetting) ProtoReflect() protoreflect.Message { mi := &file_store_workspace_setting_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -435,11 +429,9 @@ type WorkspaceCustomProfile struct { func (x *WorkspaceCustomProfile) Reset() { *x = WorkspaceCustomProfile{} - if protoimpl.UnsafeEnabled { - mi := &file_store_workspace_setting_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_workspace_setting_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceCustomProfile) String() string { @@ -450,7 +442,7 @@ func (*WorkspaceCustomProfile) ProtoMessage() {} func (x *WorkspaceCustomProfile) ProtoReflect() protoreflect.Message { mi := &file_store_workspace_setting_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -518,11 +510,9 @@ type WorkspaceStorageSetting struct { func (x *WorkspaceStorageSetting) Reset() { *x = WorkspaceStorageSetting{} - if protoimpl.UnsafeEnabled { - mi := &file_store_workspace_setting_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_workspace_setting_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceStorageSetting) String() string { @@ -533,7 +523,7 @@ func (*WorkspaceStorageSetting) ProtoMessage() {} func (x *WorkspaceStorageSetting) ProtoReflect() protoreflect.Message { mi := &file_store_workspace_setting_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -591,11 +581,9 @@ type StorageS3Config struct { func (x *StorageS3Config) Reset() { *x = StorageS3Config{} - if protoimpl.UnsafeEnabled { - mi := &file_store_workspace_setting_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_workspace_setting_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StorageS3Config) String() string { @@ -606,7 +594,7 @@ func (*StorageS3Config) ProtoMessage() {} func (x *StorageS3Config) ProtoReflect() protoreflect.Message { mi := &file_store_workspace_setting_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -679,15 +667,15 @@ type WorkspaceMemoRelatedSetting struct { EnableLocation bool `protobuf:"varint,8,opt,name=enable_location,json=enableLocation,proto3" json:"enable_location,omitempty"` // default_visibility set the global memos default visibility. DefaultVisibility string `protobuf:"bytes,9,opt,name=default_visibility,json=defaultVisibility,proto3" json:"default_visibility,omitempty"` + // reactions is the list of reactions. + Reactions []string `protobuf:"bytes,10,rep,name=reactions,proto3" json:"reactions,omitempty"` } func (x *WorkspaceMemoRelatedSetting) Reset() { *x = WorkspaceMemoRelatedSetting{} - if protoimpl.UnsafeEnabled { - mi := &file_store_workspace_setting_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_store_workspace_setting_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceMemoRelatedSetting) String() string { @@ -698,7 +686,7 @@ func (*WorkspaceMemoRelatedSetting) ProtoMessage() {} func (x *WorkspaceMemoRelatedSetting) ProtoReflect() protoreflect.Message { mi := &file_store_workspace_setting_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -776,6 +764,13 @@ func (x *WorkspaceMemoRelatedSetting) GetDefaultVisibility() string { return "" } +func (x *WorkspaceMemoRelatedSetting) GetReactions() []string { + if x != nil { + return x.Reactions + } + return nil +} + var File_store_workspace_setting_proto protoreflect.FileDescriptor var file_store_workspace_setting_proto_rawDesc = []byte{ @@ -886,7 +881,7 @@ var file_store_workspace_setting_proto_rawDesc = []byte{ 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, - 0x74, 0x22, 0xde, 0x03, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, + 0x74, 0x22, 0xfc, 0x03, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x3c, 0x0a, 0x1a, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, @@ -916,25 +911,26 @@ var file_store_workspace_setting_proto_rawDesc = []byte{ 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x2a, 0x73, 0x0a, 0x13, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, - 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x21, 0x57, 0x4f, 0x52, - 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x53, 0x45, 0x54, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x4b, - 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x09, 0x0a, 0x05, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x47, - 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x54, 0x4f, 0x52, - 0x41, 0x47, 0x45, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x4d, 0x45, 0x4d, 0x4f, 0x5f, 0x52, 0x45, - 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x04, 0x42, 0xa0, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, - 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x15, 0x57, 0x6f, 0x72, - 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0xa2, - 0x02, 0x03, 0x4d, 0x53, 0x58, 0xaa, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x53, 0x74, - 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, - 0x65, 0xe2, 0x02, 0x17, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x4d, 0x65, - 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x74, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2a, 0x73, 0x0a, 0x13, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x21, 0x57, 0x4f, 0x52, 0x4b, 0x53, + 0x50, 0x41, 0x43, 0x45, 0x5f, 0x53, 0x45, 0x54, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x4b, 0x45, 0x59, + 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, + 0x0a, 0x05, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x45, 0x4e, + 0x45, 0x52, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, + 0x45, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x4d, 0x45, 0x4d, 0x4f, 0x5f, 0x52, 0x45, 0x4c, 0x41, + 0x54, 0x45, 0x44, 0x10, 0x04, 0x42, 0xa0, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, + 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, + 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, + 0x4d, 0x53, 0x58, 0xaa, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x72, + 0x65, 0xca, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xe2, + 0x02, 0x17, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, + 0x73, 0x3a, 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -983,92 +979,6 @@ func file_store_workspace_setting_proto_init() { if File_store_workspace_setting_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_store_workspace_setting_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceSetting); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_store_workspace_setting_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceBasicSetting); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_store_workspace_setting_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceGeneralSetting); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_store_workspace_setting_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceCustomProfile); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_store_workspace_setting_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceStorageSetting); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_store_workspace_setting_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*StorageS3Config); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_store_workspace_setting_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceMemoRelatedSetting); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_store_workspace_setting_proto_msgTypes[0].OneofWrappers = []any{ (*WorkspaceSetting_BasicSetting)(nil), (*WorkspaceSetting_GeneralSetting)(nil), diff --git a/proto/store/reaction.proto b/proto/store/reaction.proto index 0896b11d..5990f042 100644 --- a/proto/store/reaction.proto +++ b/proto/store/reaction.proto @@ -3,19 +3,3 @@ syntax = "proto3"; package memos.store; option go_package = "gen/store"; - -enum ReactionType { - REACTION_TYPE_UNSPECIFIED = 0; - THUMBS_UP = 1; - THUMBS_DOWN = 2; - HEART = 3; - FIRE = 4; - CLAPPING_HANDS = 5; - LAUGH = 6; - OK_HAND = 7; - ROCKET = 8; - EYES = 9; - THINKING_FACE = 10; - CLOWN_FACE = 11; - QUESTION_MARK = 12; -} diff --git a/proto/store/workspace_setting.proto b/proto/store/workspace_setting.proto index fd405c20..4350f587 100644 --- a/proto/store/workspace_setting.proto +++ b/proto/store/workspace_setting.proto @@ -112,4 +112,6 @@ message WorkspaceMemoRelatedSetting { bool enable_location = 8; // default_visibility set the global memos default visibility. string default_visibility = 9; + // reactions is the list of reactions. + repeated string reactions = 10; } diff --git a/server/router/api/v1/reaction_service.go b/server/router/api/v1/reaction_service.go index e7f50590..e6d4570d 100644 --- a/server/router/api/v1/reaction_service.go +++ b/server/router/api/v1/reaction_service.go @@ -9,7 +9,6 @@ import ( "google.golang.org/protobuf/types/known/emptypb" v1pb "github.com/usememos/memos/proto/gen/api/v1" - storepb "github.com/usememos/memos/proto/gen/store" "github.com/usememos/memos/store" ) @@ -42,7 +41,7 @@ func (s *APIV1Service) UpsertMemoReaction(ctx context.Context, request *v1pb.Ups reaction, err := s.Store.UpsertReaction(ctx, &store.Reaction{ CreatorID: user.ID, ContentID: request.Reaction.ContentId, - ReactionType: storepb.ReactionType(request.Reaction.ReactionType), + ReactionType: request.Reaction.ReactionType, }) if err != nil { return nil, status.Errorf(codes.Internal, "failed to upsert reaction") @@ -76,6 +75,6 @@ func (s *APIV1Service) convertReactionFromStore(ctx context.Context, reaction *s Id: reaction.ID, Creator: fmt.Sprintf("%s%d", UserNamePrefix, creator.ID), ContentId: reaction.ContentID, - ReactionType: v1pb.Reaction_Type(reaction.ReactionType), + ReactionType: reaction.ReactionType, }, nil } diff --git a/server/router/api/v1/workspace_setting_service.go b/server/router/api/v1/workspace_setting_service.go index 689267ca..cbf8f19e 100644 --- a/server/router/api/v1/workspace_setting_service.go +++ b/server/router/api/v1/workspace_setting_service.go @@ -233,6 +233,7 @@ func convertWorkspaceMemoRelatedSettingFromStore(setting *storepb.WorkspaceMemoR EnableComment: setting.EnableComment, EnableLocation: setting.EnableLocation, DefaultVisibility: setting.DefaultVisibility, + Reactions: setting.Reactions, } } @@ -250,5 +251,6 @@ func convertWorkspaceMemoRelatedSettingToStore(setting *v1pb.WorkspaceMemoRelate EnableComment: setting.EnableComment, EnableLocation: setting.EnableLocation, DefaultVisibility: setting.DefaultVisibility, + Reactions: setting.Reactions, } } diff --git a/store/db/mysql/reaction.go b/store/db/mysql/reaction.go index ffc48656..d59937e0 100644 --- a/store/db/mysql/reaction.go +++ b/store/db/mysql/reaction.go @@ -6,14 +6,13 @@ import ( "github.com/pkg/errors" - storepb "github.com/usememos/memos/proto/gen/store" "github.com/usememos/memos/store" ) func (d *DB) UpsertReaction(ctx context.Context, upsert *store.Reaction) (*store.Reaction, error) { fields := []string{"`creator_id`", "`content_id`", "`reaction_type`"} placeholder := []string{"?", "?", "?"} - args := []interface{}{upsert.CreatorID, upsert.ContentID, upsert.ReactionType.String()} + args := []interface{}{upsert.CreatorID, upsert.ContentID, upsert.ReactionType} stmt := "INSERT INTO `reaction` (" + strings.Join(fields, ", ") + ") VALUES (" + strings.Join(placeholder, ", ") + ")" result, err := d.db.ExecContext(ctx, stmt, args...) if err != nil { @@ -67,17 +66,15 @@ func (d *DB) ListReactions(ctx context.Context, find *store.FindReaction) ([]*st list := []*store.Reaction{} for rows.Next() { reaction := &store.Reaction{} - var reactionType string if err := rows.Scan( &reaction.ID, &reaction.CreatedTs, &reaction.CreatorID, &reaction.ContentID, - &reactionType, + &reaction.ReactionType, ); err != nil { return nil, err } - reaction.ReactionType = storepb.ReactionType(storepb.ReactionType_value[reactionType]) list = append(list, reaction) } diff --git a/store/db/postgres/reaction.go b/store/db/postgres/reaction.go index f13e2c48..295c34dd 100644 --- a/store/db/postgres/reaction.go +++ b/store/db/postgres/reaction.go @@ -4,13 +4,12 @@ import ( "context" "strings" - storepb "github.com/usememos/memos/proto/gen/store" "github.com/usememos/memos/store" ) func (d *DB) UpsertReaction(ctx context.Context, upsert *store.Reaction) (*store.Reaction, error) { fields := []string{"creator_id", "content_id", "reaction_type"} - args := []interface{}{upsert.CreatorID, upsert.ContentID, upsert.ReactionType.String()} + args := []interface{}{upsert.CreatorID, upsert.ContentID, upsert.ReactionType} stmt := "INSERT INTO reaction (" + strings.Join(fields, ", ") + ") VALUES (" + placeholders(len(args)) + ") RETURNING id, created_ts" if err := d.db.QueryRowContext(ctx, stmt, args...).Scan( &upsert.ID, @@ -55,17 +54,15 @@ func (d *DB) ListReactions(ctx context.Context, find *store.FindReaction) ([]*st list := []*store.Reaction{} for rows.Next() { reaction := &store.Reaction{} - var reactionType string if err := rows.Scan( &reaction.ID, &reaction.CreatedTs, &reaction.CreatorID, &reaction.ContentID, - &reactionType, + &reaction.ReactionType, ); err != nil { return nil, err } - reaction.ReactionType = storepb.ReactionType(storepb.ReactionType_value[reactionType]) list = append(list, reaction) } diff --git a/store/db/sqlite/reaction.go b/store/db/sqlite/reaction.go index 7bbceda0..d95a54c9 100644 --- a/store/db/sqlite/reaction.go +++ b/store/db/sqlite/reaction.go @@ -4,14 +4,13 @@ import ( "context" "strings" - storepb "github.com/usememos/memos/proto/gen/store" "github.com/usememos/memos/store" ) func (d *DB) UpsertReaction(ctx context.Context, upsert *store.Reaction) (*store.Reaction, error) { fields := []string{"`creator_id`", "`content_id`", "`reaction_type`"} placeholder := []string{"?", "?", "?"} - args := []interface{}{upsert.CreatorID, upsert.ContentID, upsert.ReactionType.String()} + args := []interface{}{upsert.CreatorID, upsert.ContentID, upsert.ReactionType} stmt := "INSERT INTO `reaction` (" + strings.Join(fields, ", ") + ") VALUES (" + strings.Join(placeholder, ", ") + ") RETURNING `id`, `created_ts`" if err := d.db.QueryRowContext(ctx, stmt, args...).Scan( &upsert.ID, @@ -56,17 +55,15 @@ func (d *DB) ListReactions(ctx context.Context, find *store.FindReaction) ([]*st list := []*store.Reaction{} for rows.Next() { reaction := &store.Reaction{} - var reactionType string if err := rows.Scan( &reaction.ID, &reaction.CreatedTs, &reaction.CreatorID, &reaction.ContentID, - &reactionType, + &reaction.ReactionType, ); err != nil { return nil, err } - reaction.ReactionType = storepb.ReactionType(storepb.ReactionType_value[reactionType]) list = append(list, reaction) } diff --git a/store/migration/mysql/prod/0.22/04__reactions.sql b/store/migration/mysql/prod/0.22/04__reactions.sql new file mode 100644 index 00000000..70875587 --- /dev/null +++ b/store/migration/mysql/prod/0.22/04__reactions.sql @@ -0,0 +1,26 @@ +UPDATE `reaction` SET `reaction_type` = '👍' WHERE `reaction_type` = 'THUMBS_UP'; +UPDATE `reaction` SET `reaction_type` = '👎' WHERE `reaction_type` = 'THUMBS_DOWN'; +UPDATE `reaction` SET `reaction_type` = '💛' WHERE `reaction_type` = 'HEART'; +UPDATE `reaction` SET `reaction_type` = '🔥' WHERE `reaction_type` = 'FIRE'; +UPDATE `reaction` SET `reaction_type` = '👏' WHERE `reaction_type` = 'CLAPPING_HANDS'; +UPDATE `reaction` SET `reaction_type` = '😂' WHERE `reaction_type` = 'LAUGH'; +UPDATE `reaction` SET `reaction_type` = '👌' WHERE `reaction_type` = 'OK_HAND'; +UPDATE `reaction` SET `reaction_type` = '🚀' WHERE `reaction_type` = 'ROCKET'; +UPDATE `reaction` SET `reaction_type` = '👀' WHERE `reaction_type` = 'EYES'; +UPDATE `reaction` SET `reaction_type` = '🤔' WHERE `reaction_type` = 'THINKING_FACE'; +UPDATE `reaction` SET `reaction_type` = '🤡' WHERE `reaction_type` = 'CLOWN_FACE'; +UPDATE `reaction` SET `reaction_type` = '❓' WHERE `reaction_type` = 'QUESTION_MARK'; + +INSERT INTO `system_setting` (`name`, `value`, `description`) +VALUES ( + 'MEMO_RELATED', + '{"contentLengthLimit":8192,"reactions":["👍","👎","💛","🔥","👏","😂","👌","🚀","👀","🤔","🤡","❓"]}', + '' +) +ON DUPLICATE KEY UPDATE +value = + JSON_SET( + value, + '$.reactions', + JSON_ARRAY('👍', '👎', '💛', '🔥', '👏', '😂', '👌', '🚀', '👀', '🤔', '🤡', '❓') + ); diff --git a/store/migration/postgres/prod/0.22/04__reactions.sql b/store/migration/postgres/prod/0.22/04__reactions.sql new file mode 100644 index 00000000..e0d3e97d --- /dev/null +++ b/store/migration/postgres/prod/0.22/04__reactions.sql @@ -0,0 +1,26 @@ +UPDATE "reaction" SET "reaction_type" = '👍' WHERE "reaction_type" = 'THUMBS_UP'; +UPDATE "reaction" SET "reaction_type" = '👎' WHERE "reaction_type" = 'THUMBS_DOWN'; +UPDATE "reaction" SET "reaction_type" = '💛' WHERE "reaction_type" = 'HEART'; +UPDATE "reaction" SET "reaction_type" = '🔥' WHERE "reaction_type" = 'FIRE'; +UPDATE "reaction" SET "reaction_type" = '👏' WHERE "reaction_type" = 'CLAPPING_HANDS'; +UPDATE "reaction" SET "reaction_type" = '😂' WHERE "reaction_type" = 'LAUGH'; +UPDATE "reaction" SET "reaction_type" = '👌' WHERE "reaction_type" = 'OK_HAND'; +UPDATE "reaction" SET "reaction_type" = '🚀' WHERE "reaction_type" = 'ROCKET'; +UPDATE "reaction" SET "reaction_type" = '👀' WHERE "reaction_type" = 'EYES'; +UPDATE "reaction" SET "reaction_type" = '🤔' WHERE "reaction_type" = 'THINKING_FACE'; +UPDATE "reaction" SET "reaction_type" = '🤡' WHERE "reaction_type" = 'CLOWN_FACE'; +UPDATE "reaction" SET "reaction_type" = '❓' WHERE "reaction_type" = 'QUESTION_MARK'; + +INSERT INTO "system_setting" ("name", "value", "description") +VALUES ( + 'MEMO_RELATED', + '{"contentLengthLimit":8192,"reactions":["👍","👎","💛","🔥","👏","😂","👌","🚀","👀","🤔","🤡","❓"]}', + '' +) +ON CONFLICT("name") DO UPDATE +SET "value" = + jsonb_set( + "system_setting"."value"::jsonb, + '{reactions}', + '["👍","👎","💛","🔥","👏","😂","👌","🚀","👀","🤔","🤡","❓"]'::jsonb + ); diff --git a/store/migration/sqlite/prod/0.22/04__reactions.sql b/store/migration/sqlite/prod/0.22/04__reactions.sql new file mode 100644 index 00000000..395b5567 --- /dev/null +++ b/store/migration/sqlite/prod/0.22/04__reactions.sql @@ -0,0 +1,26 @@ +UPDATE `reaction` SET `reaction_type` = '👍' WHERE `reaction_type` = 'THUMBS_UP'; +UPDATE `reaction` SET `reaction_type` = '👎' WHERE `reaction_type` = 'THUMBS_DOWN'; +UPDATE `reaction` SET `reaction_type` = '💛' WHERE `reaction_type` = 'HEART'; +UPDATE `reaction` SET `reaction_type` = '🔥' WHERE `reaction_type` = 'FIRE'; +UPDATE `reaction` SET `reaction_type` = '👏' WHERE `reaction_type` = 'CLAPPING_HANDS'; +UPDATE `reaction` SET `reaction_type` = '😂' WHERE `reaction_type` = 'LAUGH'; +UPDATE `reaction` SET `reaction_type` = '👌' WHERE `reaction_type` = 'OK_HAND'; +UPDATE `reaction` SET `reaction_type` = '🚀' WHERE `reaction_type` = 'ROCKET'; +UPDATE `reaction` SET `reaction_type` = '👀' WHERE `reaction_type` = 'EYES'; +UPDATE `reaction` SET `reaction_type` = '🤔' WHERE `reaction_type` = 'THINKING_FACE'; +UPDATE `reaction` SET `reaction_type` = '🤡' WHERE `reaction_type` = 'CLOWN_FACE'; +UPDATE `reaction` SET `reaction_type` = '❓' WHERE `reaction_type` = 'QUESTION_MARK'; + +INSERT INTO `system_setting` (`name`, `value`, `description`) +VALUES ( + 'MEMO_RELATED', + '{"contentLengthLimit":8192,"reactions":["👍","👎","💛","🔥","👏","😂","👌","🚀","👀","🤔","🤡","❓"]}', + '' +) +ON CONFLICT(name) DO UPDATE +SET value = + json_set( + value, + '$.reactions', + json_array('👍', '👎', '💛', '🔥', '👏', '😂', '👌', '🚀', '👀', '🤔', '🤡', '❓') + ); diff --git a/store/reaction.go b/store/reaction.go index 72b321e4..bdff7f6b 100644 --- a/store/reaction.go +++ b/store/reaction.go @@ -2,8 +2,6 @@ package store import ( "context" - - storepb "github.com/usememos/memos/proto/gen/store" ) type Reaction struct { @@ -13,7 +11,7 @@ type Reaction struct { // ContentID is the id of the content that the reaction is for. // This can be a memo. e.g. memos/101 ContentID string - ReactionType storepb.ReactionType + ReactionType string } type FindReaction struct { diff --git a/test/store/migrator_test.go b/test/store/migrator_test.go index 374e274e..059f5a69 100644 --- a/test/store/migrator_test.go +++ b/test/store/migrator_test.go @@ -13,5 +13,5 @@ func TestGetCurrentSchemaVersion(t *testing.T) { currentSchemaVersion, err := ts.GetCurrentSchemaVersion() require.NoError(t, err) - require.Equal(t, "0.22.4", currentSchemaVersion) + require.Equal(t, "0.22.5", currentSchemaVersion) } diff --git a/test/store/reaction_test.go b/test/store/reaction_test.go index 32f508d6..142c6a8b 100644 --- a/test/store/reaction_test.go +++ b/test/store/reaction_test.go @@ -6,7 +6,6 @@ import ( "github.com/stretchr/testify/require" - storepb "github.com/usememos/memos/proto/gen/store" "github.com/usememos/memos/store" ) @@ -21,7 +20,7 @@ func TestReactionStore(t *testing.T) { reaction, err := ts.UpsertReaction(ctx, &store.Reaction{ CreatorID: user.ID, ContentID: contentID, - ReactionType: storepb.ReactionType_HEART, + ReactionType: "💗", }) require.NoError(t, err) require.NotNil(t, reaction) diff --git a/web/src/components/MemoReactionListView.tsx b/web/src/components/MemoReactionListView.tsx index 2ad92241..36693700 100644 --- a/web/src/components/MemoReactionListView.tsx +++ b/web/src/components/MemoReactionListView.tsx @@ -3,7 +3,7 @@ import { memo, useEffect, useState } from "react"; import useCurrentUser from "@/hooks/useCurrentUser"; import { useUserStore } from "@/store/v1"; import { Memo } from "@/types/proto/api/v1/memo_service"; -import { Reaction, Reaction_Type } from "@/types/proto/api/v1/reaction_service"; +import { Reaction } from "@/types/proto/api/v1/reaction_service"; import { User } from "@/types/proto/api/v1/user_service"; import ReactionSelector from "./ReactionSelector"; import ReactionView from "./ReactionView"; @@ -17,11 +17,11 @@ const MemoReactionListView = (props: Props) => { const { memo, reactions } = props; const currentUser = useCurrentUser(); const userStore = useUserStore(); - const [reactionGroup, setReactionGroup] = useState>(new Map()); + const [reactionGroup, setReactionGroup] = useState>(new Map()); useEffect(() => { (async () => { - const reactionGroup = new Map(); + const reactionGroup = new Map(); for (const reaction of reactions) { const user = await userStore.getOrFetchUserByName(reaction.creator); const users = reactionGroup.get(reaction.reactionType) || []; diff --git a/web/src/components/ReactionSelector.tsx b/web/src/components/ReactionSelector.tsx index 8973509f..345c15fb 100644 --- a/web/src/components/ReactionSelector.tsx +++ b/web/src/components/ReactionSelector.tsx @@ -5,47 +5,36 @@ import { useRef, useState } from "react"; import useClickAway from "react-use/lib/useClickAway"; import { memoServiceClient } from "@/grpcweb"; import useCurrentUser from "@/hooks/useCurrentUser"; -import { useMemoStore } from "@/store/v1"; +import { useMemoStore, useWorkspaceSettingStore } from "@/store/v1"; import { Memo } from "@/types/proto/api/v1/memo_service"; -import { Reaction_Type } from "@/types/proto/api/v1/reaction_service"; -import { stringifyReactionType } from "./ReactionView"; +import { WorkspaceMemoRelatedSetting } from "@/types/proto/api/v1/workspace_setting_service"; +import { WorkspaceSettingKey } from "@/types/proto/store/workspace_setting"; interface Props { memo: Memo; className?: string; } -const REACTION_TYPES = [ - Reaction_Type.THUMBS_UP, - Reaction_Type.THUMBS_DOWN, - Reaction_Type.HEART, - Reaction_Type.FIRE, - Reaction_Type.CLAPPING_HANDS, - Reaction_Type.LAUGH, - Reaction_Type.OK_HAND, - Reaction_Type.ROCKET, - Reaction_Type.EYES, - Reaction_Type.THINKING_FACE, - Reaction_Type.CLOWN_FACE, - Reaction_Type.QUESTION_MARK, -]; - const ReactionSelector = (props: Props) => { const { memo, className } = props; const currentUser = useCurrentUser(); const memoStore = useMemoStore(); + const workspaceSettingStore = useWorkspaceSettingStore(); const [open, setOpen] = useState(false); const containerRef = useRef(null); + const workspaceMemoRelatedSetting = + workspaceSettingStore.getWorkspaceSettingByKey(WorkspaceSettingKey.MEMO_RELATED)?.memoRelatedSetting || + WorkspaceMemoRelatedSetting.fromPartial({}); useClickAway(containerRef, () => { setOpen(false); }); - const hasReacted = (reactionType: Reaction_Type) => { + const hasReacted = (reactionType: string) => { return memo.reactions.some((r) => r.reactionType === reactionType && r.creator === currentUser?.name); }; - const handleReactionClick = async (reactionType: Reaction_Type) => { + const handleReactionClick = async (reactionType: string) => { try { if (hasReacted(reactionType)) { const reactions = memo.reactions.filter( @@ -82,7 +71,7 @@ const ReactionSelector = (props: Props) => {
- {REACTION_TYPES.map((reactionType) => { + {workspaceMemoRelatedSetting.reactions.map((reactionType) => { return ( { )} onClick={() => handleReactionClick(reactionType)} > - {stringifyReactionType(reactionType)} + {reactionType} ); })} diff --git a/web/src/components/ReactionView.tsx b/web/src/components/ReactionView.tsx index 8218b3b3..3eab5aa9 100644 --- a/web/src/components/ReactionView.tsx +++ b/web/src/components/ReactionView.tsx @@ -4,47 +4,15 @@ import { memoServiceClient } from "@/grpcweb"; import useCurrentUser from "@/hooks/useCurrentUser"; import { useMemoStore } from "@/store/v1"; import { Memo } from "@/types/proto/api/v1/memo_service"; -import { Reaction_Type } from "@/types/proto/api/v1/reaction_service"; import { User } from "@/types/proto/api/v1/user_service"; interface Props { memo: Memo; - reactionType: Reaction_Type; + reactionType: string; users: User[]; } -export const stringifyReactionType = (reactionType: Reaction_Type): string => { - switch (reactionType) { - case Reaction_Type.THUMBS_UP: - return "👍"; - case Reaction_Type.THUMBS_DOWN: - return "👎"; - case Reaction_Type.HEART: - return "💛"; - case Reaction_Type.FIRE: - return "🔥"; - case Reaction_Type.CLAPPING_HANDS: - return "👏"; - case Reaction_Type.LAUGH: - return "😂"; - case Reaction_Type.OK_HAND: - return "👌"; - case Reaction_Type.ROCKET: - return "🚀"; - case Reaction_Type.EYES: - return "👀"; - case Reaction_Type.THINKING_FACE: - return "🤔"; - case Reaction_Type.CLOWN_FACE: - return "🤡"; - case Reaction_Type.QUESTION_MARK: - return "❓"; - default: - return ""; - } -}; - -const stringifyUsers = (users: User[], reactionType: Reaction_Type): string => { +const stringifyUsers = (users: User[], reactionType: string): string => { if (users.length === 0) { return ""; } @@ -104,7 +72,7 @@ const ReactionView = (props: Props) => { )} onClick={handleReactionClick} > - {stringifyReactionType(reactionType)} + {reactionType} {users.length}