From 0ed73f2adb86b61c5784634c81c891918299cf13 Mon Sep 17 00:00:00 2001 From: Alexandr Burdiyan Date: Fri, 6 Dec 2024 13:16:41 +0100 Subject: [PATCH] Codegen --- backend/api/documents/v3alpha/documents.go | 3 + backend/genproto/README.md | 2 - .../genproto/activity/v1alpha/activity.pb.go | 92 +- .../activity/v1alpha/subscriptions.pb.go | 114 +- backend/genproto/daemon/v1alpha/daemon.pb.go | 268 +-- .../documents/v3alpha/access_control.pb.go | 114 +- .../genproto/documents/v3alpha/comments.pb.go | 421 ++-- .../documents/v3alpha/comments_grpc.pb.go | 38 + .../documents/v3alpha/documents.pb.go | 2111 ++++++++++------- .../documents/v3alpha/documents_grpc.pb.go | 87 + .../genproto/entities/v1alpha/entities.pb.go | 422 +--- .../networking/v1alpha/networking.pb.go | 136 +- backend/genproto/p2p/v1alpha/p2p.pb.go | 202 +- backend/genproto/p2p/v1alpha/syncing.pb.go | 92 +- .../genproto/payments/v1alpha/invoices.pb.go | 246 +- .../genproto/payments/v1alpha/wallets.pb.go | 246 +- .../documents/v3alpha/comments_connect.ts | 13 +- .../documents/v3alpha/comments_pb.ts | 82 + .../documents/v3alpha/documents_connect.ts | 29 +- .../documents/v3alpha/documents_pb.ts | 520 +++- proto/activity/v1alpha/go.gensum | 2 +- proto/daemon/v1alpha/go.gensum | 2 +- proto/documents/v3alpha/go.gensum | 4 +- proto/documents/v3alpha/js.gensum | 4 +- proto/entities/v1alpha/go.gensum | 2 +- proto/networking/v1alpha/go.gensum | 2 +- proto/p2p/v1alpha/go.gensum | 2 +- proto/payments/v1alpha/go.gensum | 2 +- 28 files changed, 2626 insertions(+), 2632 deletions(-) delete mode 100644 backend/genproto/README.md diff --git a/backend/api/documents/v3alpha/documents.go b/backend/api/documents/v3alpha/documents.go index 33ca6b1ef..6e8070ed5 100644 --- a/backend/api/documents/v3alpha/documents.go +++ b/backend/api/documents/v3alpha/documents.go @@ -33,6 +33,9 @@ import ( // Server implements Documents API v3. type Server struct { + documents.UnimplementedCommentsServer + documents.UnimplementedDocumentsServer + keys core.KeyStore idx *blob.Index db *sqlitex.Pool diff --git a/backend/genproto/README.md b/backend/genproto/README.md deleted file mode 100644 index d75848e7b..000000000 --- a/backend/genproto/README.md +++ /dev/null @@ -1,2 +0,0 @@ -Content in this directory is auto-generated from the Protobuf definitions inside -[proto](../../proto) directory. diff --git a/backend/genproto/activity/v1alpha/activity.pb.go b/backend/genproto/activity/v1alpha/activity.pb.go index 02ccb37b8..980ba378e 100644 --- a/backend/genproto/activity/v1alpha/activity.pb.go +++ b/backend/genproto/activity/v1alpha/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 v4.24.4 // source: activity/v1alpha/activity.proto @@ -60,11 +60,9 @@ type ListEventsRequest struct { func (x *ListEventsRequest) Reset() { *x = ListEventsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_activity_v1alpha_activity_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_activity_v1alpha_activity_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListEventsRequest) String() string { @@ -75,7 +73,7 @@ func (*ListEventsRequest) ProtoMessage() {} func (x *ListEventsRequest) ProtoReflect() protoreflect.Message { mi := &file_activity_v1alpha_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) @@ -153,11 +151,9 @@ type ListEventsResponse struct { func (x *ListEventsResponse) Reset() { *x = ListEventsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_activity_v1alpha_activity_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_activity_v1alpha_activity_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListEventsResponse) String() string { @@ -168,7 +164,7 @@ func (*ListEventsResponse) ProtoMessage() {} func (x *ListEventsResponse) ProtoReflect() protoreflect.Message { mi := &file_activity_v1alpha_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) @@ -221,11 +217,9 @@ type Event struct { func (x *Event) Reset() { *x = Event{} - if protoimpl.UnsafeEnabled { - mi := &file_activity_v1alpha_activity_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_activity_v1alpha_activity_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Event) String() string { @@ -236,7 +230,7 @@ func (*Event) ProtoMessage() {} func (x *Event) ProtoReflect() protoreflect.Message { mi := &file_activity_v1alpha_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) @@ -321,11 +315,9 @@ type NewBlobEvent struct { func (x *NewBlobEvent) Reset() { *x = NewBlobEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_activity_v1alpha_activity_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_activity_v1alpha_activity_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewBlobEvent) String() string { @@ -336,7 +328,7 @@ func (*NewBlobEvent) ProtoMessage() {} func (x *NewBlobEvent) ProtoReflect() protoreflect.Message { mi := &file_activity_v1alpha_activity_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) @@ -488,56 +480,6 @@ func file_activity_v1alpha_activity_proto_init() { if File_activity_v1alpha_activity_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_activity_v1alpha_activity_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ListEventsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_activity_v1alpha_activity_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ListEventsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_activity_v1alpha_activity_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*Event); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_activity_v1alpha_activity_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*NewBlobEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_activity_v1alpha_activity_proto_msgTypes[2].OneofWrappers = []any{ (*Event_NewBlob)(nil), } diff --git a/backend/genproto/activity/v1alpha/subscriptions.pb.go b/backend/genproto/activity/v1alpha/subscriptions.pb.go index 74d1f2d10..4712460b9 100644 --- a/backend/genproto/activity/v1alpha/subscriptions.pb.go +++ b/backend/genproto/activity/v1alpha/subscriptions.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 v4.24.4 // source: activity/v1alpha/subscriptions.proto @@ -40,11 +40,9 @@ type SubscribeRequest struct { func (x *SubscribeRequest) Reset() { *x = SubscribeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_activity_v1alpha_subscriptions_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_activity_v1alpha_subscriptions_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SubscribeRequest) String() string { @@ -55,7 +53,7 @@ func (*SubscribeRequest) ProtoMessage() {} func (x *SubscribeRequest) ProtoReflect() protoreflect.Message { mi := &file_activity_v1alpha_subscriptions_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) @@ -106,11 +104,9 @@ type UnsubscribeRequest struct { func (x *UnsubscribeRequest) Reset() { *x = UnsubscribeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_activity_v1alpha_subscriptions_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_activity_v1alpha_subscriptions_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UnsubscribeRequest) String() string { @@ -121,7 +117,7 @@ func (*UnsubscribeRequest) ProtoMessage() {} func (x *UnsubscribeRequest) ProtoReflect() protoreflect.Message { mi := &file_activity_v1alpha_subscriptions_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) @@ -164,11 +160,9 @@ type ListSubscriptionsRequest struct { func (x *ListSubscriptionsRequest) Reset() { *x = ListSubscriptionsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_activity_v1alpha_subscriptions_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_activity_v1alpha_subscriptions_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListSubscriptionsRequest) String() string { @@ -179,7 +173,7 @@ func (*ListSubscriptionsRequest) ProtoMessage() {} func (x *ListSubscriptionsRequest) ProtoReflect() protoreflect.Message { mi := &file_activity_v1alpha_subscriptions_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) @@ -222,11 +216,9 @@ type ListSubscriptionsResponse struct { func (x *ListSubscriptionsResponse) Reset() { *x = ListSubscriptionsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_activity_v1alpha_subscriptions_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_activity_v1alpha_subscriptions_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListSubscriptionsResponse) String() string { @@ -237,7 +229,7 @@ func (*ListSubscriptionsResponse) ProtoMessage() {} func (x *ListSubscriptionsResponse) ProtoReflect() protoreflect.Message { mi := &file_activity_v1alpha_subscriptions_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) @@ -286,11 +278,9 @@ type Subscription struct { func (x *Subscription) Reset() { *x = Subscription{} - if protoimpl.UnsafeEnabled { - mi := &file_activity_v1alpha_subscriptions_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_activity_v1alpha_subscriptions_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Subscription) String() string { @@ -301,7 +291,7 @@ func (*Subscription) ProtoMessage() {} func (x *Subscription) ProtoReflect() protoreflect.Message { mi := &file_activity_v1alpha_subscriptions_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) @@ -458,68 +448,6 @@ func file_activity_v1alpha_subscriptions_proto_init() { if File_activity_v1alpha_subscriptions_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_activity_v1alpha_subscriptions_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*SubscribeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_activity_v1alpha_subscriptions_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*UnsubscribeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_activity_v1alpha_subscriptions_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*ListSubscriptionsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_activity_v1alpha_subscriptions_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ListSubscriptionsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_activity_v1alpha_subscriptions_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*Subscription); 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/backend/genproto/daemon/v1alpha/daemon.pb.go b/backend/genproto/daemon/v1alpha/daemon.pb.go index 820a41695..9764c206d 100644 --- a/backend/genproto/daemon/v1alpha/daemon.pb.go +++ b/backend/genproto/daemon/v1alpha/daemon.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 v4.24.4 // source: daemon/v1alpha/daemon.proto @@ -90,11 +90,9 @@ type GenMnemonicRequest struct { func (x *GenMnemonicRequest) Reset() { *x = GenMnemonicRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_daemon_v1alpha_daemon_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_daemon_v1alpha_daemon_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GenMnemonicRequest) String() string { @@ -105,7 +103,7 @@ func (*GenMnemonicRequest) ProtoMessage() {} func (x *GenMnemonicRequest) ProtoReflect() protoreflect.Message { mi := &file_daemon_v1alpha_daemon_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) @@ -140,11 +138,9 @@ type GenMnemonicResponse struct { func (x *GenMnemonicResponse) Reset() { *x = GenMnemonicResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_daemon_v1alpha_daemon_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_daemon_v1alpha_daemon_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GenMnemonicResponse) String() string { @@ -155,7 +151,7 @@ func (*GenMnemonicResponse) ProtoMessage() {} func (x *GenMnemonicResponse) ProtoReflect() protoreflect.Message { mi := &file_daemon_v1alpha_daemon_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) @@ -194,11 +190,9 @@ type RegisterKeyRequest struct { func (x *RegisterKeyRequest) Reset() { *x = RegisterKeyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_daemon_v1alpha_daemon_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_daemon_v1alpha_daemon_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegisterKeyRequest) String() string { @@ -209,7 +203,7 @@ func (*RegisterKeyRequest) ProtoMessage() {} func (x *RegisterKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_daemon_v1alpha_daemon_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) @@ -254,11 +248,9 @@ type GetInfoRequest struct { func (x *GetInfoRequest) Reset() { *x = GetInfoRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_daemon_v1alpha_daemon_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_daemon_v1alpha_daemon_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetInfoRequest) String() string { @@ -269,7 +261,7 @@ func (*GetInfoRequest) ProtoMessage() {} func (x *GetInfoRequest) ProtoReflect() protoreflect.Message { mi := &file_daemon_v1alpha_daemon_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) @@ -293,11 +285,9 @@ type ForceSyncRequest struct { func (x *ForceSyncRequest) Reset() { *x = ForceSyncRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_daemon_v1alpha_daemon_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_daemon_v1alpha_daemon_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ForceSyncRequest) String() string { @@ -308,7 +298,7 @@ func (*ForceSyncRequest) ProtoMessage() {} func (x *ForceSyncRequest) ProtoReflect() protoreflect.Message { mi := &file_daemon_v1alpha_daemon_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) @@ -332,11 +322,9 @@ type DeleteAllKeysRequest struct { func (x *DeleteAllKeysRequest) Reset() { *x = DeleteAllKeysRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_daemon_v1alpha_daemon_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_daemon_v1alpha_daemon_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteAllKeysRequest) String() string { @@ -347,7 +335,7 @@ func (*DeleteAllKeysRequest) ProtoMessage() {} func (x *DeleteAllKeysRequest) ProtoReflect() protoreflect.Message { mi := &file_daemon_v1alpha_daemon_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) @@ -371,11 +359,9 @@ type ListKeysRequest struct { func (x *ListKeysRequest) Reset() { *x = ListKeysRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_daemon_v1alpha_daemon_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_daemon_v1alpha_daemon_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListKeysRequest) String() string { @@ -386,7 +372,7 @@ func (*ListKeysRequest) ProtoMessage() {} func (x *ListKeysRequest) ProtoReflect() protoreflect.Message { mi := &file_daemon_v1alpha_daemon_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) @@ -413,11 +399,9 @@ type ListKeysResponse struct { func (x *ListKeysResponse) Reset() { *x = ListKeysResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_daemon_v1alpha_daemon_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_daemon_v1alpha_daemon_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListKeysResponse) String() string { @@ -428,7 +412,7 @@ func (*ListKeysResponse) ProtoMessage() {} func (x *ListKeysResponse) ProtoReflect() protoreflect.Message { mi := &file_daemon_v1alpha_daemon_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) @@ -464,11 +448,9 @@ type UpdateKeyRequest struct { func (x *UpdateKeyRequest) Reset() { *x = UpdateKeyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_daemon_v1alpha_daemon_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_daemon_v1alpha_daemon_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateKeyRequest) String() string { @@ -479,7 +461,7 @@ func (*UpdateKeyRequest) ProtoMessage() {} func (x *UpdateKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_daemon_v1alpha_daemon_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) @@ -520,11 +502,9 @@ type DeleteKeyRequest struct { func (x *DeleteKeyRequest) Reset() { *x = DeleteKeyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_daemon_v1alpha_daemon_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_daemon_v1alpha_daemon_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteKeyRequest) String() string { @@ -535,7 +515,7 @@ func (*DeleteKeyRequest) ProtoMessage() {} func (x *DeleteKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_daemon_v1alpha_daemon_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) @@ -575,11 +555,9 @@ type Info struct { func (x *Info) Reset() { *x = Info{} - if protoimpl.UnsafeEnabled { - mi := &file_daemon_v1alpha_daemon_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_daemon_v1alpha_daemon_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Info) String() string { @@ -590,7 +568,7 @@ func (*Info) ProtoMessage() {} func (x *Info) ProtoReflect() protoreflect.Message { mi := &file_daemon_v1alpha_daemon_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) @@ -650,11 +628,9 @@ type NamedKey struct { func (x *NamedKey) Reset() { *x = NamedKey{} - if protoimpl.UnsafeEnabled { - mi := &file_daemon_v1alpha_daemon_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_daemon_v1alpha_daemon_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NamedKey) String() string { @@ -665,7 +641,7 @@ func (*NamedKey) ProtoMessage() {} func (x *NamedKey) ProtoReflect() protoreflect.Message { mi := &file_daemon_v1alpha_daemon_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) @@ -876,152 +852,6 @@ func file_daemon_v1alpha_daemon_proto_init() { if File_daemon_v1alpha_daemon_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_daemon_v1alpha_daemon_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*GenMnemonicRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_daemon_v1alpha_daemon_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*GenMnemonicResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_daemon_v1alpha_daemon_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*RegisterKeyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_daemon_v1alpha_daemon_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*GetInfoRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_daemon_v1alpha_daemon_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*ForceSyncRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_daemon_v1alpha_daemon_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*DeleteAllKeysRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_daemon_v1alpha_daemon_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*ListKeysRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_daemon_v1alpha_daemon_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*ListKeysResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_daemon_v1alpha_daemon_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*UpdateKeyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_daemon_v1alpha_daemon_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*DeleteKeyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_daemon_v1alpha_daemon_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*Info); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_daemon_v1alpha_daemon_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*NamedKey); 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/backend/genproto/documents/v3alpha/access_control.pb.go b/backend/genproto/documents/v3alpha/access_control.pb.go index e6de13cca..c71cce8ab 100644 --- a/backend/genproto/documents/v3alpha/access_control.pb.go +++ b/backend/genproto/documents/v3alpha/access_control.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 v4.24.4 // source: documents/v3alpha/access_control.proto @@ -93,11 +93,9 @@ type ListCapabilitiesRequest struct { func (x *ListCapabilitiesRequest) Reset() { *x = ListCapabilitiesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_access_control_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_access_control_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListCapabilitiesRequest) String() string { @@ -108,7 +106,7 @@ func (*ListCapabilitiesRequest) ProtoMessage() {} func (x *ListCapabilitiesRequest) ProtoReflect() protoreflect.Message { mi := &file_documents_v3alpha_access_control_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) @@ -172,11 +170,9 @@ type ListCapabilitiesResponse struct { func (x *ListCapabilitiesResponse) Reset() { *x = ListCapabilitiesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_access_control_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_access_control_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListCapabilitiesResponse) String() string { @@ -187,7 +183,7 @@ func (*ListCapabilitiesResponse) ProtoMessage() {} func (x *ListCapabilitiesResponse) ProtoReflect() protoreflect.Message { mi := &file_documents_v3alpha_access_control_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) @@ -241,11 +237,9 @@ type CreateCapabilityRequest struct { func (x *CreateCapabilityRequest) Reset() { *x = CreateCapabilityRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_access_control_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_access_control_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateCapabilityRequest) String() string { @@ -256,7 +250,7 @@ func (*CreateCapabilityRequest) ProtoMessage() {} func (x *CreateCapabilityRequest) ProtoReflect() protoreflect.Message { mi := &file_documents_v3alpha_access_control_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) @@ -325,11 +319,9 @@ type GetCapabilityRequest struct { func (x *GetCapabilityRequest) Reset() { *x = GetCapabilityRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_access_control_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_access_control_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetCapabilityRequest) String() string { @@ -340,7 +332,7 @@ func (*GetCapabilityRequest) ProtoMessage() {} func (x *GetCapabilityRequest) ProtoReflect() protoreflect.Message { mi := &file_documents_v3alpha_access_control_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) @@ -391,11 +383,9 @@ type Capability struct { func (x *Capability) Reset() { *x = Capability{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_access_control_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_access_control_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Capability) String() string { @@ -406,7 +396,7 @@ func (*Capability) ProtoMessage() {} func (x *Capability) ProtoReflect() protoreflect.Message { mi := &file_documents_v3alpha_access_control_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) @@ -618,68 +608,6 @@ func file_documents_v3alpha_access_control_proto_init() { if File_documents_v3alpha_access_control_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_documents_v3alpha_access_control_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ListCapabilitiesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_access_control_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ListCapabilitiesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_access_control_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*CreateCapabilityRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_access_control_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*GetCapabilityRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_access_control_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*Capability); 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/backend/genproto/documents/v3alpha/comments.pb.go b/backend/genproto/documents/v3alpha/comments.pb.go index 28c8f1d54..db5c0afea 100644 --- a/backend/genproto/documents/v3alpha/comments.pb.go +++ b/backend/genproto/documents/v3alpha/comments.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 v4.24.4 // source: documents/v3alpha/comments.proto @@ -48,11 +48,9 @@ type CreateCommentRequest struct { func (x *CreateCommentRequest) Reset() { *x = CreateCommentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_comments_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_comments_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateCommentRequest) String() string { @@ -63,7 +61,7 @@ func (*CreateCommentRequest) ProtoMessage() {} func (x *CreateCommentRequest) ProtoReflect() protoreflect.Message { mi := &file_documents_v3alpha_comments_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) @@ -139,11 +137,9 @@ type GetCommentRequest struct { func (x *GetCommentRequest) Reset() { *x = GetCommentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_comments_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_comments_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetCommentRequest) String() string { @@ -154,7 +150,7 @@ func (*GetCommentRequest) ProtoMessage() {} func (x *GetCommentRequest) ProtoReflect() protoreflect.Message { mi := &file_documents_v3alpha_comments_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) @@ -176,6 +172,100 @@ func (x *GetCommentRequest) GetId() string { return "" } +// Request to get multiple comments. +type BatchGetCommentsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. List of comment IDs to retrieve. + Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` +} + +func (x *BatchGetCommentsRequest) Reset() { + *x = BatchGetCommentsRequest{} + mi := &file_documents_v3alpha_comments_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BatchGetCommentsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchGetCommentsRequest) ProtoMessage() {} + +func (x *BatchGetCommentsRequest) ProtoReflect() protoreflect.Message { + mi := &file_documents_v3alpha_comments_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchGetCommentsRequest.ProtoReflect.Descriptor instead. +func (*BatchGetCommentsRequest) Descriptor() ([]byte, []int) { + return file_documents_v3alpha_comments_proto_rawDescGZIP(), []int{2} +} + +func (x *BatchGetCommentsRequest) GetIds() []string { + if x != nil { + return x.Ids + } + return nil +} + +// Response with multiple comments. +type BatchGetCommentsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // List of comments requested. + Comments []*Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` +} + +func (x *BatchGetCommentsResponse) Reset() { + *x = BatchGetCommentsResponse{} + mi := &file_documents_v3alpha_comments_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BatchGetCommentsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchGetCommentsResponse) ProtoMessage() {} + +func (x *BatchGetCommentsResponse) ProtoReflect() protoreflect.Message { + mi := &file_documents_v3alpha_comments_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchGetCommentsResponse.ProtoReflect.Descriptor instead. +func (*BatchGetCommentsResponse) Descriptor() ([]byte, []int) { + return file_documents_v3alpha_comments_proto_rawDescGZIP(), []int{3} +} + +func (x *BatchGetCommentsResponse) GetComments() []*Comment { + if x != nil { + return x.Comments + } + return nil +} + // Request to list comments. type ListCommentsRequest struct { state protoimpl.MessageState @@ -194,11 +284,9 @@ type ListCommentsRequest struct { func (x *ListCommentsRequest) Reset() { *x = ListCommentsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_comments_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_comments_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListCommentsRequest) String() string { @@ -208,8 +296,8 @@ func (x *ListCommentsRequest) String() string { func (*ListCommentsRequest) ProtoMessage() {} func (x *ListCommentsRequest) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_comments_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_comments_proto_msgTypes[4] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -221,7 +309,7 @@ func (x *ListCommentsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListCommentsRequest.ProtoReflect.Descriptor instead. func (*ListCommentsRequest) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_comments_proto_rawDescGZIP(), []int{2} + return file_documents_v3alpha_comments_proto_rawDescGZIP(), []int{4} } func (x *ListCommentsRequest) GetTargetAccount() string { @@ -266,11 +354,9 @@ type ListCommentsResponse struct { func (x *ListCommentsResponse) Reset() { *x = ListCommentsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_comments_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_comments_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListCommentsResponse) String() string { @@ -280,8 +366,8 @@ func (x *ListCommentsResponse) String() string { func (*ListCommentsResponse) ProtoMessage() {} func (x *ListCommentsResponse) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_comments_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_comments_proto_msgTypes[5] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -293,7 +379,7 @@ func (x *ListCommentsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListCommentsResponse.ProtoReflect.Descriptor instead. func (*ListCommentsResponse) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_comments_proto_rawDescGZIP(), []int{3} + return file_documents_v3alpha_comments_proto_rawDescGZIP(), []int{5} } func (x *ListCommentsResponse) GetComments() []*Comment { @@ -341,11 +427,9 @@ type Comment struct { func (x *Comment) Reset() { *x = Comment{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_comments_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_comments_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Comment) String() string { @@ -355,8 +439,8 @@ func (x *Comment) String() string { func (*Comment) ProtoMessage() {} func (x *Comment) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_comments_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_comments_proto_msgTypes[6] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -368,7 +452,7 @@ func (x *Comment) ProtoReflect() protoreflect.Message { // Deprecated: Use Comment.ProtoReflect.Descriptor instead. func (*Comment) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_comments_proto_rawDescGZIP(), []int{4} + return file_documents_v3alpha_comments_proto_rawDescGZIP(), []int{6} } func (x *Comment) GetId() string { @@ -473,74 +557,90 @@ var file_documents_v3alpha_comments_proto_rawDesc = []byte{ 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x22, 0x23, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x99, 0x01, - 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1b, 0x0a, - 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, - 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x7f, 0x0a, 0x14, 0x4c, 0x69, 0x73, - 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x3f, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, - 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, - 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, - 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x82, 0x03, 0x0a, 0x07, 0x43, - 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, - 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x25, - 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, - 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x68, 0x72, 0x65, - 0x61, 0x64, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x5f, - 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, - 0x70, 0x6c, 0x79, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x12, 0x3f, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, - 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, - 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, - 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, - 0x1e, 0x0a, 0x0a, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x32, - 0xc7, 0x02, 0x0a, 0x08, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x66, 0x0a, 0x0d, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x30, 0x2e, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x2b, 0x0a, + 0x17, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0x5b, 0x0a, 0x18, 0x42, 0x61, + 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, + 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, + 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x99, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, + 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x25, 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, + 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x22, 0x7f, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x08, 0x63, + 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, - 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x6f, 0x6d, - 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x60, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, - 0x6e, 0x74, 0x12, 0x2d, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, - 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, - 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, - 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, - 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x71, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, - 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, - 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, + 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x65, + 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, + 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x82, 0x03, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x1f, 0x0a, 0x0b, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x52, 0x6f, 0x6f, 0x74, + 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x50, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x3f, 0x0a, 0x07, 0x63, + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, + 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, + 0x6f, 0x64, 0x65, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x0b, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x61, 0x70, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, + 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x32, 0xc6, 0x03, 0x0a, 0x08, 0x43, 0x6f, + 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x66, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x30, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x33, 0x5a, 0x31, 0x73, 0x65, 0x65, - 0x64, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x33, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, + 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, + 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x60, + 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x2e, 0x63, + 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, + 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x6f, + 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, + 0x12, 0x7d, 0x0a, 0x10, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x12, 0x33, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, + 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, + 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, + 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x43, + 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x71, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, + 0x2f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x30, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x42, 0x33, 0x5a, 0x31, 0x73, 0x65, 0x65, 0x64, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, + 0x6e, 0x64, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x64, 0x6f, 0x63, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x64, 0x6f, + 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -555,32 +655,37 @@ func file_documents_v3alpha_comments_proto_rawDescGZIP() []byte { return file_documents_v3alpha_comments_proto_rawDescData } -var file_documents_v3alpha_comments_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_documents_v3alpha_comments_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_documents_v3alpha_comments_proto_goTypes = []any{ - (*CreateCommentRequest)(nil), // 0: com.seed.documents.v3alpha.CreateCommentRequest - (*GetCommentRequest)(nil), // 1: com.seed.documents.v3alpha.GetCommentRequest - (*ListCommentsRequest)(nil), // 2: com.seed.documents.v3alpha.ListCommentsRequest - (*ListCommentsResponse)(nil), // 3: com.seed.documents.v3alpha.ListCommentsResponse - (*Comment)(nil), // 4: com.seed.documents.v3alpha.Comment - (*BlockNode)(nil), // 5: com.seed.documents.v3alpha.BlockNode - (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp + (*CreateCommentRequest)(nil), // 0: com.seed.documents.v3alpha.CreateCommentRequest + (*GetCommentRequest)(nil), // 1: com.seed.documents.v3alpha.GetCommentRequest + (*BatchGetCommentsRequest)(nil), // 2: com.seed.documents.v3alpha.BatchGetCommentsRequest + (*BatchGetCommentsResponse)(nil), // 3: com.seed.documents.v3alpha.BatchGetCommentsResponse + (*ListCommentsRequest)(nil), // 4: com.seed.documents.v3alpha.ListCommentsRequest + (*ListCommentsResponse)(nil), // 5: com.seed.documents.v3alpha.ListCommentsResponse + (*Comment)(nil), // 6: com.seed.documents.v3alpha.Comment + (*BlockNode)(nil), // 7: com.seed.documents.v3alpha.BlockNode + (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp } var file_documents_v3alpha_comments_proto_depIdxs = []int32{ - 5, // 0: com.seed.documents.v3alpha.CreateCommentRequest.content:type_name -> com.seed.documents.v3alpha.BlockNode - 4, // 1: com.seed.documents.v3alpha.ListCommentsResponse.comments:type_name -> com.seed.documents.v3alpha.Comment - 5, // 2: com.seed.documents.v3alpha.Comment.content:type_name -> com.seed.documents.v3alpha.BlockNode - 6, // 3: com.seed.documents.v3alpha.Comment.create_time:type_name -> google.protobuf.Timestamp - 0, // 4: com.seed.documents.v3alpha.Comments.CreateComment:input_type -> com.seed.documents.v3alpha.CreateCommentRequest - 1, // 5: com.seed.documents.v3alpha.Comments.GetComment:input_type -> com.seed.documents.v3alpha.GetCommentRequest - 2, // 6: com.seed.documents.v3alpha.Comments.ListComments:input_type -> com.seed.documents.v3alpha.ListCommentsRequest - 4, // 7: com.seed.documents.v3alpha.Comments.CreateComment:output_type -> com.seed.documents.v3alpha.Comment - 4, // 8: com.seed.documents.v3alpha.Comments.GetComment:output_type -> com.seed.documents.v3alpha.Comment - 3, // 9: com.seed.documents.v3alpha.Comments.ListComments:output_type -> com.seed.documents.v3alpha.ListCommentsResponse - 7, // [7:10] is the sub-list for method output_type - 4, // [4:7] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 7, // 0: com.seed.documents.v3alpha.CreateCommentRequest.content:type_name -> com.seed.documents.v3alpha.BlockNode + 6, // 1: com.seed.documents.v3alpha.BatchGetCommentsResponse.comments:type_name -> com.seed.documents.v3alpha.Comment + 6, // 2: com.seed.documents.v3alpha.ListCommentsResponse.comments:type_name -> com.seed.documents.v3alpha.Comment + 7, // 3: com.seed.documents.v3alpha.Comment.content:type_name -> com.seed.documents.v3alpha.BlockNode + 8, // 4: com.seed.documents.v3alpha.Comment.create_time:type_name -> google.protobuf.Timestamp + 0, // 5: com.seed.documents.v3alpha.Comments.CreateComment:input_type -> com.seed.documents.v3alpha.CreateCommentRequest + 1, // 6: com.seed.documents.v3alpha.Comments.GetComment:input_type -> com.seed.documents.v3alpha.GetCommentRequest + 2, // 7: com.seed.documents.v3alpha.Comments.BatchGetComments:input_type -> com.seed.documents.v3alpha.BatchGetCommentsRequest + 4, // 8: com.seed.documents.v3alpha.Comments.ListComments:input_type -> com.seed.documents.v3alpha.ListCommentsRequest + 6, // 9: com.seed.documents.v3alpha.Comments.CreateComment:output_type -> com.seed.documents.v3alpha.Comment + 6, // 10: com.seed.documents.v3alpha.Comments.GetComment:output_type -> com.seed.documents.v3alpha.Comment + 3, // 11: com.seed.documents.v3alpha.Comments.BatchGetComments:output_type -> com.seed.documents.v3alpha.BatchGetCommentsResponse + 5, // 12: com.seed.documents.v3alpha.Comments.ListComments:output_type -> com.seed.documents.v3alpha.ListCommentsResponse + 9, // [9:13] is the sub-list for method output_type + 5, // [5:9] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name } func init() { file_documents_v3alpha_comments_proto_init() } @@ -589,75 +694,13 @@ func file_documents_v3alpha_comments_proto_init() { return } file_documents_v3alpha_documents_proto_init() - if !protoimpl.UnsafeEnabled { - file_documents_v3alpha_comments_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*CreateCommentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_comments_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*GetCommentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_comments_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*ListCommentsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_comments_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ListCommentsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_comments_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*Comment); 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_documents_v3alpha_comments_proto_rawDesc, NumEnums: 0, - NumMessages: 5, + NumMessages: 7, NumExtensions: 0, NumServices: 1, }, diff --git a/backend/genproto/documents/v3alpha/comments_grpc.pb.go b/backend/genproto/documents/v3alpha/comments_grpc.pb.go index f05dd9418..e778daf92 100644 --- a/backend/genproto/documents/v3alpha/comments_grpc.pb.go +++ b/backend/genproto/documents/v3alpha/comments_grpc.pb.go @@ -26,6 +26,8 @@ type CommentsClient interface { CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*Comment, error) // Gets a single comment by ID. GetComment(ctx context.Context, in *GetCommentRequest, opts ...grpc.CallOption) (*Comment, error) + // Get multiple comments by ID. + BatchGetComments(ctx context.Context, in *BatchGetCommentsRequest, opts ...grpc.CallOption) (*BatchGetCommentsResponse, error) // Lists comments for a given target. ListComments(ctx context.Context, in *ListCommentsRequest, opts ...grpc.CallOption) (*ListCommentsResponse, error) } @@ -56,6 +58,15 @@ func (c *commentsClient) GetComment(ctx context.Context, in *GetCommentRequest, return out, nil } +func (c *commentsClient) BatchGetComments(ctx context.Context, in *BatchGetCommentsRequest, opts ...grpc.CallOption) (*BatchGetCommentsResponse, error) { + out := new(BatchGetCommentsResponse) + err := c.cc.Invoke(ctx, "/com.seed.documents.v3alpha.Comments/BatchGetComments", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *commentsClient) ListComments(ctx context.Context, in *ListCommentsRequest, opts ...grpc.CallOption) (*ListCommentsResponse, error) { out := new(ListCommentsResponse) err := c.cc.Invoke(ctx, "/com.seed.documents.v3alpha.Comments/ListComments", in, out, opts...) @@ -73,6 +84,8 @@ type CommentsServer interface { CreateComment(context.Context, *CreateCommentRequest) (*Comment, error) // Gets a single comment by ID. GetComment(context.Context, *GetCommentRequest) (*Comment, error) + // Get multiple comments by ID. + BatchGetComments(context.Context, *BatchGetCommentsRequest) (*BatchGetCommentsResponse, error) // Lists comments for a given target. ListComments(context.Context, *ListCommentsRequest) (*ListCommentsResponse, error) } @@ -87,6 +100,9 @@ func (UnimplementedCommentsServer) CreateComment(context.Context, *CreateComment func (UnimplementedCommentsServer) GetComment(context.Context, *GetCommentRequest) (*Comment, error) { return nil, status.Errorf(codes.Unimplemented, "method GetComment not implemented") } +func (UnimplementedCommentsServer) BatchGetComments(context.Context, *BatchGetCommentsRequest) (*BatchGetCommentsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BatchGetComments not implemented") +} func (UnimplementedCommentsServer) ListComments(context.Context, *ListCommentsRequest) (*ListCommentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListComments not implemented") } @@ -138,6 +154,24 @@ func _Comments_GetComment_Handler(srv interface{}, ctx context.Context, dec func return interceptor(ctx, in, info, handler) } +func _Comments_BatchGetComments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BatchGetCommentsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommentsServer).BatchGetComments(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/com.seed.documents.v3alpha.Comments/BatchGetComments", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommentsServer).BatchGetComments(ctx, req.(*BatchGetCommentsRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Comments_ListComments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListCommentsRequest) if err := dec(in); err != nil { @@ -171,6 +205,10 @@ var Comments_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetComment", Handler: _Comments_GetComment_Handler, }, + { + MethodName: "BatchGetComments", + Handler: _Comments_BatchGetComments_Handler, + }, { MethodName: "ListComments", Handler: _Comments_ListComments_Handler, diff --git a/backend/genproto/documents/v3alpha/documents.pb.go b/backend/genproto/documents/v3alpha/documents.pb.go index c65aace48..9baa20576 100644 --- a/backend/genproto/documents/v3alpha/documents.pb.go +++ b/backend/genproto/documents/v3alpha/documents.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 v4.24.4 // source: documents/v3alpha/documents.proto @@ -23,6 +23,108 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// Sorting options for the list of accounts. +type ListAccountsRequest_SortOrder int32 + +const ( + // Sorting by the most recent activity time. + ListAccountsRequest_LATEST_ACTIVITY_FIRST ListAccountsRequest_SortOrder = 0 + // Sorting by the name of the account (i.e. title of the root document). + ListAccountsRequest_NAME_ALPHABETICAL ListAccountsRequest_SortOrder = 1 +) + +// Enum value maps for ListAccountsRequest_SortOrder. +var ( + ListAccountsRequest_SortOrder_name = map[int32]string{ + 0: "LATEST_ACTIVITY_FIRST", + 1: "NAME_ALPHABETICAL", + } + ListAccountsRequest_SortOrder_value = map[string]int32{ + "LATEST_ACTIVITY_FIRST": 0, + "NAME_ALPHABETICAL": 1, + } +) + +func (x ListAccountsRequest_SortOrder) Enum() *ListAccountsRequest_SortOrder { + p := new(ListAccountsRequest_SortOrder) + *p = x + return p +} + +func (x ListAccountsRequest_SortOrder) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ListAccountsRequest_SortOrder) Descriptor() protoreflect.EnumDescriptor { + return file_documents_v3alpha_documents_proto_enumTypes[0].Descriptor() +} + +func (ListAccountsRequest_SortOrder) Type() protoreflect.EnumType { + return &file_documents_v3alpha_documents_proto_enumTypes[0] +} + +func (x ListAccountsRequest_SortOrder) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ListAccountsRequest_SortOrder.Descriptor instead. +func (ListAccountsRequest_SortOrder) EnumDescriptor() ([]byte, []int) { + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{5, 0} +} + +// Sorting options for the list of documents. +type ListDirectoryRequest_SortOrder int32 + +const ( + // Sorting by the most recent activity time. + ListDirectoryRequest_LATEST_ACTIVITY_FIRST ListDirectoryRequest_SortOrder = 0 + // Sorting by the name/title of the document. + ListDirectoryRequest_NAME_ALPHABETICAL ListDirectoryRequest_SortOrder = 1 + // Sorting by the path of the document. + ListDirectoryRequest_PATH_ALPHABETICAL ListDirectoryRequest_SortOrder = 2 +) + +// Enum value maps for ListDirectoryRequest_SortOrder. +var ( + ListDirectoryRequest_SortOrder_name = map[int32]string{ + 0: "LATEST_ACTIVITY_FIRST", + 1: "NAME_ALPHABETICAL", + 2: "PATH_ALPHABETICAL", + } + ListDirectoryRequest_SortOrder_value = map[string]int32{ + "LATEST_ACTIVITY_FIRST": 0, + "NAME_ALPHABETICAL": 1, + "PATH_ALPHABETICAL": 2, + } +) + +func (x ListDirectoryRequest_SortOrder) Enum() *ListDirectoryRequest_SortOrder { + p := new(ListDirectoryRequest_SortOrder) + *p = x + return p +} + +func (x ListDirectoryRequest_SortOrder) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ListDirectoryRequest_SortOrder) Descriptor() protoreflect.EnumDescriptor { + return file_documents_v3alpha_documents_proto_enumTypes[1].Descriptor() +} + +func (ListDirectoryRequest_SortOrder) Type() protoreflect.EnumType { + return &file_documents_v3alpha_documents_proto_enumTypes[1] +} + +func (x ListDirectoryRequest_SortOrder) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ListDirectoryRequest_SortOrder.Descriptor instead. +func (ListDirectoryRequest_SortOrder) EnumDescriptor() ([]byte, []int) { + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{8, 0} +} + // Request for getting a single document. type GetDocumentRequest struct { state protoimpl.MessageState @@ -41,11 +143,9 @@ type GetDocumentRequest struct { func (x *GetDocumentRequest) Reset() { *x = GetDocumentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetDocumentRequest) String() string { @@ -56,7 +156,7 @@ func (*GetDocumentRequest) ProtoMessage() {} func (x *GetDocumentRequest) ProtoReflect() protoreflect.Message { mi := &file_documents_v3alpha_documents_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) @@ -123,11 +223,9 @@ type CreateDocumentChangeRequest struct { func (x *CreateDocumentChangeRequest) Reset() { *x = CreateDocumentChangeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateDocumentChangeRequest) String() string { @@ -138,7 +236,7 @@ func (*CreateDocumentChangeRequest) ProtoMessage() {} func (x *CreateDocumentChangeRequest) ProtoReflect() protoreflect.Message { mi := &file_documents_v3alpha_documents_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) @@ -215,11 +313,9 @@ type DeleteDocumentRequest struct { func (x *DeleteDocumentRequest) Reset() { *x = DeleteDocumentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteDocumentRequest) String() string { @@ -230,7 +326,7 @@ func (*DeleteDocumentRequest) ProtoMessage() {} func (x *DeleteDocumentRequest) ProtoReflect() protoreflect.Message { mi := &file_documents_v3alpha_documents_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) @@ -273,11 +369,9 @@ type ListRootDocumentsRequest struct { func (x *ListRootDocumentsRequest) Reset() { *x = ListRootDocumentsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListRootDocumentsRequest) String() string { @@ -288,7 +382,7 @@ func (*ListRootDocumentsRequest) ProtoMessage() {} func (x *ListRootDocumentsRequest) ProtoReflect() protoreflect.Message { mi := &file_documents_v3alpha_documents_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) @@ -331,11 +425,9 @@ type ListRootDocumentsResponse struct { func (x *ListRootDocumentsResponse) Reset() { *x = ListRootDocumentsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListRootDocumentsResponse) String() string { @@ -346,7 +438,7 @@ func (*ListRootDocumentsResponse) ProtoMessage() {} func (x *ListRootDocumentsResponse) ProtoReflect() protoreflect.Message { mi := &file_documents_v3alpha_documents_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) @@ -375,6 +467,373 @@ func (x *ListRootDocumentsResponse) GetNextPageToken() string { return "" } +// Request to list accounts. +type ListAccountsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Optional. Number of results to return per page. + // If not set, the server will pick some default number. + PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Optional. Token of the page to request, obtained from + // a previous response. + PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // Optional. If set to true, only accounts that the user is subscribed to will be returned. + // If at least one document in the account has a subscription, then the account is considered subscribed. + SubscribedOnly bool `protobuf:"varint,3,opt,name=subscribed_only,json=subscribedOnly,proto3" json:"subscribed_only,omitempty"` + // Sorting mode for the list response. + SortOrder ListAccountsRequest_SortOrder `protobuf:"varint,4,opt,name=sort_order,json=sortOrder,proto3,enum=com.seed.documents.v3alpha.ListAccountsRequest_SortOrder" json:"sort_order,omitempty"` +} + +func (x *ListAccountsRequest) Reset() { + *x = ListAccountsRequest{} + mi := &file_documents_v3alpha_documents_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListAccountsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAccountsRequest) ProtoMessage() {} + +func (x *ListAccountsRequest) ProtoReflect() protoreflect.Message { + mi := &file_documents_v3alpha_documents_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListAccountsRequest.ProtoReflect.Descriptor instead. +func (*ListAccountsRequest) Descriptor() ([]byte, []int) { + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{5} +} + +func (x *ListAccountsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListAccountsRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +func (x *ListAccountsRequest) GetSubscribedOnly() bool { + if x != nil { + return x.SubscribedOnly + } + return false +} + +func (x *ListAccountsRequest) GetSortOrder() ListAccountsRequest_SortOrder { + if x != nil { + return x.SortOrder + } + return ListAccountsRequest_LATEST_ACTIVITY_FIRST +} + +// Response to list accounts. +type ListAccountsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // List of accounts. + Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` + // Token for the next page if there're more results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (x *ListAccountsResponse) Reset() { + *x = ListAccountsResponse{} + mi := &file_documents_v3alpha_documents_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListAccountsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAccountsResponse) ProtoMessage() {} + +func (x *ListAccountsResponse) ProtoReflect() protoreflect.Message { + mi := &file_documents_v3alpha_documents_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListAccountsResponse.ProtoReflect.Descriptor instead. +func (*ListAccountsResponse) Descriptor() ([]byte, []int) { + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{6} +} + +func (x *ListAccountsResponse) GetAccounts() []*Account { + if x != nil { + return x.Accounts + } + return nil +} + +func (x *ListAccountsResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +// Aggregated information about an account. +// Some of this information comes from the accounts' root document, +// some is aggregated from the other documents inside of the account. +type Account struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // ID of the account. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Metadata attributes from the root document of the account. + Metadata map[string]string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Summary of the activity in the entire account. + ActivitySummary *ActivitySummary `protobuf:"bytes,3,opt,name=activity_summary,json=activitySummary,proto3" json:"activity_summary,omitempty"` + // Whether the user is subscribed to this account. + IsSubscribed bool `protobuf:"varint,4,opt,name=is_subscribed,json=isSubscribed,proto3" json:"is_subscribed,omitempty"` +} + +func (x *Account) Reset() { + *x = Account{} + mi := &file_documents_v3alpha_documents_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Account) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Account) ProtoMessage() {} + +func (x *Account) ProtoReflect() protoreflect.Message { + mi := &file_documents_v3alpha_documents_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Account.ProtoReflect.Descriptor instead. +func (*Account) Descriptor() ([]byte, []int) { + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{7} +} + +func (x *Account) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Account) GetMetadata() map[string]string { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *Account) GetActivitySummary() *ActivitySummary { + if x != nil { + return x.ActivitySummary + } + return nil +} + +func (x *Account) GetIsSubscribed() bool { + if x != nil { + return x.IsSubscribed + } + return false +} + +// Request to list a directory. +type ListDirectoryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Optional. Size of the page. + PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Optional. Pagination token. + PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // Required. ID of the account to list the directory for. + Account string `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"` + // Required. Path of the directory to list documents for. + // Empty string means root directory. + DirectoryPath string `protobuf:"bytes,4,opt,name=directory_path,json=directoryPath,proto3" json:"directory_path,omitempty"` + // Optional. If true, list documents recursively. + Recursive bool `protobuf:"varint,5,opt,name=recursive,proto3" json:"recursive,omitempty"` + // Optional. Sorting mode for the list response. + SortOrder ListDirectoryRequest_SortOrder `protobuf:"varint,6,opt,name=sort_order,json=sortOrder,proto3,enum=com.seed.documents.v3alpha.ListDirectoryRequest_SortOrder" json:"sort_order,omitempty"` + // Optional. If set to true, only documents that the user is subscribed to will be returned. + SubscribedOnly bool `protobuf:"varint,7,opt,name=subscribed_only,json=subscribedOnly,proto3" json:"subscribed_only,omitempty"` +} + +func (x *ListDirectoryRequest) Reset() { + *x = ListDirectoryRequest{} + mi := &file_documents_v3alpha_documents_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListDirectoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListDirectoryRequest) ProtoMessage() {} + +func (x *ListDirectoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_documents_v3alpha_documents_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListDirectoryRequest.ProtoReflect.Descriptor instead. +func (*ListDirectoryRequest) Descriptor() ([]byte, []int) { + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{8} +} + +func (x *ListDirectoryRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListDirectoryRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +func (x *ListDirectoryRequest) GetAccount() string { + if x != nil { + return x.Account + } + return "" +} + +func (x *ListDirectoryRequest) GetDirectoryPath() string { + if x != nil { + return x.DirectoryPath + } + return "" +} + +func (x *ListDirectoryRequest) GetRecursive() bool { + if x != nil { + return x.Recursive + } + return false +} + +func (x *ListDirectoryRequest) GetSortOrder() ListDirectoryRequest_SortOrder { + if x != nil { + return x.SortOrder + } + return ListDirectoryRequest_LATEST_ACTIVITY_FIRST +} + +func (x *ListDirectoryRequest) GetSubscribedOnly() bool { + if x != nil { + return x.SubscribedOnly + } + return false +} + +// Response of the directory list. +type ListDirectoryResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // List of documents. + Documents []*DocumentListItem `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"` + // Optional. Token for the next page if there're more results. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (x *ListDirectoryResponse) Reset() { + *x = ListDirectoryResponse{} + mi := &file_documents_v3alpha_documents_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListDirectoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListDirectoryResponse) ProtoMessage() {} + +func (x *ListDirectoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_documents_v3alpha_documents_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListDirectoryResponse.ProtoReflect.Descriptor instead. +func (*ListDirectoryResponse) Descriptor() ([]byte, []int) { + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{9} +} + +func (x *ListDirectoryResponse) GetDocuments() []*DocumentListItem { + if x != nil { + return x.Documents + } + return nil +} + +func (x *ListDirectoryResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + // Request for listing documents. type ListDocumentsRequest struct { state protoimpl.MessageState @@ -391,11 +850,9 @@ type ListDocumentsRequest struct { func (x *ListDocumentsRequest) Reset() { *x = ListDocumentsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListDocumentsRequest) String() string { @@ -405,8 +862,8 @@ func (x *ListDocumentsRequest) String() string { func (*ListDocumentsRequest) ProtoMessage() {} func (x *ListDocumentsRequest) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[10] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -418,7 +875,7 @@ func (x *ListDocumentsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListDocumentsRequest.ProtoReflect.Descriptor instead. func (*ListDocumentsRequest) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{5} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{10} } func (x *ListDocumentsRequest) GetAccount() string { @@ -456,11 +913,9 @@ type ListDocumentsResponse struct { func (x *ListDocumentsResponse) Reset() { *x = ListDocumentsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListDocumentsResponse) String() string { @@ -470,8 +925,8 @@ func (x *ListDocumentsResponse) String() string { func (*ListDocumentsResponse) ProtoMessage() {} func (x *ListDocumentsResponse) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[11] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -483,7 +938,7 @@ func (x *ListDocumentsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListDocumentsResponse.ProtoReflect.Descriptor instead. func (*ListDocumentsResponse) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{6} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{11} } func (x *ListDocumentsResponse) GetDocuments() []*DocumentListItem { @@ -520,11 +975,9 @@ type ListDocumentChangesRequest struct { func (x *ListDocumentChangesRequest) Reset() { *x = ListDocumentChangesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListDocumentChangesRequest) String() string { @@ -534,8 +987,8 @@ func (x *ListDocumentChangesRequest) String() string { func (*ListDocumentChangesRequest) ProtoMessage() {} func (x *ListDocumentChangesRequest) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[12] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -547,7 +1000,7 @@ func (x *ListDocumentChangesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListDocumentChangesRequest.ProtoReflect.Descriptor instead. func (*ListDocumentChangesRequest) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{7} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{12} } func (x *ListDocumentChangesRequest) GetAccount() string { @@ -599,11 +1052,9 @@ type ListDocumentChangesResponse struct { func (x *ListDocumentChangesResponse) Reset() { *x = ListDocumentChangesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListDocumentChangesResponse) String() string { @@ -613,8 +1064,8 @@ func (x *ListDocumentChangesResponse) String() string { func (*ListDocumentChangesResponse) ProtoMessage() {} func (x *ListDocumentChangesResponse) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[13] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -626,7 +1077,7 @@ func (x *ListDocumentChangesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListDocumentChangesResponse.ProtoReflect.Descriptor instead. func (*ListDocumentChangesResponse) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{8} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{13} } func (x *ListDocumentChangesResponse) GetChanges() []*DocumentChangeInfo { @@ -670,11 +1121,9 @@ type CreateRefRequest struct { func (x *CreateRefRequest) Reset() { *x = CreateRefRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateRefRequest) String() string { @@ -684,8 +1133,8 @@ func (x *CreateRefRequest) String() string { func (*CreateRefRequest) ProtoMessage() {} func (x *CreateRefRequest) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[14] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -697,7 +1146,7 @@ func (x *CreateRefRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateRefRequest.ProtoReflect.Descriptor instead. func (*CreateRefRequest) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{9} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{14} } func (x *CreateRefRequest) GetAccount() string { @@ -754,11 +1203,9 @@ type GetRefRequest struct { func (x *GetRefRequest) Reset() { *x = GetRefRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetRefRequest) String() string { @@ -768,8 +1215,8 @@ func (x *GetRefRequest) String() string { func (*GetRefRequest) ProtoMessage() {} func (x *GetRefRequest) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[15] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -781,7 +1228,7 @@ func (x *GetRefRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetRefRequest.ProtoReflect.Descriptor instead. func (*GetRefRequest) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{10} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{15} } func (x *GetRefRequest) GetId() string { @@ -809,11 +1256,9 @@ type DocumentChangeInfo struct { func (x *DocumentChangeInfo) Reset() { *x = DocumentChangeInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DocumentChangeInfo) String() string { @@ -823,8 +1268,8 @@ func (x *DocumentChangeInfo) String() string { func (*DocumentChangeInfo) ProtoMessage() {} func (x *DocumentChangeInfo) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[16] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -836,7 +1281,7 @@ func (x *DocumentChangeInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use DocumentChangeInfo.ProtoReflect.Descriptor instead. func (*DocumentChangeInfo) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{11} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{16} } func (x *DocumentChangeInfo) GetId() string { @@ -867,8 +1312,11 @@ func (x *DocumentChangeInfo) GetCreateTime() *timestamppb.Timestamp { return nil } -// Basic data about a document that is returned in list responses. +// Basic data about a document with some aggregations and metadata. // Content is omitted for efficiency reasons. +// +// TODO(burdiyan): rename this to DocumentSummary, DocumentInfo or something like that, +// it may be useful more than just in list responses. type DocumentListItem struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -881,25 +1329,35 @@ type DocumentListItem struct { Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // User-defined metadata attributes of the document. Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Every author ID who has modified this document's version. + // Every author ID who has ever made changes to this document. Authors []string `protobuf:"bytes,4,rep,name=authors,proto3" json:"authors,omitempty"` // Time when the document was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Time when the document was updated. + // I.e. timestamp of the most recent change. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // ID of the genesis change of this document. Genesis string `protobuf:"bytes,8,opt,name=genesis,proto3" json:"genesis,omitempty"` // Current version of the document. Version string `protobuf:"bytes,9,opt,name=version,proto3" json:"version,omitempty"` + // Breadcrumbs of this document. + // The number of items in this list corresponds to the number of segments + // in the path of the document minus 1 (the document itself). + // + // E.g. for a document "/cars/jp/honda" there will be 2 breadcrumbs: "cars" and "jp". + // + // If we don't have a document for some of the path segements for whatever reason, + // the corresponding breadcrumb segment will be null. + Breadcrumbs []*Breadcrumb `protobuf:"bytes,10,rep,name=breadcrumbs,proto3" json:"breadcrumbs,omitempty"` + // Summary of the activity on the document. + ActivitySummary *ActivitySummary `protobuf:"bytes,11,opt,name=activity_summary,json=activitySummary,proto3" json:"activity_summary,omitempty"` } func (x *DocumentListItem) Reset() { *x = DocumentListItem{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DocumentListItem) String() string { @@ -909,8 +1367,8 @@ func (x *DocumentListItem) String() string { func (*DocumentListItem) ProtoMessage() {} func (x *DocumentListItem) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[17] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -922,7 +1380,7 @@ func (x *DocumentListItem) ProtoReflect() protoreflect.Message { // Deprecated: Use DocumentListItem.ProtoReflect.Descriptor instead. func (*DocumentListItem) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{12} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{17} } func (x *DocumentListItem) GetAccount() string { @@ -981,6 +1439,141 @@ func (x *DocumentListItem) GetVersion() string { return "" } +func (x *DocumentListItem) GetBreadcrumbs() []*Breadcrumb { + if x != nil { + return x.Breadcrumbs + } + return nil +} + +func (x *DocumentListItem) GetActivitySummary() *ActivitySummary { + if x != nil { + return x.ActivitySummary + } + return nil +} + +// Summary of the activity on a document or account. +type ActivitySummary struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // ID of the most recent comment. + LatestCommentId string `protobuf:"bytes,1,opt,name=latest_comment_id,json=latestCommentId,proto3" json:"latest_comment_id,omitempty"` + // Timestamp of the most recent comment. + LatestCommentTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=latest_comment_time,json=latestCommentTime,proto3" json:"latest_comment_time,omitempty"` + // Total number of comments. + CommentCount int32 `protobuf:"varint,3,opt,name=comment_count,json=commentCount,proto3" json:"comment_count,omitempty"` + // Timestamp of the most recent change. + LatestChangeTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=latest_change_time,json=latestChangeTime,proto3" json:"latest_change_time,omitempty"` +} + +func (x *ActivitySummary) Reset() { + *x = ActivitySummary{} + mi := &file_documents_v3alpha_documents_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivitySummary) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivitySummary) ProtoMessage() {} + +func (x *ActivitySummary) ProtoReflect() protoreflect.Message { + mi := &file_documents_v3alpha_documents_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivitySummary.ProtoReflect.Descriptor instead. +func (*ActivitySummary) Descriptor() ([]byte, []int) { + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{18} +} + +func (x *ActivitySummary) GetLatestCommentId() string { + if x != nil { + return x.LatestCommentId + } + return "" +} + +func (x *ActivitySummary) GetLatestCommentTime() *timestamppb.Timestamp { + if x != nil { + return x.LatestCommentTime + } + return nil +} + +func (x *ActivitySummary) GetCommentCount() int32 { + if x != nil { + return x.CommentCount + } + return 0 +} + +func (x *ActivitySummary) GetLatestChangeTime() *timestamppb.Timestamp { + if x != nil { + return x.LatestChangeTime + } + return nil +} + +// Basic information about ancestor documents in the path hierarchy. +type Breadcrumb struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Title of the document. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *Breadcrumb) Reset() { + *x = Breadcrumb{} + mi := &file_documents_v3alpha_documents_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Breadcrumb) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Breadcrumb) ProtoMessage() {} + +func (x *Breadcrumb) ProtoReflect() protoreflect.Message { + mi := &file_documents_v3alpha_documents_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Breadcrumb.ProtoReflect.Descriptor instead. +func (*Breadcrumb) Descriptor() ([]byte, []int) { + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{19} +} + +func (x *Breadcrumb) GetName() string { + if x != nil { + return x.Name + } + return "" +} + // Document represents metadata and content of a document. type Document struct { state protoimpl.MessageState @@ -1011,11 +1604,9 @@ type Document struct { func (x *Document) Reset() { *x = Document{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Document) String() string { @@ -1025,8 +1616,8 @@ func (x *Document) String() string { func (*Document) ProtoMessage() {} func (x *Document) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[20] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1038,7 +1629,7 @@ func (x *Document) ProtoReflect() protoreflect.Message { // Deprecated: Use Document.ProtoReflect.Descriptor instead. func (*Document) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{13} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{20} } func (x *Document) GetAccount() string { @@ -1118,11 +1709,9 @@ type BlockNode struct { func (x *BlockNode) Reset() { *x = BlockNode{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockNode) String() string { @@ -1132,8 +1721,8 @@ func (x *BlockNode) String() string { func (*BlockNode) ProtoMessage() {} func (x *BlockNode) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[21] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1145,7 +1734,7 @@ func (x *BlockNode) ProtoReflect() protoreflect.Message { // Deprecated: Use BlockNode.ProtoReflect.Descriptor instead. func (*BlockNode) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{14} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{21} } func (x *BlockNode) GetBlock() *Block { @@ -1195,11 +1784,9 @@ type Block struct { func (x *Block) Reset() { *x = Block{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Block) String() string { @@ -1209,8 +1796,8 @@ func (x *Block) String() string { func (*Block) ProtoMessage() {} func (x *Block) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[22] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1222,7 +1809,7 @@ func (x *Block) ProtoReflect() protoreflect.Message { // Deprecated: Use Block.ProtoReflect.Descriptor instead. func (*Block) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{15} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{22} } func (x *Block) GetId() string { @@ -1304,11 +1891,9 @@ type Annotation struct { func (x *Annotation) Reset() { *x = Annotation{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Annotation) String() string { @@ -1318,8 +1903,8 @@ func (x *Annotation) String() string { func (*Annotation) ProtoMessage() {} func (x *Annotation) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[23] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1331,7 +1916,7 @@ func (x *Annotation) ProtoReflect() protoreflect.Message { // Deprecated: Use Annotation.ProtoReflect.Descriptor instead. func (*Annotation) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{16} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{23} } func (x *Annotation) GetType() string { @@ -1386,11 +1971,9 @@ type DocumentChange struct { func (x *DocumentChange) Reset() { *x = DocumentChange{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DocumentChange) String() string { @@ -1400,8 +1983,8 @@ func (x *DocumentChange) String() string { func (*DocumentChange) ProtoMessage() {} func (x *DocumentChange) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[24] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1413,7 +1996,7 @@ func (x *DocumentChange) ProtoReflect() protoreflect.Message { // Deprecated: Use DocumentChange.ProtoReflect.Descriptor instead. func (*DocumentChange) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{17} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{24} } func (m *DocumentChange) GetOp() isDocumentChange_Op { @@ -1507,11 +2090,9 @@ type Ref struct { func (x *Ref) Reset() { *x = Ref{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Ref) String() string { @@ -1521,8 +2102,8 @@ func (x *Ref) String() string { func (*Ref) ProtoMessage() {} func (x *Ref) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[25] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1534,7 +2115,7 @@ func (x *Ref) ProtoReflect() protoreflect.Message { // Deprecated: Use Ref.ProtoReflect.Descriptor instead. func (*Ref) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{18} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{25} } func (x *Ref) GetId() string { @@ -1604,11 +2185,9 @@ type RefTarget struct { func (x *RefTarget) Reset() { *x = RefTarget{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RefTarget) String() string { @@ -1618,8 +2197,8 @@ func (x *RefTarget) String() string { func (*RefTarget) ProtoMessage() {} func (x *RefTarget) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[26] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1631,7 +2210,7 @@ func (x *RefTarget) ProtoReflect() protoreflect.Message { // Deprecated: Use RefTarget.ProtoReflect.Descriptor instead. func (*RefTarget) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{19} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{26} } func (m *RefTarget) GetTarget() isRefTarget_Target { @@ -1710,11 +2289,9 @@ type DocumentChange_MoveBlock struct { func (x *DocumentChange_MoveBlock) Reset() { *x = DocumentChange_MoveBlock{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DocumentChange_MoveBlock) String() string { @@ -1724,8 +2301,8 @@ func (x *DocumentChange_MoveBlock) String() string { func (*DocumentChange_MoveBlock) ProtoMessage() {} func (x *DocumentChange_MoveBlock) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[31] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1737,7 +2314,7 @@ func (x *DocumentChange_MoveBlock) ProtoReflect() protoreflect.Message { // Deprecated: Use DocumentChange_MoveBlock.ProtoReflect.Descriptor instead. func (*DocumentChange_MoveBlock) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{17, 0} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{24, 0} } func (x *DocumentChange_MoveBlock) GetBlockId() string { @@ -1775,11 +2352,9 @@ type DocumentChange_SetMetadata struct { func (x *DocumentChange_SetMetadata) Reset() { *x = DocumentChange_SetMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DocumentChange_SetMetadata) String() string { @@ -1789,8 +2364,8 @@ func (x *DocumentChange_SetMetadata) String() string { func (*DocumentChange_SetMetadata) ProtoMessage() {} func (x *DocumentChange_SetMetadata) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[32] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1802,7 +2377,7 @@ func (x *DocumentChange_SetMetadata) ProtoReflect() protoreflect.Message { // Deprecated: Use DocumentChange_SetMetadata.ProtoReflect.Descriptor instead. func (*DocumentChange_SetMetadata) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{17, 1} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{24, 1} } func (x *DocumentChange_SetMetadata) GetKey() string { @@ -1833,11 +2408,9 @@ type RefTarget_Version struct { func (x *RefTarget_Version) Reset() { *x = RefTarget_Version{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RefTarget_Version) String() string { @@ -1847,8 +2420,8 @@ func (x *RefTarget_Version) String() string { func (*RefTarget_Version) ProtoMessage() {} func (x *RefTarget_Version) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[33] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1860,7 +2433,7 @@ func (x *RefTarget_Version) ProtoReflect() protoreflect.Message { // Deprecated: Use RefTarget_Version.ProtoReflect.Descriptor instead. func (*RefTarget_Version) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{19, 0} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{26, 0} } func (x *RefTarget_Version) GetGenesis() string { @@ -1894,11 +2467,9 @@ type RefTarget_Redirect struct { func (x *RefTarget_Redirect) Reset() { *x = RefTarget_Redirect{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RefTarget_Redirect) String() string { @@ -1908,8 +2479,8 @@ func (x *RefTarget_Redirect) String() string { func (*RefTarget_Redirect) ProtoMessage() {} func (x *RefTarget_Redirect) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[34] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1921,7 +2492,7 @@ func (x *RefTarget_Redirect) ProtoReflect() protoreflect.Message { // Deprecated: Use RefTarget_Redirect.ProtoReflect.Descriptor instead. func (*RefTarget_Redirect) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{19, 1} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{26, 1} } func (x *RefTarget_Redirect) GetAccount() string { @@ -1946,11 +2517,9 @@ type RefTarget_Tombstone struct { func (x *RefTarget_Tombstone) Reset() { *x = RefTarget_Tombstone{} - if protoimpl.UnsafeEnabled { - mi := &file_documents_v3alpha_documents_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_documents_v3alpha_documents_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RefTarget_Tombstone) String() string { @@ -1960,8 +2529,8 @@ func (x *RefTarget_Tombstone) String() string { func (*RefTarget_Tombstone) ProtoMessage() {} func (x *RefTarget_Tombstone) ProtoReflect() protoreflect.Message { - mi := &file_documents_v3alpha_documents_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_documents_v3alpha_documents_proto_msgTypes[35] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1973,7 +2542,7 @@ func (x *RefTarget_Tombstone) ProtoReflect() protoreflect.Message { // Deprecated: Use RefTarget_Tombstone.ProtoReflect.Descriptor instead. func (*RefTarget_Tombstone) Descriptor() ([]byte, []int) { - return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{19, 2} + return file_documents_v3alpha_documents_proto_rawDescGZIP(), []int{26, 2} } var File_documents_v3alpha_documents_proto protoreflect.FileDescriptor @@ -2033,293 +2602,413 @@ var file_documents_v3alpha_documents_proto_rawDesc = []byte{ 0x65, 0x6d, 0x52, 0x09, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6c, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x6f, 0x63, - 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, - 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, - 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, - 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x22, 0x8b, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x6f, 0x63, 0x75, - 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, - 0x09, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x2c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, - 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x6f, - 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x09, - 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, - 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x22, 0xa0, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, - 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, - 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x18, - 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, - 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, - 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8f, 0x01, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x6f, 0x63, - 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x93, 0x02, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, + 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x75, 0x62, + 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x64, 0x4f, 0x6e, + 0x6c, 0x79, 0x12, 0x58, 0x0a, 0x0a, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, + 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x4f, 0x72, 0x64, 0x65, + 0x72, 0x52, 0x09, 0x73, 0x6f, 0x72, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x22, 0x3d, 0x0a, 0x09, + 0x53, 0x6f, 0x72, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x15, 0x4c, 0x41, 0x54, + 0x45, 0x53, 0x54, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x49, 0x54, 0x59, 0x5f, 0x46, 0x49, 0x52, + 0x53, 0x54, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x4e, 0x41, 0x4d, 0x45, 0x5f, 0x41, 0x4c, 0x50, + 0x48, 0x41, 0x42, 0x45, 0x54, 0x49, 0x43, 0x41, 0x4c, 0x10, 0x01, 0x22, 0x7f, 0x0a, 0x14, 0x4c, + 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x26, - 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, - 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x83, 0x02, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x3d, 0x0a, 0x06, 0x74, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, + 0x68, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, + 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, + 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xa2, 0x02, 0x0a, + 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x4d, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x6f, 0x6d, + 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, + 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x56, 0x0a, 0x10, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x79, 0x5f, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2b, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, + 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x0f, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, + 0x23, 0x0a, 0x0d, 0x69, 0x73, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, + 0x69, 0x62, 0x65, 0x64, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x22, 0x8b, 0x03, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, + 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, + 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x70, 0x61, + 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x79, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x75, 0x72, + 0x73, 0x69, 0x76, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, 0x63, 0x75, + 0x72, 0x73, 0x69, 0x76, 0x65, 0x12, 0x59, 0x0a, 0x0a, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x6f, 0x72, + 0x64, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, - 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x66, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x69, 0x67, 0x6e, - 0x69, 0x6e, 0x67, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0e, 0x73, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x1f, 0x0a, 0x0d, - 0x47, 0x65, 0x74, 0x52, 0x65, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8d, 0x01, - 0x0a, 0x12, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, - 0x64, 0x65, 0x70, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x70, 0x73, - 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x9d, 0x03, - 0x0a, 0x10, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, - 0x65, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, - 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, - 0x12, 0x56, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, - 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, - 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, - 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, - 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, - 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xce, 0x03, - 0x0a, 0x08, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, + 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x69, 0x72, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x6f, 0x72, 0x74, + 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x09, 0x73, 0x6f, 0x72, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, + 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x64, 0x5f, 0x6f, + 0x6e, 0x6c, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x73, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x62, 0x65, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x54, 0x0a, 0x09, 0x53, 0x6f, 0x72, + 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x15, 0x4c, 0x41, 0x54, 0x45, 0x53, 0x54, + 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x49, 0x54, 0x59, 0x5f, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, + 0x00, 0x12, 0x15, 0x0a, 0x11, 0x4e, 0x41, 0x4d, 0x45, 0x5f, 0x41, 0x4c, 0x50, 0x48, 0x41, 0x42, + 0x45, 0x54, 0x49, 0x43, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x41, 0x54, 0x48, + 0x5f, 0x41, 0x4c, 0x50, 0x48, 0x41, 0x42, 0x45, 0x54, 0x49, 0x43, 0x41, 0x4c, 0x10, 0x02, 0x22, + 0x8b, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x09, 0x64, 0x6f, 0x63, + 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, + 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, + 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x09, 0x64, 0x6f, 0x63, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6c, 0x0a, + 0x14, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8b, 0x01, 0x0a, 0x15, + 0x4c, 0x69, 0x73, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x09, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, + 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, + 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x09, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, + 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xa0, 0x01, 0x0a, 0x1a, 0x4c, 0x69, + 0x73, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8f, 0x01, 0x0a, + 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x07, + 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, + 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, + 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x63, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x83, + 0x02, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, + 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, + 0x68, 0x12, 0x3d, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, + 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, + 0x65, 0x66, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x12, 0x28, 0x0a, 0x10, 0x73, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x6b, 0x65, 0x79, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x69, 0x67, 0x6e, + 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x61, + 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x22, 0x1f, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x52, 0x65, 0x66, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8d, 0x01, 0x0a, 0x12, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, + 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x70, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x70, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xbf, 0x04, 0x0a, 0x10, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, + 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x4e, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x63, 0x6f, 0x6d, + 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x56, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x73, 0x12, 0x3f, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, + 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x12, 0x18, 0x0a, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x48, 0x0a, 0x0b, 0x62, 0x72, 0x65, 0x61, + 0x64, 0x63, 0x72, 0x75, 0x6d, 0x62, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x42, 0x72, 0x65, 0x61, 0x64, + 0x63, 0x72, 0x75, 0x6d, 0x62, 0x52, 0x0b, 0x62, 0x72, 0x65, 0x61, 0x64, 0x63, 0x72, 0x75, 0x6d, + 0x62, 0x73, 0x12, 0x56, 0x0a, 0x10, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x73, + 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x63, + 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, + 0x74, 0x79, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x79, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xf8, 0x01, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x69, 0x74, 0x79, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x2a, 0x0a, 0x11, 0x6c, + 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x43, 0x6f, + 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x4a, 0x0a, 0x13, 0x6c, 0x61, 0x74, 0x65, 0x73, + 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x11, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x54, + 0x69, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, + 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x48, 0x0a, 0x12, 0x6c, 0x61, 0x74, 0x65, + 0x73, 0x74, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x10, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x69, + 0x6d, 0x65, 0x22, 0x20, 0x0a, 0x0a, 0x42, 0x72, 0x65, 0x61, 0x64, 0x63, 0x72, 0x75, 0x6d, 0x62, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xce, 0x03, 0x0a, 0x08, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, + 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, + 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, + 0x4e, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x32, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, + 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, + 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, + 0x18, 0x0a, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x12, 0x3f, 0x0a, 0x07, 0x63, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x6d, + 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, + 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x6f, 0x64, + 0x65, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x87, 0x01, 0x0a, 0x09, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, + 0x6f, 0x64, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, + 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x41, 0x0a, 0x08, + 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, + 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x22, + 0xf2, 0x01, 0x0a, 0x05, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x37, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, + 0x63, 0x74, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x48, + 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, - 0x65, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, - 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, - 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, - 0x07, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, + 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x61, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xf7, 0x01, 0x0a, 0x0a, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x56, 0x0a, 0x0a, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x36, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x41, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x65, + 0x6e, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x04, 0x65, 0x6e, 0x64, 0x73, 0x1a, + 0x3d, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x87, - 0x01, 0x0a, 0x09, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x37, 0x0a, 0x05, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, - 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x41, 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, - 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd3, + 0x03, 0x0a, 0x0e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x12, 0x5b, 0x0a, 0x0c, 0x73, 0x65, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x08, - 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x22, 0xf2, 0x01, 0x0a, 0x05, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, - 0x6e, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x37, - 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0a, 0x61, 0x74, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x48, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, + 0x00, 0x52, 0x0b, 0x73, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x55, + 0x0a, 0x0a, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, + 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x4d, + 0x6f, 0x76, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x00, 0x52, 0x09, 0x6d, 0x6f, 0x76, 0x65, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x48, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, + 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xf7, 0x01, - 0x0a, 0x0a, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x56, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, - 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x6e, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x05, 0x52, 0x04, 0x65, 0x6e, 0x64, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd3, 0x03, 0x0a, 0x0e, 0x44, 0x6f, 0x63, 0x75, - 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x5b, 0x0a, 0x0c, 0x73, 0x65, - 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x36, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, - 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x6f, - 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x74, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x65, 0x74, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x55, 0x0a, 0x0a, 0x6d, 0x6f, 0x76, 0x65, 0x5f, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x63, 0x6f, - 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, - 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x48, 0x00, 0x52, 0x09, 0x6d, 0x6f, 0x76, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x48, - 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, + 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, + 0x00, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, + 0x23, 0x0a, 0x0c, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x1a, 0x61, 0x0a, 0x09, 0x4d, 0x6f, 0x76, 0x65, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x65, 0x66, 0x74, 0x5f, 0x73, 0x69, 0x62, + 0x6c, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6c, 0x65, 0x66, 0x74, + 0x53, 0x69, 0x62, 0x6c, 0x69, 0x6e, 0x67, 0x1a, 0x35, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x04, + 0x0a, 0x02, 0x6f, 0x70, 0x22, 0xf4, 0x01, 0x0a, 0x03, 0x52, 0x65, 0x66, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, + 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x3d, 0x0a, 0x06, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x6d, + 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, + 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x66, 0x54, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, + 0x6e, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, + 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x85, 0x03, 0x0a, 0x09, + 0x52, 0x65, 0x66, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x49, 0x0a, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x6f, 0x6d, + 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, + 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x66, 0x54, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4c, 0x0a, 0x08, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, + 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x66, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x2e, 0x52, 0x65, + 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x48, 0x00, 0x52, 0x08, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, + 0x63, 0x74, 0x12, 0x4f, 0x0a, 0x09, 0x74, 0x6f, 0x6d, 0x62, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6c, - 0x61, 0x63, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, - 0x52, 0x0b, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x1a, 0x61, 0x0a, - 0x09, 0x4d, 0x6f, 0x76, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x21, 0x0a, - 0x0c, 0x6c, 0x65, 0x66, 0x74, 0x5f, 0x73, 0x69, 0x62, 0x6c, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6c, 0x65, 0x66, 0x74, 0x53, 0x69, 0x62, 0x6c, 0x69, 0x6e, 0x67, - 0x1a, 0x35, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x04, 0x0a, 0x02, 0x6f, 0x70, 0x22, 0xf4, 0x01, - 0x0a, 0x03, 0x52, 0x65, 0x66, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, - 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, - 0x61, 0x74, 0x68, 0x12, 0x3d, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, - 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x2e, 0x52, 0x65, 0x66, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x61, - 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x22, 0x85, 0x03, 0x0a, 0x09, 0x52, 0x65, 0x66, 0x54, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x12, 0x49, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, - 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x2e, 0x52, 0x65, 0x66, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4c, 0x0a, - 0x08, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x2e, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x66, - 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x2e, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x48, - 0x00, 0x52, 0x08, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12, 0x4f, 0x0a, 0x09, 0x74, - 0x6f, 0x6d, 0x62, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, - 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x66, 0x54, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x2e, 0x54, 0x6f, 0x6d, 0x62, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x48, - 0x00, 0x52, 0x09, 0x74, 0x6f, 0x6d, 0x62, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x1a, 0x3d, 0x0a, 0x07, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x65, 0x6e, 0x65, 0x73, - 0x69, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, - 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x38, 0x0a, 0x08, 0x52, - 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x70, 0x61, 0x74, 0x68, 0x1a, 0x0b, 0x0a, 0x09, 0x54, 0x6f, 0x6d, 0x62, 0x73, 0x74, 0x6f, - 0x6e, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x32, 0xfd, 0x06, 0x0a, - 0x09, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x63, 0x0a, 0x0b, 0x47, 0x65, - 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, - 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, - 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, - 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, - 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, - 0x75, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, - 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x37, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, - 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, - 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x68, 0x61, 0x2e, 0x52, 0x65, 0x66, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x2e, 0x54, 0x6f, 0x6d, + 0x62, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x48, 0x00, 0x52, 0x09, 0x74, 0x6f, 0x6d, 0x62, 0x73, 0x74, + 0x6f, 0x6e, 0x65, 0x1a, 0x3d, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, + 0x0a, 0x07, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x1a, 0x38, 0x0a, 0x08, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12, 0x18, + 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x1a, 0x0b, 0x0a, 0x09, + 0x54, 0x6f, 0x6d, 0x62, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x32, 0xea, 0x08, 0x0a, 0x09, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x12, 0x63, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, + 0x12, 0x2e, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x47, 0x65, + 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x6f, - 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x60, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x31, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, - 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x6f, 0x63, 0x75, - 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x74, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, - 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x30, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, - 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, - 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x6f, - 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x6f, 0x63, - 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, - 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6f, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x12, 0x34, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, + 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x75, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x37, + 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, + 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x60, 0x0a, + 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, + 0x31, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, + 0x70, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, + 0x2f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x74, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x79, 0x12, 0x30, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, + 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6f, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x63, 0x6f, 0x6d, + 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x44, + 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x30, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, + 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, - 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6f, 0x74, - 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x86, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, - 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x36, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, - 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, - 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, - 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, - 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x09, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x12, 0x2c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, - 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, + 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x6f, 0x63, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, + 0x02, 0x01, 0x12, 0x80, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6f, 0x74, 0x44, + 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x34, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, + 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6f, 0x74, 0x44, 0x6f, + 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, + 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x6f, 0x6f, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x6f, + 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x36, 0x2e, + 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, + 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x2e, 0x52, 0x65, 0x66, 0x12, 0x54, 0x0a, 0x06, 0x47, 0x65, 0x74, 0x52, 0x65, 0x66, - 0x12, 0x29, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, - 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x47, 0x65, - 0x74, 0x52, 0x65, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x63, 0x6f, + 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, + 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x12, 0x2c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x66, 0x42, 0x33, 0x5a, 0x31, - 0x73, 0x65, 0x65, 0x64, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x67, 0x65, 0x6e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, - 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, + 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, + 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x66, 0x12, 0x54, 0x0a, 0x06, 0x47, 0x65, + 0x74, 0x52, 0x65, 0x66, 0x12, 0x29, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, + 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x65, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x66, + 0x42, 0x33, 0x5a, 0x31, 0x73, 0x65, 0x65, 0x64, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, + 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x64, 0x6f, 0x63, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2334,90 +3023,115 @@ func file_documents_v3alpha_documents_proto_rawDescGZIP() []byte { return file_documents_v3alpha_documents_proto_rawDescData } -var file_documents_v3alpha_documents_proto_msgTypes = make([]protoimpl.MessageInfo, 28) +var file_documents_v3alpha_documents_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_documents_v3alpha_documents_proto_msgTypes = make([]protoimpl.MessageInfo, 36) var file_documents_v3alpha_documents_proto_goTypes = []any{ - (*GetDocumentRequest)(nil), // 0: com.seed.documents.v3alpha.GetDocumentRequest - (*CreateDocumentChangeRequest)(nil), // 1: com.seed.documents.v3alpha.CreateDocumentChangeRequest - (*DeleteDocumentRequest)(nil), // 2: com.seed.documents.v3alpha.DeleteDocumentRequest - (*ListRootDocumentsRequest)(nil), // 3: com.seed.documents.v3alpha.ListRootDocumentsRequest - (*ListRootDocumentsResponse)(nil), // 4: com.seed.documents.v3alpha.ListRootDocumentsResponse - (*ListDocumentsRequest)(nil), // 5: com.seed.documents.v3alpha.ListDocumentsRequest - (*ListDocumentsResponse)(nil), // 6: com.seed.documents.v3alpha.ListDocumentsResponse - (*ListDocumentChangesRequest)(nil), // 7: com.seed.documents.v3alpha.ListDocumentChangesRequest - (*ListDocumentChangesResponse)(nil), // 8: com.seed.documents.v3alpha.ListDocumentChangesResponse - (*CreateRefRequest)(nil), // 9: com.seed.documents.v3alpha.CreateRefRequest - (*GetRefRequest)(nil), // 10: com.seed.documents.v3alpha.GetRefRequest - (*DocumentChangeInfo)(nil), // 11: com.seed.documents.v3alpha.DocumentChangeInfo - (*DocumentListItem)(nil), // 12: com.seed.documents.v3alpha.DocumentListItem - (*Document)(nil), // 13: com.seed.documents.v3alpha.Document - (*BlockNode)(nil), // 14: com.seed.documents.v3alpha.BlockNode - (*Block)(nil), // 15: com.seed.documents.v3alpha.Block - (*Annotation)(nil), // 16: com.seed.documents.v3alpha.Annotation - (*DocumentChange)(nil), // 17: com.seed.documents.v3alpha.DocumentChange - (*Ref)(nil), // 18: com.seed.documents.v3alpha.Ref - (*RefTarget)(nil), // 19: com.seed.documents.v3alpha.RefTarget - nil, // 20: com.seed.documents.v3alpha.DocumentListItem.MetadataEntry - nil, // 21: com.seed.documents.v3alpha.Document.MetadataEntry - nil, // 22: com.seed.documents.v3alpha.Annotation.AttributesEntry - (*DocumentChange_MoveBlock)(nil), // 23: com.seed.documents.v3alpha.DocumentChange.MoveBlock - (*DocumentChange_SetMetadata)(nil), // 24: com.seed.documents.v3alpha.DocumentChange.SetMetadata - (*RefTarget_Version)(nil), // 25: com.seed.documents.v3alpha.RefTarget.Version - (*RefTarget_Redirect)(nil), // 26: com.seed.documents.v3alpha.RefTarget.Redirect - (*RefTarget_Tombstone)(nil), // 27: com.seed.documents.v3alpha.RefTarget.Tombstone - (*timestamppb.Timestamp)(nil), // 28: google.protobuf.Timestamp - (*structpb.Struct)(nil), // 29: google.protobuf.Struct - (*emptypb.Empty)(nil), // 30: google.protobuf.Empty + (ListAccountsRequest_SortOrder)(0), // 0: com.seed.documents.v3alpha.ListAccountsRequest.SortOrder + (ListDirectoryRequest_SortOrder)(0), // 1: com.seed.documents.v3alpha.ListDirectoryRequest.SortOrder + (*GetDocumentRequest)(nil), // 2: com.seed.documents.v3alpha.GetDocumentRequest + (*CreateDocumentChangeRequest)(nil), // 3: com.seed.documents.v3alpha.CreateDocumentChangeRequest + (*DeleteDocumentRequest)(nil), // 4: com.seed.documents.v3alpha.DeleteDocumentRequest + (*ListRootDocumentsRequest)(nil), // 5: com.seed.documents.v3alpha.ListRootDocumentsRequest + (*ListRootDocumentsResponse)(nil), // 6: com.seed.documents.v3alpha.ListRootDocumentsResponse + (*ListAccountsRequest)(nil), // 7: com.seed.documents.v3alpha.ListAccountsRequest + (*ListAccountsResponse)(nil), // 8: com.seed.documents.v3alpha.ListAccountsResponse + (*Account)(nil), // 9: com.seed.documents.v3alpha.Account + (*ListDirectoryRequest)(nil), // 10: com.seed.documents.v3alpha.ListDirectoryRequest + (*ListDirectoryResponse)(nil), // 11: com.seed.documents.v3alpha.ListDirectoryResponse + (*ListDocumentsRequest)(nil), // 12: com.seed.documents.v3alpha.ListDocumentsRequest + (*ListDocumentsResponse)(nil), // 13: com.seed.documents.v3alpha.ListDocumentsResponse + (*ListDocumentChangesRequest)(nil), // 14: com.seed.documents.v3alpha.ListDocumentChangesRequest + (*ListDocumentChangesResponse)(nil), // 15: com.seed.documents.v3alpha.ListDocumentChangesResponse + (*CreateRefRequest)(nil), // 16: com.seed.documents.v3alpha.CreateRefRequest + (*GetRefRequest)(nil), // 17: com.seed.documents.v3alpha.GetRefRequest + (*DocumentChangeInfo)(nil), // 18: com.seed.documents.v3alpha.DocumentChangeInfo + (*DocumentListItem)(nil), // 19: com.seed.documents.v3alpha.DocumentListItem + (*ActivitySummary)(nil), // 20: com.seed.documents.v3alpha.ActivitySummary + (*Breadcrumb)(nil), // 21: com.seed.documents.v3alpha.Breadcrumb + (*Document)(nil), // 22: com.seed.documents.v3alpha.Document + (*BlockNode)(nil), // 23: com.seed.documents.v3alpha.BlockNode + (*Block)(nil), // 24: com.seed.documents.v3alpha.Block + (*Annotation)(nil), // 25: com.seed.documents.v3alpha.Annotation + (*DocumentChange)(nil), // 26: com.seed.documents.v3alpha.DocumentChange + (*Ref)(nil), // 27: com.seed.documents.v3alpha.Ref + (*RefTarget)(nil), // 28: com.seed.documents.v3alpha.RefTarget + nil, // 29: com.seed.documents.v3alpha.Account.MetadataEntry + nil, // 30: com.seed.documents.v3alpha.DocumentListItem.MetadataEntry + nil, // 31: com.seed.documents.v3alpha.Document.MetadataEntry + nil, // 32: com.seed.documents.v3alpha.Annotation.AttributesEntry + (*DocumentChange_MoveBlock)(nil), // 33: com.seed.documents.v3alpha.DocumentChange.MoveBlock + (*DocumentChange_SetMetadata)(nil), // 34: com.seed.documents.v3alpha.DocumentChange.SetMetadata + (*RefTarget_Version)(nil), // 35: com.seed.documents.v3alpha.RefTarget.Version + (*RefTarget_Redirect)(nil), // 36: com.seed.documents.v3alpha.RefTarget.Redirect + (*RefTarget_Tombstone)(nil), // 37: com.seed.documents.v3alpha.RefTarget.Tombstone + (*timestamppb.Timestamp)(nil), // 38: google.protobuf.Timestamp + (*structpb.Struct)(nil), // 39: google.protobuf.Struct + (*emptypb.Empty)(nil), // 40: google.protobuf.Empty } var file_documents_v3alpha_documents_proto_depIdxs = []int32{ - 17, // 0: com.seed.documents.v3alpha.CreateDocumentChangeRequest.changes:type_name -> com.seed.documents.v3alpha.DocumentChange - 28, // 1: com.seed.documents.v3alpha.CreateDocumentChangeRequest.timestamp:type_name -> google.protobuf.Timestamp - 12, // 2: com.seed.documents.v3alpha.ListRootDocumentsResponse.documents:type_name -> com.seed.documents.v3alpha.DocumentListItem - 12, // 3: com.seed.documents.v3alpha.ListDocumentsResponse.documents:type_name -> com.seed.documents.v3alpha.DocumentListItem - 11, // 4: com.seed.documents.v3alpha.ListDocumentChangesResponse.changes:type_name -> com.seed.documents.v3alpha.DocumentChangeInfo - 19, // 5: com.seed.documents.v3alpha.CreateRefRequest.target:type_name -> com.seed.documents.v3alpha.RefTarget - 28, // 6: com.seed.documents.v3alpha.CreateRefRequest.timestamp:type_name -> google.protobuf.Timestamp - 28, // 7: com.seed.documents.v3alpha.DocumentChangeInfo.create_time:type_name -> google.protobuf.Timestamp - 20, // 8: com.seed.documents.v3alpha.DocumentListItem.metadata:type_name -> com.seed.documents.v3alpha.DocumentListItem.MetadataEntry - 28, // 9: com.seed.documents.v3alpha.DocumentListItem.create_time:type_name -> google.protobuf.Timestamp - 28, // 10: com.seed.documents.v3alpha.DocumentListItem.update_time:type_name -> google.protobuf.Timestamp - 21, // 11: com.seed.documents.v3alpha.Document.metadata:type_name -> com.seed.documents.v3alpha.Document.MetadataEntry - 14, // 12: com.seed.documents.v3alpha.Document.content:type_name -> com.seed.documents.v3alpha.BlockNode - 28, // 13: com.seed.documents.v3alpha.Document.create_time:type_name -> google.protobuf.Timestamp - 28, // 14: com.seed.documents.v3alpha.Document.update_time:type_name -> google.protobuf.Timestamp - 15, // 15: com.seed.documents.v3alpha.BlockNode.block:type_name -> com.seed.documents.v3alpha.Block - 14, // 16: com.seed.documents.v3alpha.BlockNode.children:type_name -> com.seed.documents.v3alpha.BlockNode - 29, // 17: com.seed.documents.v3alpha.Block.attributes:type_name -> google.protobuf.Struct - 16, // 18: com.seed.documents.v3alpha.Block.annotations:type_name -> com.seed.documents.v3alpha.Annotation - 22, // 19: com.seed.documents.v3alpha.Annotation.attributes:type_name -> com.seed.documents.v3alpha.Annotation.AttributesEntry - 24, // 20: com.seed.documents.v3alpha.DocumentChange.set_metadata:type_name -> com.seed.documents.v3alpha.DocumentChange.SetMetadata - 23, // 21: com.seed.documents.v3alpha.DocumentChange.move_block:type_name -> com.seed.documents.v3alpha.DocumentChange.MoveBlock - 15, // 22: com.seed.documents.v3alpha.DocumentChange.replace_block:type_name -> com.seed.documents.v3alpha.Block - 19, // 23: com.seed.documents.v3alpha.Ref.target:type_name -> com.seed.documents.v3alpha.RefTarget - 28, // 24: com.seed.documents.v3alpha.Ref.timestamp:type_name -> google.protobuf.Timestamp - 25, // 25: com.seed.documents.v3alpha.RefTarget.version:type_name -> com.seed.documents.v3alpha.RefTarget.Version - 26, // 26: com.seed.documents.v3alpha.RefTarget.redirect:type_name -> com.seed.documents.v3alpha.RefTarget.Redirect - 27, // 27: com.seed.documents.v3alpha.RefTarget.tombstone:type_name -> com.seed.documents.v3alpha.RefTarget.Tombstone - 0, // 28: com.seed.documents.v3alpha.Documents.GetDocument:input_type -> com.seed.documents.v3alpha.GetDocumentRequest - 1, // 29: com.seed.documents.v3alpha.Documents.CreateDocumentChange:input_type -> com.seed.documents.v3alpha.CreateDocumentChangeRequest - 2, // 30: com.seed.documents.v3alpha.Documents.DeleteDocument:input_type -> com.seed.documents.v3alpha.DeleteDocumentRequest - 5, // 31: com.seed.documents.v3alpha.Documents.ListDocuments:input_type -> com.seed.documents.v3alpha.ListDocumentsRequest - 3, // 32: com.seed.documents.v3alpha.Documents.ListRootDocuments:input_type -> com.seed.documents.v3alpha.ListRootDocumentsRequest - 7, // 33: com.seed.documents.v3alpha.Documents.ListDocumentChanges:input_type -> com.seed.documents.v3alpha.ListDocumentChangesRequest - 9, // 34: com.seed.documents.v3alpha.Documents.CreateRef:input_type -> com.seed.documents.v3alpha.CreateRefRequest - 10, // 35: com.seed.documents.v3alpha.Documents.GetRef:input_type -> com.seed.documents.v3alpha.GetRefRequest - 13, // 36: com.seed.documents.v3alpha.Documents.GetDocument:output_type -> com.seed.documents.v3alpha.Document - 13, // 37: com.seed.documents.v3alpha.Documents.CreateDocumentChange:output_type -> com.seed.documents.v3alpha.Document - 30, // 38: com.seed.documents.v3alpha.Documents.DeleteDocument:output_type -> google.protobuf.Empty - 6, // 39: com.seed.documents.v3alpha.Documents.ListDocuments:output_type -> com.seed.documents.v3alpha.ListDocumentsResponse - 4, // 40: com.seed.documents.v3alpha.Documents.ListRootDocuments:output_type -> com.seed.documents.v3alpha.ListRootDocumentsResponse - 8, // 41: com.seed.documents.v3alpha.Documents.ListDocumentChanges:output_type -> com.seed.documents.v3alpha.ListDocumentChangesResponse - 18, // 42: com.seed.documents.v3alpha.Documents.CreateRef:output_type -> com.seed.documents.v3alpha.Ref - 18, // 43: com.seed.documents.v3alpha.Documents.GetRef:output_type -> com.seed.documents.v3alpha.Ref - 36, // [36:44] is the sub-list for method output_type - 28, // [28:36] is the sub-list for method input_type - 28, // [28:28] is the sub-list for extension type_name - 28, // [28:28] is the sub-list for extension extendee - 0, // [0:28] is the sub-list for field type_name + 26, // 0: com.seed.documents.v3alpha.CreateDocumentChangeRequest.changes:type_name -> com.seed.documents.v3alpha.DocumentChange + 38, // 1: com.seed.documents.v3alpha.CreateDocumentChangeRequest.timestamp:type_name -> google.protobuf.Timestamp + 19, // 2: com.seed.documents.v3alpha.ListRootDocumentsResponse.documents:type_name -> com.seed.documents.v3alpha.DocumentListItem + 0, // 3: com.seed.documents.v3alpha.ListAccountsRequest.sort_order:type_name -> com.seed.documents.v3alpha.ListAccountsRequest.SortOrder + 9, // 4: com.seed.documents.v3alpha.ListAccountsResponse.accounts:type_name -> com.seed.documents.v3alpha.Account + 29, // 5: com.seed.documents.v3alpha.Account.metadata:type_name -> com.seed.documents.v3alpha.Account.MetadataEntry + 20, // 6: com.seed.documents.v3alpha.Account.activity_summary:type_name -> com.seed.documents.v3alpha.ActivitySummary + 1, // 7: com.seed.documents.v3alpha.ListDirectoryRequest.sort_order:type_name -> com.seed.documents.v3alpha.ListDirectoryRequest.SortOrder + 19, // 8: com.seed.documents.v3alpha.ListDirectoryResponse.documents:type_name -> com.seed.documents.v3alpha.DocumentListItem + 19, // 9: com.seed.documents.v3alpha.ListDocumentsResponse.documents:type_name -> com.seed.documents.v3alpha.DocumentListItem + 18, // 10: com.seed.documents.v3alpha.ListDocumentChangesResponse.changes:type_name -> com.seed.documents.v3alpha.DocumentChangeInfo + 28, // 11: com.seed.documents.v3alpha.CreateRefRequest.target:type_name -> com.seed.documents.v3alpha.RefTarget + 38, // 12: com.seed.documents.v3alpha.CreateRefRequest.timestamp:type_name -> google.protobuf.Timestamp + 38, // 13: com.seed.documents.v3alpha.DocumentChangeInfo.create_time:type_name -> google.protobuf.Timestamp + 30, // 14: com.seed.documents.v3alpha.DocumentListItem.metadata:type_name -> com.seed.documents.v3alpha.DocumentListItem.MetadataEntry + 38, // 15: com.seed.documents.v3alpha.DocumentListItem.create_time:type_name -> google.protobuf.Timestamp + 38, // 16: com.seed.documents.v3alpha.DocumentListItem.update_time:type_name -> google.protobuf.Timestamp + 21, // 17: com.seed.documents.v3alpha.DocumentListItem.breadcrumbs:type_name -> com.seed.documents.v3alpha.Breadcrumb + 20, // 18: com.seed.documents.v3alpha.DocumentListItem.activity_summary:type_name -> com.seed.documents.v3alpha.ActivitySummary + 38, // 19: com.seed.documents.v3alpha.ActivitySummary.latest_comment_time:type_name -> google.protobuf.Timestamp + 38, // 20: com.seed.documents.v3alpha.ActivitySummary.latest_change_time:type_name -> google.protobuf.Timestamp + 31, // 21: com.seed.documents.v3alpha.Document.metadata:type_name -> com.seed.documents.v3alpha.Document.MetadataEntry + 23, // 22: com.seed.documents.v3alpha.Document.content:type_name -> com.seed.documents.v3alpha.BlockNode + 38, // 23: com.seed.documents.v3alpha.Document.create_time:type_name -> google.protobuf.Timestamp + 38, // 24: com.seed.documents.v3alpha.Document.update_time:type_name -> google.protobuf.Timestamp + 24, // 25: com.seed.documents.v3alpha.BlockNode.block:type_name -> com.seed.documents.v3alpha.Block + 23, // 26: com.seed.documents.v3alpha.BlockNode.children:type_name -> com.seed.documents.v3alpha.BlockNode + 39, // 27: com.seed.documents.v3alpha.Block.attributes:type_name -> google.protobuf.Struct + 25, // 28: com.seed.documents.v3alpha.Block.annotations:type_name -> com.seed.documents.v3alpha.Annotation + 32, // 29: com.seed.documents.v3alpha.Annotation.attributes:type_name -> com.seed.documents.v3alpha.Annotation.AttributesEntry + 34, // 30: com.seed.documents.v3alpha.DocumentChange.set_metadata:type_name -> com.seed.documents.v3alpha.DocumentChange.SetMetadata + 33, // 31: com.seed.documents.v3alpha.DocumentChange.move_block:type_name -> com.seed.documents.v3alpha.DocumentChange.MoveBlock + 24, // 32: com.seed.documents.v3alpha.DocumentChange.replace_block:type_name -> com.seed.documents.v3alpha.Block + 28, // 33: com.seed.documents.v3alpha.Ref.target:type_name -> com.seed.documents.v3alpha.RefTarget + 38, // 34: com.seed.documents.v3alpha.Ref.timestamp:type_name -> google.protobuf.Timestamp + 35, // 35: com.seed.documents.v3alpha.RefTarget.version:type_name -> com.seed.documents.v3alpha.RefTarget.Version + 36, // 36: com.seed.documents.v3alpha.RefTarget.redirect:type_name -> com.seed.documents.v3alpha.RefTarget.Redirect + 37, // 37: com.seed.documents.v3alpha.RefTarget.tombstone:type_name -> com.seed.documents.v3alpha.RefTarget.Tombstone + 2, // 38: com.seed.documents.v3alpha.Documents.GetDocument:input_type -> com.seed.documents.v3alpha.GetDocumentRequest + 3, // 39: com.seed.documents.v3alpha.Documents.CreateDocumentChange:input_type -> com.seed.documents.v3alpha.CreateDocumentChangeRequest + 4, // 40: com.seed.documents.v3alpha.Documents.DeleteDocument:input_type -> com.seed.documents.v3alpha.DeleteDocumentRequest + 7, // 41: com.seed.documents.v3alpha.Documents.ListAccounts:input_type -> com.seed.documents.v3alpha.ListAccountsRequest + 10, // 42: com.seed.documents.v3alpha.Documents.ListDirectory:input_type -> com.seed.documents.v3alpha.ListDirectoryRequest + 12, // 43: com.seed.documents.v3alpha.Documents.ListDocuments:input_type -> com.seed.documents.v3alpha.ListDocumentsRequest + 5, // 44: com.seed.documents.v3alpha.Documents.ListRootDocuments:input_type -> com.seed.documents.v3alpha.ListRootDocumentsRequest + 14, // 45: com.seed.documents.v3alpha.Documents.ListDocumentChanges:input_type -> com.seed.documents.v3alpha.ListDocumentChangesRequest + 16, // 46: com.seed.documents.v3alpha.Documents.CreateRef:input_type -> com.seed.documents.v3alpha.CreateRefRequest + 17, // 47: com.seed.documents.v3alpha.Documents.GetRef:input_type -> com.seed.documents.v3alpha.GetRefRequest + 22, // 48: com.seed.documents.v3alpha.Documents.GetDocument:output_type -> com.seed.documents.v3alpha.Document + 22, // 49: com.seed.documents.v3alpha.Documents.CreateDocumentChange:output_type -> com.seed.documents.v3alpha.Document + 40, // 50: com.seed.documents.v3alpha.Documents.DeleteDocument:output_type -> google.protobuf.Empty + 7, // 51: com.seed.documents.v3alpha.Documents.ListAccounts:output_type -> com.seed.documents.v3alpha.ListAccountsRequest + 11, // 52: com.seed.documents.v3alpha.Documents.ListDirectory:output_type -> com.seed.documents.v3alpha.ListDirectoryResponse + 13, // 53: com.seed.documents.v3alpha.Documents.ListDocuments:output_type -> com.seed.documents.v3alpha.ListDocumentsResponse + 6, // 54: com.seed.documents.v3alpha.Documents.ListRootDocuments:output_type -> com.seed.documents.v3alpha.ListRootDocumentsResponse + 15, // 55: com.seed.documents.v3alpha.Documents.ListDocumentChanges:output_type -> com.seed.documents.v3alpha.ListDocumentChangesResponse + 27, // 56: com.seed.documents.v3alpha.Documents.CreateRef:output_type -> com.seed.documents.v3alpha.Ref + 27, // 57: com.seed.documents.v3alpha.Documents.GetRef:output_type -> com.seed.documents.v3alpha.Ref + 48, // [48:58] is the sub-list for method output_type + 38, // [38:48] is the sub-list for method input_type + 38, // [38:38] is the sub-list for extension type_name + 38, // [38:38] is the sub-list for extension extendee + 0, // [0:38] is the sub-list for field type_name } func init() { file_documents_v3alpha_documents_proto_init() } @@ -2425,315 +3139,13 @@ func file_documents_v3alpha_documents_proto_init() { if File_documents_v3alpha_documents_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_documents_v3alpha_documents_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*GetDocumentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*CreateDocumentChangeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*DeleteDocumentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ListRootDocumentsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*ListRootDocumentsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*ListDocumentsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*ListDocumentsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*ListDocumentChangesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*ListDocumentChangesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*CreateRefRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*GetRefRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*DocumentChangeInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*DocumentListItem); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*Document); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*BlockNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*Block); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*Annotation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*DocumentChange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*Ref); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*RefTarget); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[23].Exporter = func(v any, i int) any { - switch v := v.(*DocumentChange_MoveBlock); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[24].Exporter = func(v any, i int) any { - switch v := v.(*DocumentChange_SetMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[25].Exporter = func(v any, i int) any { - switch v := v.(*RefTarget_Version); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[26].Exporter = func(v any, i int) any { - switch v := v.(*RefTarget_Redirect); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_documents_v3alpha_documents_proto_msgTypes[27].Exporter = func(v any, i int) any { - switch v := v.(*RefTarget_Tombstone); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_documents_v3alpha_documents_proto_msgTypes[17].OneofWrappers = []any{ + file_documents_v3alpha_documents_proto_msgTypes[24].OneofWrappers = []any{ (*DocumentChange_SetMetadata_)(nil), (*DocumentChange_MoveBlock_)(nil), (*DocumentChange_ReplaceBlock)(nil), (*DocumentChange_DeleteBlock)(nil), } - file_documents_v3alpha_documents_proto_msgTypes[19].OneofWrappers = []any{ + file_documents_v3alpha_documents_proto_msgTypes[26].OneofWrappers = []any{ (*RefTarget_Version_)(nil), (*RefTarget_Redirect_)(nil), (*RefTarget_Tombstone_)(nil), @@ -2743,13 +3155,14 @@ func file_documents_v3alpha_documents_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_documents_v3alpha_documents_proto_rawDesc, - NumEnums: 0, - NumMessages: 28, + NumEnums: 2, + NumMessages: 36, NumExtensions: 0, NumServices: 1, }, GoTypes: file_documents_v3alpha_documents_proto_goTypes, DependencyIndexes: file_documents_v3alpha_documents_proto_depIdxs, + EnumInfos: file_documents_v3alpha_documents_proto_enumTypes, MessageInfos: file_documents_v3alpha_documents_proto_msgTypes, }.Build() File_documents_v3alpha_documents_proto = out.File diff --git a/backend/genproto/documents/v3alpha/documents_grpc.pb.go b/backend/genproto/documents/v3alpha/documents_grpc.pb.go index 601c476ee..acb83df58 100644 --- a/backend/genproto/documents/v3alpha/documents_grpc.pb.go +++ b/backend/genproto/documents/v3alpha/documents_grpc.pb.go @@ -32,7 +32,16 @@ type DocumentsClient interface { // // Deprecated: Use CreateRef API. DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + // Lists all accounts. + // + // TODO(burdiyan): rename to spaces or sites. + ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsRequest, error) + // Lists documents in a directory of an account. + ListDirectory(ctx context.Context, in *ListDirectoryRequest, opts ...grpc.CallOption) (*ListDirectoryResponse, error) + // Deprecated: Do not use. // Lists documents within the account. Only the most recent versions show up. + // + // Deprecated: Use [ListDirectory]. ListDocuments(ctx context.Context, in *ListDocumentsRequest, opts ...grpc.CallOption) (*ListDocumentsResponse, error) // Lists all the root documents that we know about. ListRootDocuments(ctx context.Context, in *ListRootDocumentsRequest, opts ...grpc.CallOption) (*ListRootDocumentsResponse, error) @@ -80,6 +89,25 @@ func (c *documentsClient) DeleteDocument(ctx context.Context, in *DeleteDocument return out, nil } +func (c *documentsClient) ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsRequest, error) { + out := new(ListAccountsRequest) + err := c.cc.Invoke(ctx, "/com.seed.documents.v3alpha.Documents/ListAccounts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentsClient) ListDirectory(ctx context.Context, in *ListDirectoryRequest, opts ...grpc.CallOption) (*ListDirectoryResponse, error) { + out := new(ListDirectoryResponse) + err := c.cc.Invoke(ctx, "/com.seed.documents.v3alpha.Documents/ListDirectory", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Deprecated: Do not use. func (c *documentsClient) ListDocuments(ctx context.Context, in *ListDocumentsRequest, opts ...grpc.CallOption) (*ListDocumentsResponse, error) { out := new(ListDocumentsResponse) err := c.cc.Invoke(ctx, "/com.seed.documents.v3alpha.Documents/ListDocuments", in, out, opts...) @@ -138,7 +166,16 @@ type DocumentsServer interface { // // Deprecated: Use CreateRef API. DeleteDocument(context.Context, *DeleteDocumentRequest) (*emptypb.Empty, error) + // Lists all accounts. + // + // TODO(burdiyan): rename to spaces or sites. + ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsRequest, error) + // Lists documents in a directory of an account. + ListDirectory(context.Context, *ListDirectoryRequest) (*ListDirectoryResponse, error) + // Deprecated: Do not use. // Lists documents within the account. Only the most recent versions show up. + // + // Deprecated: Use [ListDirectory]. ListDocuments(context.Context, *ListDocumentsRequest) (*ListDocumentsResponse, error) // Lists all the root documents that we know about. ListRootDocuments(context.Context, *ListRootDocumentsRequest) (*ListRootDocumentsResponse, error) @@ -163,6 +200,12 @@ func (UnimplementedDocumentsServer) CreateDocumentChange(context.Context, *Creat func (UnimplementedDocumentsServer) DeleteDocument(context.Context, *DeleteDocumentRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteDocument not implemented") } +func (UnimplementedDocumentsServer) ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsRequest, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListAccounts not implemented") +} +func (UnimplementedDocumentsServer) ListDirectory(context.Context, *ListDirectoryRequest) (*ListDirectoryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListDirectory not implemented") +} func (UnimplementedDocumentsServer) ListDocuments(context.Context, *ListDocumentsRequest) (*ListDocumentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListDocuments not implemented") } @@ -244,6 +287,42 @@ func _Documents_DeleteDocument_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _Documents_ListAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListAccountsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentsServer).ListAccounts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/com.seed.documents.v3alpha.Documents/ListAccounts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentsServer).ListAccounts(ctx, req.(*ListAccountsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Documents_ListDirectory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListDirectoryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentsServer).ListDirectory(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/com.seed.documents.v3alpha.Documents/ListDirectory", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentsServer).ListDirectory(ctx, req.(*ListDirectoryRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Documents_ListDocuments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListDocumentsRequest) if err := dec(in); err != nil { @@ -353,6 +432,14 @@ var Documents_ServiceDesc = grpc.ServiceDesc{ MethodName: "DeleteDocument", Handler: _Documents_DeleteDocument_Handler, }, + { + MethodName: "ListAccounts", + Handler: _Documents_ListAccounts_Handler, + }, + { + MethodName: "ListDirectory", + Handler: _Documents_ListDirectory_Handler, + }, { MethodName: "ListDocuments", Handler: _Documents_ListDocuments_Handler, diff --git a/backend/genproto/entities/v1alpha/entities.pb.go b/backend/genproto/entities/v1alpha/entities.pb.go index b1349ff86..42d011627 100644 --- a/backend/genproto/entities/v1alpha/entities.pb.go +++ b/backend/genproto/entities/v1alpha/entities.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 v4.24.4 // source: entities/v1alpha/entities.proto @@ -34,11 +34,9 @@ type GetChangeRequest struct { func (x *GetChangeRequest) Reset() { *x = GetChangeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetChangeRequest) String() string { @@ -49,7 +47,7 @@ func (*GetChangeRequest) ProtoMessage() {} func (x *GetChangeRequest) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -86,11 +84,9 @@ type GetEntityTimelineRequest struct { func (x *GetEntityTimelineRequest) Reset() { *x = GetEntityTimelineRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetEntityTimelineRequest) String() string { @@ -101,7 +97,7 @@ func (*GetEntityTimelineRequest) ProtoMessage() {} func (x *GetEntityTimelineRequest) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -149,11 +145,9 @@ type DiscoverEntityRequest struct { func (x *DiscoverEntityRequest) Reset() { *x = DiscoverEntityRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DiscoverEntityRequest) String() string { @@ -164,7 +158,7 @@ func (*DiscoverEntityRequest) ProtoMessage() {} func (x *DiscoverEntityRequest) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -219,11 +213,9 @@ type DiscoverEntityResponse struct { func (x *DiscoverEntityResponse) Reset() { *x = DiscoverEntityResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DiscoverEntityResponse) String() string { @@ -234,7 +226,7 @@ func (*DiscoverEntityResponse) ProtoMessage() {} func (x *DiscoverEntityResponse) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -280,11 +272,9 @@ type Change struct { func (x *Change) Reset() { *x = Change{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Change) String() string { @@ -295,7 +285,7 @@ func (*Change) ProtoMessage() {} func (x *Change) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -385,11 +375,9 @@ type EntityTimeline struct { func (x *EntityTimeline) Reset() { *x = EntityTimeline{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EntityTimeline) String() string { @@ -400,7 +388,7 @@ func (*EntityTimeline) ProtoMessage() {} func (x *EntityTimeline) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -484,11 +472,9 @@ type AuthorVersion struct { func (x *AuthorVersion) Reset() { *x = AuthorVersion{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AuthorVersion) String() string { @@ -499,7 +485,7 @@ func (*AuthorVersion) ProtoMessage() {} func (x *AuthorVersion) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -561,11 +547,9 @@ type Entity struct { func (x *Entity) Reset() { *x = Entity{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Entity) String() string { @@ -576,7 +560,7 @@ func (*Entity) ProtoMessage() {} func (x *Entity) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -630,11 +614,9 @@ type DeletedEntity struct { func (x *DeletedEntity) Reset() { *x = DeletedEntity{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeletedEntity) String() string { @@ -645,7 +627,7 @@ func (*DeletedEntity) ProtoMessage() {} func (x *DeletedEntity) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -702,11 +684,9 @@ type SearchEntitiesRequest struct { func (x *SearchEntitiesRequest) Reset() { *x = SearchEntitiesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchEntitiesRequest) String() string { @@ -717,7 +697,7 @@ func (*SearchEntitiesRequest) ProtoMessage() {} func (x *SearchEntitiesRequest) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -753,11 +733,9 @@ type SearchEntitiesResponse struct { func (x *SearchEntitiesResponse) Reset() { *x = SearchEntitiesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchEntitiesResponse) String() string { @@ -768,7 +746,7 @@ func (*SearchEntitiesResponse) ProtoMessage() {} func (x *SearchEntitiesResponse) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -812,11 +790,9 @@ type DeleteEntityRequest struct { func (x *DeleteEntityRequest) Reset() { *x = DeleteEntityRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteEntityRequest) String() string { @@ -827,7 +803,7 @@ func (*DeleteEntityRequest) ProtoMessage() {} func (x *DeleteEntityRequest) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -870,11 +846,9 @@ type ListDeletedEntitiesRequest struct { func (x *ListDeletedEntitiesRequest) Reset() { *x = ListDeletedEntitiesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListDeletedEntitiesRequest) String() string { @@ -885,7 +859,7 @@ func (*ListDeletedEntitiesRequest) ProtoMessage() {} func (x *ListDeletedEntitiesRequest) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -928,11 +902,9 @@ type ListDeletedEntitiesResponse struct { func (x *ListDeletedEntitiesResponse) Reset() { *x = ListDeletedEntitiesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListDeletedEntitiesResponse) String() string { @@ -943,7 +915,7 @@ func (*ListDeletedEntitiesResponse) ProtoMessage() {} func (x *ListDeletedEntitiesResponse) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -985,11 +957,9 @@ type UndeleteEntityRequest struct { func (x *UndeleteEntityRequest) Reset() { *x = UndeleteEntityRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UndeleteEntityRequest) String() string { @@ -1000,7 +970,7 @@ func (*UndeleteEntityRequest) ProtoMessage() {} func (x *UndeleteEntityRequest) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -1048,11 +1018,9 @@ type ListEntityMentionsRequest struct { func (x *ListEntityMentionsRequest) Reset() { *x = ListEntityMentionsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListEntityMentionsRequest) String() string { @@ -1063,7 +1031,7 @@ func (*ListEntityMentionsRequest) ProtoMessage() {} func (x *ListEntityMentionsRequest) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -1120,11 +1088,9 @@ type ListEntityMentionsResponse struct { func (x *ListEntityMentionsResponse) Reset() { *x = ListEntityMentionsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListEntityMentionsResponse) String() string { @@ -1135,7 +1101,7 @@ func (*ListEntityMentionsResponse) ProtoMessage() {} func (x *ListEntityMentionsResponse) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -1193,11 +1159,9 @@ type Mention struct { func (x *Mention) Reset() { *x = Mention{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Mention) String() string { @@ -1208,7 +1172,7 @@ func (*Mention) ProtoMessage() {} func (x *Mention) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -1283,11 +1247,9 @@ type Mention_BlobInfo struct { func (x *Mention_BlobInfo) Reset() { *x = Mention_BlobInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_entities_v1alpha_entities_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_entities_v1alpha_entities_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Mention_BlobInfo) String() string { @@ -1298,7 +1260,7 @@ func (*Mention_BlobInfo) ProtoMessage() {} func (x *Mention_BlobInfo) ProtoReflect() protoreflect.Message { mi := &file_entities_v1alpha_entities_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) @@ -1649,236 +1611,6 @@ func file_entities_v1alpha_entities_proto_init() { if File_entities_v1alpha_entities_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_entities_v1alpha_entities_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*GetChangeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_entities_v1alpha_entities_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*GetEntityTimelineRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_entities_v1alpha_entities_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*DiscoverEntityRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_entities_v1alpha_entities_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*DiscoverEntityResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_entities_v1alpha_entities_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*Change); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_entities_v1alpha_entities_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*EntityTimeline); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_entities_v1alpha_entities_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*AuthorVersion); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_entities_v1alpha_entities_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*Entity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_entities_v1alpha_entities_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*DeletedEntity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_entities_v1alpha_entities_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*SearchEntitiesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_entities_v1alpha_entities_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*SearchEntitiesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_entities_v1alpha_entities_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*DeleteEntityRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_entities_v1alpha_entities_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*ListDeletedEntitiesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_entities_v1alpha_entities_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*ListDeletedEntitiesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_entities_v1alpha_entities_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*UndeleteEntityRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_entities_v1alpha_entities_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*ListEntityMentionsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_entities_v1alpha_entities_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*ListEntityMentionsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_entities_v1alpha_entities_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*Mention); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_entities_v1alpha_entities_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*Mention_BlobInfo); 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/backend/genproto/networking/v1alpha/networking.pb.go b/backend/genproto/networking/v1alpha/networking.pb.go index 205e3c829..ff97cd3af 100644 --- a/backend/genproto/networking/v1alpha/networking.pb.go +++ b/backend/genproto/networking/v1alpha/networking.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 v4.24.4 // source: networking/v1alpha/networking.proto @@ -96,11 +96,9 @@ type GetPeerInfoRequest struct { func (x *GetPeerInfoRequest) Reset() { *x = GetPeerInfoRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_networking_v1alpha_networking_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_networking_v1alpha_networking_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetPeerInfoRequest) String() string { @@ -111,7 +109,7 @@ func (*GetPeerInfoRequest) ProtoMessage() {} func (x *GetPeerInfoRequest) ProtoReflect() protoreflect.Message { mi := &file_networking_v1alpha_networking_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) @@ -147,11 +145,9 @@ type ListPeersRequest struct { func (x *ListPeersRequest) Reset() { *x = ListPeersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_networking_v1alpha_networking_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_networking_v1alpha_networking_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListPeersRequest) String() string { @@ -162,7 +158,7 @@ func (*ListPeersRequest) ProtoMessage() {} func (x *ListPeersRequest) ProtoReflect() protoreflect.Message { mi := &file_networking_v1alpha_networking_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) @@ -205,11 +201,9 @@ type ListPeersResponse struct { func (x *ListPeersResponse) Reset() { *x = ListPeersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_networking_v1alpha_networking_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_networking_v1alpha_networking_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListPeersResponse) String() string { @@ -220,7 +214,7 @@ func (*ListPeersResponse) ProtoMessage() {} func (x *ListPeersResponse) ProtoReflect() protoreflect.Message { mi := &file_networking_v1alpha_networking_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) @@ -262,11 +256,9 @@ type ConnectRequest struct { func (x *ConnectRequest) Reset() { *x = ConnectRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_networking_v1alpha_networking_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_networking_v1alpha_networking_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ConnectRequest) String() string { @@ -277,7 +269,7 @@ func (*ConnectRequest) ProtoMessage() {} func (x *ConnectRequest) ProtoReflect() protoreflect.Message { mi := &file_networking_v1alpha_networking_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) @@ -308,11 +300,9 @@ type ConnectResponse struct { func (x *ConnectResponse) Reset() { *x = ConnectResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_networking_v1alpha_networking_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_networking_v1alpha_networking_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ConnectResponse) String() string { @@ -323,7 +313,7 @@ func (*ConnectResponse) ProtoMessage() {} func (x *ConnectResponse) ProtoReflect() protoreflect.Message { mi := &file_networking_v1alpha_networking_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) @@ -362,11 +352,9 @@ type PeerInfo struct { func (x *PeerInfo) Reset() { *x = PeerInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_networking_v1alpha_networking_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_networking_v1alpha_networking_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PeerInfo) String() string { @@ -377,7 +365,7 @@ func (*PeerInfo) ProtoMessage() {} func (x *PeerInfo) ProtoReflect() protoreflect.Message { mi := &file_networking_v1alpha_networking_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) @@ -570,80 +558,6 @@ func file_networking_v1alpha_networking_proto_init() { if File_networking_v1alpha_networking_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_networking_v1alpha_networking_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*GetPeerInfoRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_networking_v1alpha_networking_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ListPeersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_networking_v1alpha_networking_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*ListPeersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_networking_v1alpha_networking_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ConnectRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_networking_v1alpha_networking_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*ConnectResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_networking_v1alpha_networking_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*PeerInfo); 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/backend/genproto/p2p/v1alpha/p2p.pb.go b/backend/genproto/p2p/v1alpha/p2p.pb.go index 75bb9d59a..536345abd 100644 --- a/backend/genproto/p2p/v1alpha/p2p.pb.go +++ b/backend/genproto/p2p/v1alpha/p2p.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 v4.24.4 // source: p2p/v1alpha/p2p.proto @@ -96,11 +96,9 @@ type ListBlobsRequest struct { func (x *ListBlobsRequest) Reset() { *x = ListBlobsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_p2p_v1alpha_p2p_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_p2p_v1alpha_p2p_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListBlobsRequest) String() string { @@ -111,7 +109,7 @@ func (*ListBlobsRequest) ProtoMessage() {} func (x *ListBlobsRequest) ProtoReflect() protoreflect.Message { mi := &file_p2p_v1alpha_p2p_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) @@ -147,11 +145,9 @@ type ListPeersRequest struct { func (x *ListPeersRequest) Reset() { *x = ListPeersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_p2p_v1alpha_p2p_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_p2p_v1alpha_p2p_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListPeersRequest) String() string { @@ -162,7 +158,7 @@ func (*ListPeersRequest) ProtoMessage() {} func (x *ListPeersRequest) ProtoReflect() protoreflect.Message { mi := &file_p2p_v1alpha_p2p_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) @@ -209,11 +205,9 @@ type ListSpacesRequest struct { func (x *ListSpacesRequest) Reset() { *x = ListSpacesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_p2p_v1alpha_p2p_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_p2p_v1alpha_p2p_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListSpacesRequest) String() string { @@ -224,7 +218,7 @@ func (*ListSpacesRequest) ProtoMessage() {} func (x *ListSpacesRequest) ProtoReflect() protoreflect.Message { mi := &file_p2p_v1alpha_p2p_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) @@ -280,11 +274,9 @@ type ListSpacesResponse struct { func (x *ListSpacesResponse) Reset() { *x = ListSpacesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_p2p_v1alpha_p2p_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_p2p_v1alpha_p2p_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListSpacesResponse) String() string { @@ -295,7 +287,7 @@ func (*ListSpacesResponse) ProtoMessage() {} func (x *ListSpacesResponse) ProtoReflect() protoreflect.Message { mi := &file_p2p_v1alpha_p2p_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) @@ -351,11 +343,9 @@ type RequestInvoiceRequest struct { func (x *RequestInvoiceRequest) Reset() { *x = RequestInvoiceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_p2p_v1alpha_p2p_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_p2p_v1alpha_p2p_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RequestInvoiceRequest) String() string { @@ -366,7 +356,7 @@ func (*RequestInvoiceRequest) ProtoMessage() {} func (x *RequestInvoiceRequest) ProtoReflect() protoreflect.Message { mi := &file_p2p_v1alpha_p2p_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) @@ -428,11 +418,9 @@ type RequestInvoiceResponse struct { func (x *RequestInvoiceResponse) Reset() { *x = RequestInvoiceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_p2p_v1alpha_p2p_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_p2p_v1alpha_p2p_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RequestInvoiceResponse) String() string { @@ -443,7 +431,7 @@ func (*RequestInvoiceResponse) ProtoMessage() {} func (x *RequestInvoiceResponse) ProtoReflect() protoreflect.Message { mi := &file_p2p_v1alpha_p2p_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) @@ -479,11 +467,9 @@ type ListPeersResponse struct { func (x *ListPeersResponse) Reset() { *x = ListPeersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_p2p_v1alpha_p2p_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_p2p_v1alpha_p2p_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListPeersResponse) String() string { @@ -494,7 +480,7 @@ func (*ListPeersResponse) ProtoMessage() {} func (x *ListPeersResponse) ProtoReflect() protoreflect.Message { mi := &file_p2p_v1alpha_p2p_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) @@ -538,11 +524,9 @@ type Blob struct { func (x *Blob) Reset() { *x = Blob{} - if protoimpl.UnsafeEnabled { - mi := &file_p2p_v1alpha_p2p_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_p2p_v1alpha_p2p_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Blob) String() string { @@ -553,7 +537,7 @@ func (*Blob) ProtoMessage() {} func (x *Blob) ProtoReflect() protoreflect.Message { mi := &file_p2p_v1alpha_p2p_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) @@ -600,11 +584,9 @@ type PeerInfo struct { func (x *PeerInfo) Reset() { *x = PeerInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_p2p_v1alpha_p2p_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_p2p_v1alpha_p2p_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PeerInfo) String() string { @@ -615,7 +597,7 @@ func (*PeerInfo) ProtoMessage() {} func (x *PeerInfo) ProtoReflect() protoreflect.Message { mi := &file_p2p_v1alpha_p2p_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) @@ -811,116 +793,6 @@ func file_p2p_v1alpha_p2p_proto_init() { if File_p2p_v1alpha_p2p_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_p2p_v1alpha_p2p_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ListBlobsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_p2p_v1alpha_p2p_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ListPeersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_p2p_v1alpha_p2p_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*ListSpacesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_p2p_v1alpha_p2p_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ListSpacesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_p2p_v1alpha_p2p_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*RequestInvoiceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_p2p_v1alpha_p2p_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*RequestInvoiceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_p2p_v1alpha_p2p_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*ListPeersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_p2p_v1alpha_p2p_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*Blob); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_p2p_v1alpha_p2p_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*PeerInfo); 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/backend/genproto/p2p/v1alpha/syncing.pb.go b/backend/genproto/p2p/v1alpha/syncing.pb.go index f009c2e1e..d91636f39 100644 --- a/backend/genproto/p2p/v1alpha/syncing.pb.go +++ b/backend/genproto/p2p/v1alpha/syncing.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 v4.24.4 // source: p2p/v1alpha/syncing.proto @@ -83,11 +83,9 @@ type ReconcileBlobsRequest struct { func (x *ReconcileBlobsRequest) Reset() { *x = ReconcileBlobsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_p2p_v1alpha_syncing_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_p2p_v1alpha_syncing_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReconcileBlobsRequest) String() string { @@ -98,7 +96,7 @@ func (*ReconcileBlobsRequest) ProtoMessage() {} func (x *ReconcileBlobsRequest) ProtoReflect() protoreflect.Message { mi := &file_p2p_v1alpha_syncing_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) @@ -137,11 +135,9 @@ type ReconcileBlobsResponse struct { func (x *ReconcileBlobsResponse) Reset() { *x = ReconcileBlobsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_p2p_v1alpha_syncing_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_p2p_v1alpha_syncing_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReconcileBlobsResponse) String() string { @@ -152,7 +148,7 @@ func (*ReconcileBlobsResponse) ProtoMessage() {} func (x *ReconcileBlobsResponse) ProtoReflect() protoreflect.Message { mi := &file_p2p_v1alpha_syncing_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) @@ -189,11 +185,9 @@ type Filter struct { func (x *Filter) Reset() { *x = Filter{} - if protoimpl.UnsafeEnabled { - mi := &file_p2p_v1alpha_syncing_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_p2p_v1alpha_syncing_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Filter) String() string { @@ -204,7 +198,7 @@ func (*Filter) ProtoMessage() {} func (x *Filter) ProtoReflect() protoreflect.Message { mi := &file_p2p_v1alpha_syncing_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) @@ -252,11 +246,9 @@ type SetReconciliationRange struct { func (x *SetReconciliationRange) Reset() { *x = SetReconciliationRange{} - if protoimpl.UnsafeEnabled { - mi := &file_p2p_v1alpha_syncing_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_p2p_v1alpha_syncing_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SetReconciliationRange) String() string { @@ -267,7 +259,7 @@ func (*SetReconciliationRange) ProtoMessage() {} func (x *SetReconciliationRange) ProtoReflect() protoreflect.Message { mi := &file_p2p_v1alpha_syncing_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) @@ -413,56 +405,6 @@ func file_p2p_v1alpha_syncing_proto_init() { if File_p2p_v1alpha_syncing_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_p2p_v1alpha_syncing_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ReconcileBlobsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_p2p_v1alpha_syncing_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ReconcileBlobsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_p2p_v1alpha_syncing_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*Filter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_p2p_v1alpha_syncing_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*SetReconciliationRange); 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/backend/genproto/payments/v1alpha/invoices.pb.go b/backend/genproto/payments/v1alpha/invoices.pb.go index a52924c0f..fc51fdd67 100644 --- a/backend/genproto/payments/v1alpha/invoices.pb.go +++ b/backend/genproto/payments/v1alpha/invoices.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 v4.24.4 // source: payments/v1alpha/invoices.proto @@ -35,11 +35,9 @@ type InvoiceResponse struct { func (x *InvoiceResponse) Reset() { *x = InvoiceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_invoices_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_invoices_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvoiceResponse) String() string { @@ -50,7 +48,7 @@ func (*InvoiceResponse) ProtoMessage() {} func (x *InvoiceResponse) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_invoices_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) @@ -90,11 +88,9 @@ type DecodeInvoiceRequest struct { func (x *DecodeInvoiceRequest) Reset() { *x = DecodeInvoiceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_invoices_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_invoices_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecodeInvoiceRequest) String() string { @@ -105,7 +101,7 @@ func (*DecodeInvoiceRequest) ProtoMessage() {} func (x *DecodeInvoiceRequest) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_invoices_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) @@ -149,11 +145,9 @@ type CreateInvoiceRequest struct { func (x *CreateInvoiceRequest) Reset() { *x = CreateInvoiceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_invoices_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_invoices_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateInvoiceRequest) String() string { @@ -164,7 +158,7 @@ func (*CreateInvoiceRequest) ProtoMessage() {} func (x *CreateInvoiceRequest) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_invoices_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) @@ -227,11 +221,9 @@ type PayInvoiceRequest struct { func (x *PayInvoiceRequest) Reset() { *x = PayInvoiceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_invoices_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_invoices_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PayInvoiceRequest) String() string { @@ -242,7 +234,7 @@ func (*PayInvoiceRequest) ProtoMessage() {} func (x *PayInvoiceRequest) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_invoices_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) @@ -303,11 +295,9 @@ type RequestLud6InvoiceRequest struct { func (x *RequestLud6InvoiceRequest) Reset() { *x = RequestLud6InvoiceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_invoices_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_invoices_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RequestLud6InvoiceRequest) String() string { @@ -318,7 +308,7 @@ func (*RequestLud6InvoiceRequest) ProtoMessage() {} func (x *RequestLud6InvoiceRequest) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_invoices_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) @@ -373,11 +363,9 @@ type GetLnAddressRequest struct { func (x *GetLnAddressRequest) Reset() { *x = GetLnAddressRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_invoices_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_invoices_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetLnAddressRequest) String() string { @@ -388,7 +376,7 @@ func (*GetLnAddressRequest) ProtoMessage() {} func (x *GetLnAddressRequest) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_invoices_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) @@ -422,11 +410,9 @@ type LNAddress struct { func (x *LNAddress) Reset() { *x = LNAddress{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_invoices_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_invoices_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LNAddress) String() string { @@ -437,7 +423,7 @@ func (*LNAddress) ProtoMessage() {} func (x *LNAddress) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_invoices_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) @@ -475,11 +461,9 @@ type UpdateLNAddressRequest struct { func (x *UpdateLNAddressRequest) Reset() { *x = UpdateLNAddressRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_invoices_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_invoices_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateLNAddressRequest) String() string { @@ -490,7 +474,7 @@ func (*UpdateLNAddressRequest) ProtoMessage() {} func (x *UpdateLNAddressRequest) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_invoices_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) @@ -531,11 +515,9 @@ type ListInvoicesRequest struct { func (x *ListInvoicesRequest) Reset() { *x = ListInvoicesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_invoices_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_invoices_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListInvoicesRequest) String() string { @@ -546,7 +528,7 @@ func (*ListInvoicesRequest) ProtoMessage() {} func (x *ListInvoicesRequest) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_invoices_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) @@ -608,11 +590,9 @@ type Invoice struct { func (x *Invoice) Reset() { *x = Invoice{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_invoices_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_invoices_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Invoice) String() string { @@ -623,7 +603,7 @@ func (*Invoice) ProtoMessage() {} func (x *Invoice) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_invoices_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) @@ -755,11 +735,9 @@ type ListInvoicesResponse struct { func (x *ListInvoicesResponse) Reset() { *x = ListInvoicesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_invoices_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_invoices_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListInvoicesResponse) String() string { @@ -770,7 +748,7 @@ func (*ListInvoicesResponse) ProtoMessage() {} func (x *ListInvoicesResponse) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_invoices_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) @@ -995,140 +973,6 @@ func file_payments_v1alpha_invoices_proto_init() { if File_payments_v1alpha_invoices_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_payments_v1alpha_invoices_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*InvoiceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_invoices_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*DecodeInvoiceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_invoices_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*CreateInvoiceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_invoices_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*PayInvoiceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_invoices_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*RequestLud6InvoiceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_invoices_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*GetLnAddressRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_invoices_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*LNAddress); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_invoices_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*UpdateLNAddressRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_invoices_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*ListInvoicesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_invoices_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*Invoice); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_invoices_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*ListInvoicesResponse); 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/backend/genproto/payments/v1alpha/wallets.pb.go b/backend/genproto/payments/v1alpha/wallets.pb.go index c3e296bea..04861c66a 100644 --- a/backend/genproto/payments/v1alpha/wallets.pb.go +++ b/backend/genproto/payments/v1alpha/wallets.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 v4.24.4 // source: payments/v1alpha/wallets.proto @@ -42,11 +42,9 @@ type Wallet struct { func (x *Wallet) Reset() { *x = Wallet{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_wallets_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_wallets_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Wallet) String() string { @@ -57,7 +55,7 @@ func (*Wallet) ProtoMessage() {} func (x *Wallet) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_wallets_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) @@ -121,11 +119,9 @@ type CreateWalletRequest struct { func (x *CreateWalletRequest) Reset() { *x = CreateWalletRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_wallets_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_wallets_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateWalletRequest) String() string { @@ -136,7 +132,7 @@ func (*CreateWalletRequest) ProtoMessage() {} func (x *CreateWalletRequest) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_wallets_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) @@ -182,11 +178,9 @@ type ImportWalletRequest struct { func (x *ImportWalletRequest) Reset() { *x = ImportWalletRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_wallets_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_wallets_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImportWalletRequest) String() string { @@ -197,7 +191,7 @@ func (*ImportWalletRequest) ProtoMessage() {} func (x *ImportWalletRequest) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_wallets_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) @@ -245,11 +239,9 @@ type ExportWalletResponse struct { func (x *ExportWalletResponse) Reset() { *x = ExportWalletResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_wallets_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_wallets_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExportWalletResponse) String() string { @@ -260,7 +252,7 @@ func (*ExportWalletResponse) ProtoMessage() {} func (x *ExportWalletResponse) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_wallets_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) @@ -294,11 +286,9 @@ type WalletRequest struct { func (x *WalletRequest) Reset() { *x = WalletRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_wallets_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_wallets_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WalletRequest) String() string { @@ -309,7 +299,7 @@ func (*WalletRequest) ProtoMessage() {} func (x *WalletRequest) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_wallets_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) @@ -343,11 +333,9 @@ type GetWalletBalanceResponse struct { func (x *GetWalletBalanceResponse) Reset() { *x = GetWalletBalanceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_wallets_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_wallets_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetWalletBalanceResponse) String() string { @@ -358,7 +346,7 @@ func (*GetWalletBalanceResponse) ProtoMessage() {} func (x *GetWalletBalanceResponse) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_wallets_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) @@ -392,11 +380,9 @@ type ListWalletsRequest struct { func (x *ListWalletsRequest) Reset() { *x = ListWalletsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_wallets_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_wallets_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListWalletsRequest) String() string { @@ -407,7 +393,7 @@ func (*ListWalletsRequest) ProtoMessage() {} func (x *ListWalletsRequest) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_wallets_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) @@ -441,11 +427,9 @@ type ListWalletsResponse struct { func (x *ListWalletsResponse) Reset() { *x = ListWalletsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_wallets_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_wallets_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListWalletsResponse) String() string { @@ -456,7 +440,7 @@ func (*ListWalletsResponse) ProtoMessage() {} func (x *ListWalletsResponse) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_wallets_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) @@ -492,11 +476,9 @@ type UpdateWalletNameRequest struct { func (x *UpdateWalletNameRequest) Reset() { *x = UpdateWalletNameRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_wallets_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_wallets_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateWalletNameRequest) String() string { @@ -507,7 +489,7 @@ func (*UpdateWalletNameRequest) ProtoMessage() {} func (x *UpdateWalletNameRequest) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_wallets_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) @@ -547,11 +529,9 @@ type GetDefaultWalletRequest struct { func (x *GetDefaultWalletRequest) Reset() { *x = GetDefaultWalletRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_wallets_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_wallets_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetDefaultWalletRequest) String() string { @@ -562,7 +542,7 @@ func (*GetDefaultWalletRequest) ProtoMessage() {} func (x *GetDefaultWalletRequest) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_wallets_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) @@ -599,11 +579,9 @@ type SetDefaultWalletRequest struct { func (x *SetDefaultWalletRequest) Reset() { *x = SetDefaultWalletRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_payments_v1alpha_wallets_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_payments_v1alpha_wallets_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SetDefaultWalletRequest) String() string { @@ -614,7 +592,7 @@ func (*SetDefaultWalletRequest) ProtoMessage() {} func (x *SetDefaultWalletRequest) ProtoReflect() protoreflect.Message { mi := &file_payments_v1alpha_wallets_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) @@ -831,140 +809,6 @@ func file_payments_v1alpha_wallets_proto_init() { if File_payments_v1alpha_wallets_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_payments_v1alpha_wallets_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Wallet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_wallets_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*CreateWalletRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_wallets_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*ImportWalletRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_wallets_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ExportWalletResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_wallets_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*WalletRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_wallets_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*GetWalletBalanceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_wallets_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*ListWalletsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_wallets_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*ListWalletsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_wallets_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*UpdateWalletNameRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_wallets_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*GetDefaultWalletRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_payments_v1alpha_wallets_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*SetDefaultWalletRequest); 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/frontend/packages/shared/src/client/.generated/documents/v3alpha/comments_connect.ts b/frontend/packages/shared/src/client/.generated/documents/v3alpha/comments_connect.ts index da0c670ea..d029e7458 100644 --- a/frontend/packages/shared/src/client/.generated/documents/v3alpha/comments_connect.ts +++ b/frontend/packages/shared/src/client/.generated/documents/v3alpha/comments_connect.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { Comment, CreateCommentRequest, GetCommentRequest, ListCommentsRequest, ListCommentsResponse } from "./comments_pb"; +import { BatchGetCommentsRequest, BatchGetCommentsResponse, Comment, CreateCommentRequest, GetCommentRequest, ListCommentsRequest, ListCommentsResponse } from "./comments_pb"; import { MethodKind } from "@bufbuild/protobuf"; /** @@ -36,6 +36,17 @@ export const Comments = { O: Comment, kind: MethodKind.Unary, }, + /** + * Get multiple comments by ID. + * + * @generated from rpc com.seed.documents.v3alpha.Comments.BatchGetComments + */ + batchGetComments: { + name: "BatchGetComments", + I: BatchGetCommentsRequest, + O: BatchGetCommentsResponse, + kind: MethodKind.Unary, + }, /** * Lists comments for a given target. * diff --git a/frontend/packages/shared/src/client/.generated/documents/v3alpha/comments_pb.ts b/frontend/packages/shared/src/client/.generated/documents/v3alpha/comments_pb.ts index db4ec708d..dee0e1371 100644 --- a/frontend/packages/shared/src/client/.generated/documents/v3alpha/comments_pb.ts +++ b/frontend/packages/shared/src/client/.generated/documents/v3alpha/comments_pb.ts @@ -140,6 +140,88 @@ export class GetCommentRequest extends Message { } } +/** + * Request to get multiple comments. + * + * @generated from message com.seed.documents.v3alpha.BatchGetCommentsRequest + */ +export class BatchGetCommentsRequest extends Message { + /** + * Required. List of comment IDs to retrieve. + * + * @generated from field: repeated string ids = 1; + */ + ids: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "com.seed.documents.v3alpha.BatchGetCommentsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BatchGetCommentsRequest { + return new BatchGetCommentsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BatchGetCommentsRequest { + return new BatchGetCommentsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BatchGetCommentsRequest { + return new BatchGetCommentsRequest().fromJsonString(jsonString, options); + } + + static equals(a: BatchGetCommentsRequest | PlainMessage | undefined, b: BatchGetCommentsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(BatchGetCommentsRequest, a, b); + } +} + +/** + * Response with multiple comments. + * + * @generated from message com.seed.documents.v3alpha.BatchGetCommentsResponse + */ +export class BatchGetCommentsResponse extends Message { + /** + * List of comments requested. + * + * @generated from field: repeated com.seed.documents.v3alpha.Comment comments = 1; + */ + comments: Comment[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "com.seed.documents.v3alpha.BatchGetCommentsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "comments", kind: "message", T: Comment, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BatchGetCommentsResponse { + return new BatchGetCommentsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BatchGetCommentsResponse { + return new BatchGetCommentsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BatchGetCommentsResponse { + return new BatchGetCommentsResponse().fromJsonString(jsonString, options); + } + + static equals(a: BatchGetCommentsResponse | PlainMessage | undefined, b: BatchGetCommentsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(BatchGetCommentsResponse, a, b); + } +} + /** * Request to list comments. * diff --git a/frontend/packages/shared/src/client/.generated/documents/v3alpha/documents_connect.ts b/frontend/packages/shared/src/client/.generated/documents/v3alpha/documents_connect.ts index 8907557a9..95ad79a0c 100644 --- a/frontend/packages/shared/src/client/.generated/documents/v3alpha/documents_connect.ts +++ b/frontend/packages/shared/src/client/.generated/documents/v3alpha/documents_connect.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { CreateDocumentChangeRequest, CreateRefRequest, DeleteDocumentRequest, Document, GetDocumentRequest, GetRefRequest, ListDocumentChangesRequest, ListDocumentChangesResponse, ListDocumentsRequest, ListDocumentsResponse, ListRootDocumentsRequest, ListRootDocumentsResponse, Ref } from "./documents_pb"; +import { CreateDocumentChangeRequest, CreateRefRequest, DeleteDocumentRequest, Document, GetDocumentRequest, GetRefRequest, ListAccountsRequest, ListDirectoryRequest, ListDirectoryResponse, ListDocumentChangesRequest, ListDocumentChangesResponse, ListDocumentsRequest, ListDocumentsResponse, ListRootDocumentsRequest, ListRootDocumentsResponse, Ref } from "./documents_pb"; import { Empty, MethodKind } from "@bufbuild/protobuf"; /** @@ -50,10 +50,37 @@ export const Documents = { O: Empty, kind: MethodKind.Unary, }, + /** + * Lists all accounts. + * + * TODO(burdiyan): rename to spaces or sites. + * + * @generated from rpc com.seed.documents.v3alpha.Documents.ListAccounts + */ + listAccounts: { + name: "ListAccounts", + I: ListAccountsRequest, + O: ListAccountsRequest, + kind: MethodKind.Unary, + }, + /** + * Lists documents in a directory of an account. + * + * @generated from rpc com.seed.documents.v3alpha.Documents.ListDirectory + */ + listDirectory: { + name: "ListDirectory", + I: ListDirectoryRequest, + O: ListDirectoryResponse, + kind: MethodKind.Unary, + }, /** * Lists documents within the account. Only the most recent versions show up. * + * Deprecated: Use [ListDirectory]. + * * @generated from rpc com.seed.documents.v3alpha.Documents.ListDocuments + * @deprecated */ listDocuments: { name: "ListDocuments", diff --git a/frontend/packages/shared/src/client/.generated/documents/v3alpha/documents_pb.ts b/frontend/packages/shared/src/client/.generated/documents/v3alpha/documents_pb.ts index 41890bbfe..024eee4fc 100644 --- a/frontend/packages/shared/src/client/.generated/documents/v3alpha/documents_pb.ts +++ b/frontend/packages/shared/src/client/.generated/documents/v3alpha/documents_pb.ts @@ -306,6 +306,389 @@ export class ListRootDocumentsResponse extends Message { + /** + * Optional. Number of results to return per page. + * If not set, the server will pick some default number. + * + * @generated from field: int32 page_size = 1; + */ + pageSize = 0; + + /** + * Optional. Token of the page to request, obtained from + * a previous response. + * + * @generated from field: string page_token = 2; + */ + pageToken = ""; + + /** + * Optional. If set to true, only accounts that the user is subscribed to will be returned. + * If at least one document in the account has a subscription, then the account is considered subscribed. + * + * @generated from field: bool subscribed_only = 3; + */ + subscribedOnly = false; + + /** + * Sorting mode for the list response. + * + * @generated from field: com.seed.documents.v3alpha.ListAccountsRequest.SortOrder sort_order = 4; + */ + sortOrder = ListAccountsRequest_SortOrder.LATEST_ACTIVITY_FIRST; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "com.seed.documents.v3alpha.ListAccountsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 2, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "subscribed_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "sort_order", kind: "enum", T: proto3.getEnumType(ListAccountsRequest_SortOrder) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListAccountsRequest { + return new ListAccountsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListAccountsRequest { + return new ListAccountsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListAccountsRequest { + return new ListAccountsRequest().fromJsonString(jsonString, options); + } + + static equals(a: ListAccountsRequest | PlainMessage | undefined, b: ListAccountsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ListAccountsRequest, a, b); + } +} + +/** + * Sorting options for the list of accounts. + * + * @generated from enum com.seed.documents.v3alpha.ListAccountsRequest.SortOrder + */ +export enum ListAccountsRequest_SortOrder { + /** + * Sorting by the most recent activity time. + * + * @generated from enum value: LATEST_ACTIVITY_FIRST = 0; + */ + LATEST_ACTIVITY_FIRST = 0, + + /** + * Sorting by the name of the account (i.e. title of the root document). + * + * @generated from enum value: NAME_ALPHABETICAL = 1; + */ + NAME_ALPHABETICAL = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(ListAccountsRequest_SortOrder) +proto3.util.setEnumType(ListAccountsRequest_SortOrder, "com.seed.documents.v3alpha.ListAccountsRequest.SortOrder", [ + { no: 0, name: "LATEST_ACTIVITY_FIRST" }, + { no: 1, name: "NAME_ALPHABETICAL" }, +]); + +/** + * Response to list accounts. + * + * @generated from message com.seed.documents.v3alpha.ListAccountsResponse + */ +export class ListAccountsResponse extends Message { + /** + * List of accounts. + * + * @generated from field: repeated com.seed.documents.v3alpha.Account accounts = 1; + */ + accounts: Account[] = []; + + /** + * Token for the next page if there're more results. + * + * @generated from field: string next_page_token = 2; + */ + nextPageToken = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "com.seed.documents.v3alpha.ListAccountsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accounts", kind: "message", T: Account, repeated: true }, + { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListAccountsResponse { + return new ListAccountsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListAccountsResponse { + return new ListAccountsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListAccountsResponse { + return new ListAccountsResponse().fromJsonString(jsonString, options); + } + + static equals(a: ListAccountsResponse | PlainMessage | undefined, b: ListAccountsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ListAccountsResponse, a, b); + } +} + +/** + * Aggregated information about an account. + * Some of this information comes from the accounts' root document, + * some is aggregated from the other documents inside of the account. + * + * @generated from message com.seed.documents.v3alpha.Account + */ +export class Account extends Message { + /** + * ID of the account. + * + * @generated from field: string id = 1; + */ + id = ""; + + /** + * Metadata attributes from the root document of the account. + * + * @generated from field: map metadata = 2; + */ + metadata: { [key: string]: string } = {}; + + /** + * Summary of the activity in the entire account. + * + * @generated from field: com.seed.documents.v3alpha.ActivitySummary activity_summary = 3; + */ + activitySummary?: ActivitySummary; + + /** + * Whether the user is subscribed to this account. + * + * @generated from field: bool is_subscribed = 4; + */ + isSubscribed = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "com.seed.documents.v3alpha.Account"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 3, name: "activity_summary", kind: "message", T: ActivitySummary }, + { no: 4, name: "is_subscribed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Account { + return new Account().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Account { + return new Account().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Account { + return new Account().fromJsonString(jsonString, options); + } + + static equals(a: Account | PlainMessage | undefined, b: Account | PlainMessage | undefined): boolean { + return proto3.util.equals(Account, a, b); + } +} + +/** + * Request to list a directory. + * + * @generated from message com.seed.documents.v3alpha.ListDirectoryRequest + */ +export class ListDirectoryRequest extends Message { + /** + * Optional. Size of the page. + * + * @generated from field: int32 page_size = 1; + */ + pageSize = 0; + + /** + * Optional. Pagination token. + * + * @generated from field: string page_token = 2; + */ + pageToken = ""; + + /** + * Required. ID of the account to list the directory for. + * + * @generated from field: string account = 3; + */ + account = ""; + + /** + * Required. Path of the directory to list documents for. + * Empty string means root directory. + * + * @generated from field: string directory_path = 4; + */ + directoryPath = ""; + + /** + * Optional. If true, list documents recursively. + * + * @generated from field: bool recursive = 5; + */ + recursive = false; + + /** + * Optional. Sorting mode for the list response. + * + * @generated from field: com.seed.documents.v3alpha.ListDirectoryRequest.SortOrder sort_order = 6; + */ + sortOrder = ListDirectoryRequest_SortOrder.LATEST_ACTIVITY_FIRST; + + /** + * Optional. If set to true, only documents that the user is subscribed to will be returned. + * + * @generated from field: bool subscribed_only = 7; + */ + subscribedOnly = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "com.seed.documents.v3alpha.ListDirectoryRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 2, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "directory_path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "recursive", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "sort_order", kind: "enum", T: proto3.getEnumType(ListDirectoryRequest_SortOrder) }, + { no: 7, name: "subscribed_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListDirectoryRequest { + return new ListDirectoryRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListDirectoryRequest { + return new ListDirectoryRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListDirectoryRequest { + return new ListDirectoryRequest().fromJsonString(jsonString, options); + } + + static equals(a: ListDirectoryRequest | PlainMessage | undefined, b: ListDirectoryRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ListDirectoryRequest, a, b); + } +} + +/** + * Sorting options for the list of documents. + * + * @generated from enum com.seed.documents.v3alpha.ListDirectoryRequest.SortOrder + */ +export enum ListDirectoryRequest_SortOrder { + /** + * Sorting by the most recent activity time. + * + * @generated from enum value: LATEST_ACTIVITY_FIRST = 0; + */ + LATEST_ACTIVITY_FIRST = 0, + + /** + * Sorting by the name/title of the document. + * + * @generated from enum value: NAME_ALPHABETICAL = 1; + */ + NAME_ALPHABETICAL = 1, + + /** + * Sorting by the path of the document. + * + * @generated from enum value: PATH_ALPHABETICAL = 2; + */ + PATH_ALPHABETICAL = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(ListDirectoryRequest_SortOrder) +proto3.util.setEnumType(ListDirectoryRequest_SortOrder, "com.seed.documents.v3alpha.ListDirectoryRequest.SortOrder", [ + { no: 0, name: "LATEST_ACTIVITY_FIRST" }, + { no: 1, name: "NAME_ALPHABETICAL" }, + { no: 2, name: "PATH_ALPHABETICAL" }, +]); + +/** + * Response of the directory list. + * + * @generated from message com.seed.documents.v3alpha.ListDirectoryResponse + */ +export class ListDirectoryResponse extends Message { + /** + * List of documents. + * + * @generated from field: repeated com.seed.documents.v3alpha.DocumentListItem documents = 1; + */ + documents: DocumentListItem[] = []; + + /** + * Optional. Token for the next page if there're more results. + * + * @generated from field: string next_page_token = 2; + */ + nextPageToken = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "com.seed.documents.v3alpha.ListDirectoryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "documents", kind: "message", T: DocumentListItem, repeated: true }, + { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListDirectoryResponse { + return new ListDirectoryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListDirectoryResponse { + return new ListDirectoryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListDirectoryResponse { + return new ListDirectoryResponse().fromJsonString(jsonString, options); + } + + static equals(a: ListDirectoryResponse | PlainMessage | undefined, b: ListDirectoryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ListDirectoryResponse, a, b); + } +} + /** * Request for listing documents. * @@ -727,9 +1110,12 @@ export class DocumentChangeInfo extends Message { } /** - * Basic data about a document that is returned in list responses. + * Basic data about a document with some aggregations and metadata. * Content is omitted for efficiency reasons. * + * TODO(burdiyan): rename this to DocumentSummary, DocumentInfo or something like that, + * it may be useful more than just in list responses. + * * @generated from message com.seed.documents.v3alpha.DocumentListItem */ export class DocumentListItem extends Message { @@ -756,7 +1142,7 @@ export class DocumentListItem extends Message { metadata: { [key: string]: string } = {}; /** - * Every author ID who has modified this document's version. + * Every author ID who has ever made changes to this document. * * @generated from field: repeated string authors = 4; */ @@ -771,6 +1157,7 @@ export class DocumentListItem extends Message { /** * Time when the document was updated. + * I.e. timestamp of the most recent change. * * @generated from field: google.protobuf.Timestamp update_time = 6; */ @@ -790,6 +1177,27 @@ export class DocumentListItem extends Message { */ version = ""; + /** + * Breadcrumbs of this document. + * The number of items in this list corresponds to the number of segments + * in the path of the document minus 1 (the document itself). + * + * E.g. for a document "/cars/jp/honda" there will be 2 breadcrumbs: "cars" and "jp". + * + * If we don't have a document for some of the path segements for whatever reason, + * the corresponding breadcrumb segment will be null. + * + * @generated from field: repeated com.seed.documents.v3alpha.Breadcrumb breadcrumbs = 10; + */ + breadcrumbs: Breadcrumb[] = []; + + /** + * Summary of the activity on the document. + * + * @generated from field: com.seed.documents.v3alpha.ActivitySummary activity_summary = 11; + */ + activitySummary?: ActivitySummary; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -806,6 +1214,8 @@ export class DocumentListItem extends Message { { no: 6, name: "update_time", kind: "message", T: Timestamp }, { no: 8, name: "genesis", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 9, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "breadcrumbs", kind: "message", T: Breadcrumb, repeated: true }, + { no: 11, name: "activity_summary", kind: "message", T: ActivitySummary }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DocumentListItem { @@ -825,6 +1235,112 @@ export class DocumentListItem extends Message { } } +/** + * Summary of the activity on a document or account. + * + * @generated from message com.seed.documents.v3alpha.ActivitySummary + */ +export class ActivitySummary extends Message { + /** + * ID of the most recent comment. + * + * @generated from field: string latest_comment_id = 1; + */ + latestCommentId = ""; + + /** + * Timestamp of the most recent comment. + * + * @generated from field: google.protobuf.Timestamp latest_comment_time = 2; + */ + latestCommentTime?: Timestamp; + + /** + * Total number of comments. + * + * @generated from field: int32 comment_count = 3; + */ + commentCount = 0; + + /** + * Timestamp of the most recent change. + * + * @generated from field: google.protobuf.Timestamp latest_change_time = 4; + */ + latestChangeTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "com.seed.documents.v3alpha.ActivitySummary"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "latest_comment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "latest_comment_time", kind: "message", T: Timestamp }, + { no: 3, name: "comment_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 4, name: "latest_change_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ActivitySummary { + return new ActivitySummary().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ActivitySummary { + return new ActivitySummary().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ActivitySummary { + return new ActivitySummary().fromJsonString(jsonString, options); + } + + static equals(a: ActivitySummary | PlainMessage | undefined, b: ActivitySummary | PlainMessage | undefined): boolean { + return proto3.util.equals(ActivitySummary, a, b); + } +} + +/** + * Basic information about ancestor documents in the path hierarchy. + * + * @generated from message com.seed.documents.v3alpha.Breadcrumb + */ +export class Breadcrumb extends Message { + /** + * Title of the document. + * + * @generated from field: string name = 1; + */ + name = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "com.seed.documents.v3alpha.Breadcrumb"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Breadcrumb { + return new Breadcrumb().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Breadcrumb { + return new Breadcrumb().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Breadcrumb { + return new Breadcrumb().fromJsonString(jsonString, options); + } + + static equals(a: Breadcrumb | PlainMessage | undefined, b: Breadcrumb | PlainMessage | undefined): boolean { + return proto3.util.equals(Breadcrumb, a, b); + } +} + /** * Document represents metadata and content of a document. * diff --git a/proto/activity/v1alpha/go.gensum b/proto/activity/v1alpha/go.gensum index 48235f228..e7ef0355e 100644 --- a/proto/activity/v1alpha/go.gensum +++ b/proto/activity/v1alpha/go.gensum @@ -1,2 +1,2 @@ srcs: efec8451a2f5bd9c28250ae1a933ec40 -outs: 9160cf71df3b831def676a2718111546 +outs: a87291142cfa556b0bd07e0786ad0586 diff --git a/proto/daemon/v1alpha/go.gensum b/proto/daemon/v1alpha/go.gensum index facccb6da..28ed1209a 100644 --- a/proto/daemon/v1alpha/go.gensum +++ b/proto/daemon/v1alpha/go.gensum @@ -1,2 +1,2 @@ srcs: bbb8be5d79506188e60481c9a2bb6965 -outs: b4ebd4a117b430dd95de22015410da91 +outs: b4759c7940a9acb58f57675b94daccb6 diff --git a/proto/documents/v3alpha/go.gensum b/proto/documents/v3alpha/go.gensum index 22f2d2909..900db6237 100644 --- a/proto/documents/v3alpha/go.gensum +++ b/proto/documents/v3alpha/go.gensum @@ -1,2 +1,2 @@ -srcs: e65ca2266b6b60a872bc3ffba59f3950 -outs: 3517f1f33c29c6368b1484bf1284abb9 +srcs: ae2ffaf6d9e621252ddf04e4a9f02adc +outs: 693f45bf79de9c05f32dfef62418aaa0 diff --git a/proto/documents/v3alpha/js.gensum b/proto/documents/v3alpha/js.gensum index 5af2b5717..aae8dbd74 100644 --- a/proto/documents/v3alpha/js.gensum +++ b/proto/documents/v3alpha/js.gensum @@ -1,2 +1,2 @@ -srcs: e65ca2266b6b60a872bc3ffba59f3950 -outs: e12e684134652e3019c5e4eb3e4c1480 +srcs: ae2ffaf6d9e621252ddf04e4a9f02adc +outs: 4f7752ef72912a93670c5ad9e177ac8c diff --git a/proto/entities/v1alpha/go.gensum b/proto/entities/v1alpha/go.gensum index 7272e6982..1082d72ba 100644 --- a/proto/entities/v1alpha/go.gensum +++ b/proto/entities/v1alpha/go.gensum @@ -1,2 +1,2 @@ srcs: c5bd9f9467a030eb864e3b12498f7f4d -outs: a9ad7d80a8eff23d56943cccb6e46891 +outs: b82eee2bab93fa07a01f0c3e49c18f9e diff --git a/proto/networking/v1alpha/go.gensum b/proto/networking/v1alpha/go.gensum index 9cd3b7bbe..79cdc309a 100644 --- a/proto/networking/v1alpha/go.gensum +++ b/proto/networking/v1alpha/go.gensum @@ -1,2 +1,2 @@ srcs: d7ef33b3ef72e09f8df211c1f30468aa -outs: 982bf64d254a7cfd2cc58f6adb12fdb4 +outs: 76618ecd54ce0f5370935d33ea49f38b diff --git a/proto/p2p/v1alpha/go.gensum b/proto/p2p/v1alpha/go.gensum index a5ebee939..f7a459d91 100644 --- a/proto/p2p/v1alpha/go.gensum +++ b/proto/p2p/v1alpha/go.gensum @@ -1,2 +1,2 @@ srcs: f223db211298dd11a3480c648f2f9e88 -outs: 0b02acebdd07b7eb4d011e20739e0eb0 +outs: b42a89844a73bfc84b94512ad67e1f80 diff --git a/proto/payments/v1alpha/go.gensum b/proto/payments/v1alpha/go.gensum index e4eac2406..33a36946e 100644 --- a/proto/payments/v1alpha/go.gensum +++ b/proto/payments/v1alpha/go.gensum @@ -1,2 +1,2 @@ srcs: 534190e5d081d89987c3cbb990b5327e -outs: acee346679a40fa67105e39d3efd5328 +outs: dbbc2fd418727260cb6bfd317cd387d9