From 9501fd74fceece7bb0bcbe4076521840f8247f34 Mon Sep 17 00:00:00 2001 From: XingfenD Date: Tue, 11 Aug 2026 19:53:45 +0800 Subject: [PATCH] feat: add generated Go protobuf SDK --- README.md | 34 + buf.gen.yaml | 10 + go.mod | 15 + go.sum | 38 + yoresee_doc/v1/yoresee_doc.pb.go | 10747 ++++++++++++++++++++++++ yoresee_doc/v1/yoresee_doc_grpc.pb.go | 3191 +++++++ 6 files changed, 14035 insertions(+) create mode 100644 README.md create mode 100644 buf.gen.yaml create mode 100644 go.mod create mode 100644 go.sum create mode 100644 yoresee_doc/v1/yoresee_doc.pb.go create mode 100644 yoresee_doc/v1/yoresee_doc_grpc.pb.go diff --git a/README.md b/README.md new file mode 100644 index 0000000..76f5639 --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +# Yoresee Doc Go SDK + +Generated Go protobuf bindings for the Yoresee Doc API. + +## Module + +```text +git.yoresee.cc/YoreseeDoc/yoresee_doc_sdk_go +``` + +Import the generated package from: + +```go +import yoreseedocpb "git.yoresee.cc/YoreseeDoc/yoresee_doc_sdk_go/yoresee_doc/v1" +``` + +The package includes protobuf message types and gRPC client and server +interfaces generated from the Yoresee Doc contract. + +## Source And Provenance + +- Source proto: `../yoresee_doc/proto/yoresee_doc/v1/yoresee_doc.proto` +- Source proto commit: `272c5f79a5c5e21282861f8a557ba30520769681` +- Generated package: `yoreseedocpb` +- Generation command: `buf generate ../yoresee_doc/proto --template buf.gen.yaml` + +Generator versions used for this artifact: + +- `buf 1.72.0` +- `protoc-gen-go v1.36.12` +- `protoc-gen-go-grpc 1.6.2` + +The generated artifacts are committed to this repository so consumers can +import the SDK without running protobuf code generation. diff --git a/buf.gen.yaml b/buf.gen.yaml new file mode 100644 index 0000000..02c4d63 --- /dev/null +++ b/buf.gen.yaml @@ -0,0 +1,10 @@ +version: v2 +plugins: + - local: protoc-gen-go + out: . + opt: + - paths=source_relative + - local: protoc-gen-go-grpc + out: . + opt: + - paths=source_relative diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..427690c --- /dev/null +++ b/go.mod @@ -0,0 +1,15 @@ +module git.yoresee.cc/YoreseeDoc/yoresee_doc_sdk_go + +go 1.24.0 + +require ( + google.golang.org/grpc v1.79.2 + google.golang.org/protobuf v1.36.10 +) + +require ( + golang.org/x/net v0.48.0 // indirect + golang.org/x/sys v0.39.0 // indirect + golang.org/x/text v0.32.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..2d9ca60 --- /dev/null +++ b/go.sum @@ -0,0 +1,38 @@ +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= +github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= +go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= +go.opentelemetry.io/otel v1.39.0 h1:8yPrr/S0ND9QEfTfdP9V+SiwT4E0G7Y5MO7p85nis48= +go.opentelemetry.io/otel v1.39.0/go.mod h1:kLlFTywNWrFyEdH0oj2xK0bFYZtHRYUdv1NklR/tgc8= +go.opentelemetry.io/otel/metric v1.39.0 h1:d1UzonvEZriVfpNKEVmHXbdf909uGTOQjA0HF0Ls5Q0= +go.opentelemetry.io/otel/metric v1.39.0/go.mod h1:jrZSWL33sD7bBxg1xjrqyDjnuzTUB0x1nBERXd7Ftcs= +go.opentelemetry.io/otel/sdk v1.39.0 h1:nMLYcjVsvdui1B/4FRkwjzoRVsMK8uL/cj0OyhKzt18= +go.opentelemetry.io/otel/sdk v1.39.0/go.mod h1:vDojkC4/jsTJsE+kh+LXYQlbL8CgrEcwmt1ENZszdJE= +go.opentelemetry.io/otel/sdk/metric v1.39.0 h1:cXMVVFVgsIf2YL6QkRF4Urbr/aMInf+2WKg+sEJTtB8= +go.opentelemetry.io/otel/sdk/metric v1.39.0/go.mod h1:xq9HEVH7qeX69/JnwEfp6fVq5wosJsY1mt4lLfYdVew= +go.opentelemetry.io/otel/trace v1.39.0 h1:2d2vfpEDmCJ5zVYz7ijaJdOF59xLomrvj7bjt6/qCJI= +go.opentelemetry.io/otel/trace v1.39.0/go.mod h1:88w4/PnZSazkGzz/w84VHpQafiU4EtqqlVdxWy+rNOA= +golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU= +golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY= +golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk= +golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU= +golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY= +gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk= +gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E= +google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 h1:gRkg/vSppuSQoDjxyiGfN4Upv/h/DQmIR10ZU8dh4Ww= +google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217/go.mod h1:7i2o+ce6H/6BluujYR+kqX3GKH+dChPTQU19wjRPiGk= +google.golang.org/grpc v1.79.2 h1:fRMD94s2tITpyJGtBBn7MkMseNpOZU8ZxgC3MMBaXRU= +google.golang.org/grpc v1.79.2/go.mod h1:KmT0Kjez+0dde/v2j9vzwoAScgEPx/Bw1CYChhHLrHQ= +google.golang.org/protobuf v1.36.10 h1:AYd7cD/uASjIL6Q9LiTjz8JLcrh/88q5UObnmY3aOOE= +google.golang.org/protobuf v1.36.10/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= diff --git a/yoresee_doc/v1/yoresee_doc.pb.go b/yoresee_doc/v1/yoresee_doc.pb.go new file mode 100644 index 0000000..8b0ed14 --- /dev/null +++ b/yoresee_doc/v1/yoresee_doc.pb.go @@ -0,0 +1,10747 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.12 +// protoc (unknown) +// source: yoresee_doc/v1/yoresee_doc.proto + +package yoreseedocpb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type DocumentType int32 + +const ( + DocumentType_DOCUMENT_TYPE_UNSPECIFIED DocumentType = 0 + DocumentType_DOCUMENT_TYPE_MARKDOWN DocumentType = 1 + DocumentType_DOCUMENT_TYPE_TABLE DocumentType = 2 + DocumentType_DOCUMENT_TYPE_MARKDOWN_SLIDE DocumentType = 3 + DocumentType_DOCUMENT_TYPE_YORESEE_RICH_TEXT DocumentType = 4 +) + +// Enum value maps for DocumentType. +var ( + DocumentType_name = map[int32]string{ + 0: "DOCUMENT_TYPE_UNSPECIFIED", + 1: "DOCUMENT_TYPE_MARKDOWN", + 2: "DOCUMENT_TYPE_TABLE", + 3: "DOCUMENT_TYPE_MARKDOWN_SLIDE", + 4: "DOCUMENT_TYPE_YORESEE_RICH_TEXT", + } + DocumentType_value = map[string]int32{ + "DOCUMENT_TYPE_UNSPECIFIED": 0, + "DOCUMENT_TYPE_MARKDOWN": 1, + "DOCUMENT_TYPE_TABLE": 2, + "DOCUMENT_TYPE_MARKDOWN_SLIDE": 3, + "DOCUMENT_TYPE_YORESEE_RICH_TEXT": 4, + } +) + +func (x DocumentType) Enum() *DocumentType { + p := new(DocumentType) + *p = x + return p +} + +func (x DocumentType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DocumentType) Descriptor() protoreflect.EnumDescriptor { + return file_yoresee_doc_v1_yoresee_doc_proto_enumTypes[0].Descriptor() +} + +func (DocumentType) Type() protoreflect.EnumType { + return &file_yoresee_doc_v1_yoresee_doc_proto_enumTypes[0] +} + +func (x DocumentType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use DocumentType.Descriptor instead. +func (DocumentType) EnumDescriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{0} +} + +type CreateDocumentContainerType int32 + +const ( + CreateDocumentContainerType_CREATE_DOCUMENT_CONTAINER_TYPE_UNSPECIFIED CreateDocumentContainerType = 0 + CreateDocumentContainerType_CREATE_DOCUMENT_CONTAINER_TYPE_KNOWLEDGE_BASE CreateDocumentContainerType = 1 + CreateDocumentContainerType_CREATE_DOCUMENT_CONTAINER_TYPE_OWN CreateDocumentContainerType = 2 +) + +// Enum value maps for CreateDocumentContainerType. +var ( + CreateDocumentContainerType_name = map[int32]string{ + 0: "CREATE_DOCUMENT_CONTAINER_TYPE_UNSPECIFIED", + 1: "CREATE_DOCUMENT_CONTAINER_TYPE_KNOWLEDGE_BASE", + 2: "CREATE_DOCUMENT_CONTAINER_TYPE_OWN", + } + CreateDocumentContainerType_value = map[string]int32{ + "CREATE_DOCUMENT_CONTAINER_TYPE_UNSPECIFIED": 0, + "CREATE_DOCUMENT_CONTAINER_TYPE_KNOWLEDGE_BASE": 1, + "CREATE_DOCUMENT_CONTAINER_TYPE_OWN": 2, + } +) + +func (x CreateDocumentContainerType) Enum() *CreateDocumentContainerType { + p := new(CreateDocumentContainerType) + *p = x + return p +} + +func (x CreateDocumentContainerType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CreateDocumentContainerType) Descriptor() protoreflect.EnumDescriptor { + return file_yoresee_doc_v1_yoresee_doc_proto_enumTypes[1].Descriptor() +} + +func (CreateDocumentContainerType) Type() protoreflect.EnumType { + return &file_yoresee_doc_v1_yoresee_doc_proto_enumTypes[1] +} + +func (x CreateDocumentContainerType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use CreateDocumentContainerType.Descriptor instead. +func (CreateDocumentContainerType) EnumDescriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{1} +} + +type CreateTemplateContainer int32 + +const ( + CreateTemplateContainer_OWN_TEMPLATE CreateTemplateContainer = 0 + CreateTemplateContainer_KNOWLEDGEBASE_TEMPLATE CreateTemplateContainer = 1 + CreateTemplateContainer_PUBLIC_TEMPLATE CreateTemplateContainer = 2 +) + +// Enum value maps for CreateTemplateContainer. +var ( + CreateTemplateContainer_name = map[int32]string{ + 0: "OWN_TEMPLATE", + 1: "KNOWLEDGEBASE_TEMPLATE", + 2: "PUBLIC_TEMPLATE", + } + CreateTemplateContainer_value = map[string]int32{ + "OWN_TEMPLATE": 0, + "KNOWLEDGEBASE_TEMPLATE": 1, + "PUBLIC_TEMPLATE": 2, + } +) + +func (x CreateTemplateContainer) Enum() *CreateTemplateContainer { + p := new(CreateTemplateContainer) + *p = x + return p +} + +func (x CreateTemplateContainer) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CreateTemplateContainer) Descriptor() protoreflect.EnumDescriptor { + return file_yoresee_doc_v1_yoresee_doc_proto_enumTypes[2].Descriptor() +} + +func (CreateTemplateContainer) Type() protoreflect.EnumType { + return &file_yoresee_doc_v1_yoresee_doc_proto_enumTypes[2] +} + +func (x CreateTemplateContainer) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use CreateTemplateContainer.Descriptor instead. +func (CreateTemplateContainer) EnumDescriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{2} +} + +type BaseResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BaseResponse) Reset() { + *x = BaseResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BaseResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BaseResponse) ProtoMessage() {} + +func (x *BaseResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[0] + 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 BaseResponse.ProtoReflect.Descriptor instead. +func (*BaseResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{0} +} + +func (x *BaseResponse) GetCode() int32 { + if x != nil { + return x.Code + } + return 0 +} + +func (x *BaseResponse) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +type HealthRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *HealthRequest) Reset() { + *x = HealthRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *HealthRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HealthRequest) ProtoMessage() {} + +func (x *HealthRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[1] + 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 HealthRequest.ProtoReflect.Descriptor instead. +func (*HealthRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{1} +} + +type HealthResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Timestamp string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *HealthResponse) Reset() { + *x = HealthResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *HealthResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HealthResponse) ProtoMessage() {} + +func (x *HealthResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_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 HealthResponse.ProtoReflect.Descriptor instead. +func (*HealthResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{2} +} + +func (x *HealthResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *HealthResponse) GetTimestamp() string { + if x != nil { + return x.Timestamp + } + return "" +} + +func (x *HealthResponse) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *HealthResponse) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +type SystemInfoRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SystemInfoRequest) Reset() { + *x = SystemInfoRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SystemInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SystemInfoRequest) ProtoMessage() {} + +func (x *SystemInfoRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_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 SystemInfoRequest.ProtoReflect.Descriptor instead. +func (*SystemInfoRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{3} +} + +type SystemInfoResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + SystemName string `protobuf:"bytes,2,opt,name=system_name,json=systemName,proto3" json:"system_name,omitempty"` + SystemRegisterMode string `protobuf:"bytes,3,opt,name=system_register_mode,json=systemRegisterMode,proto3" json:"system_register_mode,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SystemInfoResponse) Reset() { + *x = SystemInfoResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SystemInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SystemInfoResponse) ProtoMessage() {} + +func (x *SystemInfoResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[4] + 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 SystemInfoResponse.ProtoReflect.Descriptor instead. +func (*SystemInfoResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{4} +} + +func (x *SystemInfoResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *SystemInfoResponse) GetSystemName() string { + if x != nil { + return x.SystemName + } + return "" +} + +func (x *SystemInfoResponse) GetSystemRegisterMode() string { + if x != nil { + return x.SystemRegisterMode + } + return "" +} + +type UserGroupResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + CreatorUserExternalId string `protobuf:"bytes,4,opt,name=creator_user_external_id,json=creatorUserExternalId,proto3" json:"creator_user_external_id,omitempty"` + MemberCount int32 `protobuf:"varint,5,opt,name=member_count,json=memberCount,proto3" json:"member_count,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserGroupResponse) Reset() { + *x = UserGroupResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserGroupResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserGroupResponse) ProtoMessage() {} + +func (x *UserGroupResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_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 UserGroupResponse.ProtoReflect.Descriptor instead. +func (*UserGroupResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{5} +} + +func (x *UserGroupResponse) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *UserGroupResponse) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *UserGroupResponse) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *UserGroupResponse) GetCreatorUserExternalId() string { + if x != nil { + return x.CreatorUserExternalId + } + return "" +} + +func (x *UserGroupResponse) GetMemberCount() int32 { + if x != nil { + return x.MemberCount + } + return 0 +} + +type OrgNodeResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + ParentExternalId string `protobuf:"bytes,2,opt,name=parent_external_id,json=parentExternalId,proto3" json:"parent_external_id,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + CreatorUserExternalId string `protobuf:"bytes,6,opt,name=creator_user_external_id,json=creatorUserExternalId,proto3" json:"creator_user_external_id,omitempty"` + MemberCount int32 `protobuf:"varint,7,opt,name=member_count,json=memberCount,proto3" json:"member_count,omitempty"` + Children []*OrgNodeResponse `protobuf:"bytes,8,rep,name=children,proto3" json:"children,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *OrgNodeResponse) Reset() { + *x = OrgNodeResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrgNodeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrgNodeResponse) ProtoMessage() {} + +func (x *OrgNodeResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_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 OrgNodeResponse.ProtoReflect.Descriptor instead. +func (*OrgNodeResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{6} +} + +func (x *OrgNodeResponse) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *OrgNodeResponse) GetParentExternalId() string { + if x != nil { + return x.ParentExternalId + } + return "" +} + +func (x *OrgNodeResponse) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *OrgNodeResponse) GetPath() string { + if x != nil { + return x.Path + } + return "" +} + +func (x *OrgNodeResponse) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *OrgNodeResponse) GetCreatorUserExternalId() string { + if x != nil { + return x.CreatorUserExternalId + } + return "" +} + +func (x *OrgNodeResponse) GetMemberCount() int32 { + if x != nil { + return x.MemberCount + } + return 0 +} + +func (x *OrgNodeResponse) GetChildren() []*OrgNodeResponse { + if x != nil { + return x.Children + } + return nil +} + +type ListUserGroupsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Keyword *string `protobuf:"bytes,1,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` + Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListUserGroupsRequest) Reset() { + *x = ListUserGroupsRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListUserGroupsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserGroupsRequest) ProtoMessage() {} + +func (x *ListUserGroupsRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_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 ListUserGroupsRequest.ProtoReflect.Descriptor instead. +func (*ListUserGroupsRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{7} +} + +func (x *ListUserGroupsRequest) GetKeyword() string { + if x != nil && x.Keyword != nil { + return *x.Keyword + } + return "" +} + +func (x *ListUserGroupsRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListUserGroupsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +type ListUserGroupsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + UserGroups []*UserGroupResponse `protobuf:"bytes,2,rep,name=user_groups,json=userGroups,proto3" json:"user_groups,omitempty"` + Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListUserGroupsResponse) Reset() { + *x = ListUserGroupsResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListUserGroupsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserGroupsResponse) ProtoMessage() {} + +func (x *ListUserGroupsResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_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 ListUserGroupsResponse.ProtoReflect.Descriptor instead. +func (*ListUserGroupsResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{8} +} + +func (x *ListUserGroupsResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *ListUserGroupsResponse) GetUserGroups() []*UserGroupResponse { + if x != nil { + return x.UserGroups + } + return nil +} + +func (x *ListUserGroupsResponse) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +type GetUserGroupRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetUserGroupRequest) Reset() { + *x = GetUserGroupRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetUserGroupRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserGroupRequest) ProtoMessage() {} + +func (x *GetUserGroupRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_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 GetUserGroupRequest.ProtoReflect.Descriptor instead. +func (*GetUserGroupRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{9} +} + +func (x *GetUserGroupRequest) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +type GetUserGroupResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + UserGroup *UserGroupResponse `protobuf:"bytes,2,opt,name=user_group,json=userGroup,proto3" json:"user_group,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetUserGroupResponse) Reset() { + *x = GetUserGroupResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetUserGroupResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserGroupResponse) ProtoMessage() {} + +func (x *GetUserGroupResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[10] + 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 GetUserGroupResponse.ProtoReflect.Descriptor instead. +func (*GetUserGroupResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{10} +} + +func (x *GetUserGroupResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *GetUserGroupResponse) GetUserGroup() *UserGroupResponse { + if x != nil { + return x.UserGroup + } + return nil +} + +type CreateUserGroupRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + MemberUserExternalIds []string `protobuf:"bytes,3,rep,name=member_user_external_ids,json=memberUserExternalIds,proto3" json:"member_user_external_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateUserGroupRequest) Reset() { + *x = CreateUserGroupRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateUserGroupRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateUserGroupRequest) ProtoMessage() {} + +func (x *CreateUserGroupRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[11] + 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 CreateUserGroupRequest.ProtoReflect.Descriptor instead. +func (*CreateUserGroupRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{11} +} + +func (x *CreateUserGroupRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreateUserGroupRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *CreateUserGroupRequest) GetMemberUserExternalIds() []string { + if x != nil { + return x.MemberUserExternalIds + } + return nil +} + +type CreateUserGroupResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + ExternalId string `protobuf:"bytes,2,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateUserGroupResponse) Reset() { + *x = CreateUserGroupResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateUserGroupResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateUserGroupResponse) ProtoMessage() {} + +func (x *CreateUserGroupResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[12] + 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 CreateUserGroupResponse.ProtoReflect.Descriptor instead. +func (*CreateUserGroupResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{12} +} + +func (x *CreateUserGroupResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *CreateUserGroupResponse) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +type UpdateUserGroupRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` + Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"` + SyncMembers bool `protobuf:"varint,4,opt,name=sync_members,json=syncMembers,proto3" json:"sync_members,omitempty"` + MemberUserExternalIds []string `protobuf:"bytes,5,rep,name=member_user_external_ids,json=memberUserExternalIds,proto3" json:"member_user_external_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateUserGroupRequest) Reset() { + *x = UpdateUserGroupRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateUserGroupRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserGroupRequest) ProtoMessage() {} + +func (x *UpdateUserGroupRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[13] + 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 UpdateUserGroupRequest.ProtoReflect.Descriptor instead. +func (*UpdateUserGroupRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{13} +} + +func (x *UpdateUserGroupRequest) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *UpdateUserGroupRequest) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *UpdateUserGroupRequest) GetDescription() string { + if x != nil && x.Description != nil { + return *x.Description + } + return "" +} + +func (x *UpdateUserGroupRequest) GetSyncMembers() bool { + if x != nil { + return x.SyncMembers + } + return false +} + +func (x *UpdateUserGroupRequest) GetMemberUserExternalIds() []string { + if x != nil { + return x.MemberUserExternalIds + } + return nil +} + +type UpdateUserGroupResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateUserGroupResponse) Reset() { + *x = UpdateUserGroupResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateUserGroupResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserGroupResponse) ProtoMessage() {} + +func (x *UpdateUserGroupResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[14] + 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 UpdateUserGroupResponse.ProtoReflect.Descriptor instead. +func (*UpdateUserGroupResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{14} +} + +func (x *UpdateUserGroupResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type DeleteUserGroupRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteUserGroupRequest) Reset() { + *x = DeleteUserGroupRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteUserGroupRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteUserGroupRequest) ProtoMessage() {} + +func (x *DeleteUserGroupRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[15] + 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 DeleteUserGroupRequest.ProtoReflect.Descriptor instead. +func (*DeleteUserGroupRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{15} +} + +func (x *DeleteUserGroupRequest) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +type DeleteUserGroupResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteUserGroupResponse) Reset() { + *x = DeleteUserGroupResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteUserGroupResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteUserGroupResponse) ProtoMessage() {} + +func (x *DeleteUserGroupResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[16] + 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 DeleteUserGroupResponse.ProtoReflect.Descriptor instead. +func (*DeleteUserGroupResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{16} +} + +func (x *DeleteUserGroupResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type ListUsersRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Keyword *string `protobuf:"bytes,1,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` + Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListUsersRequest) Reset() { + *x = ListUsersRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListUsersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUsersRequest) ProtoMessage() {} + +func (x *ListUsersRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[17] + 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 ListUsersRequest.ProtoReflect.Descriptor instead. +func (*ListUsersRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{17} +} + +func (x *ListUsersRequest) GetKeyword() string { + if x != nil && x.Keyword != nil { + return *x.Keyword + } + return "" +} + +func (x *ListUsersRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListUsersRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +type ListUsersResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Users []*UserResponse `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` + Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListUsersResponse) Reset() { + *x = ListUsersResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListUsersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUsersResponse) ProtoMessage() {} + +func (x *ListUsersResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_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 ListUsersResponse.ProtoReflect.Descriptor instead. +func (*ListUsersResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{18} +} + +func (x *ListUsersResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *ListUsersResponse) GetUsers() []*UserResponse { + if x != nil { + return x.Users + } + return nil +} + +func (x *ListUsersResponse) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +type ListUserGroupMembersRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + Keyword *string `protobuf:"bytes,2,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` + Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListUserGroupMembersRequest) Reset() { + *x = ListUserGroupMembersRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListUserGroupMembersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserGroupMembersRequest) ProtoMessage() {} + +func (x *ListUserGroupMembersRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_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 ListUserGroupMembersRequest.ProtoReflect.Descriptor instead. +func (*ListUserGroupMembersRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{19} +} + +func (x *ListUserGroupMembersRequest) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *ListUserGroupMembersRequest) GetKeyword() string { + if x != nil && x.Keyword != nil { + return *x.Keyword + } + return "" +} + +func (x *ListUserGroupMembersRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListUserGroupMembersRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +type ListUserGroupMembersResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Users []*UserResponse `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` + Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListUserGroupMembersResponse) Reset() { + *x = ListUserGroupMembersResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListUserGroupMembersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserGroupMembersResponse) ProtoMessage() {} + +func (x *ListUserGroupMembersResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[20] + 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 ListUserGroupMembersResponse.ProtoReflect.Descriptor instead. +func (*ListUserGroupMembersResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{20} +} + +func (x *ListUserGroupMembersResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *ListUserGroupMembersResponse) GetUsers() []*UserResponse { + if x != nil { + return x.Users + } + return nil +} + +func (x *ListUserGroupMembersResponse) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +type ListOrgNodesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ParentExternalId string `protobuf:"bytes,1,opt,name=parent_external_id,json=parentExternalId,proto3" json:"parent_external_id,omitempty"` + Keyword *string `protobuf:"bytes,2,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` + Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + IncludeChildren bool `protobuf:"varint,5,opt,name=include_children,json=includeChildren,proto3" json:"include_children,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListOrgNodesRequest) Reset() { + *x = ListOrgNodesRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListOrgNodesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOrgNodesRequest) ProtoMessage() {} + +func (x *ListOrgNodesRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[21] + 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 ListOrgNodesRequest.ProtoReflect.Descriptor instead. +func (*ListOrgNodesRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{21} +} + +func (x *ListOrgNodesRequest) GetParentExternalId() string { + if x != nil { + return x.ParentExternalId + } + return "" +} + +func (x *ListOrgNodesRequest) GetKeyword() string { + if x != nil && x.Keyword != nil { + return *x.Keyword + } + return "" +} + +func (x *ListOrgNodesRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListOrgNodesRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListOrgNodesRequest) GetIncludeChildren() bool { + if x != nil { + return x.IncludeChildren + } + return false +} + +type ListOrgNodesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + OrgNodes []*OrgNodeResponse `protobuf:"bytes,2,rep,name=org_nodes,json=orgNodes,proto3" json:"org_nodes,omitempty"` + Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListOrgNodesResponse) Reset() { + *x = ListOrgNodesResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListOrgNodesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOrgNodesResponse) ProtoMessage() {} + +func (x *ListOrgNodesResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[22] + 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 ListOrgNodesResponse.ProtoReflect.Descriptor instead. +func (*ListOrgNodesResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{22} +} + +func (x *ListOrgNodesResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *ListOrgNodesResponse) GetOrgNodes() []*OrgNodeResponse { + if x != nil { + return x.OrgNodes + } + return nil +} + +func (x *ListOrgNodesResponse) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +type GetOrgNodeRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + IncludeChildren bool `protobuf:"varint,2,opt,name=include_children,json=includeChildren,proto3" json:"include_children,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetOrgNodeRequest) Reset() { + *x = GetOrgNodeRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetOrgNodeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOrgNodeRequest) ProtoMessage() {} + +func (x *GetOrgNodeRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[23] + 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 GetOrgNodeRequest.ProtoReflect.Descriptor instead. +func (*GetOrgNodeRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{23} +} + +func (x *GetOrgNodeRequest) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *GetOrgNodeRequest) GetIncludeChildren() bool { + if x != nil { + return x.IncludeChildren + } + return false +} + +type GetOrgNodeResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + OrgNode *OrgNodeResponse `protobuf:"bytes,2,opt,name=org_node,json=orgNode,proto3" json:"org_node,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetOrgNodeResponse) Reset() { + *x = GetOrgNodeResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetOrgNodeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOrgNodeResponse) ProtoMessage() {} + +func (x *GetOrgNodeResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[24] + 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 GetOrgNodeResponse.ProtoReflect.Descriptor instead. +func (*GetOrgNodeResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{24} +} + +func (x *GetOrgNodeResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *GetOrgNodeResponse) GetOrgNode() *OrgNodeResponse { + if x != nil { + return x.OrgNode + } + return nil +} + +type CreateOrgNodeRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + ParentExternalId string `protobuf:"bytes,3,opt,name=parent_external_id,json=parentExternalId,proto3" json:"parent_external_id,omitempty"` + MemberUserExternalIds []string `protobuf:"bytes,4,rep,name=member_user_external_ids,json=memberUserExternalIds,proto3" json:"member_user_external_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateOrgNodeRequest) Reset() { + *x = CreateOrgNodeRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateOrgNodeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateOrgNodeRequest) ProtoMessage() {} + +func (x *CreateOrgNodeRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[25] + 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 CreateOrgNodeRequest.ProtoReflect.Descriptor instead. +func (*CreateOrgNodeRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{25} +} + +func (x *CreateOrgNodeRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreateOrgNodeRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *CreateOrgNodeRequest) GetParentExternalId() string { + if x != nil { + return x.ParentExternalId + } + return "" +} + +func (x *CreateOrgNodeRequest) GetMemberUserExternalIds() []string { + if x != nil { + return x.MemberUserExternalIds + } + return nil +} + +type CreateOrgNodeResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + ExternalId string `protobuf:"bytes,2,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateOrgNodeResponse) Reset() { + *x = CreateOrgNodeResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateOrgNodeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateOrgNodeResponse) ProtoMessage() {} + +func (x *CreateOrgNodeResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[26] + 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 CreateOrgNodeResponse.ProtoReflect.Descriptor instead. +func (*CreateOrgNodeResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{26} +} + +func (x *CreateOrgNodeResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *CreateOrgNodeResponse) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +type UpdateOrgNodeRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` + Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"` + SyncMembers bool `protobuf:"varint,4,opt,name=sync_members,json=syncMembers,proto3" json:"sync_members,omitempty"` + MemberUserExternalIds []string `protobuf:"bytes,5,rep,name=member_user_external_ids,json=memberUserExternalIds,proto3" json:"member_user_external_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateOrgNodeRequest) Reset() { + *x = UpdateOrgNodeRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateOrgNodeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateOrgNodeRequest) ProtoMessage() {} + +func (x *UpdateOrgNodeRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[27] + 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 UpdateOrgNodeRequest.ProtoReflect.Descriptor instead. +func (*UpdateOrgNodeRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{27} +} + +func (x *UpdateOrgNodeRequest) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *UpdateOrgNodeRequest) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *UpdateOrgNodeRequest) GetDescription() string { + if x != nil && x.Description != nil { + return *x.Description + } + return "" +} + +func (x *UpdateOrgNodeRequest) GetSyncMembers() bool { + if x != nil { + return x.SyncMembers + } + return false +} + +func (x *UpdateOrgNodeRequest) GetMemberUserExternalIds() []string { + if x != nil { + return x.MemberUserExternalIds + } + return nil +} + +type UpdateOrgNodeResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateOrgNodeResponse) Reset() { + *x = UpdateOrgNodeResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateOrgNodeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateOrgNodeResponse) ProtoMessage() {} + +func (x *UpdateOrgNodeResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[28] + 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 UpdateOrgNodeResponse.ProtoReflect.Descriptor instead. +func (*UpdateOrgNodeResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{28} +} + +func (x *UpdateOrgNodeResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type DeleteOrgNodeRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteOrgNodeRequest) Reset() { + *x = DeleteOrgNodeRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteOrgNodeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteOrgNodeRequest) ProtoMessage() {} + +func (x *DeleteOrgNodeRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[29] + 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 DeleteOrgNodeRequest.ProtoReflect.Descriptor instead. +func (*DeleteOrgNodeRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{29} +} + +func (x *DeleteOrgNodeRequest) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +type DeleteOrgNodeResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteOrgNodeResponse) Reset() { + *x = DeleteOrgNodeResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteOrgNodeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteOrgNodeResponse) ProtoMessage() {} + +func (x *DeleteOrgNodeResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[30] + 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 DeleteOrgNodeResponse.ProtoReflect.Descriptor instead. +func (*DeleteOrgNodeResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{30} +} + +func (x *DeleteOrgNodeResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type MoveOrgNodeRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + NewParentExternalId string `protobuf:"bytes,2,opt,name=new_parent_external_id,json=newParentExternalId,proto3" json:"new_parent_external_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MoveOrgNodeRequest) Reset() { + *x = MoveOrgNodeRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MoveOrgNodeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MoveOrgNodeRequest) ProtoMessage() {} + +func (x *MoveOrgNodeRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[31] + 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 MoveOrgNodeRequest.ProtoReflect.Descriptor instead. +func (*MoveOrgNodeRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{31} +} + +func (x *MoveOrgNodeRequest) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *MoveOrgNodeRequest) GetNewParentExternalId() string { + if x != nil { + return x.NewParentExternalId + } + return "" +} + +type MoveOrgNodeResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MoveOrgNodeResponse) Reset() { + *x = MoveOrgNodeResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MoveOrgNodeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MoveOrgNodeResponse) ProtoMessage() {} + +func (x *MoveOrgNodeResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[32] + 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 MoveOrgNodeResponse.ProtoReflect.Descriptor instead. +func (*MoveOrgNodeResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{32} +} + +func (x *MoveOrgNodeResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type ListOrgNodeMembersRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + Keyword *string `protobuf:"bytes,2,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` + Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListOrgNodeMembersRequest) Reset() { + *x = ListOrgNodeMembersRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListOrgNodeMembersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOrgNodeMembersRequest) ProtoMessage() {} + +func (x *ListOrgNodeMembersRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[33] + 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 ListOrgNodeMembersRequest.ProtoReflect.Descriptor instead. +func (*ListOrgNodeMembersRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{33} +} + +func (x *ListOrgNodeMembersRequest) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *ListOrgNodeMembersRequest) GetKeyword() string { + if x != nil && x.Keyword != nil { + return *x.Keyword + } + return "" +} + +func (x *ListOrgNodeMembersRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListOrgNodeMembersRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +type ListOrgNodeMembersResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Users []*UserResponse `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` + Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListOrgNodeMembersResponse) Reset() { + *x = ListOrgNodeMembersResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListOrgNodeMembersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOrgNodeMembersResponse) ProtoMessage() {} + +func (x *ListOrgNodeMembersResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[34] + 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 ListOrgNodeMembersResponse.ProtoReflect.Descriptor instead. +func (*ListOrgNodeMembersResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{34} +} + +func (x *ListOrgNodeMembersResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *ListOrgNodeMembersResponse) GetUsers() []*UserResponse { + if x != nil { + return x.Users + } + return nil +} + +func (x *ListOrgNodeMembersResponse) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +type SettingOption struct { + state protoimpl.MessageState `protogen:"open.v1"` + Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` + LabelKey string `protobuf:"bytes,2,opt,name=label_key,json=labelKey,proto3" json:"label_key,omitempty"` + Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SettingOption) Reset() { + *x = SettingOption{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SettingOption) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SettingOption) ProtoMessage() {} + +func (x *SettingOption) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[35] + 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 SettingOption.ProtoReflect.Descriptor instead. +func (*SettingOption) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{35} +} + +func (x *SettingOption) GetLabel() string { + if x != nil { + return x.Label + } + return "" +} + +func (x *SettingOption) GetLabelKey() string { + if x != nil { + return x.LabelKey + } + return "" +} + +func (x *SettingOption) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +type SettingUI struct { + state protoimpl.MessageState `protogen:"open.v1"` + Component string `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` + Options []*SettingOption `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"` + Placeholder string `protobuf:"bytes,3,opt,name=placeholder,proto3" json:"placeholder,omitempty"` + PlaceholderKey string `protobuf:"bytes,4,opt,name=placeholder_key,json=placeholderKey,proto3" json:"placeholder_key,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SettingUI) Reset() { + *x = SettingUI{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SettingUI) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SettingUI) ProtoMessage() {} + +func (x *SettingUI) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[36] + 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 SettingUI.ProtoReflect.Descriptor instead. +func (*SettingUI) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{36} +} + +func (x *SettingUI) GetComponent() string { + if x != nil { + return x.Component + } + return "" +} + +func (x *SettingUI) GetOptions() []*SettingOption { + if x != nil { + return x.Options + } + return nil +} + +func (x *SettingUI) GetPlaceholder() string { + if x != nil { + return x.Placeholder + } + return "" +} + +func (x *SettingUI) GetPlaceholderKey() string { + if x != nil { + return x.PlaceholderKey + } + return "" +} + +type SettingItem struct { + state protoimpl.MessageState `protogen:"open.v1"` + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` + LabelKey string `protobuf:"bytes,3,opt,name=label_key,json=labelKey,proto3" json:"label_key,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + DescriptionKey string `protobuf:"bytes,5,opt,name=description_key,json=descriptionKey,proto3" json:"description_key,omitempty"` + Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` + Ui *SettingUI `protobuf:"bytes,7,opt,name=ui,proto3" json:"ui,omitempty"` + Value string `protobuf:"bytes,8,opt,name=value,proto3" json:"value,omitempty"` + DefaultValue string `protobuf:"bytes,9,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` + Required bool `protobuf:"varint,10,opt,name=required,proto3" json:"required,omitempty"` + Readonly bool `protobuf:"varint,11,opt,name=readonly,proto3" json:"readonly,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SettingItem) Reset() { + *x = SettingItem{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SettingItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SettingItem) ProtoMessage() {} + +func (x *SettingItem) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[37] + 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 SettingItem.ProtoReflect.Descriptor instead. +func (*SettingItem) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{37} +} + +func (x *SettingItem) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *SettingItem) GetLabel() string { + if x != nil { + return x.Label + } + return "" +} + +func (x *SettingItem) GetLabelKey() string { + if x != nil { + return x.LabelKey + } + return "" +} + +func (x *SettingItem) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *SettingItem) GetDescriptionKey() string { + if x != nil { + return x.DescriptionKey + } + return "" +} + +func (x *SettingItem) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *SettingItem) GetUi() *SettingUI { + if x != nil { + return x.Ui + } + return nil +} + +func (x *SettingItem) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +func (x *SettingItem) GetDefaultValue() string { + if x != nil { + return x.DefaultValue + } + return "" +} + +func (x *SettingItem) GetRequired() bool { + if x != nil { + return x.Required + } + return false +} + +func (x *SettingItem) GetReadonly() bool { + if x != nil { + return x.Readonly + } + return false +} + +type SettingGroup struct { + state protoimpl.MessageState `protogen:"open.v1"` + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + TitleKey string `protobuf:"bytes,3,opt,name=title_key,json=titleKey,proto3" json:"title_key,omitempty"` + Items []*SettingItem `protobuf:"bytes,4,rep,name=items,proto3" json:"items,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SettingGroup) Reset() { + *x = SettingGroup{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SettingGroup) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SettingGroup) ProtoMessage() {} + +func (x *SettingGroup) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[38] + 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 SettingGroup.ProtoReflect.Descriptor instead. +func (*SettingGroup) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{38} +} + +func (x *SettingGroup) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *SettingGroup) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *SettingGroup) GetTitleKey() string { + if x != nil { + return x.TitleKey + } + return "" +} + +func (x *SettingGroup) GetItems() []*SettingItem { + if x != nil { + return x.Items + } + return nil +} + +type GetSettingsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Scene string `protobuf:"bytes,1,opt,name=scene,proto3" json:"scene,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetSettingsRequest) Reset() { + *x = GetSettingsRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetSettingsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSettingsRequest) ProtoMessage() {} + +func (x *GetSettingsRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[39] + 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 GetSettingsRequest.ProtoReflect.Descriptor instead. +func (*GetSettingsRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{39} +} + +func (x *GetSettingsRequest) GetScene() string { + if x != nil { + return x.Scene + } + return "" +} + +type GetSettingsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Groups []*SettingGroup `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetSettingsResponse) Reset() { + *x = GetSettingsResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetSettingsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSettingsResponse) ProtoMessage() {} + +func (x *GetSettingsResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[40] + 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 GetSettingsResponse.ProtoReflect.Descriptor instead. +func (*GetSettingsResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{40} +} + +func (x *GetSettingsResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *GetSettingsResponse) GetGroups() []*SettingGroup { + if x != nil { + return x.Groups + } + return nil +} + +type SettingUpdate struct { + state protoimpl.MessageState `protogen:"open.v1"` + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SettingUpdate) Reset() { + *x = SettingUpdate{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SettingUpdate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SettingUpdate) ProtoMessage() {} + +func (x *SettingUpdate) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[41] + 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 SettingUpdate.ProtoReflect.Descriptor instead. +func (*SettingUpdate) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{41} +} + +func (x *SettingUpdate) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *SettingUpdate) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +type UpdateSettingsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Updates []*SettingUpdate `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateSettingsRequest) Reset() { + *x = UpdateSettingsRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateSettingsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateSettingsRequest) ProtoMessage() {} + +func (x *UpdateSettingsRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[42] + 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 UpdateSettingsRequest.ProtoReflect.Descriptor instead. +func (*UpdateSettingsRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{42} +} + +func (x *UpdateSettingsRequest) GetUpdates() []*SettingUpdate { + if x != nil { + return x.Updates + } + return nil +} + +type UpdateSettingsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateSettingsResponse) Reset() { + *x = UpdateSettingsResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateSettingsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateSettingsResponse) ProtoMessage() {} + +func (x *UpdateSettingsResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[43] + 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 UpdateSettingsResponse.ProtoReflect.Descriptor instead. +func (*UpdateSettingsResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{43} +} + +func (x *UpdateSettingsResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type UpdateUserRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + Username *string `protobuf:"bytes,2,opt,name=username,proto3,oneof" json:"username,omitempty"` + Email *string `protobuf:"bytes,3,opt,name=email,proto3,oneof" json:"email,omitempty"` + Nickname *string `protobuf:"bytes,4,opt,name=nickname,proto3,oneof" json:"nickname,omitempty"` + Status *int32 `protobuf:"varint,5,opt,name=status,proto3,oneof" json:"status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateUserRequest) Reset() { + *x = UpdateUserRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserRequest) ProtoMessage() {} + +func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[44] + 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 UpdateUserRequest.ProtoReflect.Descriptor instead. +func (*UpdateUserRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{44} +} + +func (x *UpdateUserRequest) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *UpdateUserRequest) GetUsername() string { + if x != nil && x.Username != nil { + return *x.Username + } + return "" +} + +func (x *UpdateUserRequest) GetEmail() string { + if x != nil && x.Email != nil { + return *x.Email + } + return "" +} + +func (x *UpdateUserRequest) GetNickname() string { + if x != nil && x.Nickname != nil { + return *x.Nickname + } + return "" +} + +func (x *UpdateUserRequest) GetStatus() int32 { + if x != nil && x.Status != nil { + return *x.Status + } + return 0 +} + +type UpdateUserResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateUserResponse) Reset() { + *x = UpdateUserResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserResponse) ProtoMessage() {} + +func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[45] + 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 UpdateUserResponse.ProtoReflect.Descriptor instead. +func (*UpdateUserResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{45} +} + +func (x *UpdateUserResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type AuthLoginRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AuthLoginRequest) Reset() { + *x = AuthLoginRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AuthLoginRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AuthLoginRequest) ProtoMessage() {} + +func (x *AuthLoginRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[46] + 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 AuthLoginRequest.ProtoReflect.Descriptor instead. +func (*AuthLoginRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{46} +} + +func (x *AuthLoginRequest) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *AuthLoginRequest) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +type AuthLoginResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + User *UserResponse `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AuthLoginResponse) Reset() { + *x = AuthLoginResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AuthLoginResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AuthLoginResponse) ProtoMessage() {} + +func (x *AuthLoginResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[47] + 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 AuthLoginResponse.ProtoReflect.Descriptor instead. +func (*AuthLoginResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{47} +} + +func (x *AuthLoginResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *AuthLoginResponse) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *AuthLoginResponse) GetUser() *UserResponse { + if x != nil { + return x.User + } + return nil +} + +type AuthRegisterRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` + InvitationCode *string `protobuf:"bytes,4,opt,name=invitation_code,json=invitationCode,proto3,oneof" json:"invitation_code,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AuthRegisterRequest) Reset() { + *x = AuthRegisterRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AuthRegisterRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AuthRegisterRequest) ProtoMessage() {} + +func (x *AuthRegisterRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[48] + 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 AuthRegisterRequest.ProtoReflect.Descriptor instead. +func (*AuthRegisterRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{48} +} + +func (x *AuthRegisterRequest) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *AuthRegisterRequest) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +func (x *AuthRegisterRequest) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *AuthRegisterRequest) GetInvitationCode() string { + if x != nil && x.InvitationCode != nil { + return *x.InvitationCode + } + return "" +} + +type AuthRegisterResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AuthRegisterResponse) Reset() { + *x = AuthRegisterResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AuthRegisterResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AuthRegisterResponse) ProtoMessage() {} + +func (x *AuthRegisterResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[49] + 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 AuthRegisterResponse.ProtoReflect.Descriptor instead. +func (*AuthRegisterResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{49} +} + +func (x *AuthRegisterResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type UpdateProfileRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Username *string `protobuf:"bytes,1,opt,name=username,proto3,oneof" json:"username,omitempty"` + Email *string `protobuf:"bytes,2,opt,name=email,proto3,oneof" json:"email,omitempty"` + Nickname *string `protobuf:"bytes,3,opt,name=nickname,proto3,oneof" json:"nickname,omitempty"` + Password *string `protobuf:"bytes,4,opt,name=password,proto3,oneof" json:"password,omitempty"` + Avatar *string `protobuf:"bytes,5,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` + AvatarFile []byte `protobuf:"bytes,6,opt,name=avatar_file,json=avatarFile,proto3,oneof" json:"avatar_file,omitempty"` + AvatarFilename *string `protobuf:"bytes,7,opt,name=avatar_filename,json=avatarFilename,proto3,oneof" json:"avatar_filename,omitempty"` + AvatarContentType *string `protobuf:"bytes,8,opt,name=avatar_content_type,json=avatarContentType,proto3,oneof" json:"avatar_content_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateProfileRequest) Reset() { + *x = UpdateProfileRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateProfileRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateProfileRequest) ProtoMessage() {} + +func (x *UpdateProfileRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[50] + 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 UpdateProfileRequest.ProtoReflect.Descriptor instead. +func (*UpdateProfileRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{50} +} + +func (x *UpdateProfileRequest) GetUsername() string { + if x != nil && x.Username != nil { + return *x.Username + } + return "" +} + +func (x *UpdateProfileRequest) GetEmail() string { + if x != nil && x.Email != nil { + return *x.Email + } + return "" +} + +func (x *UpdateProfileRequest) GetNickname() string { + if x != nil && x.Nickname != nil { + return *x.Nickname + } + return "" +} + +func (x *UpdateProfileRequest) GetPassword() string { + if x != nil && x.Password != nil { + return *x.Password + } + return "" +} + +func (x *UpdateProfileRequest) GetAvatar() string { + if x != nil && x.Avatar != nil { + return *x.Avatar + } + return "" +} + +func (x *UpdateProfileRequest) GetAvatarFile() []byte { + if x != nil { + return x.AvatarFile + } + return nil +} + +func (x *UpdateProfileRequest) GetAvatarFilename() string { + if x != nil && x.AvatarFilename != nil { + return *x.AvatarFilename + } + return "" +} + +func (x *UpdateProfileRequest) GetAvatarContentType() string { + if x != nil && x.AvatarContentType != nil { + return *x.AvatarContentType + } + return "" +} + +type UpdateProfileResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + User *UserResponse `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateProfileResponse) Reset() { + *x = UpdateProfileResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateProfileResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateProfileResponse) ProtoMessage() {} + +func (x *UpdateProfileResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[51] + 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 UpdateProfileResponse.ProtoReflect.Descriptor instead. +func (*UpdateProfileResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{51} +} + +func (x *UpdateProfileResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *UpdateProfileResponse) GetUser() *UserResponse { + if x != nil { + return x.User + } + return nil +} + +type QuerySideBarDisplayRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // scene enum string: home | user_info | manage + Scene string `protobuf:"bytes,1,opt,name=scene,proto3" json:"scene,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *QuerySideBarDisplayRequest) Reset() { + *x = QuerySideBarDisplayRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *QuerySideBarDisplayRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QuerySideBarDisplayRequest) ProtoMessage() {} + +func (x *QuerySideBarDisplayRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[52] + 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 QuerySideBarDisplayRequest.ProtoReflect.Descriptor instead. +func (*QuerySideBarDisplayRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{52} +} + +func (x *QuerySideBarDisplayRequest) GetScene() string { + if x != nil { + return x.Scene + } + return "" +} + +type QuerySideBarDisplayResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + // tab key enum strings defined by frontend and backend convention. + DisplayTabs []string `protobuf:"bytes,2,rep,name=display_tabs,json=displayTabs,proto3" json:"display_tabs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *QuerySideBarDisplayResponse) Reset() { + *x = QuerySideBarDisplayResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *QuerySideBarDisplayResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QuerySideBarDisplayResponse) ProtoMessage() {} + +func (x *QuerySideBarDisplayResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[53] + 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 QuerySideBarDisplayResponse.ProtoReflect.Descriptor instead. +func (*QuerySideBarDisplayResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{53} +} + +func (x *QuerySideBarDisplayResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *QuerySideBarDisplayResponse) GetDisplayTabs() []string { + if x != nil { + return x.DisplayTabs + } + return nil +} + +type QueryTopNavDisplayRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *QueryTopNavDisplayRequest) Reset() { + *x = QueryTopNavDisplayRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *QueryTopNavDisplayRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryTopNavDisplayRequest) ProtoMessage() {} + +func (x *QueryTopNavDisplayRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[54] + 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 QueryTopNavDisplayRequest.ProtoReflect.Descriptor instead. +func (*QueryTopNavDisplayRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{54} +} + +type QueryTopNavDisplayResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + // menu key enum strings defined by frontend and backend convention. + DisplayMenus []string `protobuf:"bytes,2,rep,name=display_menus,json=displayMenus,proto3" json:"display_menus,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *QueryTopNavDisplayResponse) Reset() { + *x = QueryTopNavDisplayResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *QueryTopNavDisplayResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryTopNavDisplayResponse) ProtoMessage() {} + +func (x *QueryTopNavDisplayResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[55] + 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 QueryTopNavDisplayResponse.ProtoReflect.Descriptor instead. +func (*QueryTopNavDisplayResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{55} +} + +func (x *QueryTopNavDisplayResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *QueryTopNavDisplayResponse) GetDisplayMenus() []string { + if x != nil { + return x.DisplayMenus + } + return nil +} + +type DocumentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Type DocumentType `protobuf:"varint,3,opt,name=type,proto3,enum=yoresee_doc.v1.DocumentType" json:"type,omitempty"` + Summary string `protobuf:"bytes,4,opt,name=summary,proto3" json:"summary,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` + ViewCount int32 `protobuf:"varint,7,opt,name=view_count,json=viewCount,proto3" json:"view_count,omitempty"` + EditCount int32 `protobuf:"varint,8,opt,name=edit_count,json=editCount,proto3" json:"edit_count,omitempty"` + CreatedAt string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt string `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + Children []*DocumentResponse `protobuf:"bytes,11,rep,name=children,proto3" json:"children,omitempty"` + HasChildren bool `protobuf:"varint,12,opt,name=has_children,json=hasChildren,proto3" json:"has_children,omitempty"` + IsPublic bool `protobuf:"varint,13,opt,name=is_public,json=isPublic,proto3" json:"is_public,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DocumentResponse) Reset() { + *x = DocumentResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DocumentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DocumentResponse) ProtoMessage() {} + +func (x *DocumentResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[56] + 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 DocumentResponse.ProtoReflect.Descriptor instead. +func (*DocumentResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{56} +} + +func (x *DocumentResponse) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *DocumentResponse) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *DocumentResponse) GetType() DocumentType { + if x != nil { + return x.Type + } + return DocumentType_DOCUMENT_TYPE_UNSPECIFIED +} + +func (x *DocumentResponse) GetSummary() string { + if x != nil { + return x.Summary + } + return "" +} + +func (x *DocumentResponse) GetTags() []string { + if x != nil { + return x.Tags + } + return nil +} + +func (x *DocumentResponse) GetViewCount() int32 { + if x != nil { + return x.ViewCount + } + return 0 +} + +func (x *DocumentResponse) GetEditCount() int32 { + if x != nil { + return x.EditCount + } + return 0 +} + +func (x *DocumentResponse) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *DocumentResponse) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt + } + return "" +} + +func (x *DocumentResponse) GetChildren() []*DocumentResponse { + if x != nil { + return x.Children + } + return nil +} + +func (x *DocumentResponse) GetHasChildren() bool { + if x != nil { + return x.HasChildren + } + return false +} + +func (x *DocumentResponse) GetIsPublic() bool { + if x != nil { + return x.IsPublic + } + return false +} + +type GetDocumentContentRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + DocumentExternalId string `protobuf:"bytes,1,opt,name=document_external_id,json=documentExternalId,proto3" json:"document_external_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetDocumentContentRequest) Reset() { + *x = GetDocumentContentRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetDocumentContentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDocumentContentRequest) ProtoMessage() {} + +func (x *GetDocumentContentRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[57] + 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 GetDocumentContentRequest.ProtoReflect.Descriptor instead. +func (*GetDocumentContentRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{57} +} + +func (x *GetDocumentContentRequest) GetDocumentExternalId() string { + if x != nil { + return x.DocumentExternalId + } + return "" +} + +type GetDocumentContentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Document *DocumentResponse `protobuf:"bytes,2,opt,name=document,proto3" json:"document,omitempty"` + Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetDocumentContentResponse) Reset() { + *x = GetDocumentContentResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetDocumentContentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDocumentContentResponse) ProtoMessage() {} + +func (x *GetDocumentContentResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[58] + 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 GetDocumentContentResponse.ProtoReflect.Descriptor instead. +func (*GetDocumentContentResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{58} +} + +func (x *GetDocumentContentResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *GetDocumentContentResponse) GetDocument() *DocumentResponse { + if x != nil { + return x.Document + } + return nil +} + +func (x *GetDocumentContentResponse) GetContent() string { + if x != nil { + return x.Content + } + return "" +} + +type GetDocumentSettingsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + DocumentExternalId string `protobuf:"bytes,1,opt,name=document_external_id,json=documentExternalId,proto3" json:"document_external_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetDocumentSettingsRequest) Reset() { + *x = GetDocumentSettingsRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetDocumentSettingsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDocumentSettingsRequest) ProtoMessage() {} + +func (x *GetDocumentSettingsRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[59] + 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 GetDocumentSettingsRequest.ProtoReflect.Descriptor instead. +func (*GetDocumentSettingsRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{59} +} + +func (x *GetDocumentSettingsRequest) GetDocumentExternalId() string { + if x != nil { + return x.DocumentExternalId + } + return "" +} + +type GetDocumentSettingsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + IsPublic *bool `protobuf:"varint,2,opt,name=is_public,json=isPublic,proto3,oneof" json:"is_public,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetDocumentSettingsResponse) Reset() { + *x = GetDocumentSettingsResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetDocumentSettingsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDocumentSettingsResponse) ProtoMessage() {} + +func (x *GetDocumentSettingsResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[60] + 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 GetDocumentSettingsResponse.ProtoReflect.Descriptor instead. +func (*GetDocumentSettingsResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{60} +} + +func (x *GetDocumentSettingsResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *GetDocumentSettingsResponse) GetIsPublic() bool { + if x != nil && x.IsPublic != nil { + return *x.IsPublic + } + return false +} + +type ListRecentDocumentsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + StartTime *string `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3,oneof" json:"start_time,omitempty"` + EndTime *string `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3,oneof" json:"end_time,omitempty"` + Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRecentDocumentsRequest) Reset() { + *x = ListRecentDocumentsRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRecentDocumentsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRecentDocumentsRequest) ProtoMessage() {} + +func (x *ListRecentDocumentsRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[61] + 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 ListRecentDocumentsRequest.ProtoReflect.Descriptor instead. +func (*ListRecentDocumentsRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{61} +} + +func (x *ListRecentDocumentsRequest) GetStartTime() string { + if x != nil && x.StartTime != nil { + return *x.StartTime + } + return "" +} + +func (x *ListRecentDocumentsRequest) GetEndTime() string { + if x != nil && x.EndTime != nil { + return *x.EndTime + } + return "" +} + +func (x *ListRecentDocumentsRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListRecentDocumentsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +type ListRecentDocumentsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Documents []*DocumentResponse `protobuf:"bytes,2,rep,name=documents,proto3" json:"documents,omitempty"` + Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRecentDocumentsResponse) Reset() { + *x = ListRecentDocumentsResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRecentDocumentsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRecentDocumentsResponse) ProtoMessage() {} + +func (x *ListRecentDocumentsResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[62] + 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 ListRecentDocumentsResponse.ProtoReflect.Descriptor instead. +func (*ListRecentDocumentsResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{62} +} + +func (x *ListRecentDocumentsResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *ListRecentDocumentsResponse) GetDocuments() []*DocumentResponse { + if x != nil { + return x.Documents + } + return nil +} + +func (x *ListRecentDocumentsResponse) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +type RecordRecentDocumentRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + DocumentExternalId string `protobuf:"bytes,1,opt,name=document_external_id,json=documentExternalId,proto3" json:"document_external_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RecordRecentDocumentRequest) Reset() { + *x = RecordRecentDocumentRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RecordRecentDocumentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RecordRecentDocumentRequest) ProtoMessage() {} + +func (x *RecordRecentDocumentRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[63] + 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 RecordRecentDocumentRequest.ProtoReflect.Descriptor instead. +func (*RecordRecentDocumentRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{63} +} + +func (x *RecordRecentDocumentRequest) GetDocumentExternalId() string { + if x != nil { + return x.DocumentExternalId + } + return "" +} + +type RecordRecentDocumentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RecordRecentDocumentResponse) Reset() { + *x = RecordRecentDocumentResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RecordRecentDocumentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RecordRecentDocumentResponse) ProtoMessage() {} + +func (x *RecordRecentDocumentResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[64] + 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 RecordRecentDocumentResponse.ProtoReflect.Descriptor instead. +func (*RecordRecentDocumentResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{64} +} + +func (x *RecordRecentDocumentResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type RecursiveOptions struct { + state protoimpl.MessageState `protogen:"open.v1"` + IncludeChildren bool `protobuf:"varint,1,opt,name=include_children,json=includeChildren,proto3" json:"include_children,omitempty"` + Recursive bool `protobuf:"varint,2,opt,name=recursive,proto3" json:"recursive,omitempty"` + Depth int32 `protobuf:"varint,3,opt,name=depth,proto3" json:"depth,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RecursiveOptions) Reset() { + *x = RecursiveOptions{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RecursiveOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RecursiveOptions) ProtoMessage() {} + +func (x *RecursiveOptions) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[65] + 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 RecursiveOptions.ProtoReflect.Descriptor instead. +func (*RecursiveOptions) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{65} +} + +func (x *RecursiveOptions) GetIncludeChildren() bool { + if x != nil { + return x.IncludeChildren + } + return false +} + +func (x *RecursiveOptions) GetRecursive() bool { + if x != nil { + return x.Recursive + } + return false +} + +func (x *RecursiveOptions) GetDepth() int32 { + if x != nil { + return x.Depth + } + return 0 +} + +type TimeRange struct { + state protoimpl.MessageState `protogen:"open.v1"` + Start *string `protobuf:"bytes,1,opt,name=start,proto3,oneof" json:"start,omitempty"` + End *string `protobuf:"bytes,2,opt,name=end,proto3,oneof" json:"end,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TimeRange) Reset() { + *x = TimeRange{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TimeRange) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimeRange) ProtoMessage() {} + +func (x *TimeRange) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[66] + 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 TimeRange.ProtoReflect.Descriptor instead. +func (*TimeRange) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{66} +} + +func (x *TimeRange) GetStart() string { + if x != nil && x.Start != nil { + return *x.Start + } + return "" +} + +func (x *TimeRange) GetEnd() string { + if x != nil && x.End != nil { + return *x.End + } + return "" +} + +type ListDocumentsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + UserExternalId *string `protobuf:"bytes,1,opt,name=user_external_id,json=userExternalId,proto3,oneof" json:"user_external_id,omitempty"` + RootDocumentExternalId *string `protobuf:"bytes,2,opt,name=root_document_external_id,json=rootDocumentExternalId,proto3,oneof" json:"root_document_external_id,omitempty"` + TitleKeyword *string `protobuf:"bytes,3,opt,name=title_keyword,json=titleKeyword,proto3,oneof" json:"title_keyword,omitempty"` + Type *string `protobuf:"bytes,4,opt,name=type,proto3,oneof" json:"type,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` + CreateTimeRange *TimeRange `protobuf:"bytes,7,opt,name=create_time_range,json=createTimeRange,proto3,oneof" json:"create_time_range,omitempty"` + UpdateTimeRange *TimeRange `protobuf:"bytes,8,opt,name=update_time_range,json=updateTimeRange,proto3,oneof" json:"update_time_range,omitempty"` + OrderBy *string `protobuf:"bytes,9,opt,name=order_by,json=orderBy,proto3,oneof" json:"order_by,omitempty"` + OrderDesc *bool `protobuf:"varint,10,opt,name=order_desc,json=orderDesc,proto3,oneof" json:"order_desc,omitempty"` + Page int32 `protobuf:"varint,11,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,12,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + Options *RecursiveOptions `protobuf:"bytes,13,opt,name=options,proto3,oneof" json:"options,omitempty"` + KnowledgeBaseExternalId *string `protobuf:"bytes,14,opt,name=knowledge_base_external_id,json=knowledgeBaseExternalId,proto3,oneof" json:"knowledge_base_external_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListDocumentsRequest) Reset() { + *x = ListDocumentsRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListDocumentsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListDocumentsRequest) ProtoMessage() {} + +func (x *ListDocumentsRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[67] + 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 ListDocumentsRequest.ProtoReflect.Descriptor instead. +func (*ListDocumentsRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{67} +} + +func (x *ListDocumentsRequest) GetUserExternalId() string { + if x != nil && x.UserExternalId != nil { + return *x.UserExternalId + } + return "" +} + +func (x *ListDocumentsRequest) GetRootDocumentExternalId() string { + if x != nil && x.RootDocumentExternalId != nil { + return *x.RootDocumentExternalId + } + return "" +} + +func (x *ListDocumentsRequest) GetTitleKeyword() string { + if x != nil && x.TitleKeyword != nil { + return *x.TitleKeyword + } + return "" +} + +func (x *ListDocumentsRequest) GetType() string { + if x != nil && x.Type != nil { + return *x.Type + } + return "" +} + +func (x *ListDocumentsRequest) GetTags() []string { + if x != nil { + return x.Tags + } + return nil +} + +func (x *ListDocumentsRequest) GetCreateTimeRange() *TimeRange { + if x != nil { + return x.CreateTimeRange + } + return nil +} + +func (x *ListDocumentsRequest) GetUpdateTimeRange() *TimeRange { + if x != nil { + return x.UpdateTimeRange + } + return nil +} + +func (x *ListDocumentsRequest) GetOrderBy() string { + if x != nil && x.OrderBy != nil { + return *x.OrderBy + } + return "" +} + +func (x *ListDocumentsRequest) GetOrderDesc() bool { + if x != nil && x.OrderDesc != nil { + return *x.OrderDesc + } + return false +} + +func (x *ListDocumentsRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListDocumentsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListDocumentsRequest) GetOptions() *RecursiveOptions { + if x != nil { + return x.Options + } + return nil +} + +func (x *ListDocumentsRequest) GetKnowledgeBaseExternalId() string { + if x != nil && x.KnowledgeBaseExternalId != nil { + return *x.KnowledgeBaseExternalId + } + return "" +} + +type ListDocumentsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Documents []*DocumentResponse `protobuf:"bytes,2,rep,name=documents,proto3" json:"documents,omitempty"` + TotalCount int64 `protobuf:"varint,3,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListDocumentsResponse) Reset() { + *x = ListDocumentsResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListDocumentsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListDocumentsResponse) ProtoMessage() {} + +func (x *ListDocumentsResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[68] + 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 ListDocumentsResponse.ProtoReflect.Descriptor instead. +func (*ListDocumentsResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{68} +} + +func (x *ListDocumentsResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *ListDocumentsResponse) GetDocuments() []*DocumentResponse { + if x != nil { + return x.Documents + } + return nil +} + +func (x *ListDocumentsResponse) GetTotalCount() int64 { + if x != nil { + return x.TotalCount + } + return 0 +} + +type GetOwnDocumentsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + DirectoryOnly bool `protobuf:"varint,3,opt,name=directory_only,json=directoryOnly,proto3" json:"directory_only,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetOwnDocumentsRequest) Reset() { + *x = GetOwnDocumentsRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetOwnDocumentsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOwnDocumentsRequest) ProtoMessage() {} + +func (x *GetOwnDocumentsRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[69] + 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 GetOwnDocumentsRequest.ProtoReflect.Descriptor instead. +func (*GetOwnDocumentsRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{69} +} + +func (x *GetOwnDocumentsRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *GetOwnDocumentsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *GetOwnDocumentsRequest) GetDirectoryOnly() bool { + if x != nil { + return x.DirectoryOnly + } + return false +} + +type GetOwnDocumentsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Documents []*DocumentResponse `protobuf:"bytes,2,rep,name=documents,proto3" json:"documents,omitempty"` + TotalCount int64 `protobuf:"varint,3,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetOwnDocumentsResponse) Reset() { + *x = GetOwnDocumentsResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetOwnDocumentsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOwnDocumentsResponse) ProtoMessage() {} + +func (x *GetOwnDocumentsResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[70] + 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 GetOwnDocumentsResponse.ProtoReflect.Descriptor instead. +func (*GetOwnDocumentsResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{70} +} + +func (x *GetOwnDocumentsResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *GetOwnDocumentsResponse) GetDocuments() []*DocumentResponse { + if x != nil { + return x.Documents + } + return nil +} + +func (x *GetOwnDocumentsResponse) GetTotalCount() int64 { + if x != nil { + return x.TotalCount + } + return 0 +} + +type CreateDocumentRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` + Type DocumentType `protobuf:"varint,2,opt,name=type,proto3,enum=yoresee_doc.v1.DocumentType" json:"type,omitempty"` + ContainerType CreateDocumentContainerType `protobuf:"varint,3,opt,name=container_type,json=containerType,proto3,enum=yoresee_doc.v1.CreateDocumentContainerType" json:"container_type,omitempty"` + KnowledgeBaseExternalId *string `protobuf:"bytes,4,opt,name=knowledge_base_external_id,json=knowledgeBaseExternalId,proto3,oneof" json:"knowledge_base_external_id,omitempty"` + ParentExternalId *string `protobuf:"bytes,5,opt,name=parent_external_id,json=parentExternalId,proto3,oneof" json:"parent_external_id,omitempty"` + TemplateId *int64 `protobuf:"varint,6,opt,name=template_id,json=templateId,proto3,oneof" json:"template_id,omitempty"` + IsPublic *bool `protobuf:"varint,7,opt,name=is_public,json=isPublic,proto3,oneof" json:"is_public,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateDocumentRequest) Reset() { + *x = CreateDocumentRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateDocumentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateDocumentRequest) ProtoMessage() {} + +func (x *CreateDocumentRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[71] + 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 CreateDocumentRequest.ProtoReflect.Descriptor instead. +func (*CreateDocumentRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{71} +} + +func (x *CreateDocumentRequest) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *CreateDocumentRequest) GetType() DocumentType { + if x != nil { + return x.Type + } + return DocumentType_DOCUMENT_TYPE_UNSPECIFIED +} + +func (x *CreateDocumentRequest) GetContainerType() CreateDocumentContainerType { + if x != nil { + return x.ContainerType + } + return CreateDocumentContainerType_CREATE_DOCUMENT_CONTAINER_TYPE_UNSPECIFIED +} + +func (x *CreateDocumentRequest) GetKnowledgeBaseExternalId() string { + if x != nil && x.KnowledgeBaseExternalId != nil { + return *x.KnowledgeBaseExternalId + } + return "" +} + +func (x *CreateDocumentRequest) GetParentExternalId() string { + if x != nil && x.ParentExternalId != nil { + return *x.ParentExternalId + } + return "" +} + +func (x *CreateDocumentRequest) GetTemplateId() int64 { + if x != nil && x.TemplateId != nil { + return *x.TemplateId + } + return 0 +} + +func (x *CreateDocumentRequest) GetIsPublic() bool { + if x != nil && x.IsPublic != nil { + return *x.IsPublic + } + return false +} + +type CreateDocumentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + ExternalId string `protobuf:"bytes,2,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateDocumentResponse) Reset() { + *x = CreateDocumentResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateDocumentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateDocumentResponse) ProtoMessage() {} + +func (x *CreateDocumentResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[72] + 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 CreateDocumentResponse.ProtoReflect.Descriptor instead. +func (*CreateDocumentResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{72} +} + +func (x *CreateDocumentResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *CreateDocumentResponse) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +type KnowledgeBaseResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Cover string `protobuf:"bytes,4,opt,name=cover,proto3" json:"cover,omitempty"` + IsPublic bool `protobuf:"varint,5,opt,name=is_public,json=isPublic,proto3" json:"is_public,omitempty"` + CreatedAt string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt string `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + DeletedAt string `protobuf:"bytes,8,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` + CreatorUserExternalId string `protobuf:"bytes,9,opt,name=creator_user_external_id,json=creatorUserExternalId,proto3" json:"creator_user_external_id,omitempty"` + CreatorName string `protobuf:"bytes,10,opt,name=creator_name,json=creatorName,proto3" json:"creator_name,omitempty"` + DocumentsCount int64 `protobuf:"varint,11,opt,name=documents_count,json=documentsCount,proto3" json:"documents_count,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *KnowledgeBaseResponse) Reset() { + *x = KnowledgeBaseResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *KnowledgeBaseResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*KnowledgeBaseResponse) ProtoMessage() {} + +func (x *KnowledgeBaseResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[73] + 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 KnowledgeBaseResponse.ProtoReflect.Descriptor instead. +func (*KnowledgeBaseResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{73} +} + +func (x *KnowledgeBaseResponse) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *KnowledgeBaseResponse) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *KnowledgeBaseResponse) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *KnowledgeBaseResponse) GetCover() string { + if x != nil { + return x.Cover + } + return "" +} + +func (x *KnowledgeBaseResponse) GetIsPublic() bool { + if x != nil { + return x.IsPublic + } + return false +} + +func (x *KnowledgeBaseResponse) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *KnowledgeBaseResponse) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt + } + return "" +} + +func (x *KnowledgeBaseResponse) GetDeletedAt() string { + if x != nil { + return x.DeletedAt + } + return "" +} + +func (x *KnowledgeBaseResponse) GetCreatorUserExternalId() string { + if x != nil { + return x.CreatorUserExternalId + } + return "" +} + +func (x *KnowledgeBaseResponse) GetCreatorName() string { + if x != nil { + return x.CreatorName + } + return "" +} + +func (x *KnowledgeBaseResponse) GetDocumentsCount() int64 { + if x != nil { + return x.DocumentsCount + } + return 0 +} + +type ListKnowledgeBasesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + OnlyMine bool `protobuf:"varint,1,opt,name=only_mine,json=onlyMine,proto3" json:"only_mine,omitempty"` + NameKeyword *string `protobuf:"bytes,2,opt,name=name_keyword,json=nameKeyword,proto3,oneof" json:"name_keyword,omitempty"` + IsPublic *bool `protobuf:"varint,3,opt,name=is_public,json=isPublic,proto3,oneof" json:"is_public,omitempty"` + CreateTimeRange *TimeRange `protobuf:"bytes,4,opt,name=create_time_range,json=createTimeRange,proto3,oneof" json:"create_time_range,omitempty"` + UpdateTimeRange *TimeRange `protobuf:"bytes,5,opt,name=update_time_range,json=updateTimeRange,proto3,oneof" json:"update_time_range,omitempty"` + OrderBy *string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3,oneof" json:"order_by,omitempty"` + OrderDesc *bool `protobuf:"varint,7,opt,name=order_desc,json=orderDesc,proto3,oneof" json:"order_desc,omitempty"` + Page int32 `protobuf:"varint,8,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,9,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListKnowledgeBasesRequest) Reset() { + *x = ListKnowledgeBasesRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[74] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListKnowledgeBasesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListKnowledgeBasesRequest) ProtoMessage() {} + +func (x *ListKnowledgeBasesRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[74] + 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 ListKnowledgeBasesRequest.ProtoReflect.Descriptor instead. +func (*ListKnowledgeBasesRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{74} +} + +func (x *ListKnowledgeBasesRequest) GetOnlyMine() bool { + if x != nil { + return x.OnlyMine + } + return false +} + +func (x *ListKnowledgeBasesRequest) GetNameKeyword() string { + if x != nil && x.NameKeyword != nil { + return *x.NameKeyword + } + return "" +} + +func (x *ListKnowledgeBasesRequest) GetIsPublic() bool { + if x != nil && x.IsPublic != nil { + return *x.IsPublic + } + return false +} + +func (x *ListKnowledgeBasesRequest) GetCreateTimeRange() *TimeRange { + if x != nil { + return x.CreateTimeRange + } + return nil +} + +func (x *ListKnowledgeBasesRequest) GetUpdateTimeRange() *TimeRange { + if x != nil { + return x.UpdateTimeRange + } + return nil +} + +func (x *ListKnowledgeBasesRequest) GetOrderBy() string { + if x != nil && x.OrderBy != nil { + return *x.OrderBy + } + return "" +} + +func (x *ListKnowledgeBasesRequest) GetOrderDesc() bool { + if x != nil && x.OrderDesc != nil { + return *x.OrderDesc + } + return false +} + +func (x *ListKnowledgeBasesRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListKnowledgeBasesRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +type ListKnowledgeBasesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + KnowledgeBases []*KnowledgeBaseResponse `protobuf:"bytes,2,rep,name=knowledge_bases,json=knowledgeBases,proto3" json:"knowledge_bases,omitempty"` + Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListKnowledgeBasesResponse) Reset() { + *x = ListKnowledgeBasesResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[75] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListKnowledgeBasesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListKnowledgeBasesResponse) ProtoMessage() {} + +func (x *ListKnowledgeBasesResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[75] + 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 ListKnowledgeBasesResponse.ProtoReflect.Descriptor instead. +func (*ListKnowledgeBasesResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{75} +} + +func (x *ListKnowledgeBasesResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *ListKnowledgeBasesResponse) GetKnowledgeBases() []*KnowledgeBaseResponse { + if x != nil { + return x.KnowledgeBases + } + return nil +} + +func (x *ListKnowledgeBasesResponse) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +type CreateKnowledgeBaseRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Cover string `protobuf:"bytes,3,opt,name=cover,proto3" json:"cover,omitempty"` + IsPublic bool `protobuf:"varint,4,opt,name=is_public,json=isPublic,proto3" json:"is_public,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateKnowledgeBaseRequest) Reset() { + *x = CreateKnowledgeBaseRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[76] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateKnowledgeBaseRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateKnowledgeBaseRequest) ProtoMessage() {} + +func (x *CreateKnowledgeBaseRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[76] + 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 CreateKnowledgeBaseRequest.ProtoReflect.Descriptor instead. +func (*CreateKnowledgeBaseRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{76} +} + +func (x *CreateKnowledgeBaseRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreateKnowledgeBaseRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *CreateKnowledgeBaseRequest) GetCover() string { + if x != nil { + return x.Cover + } + return "" +} + +func (x *CreateKnowledgeBaseRequest) GetIsPublic() bool { + if x != nil { + return x.IsPublic + } + return false +} + +type CreateKnowledgeBaseResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + ExternalId string `protobuf:"bytes,2,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateKnowledgeBaseResponse) Reset() { + *x = CreateKnowledgeBaseResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[77] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateKnowledgeBaseResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateKnowledgeBaseResponse) ProtoMessage() {} + +func (x *CreateKnowledgeBaseResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[77] + 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 CreateKnowledgeBaseResponse.ProtoReflect.Descriptor instead. +func (*CreateKnowledgeBaseResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{77} +} + +func (x *CreateKnowledgeBaseResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *CreateKnowledgeBaseResponse) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +type GetKnowledgeBaseRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + KnowledgeBaseExternalId string `protobuf:"bytes,1,opt,name=knowledge_base_external_id,json=knowledgeBaseExternalId,proto3" json:"knowledge_base_external_id,omitempty"` + RecordRecentLog bool `protobuf:"varint,2,opt,name=record_recent_log,json=recordRecentLog,proto3" json:"record_recent_log,omitempty"` + Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + DirectoryOnly bool `protobuf:"varint,5,opt,name=directory_only,json=directoryOnly,proto3" json:"directory_only,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetKnowledgeBaseRequest) Reset() { + *x = GetKnowledgeBaseRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[78] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetKnowledgeBaseRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetKnowledgeBaseRequest) ProtoMessage() {} + +func (x *GetKnowledgeBaseRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[78] + 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 GetKnowledgeBaseRequest.ProtoReflect.Descriptor instead. +func (*GetKnowledgeBaseRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{78} +} + +func (x *GetKnowledgeBaseRequest) GetKnowledgeBaseExternalId() string { + if x != nil { + return x.KnowledgeBaseExternalId + } + return "" +} + +func (x *GetKnowledgeBaseRequest) GetRecordRecentLog() bool { + if x != nil { + return x.RecordRecentLog + } + return false +} + +func (x *GetKnowledgeBaseRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *GetKnowledgeBaseRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *GetKnowledgeBaseRequest) GetDirectoryOnly() bool { + if x != nil { + return x.DirectoryOnly + } + return false +} + +type GetKnowledgeBaseResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + KnowledgeBase *KnowledgeBaseResponse `protobuf:"bytes,2,opt,name=knowledge_base,json=knowledgeBase,proto3" json:"knowledge_base,omitempty"` + Documents []*DocumentResponse `protobuf:"bytes,3,rep,name=documents,proto3" json:"documents,omitempty"` + TotalCount int64 `protobuf:"varint,4,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetKnowledgeBaseResponse) Reset() { + *x = GetKnowledgeBaseResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[79] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetKnowledgeBaseResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetKnowledgeBaseResponse) ProtoMessage() {} + +func (x *GetKnowledgeBaseResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[79] + 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 GetKnowledgeBaseResponse.ProtoReflect.Descriptor instead. +func (*GetKnowledgeBaseResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{79} +} + +func (x *GetKnowledgeBaseResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *GetKnowledgeBaseResponse) GetKnowledgeBase() *KnowledgeBaseResponse { + if x != nil { + return x.KnowledgeBase + } + return nil +} + +func (x *GetKnowledgeBaseResponse) GetDocuments() []*DocumentResponse { + if x != nil { + return x.Documents + } + return nil +} + +func (x *GetKnowledgeBaseResponse) GetTotalCount() int64 { + if x != nil { + return x.TotalCount + } + return 0 +} + +type UserResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` + Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` + Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"` + Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"` + Status int32 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` + CreatedAt string `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt string `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + InvitationCode *string `protobuf:"bytes,9,opt,name=invitation_code,json=invitationCode,proto3,oneof" json:"invitation_code,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserResponse) Reset() { + *x = UserResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[80] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserResponse) ProtoMessage() {} + +func (x *UserResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[80] + 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 UserResponse.ProtoReflect.Descriptor instead. +func (*UserResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{80} +} + +func (x *UserResponse) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *UserResponse) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *UserResponse) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *UserResponse) GetNickname() string { + if x != nil { + return x.Nickname + } + return "" +} + +func (x *UserResponse) GetAvatar() string { + if x != nil { + return x.Avatar + } + return "" +} + +func (x *UserResponse) GetStatus() int32 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *UserResponse) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *UserResponse) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt + } + return "" +} + +func (x *UserResponse) GetInvitationCode() string { + if x != nil && x.InvitationCode != nil { + return *x.InvitationCode + } + return "" +} + +type InvitationResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + CreatedByExternalId string `protobuf:"bytes,2,opt,name=created_by_external_id,json=createdByExternalId,proto3" json:"created_by_external_id,omitempty"` + CreatedByName string `protobuf:"bytes,3,opt,name=created_by_name,json=createdByName,proto3" json:"created_by_name,omitempty"` + UsedCnt int64 `protobuf:"varint,4,opt,name=used_cnt,json=usedCnt,proto3" json:"used_cnt,omitempty"` + MaxUsedCnt *int64 `protobuf:"varint,5,opt,name=max_used_cnt,json=maxUsedCnt,proto3,oneof" json:"max_used_cnt,omitempty"` + ExpiresAt *string `protobuf:"bytes,6,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"` + CreatedAt string `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + Disabled bool `protobuf:"varint,8,opt,name=disabled,proto3" json:"disabled,omitempty"` + Note *string `protobuf:"bytes,9,opt,name=note,proto3,oneof" json:"note,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *InvitationResponse) Reset() { + *x = InvitationResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[81] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *InvitationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InvitationResponse) ProtoMessage() {} + +func (x *InvitationResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[81] + 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 InvitationResponse.ProtoReflect.Descriptor instead. +func (*InvitationResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{81} +} + +func (x *InvitationResponse) GetCode() string { + if x != nil { + return x.Code + } + return "" +} + +func (x *InvitationResponse) GetCreatedByExternalId() string { + if x != nil { + return x.CreatedByExternalId + } + return "" +} + +func (x *InvitationResponse) GetCreatedByName() string { + if x != nil { + return x.CreatedByName + } + return "" +} + +func (x *InvitationResponse) GetUsedCnt() int64 { + if x != nil { + return x.UsedCnt + } + return 0 +} + +func (x *InvitationResponse) GetMaxUsedCnt() int64 { + if x != nil && x.MaxUsedCnt != nil { + return *x.MaxUsedCnt + } + return 0 +} + +func (x *InvitationResponse) GetExpiresAt() string { + if x != nil && x.ExpiresAt != nil { + return *x.ExpiresAt + } + return "" +} + +func (x *InvitationResponse) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *InvitationResponse) GetDisabled() bool { + if x != nil { + return x.Disabled + } + return false +} + +func (x *InvitationResponse) GetNote() string { + if x != nil && x.Note != nil { + return *x.Note + } + return "" +} + +type InvitationRecordResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + UsedBy string `protobuf:"bytes,2,opt,name=used_by,json=usedBy,proto3" json:"used_by,omitempty"` + UsedByExternalId *string `protobuf:"bytes,3,opt,name=used_by_external_id,json=usedByExternalId,proto3,oneof" json:"used_by_external_id,omitempty"` + UsedAt string `protobuf:"bytes,4,opt,name=used_at,json=usedAt,proto3" json:"used_at,omitempty"` + Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *InvitationRecordResponse) Reset() { + *x = InvitationRecordResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[82] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *InvitationRecordResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InvitationRecordResponse) ProtoMessage() {} + +func (x *InvitationRecordResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[82] + 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 InvitationRecordResponse.ProtoReflect.Descriptor instead. +func (*InvitationRecordResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{82} +} + +func (x *InvitationRecordResponse) GetCode() string { + if x != nil { + return x.Code + } + return "" +} + +func (x *InvitationRecordResponse) GetUsedBy() string { + if x != nil { + return x.UsedBy + } + return "" +} + +func (x *InvitationRecordResponse) GetUsedByExternalId() string { + if x != nil && x.UsedByExternalId != nil { + return *x.UsedByExternalId + } + return "" +} + +func (x *InvitationRecordResponse) GetUsedAt() string { + if x != nil { + return x.UsedAt + } + return "" +} + +func (x *InvitationRecordResponse) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +type ListInvitationsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + MaxUsedCnt *int64 `protobuf:"varint,2,opt,name=max_used_cnt,json=maxUsedCnt,proto3,oneof" json:"max_used_cnt,omitempty"` + ExpiresAtStart *string `protobuf:"bytes,3,opt,name=expires_at_start,json=expiresAtStart,proto3,oneof" json:"expires_at_start,omitempty"` + ExpiresAtEnd *string `protobuf:"bytes,4,opt,name=expires_at_end,json=expiresAtEnd,proto3,oneof" json:"expires_at_end,omitempty"` + CreatedAtStart *string `protobuf:"bytes,5,opt,name=created_at_start,json=createdAtStart,proto3,oneof" json:"created_at_start,omitempty"` + CreatedAtEnd *string `protobuf:"bytes,6,opt,name=created_at_end,json=createdAtEnd,proto3,oneof" json:"created_at_end,omitempty"` + Disabled *bool `protobuf:"varint,7,opt,name=disabled,proto3,oneof" json:"disabled,omitempty"` + OrderBy *string `protobuf:"bytes,8,opt,name=order_by,json=orderBy,proto3,oneof" json:"order_by,omitempty"` + OrderDesc *bool `protobuf:"varint,9,opt,name=order_desc,json=orderDesc,proto3,oneof" json:"order_desc,omitempty"` + Page int32 `protobuf:"varint,10,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,11,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + OnlyMine *bool `protobuf:"varint,12,opt,name=only_mine,json=onlyMine,proto3,oneof" json:"only_mine,omitempty"` + Keyword *string `protobuf:"bytes,13,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListInvitationsRequest) Reset() { + *x = ListInvitationsRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[83] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListInvitationsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListInvitationsRequest) ProtoMessage() {} + +func (x *ListInvitationsRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[83] + 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 ListInvitationsRequest.ProtoReflect.Descriptor instead. +func (*ListInvitationsRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{83} +} + +func (x *ListInvitationsRequest) GetMaxUsedCnt() int64 { + if x != nil && x.MaxUsedCnt != nil { + return *x.MaxUsedCnt + } + return 0 +} + +func (x *ListInvitationsRequest) GetExpiresAtStart() string { + if x != nil && x.ExpiresAtStart != nil { + return *x.ExpiresAtStart + } + return "" +} + +func (x *ListInvitationsRequest) GetExpiresAtEnd() string { + if x != nil && x.ExpiresAtEnd != nil { + return *x.ExpiresAtEnd + } + return "" +} + +func (x *ListInvitationsRequest) GetCreatedAtStart() string { + if x != nil && x.CreatedAtStart != nil { + return *x.CreatedAtStart + } + return "" +} + +func (x *ListInvitationsRequest) GetCreatedAtEnd() string { + if x != nil && x.CreatedAtEnd != nil { + return *x.CreatedAtEnd + } + return "" +} + +func (x *ListInvitationsRequest) GetDisabled() bool { + if x != nil && x.Disabled != nil { + return *x.Disabled + } + return false +} + +func (x *ListInvitationsRequest) GetOrderBy() string { + if x != nil && x.OrderBy != nil { + return *x.OrderBy + } + return "" +} + +func (x *ListInvitationsRequest) GetOrderDesc() bool { + if x != nil && x.OrderDesc != nil { + return *x.OrderDesc + } + return false +} + +func (x *ListInvitationsRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListInvitationsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListInvitationsRequest) GetOnlyMine() bool { + if x != nil && x.OnlyMine != nil { + return *x.OnlyMine + } + return false +} + +func (x *ListInvitationsRequest) GetKeyword() string { + if x != nil && x.Keyword != nil { + return *x.Keyword + } + return "" +} + +type ListInvitationsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Invitations []*InvitationResponse `protobuf:"bytes,2,rep,name=invitations,proto3" json:"invitations,omitempty"` + Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListInvitationsResponse) Reset() { + *x = ListInvitationsResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[84] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListInvitationsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListInvitationsResponse) ProtoMessage() {} + +func (x *ListInvitationsResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[84] + 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 ListInvitationsResponse.ProtoReflect.Descriptor instead. +func (*ListInvitationsResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{84} +} + +func (x *ListInvitationsResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *ListInvitationsResponse) GetInvitations() []*InvitationResponse { + if x != nil { + return x.Invitations + } + return nil +} + +func (x *ListInvitationsResponse) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +type CreateInvitationRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + MaxUsedCnt *int64 `protobuf:"varint,1,opt,name=max_used_cnt,json=maxUsedCnt,proto3,oneof" json:"max_used_cnt,omitempty"` + ExpiresAt *string `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"` + Note *string `protobuf:"bytes,3,opt,name=note,proto3,oneof" json:"note,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateInvitationRequest) Reset() { + *x = CreateInvitationRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[85] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateInvitationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateInvitationRequest) ProtoMessage() {} + +func (x *CreateInvitationRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[85] + 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 CreateInvitationRequest.ProtoReflect.Descriptor instead. +func (*CreateInvitationRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{85} +} + +func (x *CreateInvitationRequest) GetMaxUsedCnt() int64 { + if x != nil && x.MaxUsedCnt != nil { + return *x.MaxUsedCnt + } + return 0 +} + +func (x *CreateInvitationRequest) GetExpiresAt() string { + if x != nil && x.ExpiresAt != nil { + return *x.ExpiresAt + } + return "" +} + +func (x *CreateInvitationRequest) GetNote() string { + if x != nil && x.Note != nil { + return *x.Note + } + return "" +} + +type CreateInvitationResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Invitation *InvitationResponse `protobuf:"bytes,2,opt,name=invitation,proto3" json:"invitation,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateInvitationResponse) Reset() { + *x = CreateInvitationResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[86] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateInvitationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateInvitationResponse) ProtoMessage() {} + +func (x *CreateInvitationResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[86] + 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 CreateInvitationResponse.ProtoReflect.Descriptor instead. +func (*CreateInvitationResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{86} +} + +func (x *CreateInvitationResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *CreateInvitationResponse) GetInvitation() *InvitationResponse { + if x != nil { + return x.Invitation + } + return nil +} + +type UpdateInvitationRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + MaxUsedCnt *int64 `protobuf:"varint,2,opt,name=max_used_cnt,json=maxUsedCnt,proto3,oneof" json:"max_used_cnt,omitempty"` + ExpiresAt *string `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"` + Disabled *bool `protobuf:"varint,4,opt,name=disabled,proto3,oneof" json:"disabled,omitempty"` + Note *string `protobuf:"bytes,5,opt,name=note,proto3,oneof" json:"note,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateInvitationRequest) Reset() { + *x = UpdateInvitationRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[87] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateInvitationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateInvitationRequest) ProtoMessage() {} + +func (x *UpdateInvitationRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[87] + 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 UpdateInvitationRequest.ProtoReflect.Descriptor instead. +func (*UpdateInvitationRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{87} +} + +func (x *UpdateInvitationRequest) GetCode() string { + if x != nil { + return x.Code + } + return "" +} + +func (x *UpdateInvitationRequest) GetMaxUsedCnt() int64 { + if x != nil && x.MaxUsedCnt != nil { + return *x.MaxUsedCnt + } + return 0 +} + +func (x *UpdateInvitationRequest) GetExpiresAt() string { + if x != nil && x.ExpiresAt != nil { + return *x.ExpiresAt + } + return "" +} + +func (x *UpdateInvitationRequest) GetDisabled() bool { + if x != nil && x.Disabled != nil { + return *x.Disabled + } + return false +} + +func (x *UpdateInvitationRequest) GetNote() string { + if x != nil && x.Note != nil { + return *x.Note + } + return "" +} + +type UpdateInvitationResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateInvitationResponse) Reset() { + *x = UpdateInvitationResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[88] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateInvitationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateInvitationResponse) ProtoMessage() {} + +func (x *UpdateInvitationResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[88] + 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 UpdateInvitationResponse.ProtoReflect.Descriptor instead. +func (*UpdateInvitationResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{88} +} + +func (x *UpdateInvitationResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type DeleteInvitationRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteInvitationRequest) Reset() { + *x = DeleteInvitationRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[89] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteInvitationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteInvitationRequest) ProtoMessage() {} + +func (x *DeleteInvitationRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[89] + 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 DeleteInvitationRequest.ProtoReflect.Descriptor instead. +func (*DeleteInvitationRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{89} +} + +func (x *DeleteInvitationRequest) GetCode() string { + if x != nil { + return x.Code + } + return "" +} + +type DeleteInvitationResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteInvitationResponse) Reset() { + *x = DeleteInvitationResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[90] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteInvitationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteInvitationResponse) ProtoMessage() {} + +func (x *DeleteInvitationResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[90] + 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 DeleteInvitationResponse.ProtoReflect.Descriptor instead. +func (*DeleteInvitationResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{90} +} + +func (x *DeleteInvitationResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type ListInvitationRecordsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Code *string `protobuf:"bytes,1,opt,name=code,proto3,oneof" json:"code,omitempty"` + Status *string `protobuf:"bytes,2,opt,name=status,proto3,oneof" json:"status,omitempty"` + UsedAtStart *string `protobuf:"bytes,3,opt,name=used_at_start,json=usedAtStart,proto3,oneof" json:"used_at_start,omitempty"` + UsedAtEnd *string `protobuf:"bytes,4,opt,name=used_at_end,json=usedAtEnd,proto3,oneof" json:"used_at_end,omitempty"` + Page int32 `protobuf:"varint,5,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,6,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + OnlyMine *bool `protobuf:"varint,7,opt,name=only_mine,json=onlyMine,proto3,oneof" json:"only_mine,omitempty"` + Keyword *string `protobuf:"bytes,8,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListInvitationRecordsRequest) Reset() { + *x = ListInvitationRecordsRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[91] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListInvitationRecordsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListInvitationRecordsRequest) ProtoMessage() {} + +func (x *ListInvitationRecordsRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[91] + 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 ListInvitationRecordsRequest.ProtoReflect.Descriptor instead. +func (*ListInvitationRecordsRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{91} +} + +func (x *ListInvitationRecordsRequest) GetCode() string { + if x != nil && x.Code != nil { + return *x.Code + } + return "" +} + +func (x *ListInvitationRecordsRequest) GetStatus() string { + if x != nil && x.Status != nil { + return *x.Status + } + return "" +} + +func (x *ListInvitationRecordsRequest) GetUsedAtStart() string { + if x != nil && x.UsedAtStart != nil { + return *x.UsedAtStart + } + return "" +} + +func (x *ListInvitationRecordsRequest) GetUsedAtEnd() string { + if x != nil && x.UsedAtEnd != nil { + return *x.UsedAtEnd + } + return "" +} + +func (x *ListInvitationRecordsRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListInvitationRecordsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListInvitationRecordsRequest) GetOnlyMine() bool { + if x != nil && x.OnlyMine != nil { + return *x.OnlyMine + } + return false +} + +func (x *ListInvitationRecordsRequest) GetKeyword() string { + if x != nil && x.Keyword != nil { + return *x.Keyword + } + return "" +} + +type ListInvitationRecordsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Records []*InvitationRecordResponse `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"` + Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListInvitationRecordsResponse) Reset() { + *x = ListInvitationRecordsResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[92] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListInvitationRecordsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListInvitationRecordsResponse) ProtoMessage() {} + +func (x *ListInvitationRecordsResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[92] + 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 ListInvitationRecordsResponse.ProtoReflect.Descriptor instead. +func (*ListInvitationRecordsResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{92} +} + +func (x *ListInvitationRecordsResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *ListInvitationRecordsResponse) GetRecords() []*InvitationRecordResponse { + if x != nil { + return x.Records + } + return nil +} + +func (x *ListInvitationRecordsResponse) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +type Notification struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` + Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` + Payload string `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"` + CreatedAt string `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Notification) Reset() { + *x = Notification{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[93] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Notification) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Notification) ProtoMessage() {} + +func (x *Notification) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[93] + 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 Notification.ProtoReflect.Descriptor instead. +func (*Notification) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{93} +} + +func (x *Notification) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *Notification) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *Notification) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *Notification) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *Notification) GetContent() string { + if x != nil { + return x.Content + } + return "" +} + +func (x *Notification) GetPayload() string { + if x != nil { + return x.Payload + } + return "" +} + +func (x *Notification) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +type CreateNotificationRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ReceiverExternalIds []string `protobuf:"bytes,1,rep,name=receiver_external_ids,json=receiverExternalIds,proto3" json:"receiver_external_ids,omitempty"` + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` + Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` + PayloadJson string `protobuf:"bytes,5,opt,name=payload_json,json=payloadJson,proto3" json:"payload_json,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateNotificationRequest) Reset() { + *x = CreateNotificationRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[94] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateNotificationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateNotificationRequest) ProtoMessage() {} + +func (x *CreateNotificationRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[94] + 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 CreateNotificationRequest.ProtoReflect.Descriptor instead. +func (*CreateNotificationRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{94} +} + +func (x *CreateNotificationRequest) GetReceiverExternalIds() []string { + if x != nil { + return x.ReceiverExternalIds + } + return nil +} + +func (x *CreateNotificationRequest) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *CreateNotificationRequest) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *CreateNotificationRequest) GetContent() string { + if x != nil { + return x.Content + } + return "" +} + +func (x *CreateNotificationRequest) GetPayloadJson() string { + if x != nil { + return x.PayloadJson + } + return "" +} + +type CreateNotificationResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateNotificationResponse) Reset() { + *x = CreateNotificationResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[95] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateNotificationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateNotificationResponse) ProtoMessage() {} + +func (x *CreateNotificationResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[95] + 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 CreateNotificationResponse.ProtoReflect.Descriptor instead. +func (*CreateNotificationResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{95} +} + +func (x *CreateNotificationResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type ListNotificationsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + Status *string `protobuf:"bytes,3,opt,name=status,proto3,oneof" json:"status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListNotificationsRequest) Reset() { + *x = ListNotificationsRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[96] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListNotificationsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListNotificationsRequest) ProtoMessage() {} + +func (x *ListNotificationsRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[96] + 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 ListNotificationsRequest.ProtoReflect.Descriptor instead. +func (*ListNotificationsRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{96} +} + +func (x *ListNotificationsRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListNotificationsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListNotificationsRequest) GetStatus() string { + if x != nil && x.Status != nil { + return *x.Status + } + return "" +} + +type ListNotificationsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Notifications []*Notification `protobuf:"bytes,2,rep,name=notifications,proto3" json:"notifications,omitempty"` + Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListNotificationsResponse) Reset() { + *x = ListNotificationsResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[97] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListNotificationsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListNotificationsResponse) ProtoMessage() {} + +func (x *ListNotificationsResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[97] + 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 ListNotificationsResponse.ProtoReflect.Descriptor instead. +func (*ListNotificationsResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{97} +} + +func (x *ListNotificationsResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *ListNotificationsResponse) GetNotifications() []*Notification { + if x != nil { + return x.Notifications + } + return nil +} + +func (x *ListNotificationsResponse) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +type MarkNotificationsReadRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalIds []string `protobuf:"bytes,1,rep,name=external_ids,json=externalIds,proto3" json:"external_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MarkNotificationsReadRequest) Reset() { + *x = MarkNotificationsReadRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[98] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MarkNotificationsReadRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MarkNotificationsReadRequest) ProtoMessage() {} + +func (x *MarkNotificationsReadRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[98] + 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 MarkNotificationsReadRequest.ProtoReflect.Descriptor instead. +func (*MarkNotificationsReadRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{98} +} + +func (x *MarkNotificationsReadRequest) GetExternalIds() []string { + if x != nil { + return x.ExternalIds + } + return nil +} + +type MarkNotificationsReadResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MarkNotificationsReadResponse) Reset() { + *x = MarkNotificationsReadResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[99] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MarkNotificationsReadResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MarkNotificationsReadResponse) ProtoMessage() {} + +func (x *MarkNotificationsReadResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[99] + 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 MarkNotificationsReadResponse.ProtoReflect.Descriptor instead. +func (*MarkNotificationsReadResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{99} +} + +func (x *MarkNotificationsReadResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type MarkAllNotificationsReadRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MarkAllNotificationsReadRequest) Reset() { + *x = MarkAllNotificationsReadRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[100] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MarkAllNotificationsReadRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MarkAllNotificationsReadRequest) ProtoMessage() {} + +func (x *MarkAllNotificationsReadRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[100] + 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 MarkAllNotificationsReadRequest.ProtoReflect.Descriptor instead. +func (*MarkAllNotificationsReadRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{100} +} + +type MarkAllNotificationsReadResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MarkAllNotificationsReadResponse) Reset() { + *x = MarkAllNotificationsReadResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[101] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MarkAllNotificationsReadResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MarkAllNotificationsReadResponse) ProtoMessage() {} + +func (x *MarkAllNotificationsReadResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[101] + 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 MarkAllNotificationsReadResponse.ProtoReflect.Descriptor instead. +func (*MarkAllNotificationsReadResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{101} +} + +func (x *MarkAllNotificationsReadResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type UpdateDocumentRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + Title *string `protobuf:"bytes,2,opt,name=title,proto3,oneof" json:"title,omitempty"` + KnowledgeBaseExternalId *string `protobuf:"bytes,3,opt,name=knowledge_base_external_id,json=knowledgeBaseExternalId,proto3,oneof" json:"knowledge_base_external_id,omitempty"` + ParentExternalId *string `protobuf:"bytes,4,opt,name=parent_external_id,json=parentExternalId,proto3,oneof" json:"parent_external_id,omitempty"` + Content *string `protobuf:"bytes,5,opt,name=content,proto3,oneof" json:"content,omitempty"` + MoveToContainer *CreateDocumentContainerType `protobuf:"varint,6,opt,name=move_to_container,json=moveToContainer,proto3,enum=yoresee_doc.v1.CreateDocumentContainerType,oneof" json:"move_to_container,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateDocumentRequest) Reset() { + *x = UpdateDocumentRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[102] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateDocumentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateDocumentRequest) ProtoMessage() {} + +func (x *UpdateDocumentRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[102] + 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 UpdateDocumentRequest.ProtoReflect.Descriptor instead. +func (*UpdateDocumentRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{102} +} + +func (x *UpdateDocumentRequest) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *UpdateDocumentRequest) GetTitle() string { + if x != nil && x.Title != nil { + return *x.Title + } + return "" +} + +func (x *UpdateDocumentRequest) GetKnowledgeBaseExternalId() string { + if x != nil && x.KnowledgeBaseExternalId != nil { + return *x.KnowledgeBaseExternalId + } + return "" +} + +func (x *UpdateDocumentRequest) GetParentExternalId() string { + if x != nil && x.ParentExternalId != nil { + return *x.ParentExternalId + } + return "" +} + +func (x *UpdateDocumentRequest) GetContent() string { + if x != nil && x.Content != nil { + return *x.Content + } + return "" +} + +func (x *UpdateDocumentRequest) GetMoveToContainer() CreateDocumentContainerType { + if x != nil && x.MoveToContainer != nil { + return *x.MoveToContainer + } + return CreateDocumentContainerType_CREATE_DOCUMENT_CONTAINER_TYPE_UNSPECIFIED +} + +type DocumentComment struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + DocumentExternalId string `protobuf:"bytes,2,opt,name=document_external_id,json=documentExternalId,proto3" json:"document_external_id,omitempty"` + ParentExternalId string `protobuf:"bytes,3,opt,name=parent_external_id,json=parentExternalId,proto3" json:"parent_external_id,omitempty"` + Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` + CreatorUserExternalId string `protobuf:"bytes,5,opt,name=creator_user_external_id,json=creatorUserExternalId,proto3" json:"creator_user_external_id,omitempty"` + CreatorName string `protobuf:"bytes,6,opt,name=creator_name,json=creatorName,proto3" json:"creator_name,omitempty"` + CreatorAvatar string `protobuf:"bytes,7,opt,name=creator_avatar,json=creatorAvatar,proto3" json:"creator_avatar,omitempty"` + CreatedAt string `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + AnchorId string `protobuf:"bytes,9,opt,name=anchor_id,json=anchorId,proto3" json:"anchor_id,omitempty"` + Quote string `protobuf:"bytes,10,opt,name=quote,proto3" json:"quote,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DocumentComment) Reset() { + *x = DocumentComment{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[103] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DocumentComment) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DocumentComment) ProtoMessage() {} + +func (x *DocumentComment) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[103] + 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 DocumentComment.ProtoReflect.Descriptor instead. +func (*DocumentComment) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{103} +} + +func (x *DocumentComment) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *DocumentComment) GetDocumentExternalId() string { + if x != nil { + return x.DocumentExternalId + } + return "" +} + +func (x *DocumentComment) GetParentExternalId() string { + if x != nil { + return x.ParentExternalId + } + return "" +} + +func (x *DocumentComment) GetContent() string { + if x != nil { + return x.Content + } + return "" +} + +func (x *DocumentComment) GetCreatorUserExternalId() string { + if x != nil { + return x.CreatorUserExternalId + } + return "" +} + +func (x *DocumentComment) GetCreatorName() string { + if x != nil { + return x.CreatorName + } + return "" +} + +func (x *DocumentComment) GetCreatorAvatar() string { + if x != nil { + return x.CreatorAvatar + } + return "" +} + +func (x *DocumentComment) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *DocumentComment) GetAnchorId() string { + if x != nil { + return x.AnchorId + } + return "" +} + +func (x *DocumentComment) GetQuote() string { + if x != nil { + return x.Quote + } + return "" +} + +type CreateDocumentCommentRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + DocumentExternalId string `protobuf:"bytes,1,opt,name=document_external_id,json=documentExternalId,proto3" json:"document_external_id,omitempty"` + Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` + ParentExternalId *string `protobuf:"bytes,3,opt,name=parent_external_id,json=parentExternalId,proto3,oneof" json:"parent_external_id,omitempty"` + AnchorId *string `protobuf:"bytes,4,opt,name=anchor_id,json=anchorId,proto3,oneof" json:"anchor_id,omitempty"` + Quote *string `protobuf:"bytes,5,opt,name=quote,proto3,oneof" json:"quote,omitempty"` + MentionedUserExternalIds []string `protobuf:"bytes,6,rep,name=mentioned_user_external_ids,json=mentionedUserExternalIds,proto3" json:"mentioned_user_external_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateDocumentCommentRequest) Reset() { + *x = CreateDocumentCommentRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[104] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateDocumentCommentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateDocumentCommentRequest) ProtoMessage() {} + +func (x *CreateDocumentCommentRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[104] + 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 CreateDocumentCommentRequest.ProtoReflect.Descriptor instead. +func (*CreateDocumentCommentRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{104} +} + +func (x *CreateDocumentCommentRequest) GetDocumentExternalId() string { + if x != nil { + return x.DocumentExternalId + } + return "" +} + +func (x *CreateDocumentCommentRequest) GetContent() string { + if x != nil { + return x.Content + } + return "" +} + +func (x *CreateDocumentCommentRequest) GetParentExternalId() string { + if x != nil && x.ParentExternalId != nil { + return *x.ParentExternalId + } + return "" +} + +func (x *CreateDocumentCommentRequest) GetAnchorId() string { + if x != nil && x.AnchorId != nil { + return *x.AnchorId + } + return "" +} + +func (x *CreateDocumentCommentRequest) GetQuote() string { + if x != nil && x.Quote != nil { + return *x.Quote + } + return "" +} + +func (x *CreateDocumentCommentRequest) GetMentionedUserExternalIds() []string { + if x != nil { + return x.MentionedUserExternalIds + } + return nil +} + +type CreateDocumentCommentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Comment *DocumentComment `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateDocumentCommentResponse) Reset() { + *x = CreateDocumentCommentResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[105] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateDocumentCommentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateDocumentCommentResponse) ProtoMessage() {} + +func (x *CreateDocumentCommentResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[105] + 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 CreateDocumentCommentResponse.ProtoReflect.Descriptor instead. +func (*CreateDocumentCommentResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{105} +} + +func (x *CreateDocumentCommentResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *CreateDocumentCommentResponse) GetComment() *DocumentComment { + if x != nil { + return x.Comment + } + return nil +} + +type ListDocumentCommentsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + DocumentExternalId string `protobuf:"bytes,1,opt,name=document_external_id,json=documentExternalId,proto3" json:"document_external_id,omitempty"` + Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListDocumentCommentsRequest) Reset() { + *x = ListDocumentCommentsRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[106] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListDocumentCommentsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListDocumentCommentsRequest) ProtoMessage() {} + +func (x *ListDocumentCommentsRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[106] + 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 ListDocumentCommentsRequest.ProtoReflect.Descriptor instead. +func (*ListDocumentCommentsRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{106} +} + +func (x *ListDocumentCommentsRequest) GetDocumentExternalId() string { + if x != nil { + return x.DocumentExternalId + } + return "" +} + +func (x *ListDocumentCommentsRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListDocumentCommentsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +type ListDocumentCommentsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Comments []*DocumentComment `protobuf:"bytes,2,rep,name=comments,proto3" json:"comments,omitempty"` + Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListDocumentCommentsResponse) Reset() { + *x = ListDocumentCommentsResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[107] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListDocumentCommentsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListDocumentCommentsResponse) ProtoMessage() {} + +func (x *ListDocumentCommentsResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[107] + 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 ListDocumentCommentsResponse.ProtoReflect.Descriptor instead. +func (*ListDocumentCommentsResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{107} +} + +func (x *ListDocumentCommentsResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *ListDocumentCommentsResponse) GetComments() []*DocumentComment { + if x != nil { + return x.Comments + } + return nil +} + +func (x *ListDocumentCommentsResponse) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +type DeleteDocumentCommentRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteDocumentCommentRequest) Reset() { + *x = DeleteDocumentCommentRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[108] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteDocumentCommentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteDocumentCommentRequest) ProtoMessage() {} + +func (x *DeleteDocumentCommentRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[108] + 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 DeleteDocumentCommentRequest.ProtoReflect.Descriptor instead. +func (*DeleteDocumentCommentRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{108} +} + +func (x *DeleteDocumentCommentRequest) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +type DeleteDocumentCommentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteDocumentCommentResponse) Reset() { + *x = DeleteDocumentCommentResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[109] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteDocumentCommentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteDocumentCommentResponse) ProtoMessage() {} + +func (x *DeleteDocumentCommentResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[109] + 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 DeleteDocumentCommentResponse.ProtoReflect.Descriptor instead. +func (*DeleteDocumentCommentResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{109} +} + +func (x *DeleteDocumentCommentResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type UpdateDocumentCommentRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateDocumentCommentRequest) Reset() { + *x = UpdateDocumentCommentRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[110] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateDocumentCommentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateDocumentCommentRequest) ProtoMessage() {} + +func (x *UpdateDocumentCommentRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[110] + 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 UpdateDocumentCommentRequest.ProtoReflect.Descriptor instead. +func (*UpdateDocumentCommentRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{110} +} + +func (x *UpdateDocumentCommentRequest) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *UpdateDocumentCommentRequest) GetContent() string { + if x != nil { + return x.Content + } + return "" +} + +type UpdateDocumentCommentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Comment *DocumentComment `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateDocumentCommentResponse) Reset() { + *x = UpdateDocumentCommentResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[111] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateDocumentCommentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateDocumentCommentResponse) ProtoMessage() {} + +func (x *UpdateDocumentCommentResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[111] + 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 UpdateDocumentCommentResponse.ProtoReflect.Descriptor instead. +func (*UpdateDocumentCommentResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{111} +} + +func (x *UpdateDocumentCommentResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *UpdateDocumentCommentResponse) GetComment() *DocumentComment { + if x != nil { + return x.Comment + } + return nil +} + +type UpdateDocumentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateDocumentResponse) Reset() { + *x = UpdateDocumentResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[112] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateDocumentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateDocumentResponse) ProtoMessage() {} + +func (x *UpdateDocumentResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[112] + 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 UpdateDocumentResponse.ProtoReflect.Descriptor instead. +func (*UpdateDocumentResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{112} +} + +func (x *UpdateDocumentResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type UpdateDocumentMetaRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + Title *string `protobuf:"bytes,2,opt,name=title,proto3,oneof" json:"title,omitempty"` + Summary *string `protobuf:"bytes,3,opt,name=summary,proto3,oneof" json:"summary,omitempty"` + Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateDocumentMetaRequest) Reset() { + *x = UpdateDocumentMetaRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[113] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateDocumentMetaRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateDocumentMetaRequest) ProtoMessage() {} + +func (x *UpdateDocumentMetaRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[113] + 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 UpdateDocumentMetaRequest.ProtoReflect.Descriptor instead. +func (*UpdateDocumentMetaRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{113} +} + +func (x *UpdateDocumentMetaRequest) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *UpdateDocumentMetaRequest) GetTitle() string { + if x != nil && x.Title != nil { + return *x.Title + } + return "" +} + +func (x *UpdateDocumentMetaRequest) GetSummary() string { + if x != nil && x.Summary != nil { + return *x.Summary + } + return "" +} + +func (x *UpdateDocumentMetaRequest) GetTags() []string { + if x != nil { + return x.Tags + } + return nil +} + +type UpdateDocumentMetaResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateDocumentMetaResponse) Reset() { + *x = UpdateDocumentMetaResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[114] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateDocumentMetaResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateDocumentMetaResponse) ProtoMessage() {} + +func (x *UpdateDocumentMetaResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[114] + 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 UpdateDocumentMetaResponse.ProtoReflect.Descriptor instead. +func (*UpdateDocumentMetaResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{114} +} + +func (x *UpdateDocumentMetaResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type UpdateDocumentSettingsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + IsPublic *bool `protobuf:"varint,2,opt,name=is_public,json=isPublic,proto3,oneof" json:"is_public,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateDocumentSettingsRequest) Reset() { + *x = UpdateDocumentSettingsRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[115] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateDocumentSettingsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateDocumentSettingsRequest) ProtoMessage() {} + +func (x *UpdateDocumentSettingsRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[115] + 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 UpdateDocumentSettingsRequest.ProtoReflect.Descriptor instead. +func (*UpdateDocumentSettingsRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{115} +} + +func (x *UpdateDocumentSettingsRequest) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *UpdateDocumentSettingsRequest) GetIsPublic() bool { + if x != nil && x.IsPublic != nil { + return *x.IsPublic + } + return false +} + +type UpdateDocumentSettingsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + IsPublic *bool `protobuf:"varint,2,opt,name=is_public,json=isPublic,proto3,oneof" json:"is_public,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateDocumentSettingsResponse) Reset() { + *x = UpdateDocumentSettingsResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[116] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateDocumentSettingsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateDocumentSettingsResponse) ProtoMessage() {} + +func (x *UpdateDocumentSettingsResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[116] + 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 UpdateDocumentSettingsResponse.ProtoReflect.Descriptor instead. +func (*UpdateDocumentSettingsResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{116} +} + +func (x *UpdateDocumentSettingsResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *UpdateDocumentSettingsResponse) GetIsPublic() bool { + if x != nil && x.IsPublic != nil { + return *x.IsPublic + } + return false +} + +type AttachmentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + DocumentExternalId string `protobuf:"bytes,2,opt,name=document_external_id,json=documentExternalId,proto3" json:"document_external_id,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` + MimeType string `protobuf:"bytes,5,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` + Path string `protobuf:"bytes,6,opt,name=path,proto3" json:"path,omitempty"` + Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"` + CreatedAt string `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt string `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AttachmentResponse) Reset() { + *x = AttachmentResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[117] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AttachmentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AttachmentResponse) ProtoMessage() {} + +func (x *AttachmentResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[117] + 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 AttachmentResponse.ProtoReflect.Descriptor instead. +func (*AttachmentResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{117} +} + +func (x *AttachmentResponse) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *AttachmentResponse) GetDocumentExternalId() string { + if x != nil { + return x.DocumentExternalId + } + return "" +} + +func (x *AttachmentResponse) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AttachmentResponse) GetSize() int64 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *AttachmentResponse) GetMimeType() string { + if x != nil { + return x.MimeType + } + return "" +} + +func (x *AttachmentResponse) GetPath() string { + if x != nil { + return x.Path + } + return "" +} + +func (x *AttachmentResponse) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +func (x *AttachmentResponse) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *AttachmentResponse) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt + } + return "" +} + +type UploadDocumentAttachmentRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + DocumentExternalId string `protobuf:"bytes,1,opt,name=document_external_id,json=documentExternalId,proto3" json:"document_external_id,omitempty"` + FileContent []byte `protobuf:"bytes,2,opt,name=file_content,json=fileContent,proto3" json:"file_content,omitempty"` + FileName string `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` + ContentType *string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3,oneof" json:"content_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UploadDocumentAttachmentRequest) Reset() { + *x = UploadDocumentAttachmentRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[118] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UploadDocumentAttachmentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UploadDocumentAttachmentRequest) ProtoMessage() {} + +func (x *UploadDocumentAttachmentRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[118] + 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 UploadDocumentAttachmentRequest.ProtoReflect.Descriptor instead. +func (*UploadDocumentAttachmentRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{118} +} + +func (x *UploadDocumentAttachmentRequest) GetDocumentExternalId() string { + if x != nil { + return x.DocumentExternalId + } + return "" +} + +func (x *UploadDocumentAttachmentRequest) GetFileContent() []byte { + if x != nil { + return x.FileContent + } + return nil +} + +func (x *UploadDocumentAttachmentRequest) GetFileName() string { + if x != nil { + return x.FileName + } + return "" +} + +func (x *UploadDocumentAttachmentRequest) GetContentType() string { + if x != nil && x.ContentType != nil { + return *x.ContentType + } + return "" +} + +type UploadDocumentAttachmentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Attachment *AttachmentResponse `protobuf:"bytes,2,opt,name=attachment,proto3" json:"attachment,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UploadDocumentAttachmentResponse) Reset() { + *x = UploadDocumentAttachmentResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[119] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UploadDocumentAttachmentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UploadDocumentAttachmentResponse) ProtoMessage() {} + +func (x *UploadDocumentAttachmentResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[119] + 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 UploadDocumentAttachmentResponse.ProtoReflect.Descriptor instead. +func (*UploadDocumentAttachmentResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{119} +} + +func (x *UploadDocumentAttachmentResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *UploadDocumentAttachmentResponse) GetAttachment() *AttachmentResponse { + if x != nil { + return x.Attachment + } + return nil +} + +type ListDocumentAttachmentsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + DocumentExternalId string `protobuf:"bytes,1,opt,name=document_external_id,json=documentExternalId,proto3" json:"document_external_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListDocumentAttachmentsRequest) Reset() { + *x = ListDocumentAttachmentsRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[120] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListDocumentAttachmentsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListDocumentAttachmentsRequest) ProtoMessage() {} + +func (x *ListDocumentAttachmentsRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[120] + 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 ListDocumentAttachmentsRequest.ProtoReflect.Descriptor instead. +func (*ListDocumentAttachmentsRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{120} +} + +func (x *ListDocumentAttachmentsRequest) GetDocumentExternalId() string { + if x != nil { + return x.DocumentExternalId + } + return "" +} + +type ListDocumentAttachmentsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Attachments []*AttachmentResponse `protobuf:"bytes,2,rep,name=attachments,proto3" json:"attachments,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListDocumentAttachmentsResponse) Reset() { + *x = ListDocumentAttachmentsResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[121] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListDocumentAttachmentsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListDocumentAttachmentsResponse) ProtoMessage() {} + +func (x *ListDocumentAttachmentsResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[121] + 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 ListDocumentAttachmentsResponse.ProtoReflect.Descriptor instead. +func (*ListDocumentAttachmentsResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{121} +} + +func (x *ListDocumentAttachmentsResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *ListDocumentAttachmentsResponse) GetAttachments() []*AttachmentResponse { + if x != nil { + return x.Attachments + } + return nil +} + +type DeleteDocumentAttachmentRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + DocumentExternalId string `protobuf:"bytes,1,opt,name=document_external_id,json=documentExternalId,proto3" json:"document_external_id,omitempty"` + AttachmentExternalId string `protobuf:"bytes,2,opt,name=attachment_external_id,json=attachmentExternalId,proto3" json:"attachment_external_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteDocumentAttachmentRequest) Reset() { + *x = DeleteDocumentAttachmentRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[122] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteDocumentAttachmentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteDocumentAttachmentRequest) ProtoMessage() {} + +func (x *DeleteDocumentAttachmentRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[122] + 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 DeleteDocumentAttachmentRequest.ProtoReflect.Descriptor instead. +func (*DeleteDocumentAttachmentRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{122} +} + +func (x *DeleteDocumentAttachmentRequest) GetDocumentExternalId() string { + if x != nil { + return x.DocumentExternalId + } + return "" +} + +func (x *DeleteDocumentAttachmentRequest) GetAttachmentExternalId() string { + if x != nil { + return x.AttachmentExternalId + } + return "" +} + +type DeleteDocumentAttachmentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteDocumentAttachmentResponse) Reset() { + *x = DeleteDocumentAttachmentResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[123] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteDocumentAttachmentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteDocumentAttachmentResponse) ProtoMessage() {} + +func (x *DeleteDocumentAttachmentResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[123] + 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 DeleteDocumentAttachmentResponse.ProtoReflect.Descriptor instead. +func (*DeleteDocumentAttachmentResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{123} +} + +func (x *DeleteDocumentAttachmentResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type DocumentVersionResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` + ChangeSummary string `protobuf:"bytes,4,opt,name=change_summary,json=changeSummary,proto3" json:"change_summary,omitempty"` + CreatedAt string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DocumentVersionResponse) Reset() { + *x = DocumentVersionResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[124] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DocumentVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DocumentVersionResponse) ProtoMessage() {} + +func (x *DocumentVersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[124] + 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 DocumentVersionResponse.ProtoReflect.Descriptor instead. +func (*DocumentVersionResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{124} +} + +func (x *DocumentVersionResponse) GetVersion() int32 { + if x != nil { + return x.Version + } + return 0 +} + +func (x *DocumentVersionResponse) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *DocumentVersionResponse) GetContent() string { + if x != nil { + return x.Content + } + return "" +} + +func (x *DocumentVersionResponse) GetChangeSummary() string { + if x != nil { + return x.ChangeSummary + } + return "" +} + +func (x *DocumentVersionResponse) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +type ListDocumentVersionsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + DocumentExternalId string `protobuf:"bytes,1,opt,name=document_external_id,json=documentExternalId,proto3" json:"document_external_id,omitempty"` + Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListDocumentVersionsRequest) Reset() { + *x = ListDocumentVersionsRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[125] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListDocumentVersionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListDocumentVersionsRequest) ProtoMessage() {} + +func (x *ListDocumentVersionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[125] + 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 ListDocumentVersionsRequest.ProtoReflect.Descriptor instead. +func (*ListDocumentVersionsRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{125} +} + +func (x *ListDocumentVersionsRequest) GetDocumentExternalId() string { + if x != nil { + return x.DocumentExternalId + } + return "" +} + +func (x *ListDocumentVersionsRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListDocumentVersionsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +type ListDocumentVersionsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Versions []*DocumentVersionResponse `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"` + Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListDocumentVersionsResponse) Reset() { + *x = ListDocumentVersionsResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[126] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListDocumentVersionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListDocumentVersionsResponse) ProtoMessage() {} + +func (x *ListDocumentVersionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[126] + 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 ListDocumentVersionsResponse.ProtoReflect.Descriptor instead. +func (*ListDocumentVersionsResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{126} +} + +func (x *ListDocumentVersionsResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *ListDocumentVersionsResponse) GetVersions() []*DocumentVersionResponse { + if x != nil { + return x.Versions + } + return nil +} + +func (x *ListDocumentVersionsResponse) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +type GetDocumentVersionContentRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + DocumentExternalId string `protobuf:"bytes,1,opt,name=document_external_id,json=documentExternalId,proto3" json:"document_external_id,omitempty"` + Version int32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetDocumentVersionContentRequest) Reset() { + *x = GetDocumentVersionContentRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[127] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetDocumentVersionContentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDocumentVersionContentRequest) ProtoMessage() {} + +func (x *GetDocumentVersionContentRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[127] + 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 GetDocumentVersionContentRequest.ProtoReflect.Descriptor instead. +func (*GetDocumentVersionContentRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{127} +} + +func (x *GetDocumentVersionContentRequest) GetDocumentExternalId() string { + if x != nil { + return x.DocumentExternalId + } + return "" +} + +func (x *GetDocumentVersionContentRequest) GetVersion() int32 { + if x != nil { + return x.Version + } + return 0 +} + +type GetDocumentVersionContentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Version *DocumentVersionResponse `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetDocumentVersionContentResponse) Reset() { + *x = GetDocumentVersionContentResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[128] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetDocumentVersionContentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDocumentVersionContentResponse) ProtoMessage() {} + +func (x *GetDocumentVersionContentResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[128] + 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 GetDocumentVersionContentResponse.ProtoReflect.Descriptor instead. +func (*GetDocumentVersionContentResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{128} +} + +func (x *GetDocumentVersionContentResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *GetDocumentVersionContentResponse) GetVersion() *DocumentVersionResponse { + if x != nil { + return x.Version + } + return nil +} + +type GetDocumentYjsSnapshotRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + DocumentExternalId string `protobuf:"bytes,1,opt,name=document_external_id,json=documentExternalId,proto3" json:"document_external_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetDocumentYjsSnapshotRequest) Reset() { + *x = GetDocumentYjsSnapshotRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[129] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetDocumentYjsSnapshotRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDocumentYjsSnapshotRequest) ProtoMessage() {} + +func (x *GetDocumentYjsSnapshotRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[129] + 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 GetDocumentYjsSnapshotRequest.ProtoReflect.Descriptor instead. +func (*GetDocumentYjsSnapshotRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{129} +} + +func (x *GetDocumentYjsSnapshotRequest) GetDocumentExternalId() string { + if x != nil { + return x.DocumentExternalId + } + return "" +} + +type GetDocumentYjsSnapshotResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + State []byte `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetDocumentYjsSnapshotResponse) Reset() { + *x = GetDocumentYjsSnapshotResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[130] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetDocumentYjsSnapshotResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDocumentYjsSnapshotResponse) ProtoMessage() {} + +func (x *GetDocumentYjsSnapshotResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[130] + 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 GetDocumentYjsSnapshotResponse.ProtoReflect.Descriptor instead. +func (*GetDocumentYjsSnapshotResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{130} +} + +func (x *GetDocumentYjsSnapshotResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *GetDocumentYjsSnapshotResponse) GetState() []byte { + if x != nil { + return x.State + } + return nil +} + +type SaveDocumentYjsSnapshotRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + DocumentExternalId string `protobuf:"bytes,1,opt,name=document_external_id,json=documentExternalId,proto3" json:"document_external_id,omitempty"` + State []byte `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SaveDocumentYjsSnapshotRequest) Reset() { + *x = SaveDocumentYjsSnapshotRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[131] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SaveDocumentYjsSnapshotRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SaveDocumentYjsSnapshotRequest) ProtoMessage() {} + +func (x *SaveDocumentYjsSnapshotRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[131] + 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 SaveDocumentYjsSnapshotRequest.ProtoReflect.Descriptor instead. +func (*SaveDocumentYjsSnapshotRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{131} +} + +func (x *SaveDocumentYjsSnapshotRequest) GetDocumentExternalId() string { + if x != nil { + return x.DocumentExternalId + } + return "" +} + +func (x *SaveDocumentYjsSnapshotRequest) GetState() []byte { + if x != nil { + return x.State + } + return nil +} + +type SaveDocumentYjsSnapshotResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SaveDocumentYjsSnapshotResponse) Reset() { + *x = SaveDocumentYjsSnapshotResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[132] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SaveDocumentYjsSnapshotResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SaveDocumentYjsSnapshotResponse) ProtoMessage() {} + +func (x *SaveDocumentYjsSnapshotResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[132] + 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 SaveDocumentYjsSnapshotResponse.ProtoReflect.Descriptor instead. +func (*SaveDocumentYjsSnapshotResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{132} +} + +func (x *SaveDocumentYjsSnapshotResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +// listRecentKnowledgeBasesRequest requests the caller's recent knowledge bases. +// Note: This RPC does not accept any external user identifiers. The backend +// resolves the user from the authenticated context. +type ListRecentKnowledgeBasesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Optional inclusive start time (RFC3339). If omitted, no lower bound. + StartTime *string `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3,oneof" json:"start_time,omitempty"` + // Optional inclusive end time (RFC3339). If omitted, no upper bound. + EndTime *string `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3,oneof" json:"end_time,omitempty"` + // 1-based page index. Defaults to 1 when <= 0. + Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` + // Page size. Defaults to 10 when <= 0, capped by server. + PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRecentKnowledgeBasesRequest) Reset() { + *x = ListRecentKnowledgeBasesRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[133] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRecentKnowledgeBasesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRecentKnowledgeBasesRequest) ProtoMessage() {} + +func (x *ListRecentKnowledgeBasesRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[133] + 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 ListRecentKnowledgeBasesRequest.ProtoReflect.Descriptor instead. +func (*ListRecentKnowledgeBasesRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{133} +} + +func (x *ListRecentKnowledgeBasesRequest) GetStartTime() string { + if x != nil && x.StartTime != nil { + return *x.StartTime + } + return "" +} + +func (x *ListRecentKnowledgeBasesRequest) GetEndTime() string { + if x != nil && x.EndTime != nil { + return *x.EndTime + } + return "" +} + +func (x *ListRecentKnowledgeBasesRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListRecentKnowledgeBasesRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +// listRecentKnowledgeBasesResponse contains the recent knowledge bases. +type ListRecentKnowledgeBasesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + KnowledgeBases []*KnowledgeBaseResponse `protobuf:"bytes,2,rep,name=knowledge_bases,json=knowledgeBases,proto3" json:"knowledge_bases,omitempty"` + Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRecentKnowledgeBasesResponse) Reset() { + *x = ListRecentKnowledgeBasesResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[134] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRecentKnowledgeBasesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRecentKnowledgeBasesResponse) ProtoMessage() {} + +func (x *ListRecentKnowledgeBasesResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[134] + 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 ListRecentKnowledgeBasesResponse.ProtoReflect.Descriptor instead. +func (*ListRecentKnowledgeBasesResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{134} +} + +func (x *ListRecentKnowledgeBasesResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *ListRecentKnowledgeBasesResponse) GetKnowledgeBases() []*KnowledgeBaseResponse { + if x != nil { + return x.KnowledgeBases + } + return nil +} + +func (x *ListRecentKnowledgeBasesResponse) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +type CreateTemplateRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + TargetContainer CreateTemplateContainer `protobuf:"varint,1,opt,name=target_container,json=targetContainer,proto3,enum=yoresee_doc.v1.CreateTemplateContainer" json:"target_container,omitempty"` + KnowledgeBaseId string `protobuf:"bytes,2,opt,name=knowledge_base_id,json=knowledgeBaseId,proto3" json:"knowledge_base_id,omitempty"` + TemplateContent string `protobuf:"bytes,3,opt,name=template_content,json=templateContent,proto3" json:"template_content,omitempty"` + Type DocumentType `protobuf:"varint,4,opt,name=type,proto3,enum=yoresee_doc.v1.DocumentType" json:"type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateTemplateRequest) Reset() { + *x = CreateTemplateRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[135] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateTemplateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateTemplateRequest) ProtoMessage() {} + +func (x *CreateTemplateRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[135] + 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 CreateTemplateRequest.ProtoReflect.Descriptor instead. +func (*CreateTemplateRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{135} +} + +func (x *CreateTemplateRequest) GetTargetContainer() CreateTemplateContainer { + if x != nil { + return x.TargetContainer + } + return CreateTemplateContainer_OWN_TEMPLATE +} + +func (x *CreateTemplateRequest) GetKnowledgeBaseId() string { + if x != nil { + return x.KnowledgeBaseId + } + return "" +} + +func (x *CreateTemplateRequest) GetTemplateContent() string { + if x != nil { + return x.TemplateContent + } + return "" +} + +func (x *CreateTemplateRequest) GetType() DocumentType { + if x != nil { + return x.Type + } + return DocumentType_DOCUMENT_TYPE_UNSPECIFIED +} + +type CreateTemplateResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateTemplateResponse) Reset() { + *x = CreateTemplateResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[136] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateTemplateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateTemplateResponse) ProtoMessage() {} + +func (x *CreateTemplateResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[136] + 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 CreateTemplateResponse.ProtoReflect.Descriptor instead. +func (*CreateTemplateResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{136} +} + +func (x *CreateTemplateResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type TemplateResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` + Scope string `protobuf:"bytes,5,opt,name=scope,proto3" json:"scope,omitempty"` + KnowledgeBaseExternalId string `protobuf:"bytes,6,opt,name=knowledge_base_external_id,json=knowledgeBaseExternalId,proto3" json:"knowledge_base_external_id,omitempty"` + Tags []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"` + CreatedAt string `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt string `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + Type DocumentType `protobuf:"varint,10,opt,name=type,proto3,enum=yoresee_doc.v1.DocumentType" json:"type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TemplateResponse) Reset() { + *x = TemplateResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[137] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TemplateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TemplateResponse) ProtoMessage() {} + +func (x *TemplateResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[137] + 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 TemplateResponse.ProtoReflect.Descriptor instead. +func (*TemplateResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{137} +} + +func (x *TemplateResponse) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *TemplateResponse) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *TemplateResponse) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *TemplateResponse) GetContent() string { + if x != nil { + return x.Content + } + return "" +} + +func (x *TemplateResponse) GetScope() string { + if x != nil { + return x.Scope + } + return "" +} + +func (x *TemplateResponse) GetKnowledgeBaseExternalId() string { + if x != nil { + return x.KnowledgeBaseExternalId + } + return "" +} + +func (x *TemplateResponse) GetTags() []string { + if x != nil { + return x.Tags + } + return nil +} + +func (x *TemplateResponse) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *TemplateResponse) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt + } + return "" +} + +func (x *TemplateResponse) GetType() DocumentType { + if x != nil { + return x.Type + } + return DocumentType_DOCUMENT_TYPE_UNSPECIFIED +} + +type ListTemplatesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + OnlyMine bool `protobuf:"varint,1,opt,name=only_mine,json=onlyMine,proto3" json:"only_mine,omitempty"` + TargetContainer *CreateTemplateContainer `protobuf:"varint,2,opt,name=target_container,json=targetContainer,proto3,enum=yoresee_doc.v1.CreateTemplateContainer,oneof" json:"target_container,omitempty"` + KnowledgeBaseId *string `protobuf:"bytes,3,opt,name=knowledge_base_id,json=knowledgeBaseId,proto3,oneof" json:"knowledge_base_id,omitempty"` + NameKeyword *string `protobuf:"bytes,4,opt,name=name_keyword,json=nameKeyword,proto3,oneof" json:"name_keyword,omitempty"` + OrderBy *string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3,oneof" json:"order_by,omitempty"` + OrderDesc *bool `protobuf:"varint,6,opt,name=order_desc,json=orderDesc,proto3,oneof" json:"order_desc,omitempty"` + Page int32 `protobuf:"varint,7,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,8,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + Type *DocumentType `protobuf:"varint,9,opt,name=type,proto3,enum=yoresee_doc.v1.DocumentType,oneof" json:"type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListTemplatesRequest) Reset() { + *x = ListTemplatesRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[138] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListTemplatesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListTemplatesRequest) ProtoMessage() {} + +func (x *ListTemplatesRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[138] + 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 ListTemplatesRequest.ProtoReflect.Descriptor instead. +func (*ListTemplatesRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{138} +} + +func (x *ListTemplatesRequest) GetOnlyMine() bool { + if x != nil { + return x.OnlyMine + } + return false +} + +func (x *ListTemplatesRequest) GetTargetContainer() CreateTemplateContainer { + if x != nil && x.TargetContainer != nil { + return *x.TargetContainer + } + return CreateTemplateContainer_OWN_TEMPLATE +} + +func (x *ListTemplatesRequest) GetKnowledgeBaseId() string { + if x != nil && x.KnowledgeBaseId != nil { + return *x.KnowledgeBaseId + } + return "" +} + +func (x *ListTemplatesRequest) GetNameKeyword() string { + if x != nil && x.NameKeyword != nil { + return *x.NameKeyword + } + return "" +} + +func (x *ListTemplatesRequest) GetOrderBy() string { + if x != nil && x.OrderBy != nil { + return *x.OrderBy + } + return "" +} + +func (x *ListTemplatesRequest) GetOrderDesc() bool { + if x != nil && x.OrderDesc != nil { + return *x.OrderDesc + } + return false +} + +func (x *ListTemplatesRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListTemplatesRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListTemplatesRequest) GetType() DocumentType { + if x != nil && x.Type != nil { + return *x.Type + } + return DocumentType_DOCUMENT_TYPE_UNSPECIFIED +} + +type ListTemplatesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Templates []*TemplateResponse `protobuf:"bytes,2,rep,name=templates,proto3" json:"templates,omitempty"` + Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListTemplatesResponse) Reset() { + *x = ListTemplatesResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[139] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListTemplatesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListTemplatesResponse) ProtoMessage() {} + +func (x *ListTemplatesResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[139] + 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 ListTemplatesResponse.ProtoReflect.Descriptor instead. +func (*ListTemplatesResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{139} +} + +func (x *ListTemplatesResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *ListTemplatesResponse) GetTemplates() []*TemplateResponse { + if x != nil { + return x.Templates + } + return nil +} + +func (x *ListTemplatesResponse) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +type GetTemplateRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + TemplateId int64 `protobuf:"varint,1,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` + RecordRecentLog bool `protobuf:"varint,2,opt,name=record_recent_log,json=recordRecentLog,proto3" json:"record_recent_log,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetTemplateRequest) Reset() { + *x = GetTemplateRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[140] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetTemplateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTemplateRequest) ProtoMessage() {} + +func (x *GetTemplateRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[140] + 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 GetTemplateRequest.ProtoReflect.Descriptor instead. +func (*GetTemplateRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{140} +} + +func (x *GetTemplateRequest) GetTemplateId() int64 { + if x != nil { + return x.TemplateId + } + return 0 +} + +func (x *GetTemplateRequest) GetRecordRecentLog() bool { + if x != nil { + return x.RecordRecentLog + } + return false +} + +type GetTemplateResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Template *TemplateResponse `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetTemplateResponse) Reset() { + *x = GetTemplateResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[141] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetTemplateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTemplateResponse) ProtoMessage() {} + +func (x *GetTemplateResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[141] + 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 GetTemplateResponse.ProtoReflect.Descriptor instead. +func (*GetTemplateResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{141} +} + +func (x *GetTemplateResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *GetTemplateResponse) GetTemplate() *TemplateResponse { + if x != nil { + return x.Template + } + return nil +} + +type UpdateTemplateSettingsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + TemplateId int64 `protobuf:"varint,1,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` + Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` + Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"` + IsPublic *bool `protobuf:"varint,4,opt,name=is_public,json=isPublic,proto3,oneof" json:"is_public,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateTemplateSettingsRequest) Reset() { + *x = UpdateTemplateSettingsRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[142] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateTemplateSettingsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateTemplateSettingsRequest) ProtoMessage() {} + +func (x *UpdateTemplateSettingsRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[142] + 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 UpdateTemplateSettingsRequest.ProtoReflect.Descriptor instead. +func (*UpdateTemplateSettingsRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{142} +} + +func (x *UpdateTemplateSettingsRequest) GetTemplateId() int64 { + if x != nil { + return x.TemplateId + } + return 0 +} + +func (x *UpdateTemplateSettingsRequest) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *UpdateTemplateSettingsRequest) GetDescription() string { + if x != nil && x.Description != nil { + return *x.Description + } + return "" +} + +func (x *UpdateTemplateSettingsRequest) GetIsPublic() bool { + if x != nil && x.IsPublic != nil { + return *x.IsPublic + } + return false +} + +type UpdateTemplateSettingsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateTemplateSettingsResponse) Reset() { + *x = UpdateTemplateSettingsResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[143] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateTemplateSettingsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateTemplateSettingsResponse) ProtoMessage() {} + +func (x *UpdateTemplateSettingsResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[143] + 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 UpdateTemplateSettingsResponse.ProtoReflect.Descriptor instead. +func (*UpdateTemplateSettingsResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{143} +} + +func (x *UpdateTemplateSettingsResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type DeleteDocumentRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + DocumentExternalId string `protobuf:"bytes,1,opt,name=document_external_id,json=documentExternalId,proto3" json:"document_external_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteDocumentRequest) Reset() { + *x = DeleteDocumentRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[144] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteDocumentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteDocumentRequest) ProtoMessage() {} + +func (x *DeleteDocumentRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[144] + 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 DeleteDocumentRequest.ProtoReflect.Descriptor instead. +func (*DeleteDocumentRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{144} +} + +func (x *DeleteDocumentRequest) GetDocumentExternalId() string { + if x != nil { + return x.DocumentExternalId + } + return "" +} + +type DeleteDocumentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteDocumentResponse) Reset() { + *x = DeleteDocumentResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[145] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteDocumentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteDocumentResponse) ProtoMessage() {} + +func (x *DeleteDocumentResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[145] + 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 DeleteDocumentResponse.ProtoReflect.Descriptor instead. +func (*DeleteDocumentResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{145} +} + +func (x *DeleteDocumentResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +type ListRecentTemplatesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + StartTime *string `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3,oneof" json:"start_time,omitempty"` + EndTime *string `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3,oneof" json:"end_time,omitempty"` + Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRecentTemplatesRequest) Reset() { + *x = ListRecentTemplatesRequest{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[146] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRecentTemplatesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRecentTemplatesRequest) ProtoMessage() {} + +func (x *ListRecentTemplatesRequest) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[146] + 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 ListRecentTemplatesRequest.ProtoReflect.Descriptor instead. +func (*ListRecentTemplatesRequest) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{146} +} + +func (x *ListRecentTemplatesRequest) GetStartTime() string { + if x != nil && x.StartTime != nil { + return *x.StartTime + } + return "" +} + +func (x *ListRecentTemplatesRequest) GetEndTime() string { + if x != nil && x.EndTime != nil { + return *x.EndTime + } + return "" +} + +func (x *ListRecentTemplatesRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListRecentTemplatesRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +type ListRecentTemplatesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Base *BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Templates []*TemplateResponse `protobuf:"bytes,2,rep,name=templates,proto3" json:"templates,omitempty"` + Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRecentTemplatesResponse) Reset() { + *x = ListRecentTemplatesResponse{} + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[147] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRecentTemplatesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRecentTemplatesResponse) ProtoMessage() {} + +func (x *ListRecentTemplatesResponse) ProtoReflect() protoreflect.Message { + mi := &file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[147] + 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 ListRecentTemplatesResponse.ProtoReflect.Descriptor instead. +func (*ListRecentTemplatesResponse) Descriptor() ([]byte, []int) { + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP(), []int{147} +} + +func (x *ListRecentTemplatesResponse) GetBase() *BaseResponse { + if x != nil { + return x.Base + } + return nil +} + +func (x *ListRecentTemplatesResponse) GetTemplates() []*TemplateResponse { + if x != nil { + return x.Templates + } + return nil +} + +func (x *ListRecentTemplatesResponse) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +var File_yoresee_doc_v1_yoresee_doc_proto protoreflect.FileDescriptor + +const file_yoresee_doc_v1_yoresee_doc_proto_rawDesc = "" + + "\n" + + " yoresee_doc/v1/yoresee_doc.proto\x12\x0eyoresee_doc.v1\"<\n" + + "\fBaseResponse\x12\x12\n" + + "\x04code\x18\x01 \x01(\x05R\x04code\x12\x18\n" + + "\amessage\x18\x02 \x01(\tR\amessage\"\x0f\n" + + "\rHealthRequest\"\x92\x01\n" + + "\x0eHealthResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12\x1c\n" + + "\ttimestamp\x18\x02 \x01(\tR\ttimestamp\x12\x16\n" + + "\x06status\x18\x03 \x01(\tR\x06status\x12\x18\n" + + "\aversion\x18\x04 \x01(\tR\aversion\"\x13\n" + + "\x11SystemInfoRequest\"\x99\x01\n" + + "\x12SystemInfoResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12\x1f\n" + + "\vsystem_name\x18\x02 \x01(\tR\n" + + "systemName\x120\n" + + "\x14system_register_mode\x18\x03 \x01(\tR\x12systemRegisterMode\"\xc6\x01\n" + + "\x11UserGroupResponse\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\x127\n" + + "\x18creator_user_external_id\x18\x04 \x01(\tR\x15creatorUserExternalId\x12!\n" + + "\fmember_count\x18\x05 \x01(\x05R\vmemberCount\"\xc3\x02\n" + + "\x0fOrgNodeResponse\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x12,\n" + + "\x12parent_external_id\x18\x02 \x01(\tR\x10parentExternalId\x12\x12\n" + + "\x04name\x18\x03 \x01(\tR\x04name\x12\x12\n" + + "\x04path\x18\x04 \x01(\tR\x04path\x12 \n" + + "\vdescription\x18\x05 \x01(\tR\vdescription\x127\n" + + "\x18creator_user_external_id\x18\x06 \x01(\tR\x15creatorUserExternalId\x12!\n" + + "\fmember_count\x18\a \x01(\x05R\vmemberCount\x12;\n" + + "\bchildren\x18\b \x03(\v2\x1f.yoresee_doc.v1.OrgNodeResponseR\bchildren\"s\n" + + "\x15ListUserGroupsRequest\x12\x1d\n" + + "\akeyword\x18\x01 \x01(\tH\x00R\akeyword\x88\x01\x01\x12\x12\n" + + "\x04page\x18\x02 \x01(\x05R\x04page\x12\x1b\n" + + "\tpage_size\x18\x03 \x01(\x05R\bpageSizeB\n" + + "\n" + + "\b_keyword\"\xa4\x01\n" + + "\x16ListUserGroupsResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12B\n" + + "\vuser_groups\x18\x02 \x03(\v2!.yoresee_doc.v1.UserGroupResponseR\n" + + "userGroups\x12\x14\n" + + "\x05total\x18\x03 \x01(\x03R\x05total\"6\n" + + "\x13GetUserGroupRequest\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\"\x8a\x01\n" + + "\x14GetUserGroupResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12@\n" + + "\n" + + "user_group\x18\x02 \x01(\v2!.yoresee_doc.v1.UserGroupResponseR\tuserGroup\"\x87\x01\n" + + "\x16CreateUserGroupRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x02 \x01(\tR\vdescription\x127\n" + + "\x18member_user_external_ids\x18\x03 \x03(\tR\x15memberUserExternalIds\"l\n" + + "\x17CreateUserGroupResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12\x1f\n" + + "\vexternal_id\x18\x02 \x01(\tR\n" + + "externalId\"\xee\x01\n" + + "\x16UpdateUserGroupRequest\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x12\x17\n" + + "\x04name\x18\x02 \x01(\tH\x00R\x04name\x88\x01\x01\x12%\n" + + "\vdescription\x18\x03 \x01(\tH\x01R\vdescription\x88\x01\x01\x12!\n" + + "\fsync_members\x18\x04 \x01(\bR\vsyncMembers\x127\n" + + "\x18member_user_external_ids\x18\x05 \x03(\tR\x15memberUserExternalIdsB\a\n" + + "\x05_nameB\x0e\n" + + "\f_description\"K\n" + + "\x17UpdateUserGroupResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"9\n" + + "\x16DeleteUserGroupRequest\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\"K\n" + + "\x17DeleteUserGroupResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"n\n" + + "\x10ListUsersRequest\x12\x1d\n" + + "\akeyword\x18\x01 \x01(\tH\x00R\akeyword\x88\x01\x01\x12\x12\n" + + "\x04page\x18\x02 \x01(\x05R\x04page\x12\x1b\n" + + "\tpage_size\x18\x03 \x01(\x05R\bpageSizeB\n" + + "\n" + + "\b_keyword\"\x8f\x01\n" + + "\x11ListUsersResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x122\n" + + "\x05users\x18\x02 \x03(\v2\x1c.yoresee_doc.v1.UserResponseR\x05users\x12\x14\n" + + "\x05total\x18\x03 \x01(\x03R\x05total\"\x9a\x01\n" + + "\x1bListUserGroupMembersRequest\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x12\x1d\n" + + "\akeyword\x18\x02 \x01(\tH\x00R\akeyword\x88\x01\x01\x12\x12\n" + + "\x04page\x18\x03 \x01(\x05R\x04page\x12\x1b\n" + + "\tpage_size\x18\x04 \x01(\x05R\bpageSizeB\n" + + "\n" + + "\b_keyword\"\x9a\x01\n" + + "\x1cListUserGroupMembersResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x122\n" + + "\x05users\x18\x02 \x03(\v2\x1c.yoresee_doc.v1.UserResponseR\x05users\x12\x14\n" + + "\x05total\x18\x03 \x01(\x03R\x05total\"\xca\x01\n" + + "\x13ListOrgNodesRequest\x12,\n" + + "\x12parent_external_id\x18\x01 \x01(\tR\x10parentExternalId\x12\x1d\n" + + "\akeyword\x18\x02 \x01(\tH\x00R\akeyword\x88\x01\x01\x12\x12\n" + + "\x04page\x18\x03 \x01(\x05R\x04page\x12\x1b\n" + + "\tpage_size\x18\x04 \x01(\x05R\bpageSize\x12)\n" + + "\x10include_children\x18\x05 \x01(\bR\x0fincludeChildrenB\n" + + "\n" + + "\b_keyword\"\x9c\x01\n" + + "\x14ListOrgNodesResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12<\n" + + "\torg_nodes\x18\x02 \x03(\v2\x1f.yoresee_doc.v1.OrgNodeResponseR\borgNodes\x12\x14\n" + + "\x05total\x18\x03 \x01(\x03R\x05total\"_\n" + + "\x11GetOrgNodeRequest\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x12)\n" + + "\x10include_children\x18\x02 \x01(\bR\x0fincludeChildren\"\x82\x01\n" + + "\x12GetOrgNodeResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12:\n" + + "\borg_node\x18\x02 \x01(\v2\x1f.yoresee_doc.v1.OrgNodeResponseR\aorgNode\"\xb3\x01\n" + + "\x14CreateOrgNodeRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x02 \x01(\tR\vdescription\x12,\n" + + "\x12parent_external_id\x18\x03 \x01(\tR\x10parentExternalId\x127\n" + + "\x18member_user_external_ids\x18\x04 \x03(\tR\x15memberUserExternalIds\"j\n" + + "\x15CreateOrgNodeResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12\x1f\n" + + "\vexternal_id\x18\x02 \x01(\tR\n" + + "externalId\"\xec\x01\n" + + "\x14UpdateOrgNodeRequest\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x12\x17\n" + + "\x04name\x18\x02 \x01(\tH\x00R\x04name\x88\x01\x01\x12%\n" + + "\vdescription\x18\x03 \x01(\tH\x01R\vdescription\x88\x01\x01\x12!\n" + + "\fsync_members\x18\x04 \x01(\bR\vsyncMembers\x127\n" + + "\x18member_user_external_ids\x18\x05 \x03(\tR\x15memberUserExternalIdsB\a\n" + + "\x05_nameB\x0e\n" + + "\f_description\"I\n" + + "\x15UpdateOrgNodeResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"7\n" + + "\x14DeleteOrgNodeRequest\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\"I\n" + + "\x15DeleteOrgNodeResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"j\n" + + "\x12MoveOrgNodeRequest\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x123\n" + + "\x16new_parent_external_id\x18\x02 \x01(\tR\x13newParentExternalId\"G\n" + + "\x13MoveOrgNodeResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"\x98\x01\n" + + "\x19ListOrgNodeMembersRequest\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x12\x1d\n" + + "\akeyword\x18\x02 \x01(\tH\x00R\akeyword\x88\x01\x01\x12\x12\n" + + "\x04page\x18\x03 \x01(\x05R\x04page\x12\x1b\n" + + "\tpage_size\x18\x04 \x01(\x05R\bpageSizeB\n" + + "\n" + + "\b_keyword\"\x98\x01\n" + + "\x1aListOrgNodeMembersResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x122\n" + + "\x05users\x18\x02 \x03(\v2\x1c.yoresee_doc.v1.UserResponseR\x05users\x12\x14\n" + + "\x05total\x18\x03 \x01(\x03R\x05total\"X\n" + + "\rSettingOption\x12\x14\n" + + "\x05label\x18\x01 \x01(\tR\x05label\x12\x1b\n" + + "\tlabel_key\x18\x02 \x01(\tR\blabelKey\x12\x14\n" + + "\x05value\x18\x03 \x01(\tR\x05value\"\xad\x01\n" + + "\tSettingUI\x12\x1c\n" + + "\tcomponent\x18\x01 \x01(\tR\tcomponent\x127\n" + + "\aoptions\x18\x02 \x03(\v2\x1d.yoresee_doc.v1.SettingOptionR\aoptions\x12 \n" + + "\vplaceholder\x18\x03 \x01(\tR\vplaceholder\x12'\n" + + "\x0fplaceholder_key\x18\x04 \x01(\tR\x0eplaceholderKey\"\xcf\x02\n" + + "\vSettingItem\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05label\x18\x02 \x01(\tR\x05label\x12\x1b\n" + + "\tlabel_key\x18\x03 \x01(\tR\blabelKey\x12 \n" + + "\vdescription\x18\x04 \x01(\tR\vdescription\x12'\n" + + "\x0fdescription_key\x18\x05 \x01(\tR\x0edescriptionKey\x12\x12\n" + + "\x04type\x18\x06 \x01(\tR\x04type\x12)\n" + + "\x02ui\x18\a \x01(\v2\x19.yoresee_doc.v1.SettingUIR\x02ui\x12\x14\n" + + "\x05value\x18\b \x01(\tR\x05value\x12#\n" + + "\rdefault_value\x18\t \x01(\tR\fdefaultValue\x12\x1a\n" + + "\brequired\x18\n" + + " \x01(\bR\brequired\x12\x1a\n" + + "\breadonly\x18\v \x01(\bR\breadonly\"\x86\x01\n" + + "\fSettingGroup\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05title\x18\x02 \x01(\tR\x05title\x12\x1b\n" + + "\ttitle_key\x18\x03 \x01(\tR\btitleKey\x121\n" + + "\x05items\x18\x04 \x03(\v2\x1b.yoresee_doc.v1.SettingItemR\x05items\"*\n" + + "\x12GetSettingsRequest\x12\x14\n" + + "\x05scene\x18\x01 \x01(\tR\x05scene\"}\n" + + "\x13GetSettingsResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x124\n" + + "\x06groups\x18\x02 \x03(\v2\x1c.yoresee_doc.v1.SettingGroupR\x06groups\"7\n" + + "\rSettingUpdate\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value\"P\n" + + "\x15UpdateSettingsRequest\x127\n" + + "\aupdates\x18\x01 \x03(\v2\x1d.yoresee_doc.v1.SettingUpdateR\aupdates\"J\n" + + "\x16UpdateSettingsResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"\xdd\x01\n" + + "\x11UpdateUserRequest\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x12\x1f\n" + + "\busername\x18\x02 \x01(\tH\x00R\busername\x88\x01\x01\x12\x19\n" + + "\x05email\x18\x03 \x01(\tH\x01R\x05email\x88\x01\x01\x12\x1f\n" + + "\bnickname\x18\x04 \x01(\tH\x02R\bnickname\x88\x01\x01\x12\x1b\n" + + "\x06status\x18\x05 \x01(\x05H\x03R\x06status\x88\x01\x01B\v\n" + + "\t_usernameB\b\n" + + "\x06_emailB\v\n" + + "\t_nicknameB\t\n" + + "\a_status\"F\n" + + "\x12UpdateUserResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"D\n" + + "\x10AuthLoginRequest\x12\x14\n" + + "\x05email\x18\x01 \x01(\tR\x05email\x12\x1a\n" + + "\bpassword\x18\x02 \x01(\tR\bpassword\"\x8d\x01\n" + + "\x11AuthLoginResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12\x14\n" + + "\x05token\x18\x02 \x01(\tR\x05token\x120\n" + + "\x04user\x18\x03 \x01(\v2\x1c.yoresee_doc.v1.UserResponseR\x04user\"\xa5\x01\n" + + "\x13AuthRegisterRequest\x12\x1a\n" + + "\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" + + "\bpassword\x18\x02 \x01(\tR\bpassword\x12\x14\n" + + "\x05email\x18\x03 \x01(\tR\x05email\x12,\n" + + "\x0finvitation_code\x18\x04 \x01(\tH\x00R\x0einvitationCode\x88\x01\x01B\x12\n" + + "\x10_invitation_code\"H\n" + + "\x14AuthRegisterResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"\xb2\x03\n" + + "\x14UpdateProfileRequest\x12\x1f\n" + + "\busername\x18\x01 \x01(\tH\x00R\busername\x88\x01\x01\x12\x19\n" + + "\x05email\x18\x02 \x01(\tH\x01R\x05email\x88\x01\x01\x12\x1f\n" + + "\bnickname\x18\x03 \x01(\tH\x02R\bnickname\x88\x01\x01\x12\x1f\n" + + "\bpassword\x18\x04 \x01(\tH\x03R\bpassword\x88\x01\x01\x12\x1b\n" + + "\x06avatar\x18\x05 \x01(\tH\x04R\x06avatar\x88\x01\x01\x12$\n" + + "\vavatar_file\x18\x06 \x01(\fH\x05R\n" + + "avatarFile\x88\x01\x01\x12,\n" + + "\x0favatar_filename\x18\a \x01(\tH\x06R\x0eavatarFilename\x88\x01\x01\x123\n" + + "\x13avatar_content_type\x18\b \x01(\tH\aR\x11avatarContentType\x88\x01\x01B\v\n" + + "\t_usernameB\b\n" + + "\x06_emailB\v\n" + + "\t_nicknameB\v\n" + + "\t_passwordB\t\n" + + "\a_avatarB\x0e\n" + + "\f_avatar_fileB\x12\n" + + "\x10_avatar_filenameB\x16\n" + + "\x14_avatar_content_type\"{\n" + + "\x15UpdateProfileResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x120\n" + + "\x04user\x18\x02 \x01(\v2\x1c.yoresee_doc.v1.UserResponseR\x04user\"2\n" + + "\x1aQuerySideBarDisplayRequest\x12\x14\n" + + "\x05scene\x18\x01 \x01(\tR\x05scene\"r\n" + + "\x1bQuerySideBarDisplayResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12!\n" + + "\fdisplay_tabs\x18\x02 \x03(\tR\vdisplayTabs\"\x1b\n" + + "\x19QueryTopNavDisplayRequest\"s\n" + + "\x1aQueryTopNavDisplayResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12#\n" + + "\rdisplay_menus\x18\x02 \x03(\tR\fdisplayMenus\"\xa9\x03\n" + + "\x10DocumentResponse\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x12\x14\n" + + "\x05title\x18\x02 \x01(\tR\x05title\x120\n" + + "\x04type\x18\x03 \x01(\x0e2\x1c.yoresee_doc.v1.DocumentTypeR\x04type\x12\x18\n" + + "\asummary\x18\x04 \x01(\tR\asummary\x12\x12\n" + + "\x04tags\x18\x06 \x03(\tR\x04tags\x12\x1d\n" + + "\n" + + "view_count\x18\a \x01(\x05R\tviewCount\x12\x1d\n" + + "\n" + + "edit_count\x18\b \x01(\x05R\teditCount\x12\x1d\n" + + "\n" + + "created_at\x18\t \x01(\tR\tcreatedAt\x12\x1d\n" + + "\n" + + "updated_at\x18\n" + + " \x01(\tR\tupdatedAt\x12<\n" + + "\bchildren\x18\v \x03(\v2 .yoresee_doc.v1.DocumentResponseR\bchildren\x12!\n" + + "\fhas_children\x18\f \x01(\bR\vhasChildren\x12\x1b\n" + + "\tis_public\x18\r \x01(\bR\bisPublicJ\x04\b\x05\x10\x06\"M\n" + + "\x19GetDocumentContentRequest\x120\n" + + "\x14document_external_id\x18\x01 \x01(\tR\x12documentExternalId\"\xa6\x01\n" + + "\x1aGetDocumentContentResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12<\n" + + "\bdocument\x18\x02 \x01(\v2 .yoresee_doc.v1.DocumentResponseR\bdocument\x12\x18\n" + + "\acontent\x18\x03 \x01(\tR\acontent\"N\n" + + "\x1aGetDocumentSettingsRequest\x120\n" + + "\x14document_external_id\x18\x01 \x01(\tR\x12documentExternalId\"\x7f\n" + + "\x1bGetDocumentSettingsResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12 \n" + + "\tis_public\x18\x02 \x01(\bH\x00R\bisPublic\x88\x01\x01B\f\n" + + "\n" + + "_is_public\"\xad\x01\n" + + "\x1aListRecentDocumentsRequest\x12\"\n" + + "\n" + + "start_time\x18\x01 \x01(\tH\x00R\tstartTime\x88\x01\x01\x12\x1e\n" + + "\bend_time\x18\x02 \x01(\tH\x01R\aendTime\x88\x01\x01\x12\x12\n" + + "\x04page\x18\x03 \x01(\x05R\x04page\x12\x1b\n" + + "\tpage_size\x18\x04 \x01(\x05R\bpageSizeB\r\n" + + "\v_start_timeB\v\n" + + "\t_end_time\"\xa5\x01\n" + + "\x1bListRecentDocumentsResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12>\n" + + "\tdocuments\x18\x02 \x03(\v2 .yoresee_doc.v1.DocumentResponseR\tdocuments\x12\x14\n" + + "\x05total\x18\x03 \x01(\x03R\x05total\"O\n" + + "\x1bRecordRecentDocumentRequest\x120\n" + + "\x14document_external_id\x18\x01 \x01(\tR\x12documentExternalId\"P\n" + + "\x1cRecordRecentDocumentResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"q\n" + + "\x10RecursiveOptions\x12)\n" + + "\x10include_children\x18\x01 \x01(\bR\x0fincludeChildren\x12\x1c\n" + + "\trecursive\x18\x02 \x01(\bR\trecursive\x12\x14\n" + + "\x05depth\x18\x03 \x01(\x05R\x05depth\"O\n" + + "\tTimeRange\x12\x19\n" + + "\x05start\x18\x01 \x01(\tH\x00R\x05start\x88\x01\x01\x12\x15\n" + + "\x03end\x18\x02 \x01(\tH\x01R\x03end\x88\x01\x01B\b\n" + + "\x06_startB\x06\n" + + "\x04_end\"\xb3\x06\n" + + "\x14ListDocumentsRequest\x12-\n" + + "\x10user_external_id\x18\x01 \x01(\tH\x00R\x0euserExternalId\x88\x01\x01\x12>\n" + + "\x19root_document_external_id\x18\x02 \x01(\tH\x01R\x16rootDocumentExternalId\x88\x01\x01\x12(\n" + + "\rtitle_keyword\x18\x03 \x01(\tH\x02R\ftitleKeyword\x88\x01\x01\x12\x17\n" + + "\x04type\x18\x04 \x01(\tH\x03R\x04type\x88\x01\x01\x12\x12\n" + + "\x04tags\x18\x06 \x03(\tR\x04tags\x12J\n" + + "\x11create_time_range\x18\a \x01(\v2\x19.yoresee_doc.v1.TimeRangeH\x04R\x0fcreateTimeRange\x88\x01\x01\x12J\n" + + "\x11update_time_range\x18\b \x01(\v2\x19.yoresee_doc.v1.TimeRangeH\x05R\x0fupdateTimeRange\x88\x01\x01\x12\x1e\n" + + "\border_by\x18\t \x01(\tH\x06R\aorderBy\x88\x01\x01\x12\"\n" + + "\n" + + "order_desc\x18\n" + + " \x01(\bH\aR\torderDesc\x88\x01\x01\x12\x12\n" + + "\x04page\x18\v \x01(\x05R\x04page\x12\x1b\n" + + "\tpage_size\x18\f \x01(\x05R\bpageSize\x12?\n" + + "\aoptions\x18\r \x01(\v2 .yoresee_doc.v1.RecursiveOptionsH\bR\aoptions\x88\x01\x01\x12@\n" + + "\x1aknowledge_base_external_id\x18\x0e \x01(\tH\tR\x17knowledgeBaseExternalId\x88\x01\x01B\x13\n" + + "\x11_user_external_idB\x1c\n" + + "\x1a_root_document_external_idB\x10\n" + + "\x0e_title_keywordB\a\n" + + "\x05_typeB\x14\n" + + "\x12_create_time_rangeB\x14\n" + + "\x12_update_time_rangeB\v\n" + + "\t_order_byB\r\n" + + "\v_order_descB\n" + + "\n" + + "\b_optionsB\x1d\n" + + "\x1b_knowledge_base_external_idJ\x04\b\x05\x10\x06\"\xaa\x01\n" + + "\x15ListDocumentsResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12>\n" + + "\tdocuments\x18\x02 \x03(\v2 .yoresee_doc.v1.DocumentResponseR\tdocuments\x12\x1f\n" + + "\vtotal_count\x18\x03 \x01(\x03R\n" + + "totalCount\"p\n" + + "\x16GetOwnDocumentsRequest\x12\x12\n" + + "\x04page\x18\x01 \x01(\x05R\x04page\x12\x1b\n" + + "\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12%\n" + + "\x0edirectory_only\x18\x03 \x01(\bR\rdirectoryOnly\"\xac\x01\n" + + "\x17GetOwnDocumentsResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12>\n" + + "\tdocuments\x18\x02 \x03(\v2 .yoresee_doc.v1.DocumentResponseR\tdocuments\x12\x1f\n" + + "\vtotal_count\x18\x03 \x01(\x03R\n" + + "totalCount\"\xc4\x03\n" + + "\x15CreateDocumentRequest\x12\x14\n" + + "\x05title\x18\x01 \x01(\tR\x05title\x120\n" + + "\x04type\x18\x02 \x01(\x0e2\x1c.yoresee_doc.v1.DocumentTypeR\x04type\x12R\n" + + "\x0econtainer_type\x18\x03 \x01(\x0e2+.yoresee_doc.v1.CreateDocumentContainerTypeR\rcontainerType\x12@\n" + + "\x1aknowledge_base_external_id\x18\x04 \x01(\tH\x00R\x17knowledgeBaseExternalId\x88\x01\x01\x121\n" + + "\x12parent_external_id\x18\x05 \x01(\tH\x01R\x10parentExternalId\x88\x01\x01\x12$\n" + + "\vtemplate_id\x18\x06 \x01(\x03H\x02R\n" + + "templateId\x88\x01\x01\x12 \n" + + "\tis_public\x18\a \x01(\bH\x03R\bisPublic\x88\x01\x01B\x1d\n" + + "\x1b_knowledge_base_external_idB\x15\n" + + "\x13_parent_external_idB\x0e\n" + + "\f_template_idB\f\n" + + "\n" + + "_is_public\"k\n" + + "\x16CreateDocumentResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12\x1f\n" + + "\vexternal_id\x18\x02 \x01(\tR\n" + + "externalId\"\x83\x03\n" + + "\x15KnowledgeBaseResponse\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\x12\x14\n" + + "\x05cover\x18\x04 \x01(\tR\x05cover\x12\x1b\n" + + "\tis_public\x18\x05 \x01(\bR\bisPublic\x12\x1d\n" + + "\n" + + "created_at\x18\x06 \x01(\tR\tcreatedAt\x12\x1d\n" + + "\n" + + "updated_at\x18\a \x01(\tR\tupdatedAt\x12\x1d\n" + + "\n" + + "deleted_at\x18\b \x01(\tR\tdeletedAt\x127\n" + + "\x18creator_user_external_id\x18\t \x01(\tR\x15creatorUserExternalId\x12!\n" + + "\fcreator_name\x18\n" + + " \x01(\tR\vcreatorName\x12'\n" + + "\x0fdocuments_count\x18\v \x01(\x03R\x0edocumentsCount\"\xf6\x03\n" + + "\x19ListKnowledgeBasesRequest\x12\x1b\n" + + "\tonly_mine\x18\x01 \x01(\bR\bonlyMine\x12&\n" + + "\fname_keyword\x18\x02 \x01(\tH\x00R\vnameKeyword\x88\x01\x01\x12 \n" + + "\tis_public\x18\x03 \x01(\bH\x01R\bisPublic\x88\x01\x01\x12J\n" + + "\x11create_time_range\x18\x04 \x01(\v2\x19.yoresee_doc.v1.TimeRangeH\x02R\x0fcreateTimeRange\x88\x01\x01\x12J\n" + + "\x11update_time_range\x18\x05 \x01(\v2\x19.yoresee_doc.v1.TimeRangeH\x03R\x0fupdateTimeRange\x88\x01\x01\x12\x1e\n" + + "\border_by\x18\x06 \x01(\tH\x04R\aorderBy\x88\x01\x01\x12\"\n" + + "\n" + + "order_desc\x18\a \x01(\bH\x05R\torderDesc\x88\x01\x01\x12\x12\n" + + "\x04page\x18\b \x01(\x05R\x04page\x12\x1b\n" + + "\tpage_size\x18\t \x01(\x05R\bpageSizeB\x0f\n" + + "\r_name_keywordB\f\n" + + "\n" + + "_is_publicB\x14\n" + + "\x12_create_time_rangeB\x14\n" + + "\x12_update_time_rangeB\v\n" + + "\t_order_byB\r\n" + + "\v_order_desc\"\xb4\x01\n" + + "\x1aListKnowledgeBasesResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12N\n" + + "\x0fknowledge_bases\x18\x02 \x03(\v2%.yoresee_doc.v1.KnowledgeBaseResponseR\x0eknowledgeBases\x12\x14\n" + + "\x05total\x18\x03 \x01(\x03R\x05total\"\x85\x01\n" + + "\x1aCreateKnowledgeBaseRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x02 \x01(\tR\vdescription\x12\x14\n" + + "\x05cover\x18\x03 \x01(\tR\x05cover\x12\x1b\n" + + "\tis_public\x18\x04 \x01(\bR\bisPublic\"p\n" + + "\x1bCreateKnowledgeBaseResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12\x1f\n" + + "\vexternal_id\x18\x02 \x01(\tR\n" + + "externalId\"\xda\x01\n" + + "\x17GetKnowledgeBaseRequest\x12;\n" + + "\x1aknowledge_base_external_id\x18\x01 \x01(\tR\x17knowledgeBaseExternalId\x12*\n" + + "\x11record_recent_log\x18\x02 \x01(\bR\x0frecordRecentLog\x12\x12\n" + + "\x04page\x18\x03 \x01(\x05R\x04page\x12\x1b\n" + + "\tpage_size\x18\x04 \x01(\x05R\bpageSize\x12%\n" + + "\x0edirectory_only\x18\x05 \x01(\bR\rdirectoryOnly\"\xfb\x01\n" + + "\x18GetKnowledgeBaseResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12L\n" + + "\x0eknowledge_base\x18\x02 \x01(\v2%.yoresee_doc.v1.KnowledgeBaseResponseR\rknowledgeBase\x12>\n" + + "\tdocuments\x18\x03 \x03(\v2 .yoresee_doc.v1.DocumentResponseR\tdocuments\x12\x1f\n" + + "\vtotal_count\x18\x04 \x01(\x03R\n" + + "totalCount\"\xad\x02\n" + + "\fUserResponse\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x12\x1a\n" + + "\busername\x18\x02 \x01(\tR\busername\x12\x14\n" + + "\x05email\x18\x03 \x01(\tR\x05email\x12\x1a\n" + + "\bnickname\x18\x04 \x01(\tR\bnickname\x12\x16\n" + + "\x06avatar\x18\x05 \x01(\tR\x06avatar\x12\x16\n" + + "\x06status\x18\x06 \x01(\x05R\x06status\x12\x1d\n" + + "\n" + + "created_at\x18\a \x01(\tR\tcreatedAt\x12\x1d\n" + + "\n" + + "updated_at\x18\b \x01(\tR\tupdatedAt\x12,\n" + + "\x0finvitation_code\x18\t \x01(\tH\x00R\x0einvitationCode\x88\x01\x01B\x12\n" + + "\x10_invitation_code\"\xe8\x02\n" + + "\x12InvitationResponse\x12\x12\n" + + "\x04code\x18\x01 \x01(\tR\x04code\x123\n" + + "\x16created_by_external_id\x18\x02 \x01(\tR\x13createdByExternalId\x12&\n" + + "\x0fcreated_by_name\x18\x03 \x01(\tR\rcreatedByName\x12\x19\n" + + "\bused_cnt\x18\x04 \x01(\x03R\ausedCnt\x12%\n" + + "\fmax_used_cnt\x18\x05 \x01(\x03H\x00R\n" + + "maxUsedCnt\x88\x01\x01\x12\"\n" + + "\n" + + "expires_at\x18\x06 \x01(\tH\x01R\texpiresAt\x88\x01\x01\x12\x1d\n" + + "\n" + + "created_at\x18\a \x01(\tR\tcreatedAt\x12\x1a\n" + + "\bdisabled\x18\b \x01(\bR\bdisabled\x12\x17\n" + + "\x04note\x18\t \x01(\tH\x02R\x04note\x88\x01\x01B\x0f\n" + + "\r_max_used_cntB\r\n" + + "\v_expires_atB\a\n" + + "\x05_note\"\xc4\x01\n" + + "\x18InvitationRecordResponse\x12\x12\n" + + "\x04code\x18\x01 \x01(\tR\x04code\x12\x17\n" + + "\aused_by\x18\x02 \x01(\tR\x06usedBy\x122\n" + + "\x13used_by_external_id\x18\x03 \x01(\tH\x00R\x10usedByExternalId\x88\x01\x01\x12\x17\n" + + "\aused_at\x18\x04 \x01(\tR\x06usedAt\x12\x16\n" + + "\x06status\x18\x05 \x01(\tR\x06statusB\x16\n" + + "\x14_used_by_external_id\"\xee\x04\n" + + "\x16ListInvitationsRequest\x12%\n" + + "\fmax_used_cnt\x18\x02 \x01(\x03H\x00R\n" + + "maxUsedCnt\x88\x01\x01\x12-\n" + + "\x10expires_at_start\x18\x03 \x01(\tH\x01R\x0eexpiresAtStart\x88\x01\x01\x12)\n" + + "\x0eexpires_at_end\x18\x04 \x01(\tH\x02R\fexpiresAtEnd\x88\x01\x01\x12-\n" + + "\x10created_at_start\x18\x05 \x01(\tH\x03R\x0ecreatedAtStart\x88\x01\x01\x12)\n" + + "\x0ecreated_at_end\x18\x06 \x01(\tH\x04R\fcreatedAtEnd\x88\x01\x01\x12\x1f\n" + + "\bdisabled\x18\a \x01(\bH\x05R\bdisabled\x88\x01\x01\x12\x1e\n" + + "\border_by\x18\b \x01(\tH\x06R\aorderBy\x88\x01\x01\x12\"\n" + + "\n" + + "order_desc\x18\t \x01(\bH\aR\torderDesc\x88\x01\x01\x12\x12\n" + + "\x04page\x18\n" + + " \x01(\x05R\x04page\x12\x1b\n" + + "\tpage_size\x18\v \x01(\x05R\bpageSize\x12 \n" + + "\tonly_mine\x18\f \x01(\bH\bR\bonlyMine\x88\x01\x01\x12\x1d\n" + + "\akeyword\x18\r \x01(\tH\tR\akeyword\x88\x01\x01B\x0f\n" + + "\r_max_used_cntB\x13\n" + + "\x11_expires_at_startB\x11\n" + + "\x0f_expires_at_endB\x13\n" + + "\x11_created_at_startB\x11\n" + + "\x0f_created_at_endB\v\n" + + "\t_disabledB\v\n" + + "\t_order_byB\r\n" + + "\v_order_descB\f\n" + + "\n" + + "_only_mineB\n" + + "\n" + + "\b_keyword\"\xa7\x01\n" + + "\x17ListInvitationsResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12D\n" + + "\vinvitations\x18\x02 \x03(\v2\".yoresee_doc.v1.InvitationResponseR\vinvitations\x12\x14\n" + + "\x05total\x18\x03 \x01(\x03R\x05total\"\xa6\x01\n" + + "\x17CreateInvitationRequest\x12%\n" + + "\fmax_used_cnt\x18\x01 \x01(\x03H\x00R\n" + + "maxUsedCnt\x88\x01\x01\x12\"\n" + + "\n" + + "expires_at\x18\x02 \x01(\tH\x01R\texpiresAt\x88\x01\x01\x12\x17\n" + + "\x04note\x18\x03 \x01(\tH\x02R\x04note\x88\x01\x01B\x0f\n" + + "\r_max_used_cntB\r\n" + + "\v_expires_atB\a\n" + + "\x05_note\"\x90\x01\n" + + "\x18CreateInvitationResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12B\n" + + "\n" + + "invitation\x18\x02 \x01(\v2\".yoresee_doc.v1.InvitationResponseR\n" + + "invitation\"\xe8\x01\n" + + "\x17UpdateInvitationRequest\x12\x12\n" + + "\x04code\x18\x01 \x01(\tR\x04code\x12%\n" + + "\fmax_used_cnt\x18\x02 \x01(\x03H\x00R\n" + + "maxUsedCnt\x88\x01\x01\x12\"\n" + + "\n" + + "expires_at\x18\x03 \x01(\tH\x01R\texpiresAt\x88\x01\x01\x12\x1f\n" + + "\bdisabled\x18\x04 \x01(\bH\x02R\bdisabled\x88\x01\x01\x12\x17\n" + + "\x04note\x18\x05 \x01(\tH\x03R\x04note\x88\x01\x01B\x0f\n" + + "\r_max_used_cntB\r\n" + + "\v_expires_atB\v\n" + + "\t_disabledB\a\n" + + "\x05_note\"L\n" + + "\x18UpdateInvitationResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"-\n" + + "\x17DeleteInvitationRequest\x12\x12\n" + + "\x04code\x18\x01 \x01(\tR\x04code\"L\n" + + "\x18DeleteInvitationResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"\xe4\x02\n" + + "\x1cListInvitationRecordsRequest\x12\x17\n" + + "\x04code\x18\x01 \x01(\tH\x00R\x04code\x88\x01\x01\x12\x1b\n" + + "\x06status\x18\x02 \x01(\tH\x01R\x06status\x88\x01\x01\x12'\n" + + "\rused_at_start\x18\x03 \x01(\tH\x02R\vusedAtStart\x88\x01\x01\x12#\n" + + "\vused_at_end\x18\x04 \x01(\tH\x03R\tusedAtEnd\x88\x01\x01\x12\x12\n" + + "\x04page\x18\x05 \x01(\x05R\x04page\x12\x1b\n" + + "\tpage_size\x18\x06 \x01(\x05R\bpageSize\x12 \n" + + "\tonly_mine\x18\a \x01(\bH\x04R\bonlyMine\x88\x01\x01\x12\x1d\n" + + "\akeyword\x18\b \x01(\tH\x05R\akeyword\x88\x01\x01B\a\n" + + "\x05_codeB\t\n" + + "\a_statusB\x10\n" + + "\x0e_used_at_startB\x0e\n" + + "\f_used_at_endB\f\n" + + "\n" + + "_only_mineB\n" + + "\n" + + "\b_keyword\"\xab\x01\n" + + "\x1dListInvitationRecordsResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12B\n" + + "\arecords\x18\x02 \x03(\v2(.yoresee_doc.v1.InvitationRecordResponseR\arecords\x12\x14\n" + + "\x05total\x18\x03 \x01(\x03R\x05total\"\xc4\x01\n" + + "\fNotification\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x12\x12\n" + + "\x04type\x18\x02 \x01(\tR\x04type\x12\x16\n" + + "\x06status\x18\x03 \x01(\tR\x06status\x12\x14\n" + + "\x05title\x18\x04 \x01(\tR\x05title\x12\x18\n" + + "\acontent\x18\x05 \x01(\tR\acontent\x12\x18\n" + + "\apayload\x18\x06 \x01(\tR\apayload\x12\x1d\n" + + "\n" + + "created_at\x18\a \x01(\tR\tcreatedAt\"\xb6\x01\n" + + "\x19CreateNotificationRequest\x122\n" + + "\x15receiver_external_ids\x18\x01 \x03(\tR\x13receiverExternalIds\x12\x12\n" + + "\x04type\x18\x02 \x01(\tR\x04type\x12\x14\n" + + "\x05title\x18\x03 \x01(\tR\x05title\x12\x18\n" + + "\acontent\x18\x04 \x01(\tR\acontent\x12!\n" + + "\fpayload_json\x18\x05 \x01(\tR\vpayloadJson\"N\n" + + "\x1aCreateNotificationResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"s\n" + + "\x18ListNotificationsRequest\x12\x12\n" + + "\x04page\x18\x01 \x01(\x05R\x04page\x12\x1b\n" + + "\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12\x1b\n" + + "\x06status\x18\x03 \x01(\tH\x00R\x06status\x88\x01\x01B\t\n" + + "\a_status\"\xa7\x01\n" + + "\x19ListNotificationsResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12B\n" + + "\rnotifications\x18\x02 \x03(\v2\x1c.yoresee_doc.v1.NotificationR\rnotifications\x12\x14\n" + + "\x05total\x18\x03 \x01(\x03R\x05total\"A\n" + + "\x1cMarkNotificationsReadRequest\x12!\n" + + "\fexternal_ids\x18\x01 \x03(\tR\vexternalIds\"Q\n" + + "\x1dMarkNotificationsReadResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"!\n" + + "\x1fMarkAllNotificationsReadRequest\"T\n" + + " MarkAllNotificationsReadResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"\xa7\x03\n" + + "\x15UpdateDocumentRequest\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x12\x19\n" + + "\x05title\x18\x02 \x01(\tH\x00R\x05title\x88\x01\x01\x12@\n" + + "\x1aknowledge_base_external_id\x18\x03 \x01(\tH\x01R\x17knowledgeBaseExternalId\x88\x01\x01\x121\n" + + "\x12parent_external_id\x18\x04 \x01(\tH\x02R\x10parentExternalId\x88\x01\x01\x12\x1d\n" + + "\acontent\x18\x05 \x01(\tH\x03R\acontent\x88\x01\x01\x12\\\n" + + "\x11move_to_container\x18\x06 \x01(\x0e2+.yoresee_doc.v1.CreateDocumentContainerTypeH\x04R\x0fmoveToContainer\x88\x01\x01B\b\n" + + "\x06_titleB\x1d\n" + + "\x1b_knowledge_base_external_idB\x15\n" + + "\x13_parent_external_idB\n" + + "\n" + + "\b_contentB\x14\n" + + "\x12_move_to_container\"\x81\x03\n" + + "\x0fDocumentComment\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x120\n" + + "\x14document_external_id\x18\x02 \x01(\tR\x12documentExternalId\x12,\n" + + "\x12parent_external_id\x18\x03 \x01(\tR\x10parentExternalId\x12\x18\n" + + "\acontent\x18\x04 \x01(\tR\acontent\x127\n" + + "\x18creator_user_external_id\x18\x05 \x01(\tR\x15creatorUserExternalId\x12!\n" + + "\fcreator_name\x18\x06 \x01(\tR\vcreatorName\x12%\n" + + "\x0ecreator_avatar\x18\a \x01(\tR\rcreatorAvatar\x12\x1d\n" + + "\n" + + "created_at\x18\b \x01(\tR\tcreatedAt\x12\x1b\n" + + "\tanchor_id\x18\t \x01(\tR\banchorId\x12\x14\n" + + "\x05quote\x18\n" + + " \x01(\tR\x05quote\"\xc8\x02\n" + + "\x1cCreateDocumentCommentRequest\x120\n" + + "\x14document_external_id\x18\x01 \x01(\tR\x12documentExternalId\x12\x18\n" + + "\acontent\x18\x02 \x01(\tR\acontent\x121\n" + + "\x12parent_external_id\x18\x03 \x01(\tH\x00R\x10parentExternalId\x88\x01\x01\x12 \n" + + "\tanchor_id\x18\x04 \x01(\tH\x01R\banchorId\x88\x01\x01\x12\x19\n" + + "\x05quote\x18\x05 \x01(\tH\x02R\x05quote\x88\x01\x01\x12=\n" + + "\x1bmentioned_user_external_ids\x18\x06 \x03(\tR\x18mentionedUserExternalIdsB\x15\n" + + "\x13_parent_external_idB\f\n" + + "\n" + + "_anchor_idB\b\n" + + "\x06_quote\"\x8c\x01\n" + + "\x1dCreateDocumentCommentResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x129\n" + + "\acomment\x18\x02 \x01(\v2\x1f.yoresee_doc.v1.DocumentCommentR\acomment\"\x80\x01\n" + + "\x1bListDocumentCommentsRequest\x120\n" + + "\x14document_external_id\x18\x01 \x01(\tR\x12documentExternalId\x12\x12\n" + + "\x04page\x18\x02 \x01(\x05R\x04page\x12\x1b\n" + + "\tpage_size\x18\x03 \x01(\x05R\bpageSize\"\xa3\x01\n" + + "\x1cListDocumentCommentsResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12;\n" + + "\bcomments\x18\x02 \x03(\v2\x1f.yoresee_doc.v1.DocumentCommentR\bcomments\x12\x14\n" + + "\x05total\x18\x03 \x01(\x03R\x05total\"?\n" + + "\x1cDeleteDocumentCommentRequest\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\"Q\n" + + "\x1dDeleteDocumentCommentResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"Y\n" + + "\x1cUpdateDocumentCommentRequest\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x12\x18\n" + + "\acontent\x18\x02 \x01(\tR\acontent\"\x8c\x01\n" + + "\x1dUpdateDocumentCommentResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x129\n" + + "\acomment\x18\x02 \x01(\v2\x1f.yoresee_doc.v1.DocumentCommentR\acomment\"J\n" + + "\x16UpdateDocumentResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"\xac\x01\n" + + "\x19UpdateDocumentMetaRequest\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x12\x19\n" + + "\x05title\x18\x02 \x01(\tH\x00R\x05title\x88\x01\x01\x12\x1d\n" + + "\asummary\x18\x03 \x01(\tH\x01R\asummary\x88\x01\x01\x12\x12\n" + + "\x04tags\x18\x04 \x03(\tR\x04tagsB\b\n" + + "\x06_titleB\n" + + "\n" + + "\b_summaryJ\x04\b\x05\x10\x06J\x04\b\x06\x10\a\"N\n" + + "\x1aUpdateDocumentMetaResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"p\n" + + "\x1dUpdateDocumentSettingsRequest\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x12 \n" + + "\tis_public\x18\x02 \x01(\bH\x00R\bisPublic\x88\x01\x01B\f\n" + + "\n" + + "_is_public\"\x82\x01\n" + + "\x1eUpdateDocumentSettingsResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12 \n" + + "\tis_public\x18\x02 \x01(\bH\x00R\bisPublic\x88\x01\x01B\f\n" + + "\n" + + "_is_public\"\x90\x02\n" + + "\x12AttachmentResponse\x12\x1f\n" + + "\vexternal_id\x18\x01 \x01(\tR\n" + + "externalId\x120\n" + + "\x14document_external_id\x18\x02 \x01(\tR\x12documentExternalId\x12\x12\n" + + "\x04name\x18\x03 \x01(\tR\x04name\x12\x12\n" + + "\x04size\x18\x04 \x01(\x03R\x04size\x12\x1b\n" + + "\tmime_type\x18\x05 \x01(\tR\bmimeType\x12\x12\n" + + "\x04path\x18\x06 \x01(\tR\x04path\x12\x10\n" + + "\x03url\x18\a \x01(\tR\x03url\x12\x1d\n" + + "\n" + + "created_at\x18\b \x01(\tR\tcreatedAt\x12\x1d\n" + + "\n" + + "updated_at\x18\t \x01(\tR\tupdatedAt\"\xcc\x01\n" + + "\x1fUploadDocumentAttachmentRequest\x120\n" + + "\x14document_external_id\x18\x01 \x01(\tR\x12documentExternalId\x12!\n" + + "\ffile_content\x18\x02 \x01(\fR\vfileContent\x12\x1b\n" + + "\tfile_name\x18\x03 \x01(\tR\bfileName\x12&\n" + + "\fcontent_type\x18\x04 \x01(\tH\x00R\vcontentType\x88\x01\x01B\x0f\n" + + "\r_content_type\"\x98\x01\n" + + " UploadDocumentAttachmentResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12B\n" + + "\n" + + "attachment\x18\x02 \x01(\v2\".yoresee_doc.v1.AttachmentResponseR\n" + + "attachment\"R\n" + + "\x1eListDocumentAttachmentsRequest\x120\n" + + "\x14document_external_id\x18\x01 \x01(\tR\x12documentExternalId\"\x99\x01\n" + + "\x1fListDocumentAttachmentsResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12D\n" + + "\vattachments\x18\x02 \x03(\v2\".yoresee_doc.v1.AttachmentResponseR\vattachments\"\x89\x01\n" + + "\x1fDeleteDocumentAttachmentRequest\x120\n" + + "\x14document_external_id\x18\x01 \x01(\tR\x12documentExternalId\x124\n" + + "\x16attachment_external_id\x18\x02 \x01(\tR\x14attachmentExternalId\"T\n" + + " DeleteDocumentAttachmentResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"\xa9\x01\n" + + "\x17DocumentVersionResponse\x12\x18\n" + + "\aversion\x18\x01 \x01(\x05R\aversion\x12\x14\n" + + "\x05title\x18\x02 \x01(\tR\x05title\x12\x18\n" + + "\acontent\x18\x03 \x01(\tR\acontent\x12%\n" + + "\x0echange_summary\x18\x04 \x01(\tR\rchangeSummary\x12\x1d\n" + + "\n" + + "created_at\x18\x05 \x01(\tR\tcreatedAt\"\x80\x01\n" + + "\x1bListDocumentVersionsRequest\x120\n" + + "\x14document_external_id\x18\x01 \x01(\tR\x12documentExternalId\x12\x12\n" + + "\x04page\x18\x02 \x01(\x05R\x04page\x12\x1b\n" + + "\tpage_size\x18\x03 \x01(\x05R\bpageSize\"\xab\x01\n" + + "\x1cListDocumentVersionsResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12C\n" + + "\bversions\x18\x02 \x03(\v2'.yoresee_doc.v1.DocumentVersionResponseR\bversions\x12\x14\n" + + "\x05total\x18\x03 \x01(\x03R\x05total\"n\n" + + " GetDocumentVersionContentRequest\x120\n" + + "\x14document_external_id\x18\x01 \x01(\tR\x12documentExternalId\x12\x18\n" + + "\aversion\x18\x02 \x01(\x05R\aversion\"\x98\x01\n" + + "!GetDocumentVersionContentResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12A\n" + + "\aversion\x18\x02 \x01(\v2'.yoresee_doc.v1.DocumentVersionResponseR\aversion\"Q\n" + + "\x1dGetDocumentYjsSnapshotRequest\x120\n" + + "\x14document_external_id\x18\x01 \x01(\tR\x12documentExternalId\"h\n" + + "\x1eGetDocumentYjsSnapshotResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12\x14\n" + + "\x05state\x18\x02 \x01(\fR\x05state\"h\n" + + "\x1eSaveDocumentYjsSnapshotRequest\x120\n" + + "\x14document_external_id\x18\x01 \x01(\tR\x12documentExternalId\x12\x14\n" + + "\x05state\x18\x02 \x01(\fR\x05state\"S\n" + + "\x1fSaveDocumentYjsSnapshotResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"\xb2\x01\n" + + "\x1fListRecentKnowledgeBasesRequest\x12\"\n" + + "\n" + + "start_time\x18\x01 \x01(\tH\x00R\tstartTime\x88\x01\x01\x12\x1e\n" + + "\bend_time\x18\x02 \x01(\tH\x01R\aendTime\x88\x01\x01\x12\x12\n" + + "\x04page\x18\x03 \x01(\x05R\x04page\x12\x1b\n" + + "\tpage_size\x18\x04 \x01(\x05R\bpageSizeB\r\n" + + "\v_start_timeB\v\n" + + "\t_end_time\"\xba\x01\n" + + " ListRecentKnowledgeBasesResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12N\n" + + "\x0fknowledge_bases\x18\x02 \x03(\v2%.yoresee_doc.v1.KnowledgeBaseResponseR\x0eknowledgeBases\x12\x14\n" + + "\x05total\x18\x03 \x01(\x03R\x05total\"\xf4\x01\n" + + "\x15CreateTemplateRequest\x12R\n" + + "\x10target_container\x18\x01 \x01(\x0e2'.yoresee_doc.v1.CreateTemplateContainerR\x0ftargetContainer\x12*\n" + + "\x11knowledge_base_id\x18\x02 \x01(\tR\x0fknowledgeBaseId\x12)\n" + + "\x10template_content\x18\x03 \x01(\tR\x0ftemplateContent\x120\n" + + "\x04type\x18\x04 \x01(\x0e2\x1c.yoresee_doc.v1.DocumentTypeR\x04type\"J\n" + + "\x16CreateTemplateResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"\xc9\x02\n" + + "\x10TemplateResponse\x12\x0e\n" + + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\x12\x18\n" + + "\acontent\x18\x04 \x01(\tR\acontent\x12\x14\n" + + "\x05scope\x18\x05 \x01(\tR\x05scope\x12;\n" + + "\x1aknowledge_base_external_id\x18\x06 \x01(\tR\x17knowledgeBaseExternalId\x12\x12\n" + + "\x04tags\x18\a \x03(\tR\x04tags\x12\x1d\n" + + "\n" + + "created_at\x18\b \x01(\tR\tcreatedAt\x12\x1d\n" + + "\n" + + "updated_at\x18\t \x01(\tR\tupdatedAt\x120\n" + + "\x04type\x18\n" + + " \x01(\x0e2\x1c.yoresee_doc.v1.DocumentTypeR\x04type\"\xf2\x03\n" + + "\x14ListTemplatesRequest\x12\x1b\n" + + "\tonly_mine\x18\x01 \x01(\bR\bonlyMine\x12W\n" + + "\x10target_container\x18\x02 \x01(\x0e2'.yoresee_doc.v1.CreateTemplateContainerH\x00R\x0ftargetContainer\x88\x01\x01\x12/\n" + + "\x11knowledge_base_id\x18\x03 \x01(\tH\x01R\x0fknowledgeBaseId\x88\x01\x01\x12&\n" + + "\fname_keyword\x18\x04 \x01(\tH\x02R\vnameKeyword\x88\x01\x01\x12\x1e\n" + + "\border_by\x18\x05 \x01(\tH\x03R\aorderBy\x88\x01\x01\x12\"\n" + + "\n" + + "order_desc\x18\x06 \x01(\bH\x04R\torderDesc\x88\x01\x01\x12\x12\n" + + "\x04page\x18\a \x01(\x05R\x04page\x12\x1b\n" + + "\tpage_size\x18\b \x01(\x05R\bpageSize\x125\n" + + "\x04type\x18\t \x01(\x0e2\x1c.yoresee_doc.v1.DocumentTypeH\x05R\x04type\x88\x01\x01B\x13\n" + + "\x11_target_containerB\x14\n" + + "\x12_knowledge_base_idB\x0f\n" + + "\r_name_keywordB\v\n" + + "\t_order_byB\r\n" + + "\v_order_descB\a\n" + + "\x05_type\"\x9f\x01\n" + + "\x15ListTemplatesResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12>\n" + + "\ttemplates\x18\x02 \x03(\v2 .yoresee_doc.v1.TemplateResponseR\ttemplates\x12\x14\n" + + "\x05total\x18\x03 \x01(\x03R\x05total\"a\n" + + "\x12GetTemplateRequest\x12\x1f\n" + + "\vtemplate_id\x18\x01 \x01(\x03R\n" + + "templateId\x12*\n" + + "\x11record_recent_log\x18\x02 \x01(\bR\x0frecordRecentLog\"\x85\x01\n" + + "\x13GetTemplateResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12<\n" + + "\btemplate\x18\x02 \x01(\v2 .yoresee_doc.v1.TemplateResponseR\btemplate\"\xc9\x01\n" + + "\x1dUpdateTemplateSettingsRequest\x12\x1f\n" + + "\vtemplate_id\x18\x01 \x01(\x03R\n" + + "templateId\x12\x17\n" + + "\x04name\x18\x02 \x01(\tH\x00R\x04name\x88\x01\x01\x12%\n" + + "\vdescription\x18\x03 \x01(\tH\x01R\vdescription\x88\x01\x01\x12 \n" + + "\tis_public\x18\x04 \x01(\bH\x02R\bisPublic\x88\x01\x01B\a\n" + + "\x05_nameB\x0e\n" + + "\f_descriptionB\f\n" + + "\n" + + "_is_public\"R\n" + + "\x1eUpdateTemplateSettingsResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"I\n" + + "\x15DeleteDocumentRequest\x120\n" + + "\x14document_external_id\x18\x01 \x01(\tR\x12documentExternalId\"J\n" + + "\x16DeleteDocumentResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\"\xad\x01\n" + + "\x1aListRecentTemplatesRequest\x12\"\n" + + "\n" + + "start_time\x18\x01 \x01(\tH\x00R\tstartTime\x88\x01\x01\x12\x1e\n" + + "\bend_time\x18\x02 \x01(\tH\x01R\aendTime\x88\x01\x01\x12\x12\n" + + "\x04page\x18\x03 \x01(\x05R\x04page\x12\x1b\n" + + "\tpage_size\x18\x04 \x01(\x05R\bpageSizeB\r\n" + + "\v_start_timeB\v\n" + + "\t_end_time\"\xa5\x01\n" + + "\x1bListRecentTemplatesResponse\x120\n" + + "\x04base\x18\x01 \x01(\v2\x1c.yoresee_doc.v1.BaseResponseR\x04base\x12>\n" + + "\ttemplates\x18\x02 \x03(\v2 .yoresee_doc.v1.TemplateResponseR\ttemplates\x12\x14\n" + + "\x05total\x18\x03 \x01(\x03R\x05total*\xa9\x01\n" + + "\fDocumentType\x12\x1d\n" + + "\x19DOCUMENT_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n" + + "\x16DOCUMENT_TYPE_MARKDOWN\x10\x01\x12\x17\n" + + "\x13DOCUMENT_TYPE_TABLE\x10\x02\x12 \n" + + "\x1cDOCUMENT_TYPE_MARKDOWN_SLIDE\x10\x03\x12#\n" + + "\x1fDOCUMENT_TYPE_YORESEE_RICH_TEXT\x10\x04*\xa8\x01\n" + + "\x1bCreateDocumentContainerType\x12.\n" + + "*CREATE_DOCUMENT_CONTAINER_TYPE_UNSPECIFIED\x10\x00\x121\n" + + "-CREATE_DOCUMENT_CONTAINER_TYPE_KNOWLEDGE_BASE\x10\x01\x12&\n" + + "\"CREATE_DOCUMENT_CONTAINER_TYPE_OWN\x10\x02*\\\n" + + "\x17CreateTemplateContainer\x12\x10\n" + + "\fOWN_TEMPLATE\x10\x00\x12\x1a\n" + + "\x16KNOWLEDGEBASE_TEMPLATE\x10\x01\x12\x13\n" + + "\x0fPUBLIC_TEMPLATE\x10\x022\xed\x03\n" + + "\vAuthService\x12L\n" + + "\x05Login\x12 .yoresee_doc.v1.AuthLoginRequest\x1a!.yoresee_doc.v1.AuthLoginResponse\x12U\n" + + "\bRegister\x12#.yoresee_doc.v1.AuthRegisterRequest\x1a$.yoresee_doc.v1.AuthRegisterResponse\x12\\\n" + + "\rUpdateProfile\x12$.yoresee_doc.v1.UpdateProfileRequest\x1a%.yoresee_doc.v1.UpdateProfileResponse\x12n\n" + + "\x13QuerySideBarDisplay\x12*.yoresee_doc.v1.QuerySideBarDisplayRequest\x1a+.yoresee_doc.v1.QuerySideBarDisplayResponse\x12k\n" + + "\x12QueryTopNavDisplay\x12).yoresee_doc.v1.QueryTopNavDisplayRequest\x1a*.yoresee_doc.v1.QueryTopNavDisplayResponse2\x81\x14\n" + + "\x0fDocumentService\x12\\\n" + + "\rListDocuments\x12$.yoresee_doc.v1.ListDocumentsRequest\x1a%.yoresee_doc.v1.ListDocumentsResponse\x12k\n" + + "\x12GetDocumentContent\x12).yoresee_doc.v1.GetDocumentContentRequest\x1a*.yoresee_doc.v1.GetDocumentContentResponse\x12n\n" + + "\x13GetDocumentSettings\x12*.yoresee_doc.v1.GetDocumentSettingsRequest\x1a+.yoresee_doc.v1.GetDocumentSettingsResponse\x12n\n" + + "\x13ListRecentDocuments\x12*.yoresee_doc.v1.ListRecentDocumentsRequest\x1a+.yoresee_doc.v1.ListRecentDocumentsResponse\x12q\n" + + "\x14RecordRecentDocument\x12+.yoresee_doc.v1.RecordRecentDocumentRequest\x1a,.yoresee_doc.v1.RecordRecentDocumentResponse\x12w\n" + + "\x16GetDocumentYjsSnapshot\x12-.yoresee_doc.v1.GetDocumentYjsSnapshotRequest\x1a..yoresee_doc.v1.GetDocumentYjsSnapshotResponse\x12z\n" + + "\x17SaveDocumentYjsSnapshot\x12..yoresee_doc.v1.SaveDocumentYjsSnapshotRequest\x1a/.yoresee_doc.v1.SaveDocumentYjsSnapshotResponse\x12b\n" + + "\x0fGetOwnDocuments\x12&.yoresee_doc.v1.GetOwnDocumentsRequest\x1a'.yoresee_doc.v1.GetOwnDocumentsResponse\x12_\n" + + "\x0eCreateDocument\x12%.yoresee_doc.v1.CreateDocumentRequest\x1a&.yoresee_doc.v1.CreateDocumentResponse\x12_\n" + + "\x0eUpdateDocument\x12%.yoresee_doc.v1.UpdateDocumentRequest\x1a&.yoresee_doc.v1.UpdateDocumentResponse\x12k\n" + + "\x12UpdateDocumentMeta\x12).yoresee_doc.v1.UpdateDocumentMetaRequest\x1a*.yoresee_doc.v1.UpdateDocumentMetaResponse\x12w\n" + + "\x16UpdateDocumentSettings\x12-.yoresee_doc.v1.UpdateDocumentSettingsRequest\x1a..yoresee_doc.v1.UpdateDocumentSettingsResponse\x12}\n" + + "\x18UploadDocumentAttachment\x12/.yoresee_doc.v1.UploadDocumentAttachmentRequest\x1a0.yoresee_doc.v1.UploadDocumentAttachmentResponse\x12z\n" + + "\x17ListDocumentAttachments\x12..yoresee_doc.v1.ListDocumentAttachmentsRequest\x1a/.yoresee_doc.v1.ListDocumentAttachmentsResponse\x12}\n" + + "\x18DeleteDocumentAttachment\x12/.yoresee_doc.v1.DeleteDocumentAttachmentRequest\x1a0.yoresee_doc.v1.DeleteDocumentAttachmentResponse\x12q\n" + + "\x14ListDocumentVersions\x12+.yoresee_doc.v1.ListDocumentVersionsRequest\x1a,.yoresee_doc.v1.ListDocumentVersionsResponse\x12\x80\x01\n" + + "\x19GetDocumentVersionContent\x120.yoresee_doc.v1.GetDocumentVersionContentRequest\x1a1.yoresee_doc.v1.GetDocumentVersionContentResponse\x12_\n" + + "\x0eCreateTemplate\x12%.yoresee_doc.v1.CreateTemplateRequest\x1a&.yoresee_doc.v1.CreateTemplateResponse\x12\\\n" + + "\rListTemplates\x12$.yoresee_doc.v1.ListTemplatesRequest\x1a%.yoresee_doc.v1.ListTemplatesResponse\x12n\n" + + "\x13ListRecentTemplates\x12*.yoresee_doc.v1.ListRecentTemplatesRequest\x1a+.yoresee_doc.v1.ListRecentTemplatesResponse\x12V\n" + + "\vGetTemplate\x12\".yoresee_doc.v1.GetTemplateRequest\x1a#.yoresee_doc.v1.GetTemplateResponse\x12w\n" + + "\x16UpdateTemplateSettings\x12-.yoresee_doc.v1.UpdateTemplateSettingsRequest\x1a..yoresee_doc.v1.UpdateTemplateSettingsResponse\x12_\n" + + "\x0eDeleteDocument\x12%.yoresee_doc.v1.DeleteDocumentRequest\x1a&.yoresee_doc.v1.DeleteDocumentResponse2\xe5\x03\n" + + "\x0eCommentService\x12t\n" + + "\x15CreateDocumentComment\x12,.yoresee_doc.v1.CreateDocumentCommentRequest\x1a-.yoresee_doc.v1.CreateDocumentCommentResponse\x12q\n" + + "\x14ListDocumentComments\x12+.yoresee_doc.v1.ListDocumentCommentsRequest\x1a,.yoresee_doc.v1.ListDocumentCommentsResponse\x12t\n" + + "\x15DeleteDocumentComment\x12,.yoresee_doc.v1.DeleteDocumentCommentRequest\x1a-.yoresee_doc.v1.DeleteDocumentCommentResponse\x12t\n" + + "\x15UpdateDocumentComment\x12,.yoresee_doc.v1.UpdateDocumentCommentRequest\x1a-.yoresee_doc.v1.UpdateDocumentCommentResponse2\xd9\x03\n" + + "\x14KnowledgeBaseService\x12k\n" + + "\x12ListKnowledgeBases\x12).yoresee_doc.v1.ListKnowledgeBasesRequest\x1a*.yoresee_doc.v1.ListKnowledgeBasesResponse\x12e\n" + + "\x10GetKnowledgeBase\x12'.yoresee_doc.v1.GetKnowledgeBaseRequest\x1a(.yoresee_doc.v1.GetKnowledgeBaseResponse\x12n\n" + + "\x13CreateKnowledgeBase\x12*.yoresee_doc.v1.CreateKnowledgeBaseRequest\x1a+.yoresee_doc.v1.CreateKnowledgeBaseResponse\x12}\n" + + "\x18ListRecentKnowledgeBases\x12/.yoresee_doc.v1.ListRecentKnowledgeBasesRequest\x1a0.yoresee_doc.v1.ListRecentKnowledgeBasesResponse2\xad\x01\n" + + "\rSystemService\x12G\n" + + "\x06Health\x12\x1d.yoresee_doc.v1.HealthRequest\x1a\x1e.yoresee_doc.v1.HealthResponse\x12S\n" + + "\n" + + "SystemInfo\x12!.yoresee_doc.v1.SystemInfoRequest\x1a\".yoresee_doc.v1.SystemInfoResponse2\xc9\x01\n" + + "\x0eSettingService\x12V\n" + + "\vGetSettings\x12\".yoresee_doc.v1.GetSettingsRequest\x1a#.yoresee_doc.v1.GetSettingsResponse\x12_\n" + + "\x0eUpdateSettings\x12%.yoresee_doc.v1.UpdateSettingsRequest\x1a&.yoresee_doc.v1.UpdateSettingsResponse2\xa4\v\n" + + "\x11MembershipService\x12_\n" + + "\x0eListUserGroups\x12%.yoresee_doc.v1.ListUserGroupsRequest\x1a&.yoresee_doc.v1.ListUserGroupsResponse\x12Y\n" + + "\fGetUserGroup\x12#.yoresee_doc.v1.GetUserGroupRequest\x1a$.yoresee_doc.v1.GetUserGroupResponse\x12b\n" + + "\x0fCreateUserGroup\x12&.yoresee_doc.v1.CreateUserGroupRequest\x1a'.yoresee_doc.v1.CreateUserGroupResponse\x12b\n" + + "\x0fUpdateUserGroup\x12&.yoresee_doc.v1.UpdateUserGroupRequest\x1a'.yoresee_doc.v1.UpdateUserGroupResponse\x12b\n" + + "\x0fDeleteUserGroup\x12&.yoresee_doc.v1.DeleteUserGroupRequest\x1a'.yoresee_doc.v1.DeleteUserGroupResponse\x12P\n" + + "\tListUsers\x12 .yoresee_doc.v1.ListUsersRequest\x1a!.yoresee_doc.v1.ListUsersResponse\x12S\n" + + "\n" + + "UpdateUser\x12!.yoresee_doc.v1.UpdateUserRequest\x1a\".yoresee_doc.v1.UpdateUserResponse\x12q\n" + + "\x14ListUserGroupMembers\x12+.yoresee_doc.v1.ListUserGroupMembersRequest\x1a,.yoresee_doc.v1.ListUserGroupMembersResponse\x12Y\n" + + "\fListOrgNodes\x12#.yoresee_doc.v1.ListOrgNodesRequest\x1a$.yoresee_doc.v1.ListOrgNodesResponse\x12S\n" + + "\n" + + "GetOrgNode\x12!.yoresee_doc.v1.GetOrgNodeRequest\x1a\".yoresee_doc.v1.GetOrgNodeResponse\x12\\\n" + + "\rCreateOrgNode\x12$.yoresee_doc.v1.CreateOrgNodeRequest\x1a%.yoresee_doc.v1.CreateOrgNodeResponse\x12\\\n" + + "\rUpdateOrgNode\x12$.yoresee_doc.v1.UpdateOrgNodeRequest\x1a%.yoresee_doc.v1.UpdateOrgNodeResponse\x12\\\n" + + "\rDeleteOrgNode\x12$.yoresee_doc.v1.DeleteOrgNodeRequest\x1a%.yoresee_doc.v1.DeleteOrgNodeResponse\x12V\n" + + "\vMoveOrgNode\x12\".yoresee_doc.v1.MoveOrgNodeRequest\x1a#.yoresee_doc.v1.MoveOrgNodeResponse\x12k\n" + + "\x12ListOrgNodeMembers\x12).yoresee_doc.v1.ListOrgNodeMembersRequest\x1a*.yoresee_doc.v1.ListOrgNodeMembersResponse2\xa2\x04\n" + + "\x11InvitationService\x12e\n" + + "\x10CreateInvitation\x12'.yoresee_doc.v1.CreateInvitationRequest\x1a(.yoresee_doc.v1.CreateInvitationResponse\x12b\n" + + "\x0fListInvitations\x12&.yoresee_doc.v1.ListInvitationsRequest\x1a'.yoresee_doc.v1.ListInvitationsResponse\x12e\n" + + "\x10UpdateInvitation\x12'.yoresee_doc.v1.UpdateInvitationRequest\x1a(.yoresee_doc.v1.UpdateInvitationResponse\x12e\n" + + "\x10DeleteInvitation\x12'.yoresee_doc.v1.DeleteInvitationRequest\x1a(.yoresee_doc.v1.DeleteInvitationResponse\x12t\n" + + "\x15ListInvitationRecords\x12,.yoresee_doc.v1.ListInvitationRecordsRequest\x1a-.yoresee_doc.v1.ListInvitationRecordsResponse2\xe1\x03\n" + + "\x13NotificationService\x12k\n" + + "\x12CreateNotification\x12).yoresee_doc.v1.CreateNotificationRequest\x1a*.yoresee_doc.v1.CreateNotificationResponse\x12h\n" + + "\x11ListNotifications\x12(.yoresee_doc.v1.ListNotificationsRequest\x1a).yoresee_doc.v1.ListNotificationsResponse\x12t\n" + + "\x15MarkNotificationsRead\x12,.yoresee_doc.v1.MarkNotificationsReadRequest\x1a-.yoresee_doc.v1.MarkNotificationsReadResponse\x12}\n" + + "\x18MarkAllNotificationsRead\x12/.yoresee_doc.v1.MarkAllNotificationsReadRequest\x1a0.yoresee_doc.v1.MarkAllNotificationsReadResponseBJZHgit.yoresee.cc/YoreseeDoc/yoresee_doc_sdk_go/yoresee_doc/v1;yoreseedocpbb\x06proto3" + +var ( + file_yoresee_doc_v1_yoresee_doc_proto_rawDescOnce sync.Once + file_yoresee_doc_v1_yoresee_doc_proto_rawDescData []byte +) + +func file_yoresee_doc_v1_yoresee_doc_proto_rawDescGZIP() []byte { + file_yoresee_doc_v1_yoresee_doc_proto_rawDescOnce.Do(func() { + file_yoresee_doc_v1_yoresee_doc_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yoresee_doc_v1_yoresee_doc_proto_rawDesc), len(file_yoresee_doc_v1_yoresee_doc_proto_rawDesc))) + }) + return file_yoresee_doc_v1_yoresee_doc_proto_rawDescData +} + +var file_yoresee_doc_v1_yoresee_doc_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_yoresee_doc_v1_yoresee_doc_proto_msgTypes = make([]protoimpl.MessageInfo, 148) +var file_yoresee_doc_v1_yoresee_doc_proto_goTypes = []any{ + (DocumentType)(0), // 0: yoresee_doc.v1.DocumentType + (CreateDocumentContainerType)(0), // 1: yoresee_doc.v1.CreateDocumentContainerType + (CreateTemplateContainer)(0), // 2: yoresee_doc.v1.CreateTemplateContainer + (*BaseResponse)(nil), // 3: yoresee_doc.v1.BaseResponse + (*HealthRequest)(nil), // 4: yoresee_doc.v1.HealthRequest + (*HealthResponse)(nil), // 5: yoresee_doc.v1.HealthResponse + (*SystemInfoRequest)(nil), // 6: yoresee_doc.v1.SystemInfoRequest + (*SystemInfoResponse)(nil), // 7: yoresee_doc.v1.SystemInfoResponse + (*UserGroupResponse)(nil), // 8: yoresee_doc.v1.UserGroupResponse + (*OrgNodeResponse)(nil), // 9: yoresee_doc.v1.OrgNodeResponse + (*ListUserGroupsRequest)(nil), // 10: yoresee_doc.v1.ListUserGroupsRequest + (*ListUserGroupsResponse)(nil), // 11: yoresee_doc.v1.ListUserGroupsResponse + (*GetUserGroupRequest)(nil), // 12: yoresee_doc.v1.GetUserGroupRequest + (*GetUserGroupResponse)(nil), // 13: yoresee_doc.v1.GetUserGroupResponse + (*CreateUserGroupRequest)(nil), // 14: yoresee_doc.v1.CreateUserGroupRequest + (*CreateUserGroupResponse)(nil), // 15: yoresee_doc.v1.CreateUserGroupResponse + (*UpdateUserGroupRequest)(nil), // 16: yoresee_doc.v1.UpdateUserGroupRequest + (*UpdateUserGroupResponse)(nil), // 17: yoresee_doc.v1.UpdateUserGroupResponse + (*DeleteUserGroupRequest)(nil), // 18: yoresee_doc.v1.DeleteUserGroupRequest + (*DeleteUserGroupResponse)(nil), // 19: yoresee_doc.v1.DeleteUserGroupResponse + (*ListUsersRequest)(nil), // 20: yoresee_doc.v1.ListUsersRequest + (*ListUsersResponse)(nil), // 21: yoresee_doc.v1.ListUsersResponse + (*ListUserGroupMembersRequest)(nil), // 22: yoresee_doc.v1.ListUserGroupMembersRequest + (*ListUserGroupMembersResponse)(nil), // 23: yoresee_doc.v1.ListUserGroupMembersResponse + (*ListOrgNodesRequest)(nil), // 24: yoresee_doc.v1.ListOrgNodesRequest + (*ListOrgNodesResponse)(nil), // 25: yoresee_doc.v1.ListOrgNodesResponse + (*GetOrgNodeRequest)(nil), // 26: yoresee_doc.v1.GetOrgNodeRequest + (*GetOrgNodeResponse)(nil), // 27: yoresee_doc.v1.GetOrgNodeResponse + (*CreateOrgNodeRequest)(nil), // 28: yoresee_doc.v1.CreateOrgNodeRequest + (*CreateOrgNodeResponse)(nil), // 29: yoresee_doc.v1.CreateOrgNodeResponse + (*UpdateOrgNodeRequest)(nil), // 30: yoresee_doc.v1.UpdateOrgNodeRequest + (*UpdateOrgNodeResponse)(nil), // 31: yoresee_doc.v1.UpdateOrgNodeResponse + (*DeleteOrgNodeRequest)(nil), // 32: yoresee_doc.v1.DeleteOrgNodeRequest + (*DeleteOrgNodeResponse)(nil), // 33: yoresee_doc.v1.DeleteOrgNodeResponse + (*MoveOrgNodeRequest)(nil), // 34: yoresee_doc.v1.MoveOrgNodeRequest + (*MoveOrgNodeResponse)(nil), // 35: yoresee_doc.v1.MoveOrgNodeResponse + (*ListOrgNodeMembersRequest)(nil), // 36: yoresee_doc.v1.ListOrgNodeMembersRequest + (*ListOrgNodeMembersResponse)(nil), // 37: yoresee_doc.v1.ListOrgNodeMembersResponse + (*SettingOption)(nil), // 38: yoresee_doc.v1.SettingOption + (*SettingUI)(nil), // 39: yoresee_doc.v1.SettingUI + (*SettingItem)(nil), // 40: yoresee_doc.v1.SettingItem + (*SettingGroup)(nil), // 41: yoresee_doc.v1.SettingGroup + (*GetSettingsRequest)(nil), // 42: yoresee_doc.v1.GetSettingsRequest + (*GetSettingsResponse)(nil), // 43: yoresee_doc.v1.GetSettingsResponse + (*SettingUpdate)(nil), // 44: yoresee_doc.v1.SettingUpdate + (*UpdateSettingsRequest)(nil), // 45: yoresee_doc.v1.UpdateSettingsRequest + (*UpdateSettingsResponse)(nil), // 46: yoresee_doc.v1.UpdateSettingsResponse + (*UpdateUserRequest)(nil), // 47: yoresee_doc.v1.UpdateUserRequest + (*UpdateUserResponse)(nil), // 48: yoresee_doc.v1.UpdateUserResponse + (*AuthLoginRequest)(nil), // 49: yoresee_doc.v1.AuthLoginRequest + (*AuthLoginResponse)(nil), // 50: yoresee_doc.v1.AuthLoginResponse + (*AuthRegisterRequest)(nil), // 51: yoresee_doc.v1.AuthRegisterRequest + (*AuthRegisterResponse)(nil), // 52: yoresee_doc.v1.AuthRegisterResponse + (*UpdateProfileRequest)(nil), // 53: yoresee_doc.v1.UpdateProfileRequest + (*UpdateProfileResponse)(nil), // 54: yoresee_doc.v1.UpdateProfileResponse + (*QuerySideBarDisplayRequest)(nil), // 55: yoresee_doc.v1.QuerySideBarDisplayRequest + (*QuerySideBarDisplayResponse)(nil), // 56: yoresee_doc.v1.QuerySideBarDisplayResponse + (*QueryTopNavDisplayRequest)(nil), // 57: yoresee_doc.v1.QueryTopNavDisplayRequest + (*QueryTopNavDisplayResponse)(nil), // 58: yoresee_doc.v1.QueryTopNavDisplayResponse + (*DocumentResponse)(nil), // 59: yoresee_doc.v1.DocumentResponse + (*GetDocumentContentRequest)(nil), // 60: yoresee_doc.v1.GetDocumentContentRequest + (*GetDocumentContentResponse)(nil), // 61: yoresee_doc.v1.GetDocumentContentResponse + (*GetDocumentSettingsRequest)(nil), // 62: yoresee_doc.v1.GetDocumentSettingsRequest + (*GetDocumentSettingsResponse)(nil), // 63: yoresee_doc.v1.GetDocumentSettingsResponse + (*ListRecentDocumentsRequest)(nil), // 64: yoresee_doc.v1.ListRecentDocumentsRequest + (*ListRecentDocumentsResponse)(nil), // 65: yoresee_doc.v1.ListRecentDocumentsResponse + (*RecordRecentDocumentRequest)(nil), // 66: yoresee_doc.v1.RecordRecentDocumentRequest + (*RecordRecentDocumentResponse)(nil), // 67: yoresee_doc.v1.RecordRecentDocumentResponse + (*RecursiveOptions)(nil), // 68: yoresee_doc.v1.RecursiveOptions + (*TimeRange)(nil), // 69: yoresee_doc.v1.TimeRange + (*ListDocumentsRequest)(nil), // 70: yoresee_doc.v1.ListDocumentsRequest + (*ListDocumentsResponse)(nil), // 71: yoresee_doc.v1.ListDocumentsResponse + (*GetOwnDocumentsRequest)(nil), // 72: yoresee_doc.v1.GetOwnDocumentsRequest + (*GetOwnDocumentsResponse)(nil), // 73: yoresee_doc.v1.GetOwnDocumentsResponse + (*CreateDocumentRequest)(nil), // 74: yoresee_doc.v1.CreateDocumentRequest + (*CreateDocumentResponse)(nil), // 75: yoresee_doc.v1.CreateDocumentResponse + (*KnowledgeBaseResponse)(nil), // 76: yoresee_doc.v1.KnowledgeBaseResponse + (*ListKnowledgeBasesRequest)(nil), // 77: yoresee_doc.v1.ListKnowledgeBasesRequest + (*ListKnowledgeBasesResponse)(nil), // 78: yoresee_doc.v1.ListKnowledgeBasesResponse + (*CreateKnowledgeBaseRequest)(nil), // 79: yoresee_doc.v1.CreateKnowledgeBaseRequest + (*CreateKnowledgeBaseResponse)(nil), // 80: yoresee_doc.v1.CreateKnowledgeBaseResponse + (*GetKnowledgeBaseRequest)(nil), // 81: yoresee_doc.v1.GetKnowledgeBaseRequest + (*GetKnowledgeBaseResponse)(nil), // 82: yoresee_doc.v1.GetKnowledgeBaseResponse + (*UserResponse)(nil), // 83: yoresee_doc.v1.UserResponse + (*InvitationResponse)(nil), // 84: yoresee_doc.v1.InvitationResponse + (*InvitationRecordResponse)(nil), // 85: yoresee_doc.v1.InvitationRecordResponse + (*ListInvitationsRequest)(nil), // 86: yoresee_doc.v1.ListInvitationsRequest + (*ListInvitationsResponse)(nil), // 87: yoresee_doc.v1.ListInvitationsResponse + (*CreateInvitationRequest)(nil), // 88: yoresee_doc.v1.CreateInvitationRequest + (*CreateInvitationResponse)(nil), // 89: yoresee_doc.v1.CreateInvitationResponse + (*UpdateInvitationRequest)(nil), // 90: yoresee_doc.v1.UpdateInvitationRequest + (*UpdateInvitationResponse)(nil), // 91: yoresee_doc.v1.UpdateInvitationResponse + (*DeleteInvitationRequest)(nil), // 92: yoresee_doc.v1.DeleteInvitationRequest + (*DeleteInvitationResponse)(nil), // 93: yoresee_doc.v1.DeleteInvitationResponse + (*ListInvitationRecordsRequest)(nil), // 94: yoresee_doc.v1.ListInvitationRecordsRequest + (*ListInvitationRecordsResponse)(nil), // 95: yoresee_doc.v1.ListInvitationRecordsResponse + (*Notification)(nil), // 96: yoresee_doc.v1.Notification + (*CreateNotificationRequest)(nil), // 97: yoresee_doc.v1.CreateNotificationRequest + (*CreateNotificationResponse)(nil), // 98: yoresee_doc.v1.CreateNotificationResponse + (*ListNotificationsRequest)(nil), // 99: yoresee_doc.v1.ListNotificationsRequest + (*ListNotificationsResponse)(nil), // 100: yoresee_doc.v1.ListNotificationsResponse + (*MarkNotificationsReadRequest)(nil), // 101: yoresee_doc.v1.MarkNotificationsReadRequest + (*MarkNotificationsReadResponse)(nil), // 102: yoresee_doc.v1.MarkNotificationsReadResponse + (*MarkAllNotificationsReadRequest)(nil), // 103: yoresee_doc.v1.MarkAllNotificationsReadRequest + (*MarkAllNotificationsReadResponse)(nil), // 104: yoresee_doc.v1.MarkAllNotificationsReadResponse + (*UpdateDocumentRequest)(nil), // 105: yoresee_doc.v1.UpdateDocumentRequest + (*DocumentComment)(nil), // 106: yoresee_doc.v1.DocumentComment + (*CreateDocumentCommentRequest)(nil), // 107: yoresee_doc.v1.CreateDocumentCommentRequest + (*CreateDocumentCommentResponse)(nil), // 108: yoresee_doc.v1.CreateDocumentCommentResponse + (*ListDocumentCommentsRequest)(nil), // 109: yoresee_doc.v1.ListDocumentCommentsRequest + (*ListDocumentCommentsResponse)(nil), // 110: yoresee_doc.v1.ListDocumentCommentsResponse + (*DeleteDocumentCommentRequest)(nil), // 111: yoresee_doc.v1.DeleteDocumentCommentRequest + (*DeleteDocumentCommentResponse)(nil), // 112: yoresee_doc.v1.DeleteDocumentCommentResponse + (*UpdateDocumentCommentRequest)(nil), // 113: yoresee_doc.v1.UpdateDocumentCommentRequest + (*UpdateDocumentCommentResponse)(nil), // 114: yoresee_doc.v1.UpdateDocumentCommentResponse + (*UpdateDocumentResponse)(nil), // 115: yoresee_doc.v1.UpdateDocumentResponse + (*UpdateDocumentMetaRequest)(nil), // 116: yoresee_doc.v1.UpdateDocumentMetaRequest + (*UpdateDocumentMetaResponse)(nil), // 117: yoresee_doc.v1.UpdateDocumentMetaResponse + (*UpdateDocumentSettingsRequest)(nil), // 118: yoresee_doc.v1.UpdateDocumentSettingsRequest + (*UpdateDocumentSettingsResponse)(nil), // 119: yoresee_doc.v1.UpdateDocumentSettingsResponse + (*AttachmentResponse)(nil), // 120: yoresee_doc.v1.AttachmentResponse + (*UploadDocumentAttachmentRequest)(nil), // 121: yoresee_doc.v1.UploadDocumentAttachmentRequest + (*UploadDocumentAttachmentResponse)(nil), // 122: yoresee_doc.v1.UploadDocumentAttachmentResponse + (*ListDocumentAttachmentsRequest)(nil), // 123: yoresee_doc.v1.ListDocumentAttachmentsRequest + (*ListDocumentAttachmentsResponse)(nil), // 124: yoresee_doc.v1.ListDocumentAttachmentsResponse + (*DeleteDocumentAttachmentRequest)(nil), // 125: yoresee_doc.v1.DeleteDocumentAttachmentRequest + (*DeleteDocumentAttachmentResponse)(nil), // 126: yoresee_doc.v1.DeleteDocumentAttachmentResponse + (*DocumentVersionResponse)(nil), // 127: yoresee_doc.v1.DocumentVersionResponse + (*ListDocumentVersionsRequest)(nil), // 128: yoresee_doc.v1.ListDocumentVersionsRequest + (*ListDocumentVersionsResponse)(nil), // 129: yoresee_doc.v1.ListDocumentVersionsResponse + (*GetDocumentVersionContentRequest)(nil), // 130: yoresee_doc.v1.GetDocumentVersionContentRequest + (*GetDocumentVersionContentResponse)(nil), // 131: yoresee_doc.v1.GetDocumentVersionContentResponse + (*GetDocumentYjsSnapshotRequest)(nil), // 132: yoresee_doc.v1.GetDocumentYjsSnapshotRequest + (*GetDocumentYjsSnapshotResponse)(nil), // 133: yoresee_doc.v1.GetDocumentYjsSnapshotResponse + (*SaveDocumentYjsSnapshotRequest)(nil), // 134: yoresee_doc.v1.SaveDocumentYjsSnapshotRequest + (*SaveDocumentYjsSnapshotResponse)(nil), // 135: yoresee_doc.v1.SaveDocumentYjsSnapshotResponse + (*ListRecentKnowledgeBasesRequest)(nil), // 136: yoresee_doc.v1.ListRecentKnowledgeBasesRequest + (*ListRecentKnowledgeBasesResponse)(nil), // 137: yoresee_doc.v1.ListRecentKnowledgeBasesResponse + (*CreateTemplateRequest)(nil), // 138: yoresee_doc.v1.CreateTemplateRequest + (*CreateTemplateResponse)(nil), // 139: yoresee_doc.v1.CreateTemplateResponse + (*TemplateResponse)(nil), // 140: yoresee_doc.v1.TemplateResponse + (*ListTemplatesRequest)(nil), // 141: yoresee_doc.v1.ListTemplatesRequest + (*ListTemplatesResponse)(nil), // 142: yoresee_doc.v1.ListTemplatesResponse + (*GetTemplateRequest)(nil), // 143: yoresee_doc.v1.GetTemplateRequest + (*GetTemplateResponse)(nil), // 144: yoresee_doc.v1.GetTemplateResponse + (*UpdateTemplateSettingsRequest)(nil), // 145: yoresee_doc.v1.UpdateTemplateSettingsRequest + (*UpdateTemplateSettingsResponse)(nil), // 146: yoresee_doc.v1.UpdateTemplateSettingsResponse + (*DeleteDocumentRequest)(nil), // 147: yoresee_doc.v1.DeleteDocumentRequest + (*DeleteDocumentResponse)(nil), // 148: yoresee_doc.v1.DeleteDocumentResponse + (*ListRecentTemplatesRequest)(nil), // 149: yoresee_doc.v1.ListRecentTemplatesRequest + (*ListRecentTemplatesResponse)(nil), // 150: yoresee_doc.v1.ListRecentTemplatesResponse +} +var file_yoresee_doc_v1_yoresee_doc_proto_depIdxs = []int32{ + 3, // 0: yoresee_doc.v1.HealthResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 1: yoresee_doc.v1.SystemInfoResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 9, // 2: yoresee_doc.v1.OrgNodeResponse.children:type_name -> yoresee_doc.v1.OrgNodeResponse + 3, // 3: yoresee_doc.v1.ListUserGroupsResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 8, // 4: yoresee_doc.v1.ListUserGroupsResponse.user_groups:type_name -> yoresee_doc.v1.UserGroupResponse + 3, // 5: yoresee_doc.v1.GetUserGroupResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 8, // 6: yoresee_doc.v1.GetUserGroupResponse.user_group:type_name -> yoresee_doc.v1.UserGroupResponse + 3, // 7: yoresee_doc.v1.CreateUserGroupResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 8: yoresee_doc.v1.UpdateUserGroupResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 9: yoresee_doc.v1.DeleteUserGroupResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 10: yoresee_doc.v1.ListUsersResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 83, // 11: yoresee_doc.v1.ListUsersResponse.users:type_name -> yoresee_doc.v1.UserResponse + 3, // 12: yoresee_doc.v1.ListUserGroupMembersResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 83, // 13: yoresee_doc.v1.ListUserGroupMembersResponse.users:type_name -> yoresee_doc.v1.UserResponse + 3, // 14: yoresee_doc.v1.ListOrgNodesResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 9, // 15: yoresee_doc.v1.ListOrgNodesResponse.org_nodes:type_name -> yoresee_doc.v1.OrgNodeResponse + 3, // 16: yoresee_doc.v1.GetOrgNodeResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 9, // 17: yoresee_doc.v1.GetOrgNodeResponse.org_node:type_name -> yoresee_doc.v1.OrgNodeResponse + 3, // 18: yoresee_doc.v1.CreateOrgNodeResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 19: yoresee_doc.v1.UpdateOrgNodeResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 20: yoresee_doc.v1.DeleteOrgNodeResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 21: yoresee_doc.v1.MoveOrgNodeResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 22: yoresee_doc.v1.ListOrgNodeMembersResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 83, // 23: yoresee_doc.v1.ListOrgNodeMembersResponse.users:type_name -> yoresee_doc.v1.UserResponse + 38, // 24: yoresee_doc.v1.SettingUI.options:type_name -> yoresee_doc.v1.SettingOption + 39, // 25: yoresee_doc.v1.SettingItem.ui:type_name -> yoresee_doc.v1.SettingUI + 40, // 26: yoresee_doc.v1.SettingGroup.items:type_name -> yoresee_doc.v1.SettingItem + 3, // 27: yoresee_doc.v1.GetSettingsResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 41, // 28: yoresee_doc.v1.GetSettingsResponse.groups:type_name -> yoresee_doc.v1.SettingGroup + 44, // 29: yoresee_doc.v1.UpdateSettingsRequest.updates:type_name -> yoresee_doc.v1.SettingUpdate + 3, // 30: yoresee_doc.v1.UpdateSettingsResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 31: yoresee_doc.v1.UpdateUserResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 32: yoresee_doc.v1.AuthLoginResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 83, // 33: yoresee_doc.v1.AuthLoginResponse.user:type_name -> yoresee_doc.v1.UserResponse + 3, // 34: yoresee_doc.v1.AuthRegisterResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 35: yoresee_doc.v1.UpdateProfileResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 83, // 36: yoresee_doc.v1.UpdateProfileResponse.user:type_name -> yoresee_doc.v1.UserResponse + 3, // 37: yoresee_doc.v1.QuerySideBarDisplayResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 38: yoresee_doc.v1.QueryTopNavDisplayResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 0, // 39: yoresee_doc.v1.DocumentResponse.type:type_name -> yoresee_doc.v1.DocumentType + 59, // 40: yoresee_doc.v1.DocumentResponse.children:type_name -> yoresee_doc.v1.DocumentResponse + 3, // 41: yoresee_doc.v1.GetDocumentContentResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 59, // 42: yoresee_doc.v1.GetDocumentContentResponse.document:type_name -> yoresee_doc.v1.DocumentResponse + 3, // 43: yoresee_doc.v1.GetDocumentSettingsResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 44: yoresee_doc.v1.ListRecentDocumentsResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 59, // 45: yoresee_doc.v1.ListRecentDocumentsResponse.documents:type_name -> yoresee_doc.v1.DocumentResponse + 3, // 46: yoresee_doc.v1.RecordRecentDocumentResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 69, // 47: yoresee_doc.v1.ListDocumentsRequest.create_time_range:type_name -> yoresee_doc.v1.TimeRange + 69, // 48: yoresee_doc.v1.ListDocumentsRequest.update_time_range:type_name -> yoresee_doc.v1.TimeRange + 68, // 49: yoresee_doc.v1.ListDocumentsRequest.options:type_name -> yoresee_doc.v1.RecursiveOptions + 3, // 50: yoresee_doc.v1.ListDocumentsResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 59, // 51: yoresee_doc.v1.ListDocumentsResponse.documents:type_name -> yoresee_doc.v1.DocumentResponse + 3, // 52: yoresee_doc.v1.GetOwnDocumentsResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 59, // 53: yoresee_doc.v1.GetOwnDocumentsResponse.documents:type_name -> yoresee_doc.v1.DocumentResponse + 0, // 54: yoresee_doc.v1.CreateDocumentRequest.type:type_name -> yoresee_doc.v1.DocumentType + 1, // 55: yoresee_doc.v1.CreateDocumentRequest.container_type:type_name -> yoresee_doc.v1.CreateDocumentContainerType + 3, // 56: yoresee_doc.v1.CreateDocumentResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 69, // 57: yoresee_doc.v1.ListKnowledgeBasesRequest.create_time_range:type_name -> yoresee_doc.v1.TimeRange + 69, // 58: yoresee_doc.v1.ListKnowledgeBasesRequest.update_time_range:type_name -> yoresee_doc.v1.TimeRange + 3, // 59: yoresee_doc.v1.ListKnowledgeBasesResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 76, // 60: yoresee_doc.v1.ListKnowledgeBasesResponse.knowledge_bases:type_name -> yoresee_doc.v1.KnowledgeBaseResponse + 3, // 61: yoresee_doc.v1.CreateKnowledgeBaseResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 62: yoresee_doc.v1.GetKnowledgeBaseResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 76, // 63: yoresee_doc.v1.GetKnowledgeBaseResponse.knowledge_base:type_name -> yoresee_doc.v1.KnowledgeBaseResponse + 59, // 64: yoresee_doc.v1.GetKnowledgeBaseResponse.documents:type_name -> yoresee_doc.v1.DocumentResponse + 3, // 65: yoresee_doc.v1.ListInvitationsResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 84, // 66: yoresee_doc.v1.ListInvitationsResponse.invitations:type_name -> yoresee_doc.v1.InvitationResponse + 3, // 67: yoresee_doc.v1.CreateInvitationResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 84, // 68: yoresee_doc.v1.CreateInvitationResponse.invitation:type_name -> yoresee_doc.v1.InvitationResponse + 3, // 69: yoresee_doc.v1.UpdateInvitationResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 70: yoresee_doc.v1.DeleteInvitationResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 71: yoresee_doc.v1.ListInvitationRecordsResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 85, // 72: yoresee_doc.v1.ListInvitationRecordsResponse.records:type_name -> yoresee_doc.v1.InvitationRecordResponse + 3, // 73: yoresee_doc.v1.CreateNotificationResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 74: yoresee_doc.v1.ListNotificationsResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 96, // 75: yoresee_doc.v1.ListNotificationsResponse.notifications:type_name -> yoresee_doc.v1.Notification + 3, // 76: yoresee_doc.v1.MarkNotificationsReadResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 77: yoresee_doc.v1.MarkAllNotificationsReadResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 1, // 78: yoresee_doc.v1.UpdateDocumentRequest.move_to_container:type_name -> yoresee_doc.v1.CreateDocumentContainerType + 3, // 79: yoresee_doc.v1.CreateDocumentCommentResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 106, // 80: yoresee_doc.v1.CreateDocumentCommentResponse.comment:type_name -> yoresee_doc.v1.DocumentComment + 3, // 81: yoresee_doc.v1.ListDocumentCommentsResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 106, // 82: yoresee_doc.v1.ListDocumentCommentsResponse.comments:type_name -> yoresee_doc.v1.DocumentComment + 3, // 83: yoresee_doc.v1.DeleteDocumentCommentResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 84: yoresee_doc.v1.UpdateDocumentCommentResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 106, // 85: yoresee_doc.v1.UpdateDocumentCommentResponse.comment:type_name -> yoresee_doc.v1.DocumentComment + 3, // 86: yoresee_doc.v1.UpdateDocumentResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 87: yoresee_doc.v1.UpdateDocumentMetaResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 88: yoresee_doc.v1.UpdateDocumentSettingsResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 89: yoresee_doc.v1.UploadDocumentAttachmentResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 120, // 90: yoresee_doc.v1.UploadDocumentAttachmentResponse.attachment:type_name -> yoresee_doc.v1.AttachmentResponse + 3, // 91: yoresee_doc.v1.ListDocumentAttachmentsResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 120, // 92: yoresee_doc.v1.ListDocumentAttachmentsResponse.attachments:type_name -> yoresee_doc.v1.AttachmentResponse + 3, // 93: yoresee_doc.v1.DeleteDocumentAttachmentResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 94: yoresee_doc.v1.ListDocumentVersionsResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 127, // 95: yoresee_doc.v1.ListDocumentVersionsResponse.versions:type_name -> yoresee_doc.v1.DocumentVersionResponse + 3, // 96: yoresee_doc.v1.GetDocumentVersionContentResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 127, // 97: yoresee_doc.v1.GetDocumentVersionContentResponse.version:type_name -> yoresee_doc.v1.DocumentVersionResponse + 3, // 98: yoresee_doc.v1.GetDocumentYjsSnapshotResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 99: yoresee_doc.v1.SaveDocumentYjsSnapshotResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 100: yoresee_doc.v1.ListRecentKnowledgeBasesResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 76, // 101: yoresee_doc.v1.ListRecentKnowledgeBasesResponse.knowledge_bases:type_name -> yoresee_doc.v1.KnowledgeBaseResponse + 2, // 102: yoresee_doc.v1.CreateTemplateRequest.target_container:type_name -> yoresee_doc.v1.CreateTemplateContainer + 0, // 103: yoresee_doc.v1.CreateTemplateRequest.type:type_name -> yoresee_doc.v1.DocumentType + 3, // 104: yoresee_doc.v1.CreateTemplateResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 0, // 105: yoresee_doc.v1.TemplateResponse.type:type_name -> yoresee_doc.v1.DocumentType + 2, // 106: yoresee_doc.v1.ListTemplatesRequest.target_container:type_name -> yoresee_doc.v1.CreateTemplateContainer + 0, // 107: yoresee_doc.v1.ListTemplatesRequest.type:type_name -> yoresee_doc.v1.DocumentType + 3, // 108: yoresee_doc.v1.ListTemplatesResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 140, // 109: yoresee_doc.v1.ListTemplatesResponse.templates:type_name -> yoresee_doc.v1.TemplateResponse + 3, // 110: yoresee_doc.v1.GetTemplateResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 140, // 111: yoresee_doc.v1.GetTemplateResponse.template:type_name -> yoresee_doc.v1.TemplateResponse + 3, // 112: yoresee_doc.v1.UpdateTemplateSettingsResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 113: yoresee_doc.v1.DeleteDocumentResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 3, // 114: yoresee_doc.v1.ListRecentTemplatesResponse.base:type_name -> yoresee_doc.v1.BaseResponse + 140, // 115: yoresee_doc.v1.ListRecentTemplatesResponse.templates:type_name -> yoresee_doc.v1.TemplateResponse + 49, // 116: yoresee_doc.v1.AuthService.Login:input_type -> yoresee_doc.v1.AuthLoginRequest + 51, // 117: yoresee_doc.v1.AuthService.Register:input_type -> yoresee_doc.v1.AuthRegisterRequest + 53, // 118: yoresee_doc.v1.AuthService.UpdateProfile:input_type -> yoresee_doc.v1.UpdateProfileRequest + 55, // 119: yoresee_doc.v1.AuthService.QuerySideBarDisplay:input_type -> yoresee_doc.v1.QuerySideBarDisplayRequest + 57, // 120: yoresee_doc.v1.AuthService.QueryTopNavDisplay:input_type -> yoresee_doc.v1.QueryTopNavDisplayRequest + 70, // 121: yoresee_doc.v1.DocumentService.ListDocuments:input_type -> yoresee_doc.v1.ListDocumentsRequest + 60, // 122: yoresee_doc.v1.DocumentService.GetDocumentContent:input_type -> yoresee_doc.v1.GetDocumentContentRequest + 62, // 123: yoresee_doc.v1.DocumentService.GetDocumentSettings:input_type -> yoresee_doc.v1.GetDocumentSettingsRequest + 64, // 124: yoresee_doc.v1.DocumentService.ListRecentDocuments:input_type -> yoresee_doc.v1.ListRecentDocumentsRequest + 66, // 125: yoresee_doc.v1.DocumentService.RecordRecentDocument:input_type -> yoresee_doc.v1.RecordRecentDocumentRequest + 132, // 126: yoresee_doc.v1.DocumentService.GetDocumentYjsSnapshot:input_type -> yoresee_doc.v1.GetDocumentYjsSnapshotRequest + 134, // 127: yoresee_doc.v1.DocumentService.SaveDocumentYjsSnapshot:input_type -> yoresee_doc.v1.SaveDocumentYjsSnapshotRequest + 72, // 128: yoresee_doc.v1.DocumentService.GetOwnDocuments:input_type -> yoresee_doc.v1.GetOwnDocumentsRequest + 74, // 129: yoresee_doc.v1.DocumentService.CreateDocument:input_type -> yoresee_doc.v1.CreateDocumentRequest + 105, // 130: yoresee_doc.v1.DocumentService.UpdateDocument:input_type -> yoresee_doc.v1.UpdateDocumentRequest + 116, // 131: yoresee_doc.v1.DocumentService.UpdateDocumentMeta:input_type -> yoresee_doc.v1.UpdateDocumentMetaRequest + 118, // 132: yoresee_doc.v1.DocumentService.UpdateDocumentSettings:input_type -> yoresee_doc.v1.UpdateDocumentSettingsRequest + 121, // 133: yoresee_doc.v1.DocumentService.UploadDocumentAttachment:input_type -> yoresee_doc.v1.UploadDocumentAttachmentRequest + 123, // 134: yoresee_doc.v1.DocumentService.ListDocumentAttachments:input_type -> yoresee_doc.v1.ListDocumentAttachmentsRequest + 125, // 135: yoresee_doc.v1.DocumentService.DeleteDocumentAttachment:input_type -> yoresee_doc.v1.DeleteDocumentAttachmentRequest + 128, // 136: yoresee_doc.v1.DocumentService.ListDocumentVersions:input_type -> yoresee_doc.v1.ListDocumentVersionsRequest + 130, // 137: yoresee_doc.v1.DocumentService.GetDocumentVersionContent:input_type -> yoresee_doc.v1.GetDocumentVersionContentRequest + 138, // 138: yoresee_doc.v1.DocumentService.CreateTemplate:input_type -> yoresee_doc.v1.CreateTemplateRequest + 141, // 139: yoresee_doc.v1.DocumentService.ListTemplates:input_type -> yoresee_doc.v1.ListTemplatesRequest + 149, // 140: yoresee_doc.v1.DocumentService.ListRecentTemplates:input_type -> yoresee_doc.v1.ListRecentTemplatesRequest + 143, // 141: yoresee_doc.v1.DocumentService.GetTemplate:input_type -> yoresee_doc.v1.GetTemplateRequest + 145, // 142: yoresee_doc.v1.DocumentService.UpdateTemplateSettings:input_type -> yoresee_doc.v1.UpdateTemplateSettingsRequest + 147, // 143: yoresee_doc.v1.DocumentService.DeleteDocument:input_type -> yoresee_doc.v1.DeleteDocumentRequest + 107, // 144: yoresee_doc.v1.CommentService.CreateDocumentComment:input_type -> yoresee_doc.v1.CreateDocumentCommentRequest + 109, // 145: yoresee_doc.v1.CommentService.ListDocumentComments:input_type -> yoresee_doc.v1.ListDocumentCommentsRequest + 111, // 146: yoresee_doc.v1.CommentService.DeleteDocumentComment:input_type -> yoresee_doc.v1.DeleteDocumentCommentRequest + 113, // 147: yoresee_doc.v1.CommentService.UpdateDocumentComment:input_type -> yoresee_doc.v1.UpdateDocumentCommentRequest + 77, // 148: yoresee_doc.v1.KnowledgeBaseService.ListKnowledgeBases:input_type -> yoresee_doc.v1.ListKnowledgeBasesRequest + 81, // 149: yoresee_doc.v1.KnowledgeBaseService.GetKnowledgeBase:input_type -> yoresee_doc.v1.GetKnowledgeBaseRequest + 79, // 150: yoresee_doc.v1.KnowledgeBaseService.CreateKnowledgeBase:input_type -> yoresee_doc.v1.CreateKnowledgeBaseRequest + 136, // 151: yoresee_doc.v1.KnowledgeBaseService.ListRecentKnowledgeBases:input_type -> yoresee_doc.v1.ListRecentKnowledgeBasesRequest + 4, // 152: yoresee_doc.v1.SystemService.Health:input_type -> yoresee_doc.v1.HealthRequest + 6, // 153: yoresee_doc.v1.SystemService.SystemInfo:input_type -> yoresee_doc.v1.SystemInfoRequest + 42, // 154: yoresee_doc.v1.SettingService.GetSettings:input_type -> yoresee_doc.v1.GetSettingsRequest + 45, // 155: yoresee_doc.v1.SettingService.UpdateSettings:input_type -> yoresee_doc.v1.UpdateSettingsRequest + 10, // 156: yoresee_doc.v1.MembershipService.ListUserGroups:input_type -> yoresee_doc.v1.ListUserGroupsRequest + 12, // 157: yoresee_doc.v1.MembershipService.GetUserGroup:input_type -> yoresee_doc.v1.GetUserGroupRequest + 14, // 158: yoresee_doc.v1.MembershipService.CreateUserGroup:input_type -> yoresee_doc.v1.CreateUserGroupRequest + 16, // 159: yoresee_doc.v1.MembershipService.UpdateUserGroup:input_type -> yoresee_doc.v1.UpdateUserGroupRequest + 18, // 160: yoresee_doc.v1.MembershipService.DeleteUserGroup:input_type -> yoresee_doc.v1.DeleteUserGroupRequest + 20, // 161: yoresee_doc.v1.MembershipService.ListUsers:input_type -> yoresee_doc.v1.ListUsersRequest + 47, // 162: yoresee_doc.v1.MembershipService.UpdateUser:input_type -> yoresee_doc.v1.UpdateUserRequest + 22, // 163: yoresee_doc.v1.MembershipService.ListUserGroupMembers:input_type -> yoresee_doc.v1.ListUserGroupMembersRequest + 24, // 164: yoresee_doc.v1.MembershipService.ListOrgNodes:input_type -> yoresee_doc.v1.ListOrgNodesRequest + 26, // 165: yoresee_doc.v1.MembershipService.GetOrgNode:input_type -> yoresee_doc.v1.GetOrgNodeRequest + 28, // 166: yoresee_doc.v1.MembershipService.CreateOrgNode:input_type -> yoresee_doc.v1.CreateOrgNodeRequest + 30, // 167: yoresee_doc.v1.MembershipService.UpdateOrgNode:input_type -> yoresee_doc.v1.UpdateOrgNodeRequest + 32, // 168: yoresee_doc.v1.MembershipService.DeleteOrgNode:input_type -> yoresee_doc.v1.DeleteOrgNodeRequest + 34, // 169: yoresee_doc.v1.MembershipService.MoveOrgNode:input_type -> yoresee_doc.v1.MoveOrgNodeRequest + 36, // 170: yoresee_doc.v1.MembershipService.ListOrgNodeMembers:input_type -> yoresee_doc.v1.ListOrgNodeMembersRequest + 88, // 171: yoresee_doc.v1.InvitationService.CreateInvitation:input_type -> yoresee_doc.v1.CreateInvitationRequest + 86, // 172: yoresee_doc.v1.InvitationService.ListInvitations:input_type -> yoresee_doc.v1.ListInvitationsRequest + 90, // 173: yoresee_doc.v1.InvitationService.UpdateInvitation:input_type -> yoresee_doc.v1.UpdateInvitationRequest + 92, // 174: yoresee_doc.v1.InvitationService.DeleteInvitation:input_type -> yoresee_doc.v1.DeleteInvitationRequest + 94, // 175: yoresee_doc.v1.InvitationService.ListInvitationRecords:input_type -> yoresee_doc.v1.ListInvitationRecordsRequest + 97, // 176: yoresee_doc.v1.NotificationService.CreateNotification:input_type -> yoresee_doc.v1.CreateNotificationRequest + 99, // 177: yoresee_doc.v1.NotificationService.ListNotifications:input_type -> yoresee_doc.v1.ListNotificationsRequest + 101, // 178: yoresee_doc.v1.NotificationService.MarkNotificationsRead:input_type -> yoresee_doc.v1.MarkNotificationsReadRequest + 103, // 179: yoresee_doc.v1.NotificationService.MarkAllNotificationsRead:input_type -> yoresee_doc.v1.MarkAllNotificationsReadRequest + 50, // 180: yoresee_doc.v1.AuthService.Login:output_type -> yoresee_doc.v1.AuthLoginResponse + 52, // 181: yoresee_doc.v1.AuthService.Register:output_type -> yoresee_doc.v1.AuthRegisterResponse + 54, // 182: yoresee_doc.v1.AuthService.UpdateProfile:output_type -> yoresee_doc.v1.UpdateProfileResponse + 56, // 183: yoresee_doc.v1.AuthService.QuerySideBarDisplay:output_type -> yoresee_doc.v1.QuerySideBarDisplayResponse + 58, // 184: yoresee_doc.v1.AuthService.QueryTopNavDisplay:output_type -> yoresee_doc.v1.QueryTopNavDisplayResponse + 71, // 185: yoresee_doc.v1.DocumentService.ListDocuments:output_type -> yoresee_doc.v1.ListDocumentsResponse + 61, // 186: yoresee_doc.v1.DocumentService.GetDocumentContent:output_type -> yoresee_doc.v1.GetDocumentContentResponse + 63, // 187: yoresee_doc.v1.DocumentService.GetDocumentSettings:output_type -> yoresee_doc.v1.GetDocumentSettingsResponse + 65, // 188: yoresee_doc.v1.DocumentService.ListRecentDocuments:output_type -> yoresee_doc.v1.ListRecentDocumentsResponse + 67, // 189: yoresee_doc.v1.DocumentService.RecordRecentDocument:output_type -> yoresee_doc.v1.RecordRecentDocumentResponse + 133, // 190: yoresee_doc.v1.DocumentService.GetDocumentYjsSnapshot:output_type -> yoresee_doc.v1.GetDocumentYjsSnapshotResponse + 135, // 191: yoresee_doc.v1.DocumentService.SaveDocumentYjsSnapshot:output_type -> yoresee_doc.v1.SaveDocumentYjsSnapshotResponse + 73, // 192: yoresee_doc.v1.DocumentService.GetOwnDocuments:output_type -> yoresee_doc.v1.GetOwnDocumentsResponse + 75, // 193: yoresee_doc.v1.DocumentService.CreateDocument:output_type -> yoresee_doc.v1.CreateDocumentResponse + 115, // 194: yoresee_doc.v1.DocumentService.UpdateDocument:output_type -> yoresee_doc.v1.UpdateDocumentResponse + 117, // 195: yoresee_doc.v1.DocumentService.UpdateDocumentMeta:output_type -> yoresee_doc.v1.UpdateDocumentMetaResponse + 119, // 196: yoresee_doc.v1.DocumentService.UpdateDocumentSettings:output_type -> yoresee_doc.v1.UpdateDocumentSettingsResponse + 122, // 197: yoresee_doc.v1.DocumentService.UploadDocumentAttachment:output_type -> yoresee_doc.v1.UploadDocumentAttachmentResponse + 124, // 198: yoresee_doc.v1.DocumentService.ListDocumentAttachments:output_type -> yoresee_doc.v1.ListDocumentAttachmentsResponse + 126, // 199: yoresee_doc.v1.DocumentService.DeleteDocumentAttachment:output_type -> yoresee_doc.v1.DeleteDocumentAttachmentResponse + 129, // 200: yoresee_doc.v1.DocumentService.ListDocumentVersions:output_type -> yoresee_doc.v1.ListDocumentVersionsResponse + 131, // 201: yoresee_doc.v1.DocumentService.GetDocumentVersionContent:output_type -> yoresee_doc.v1.GetDocumentVersionContentResponse + 139, // 202: yoresee_doc.v1.DocumentService.CreateTemplate:output_type -> yoresee_doc.v1.CreateTemplateResponse + 142, // 203: yoresee_doc.v1.DocumentService.ListTemplates:output_type -> yoresee_doc.v1.ListTemplatesResponse + 150, // 204: yoresee_doc.v1.DocumentService.ListRecentTemplates:output_type -> yoresee_doc.v1.ListRecentTemplatesResponse + 144, // 205: yoresee_doc.v1.DocumentService.GetTemplate:output_type -> yoresee_doc.v1.GetTemplateResponse + 146, // 206: yoresee_doc.v1.DocumentService.UpdateTemplateSettings:output_type -> yoresee_doc.v1.UpdateTemplateSettingsResponse + 148, // 207: yoresee_doc.v1.DocumentService.DeleteDocument:output_type -> yoresee_doc.v1.DeleteDocumentResponse + 108, // 208: yoresee_doc.v1.CommentService.CreateDocumentComment:output_type -> yoresee_doc.v1.CreateDocumentCommentResponse + 110, // 209: yoresee_doc.v1.CommentService.ListDocumentComments:output_type -> yoresee_doc.v1.ListDocumentCommentsResponse + 112, // 210: yoresee_doc.v1.CommentService.DeleteDocumentComment:output_type -> yoresee_doc.v1.DeleteDocumentCommentResponse + 114, // 211: yoresee_doc.v1.CommentService.UpdateDocumentComment:output_type -> yoresee_doc.v1.UpdateDocumentCommentResponse + 78, // 212: yoresee_doc.v1.KnowledgeBaseService.ListKnowledgeBases:output_type -> yoresee_doc.v1.ListKnowledgeBasesResponse + 82, // 213: yoresee_doc.v1.KnowledgeBaseService.GetKnowledgeBase:output_type -> yoresee_doc.v1.GetKnowledgeBaseResponse + 80, // 214: yoresee_doc.v1.KnowledgeBaseService.CreateKnowledgeBase:output_type -> yoresee_doc.v1.CreateKnowledgeBaseResponse + 137, // 215: yoresee_doc.v1.KnowledgeBaseService.ListRecentKnowledgeBases:output_type -> yoresee_doc.v1.ListRecentKnowledgeBasesResponse + 5, // 216: yoresee_doc.v1.SystemService.Health:output_type -> yoresee_doc.v1.HealthResponse + 7, // 217: yoresee_doc.v1.SystemService.SystemInfo:output_type -> yoresee_doc.v1.SystemInfoResponse + 43, // 218: yoresee_doc.v1.SettingService.GetSettings:output_type -> yoresee_doc.v1.GetSettingsResponse + 46, // 219: yoresee_doc.v1.SettingService.UpdateSettings:output_type -> yoresee_doc.v1.UpdateSettingsResponse + 11, // 220: yoresee_doc.v1.MembershipService.ListUserGroups:output_type -> yoresee_doc.v1.ListUserGroupsResponse + 13, // 221: yoresee_doc.v1.MembershipService.GetUserGroup:output_type -> yoresee_doc.v1.GetUserGroupResponse + 15, // 222: yoresee_doc.v1.MembershipService.CreateUserGroup:output_type -> yoresee_doc.v1.CreateUserGroupResponse + 17, // 223: yoresee_doc.v1.MembershipService.UpdateUserGroup:output_type -> yoresee_doc.v1.UpdateUserGroupResponse + 19, // 224: yoresee_doc.v1.MembershipService.DeleteUserGroup:output_type -> yoresee_doc.v1.DeleteUserGroupResponse + 21, // 225: yoresee_doc.v1.MembershipService.ListUsers:output_type -> yoresee_doc.v1.ListUsersResponse + 48, // 226: yoresee_doc.v1.MembershipService.UpdateUser:output_type -> yoresee_doc.v1.UpdateUserResponse + 23, // 227: yoresee_doc.v1.MembershipService.ListUserGroupMembers:output_type -> yoresee_doc.v1.ListUserGroupMembersResponse + 25, // 228: yoresee_doc.v1.MembershipService.ListOrgNodes:output_type -> yoresee_doc.v1.ListOrgNodesResponse + 27, // 229: yoresee_doc.v1.MembershipService.GetOrgNode:output_type -> yoresee_doc.v1.GetOrgNodeResponse + 29, // 230: yoresee_doc.v1.MembershipService.CreateOrgNode:output_type -> yoresee_doc.v1.CreateOrgNodeResponse + 31, // 231: yoresee_doc.v1.MembershipService.UpdateOrgNode:output_type -> yoresee_doc.v1.UpdateOrgNodeResponse + 33, // 232: yoresee_doc.v1.MembershipService.DeleteOrgNode:output_type -> yoresee_doc.v1.DeleteOrgNodeResponse + 35, // 233: yoresee_doc.v1.MembershipService.MoveOrgNode:output_type -> yoresee_doc.v1.MoveOrgNodeResponse + 37, // 234: yoresee_doc.v1.MembershipService.ListOrgNodeMembers:output_type -> yoresee_doc.v1.ListOrgNodeMembersResponse + 89, // 235: yoresee_doc.v1.InvitationService.CreateInvitation:output_type -> yoresee_doc.v1.CreateInvitationResponse + 87, // 236: yoresee_doc.v1.InvitationService.ListInvitations:output_type -> yoresee_doc.v1.ListInvitationsResponse + 91, // 237: yoresee_doc.v1.InvitationService.UpdateInvitation:output_type -> yoresee_doc.v1.UpdateInvitationResponse + 93, // 238: yoresee_doc.v1.InvitationService.DeleteInvitation:output_type -> yoresee_doc.v1.DeleteInvitationResponse + 95, // 239: yoresee_doc.v1.InvitationService.ListInvitationRecords:output_type -> yoresee_doc.v1.ListInvitationRecordsResponse + 98, // 240: yoresee_doc.v1.NotificationService.CreateNotification:output_type -> yoresee_doc.v1.CreateNotificationResponse + 100, // 241: yoresee_doc.v1.NotificationService.ListNotifications:output_type -> yoresee_doc.v1.ListNotificationsResponse + 102, // 242: yoresee_doc.v1.NotificationService.MarkNotificationsRead:output_type -> yoresee_doc.v1.MarkNotificationsReadResponse + 104, // 243: yoresee_doc.v1.NotificationService.MarkAllNotificationsRead:output_type -> yoresee_doc.v1.MarkAllNotificationsReadResponse + 180, // [180:244] is the sub-list for method output_type + 116, // [116:180] is the sub-list for method input_type + 116, // [116:116] is the sub-list for extension type_name + 116, // [116:116] is the sub-list for extension extendee + 0, // [0:116] is the sub-list for field type_name +} + +func init() { file_yoresee_doc_v1_yoresee_doc_proto_init() } +func file_yoresee_doc_v1_yoresee_doc_proto_init() { + if File_yoresee_doc_v1_yoresee_doc_proto != nil { + return + } + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[7].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[13].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[17].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[19].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[21].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[27].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[33].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[44].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[48].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[50].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[60].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[61].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[66].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[67].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[71].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[74].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[80].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[81].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[82].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[83].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[85].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[87].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[91].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[96].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[102].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[104].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[113].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[115].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[116].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[118].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[133].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[138].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[142].OneofWrappers = []any{} + file_yoresee_doc_v1_yoresee_doc_proto_msgTypes[146].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_yoresee_doc_v1_yoresee_doc_proto_rawDesc), len(file_yoresee_doc_v1_yoresee_doc_proto_rawDesc)), + NumEnums: 3, + NumMessages: 148, + NumExtensions: 0, + NumServices: 9, + }, + GoTypes: file_yoresee_doc_v1_yoresee_doc_proto_goTypes, + DependencyIndexes: file_yoresee_doc_v1_yoresee_doc_proto_depIdxs, + EnumInfos: file_yoresee_doc_v1_yoresee_doc_proto_enumTypes, + MessageInfos: file_yoresee_doc_v1_yoresee_doc_proto_msgTypes, + }.Build() + File_yoresee_doc_v1_yoresee_doc_proto = out.File + file_yoresee_doc_v1_yoresee_doc_proto_goTypes = nil + file_yoresee_doc_v1_yoresee_doc_proto_depIdxs = nil +} diff --git a/yoresee_doc/v1/yoresee_doc_grpc.pb.go b/yoresee_doc/v1/yoresee_doc_grpc.pb.go new file mode 100644 index 0000000..51616b9 --- /dev/null +++ b/yoresee_doc/v1/yoresee_doc_grpc.pb.go @@ -0,0 +1,3191 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.6.2 +// - protoc (unknown) +// source: yoresee_doc/v1/yoresee_doc.proto + +package yoreseedocpb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + AuthService_Login_FullMethodName = "/yoresee_doc.v1.AuthService/Login" + AuthService_Register_FullMethodName = "/yoresee_doc.v1.AuthService/Register" + AuthService_UpdateProfile_FullMethodName = "/yoresee_doc.v1.AuthService/UpdateProfile" + AuthService_QuerySideBarDisplay_FullMethodName = "/yoresee_doc.v1.AuthService/QuerySideBarDisplay" + AuthService_QueryTopNavDisplay_FullMethodName = "/yoresee_doc.v1.AuthService/QueryTopNavDisplay" +) + +// AuthServiceClient is the client API for AuthService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// authService provides authentication APIs. +type AuthServiceClient interface { + // login authenticates a user and returns a token. + Login(ctx context.Context, in *AuthLoginRequest, opts ...grpc.CallOption) (*AuthLoginResponse, error) + // register creates a new user account. + Register(ctx context.Context, in *AuthRegisterRequest, opts ...grpc.CallOption) (*AuthRegisterResponse, error) + // update current user profile. + UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*UpdateProfileResponse, error) + // query side bar visible tabs for scene. + QuerySideBarDisplay(ctx context.Context, in *QuerySideBarDisplayRequest, opts ...grpc.CallOption) (*QuerySideBarDisplayResponse, error) + // query top nav visible menus. + QueryTopNavDisplay(ctx context.Context, in *QueryTopNavDisplayRequest, opts ...grpc.CallOption) (*QueryTopNavDisplayResponse, error) +} + +type authServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient { + return &authServiceClient{cc} +} + +func (c *authServiceClient) Login(ctx context.Context, in *AuthLoginRequest, opts ...grpc.CallOption) (*AuthLoginResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(AuthLoginResponse) + err := c.cc.Invoke(ctx, AuthService_Login_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authServiceClient) Register(ctx context.Context, in *AuthRegisterRequest, opts ...grpc.CallOption) (*AuthRegisterResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(AuthRegisterResponse) + err := c.cc.Invoke(ctx, AuthService_Register_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authServiceClient) UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*UpdateProfileResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateProfileResponse) + err := c.cc.Invoke(ctx, AuthService_UpdateProfile_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authServiceClient) QuerySideBarDisplay(ctx context.Context, in *QuerySideBarDisplayRequest, opts ...grpc.CallOption) (*QuerySideBarDisplayResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QuerySideBarDisplayResponse) + err := c.cc.Invoke(ctx, AuthService_QuerySideBarDisplay_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authServiceClient) QueryTopNavDisplay(ctx context.Context, in *QueryTopNavDisplayRequest, opts ...grpc.CallOption) (*QueryTopNavDisplayResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryTopNavDisplayResponse) + err := c.cc.Invoke(ctx, AuthService_QueryTopNavDisplay_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AuthServiceServer is the server API for AuthService service. +// All implementations must embed UnimplementedAuthServiceServer +// for forward compatibility. +// +// authService provides authentication APIs. +type AuthServiceServer interface { + // login authenticates a user and returns a token. + Login(context.Context, *AuthLoginRequest) (*AuthLoginResponse, error) + // register creates a new user account. + Register(context.Context, *AuthRegisterRequest) (*AuthRegisterResponse, error) + // update current user profile. + UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileResponse, error) + // query side bar visible tabs for scene. + QuerySideBarDisplay(context.Context, *QuerySideBarDisplayRequest) (*QuerySideBarDisplayResponse, error) + // query top nav visible menus. + QueryTopNavDisplay(context.Context, *QueryTopNavDisplayRequest) (*QueryTopNavDisplayResponse, error) + mustEmbedUnimplementedAuthServiceServer() +} + +// UnimplementedAuthServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAuthServiceServer struct{} + +func (UnimplementedAuthServiceServer) Login(context.Context, *AuthLoginRequest) (*AuthLoginResponse, error) { + return nil, status.Error(codes.Unimplemented, "method Login not implemented") +} +func (UnimplementedAuthServiceServer) Register(context.Context, *AuthRegisterRequest) (*AuthRegisterResponse, error) { + return nil, status.Error(codes.Unimplemented, "method Register not implemented") +} +func (UnimplementedAuthServiceServer) UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileResponse, error) { + return nil, status.Error(codes.Unimplemented, "method UpdateProfile not implemented") +} +func (UnimplementedAuthServiceServer) QuerySideBarDisplay(context.Context, *QuerySideBarDisplayRequest) (*QuerySideBarDisplayResponse, error) { + return nil, status.Error(codes.Unimplemented, "method QuerySideBarDisplay not implemented") +} +func (UnimplementedAuthServiceServer) QueryTopNavDisplay(context.Context, *QueryTopNavDisplayRequest) (*QueryTopNavDisplayResponse, error) { + return nil, status.Error(codes.Unimplemented, "method QueryTopNavDisplay not implemented") +} +func (UnimplementedAuthServiceServer) mustEmbedUnimplementedAuthServiceServer() {} +func (UnimplementedAuthServiceServer) testEmbeddedByValue() {} + +// UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to AuthServiceServer will +// result in compilation errors. +type UnsafeAuthServiceServer interface { + mustEmbedUnimplementedAuthServiceServer() +} + +func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer) { + // If the following call panics, it indicates UnimplementedAuthServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&AuthService_ServiceDesc, srv) +} + +func _AuthService_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthLoginRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServiceServer).Login(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AuthService_Login_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServiceServer).Login(ctx, req.(*AuthLoginRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AuthService_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthRegisterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServiceServer).Register(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AuthService_Register_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServiceServer).Register(ctx, req.(*AuthRegisterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AuthService_UpdateProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateProfileRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServiceServer).UpdateProfile(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AuthService_UpdateProfile_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServiceServer).UpdateProfile(ctx, req.(*UpdateProfileRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AuthService_QuerySideBarDisplay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QuerySideBarDisplayRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServiceServer).QuerySideBarDisplay(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AuthService_QuerySideBarDisplay_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServiceServer).QuerySideBarDisplay(ctx, req.(*QuerySideBarDisplayRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AuthService_QueryTopNavDisplay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTopNavDisplayRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServiceServer).QueryTopNavDisplay(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AuthService_QueryTopNavDisplay_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServiceServer).QueryTopNavDisplay(ctx, req.(*QueryTopNavDisplayRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var AuthService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "yoresee_doc.v1.AuthService", + HandlerType: (*AuthServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Login", + Handler: _AuthService_Login_Handler, + }, + { + MethodName: "Register", + Handler: _AuthService_Register_Handler, + }, + { + MethodName: "UpdateProfile", + Handler: _AuthService_UpdateProfile_Handler, + }, + { + MethodName: "QuerySideBarDisplay", + Handler: _AuthService_QuerySideBarDisplay_Handler, + }, + { + MethodName: "QueryTopNavDisplay", + Handler: _AuthService_QueryTopNavDisplay_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yoresee_doc/v1/yoresee_doc.proto", +} + +const ( + DocumentService_ListDocuments_FullMethodName = "/yoresee_doc.v1.DocumentService/ListDocuments" + DocumentService_GetDocumentContent_FullMethodName = "/yoresee_doc.v1.DocumentService/GetDocumentContent" + DocumentService_GetDocumentSettings_FullMethodName = "/yoresee_doc.v1.DocumentService/GetDocumentSettings" + DocumentService_ListRecentDocuments_FullMethodName = "/yoresee_doc.v1.DocumentService/ListRecentDocuments" + DocumentService_RecordRecentDocument_FullMethodName = "/yoresee_doc.v1.DocumentService/RecordRecentDocument" + DocumentService_GetDocumentYjsSnapshot_FullMethodName = "/yoresee_doc.v1.DocumentService/GetDocumentYjsSnapshot" + DocumentService_SaveDocumentYjsSnapshot_FullMethodName = "/yoresee_doc.v1.DocumentService/SaveDocumentYjsSnapshot" + DocumentService_GetOwnDocuments_FullMethodName = "/yoresee_doc.v1.DocumentService/GetOwnDocuments" + DocumentService_CreateDocument_FullMethodName = "/yoresee_doc.v1.DocumentService/CreateDocument" + DocumentService_UpdateDocument_FullMethodName = "/yoresee_doc.v1.DocumentService/UpdateDocument" + DocumentService_UpdateDocumentMeta_FullMethodName = "/yoresee_doc.v1.DocumentService/UpdateDocumentMeta" + DocumentService_UpdateDocumentSettings_FullMethodName = "/yoresee_doc.v1.DocumentService/UpdateDocumentSettings" + DocumentService_UploadDocumentAttachment_FullMethodName = "/yoresee_doc.v1.DocumentService/UploadDocumentAttachment" + DocumentService_ListDocumentAttachments_FullMethodName = "/yoresee_doc.v1.DocumentService/ListDocumentAttachments" + DocumentService_DeleteDocumentAttachment_FullMethodName = "/yoresee_doc.v1.DocumentService/DeleteDocumentAttachment" + DocumentService_ListDocumentVersions_FullMethodName = "/yoresee_doc.v1.DocumentService/ListDocumentVersions" + DocumentService_GetDocumentVersionContent_FullMethodName = "/yoresee_doc.v1.DocumentService/GetDocumentVersionContent" + DocumentService_CreateTemplate_FullMethodName = "/yoresee_doc.v1.DocumentService/CreateTemplate" + DocumentService_ListTemplates_FullMethodName = "/yoresee_doc.v1.DocumentService/ListTemplates" + DocumentService_ListRecentTemplates_FullMethodName = "/yoresee_doc.v1.DocumentService/ListRecentTemplates" + DocumentService_GetTemplate_FullMethodName = "/yoresee_doc.v1.DocumentService/GetTemplate" + DocumentService_UpdateTemplateSettings_FullMethodName = "/yoresee_doc.v1.DocumentService/UpdateTemplateSettings" + DocumentService_DeleteDocument_FullMethodName = "/yoresee_doc.v1.DocumentService/DeleteDocument" +) + +// DocumentServiceClient is the client API for DocumentService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// documentService provides document APIs. +type DocumentServiceClient interface { + // listDocuments lists documents with filters and pagination. + ListDocuments(ctx context.Context, in *ListDocumentsRequest, opts ...grpc.CallOption) (*ListDocumentsResponse, error) + // getDocumentContent fetches a document with its content. + GetDocumentContent(ctx context.Context, in *GetDocumentContentRequest, opts ...grpc.CallOption) (*GetDocumentContentResponse, error) + // getDocumentSettings fetches document metadata for settings page. + GetDocumentSettings(ctx context.Context, in *GetDocumentSettingsRequest, opts ...grpc.CallOption) (*GetDocumentSettingsResponse, error) + // list recent documents for caller. + ListRecentDocuments(ctx context.Context, in *ListRecentDocumentsRequest, opts ...grpc.CallOption) (*ListRecentDocumentsResponse, error) + // record recent document for caller. + RecordRecentDocument(ctx context.Context, in *RecordRecentDocumentRequest, opts ...grpc.CallOption) (*RecordRecentDocumentResponse, error) + // getDocumentYjsSnapshot fetches yjs snapshot by document external id. + GetDocumentYjsSnapshot(ctx context.Context, in *GetDocumentYjsSnapshotRequest, opts ...grpc.CallOption) (*GetDocumentYjsSnapshotResponse, error) + // saveDocumentYjsSnapshot saves yjs snapshot state. + SaveDocumentYjsSnapshot(ctx context.Context, in *SaveDocumentYjsSnapshotRequest, opts ...grpc.CallOption) (*SaveDocumentYjsSnapshotResponse, error) + // getOwnDocuments lists documents owned by the caller. + GetOwnDocuments(ctx context.Context, in *GetOwnDocumentsRequest, opts ...grpc.CallOption) (*GetOwnDocumentsResponse, error) + // createDocument creates a new document. + CreateDocument(ctx context.Context, in *CreateDocumentRequest, opts ...grpc.CallOption) (*CreateDocumentResponse, error) + // updateDocument updates an existing document. + UpdateDocument(ctx context.Context, in *UpdateDocumentRequest, opts ...grpc.CallOption) (*UpdateDocumentResponse, error) + // updateDocumentMeta updates document metadata without changing content. + UpdateDocumentMeta(ctx context.Context, in *UpdateDocumentMetaRequest, opts ...grpc.CallOption) (*UpdateDocumentMetaResponse, error) + // updateDocumentSettings updates settings fields for document. + UpdateDocumentSettings(ctx context.Context, in *UpdateDocumentSettingsRequest, opts ...grpc.CallOption) (*UpdateDocumentSettingsResponse, error) + // upload attachment and bind to document. + UploadDocumentAttachment(ctx context.Context, in *UploadDocumentAttachmentRequest, opts ...grpc.CallOption) (*UploadDocumentAttachmentResponse, error) + // list attachments by document. + ListDocumentAttachments(ctx context.Context, in *ListDocumentAttachmentsRequest, opts ...grpc.CallOption) (*ListDocumentAttachmentsResponse, error) + // delete an attachment from document. + DeleteDocumentAttachment(ctx context.Context, in *DeleteDocumentAttachmentRequest, opts ...grpc.CallOption) (*DeleteDocumentAttachmentResponse, error) + // list document history versions. + ListDocumentVersions(ctx context.Context, in *ListDocumentVersionsRequest, opts ...grpc.CallOption) (*ListDocumentVersionsResponse, error) + // get document history version content. + GetDocumentVersionContent(ctx context.Context, in *GetDocumentVersionContentRequest, opts ...grpc.CallOption) (*GetDocumentVersionContentResponse, error) + // save document as template + CreateTemplate(ctx context.Context, in *CreateTemplateRequest, opts ...grpc.CallOption) (*CreateTemplateResponse, error) + // list templates with filters and pagination. + ListTemplates(ctx context.Context, in *ListTemplatesRequest, opts ...grpc.CallOption) (*ListTemplatesResponse, error) + // list recent templates for caller. + ListRecentTemplates(ctx context.Context, in *ListRecentTemplatesRequest, opts ...grpc.CallOption) (*ListRecentTemplatesResponse, error) + // get template by id. + GetTemplate(ctx context.Context, in *GetTemplateRequest, opts ...grpc.CallOption) (*GetTemplateResponse, error) + // update template settings. + UpdateTemplateSettings(ctx context.Context, in *UpdateTemplateSettingsRequest, opts ...grpc.CallOption) (*UpdateTemplateSettingsResponse, error) + // delete a document. + DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...grpc.CallOption) (*DeleteDocumentResponse, error) +} + +type documentServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewDocumentServiceClient(cc grpc.ClientConnInterface) DocumentServiceClient { + return &documentServiceClient{cc} +} + +func (c *documentServiceClient) ListDocuments(ctx context.Context, in *ListDocumentsRequest, opts ...grpc.CallOption) (*ListDocumentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListDocumentsResponse) + err := c.cc.Invoke(ctx, DocumentService_ListDocuments_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) GetDocumentContent(ctx context.Context, in *GetDocumentContentRequest, opts ...grpc.CallOption) (*GetDocumentContentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetDocumentContentResponse) + err := c.cc.Invoke(ctx, DocumentService_GetDocumentContent_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) GetDocumentSettings(ctx context.Context, in *GetDocumentSettingsRequest, opts ...grpc.CallOption) (*GetDocumentSettingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetDocumentSettingsResponse) + err := c.cc.Invoke(ctx, DocumentService_GetDocumentSettings_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) ListRecentDocuments(ctx context.Context, in *ListRecentDocumentsRequest, opts ...grpc.CallOption) (*ListRecentDocumentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListRecentDocumentsResponse) + err := c.cc.Invoke(ctx, DocumentService_ListRecentDocuments_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) RecordRecentDocument(ctx context.Context, in *RecordRecentDocumentRequest, opts ...grpc.CallOption) (*RecordRecentDocumentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(RecordRecentDocumentResponse) + err := c.cc.Invoke(ctx, DocumentService_RecordRecentDocument_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) GetDocumentYjsSnapshot(ctx context.Context, in *GetDocumentYjsSnapshotRequest, opts ...grpc.CallOption) (*GetDocumentYjsSnapshotResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetDocumentYjsSnapshotResponse) + err := c.cc.Invoke(ctx, DocumentService_GetDocumentYjsSnapshot_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) SaveDocumentYjsSnapshot(ctx context.Context, in *SaveDocumentYjsSnapshotRequest, opts ...grpc.CallOption) (*SaveDocumentYjsSnapshotResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SaveDocumentYjsSnapshotResponse) + err := c.cc.Invoke(ctx, DocumentService_SaveDocumentYjsSnapshot_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) GetOwnDocuments(ctx context.Context, in *GetOwnDocumentsRequest, opts ...grpc.CallOption) (*GetOwnDocumentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetOwnDocumentsResponse) + err := c.cc.Invoke(ctx, DocumentService_GetOwnDocuments_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) CreateDocument(ctx context.Context, in *CreateDocumentRequest, opts ...grpc.CallOption) (*CreateDocumentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CreateDocumentResponse) + err := c.cc.Invoke(ctx, DocumentService_CreateDocument_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) UpdateDocument(ctx context.Context, in *UpdateDocumentRequest, opts ...grpc.CallOption) (*UpdateDocumentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateDocumentResponse) + err := c.cc.Invoke(ctx, DocumentService_UpdateDocument_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) UpdateDocumentMeta(ctx context.Context, in *UpdateDocumentMetaRequest, opts ...grpc.CallOption) (*UpdateDocumentMetaResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateDocumentMetaResponse) + err := c.cc.Invoke(ctx, DocumentService_UpdateDocumentMeta_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) UpdateDocumentSettings(ctx context.Context, in *UpdateDocumentSettingsRequest, opts ...grpc.CallOption) (*UpdateDocumentSettingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateDocumentSettingsResponse) + err := c.cc.Invoke(ctx, DocumentService_UpdateDocumentSettings_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) UploadDocumentAttachment(ctx context.Context, in *UploadDocumentAttachmentRequest, opts ...grpc.CallOption) (*UploadDocumentAttachmentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UploadDocumentAttachmentResponse) + err := c.cc.Invoke(ctx, DocumentService_UploadDocumentAttachment_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) ListDocumentAttachments(ctx context.Context, in *ListDocumentAttachmentsRequest, opts ...grpc.CallOption) (*ListDocumentAttachmentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListDocumentAttachmentsResponse) + err := c.cc.Invoke(ctx, DocumentService_ListDocumentAttachments_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) DeleteDocumentAttachment(ctx context.Context, in *DeleteDocumentAttachmentRequest, opts ...grpc.CallOption) (*DeleteDocumentAttachmentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteDocumentAttachmentResponse) + err := c.cc.Invoke(ctx, DocumentService_DeleteDocumentAttachment_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) ListDocumentVersions(ctx context.Context, in *ListDocumentVersionsRequest, opts ...grpc.CallOption) (*ListDocumentVersionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListDocumentVersionsResponse) + err := c.cc.Invoke(ctx, DocumentService_ListDocumentVersions_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) GetDocumentVersionContent(ctx context.Context, in *GetDocumentVersionContentRequest, opts ...grpc.CallOption) (*GetDocumentVersionContentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetDocumentVersionContentResponse) + err := c.cc.Invoke(ctx, DocumentService_GetDocumentVersionContent_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) CreateTemplate(ctx context.Context, in *CreateTemplateRequest, opts ...grpc.CallOption) (*CreateTemplateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CreateTemplateResponse) + err := c.cc.Invoke(ctx, DocumentService_CreateTemplate_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) ListTemplates(ctx context.Context, in *ListTemplatesRequest, opts ...grpc.CallOption) (*ListTemplatesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListTemplatesResponse) + err := c.cc.Invoke(ctx, DocumentService_ListTemplates_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) ListRecentTemplates(ctx context.Context, in *ListRecentTemplatesRequest, opts ...grpc.CallOption) (*ListRecentTemplatesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListRecentTemplatesResponse) + err := c.cc.Invoke(ctx, DocumentService_ListRecentTemplates_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) GetTemplate(ctx context.Context, in *GetTemplateRequest, opts ...grpc.CallOption) (*GetTemplateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetTemplateResponse) + err := c.cc.Invoke(ctx, DocumentService_GetTemplate_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) UpdateTemplateSettings(ctx context.Context, in *UpdateTemplateSettingsRequest, opts ...grpc.CallOption) (*UpdateTemplateSettingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateTemplateSettingsResponse) + err := c.cc.Invoke(ctx, DocumentService_UpdateTemplateSettings_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *documentServiceClient) DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...grpc.CallOption) (*DeleteDocumentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteDocumentResponse) + err := c.cc.Invoke(ctx, DocumentService_DeleteDocument_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// DocumentServiceServer is the server API for DocumentService service. +// All implementations must embed UnimplementedDocumentServiceServer +// for forward compatibility. +// +// documentService provides document APIs. +type DocumentServiceServer interface { + // listDocuments lists documents with filters and pagination. + ListDocuments(context.Context, *ListDocumentsRequest) (*ListDocumentsResponse, error) + // getDocumentContent fetches a document with its content. + GetDocumentContent(context.Context, *GetDocumentContentRequest) (*GetDocumentContentResponse, error) + // getDocumentSettings fetches document metadata for settings page. + GetDocumentSettings(context.Context, *GetDocumentSettingsRequest) (*GetDocumentSettingsResponse, error) + // list recent documents for caller. + ListRecentDocuments(context.Context, *ListRecentDocumentsRequest) (*ListRecentDocumentsResponse, error) + // record recent document for caller. + RecordRecentDocument(context.Context, *RecordRecentDocumentRequest) (*RecordRecentDocumentResponse, error) + // getDocumentYjsSnapshot fetches yjs snapshot by document external id. + GetDocumentYjsSnapshot(context.Context, *GetDocumentYjsSnapshotRequest) (*GetDocumentYjsSnapshotResponse, error) + // saveDocumentYjsSnapshot saves yjs snapshot state. + SaveDocumentYjsSnapshot(context.Context, *SaveDocumentYjsSnapshotRequest) (*SaveDocumentYjsSnapshotResponse, error) + // getOwnDocuments lists documents owned by the caller. + GetOwnDocuments(context.Context, *GetOwnDocumentsRequest) (*GetOwnDocumentsResponse, error) + // createDocument creates a new document. + CreateDocument(context.Context, *CreateDocumentRequest) (*CreateDocumentResponse, error) + // updateDocument updates an existing document. + UpdateDocument(context.Context, *UpdateDocumentRequest) (*UpdateDocumentResponse, error) + // updateDocumentMeta updates document metadata without changing content. + UpdateDocumentMeta(context.Context, *UpdateDocumentMetaRequest) (*UpdateDocumentMetaResponse, error) + // updateDocumentSettings updates settings fields for document. + UpdateDocumentSettings(context.Context, *UpdateDocumentSettingsRequest) (*UpdateDocumentSettingsResponse, error) + // upload attachment and bind to document. + UploadDocumentAttachment(context.Context, *UploadDocumentAttachmentRequest) (*UploadDocumentAttachmentResponse, error) + // list attachments by document. + ListDocumentAttachments(context.Context, *ListDocumentAttachmentsRequest) (*ListDocumentAttachmentsResponse, error) + // delete an attachment from document. + DeleteDocumentAttachment(context.Context, *DeleteDocumentAttachmentRequest) (*DeleteDocumentAttachmentResponse, error) + // list document history versions. + ListDocumentVersions(context.Context, *ListDocumentVersionsRequest) (*ListDocumentVersionsResponse, error) + // get document history version content. + GetDocumentVersionContent(context.Context, *GetDocumentVersionContentRequest) (*GetDocumentVersionContentResponse, error) + // save document as template + CreateTemplate(context.Context, *CreateTemplateRequest) (*CreateTemplateResponse, error) + // list templates with filters and pagination. + ListTemplates(context.Context, *ListTemplatesRequest) (*ListTemplatesResponse, error) + // list recent templates for caller. + ListRecentTemplates(context.Context, *ListRecentTemplatesRequest) (*ListRecentTemplatesResponse, error) + // get template by id. + GetTemplate(context.Context, *GetTemplateRequest) (*GetTemplateResponse, error) + // update template settings. + UpdateTemplateSettings(context.Context, *UpdateTemplateSettingsRequest) (*UpdateTemplateSettingsResponse, error) + // delete a document. + DeleteDocument(context.Context, *DeleteDocumentRequest) (*DeleteDocumentResponse, error) + mustEmbedUnimplementedDocumentServiceServer() +} + +// UnimplementedDocumentServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDocumentServiceServer struct{} + +func (UnimplementedDocumentServiceServer) ListDocuments(context.Context, *ListDocumentsRequest) (*ListDocumentsResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListDocuments not implemented") +} +func (UnimplementedDocumentServiceServer) GetDocumentContent(context.Context, *GetDocumentContentRequest) (*GetDocumentContentResponse, error) { + return nil, status.Error(codes.Unimplemented, "method GetDocumentContent not implemented") +} +func (UnimplementedDocumentServiceServer) GetDocumentSettings(context.Context, *GetDocumentSettingsRequest) (*GetDocumentSettingsResponse, error) { + return nil, status.Error(codes.Unimplemented, "method GetDocumentSettings not implemented") +} +func (UnimplementedDocumentServiceServer) ListRecentDocuments(context.Context, *ListRecentDocumentsRequest) (*ListRecentDocumentsResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListRecentDocuments not implemented") +} +func (UnimplementedDocumentServiceServer) RecordRecentDocument(context.Context, *RecordRecentDocumentRequest) (*RecordRecentDocumentResponse, error) { + return nil, status.Error(codes.Unimplemented, "method RecordRecentDocument not implemented") +} +func (UnimplementedDocumentServiceServer) GetDocumentYjsSnapshot(context.Context, *GetDocumentYjsSnapshotRequest) (*GetDocumentYjsSnapshotResponse, error) { + return nil, status.Error(codes.Unimplemented, "method GetDocumentYjsSnapshot not implemented") +} +func (UnimplementedDocumentServiceServer) SaveDocumentYjsSnapshot(context.Context, *SaveDocumentYjsSnapshotRequest) (*SaveDocumentYjsSnapshotResponse, error) { + return nil, status.Error(codes.Unimplemented, "method SaveDocumentYjsSnapshot not implemented") +} +func (UnimplementedDocumentServiceServer) GetOwnDocuments(context.Context, *GetOwnDocumentsRequest) (*GetOwnDocumentsResponse, error) { + return nil, status.Error(codes.Unimplemented, "method GetOwnDocuments not implemented") +} +func (UnimplementedDocumentServiceServer) CreateDocument(context.Context, *CreateDocumentRequest) (*CreateDocumentResponse, error) { + return nil, status.Error(codes.Unimplemented, "method CreateDocument not implemented") +} +func (UnimplementedDocumentServiceServer) UpdateDocument(context.Context, *UpdateDocumentRequest) (*UpdateDocumentResponse, error) { + return nil, status.Error(codes.Unimplemented, "method UpdateDocument not implemented") +} +func (UnimplementedDocumentServiceServer) UpdateDocumentMeta(context.Context, *UpdateDocumentMetaRequest) (*UpdateDocumentMetaResponse, error) { + return nil, status.Error(codes.Unimplemented, "method UpdateDocumentMeta not implemented") +} +func (UnimplementedDocumentServiceServer) UpdateDocumentSettings(context.Context, *UpdateDocumentSettingsRequest) (*UpdateDocumentSettingsResponse, error) { + return nil, status.Error(codes.Unimplemented, "method UpdateDocumentSettings not implemented") +} +func (UnimplementedDocumentServiceServer) UploadDocumentAttachment(context.Context, *UploadDocumentAttachmentRequest) (*UploadDocumentAttachmentResponse, error) { + return nil, status.Error(codes.Unimplemented, "method UploadDocumentAttachment not implemented") +} +func (UnimplementedDocumentServiceServer) ListDocumentAttachments(context.Context, *ListDocumentAttachmentsRequest) (*ListDocumentAttachmentsResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListDocumentAttachments not implemented") +} +func (UnimplementedDocumentServiceServer) DeleteDocumentAttachment(context.Context, *DeleteDocumentAttachmentRequest) (*DeleteDocumentAttachmentResponse, error) { + return nil, status.Error(codes.Unimplemented, "method DeleteDocumentAttachment not implemented") +} +func (UnimplementedDocumentServiceServer) ListDocumentVersions(context.Context, *ListDocumentVersionsRequest) (*ListDocumentVersionsResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListDocumentVersions not implemented") +} +func (UnimplementedDocumentServiceServer) GetDocumentVersionContent(context.Context, *GetDocumentVersionContentRequest) (*GetDocumentVersionContentResponse, error) { + return nil, status.Error(codes.Unimplemented, "method GetDocumentVersionContent not implemented") +} +func (UnimplementedDocumentServiceServer) CreateTemplate(context.Context, *CreateTemplateRequest) (*CreateTemplateResponse, error) { + return nil, status.Error(codes.Unimplemented, "method CreateTemplate not implemented") +} +func (UnimplementedDocumentServiceServer) ListTemplates(context.Context, *ListTemplatesRequest) (*ListTemplatesResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListTemplates not implemented") +} +func (UnimplementedDocumentServiceServer) ListRecentTemplates(context.Context, *ListRecentTemplatesRequest) (*ListRecentTemplatesResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListRecentTemplates not implemented") +} +func (UnimplementedDocumentServiceServer) GetTemplate(context.Context, *GetTemplateRequest) (*GetTemplateResponse, error) { + return nil, status.Error(codes.Unimplemented, "method GetTemplate not implemented") +} +func (UnimplementedDocumentServiceServer) UpdateTemplateSettings(context.Context, *UpdateTemplateSettingsRequest) (*UpdateTemplateSettingsResponse, error) { + return nil, status.Error(codes.Unimplemented, "method UpdateTemplateSettings not implemented") +} +func (UnimplementedDocumentServiceServer) DeleteDocument(context.Context, *DeleteDocumentRequest) (*DeleteDocumentResponse, error) { + return nil, status.Error(codes.Unimplemented, "method DeleteDocument not implemented") +} +func (UnimplementedDocumentServiceServer) mustEmbedUnimplementedDocumentServiceServer() {} +func (UnimplementedDocumentServiceServer) testEmbeddedByValue() {} + +// UnsafeDocumentServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to DocumentServiceServer will +// result in compilation errors. +type UnsafeDocumentServiceServer interface { + mustEmbedUnimplementedDocumentServiceServer() +} + +func RegisterDocumentServiceServer(s grpc.ServiceRegistrar, srv DocumentServiceServer) { + // If the following call panics, it indicates UnimplementedDocumentServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&DocumentService_ServiceDesc, srv) +} + +func _DocumentService_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 { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).ListDocuments(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_ListDocuments_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).ListDocuments(ctx, req.(*ListDocumentsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_GetDocumentContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDocumentContentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).GetDocumentContent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_GetDocumentContent_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).GetDocumentContent(ctx, req.(*GetDocumentContentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_GetDocumentSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDocumentSettingsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).GetDocumentSettings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_GetDocumentSettings_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).GetDocumentSettings(ctx, req.(*GetDocumentSettingsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_ListRecentDocuments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListRecentDocumentsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).ListRecentDocuments(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_ListRecentDocuments_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).ListRecentDocuments(ctx, req.(*ListRecentDocumentsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_RecordRecentDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RecordRecentDocumentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).RecordRecentDocument(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_RecordRecentDocument_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).RecordRecentDocument(ctx, req.(*RecordRecentDocumentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_GetDocumentYjsSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDocumentYjsSnapshotRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).GetDocumentYjsSnapshot(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_GetDocumentYjsSnapshot_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).GetDocumentYjsSnapshot(ctx, req.(*GetDocumentYjsSnapshotRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_SaveDocumentYjsSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SaveDocumentYjsSnapshotRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).SaveDocumentYjsSnapshot(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_SaveDocumentYjsSnapshot_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).SaveDocumentYjsSnapshot(ctx, req.(*SaveDocumentYjsSnapshotRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_GetOwnDocuments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetOwnDocumentsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).GetOwnDocuments(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_GetOwnDocuments_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).GetOwnDocuments(ctx, req.(*GetOwnDocumentsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_CreateDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateDocumentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).CreateDocument(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_CreateDocument_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).CreateDocument(ctx, req.(*CreateDocumentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_UpdateDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateDocumentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).UpdateDocument(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_UpdateDocument_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).UpdateDocument(ctx, req.(*UpdateDocumentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_UpdateDocumentMeta_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateDocumentMetaRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).UpdateDocumentMeta(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_UpdateDocumentMeta_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).UpdateDocumentMeta(ctx, req.(*UpdateDocumentMetaRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_UpdateDocumentSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateDocumentSettingsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).UpdateDocumentSettings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_UpdateDocumentSettings_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).UpdateDocumentSettings(ctx, req.(*UpdateDocumentSettingsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_UploadDocumentAttachment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UploadDocumentAttachmentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).UploadDocumentAttachment(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_UploadDocumentAttachment_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).UploadDocumentAttachment(ctx, req.(*UploadDocumentAttachmentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_ListDocumentAttachments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListDocumentAttachmentsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).ListDocumentAttachments(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_ListDocumentAttachments_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).ListDocumentAttachments(ctx, req.(*ListDocumentAttachmentsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_DeleteDocumentAttachment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteDocumentAttachmentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).DeleteDocumentAttachment(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_DeleteDocumentAttachment_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).DeleteDocumentAttachment(ctx, req.(*DeleteDocumentAttachmentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_ListDocumentVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListDocumentVersionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).ListDocumentVersions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_ListDocumentVersions_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).ListDocumentVersions(ctx, req.(*ListDocumentVersionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_GetDocumentVersionContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDocumentVersionContentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).GetDocumentVersionContent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_GetDocumentVersionContent_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).GetDocumentVersionContent(ctx, req.(*GetDocumentVersionContentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_CreateTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateTemplateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).CreateTemplate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_CreateTemplate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).CreateTemplate(ctx, req.(*CreateTemplateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_ListTemplates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListTemplatesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).ListTemplates(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_ListTemplates_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).ListTemplates(ctx, req.(*ListTemplatesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_ListRecentTemplates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListRecentTemplatesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).ListRecentTemplates(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_ListRecentTemplates_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).ListRecentTemplates(ctx, req.(*ListRecentTemplatesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_GetTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetTemplateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).GetTemplate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_GetTemplate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).GetTemplate(ctx, req.(*GetTemplateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_UpdateTemplateSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateTemplateSettingsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).UpdateTemplateSettings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_UpdateTemplateSettings_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).UpdateTemplateSettings(ctx, req.(*UpdateTemplateSettingsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DocumentService_DeleteDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteDocumentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentServiceServer).DeleteDocument(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DocumentService_DeleteDocument_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentServiceServer).DeleteDocument(ctx, req.(*DeleteDocumentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// DocumentService_ServiceDesc is the grpc.ServiceDesc for DocumentService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var DocumentService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "yoresee_doc.v1.DocumentService", + HandlerType: (*DocumentServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ListDocuments", + Handler: _DocumentService_ListDocuments_Handler, + }, + { + MethodName: "GetDocumentContent", + Handler: _DocumentService_GetDocumentContent_Handler, + }, + { + MethodName: "GetDocumentSettings", + Handler: _DocumentService_GetDocumentSettings_Handler, + }, + { + MethodName: "ListRecentDocuments", + Handler: _DocumentService_ListRecentDocuments_Handler, + }, + { + MethodName: "RecordRecentDocument", + Handler: _DocumentService_RecordRecentDocument_Handler, + }, + { + MethodName: "GetDocumentYjsSnapshot", + Handler: _DocumentService_GetDocumentYjsSnapshot_Handler, + }, + { + MethodName: "SaveDocumentYjsSnapshot", + Handler: _DocumentService_SaveDocumentYjsSnapshot_Handler, + }, + { + MethodName: "GetOwnDocuments", + Handler: _DocumentService_GetOwnDocuments_Handler, + }, + { + MethodName: "CreateDocument", + Handler: _DocumentService_CreateDocument_Handler, + }, + { + MethodName: "UpdateDocument", + Handler: _DocumentService_UpdateDocument_Handler, + }, + { + MethodName: "UpdateDocumentMeta", + Handler: _DocumentService_UpdateDocumentMeta_Handler, + }, + { + MethodName: "UpdateDocumentSettings", + Handler: _DocumentService_UpdateDocumentSettings_Handler, + }, + { + MethodName: "UploadDocumentAttachment", + Handler: _DocumentService_UploadDocumentAttachment_Handler, + }, + { + MethodName: "ListDocumentAttachments", + Handler: _DocumentService_ListDocumentAttachments_Handler, + }, + { + MethodName: "DeleteDocumentAttachment", + Handler: _DocumentService_DeleteDocumentAttachment_Handler, + }, + { + MethodName: "ListDocumentVersions", + Handler: _DocumentService_ListDocumentVersions_Handler, + }, + { + MethodName: "GetDocumentVersionContent", + Handler: _DocumentService_GetDocumentVersionContent_Handler, + }, + { + MethodName: "CreateTemplate", + Handler: _DocumentService_CreateTemplate_Handler, + }, + { + MethodName: "ListTemplates", + Handler: _DocumentService_ListTemplates_Handler, + }, + { + MethodName: "ListRecentTemplates", + Handler: _DocumentService_ListRecentTemplates_Handler, + }, + { + MethodName: "GetTemplate", + Handler: _DocumentService_GetTemplate_Handler, + }, + { + MethodName: "UpdateTemplateSettings", + Handler: _DocumentService_UpdateTemplateSettings_Handler, + }, + { + MethodName: "DeleteDocument", + Handler: _DocumentService_DeleteDocument_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yoresee_doc/v1/yoresee_doc.proto", +} + +const ( + CommentService_CreateDocumentComment_FullMethodName = "/yoresee_doc.v1.CommentService/CreateDocumentComment" + CommentService_ListDocumentComments_FullMethodName = "/yoresee_doc.v1.CommentService/ListDocumentComments" + CommentService_DeleteDocumentComment_FullMethodName = "/yoresee_doc.v1.CommentService/DeleteDocumentComment" + CommentService_UpdateDocumentComment_FullMethodName = "/yoresee_doc.v1.CommentService/UpdateDocumentComment" +) + +// CommentServiceClient is the client API for CommentService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// commentService provides document comment APIs. +type CommentServiceClient interface { + // create a comment for document. + CreateDocumentComment(ctx context.Context, in *CreateDocumentCommentRequest, opts ...grpc.CallOption) (*CreateDocumentCommentResponse, error) + // list comments for document. + ListDocumentComments(ctx context.Context, in *ListDocumentCommentsRequest, opts ...grpc.CallOption) (*ListDocumentCommentsResponse, error) + // delete a comment. + DeleteDocumentComment(ctx context.Context, in *DeleteDocumentCommentRequest, opts ...grpc.CallOption) (*DeleteDocumentCommentResponse, error) + // update a comment. + UpdateDocumentComment(ctx context.Context, in *UpdateDocumentCommentRequest, opts ...grpc.CallOption) (*UpdateDocumentCommentResponse, error) +} + +type commentServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewCommentServiceClient(cc grpc.ClientConnInterface) CommentServiceClient { + return &commentServiceClient{cc} +} + +func (c *commentServiceClient) CreateDocumentComment(ctx context.Context, in *CreateDocumentCommentRequest, opts ...grpc.CallOption) (*CreateDocumentCommentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CreateDocumentCommentResponse) + err := c.cc.Invoke(ctx, CommentService_CreateDocumentComment_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *commentServiceClient) ListDocumentComments(ctx context.Context, in *ListDocumentCommentsRequest, opts ...grpc.CallOption) (*ListDocumentCommentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListDocumentCommentsResponse) + err := c.cc.Invoke(ctx, CommentService_ListDocumentComments_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *commentServiceClient) DeleteDocumentComment(ctx context.Context, in *DeleteDocumentCommentRequest, opts ...grpc.CallOption) (*DeleteDocumentCommentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteDocumentCommentResponse) + err := c.cc.Invoke(ctx, CommentService_DeleteDocumentComment_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *commentServiceClient) UpdateDocumentComment(ctx context.Context, in *UpdateDocumentCommentRequest, opts ...grpc.CallOption) (*UpdateDocumentCommentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateDocumentCommentResponse) + err := c.cc.Invoke(ctx, CommentService_UpdateDocumentComment_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// CommentServiceServer is the server API for CommentService service. +// All implementations must embed UnimplementedCommentServiceServer +// for forward compatibility. +// +// commentService provides document comment APIs. +type CommentServiceServer interface { + // create a comment for document. + CreateDocumentComment(context.Context, *CreateDocumentCommentRequest) (*CreateDocumentCommentResponse, error) + // list comments for document. + ListDocumentComments(context.Context, *ListDocumentCommentsRequest) (*ListDocumentCommentsResponse, error) + // delete a comment. + DeleteDocumentComment(context.Context, *DeleteDocumentCommentRequest) (*DeleteDocumentCommentResponse, error) + // update a comment. + UpdateDocumentComment(context.Context, *UpdateDocumentCommentRequest) (*UpdateDocumentCommentResponse, error) + mustEmbedUnimplementedCommentServiceServer() +} + +// UnimplementedCommentServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCommentServiceServer struct{} + +func (UnimplementedCommentServiceServer) CreateDocumentComment(context.Context, *CreateDocumentCommentRequest) (*CreateDocumentCommentResponse, error) { + return nil, status.Error(codes.Unimplemented, "method CreateDocumentComment not implemented") +} +func (UnimplementedCommentServiceServer) ListDocumentComments(context.Context, *ListDocumentCommentsRequest) (*ListDocumentCommentsResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListDocumentComments not implemented") +} +func (UnimplementedCommentServiceServer) DeleteDocumentComment(context.Context, *DeleteDocumentCommentRequest) (*DeleteDocumentCommentResponse, error) { + return nil, status.Error(codes.Unimplemented, "method DeleteDocumentComment not implemented") +} +func (UnimplementedCommentServiceServer) UpdateDocumentComment(context.Context, *UpdateDocumentCommentRequest) (*UpdateDocumentCommentResponse, error) { + return nil, status.Error(codes.Unimplemented, "method UpdateDocumentComment not implemented") +} +func (UnimplementedCommentServiceServer) mustEmbedUnimplementedCommentServiceServer() {} +func (UnimplementedCommentServiceServer) testEmbeddedByValue() {} + +// UnsafeCommentServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to CommentServiceServer will +// result in compilation errors. +type UnsafeCommentServiceServer interface { + mustEmbedUnimplementedCommentServiceServer() +} + +func RegisterCommentServiceServer(s grpc.ServiceRegistrar, srv CommentServiceServer) { + // If the following call panics, it indicates UnimplementedCommentServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&CommentService_ServiceDesc, srv) +} + +func _CommentService_CreateDocumentComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateDocumentCommentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommentServiceServer).CreateDocumentComment(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: CommentService_CreateDocumentComment_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommentServiceServer).CreateDocumentComment(ctx, req.(*CreateDocumentCommentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CommentService_ListDocumentComments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListDocumentCommentsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommentServiceServer).ListDocumentComments(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: CommentService_ListDocumentComments_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommentServiceServer).ListDocumentComments(ctx, req.(*ListDocumentCommentsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CommentService_DeleteDocumentComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteDocumentCommentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommentServiceServer).DeleteDocumentComment(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: CommentService_DeleteDocumentComment_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommentServiceServer).DeleteDocumentComment(ctx, req.(*DeleteDocumentCommentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CommentService_UpdateDocumentComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateDocumentCommentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommentServiceServer).UpdateDocumentComment(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: CommentService_UpdateDocumentComment_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommentServiceServer).UpdateDocumentComment(ctx, req.(*UpdateDocumentCommentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// CommentService_ServiceDesc is the grpc.ServiceDesc for CommentService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var CommentService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "yoresee_doc.v1.CommentService", + HandlerType: (*CommentServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateDocumentComment", + Handler: _CommentService_CreateDocumentComment_Handler, + }, + { + MethodName: "ListDocumentComments", + Handler: _CommentService_ListDocumentComments_Handler, + }, + { + MethodName: "DeleteDocumentComment", + Handler: _CommentService_DeleteDocumentComment_Handler, + }, + { + MethodName: "UpdateDocumentComment", + Handler: _CommentService_UpdateDocumentComment_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yoresee_doc/v1/yoresee_doc.proto", +} + +const ( + KnowledgeBaseService_ListKnowledgeBases_FullMethodName = "/yoresee_doc.v1.KnowledgeBaseService/ListKnowledgeBases" + KnowledgeBaseService_GetKnowledgeBase_FullMethodName = "/yoresee_doc.v1.KnowledgeBaseService/GetKnowledgeBase" + KnowledgeBaseService_CreateKnowledgeBase_FullMethodName = "/yoresee_doc.v1.KnowledgeBaseService/CreateKnowledgeBase" + KnowledgeBaseService_ListRecentKnowledgeBases_FullMethodName = "/yoresee_doc.v1.KnowledgeBaseService/ListRecentKnowledgeBases" +) + +// KnowledgeBaseServiceClient is the client API for KnowledgeBaseService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// knowledgeBaseService provides knowledge base management and discovery APIs. +type KnowledgeBaseServiceClient interface { + // list knowledge bases with filters and pagination. + ListKnowledgeBases(ctx context.Context, in *ListKnowledgeBasesRequest, opts ...grpc.CallOption) (*ListKnowledgeBasesResponse, error) + // get a knowledge base by external ID, optionally recording a recent-access log. + GetKnowledgeBase(ctx context.Context, in *GetKnowledgeBaseRequest, opts ...grpc.CallOption) (*GetKnowledgeBaseResponse, error) + // create a knowledge base for the caller. + CreateKnowledgeBase(ctx context.Context, in *CreateKnowledgeBaseRequest, opts ...grpc.CallOption) (*CreateKnowledgeBaseResponse, error) + // list the caller's recent knowledge bases. User identity is derived from auth context. + ListRecentKnowledgeBases(ctx context.Context, in *ListRecentKnowledgeBasesRequest, opts ...grpc.CallOption) (*ListRecentKnowledgeBasesResponse, error) +} + +type knowledgeBaseServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewKnowledgeBaseServiceClient(cc grpc.ClientConnInterface) KnowledgeBaseServiceClient { + return &knowledgeBaseServiceClient{cc} +} + +func (c *knowledgeBaseServiceClient) ListKnowledgeBases(ctx context.Context, in *ListKnowledgeBasesRequest, opts ...grpc.CallOption) (*ListKnowledgeBasesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListKnowledgeBasesResponse) + err := c.cc.Invoke(ctx, KnowledgeBaseService_ListKnowledgeBases_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *knowledgeBaseServiceClient) GetKnowledgeBase(ctx context.Context, in *GetKnowledgeBaseRequest, opts ...grpc.CallOption) (*GetKnowledgeBaseResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetKnowledgeBaseResponse) + err := c.cc.Invoke(ctx, KnowledgeBaseService_GetKnowledgeBase_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *knowledgeBaseServiceClient) CreateKnowledgeBase(ctx context.Context, in *CreateKnowledgeBaseRequest, opts ...grpc.CallOption) (*CreateKnowledgeBaseResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CreateKnowledgeBaseResponse) + err := c.cc.Invoke(ctx, KnowledgeBaseService_CreateKnowledgeBase_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *knowledgeBaseServiceClient) ListRecentKnowledgeBases(ctx context.Context, in *ListRecentKnowledgeBasesRequest, opts ...grpc.CallOption) (*ListRecentKnowledgeBasesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListRecentKnowledgeBasesResponse) + err := c.cc.Invoke(ctx, KnowledgeBaseService_ListRecentKnowledgeBases_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// KnowledgeBaseServiceServer is the server API for KnowledgeBaseService service. +// All implementations must embed UnimplementedKnowledgeBaseServiceServer +// for forward compatibility. +// +// knowledgeBaseService provides knowledge base management and discovery APIs. +type KnowledgeBaseServiceServer interface { + // list knowledge bases with filters and pagination. + ListKnowledgeBases(context.Context, *ListKnowledgeBasesRequest) (*ListKnowledgeBasesResponse, error) + // get a knowledge base by external ID, optionally recording a recent-access log. + GetKnowledgeBase(context.Context, *GetKnowledgeBaseRequest) (*GetKnowledgeBaseResponse, error) + // create a knowledge base for the caller. + CreateKnowledgeBase(context.Context, *CreateKnowledgeBaseRequest) (*CreateKnowledgeBaseResponse, error) + // list the caller's recent knowledge bases. User identity is derived from auth context. + ListRecentKnowledgeBases(context.Context, *ListRecentKnowledgeBasesRequest) (*ListRecentKnowledgeBasesResponse, error) + mustEmbedUnimplementedKnowledgeBaseServiceServer() +} + +// UnimplementedKnowledgeBaseServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedKnowledgeBaseServiceServer struct{} + +func (UnimplementedKnowledgeBaseServiceServer) ListKnowledgeBases(context.Context, *ListKnowledgeBasesRequest) (*ListKnowledgeBasesResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListKnowledgeBases not implemented") +} +func (UnimplementedKnowledgeBaseServiceServer) GetKnowledgeBase(context.Context, *GetKnowledgeBaseRequest) (*GetKnowledgeBaseResponse, error) { + return nil, status.Error(codes.Unimplemented, "method GetKnowledgeBase not implemented") +} +func (UnimplementedKnowledgeBaseServiceServer) CreateKnowledgeBase(context.Context, *CreateKnowledgeBaseRequest) (*CreateKnowledgeBaseResponse, error) { + return nil, status.Error(codes.Unimplemented, "method CreateKnowledgeBase not implemented") +} +func (UnimplementedKnowledgeBaseServiceServer) ListRecentKnowledgeBases(context.Context, *ListRecentKnowledgeBasesRequest) (*ListRecentKnowledgeBasesResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListRecentKnowledgeBases not implemented") +} +func (UnimplementedKnowledgeBaseServiceServer) mustEmbedUnimplementedKnowledgeBaseServiceServer() {} +func (UnimplementedKnowledgeBaseServiceServer) testEmbeddedByValue() {} + +// UnsafeKnowledgeBaseServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to KnowledgeBaseServiceServer will +// result in compilation errors. +type UnsafeKnowledgeBaseServiceServer interface { + mustEmbedUnimplementedKnowledgeBaseServiceServer() +} + +func RegisterKnowledgeBaseServiceServer(s grpc.ServiceRegistrar, srv KnowledgeBaseServiceServer) { + // If the following call panics, it indicates UnimplementedKnowledgeBaseServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&KnowledgeBaseService_ServiceDesc, srv) +} + +func _KnowledgeBaseService_ListKnowledgeBases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListKnowledgeBasesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KnowledgeBaseServiceServer).ListKnowledgeBases(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: KnowledgeBaseService_ListKnowledgeBases_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KnowledgeBaseServiceServer).ListKnowledgeBases(ctx, req.(*ListKnowledgeBasesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _KnowledgeBaseService_GetKnowledgeBase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetKnowledgeBaseRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KnowledgeBaseServiceServer).GetKnowledgeBase(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: KnowledgeBaseService_GetKnowledgeBase_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KnowledgeBaseServiceServer).GetKnowledgeBase(ctx, req.(*GetKnowledgeBaseRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _KnowledgeBaseService_CreateKnowledgeBase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateKnowledgeBaseRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KnowledgeBaseServiceServer).CreateKnowledgeBase(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: KnowledgeBaseService_CreateKnowledgeBase_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KnowledgeBaseServiceServer).CreateKnowledgeBase(ctx, req.(*CreateKnowledgeBaseRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _KnowledgeBaseService_ListRecentKnowledgeBases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListRecentKnowledgeBasesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KnowledgeBaseServiceServer).ListRecentKnowledgeBases(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: KnowledgeBaseService_ListRecentKnowledgeBases_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KnowledgeBaseServiceServer).ListRecentKnowledgeBases(ctx, req.(*ListRecentKnowledgeBasesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// KnowledgeBaseService_ServiceDesc is the grpc.ServiceDesc for KnowledgeBaseService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var KnowledgeBaseService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "yoresee_doc.v1.KnowledgeBaseService", + HandlerType: (*KnowledgeBaseServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ListKnowledgeBases", + Handler: _KnowledgeBaseService_ListKnowledgeBases_Handler, + }, + { + MethodName: "GetKnowledgeBase", + Handler: _KnowledgeBaseService_GetKnowledgeBase_Handler, + }, + { + MethodName: "CreateKnowledgeBase", + Handler: _KnowledgeBaseService_CreateKnowledgeBase_Handler, + }, + { + MethodName: "ListRecentKnowledgeBases", + Handler: _KnowledgeBaseService_ListRecentKnowledgeBases_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yoresee_doc/v1/yoresee_doc.proto", +} + +const ( + SystemService_Health_FullMethodName = "/yoresee_doc.v1.SystemService/Health" + SystemService_SystemInfo_FullMethodName = "/yoresee_doc.v1.SystemService/SystemInfo" +) + +// SystemServiceClient is the client API for SystemService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// systemService provides system health and info APIs. +type SystemServiceClient interface { + // health returns service health status. + Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error) + // systemInfo returns system info and config. + SystemInfo(ctx context.Context, in *SystemInfoRequest, opts ...grpc.CallOption) (*SystemInfoResponse, error) +} + +type systemServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSystemServiceClient(cc grpc.ClientConnInterface) SystemServiceClient { + return &systemServiceClient{cc} +} + +func (c *systemServiceClient) Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(HealthResponse) + err := c.cc.Invoke(ctx, SystemService_Health_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *systemServiceClient) SystemInfo(ctx context.Context, in *SystemInfoRequest, opts ...grpc.CallOption) (*SystemInfoResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SystemInfoResponse) + err := c.cc.Invoke(ctx, SystemService_SystemInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SystemServiceServer is the server API for SystemService service. +// All implementations must embed UnimplementedSystemServiceServer +// for forward compatibility. +// +// systemService provides system health and info APIs. +type SystemServiceServer interface { + // health returns service health status. + Health(context.Context, *HealthRequest) (*HealthResponse, error) + // systemInfo returns system info and config. + SystemInfo(context.Context, *SystemInfoRequest) (*SystemInfoResponse, error) + mustEmbedUnimplementedSystemServiceServer() +} + +// UnimplementedSystemServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedSystemServiceServer struct{} + +func (UnimplementedSystemServiceServer) Health(context.Context, *HealthRequest) (*HealthResponse, error) { + return nil, status.Error(codes.Unimplemented, "method Health not implemented") +} +func (UnimplementedSystemServiceServer) SystemInfo(context.Context, *SystemInfoRequest) (*SystemInfoResponse, error) { + return nil, status.Error(codes.Unimplemented, "method SystemInfo not implemented") +} +func (UnimplementedSystemServiceServer) mustEmbedUnimplementedSystemServiceServer() {} +func (UnimplementedSystemServiceServer) testEmbeddedByValue() {} + +// UnsafeSystemServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SystemServiceServer will +// result in compilation errors. +type UnsafeSystemServiceServer interface { + mustEmbedUnimplementedSystemServiceServer() +} + +func RegisterSystemServiceServer(s grpc.ServiceRegistrar, srv SystemServiceServer) { + // If the following call panics, it indicates UnimplementedSystemServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&SystemService_ServiceDesc, srv) +} + +func _SystemService_Health_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(HealthRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServiceServer).Health(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SystemService_Health_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServiceServer).Health(ctx, req.(*HealthRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SystemService_SystemInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SystemInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServiceServer).SystemInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SystemService_SystemInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServiceServer).SystemInfo(ctx, req.(*SystemInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// SystemService_ServiceDesc is the grpc.ServiceDesc for SystemService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var SystemService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "yoresee_doc.v1.SystemService", + HandlerType: (*SystemServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Health", + Handler: _SystemService_Health_Handler, + }, + { + MethodName: "SystemInfo", + Handler: _SystemService_SystemInfo_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yoresee_doc/v1/yoresee_doc.proto", +} + +const ( + SettingService_GetSettings_FullMethodName = "/yoresee_doc.v1.SettingService/GetSettings" + SettingService_UpdateSettings_FullMethodName = "/yoresee_doc.v1.SettingService/UpdateSettings" +) + +// SettingServiceClient is the client API for SettingService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// settingService provides settings schema and update APIs. +type SettingServiceClient interface { + // get settings schema with current values. + GetSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*GetSettingsResponse, error) + // update settings values. + UpdateSettings(ctx context.Context, in *UpdateSettingsRequest, opts ...grpc.CallOption) (*UpdateSettingsResponse, error) +} + +type settingServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSettingServiceClient(cc grpc.ClientConnInterface) SettingServiceClient { + return &settingServiceClient{cc} +} + +func (c *settingServiceClient) GetSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*GetSettingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetSettingsResponse) + err := c.cc.Invoke(ctx, SettingService_GetSettings_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *settingServiceClient) UpdateSettings(ctx context.Context, in *UpdateSettingsRequest, opts ...grpc.CallOption) (*UpdateSettingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateSettingsResponse) + err := c.cc.Invoke(ctx, SettingService_UpdateSettings_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SettingServiceServer is the server API for SettingService service. +// All implementations must embed UnimplementedSettingServiceServer +// for forward compatibility. +// +// settingService provides settings schema and update APIs. +type SettingServiceServer interface { + // get settings schema with current values. + GetSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error) + // update settings values. + UpdateSettings(context.Context, *UpdateSettingsRequest) (*UpdateSettingsResponse, error) + mustEmbedUnimplementedSettingServiceServer() +} + +// UnimplementedSettingServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedSettingServiceServer struct{} + +func (UnimplementedSettingServiceServer) GetSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error) { + return nil, status.Error(codes.Unimplemented, "method GetSettings not implemented") +} +func (UnimplementedSettingServiceServer) UpdateSettings(context.Context, *UpdateSettingsRequest) (*UpdateSettingsResponse, error) { + return nil, status.Error(codes.Unimplemented, "method UpdateSettings not implemented") +} +func (UnimplementedSettingServiceServer) mustEmbedUnimplementedSettingServiceServer() {} +func (UnimplementedSettingServiceServer) testEmbeddedByValue() {} + +// UnsafeSettingServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SettingServiceServer will +// result in compilation errors. +type UnsafeSettingServiceServer interface { + mustEmbedUnimplementedSettingServiceServer() +} + +func RegisterSettingServiceServer(s grpc.ServiceRegistrar, srv SettingServiceServer) { + // If the following call panics, it indicates UnimplementedSettingServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&SettingService_ServiceDesc, srv) +} + +func _SettingService_GetSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSettingsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SettingServiceServer).GetSettings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SettingService_GetSettings_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SettingServiceServer).GetSettings(ctx, req.(*GetSettingsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SettingService_UpdateSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateSettingsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SettingServiceServer).UpdateSettings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SettingService_UpdateSettings_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SettingServiceServer).UpdateSettings(ctx, req.(*UpdateSettingsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// SettingService_ServiceDesc is the grpc.ServiceDesc for SettingService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var SettingService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "yoresee_doc.v1.SettingService", + HandlerType: (*SettingServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetSettings", + Handler: _SettingService_GetSettings_Handler, + }, + { + MethodName: "UpdateSettings", + Handler: _SettingService_UpdateSettings_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yoresee_doc/v1/yoresee_doc.proto", +} + +const ( + MembershipService_ListUserGroups_FullMethodName = "/yoresee_doc.v1.MembershipService/ListUserGroups" + MembershipService_GetUserGroup_FullMethodName = "/yoresee_doc.v1.MembershipService/GetUserGroup" + MembershipService_CreateUserGroup_FullMethodName = "/yoresee_doc.v1.MembershipService/CreateUserGroup" + MembershipService_UpdateUserGroup_FullMethodName = "/yoresee_doc.v1.MembershipService/UpdateUserGroup" + MembershipService_DeleteUserGroup_FullMethodName = "/yoresee_doc.v1.MembershipService/DeleteUserGroup" + MembershipService_ListUsers_FullMethodName = "/yoresee_doc.v1.MembershipService/ListUsers" + MembershipService_UpdateUser_FullMethodName = "/yoresee_doc.v1.MembershipService/UpdateUser" + MembershipService_ListUserGroupMembers_FullMethodName = "/yoresee_doc.v1.MembershipService/ListUserGroupMembers" + MembershipService_ListOrgNodes_FullMethodName = "/yoresee_doc.v1.MembershipService/ListOrgNodes" + MembershipService_GetOrgNode_FullMethodName = "/yoresee_doc.v1.MembershipService/GetOrgNode" + MembershipService_CreateOrgNode_FullMethodName = "/yoresee_doc.v1.MembershipService/CreateOrgNode" + MembershipService_UpdateOrgNode_FullMethodName = "/yoresee_doc.v1.MembershipService/UpdateOrgNode" + MembershipService_DeleteOrgNode_FullMethodName = "/yoresee_doc.v1.MembershipService/DeleteOrgNode" + MembershipService_MoveOrgNode_FullMethodName = "/yoresee_doc.v1.MembershipService/MoveOrgNode" + MembershipService_ListOrgNodeMembers_FullMethodName = "/yoresee_doc.v1.MembershipService/ListOrgNodeMembers" +) + +// MembershipServiceClient is the client API for MembershipService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// membershipService provides user group and org structure management APIs. +type MembershipServiceClient interface { + // list user groups with pagination. + ListUserGroups(ctx context.Context, in *ListUserGroupsRequest, opts ...grpc.CallOption) (*ListUserGroupsResponse, error) + // get a user group by external id. + GetUserGroup(ctx context.Context, in *GetUserGroupRequest, opts ...grpc.CallOption) (*GetUserGroupResponse, error) + // create user group and optional members. + CreateUserGroup(ctx context.Context, in *CreateUserGroupRequest, opts ...grpc.CallOption) (*CreateUserGroupResponse, error) + // update user group metadata and optional member set. + UpdateUserGroup(ctx context.Context, in *UpdateUserGroupRequest, opts ...grpc.CallOption) (*UpdateUserGroupResponse, error) + // delete a user group and its memberships. + DeleteUserGroup(ctx context.Context, in *DeleteUserGroupRequest, opts ...grpc.CallOption) (*DeleteUserGroupResponse, error) + // list users for member management. + ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error) + // update user info or status. + UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error) + // list user group members with pagination. + ListUserGroupMembers(ctx context.Context, in *ListUserGroupMembersRequest, opts ...grpc.CallOption) (*ListUserGroupMembersResponse, error) + // list org nodes with pagination. + ListOrgNodes(ctx context.Context, in *ListOrgNodesRequest, opts ...grpc.CallOption) (*ListOrgNodesResponse, error) + // get an org node by external id. + GetOrgNode(ctx context.Context, in *GetOrgNodeRequest, opts ...grpc.CallOption) (*GetOrgNodeResponse, error) + // create org node and optional members. + CreateOrgNode(ctx context.Context, in *CreateOrgNodeRequest, opts ...grpc.CallOption) (*CreateOrgNodeResponse, error) + // update org node metadata and optional member set. + UpdateOrgNode(ctx context.Context, in *UpdateOrgNodeRequest, opts ...grpc.CallOption) (*UpdateOrgNodeResponse, error) + // delete an org node and its memberships. + DeleteOrgNode(ctx context.Context, in *DeleteOrgNodeRequest, opts ...grpc.CallOption) (*DeleteOrgNodeResponse, error) + // move an org node to a new parent. + MoveOrgNode(ctx context.Context, in *MoveOrgNodeRequest, opts ...grpc.CallOption) (*MoveOrgNodeResponse, error) + // list org node members with pagination. + ListOrgNodeMembers(ctx context.Context, in *ListOrgNodeMembersRequest, opts ...grpc.CallOption) (*ListOrgNodeMembersResponse, error) +} + +type membershipServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewMembershipServiceClient(cc grpc.ClientConnInterface) MembershipServiceClient { + return &membershipServiceClient{cc} +} + +func (c *membershipServiceClient) ListUserGroups(ctx context.Context, in *ListUserGroupsRequest, opts ...grpc.CallOption) (*ListUserGroupsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListUserGroupsResponse) + err := c.cc.Invoke(ctx, MembershipService_ListUserGroups_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *membershipServiceClient) GetUserGroup(ctx context.Context, in *GetUserGroupRequest, opts ...grpc.CallOption) (*GetUserGroupResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetUserGroupResponse) + err := c.cc.Invoke(ctx, MembershipService_GetUserGroup_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *membershipServiceClient) CreateUserGroup(ctx context.Context, in *CreateUserGroupRequest, opts ...grpc.CallOption) (*CreateUserGroupResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CreateUserGroupResponse) + err := c.cc.Invoke(ctx, MembershipService_CreateUserGroup_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *membershipServiceClient) UpdateUserGroup(ctx context.Context, in *UpdateUserGroupRequest, opts ...grpc.CallOption) (*UpdateUserGroupResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateUserGroupResponse) + err := c.cc.Invoke(ctx, MembershipService_UpdateUserGroup_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *membershipServiceClient) DeleteUserGroup(ctx context.Context, in *DeleteUserGroupRequest, opts ...grpc.CallOption) (*DeleteUserGroupResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteUserGroupResponse) + err := c.cc.Invoke(ctx, MembershipService_DeleteUserGroup_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *membershipServiceClient) ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListUsersResponse) + err := c.cc.Invoke(ctx, MembershipService_ListUsers_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *membershipServiceClient) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateUserResponse) + err := c.cc.Invoke(ctx, MembershipService_UpdateUser_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *membershipServiceClient) ListUserGroupMembers(ctx context.Context, in *ListUserGroupMembersRequest, opts ...grpc.CallOption) (*ListUserGroupMembersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListUserGroupMembersResponse) + err := c.cc.Invoke(ctx, MembershipService_ListUserGroupMembers_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *membershipServiceClient) ListOrgNodes(ctx context.Context, in *ListOrgNodesRequest, opts ...grpc.CallOption) (*ListOrgNodesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListOrgNodesResponse) + err := c.cc.Invoke(ctx, MembershipService_ListOrgNodes_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *membershipServiceClient) GetOrgNode(ctx context.Context, in *GetOrgNodeRequest, opts ...grpc.CallOption) (*GetOrgNodeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetOrgNodeResponse) + err := c.cc.Invoke(ctx, MembershipService_GetOrgNode_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *membershipServiceClient) CreateOrgNode(ctx context.Context, in *CreateOrgNodeRequest, opts ...grpc.CallOption) (*CreateOrgNodeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CreateOrgNodeResponse) + err := c.cc.Invoke(ctx, MembershipService_CreateOrgNode_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *membershipServiceClient) UpdateOrgNode(ctx context.Context, in *UpdateOrgNodeRequest, opts ...grpc.CallOption) (*UpdateOrgNodeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateOrgNodeResponse) + err := c.cc.Invoke(ctx, MembershipService_UpdateOrgNode_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *membershipServiceClient) DeleteOrgNode(ctx context.Context, in *DeleteOrgNodeRequest, opts ...grpc.CallOption) (*DeleteOrgNodeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteOrgNodeResponse) + err := c.cc.Invoke(ctx, MembershipService_DeleteOrgNode_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *membershipServiceClient) MoveOrgNode(ctx context.Context, in *MoveOrgNodeRequest, opts ...grpc.CallOption) (*MoveOrgNodeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MoveOrgNodeResponse) + err := c.cc.Invoke(ctx, MembershipService_MoveOrgNode_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *membershipServiceClient) ListOrgNodeMembers(ctx context.Context, in *ListOrgNodeMembersRequest, opts ...grpc.CallOption) (*ListOrgNodeMembersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListOrgNodeMembersResponse) + err := c.cc.Invoke(ctx, MembershipService_ListOrgNodeMembers_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MembershipServiceServer is the server API for MembershipService service. +// All implementations must embed UnimplementedMembershipServiceServer +// for forward compatibility. +// +// membershipService provides user group and org structure management APIs. +type MembershipServiceServer interface { + // list user groups with pagination. + ListUserGroups(context.Context, *ListUserGroupsRequest) (*ListUserGroupsResponse, error) + // get a user group by external id. + GetUserGroup(context.Context, *GetUserGroupRequest) (*GetUserGroupResponse, error) + // create user group and optional members. + CreateUserGroup(context.Context, *CreateUserGroupRequest) (*CreateUserGroupResponse, error) + // update user group metadata and optional member set. + UpdateUserGroup(context.Context, *UpdateUserGroupRequest) (*UpdateUserGroupResponse, error) + // delete a user group and its memberships. + DeleteUserGroup(context.Context, *DeleteUserGroupRequest) (*DeleteUserGroupResponse, error) + // list users for member management. + ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error) + // update user info or status. + UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error) + // list user group members with pagination. + ListUserGroupMembers(context.Context, *ListUserGroupMembersRequest) (*ListUserGroupMembersResponse, error) + // list org nodes with pagination. + ListOrgNodes(context.Context, *ListOrgNodesRequest) (*ListOrgNodesResponse, error) + // get an org node by external id. + GetOrgNode(context.Context, *GetOrgNodeRequest) (*GetOrgNodeResponse, error) + // create org node and optional members. + CreateOrgNode(context.Context, *CreateOrgNodeRequest) (*CreateOrgNodeResponse, error) + // update org node metadata and optional member set. + UpdateOrgNode(context.Context, *UpdateOrgNodeRequest) (*UpdateOrgNodeResponse, error) + // delete an org node and its memberships. + DeleteOrgNode(context.Context, *DeleteOrgNodeRequest) (*DeleteOrgNodeResponse, error) + // move an org node to a new parent. + MoveOrgNode(context.Context, *MoveOrgNodeRequest) (*MoveOrgNodeResponse, error) + // list org node members with pagination. + ListOrgNodeMembers(context.Context, *ListOrgNodeMembersRequest) (*ListOrgNodeMembersResponse, error) + mustEmbedUnimplementedMembershipServiceServer() +} + +// UnimplementedMembershipServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMembershipServiceServer struct{} + +func (UnimplementedMembershipServiceServer) ListUserGroups(context.Context, *ListUserGroupsRequest) (*ListUserGroupsResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListUserGroups not implemented") +} +func (UnimplementedMembershipServiceServer) GetUserGroup(context.Context, *GetUserGroupRequest) (*GetUserGroupResponse, error) { + return nil, status.Error(codes.Unimplemented, "method GetUserGroup not implemented") +} +func (UnimplementedMembershipServiceServer) CreateUserGroup(context.Context, *CreateUserGroupRequest) (*CreateUserGroupResponse, error) { + return nil, status.Error(codes.Unimplemented, "method CreateUserGroup not implemented") +} +func (UnimplementedMembershipServiceServer) UpdateUserGroup(context.Context, *UpdateUserGroupRequest) (*UpdateUserGroupResponse, error) { + return nil, status.Error(codes.Unimplemented, "method UpdateUserGroup not implemented") +} +func (UnimplementedMembershipServiceServer) DeleteUserGroup(context.Context, *DeleteUserGroupRequest) (*DeleteUserGroupResponse, error) { + return nil, status.Error(codes.Unimplemented, "method DeleteUserGroup not implemented") +} +func (UnimplementedMembershipServiceServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListUsers not implemented") +} +func (UnimplementedMembershipServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error) { + return nil, status.Error(codes.Unimplemented, "method UpdateUser not implemented") +} +func (UnimplementedMembershipServiceServer) ListUserGroupMembers(context.Context, *ListUserGroupMembersRequest) (*ListUserGroupMembersResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListUserGroupMembers not implemented") +} +func (UnimplementedMembershipServiceServer) ListOrgNodes(context.Context, *ListOrgNodesRequest) (*ListOrgNodesResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListOrgNodes not implemented") +} +func (UnimplementedMembershipServiceServer) GetOrgNode(context.Context, *GetOrgNodeRequest) (*GetOrgNodeResponse, error) { + return nil, status.Error(codes.Unimplemented, "method GetOrgNode not implemented") +} +func (UnimplementedMembershipServiceServer) CreateOrgNode(context.Context, *CreateOrgNodeRequest) (*CreateOrgNodeResponse, error) { + return nil, status.Error(codes.Unimplemented, "method CreateOrgNode not implemented") +} +func (UnimplementedMembershipServiceServer) UpdateOrgNode(context.Context, *UpdateOrgNodeRequest) (*UpdateOrgNodeResponse, error) { + return nil, status.Error(codes.Unimplemented, "method UpdateOrgNode not implemented") +} +func (UnimplementedMembershipServiceServer) DeleteOrgNode(context.Context, *DeleteOrgNodeRequest) (*DeleteOrgNodeResponse, error) { + return nil, status.Error(codes.Unimplemented, "method DeleteOrgNode not implemented") +} +func (UnimplementedMembershipServiceServer) MoveOrgNode(context.Context, *MoveOrgNodeRequest) (*MoveOrgNodeResponse, error) { + return nil, status.Error(codes.Unimplemented, "method MoveOrgNode not implemented") +} +func (UnimplementedMembershipServiceServer) ListOrgNodeMembers(context.Context, *ListOrgNodeMembersRequest) (*ListOrgNodeMembersResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListOrgNodeMembers not implemented") +} +func (UnimplementedMembershipServiceServer) mustEmbedUnimplementedMembershipServiceServer() {} +func (UnimplementedMembershipServiceServer) testEmbeddedByValue() {} + +// UnsafeMembershipServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to MembershipServiceServer will +// result in compilation errors. +type UnsafeMembershipServiceServer interface { + mustEmbedUnimplementedMembershipServiceServer() +} + +func RegisterMembershipServiceServer(s grpc.ServiceRegistrar, srv MembershipServiceServer) { + // If the following call panics, it indicates UnimplementedMembershipServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&MembershipService_ServiceDesc, srv) +} + +func _MembershipService_ListUserGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListUserGroupsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MembershipServiceServer).ListUserGroups(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MembershipService_ListUserGroups_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MembershipServiceServer).ListUserGroups(ctx, req.(*ListUserGroupsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MembershipService_GetUserGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetUserGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MembershipServiceServer).GetUserGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MembershipService_GetUserGroup_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MembershipServiceServer).GetUserGroup(ctx, req.(*GetUserGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MembershipService_CreateUserGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateUserGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MembershipServiceServer).CreateUserGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MembershipService_CreateUserGroup_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MembershipServiceServer).CreateUserGroup(ctx, req.(*CreateUserGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MembershipService_UpdateUserGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateUserGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MembershipServiceServer).UpdateUserGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MembershipService_UpdateUserGroup_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MembershipServiceServer).UpdateUserGroup(ctx, req.(*UpdateUserGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MembershipService_DeleteUserGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteUserGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MembershipServiceServer).DeleteUserGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MembershipService_DeleteUserGroup_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MembershipServiceServer).DeleteUserGroup(ctx, req.(*DeleteUserGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MembershipService_ListUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListUsersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MembershipServiceServer).ListUsers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MembershipService_ListUsers_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MembershipServiceServer).ListUsers(ctx, req.(*ListUsersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MembershipService_UpdateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MembershipServiceServer).UpdateUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MembershipService_UpdateUser_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MembershipServiceServer).UpdateUser(ctx, req.(*UpdateUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MembershipService_ListUserGroupMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListUserGroupMembersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MembershipServiceServer).ListUserGroupMembers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MembershipService_ListUserGroupMembers_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MembershipServiceServer).ListUserGroupMembers(ctx, req.(*ListUserGroupMembersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MembershipService_ListOrgNodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListOrgNodesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MembershipServiceServer).ListOrgNodes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MembershipService_ListOrgNodes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MembershipServiceServer).ListOrgNodes(ctx, req.(*ListOrgNodesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MembershipService_GetOrgNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetOrgNodeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MembershipServiceServer).GetOrgNode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MembershipService_GetOrgNode_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MembershipServiceServer).GetOrgNode(ctx, req.(*GetOrgNodeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MembershipService_CreateOrgNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateOrgNodeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MembershipServiceServer).CreateOrgNode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MembershipService_CreateOrgNode_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MembershipServiceServer).CreateOrgNode(ctx, req.(*CreateOrgNodeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MembershipService_UpdateOrgNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateOrgNodeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MembershipServiceServer).UpdateOrgNode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MembershipService_UpdateOrgNode_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MembershipServiceServer).UpdateOrgNode(ctx, req.(*UpdateOrgNodeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MembershipService_DeleteOrgNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteOrgNodeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MembershipServiceServer).DeleteOrgNode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MembershipService_DeleteOrgNode_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MembershipServiceServer).DeleteOrgNode(ctx, req.(*DeleteOrgNodeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MembershipService_MoveOrgNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MoveOrgNodeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MembershipServiceServer).MoveOrgNode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MembershipService_MoveOrgNode_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MembershipServiceServer).MoveOrgNode(ctx, req.(*MoveOrgNodeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MembershipService_ListOrgNodeMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListOrgNodeMembersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MembershipServiceServer).ListOrgNodeMembers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MembershipService_ListOrgNodeMembers_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MembershipServiceServer).ListOrgNodeMembers(ctx, req.(*ListOrgNodeMembersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// MembershipService_ServiceDesc is the grpc.ServiceDesc for MembershipService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var MembershipService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "yoresee_doc.v1.MembershipService", + HandlerType: (*MembershipServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ListUserGroups", + Handler: _MembershipService_ListUserGroups_Handler, + }, + { + MethodName: "GetUserGroup", + Handler: _MembershipService_GetUserGroup_Handler, + }, + { + MethodName: "CreateUserGroup", + Handler: _MembershipService_CreateUserGroup_Handler, + }, + { + MethodName: "UpdateUserGroup", + Handler: _MembershipService_UpdateUserGroup_Handler, + }, + { + MethodName: "DeleteUserGroup", + Handler: _MembershipService_DeleteUserGroup_Handler, + }, + { + MethodName: "ListUsers", + Handler: _MembershipService_ListUsers_Handler, + }, + { + MethodName: "UpdateUser", + Handler: _MembershipService_UpdateUser_Handler, + }, + { + MethodName: "ListUserGroupMembers", + Handler: _MembershipService_ListUserGroupMembers_Handler, + }, + { + MethodName: "ListOrgNodes", + Handler: _MembershipService_ListOrgNodes_Handler, + }, + { + MethodName: "GetOrgNode", + Handler: _MembershipService_GetOrgNode_Handler, + }, + { + MethodName: "CreateOrgNode", + Handler: _MembershipService_CreateOrgNode_Handler, + }, + { + MethodName: "UpdateOrgNode", + Handler: _MembershipService_UpdateOrgNode_Handler, + }, + { + MethodName: "DeleteOrgNode", + Handler: _MembershipService_DeleteOrgNode_Handler, + }, + { + MethodName: "MoveOrgNode", + Handler: _MembershipService_MoveOrgNode_Handler, + }, + { + MethodName: "ListOrgNodeMembers", + Handler: _MembershipService_ListOrgNodeMembers_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yoresee_doc/v1/yoresee_doc.proto", +} + +const ( + InvitationService_CreateInvitation_FullMethodName = "/yoresee_doc.v1.InvitationService/CreateInvitation" + InvitationService_ListInvitations_FullMethodName = "/yoresee_doc.v1.InvitationService/ListInvitations" + InvitationService_UpdateInvitation_FullMethodName = "/yoresee_doc.v1.InvitationService/UpdateInvitation" + InvitationService_DeleteInvitation_FullMethodName = "/yoresee_doc.v1.InvitationService/DeleteInvitation" + InvitationService_ListInvitationRecords_FullMethodName = "/yoresee_doc.v1.InvitationService/ListInvitationRecords" +) + +// InvitationServiceClient is the client API for InvitationService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// invitationService provides invitation management APIs. +type InvitationServiceClient interface { + // create invitation code. + CreateInvitation(ctx context.Context, in *CreateInvitationRequest, opts ...grpc.CallOption) (*CreateInvitationResponse, error) + // list invitations with filters and pagination. + ListInvitations(ctx context.Context, in *ListInvitationsRequest, opts ...grpc.CallOption) (*ListInvitationsResponse, error) + // update invitation code. + UpdateInvitation(ctx context.Context, in *UpdateInvitationRequest, opts ...grpc.CallOption) (*UpdateInvitationResponse, error) + // delete invitation code. + DeleteInvitation(ctx context.Context, in *DeleteInvitationRequest, opts ...grpc.CallOption) (*DeleteInvitationResponse, error) + // list invitation usage records. + ListInvitationRecords(ctx context.Context, in *ListInvitationRecordsRequest, opts ...grpc.CallOption) (*ListInvitationRecordsResponse, error) +} + +type invitationServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewInvitationServiceClient(cc grpc.ClientConnInterface) InvitationServiceClient { + return &invitationServiceClient{cc} +} + +func (c *invitationServiceClient) CreateInvitation(ctx context.Context, in *CreateInvitationRequest, opts ...grpc.CallOption) (*CreateInvitationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CreateInvitationResponse) + err := c.cc.Invoke(ctx, InvitationService_CreateInvitation_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *invitationServiceClient) ListInvitations(ctx context.Context, in *ListInvitationsRequest, opts ...grpc.CallOption) (*ListInvitationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListInvitationsResponse) + err := c.cc.Invoke(ctx, InvitationService_ListInvitations_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *invitationServiceClient) UpdateInvitation(ctx context.Context, in *UpdateInvitationRequest, opts ...grpc.CallOption) (*UpdateInvitationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateInvitationResponse) + err := c.cc.Invoke(ctx, InvitationService_UpdateInvitation_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *invitationServiceClient) DeleteInvitation(ctx context.Context, in *DeleteInvitationRequest, opts ...grpc.CallOption) (*DeleteInvitationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteInvitationResponse) + err := c.cc.Invoke(ctx, InvitationService_DeleteInvitation_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *invitationServiceClient) ListInvitationRecords(ctx context.Context, in *ListInvitationRecordsRequest, opts ...grpc.CallOption) (*ListInvitationRecordsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListInvitationRecordsResponse) + err := c.cc.Invoke(ctx, InvitationService_ListInvitationRecords_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// InvitationServiceServer is the server API for InvitationService service. +// All implementations must embed UnimplementedInvitationServiceServer +// for forward compatibility. +// +// invitationService provides invitation management APIs. +type InvitationServiceServer interface { + // create invitation code. + CreateInvitation(context.Context, *CreateInvitationRequest) (*CreateInvitationResponse, error) + // list invitations with filters and pagination. + ListInvitations(context.Context, *ListInvitationsRequest) (*ListInvitationsResponse, error) + // update invitation code. + UpdateInvitation(context.Context, *UpdateInvitationRequest) (*UpdateInvitationResponse, error) + // delete invitation code. + DeleteInvitation(context.Context, *DeleteInvitationRequest) (*DeleteInvitationResponse, error) + // list invitation usage records. + ListInvitationRecords(context.Context, *ListInvitationRecordsRequest) (*ListInvitationRecordsResponse, error) + mustEmbedUnimplementedInvitationServiceServer() +} + +// UnimplementedInvitationServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedInvitationServiceServer struct{} + +func (UnimplementedInvitationServiceServer) CreateInvitation(context.Context, *CreateInvitationRequest) (*CreateInvitationResponse, error) { + return nil, status.Error(codes.Unimplemented, "method CreateInvitation not implemented") +} +func (UnimplementedInvitationServiceServer) ListInvitations(context.Context, *ListInvitationsRequest) (*ListInvitationsResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListInvitations not implemented") +} +func (UnimplementedInvitationServiceServer) UpdateInvitation(context.Context, *UpdateInvitationRequest) (*UpdateInvitationResponse, error) { + return nil, status.Error(codes.Unimplemented, "method UpdateInvitation not implemented") +} +func (UnimplementedInvitationServiceServer) DeleteInvitation(context.Context, *DeleteInvitationRequest) (*DeleteInvitationResponse, error) { + return nil, status.Error(codes.Unimplemented, "method DeleteInvitation not implemented") +} +func (UnimplementedInvitationServiceServer) ListInvitationRecords(context.Context, *ListInvitationRecordsRequest) (*ListInvitationRecordsResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListInvitationRecords not implemented") +} +func (UnimplementedInvitationServiceServer) mustEmbedUnimplementedInvitationServiceServer() {} +func (UnimplementedInvitationServiceServer) testEmbeddedByValue() {} + +// UnsafeInvitationServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to InvitationServiceServer will +// result in compilation errors. +type UnsafeInvitationServiceServer interface { + mustEmbedUnimplementedInvitationServiceServer() +} + +func RegisterInvitationServiceServer(s grpc.ServiceRegistrar, srv InvitationServiceServer) { + // If the following call panics, it indicates UnimplementedInvitationServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&InvitationService_ServiceDesc, srv) +} + +func _InvitationService_CreateInvitation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateInvitationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InvitationServiceServer).CreateInvitation(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: InvitationService_CreateInvitation_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InvitationServiceServer).CreateInvitation(ctx, req.(*CreateInvitationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InvitationService_ListInvitations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListInvitationsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InvitationServiceServer).ListInvitations(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: InvitationService_ListInvitations_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InvitationServiceServer).ListInvitations(ctx, req.(*ListInvitationsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InvitationService_UpdateInvitation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateInvitationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InvitationServiceServer).UpdateInvitation(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: InvitationService_UpdateInvitation_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InvitationServiceServer).UpdateInvitation(ctx, req.(*UpdateInvitationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InvitationService_DeleteInvitation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteInvitationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InvitationServiceServer).DeleteInvitation(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: InvitationService_DeleteInvitation_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InvitationServiceServer).DeleteInvitation(ctx, req.(*DeleteInvitationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InvitationService_ListInvitationRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListInvitationRecordsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InvitationServiceServer).ListInvitationRecords(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: InvitationService_ListInvitationRecords_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InvitationServiceServer).ListInvitationRecords(ctx, req.(*ListInvitationRecordsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// InvitationService_ServiceDesc is the grpc.ServiceDesc for InvitationService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var InvitationService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "yoresee_doc.v1.InvitationService", + HandlerType: (*InvitationServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateInvitation", + Handler: _InvitationService_CreateInvitation_Handler, + }, + { + MethodName: "ListInvitations", + Handler: _InvitationService_ListInvitations_Handler, + }, + { + MethodName: "UpdateInvitation", + Handler: _InvitationService_UpdateInvitation_Handler, + }, + { + MethodName: "DeleteInvitation", + Handler: _InvitationService_DeleteInvitation_Handler, + }, + { + MethodName: "ListInvitationRecords", + Handler: _InvitationService_ListInvitationRecords_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yoresee_doc/v1/yoresee_doc.proto", +} + +const ( + NotificationService_CreateNotification_FullMethodName = "/yoresee_doc.v1.NotificationService/CreateNotification" + NotificationService_ListNotifications_FullMethodName = "/yoresee_doc.v1.NotificationService/ListNotifications" + NotificationService_MarkNotificationsRead_FullMethodName = "/yoresee_doc.v1.NotificationService/MarkNotificationsRead" + NotificationService_MarkAllNotificationsRead_FullMethodName = "/yoresee_doc.v1.NotificationService/MarkAllNotificationsRead" +) + +// NotificationServiceClient is the client API for NotificationService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// notificationService provides notification APIs. +type NotificationServiceClient interface { + // create notifications (single or batch). + CreateNotification(ctx context.Context, in *CreateNotificationRequest, opts ...grpc.CallOption) (*CreateNotificationResponse, error) + // list notifications for current user. + ListNotifications(ctx context.Context, in *ListNotificationsRequest, opts ...grpc.CallOption) (*ListNotificationsResponse, error) + // mark notifications as read. + MarkNotificationsRead(ctx context.Context, in *MarkNotificationsReadRequest, opts ...grpc.CallOption) (*MarkNotificationsReadResponse, error) + // mark all notifications as read. + MarkAllNotificationsRead(ctx context.Context, in *MarkAllNotificationsReadRequest, opts ...grpc.CallOption) (*MarkAllNotificationsReadResponse, error) +} + +type notificationServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewNotificationServiceClient(cc grpc.ClientConnInterface) NotificationServiceClient { + return ¬ificationServiceClient{cc} +} + +func (c *notificationServiceClient) CreateNotification(ctx context.Context, in *CreateNotificationRequest, opts ...grpc.CallOption) (*CreateNotificationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CreateNotificationResponse) + err := c.cc.Invoke(ctx, NotificationService_CreateNotification_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *notificationServiceClient) ListNotifications(ctx context.Context, in *ListNotificationsRequest, opts ...grpc.CallOption) (*ListNotificationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListNotificationsResponse) + err := c.cc.Invoke(ctx, NotificationService_ListNotifications_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *notificationServiceClient) MarkNotificationsRead(ctx context.Context, in *MarkNotificationsReadRequest, opts ...grpc.CallOption) (*MarkNotificationsReadResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MarkNotificationsReadResponse) + err := c.cc.Invoke(ctx, NotificationService_MarkNotificationsRead_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *notificationServiceClient) MarkAllNotificationsRead(ctx context.Context, in *MarkAllNotificationsReadRequest, opts ...grpc.CallOption) (*MarkAllNotificationsReadResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MarkAllNotificationsReadResponse) + err := c.cc.Invoke(ctx, NotificationService_MarkAllNotificationsRead_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// NotificationServiceServer is the server API for NotificationService service. +// All implementations must embed UnimplementedNotificationServiceServer +// for forward compatibility. +// +// notificationService provides notification APIs. +type NotificationServiceServer interface { + // create notifications (single or batch). + CreateNotification(context.Context, *CreateNotificationRequest) (*CreateNotificationResponse, error) + // list notifications for current user. + ListNotifications(context.Context, *ListNotificationsRequest) (*ListNotificationsResponse, error) + // mark notifications as read. + MarkNotificationsRead(context.Context, *MarkNotificationsReadRequest) (*MarkNotificationsReadResponse, error) + // mark all notifications as read. + MarkAllNotificationsRead(context.Context, *MarkAllNotificationsReadRequest) (*MarkAllNotificationsReadResponse, error) + mustEmbedUnimplementedNotificationServiceServer() +} + +// UnimplementedNotificationServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedNotificationServiceServer struct{} + +func (UnimplementedNotificationServiceServer) CreateNotification(context.Context, *CreateNotificationRequest) (*CreateNotificationResponse, error) { + return nil, status.Error(codes.Unimplemented, "method CreateNotification not implemented") +} +func (UnimplementedNotificationServiceServer) ListNotifications(context.Context, *ListNotificationsRequest) (*ListNotificationsResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListNotifications not implemented") +} +func (UnimplementedNotificationServiceServer) MarkNotificationsRead(context.Context, *MarkNotificationsReadRequest) (*MarkNotificationsReadResponse, error) { + return nil, status.Error(codes.Unimplemented, "method MarkNotificationsRead not implemented") +} +func (UnimplementedNotificationServiceServer) MarkAllNotificationsRead(context.Context, *MarkAllNotificationsReadRequest) (*MarkAllNotificationsReadResponse, error) { + return nil, status.Error(codes.Unimplemented, "method MarkAllNotificationsRead not implemented") +} +func (UnimplementedNotificationServiceServer) mustEmbedUnimplementedNotificationServiceServer() {} +func (UnimplementedNotificationServiceServer) testEmbeddedByValue() {} + +// UnsafeNotificationServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to NotificationServiceServer will +// result in compilation errors. +type UnsafeNotificationServiceServer interface { + mustEmbedUnimplementedNotificationServiceServer() +} + +func RegisterNotificationServiceServer(s grpc.ServiceRegistrar, srv NotificationServiceServer) { + // If the following call panics, it indicates UnimplementedNotificationServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&NotificationService_ServiceDesc, srv) +} + +func _NotificationService_CreateNotification_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateNotificationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NotificationServiceServer).CreateNotification(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: NotificationService_CreateNotification_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NotificationServiceServer).CreateNotification(ctx, req.(*CreateNotificationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NotificationService_ListNotifications_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListNotificationsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NotificationServiceServer).ListNotifications(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: NotificationService_ListNotifications_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NotificationServiceServer).ListNotifications(ctx, req.(*ListNotificationsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NotificationService_MarkNotificationsRead_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MarkNotificationsReadRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NotificationServiceServer).MarkNotificationsRead(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: NotificationService_MarkNotificationsRead_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NotificationServiceServer).MarkNotificationsRead(ctx, req.(*MarkNotificationsReadRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NotificationService_MarkAllNotificationsRead_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MarkAllNotificationsReadRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NotificationServiceServer).MarkAllNotificationsRead(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: NotificationService_MarkAllNotificationsRead_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NotificationServiceServer).MarkAllNotificationsRead(ctx, req.(*MarkAllNotificationsReadRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// NotificationService_ServiceDesc is the grpc.ServiceDesc for NotificationService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var NotificationService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "yoresee_doc.v1.NotificationService", + HandlerType: (*NotificationServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateNotification", + Handler: _NotificationService_CreateNotification_Handler, + }, + { + MethodName: "ListNotifications", + Handler: _NotificationService_ListNotifications_Handler, + }, + { + MethodName: "MarkNotificationsRead", + Handler: _NotificationService_MarkNotificationsRead_Handler, + }, + { + MethodName: "MarkAllNotificationsRead", + Handler: _NotificationService_MarkAllNotificationsRead_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "yoresee_doc/v1/yoresee_doc.proto", +}