Files
eng-pad-server/gen/engpad/v1/sync.pb.go
Kyle Isom f1b67b9909 Add GetNotebook RPC for pulling complete notebook data
New RPC returns notebook metadata, all pages, and all strokes for
a given server-side notebook ID. Enables desktop and other clients
to download notebooks from the server (pull sync).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 15:06:20 -07:00

1177 lines
37 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v3.20.3
// source: proto/engpad/v1/sync.proto
package engpadv1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
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 SyncNotebookRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
NotebookId int64 `protobuf:"varint,1,opt,name=notebook_id,json=notebookId,proto3" json:"notebook_id,omitempty"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
PageSize string `protobuf:"bytes,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
Pages []*PageData `protobuf:"bytes,4,rep,name=pages,proto3" json:"pages,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SyncNotebookRequest) Reset() {
*x = SyncNotebookRequest{}
mi := &file_proto_engpad_v1_sync_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SyncNotebookRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SyncNotebookRequest) ProtoMessage() {}
func (x *SyncNotebookRequest) ProtoReflect() protoreflect.Message {
mi := &file_proto_engpad_v1_sync_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 SyncNotebookRequest.ProtoReflect.Descriptor instead.
func (*SyncNotebookRequest) Descriptor() ([]byte, []int) {
return file_proto_engpad_v1_sync_proto_rawDescGZIP(), []int{0}
}
func (x *SyncNotebookRequest) GetNotebookId() int64 {
if x != nil {
return x.NotebookId
}
return 0
}
func (x *SyncNotebookRequest) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *SyncNotebookRequest) GetPageSize() string {
if x != nil {
return x.PageSize
}
return ""
}
func (x *SyncNotebookRequest) GetPages() []*PageData {
if x != nil {
return x.Pages
}
return nil
}
type PageData struct {
state protoimpl.MessageState `protogen:"open.v1"`
PageId int64 `protobuf:"varint,1,opt,name=page_id,json=pageId,proto3" json:"page_id,omitempty"`
PageNumber int32 `protobuf:"varint,2,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"`
Strokes []*StrokeData `protobuf:"bytes,3,rep,name=strokes,proto3" json:"strokes,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PageData) Reset() {
*x = PageData{}
mi := &file_proto_engpad_v1_sync_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PageData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PageData) ProtoMessage() {}
func (x *PageData) ProtoReflect() protoreflect.Message {
mi := &file_proto_engpad_v1_sync_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 PageData.ProtoReflect.Descriptor instead.
func (*PageData) Descriptor() ([]byte, []int) {
return file_proto_engpad_v1_sync_proto_rawDescGZIP(), []int{1}
}
func (x *PageData) GetPageId() int64 {
if x != nil {
return x.PageId
}
return 0
}
func (x *PageData) GetPageNumber() int32 {
if x != nil {
return x.PageNumber
}
return 0
}
func (x *PageData) GetStrokes() []*StrokeData {
if x != nil {
return x.Strokes
}
return nil
}
type StrokeData struct {
state protoimpl.MessageState `protogen:"open.v1"`
PenSize float32 `protobuf:"fixed32,1,opt,name=pen_size,json=penSize,proto3" json:"pen_size,omitempty"`
Color int32 `protobuf:"varint,2,opt,name=color,proto3" json:"color,omitempty"`
Style string `protobuf:"bytes,3,opt,name=style,proto3" json:"style,omitempty"`
PointData []byte `protobuf:"bytes,4,opt,name=point_data,json=pointData,proto3" json:"point_data,omitempty"`
StrokeOrder int32 `protobuf:"varint,5,opt,name=stroke_order,json=strokeOrder,proto3" json:"stroke_order,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *StrokeData) Reset() {
*x = StrokeData{}
mi := &file_proto_engpad_v1_sync_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *StrokeData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StrokeData) ProtoMessage() {}
func (x *StrokeData) ProtoReflect() protoreflect.Message {
mi := &file_proto_engpad_v1_sync_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 StrokeData.ProtoReflect.Descriptor instead.
func (*StrokeData) Descriptor() ([]byte, []int) {
return file_proto_engpad_v1_sync_proto_rawDescGZIP(), []int{2}
}
func (x *StrokeData) GetPenSize() float32 {
if x != nil {
return x.PenSize
}
return 0
}
func (x *StrokeData) GetColor() int32 {
if x != nil {
return x.Color
}
return 0
}
func (x *StrokeData) GetStyle() string {
if x != nil {
return x.Style
}
return ""
}
func (x *StrokeData) GetPointData() []byte {
if x != nil {
return x.PointData
}
return nil
}
func (x *StrokeData) GetStrokeOrder() int32 {
if x != nil {
return x.StrokeOrder
}
return 0
}
type SyncNotebookResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
ServerNotebookId int64 `protobuf:"varint,1,opt,name=server_notebook_id,json=serverNotebookId,proto3" json:"server_notebook_id,omitempty"`
SyncedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=synced_at,json=syncedAt,proto3" json:"synced_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SyncNotebookResponse) Reset() {
*x = SyncNotebookResponse{}
mi := &file_proto_engpad_v1_sync_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SyncNotebookResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SyncNotebookResponse) ProtoMessage() {}
func (x *SyncNotebookResponse) ProtoReflect() protoreflect.Message {
mi := &file_proto_engpad_v1_sync_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 SyncNotebookResponse.ProtoReflect.Descriptor instead.
func (*SyncNotebookResponse) Descriptor() ([]byte, []int) {
return file_proto_engpad_v1_sync_proto_rawDescGZIP(), []int{3}
}
func (x *SyncNotebookResponse) GetServerNotebookId() int64 {
if x != nil {
return x.ServerNotebookId
}
return 0
}
func (x *SyncNotebookResponse) GetSyncedAt() *timestamppb.Timestamp {
if x != nil {
return x.SyncedAt
}
return nil
}
type GetNotebookRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
NotebookId int64 `protobuf:"varint,1,opt,name=notebook_id,json=notebookId,proto3" json:"notebook_id,omitempty"` // Server-side notebook ID
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetNotebookRequest) Reset() {
*x = GetNotebookRequest{}
mi := &file_proto_engpad_v1_sync_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetNotebookRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetNotebookRequest) ProtoMessage() {}
func (x *GetNotebookRequest) ProtoReflect() protoreflect.Message {
mi := &file_proto_engpad_v1_sync_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 GetNotebookRequest.ProtoReflect.Descriptor instead.
func (*GetNotebookRequest) Descriptor() ([]byte, []int) {
return file_proto_engpad_v1_sync_proto_rawDescGZIP(), []int{4}
}
func (x *GetNotebookRequest) GetNotebookId() int64 {
if x != nil {
return x.NotebookId
}
return 0
}
type GetNotebookResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
ServerNotebookId int64 `protobuf:"varint,1,opt,name=server_notebook_id,json=serverNotebookId,proto3" json:"server_notebook_id,omitempty"`
RemoteId int64 `protobuf:"varint,2,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"`
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
PageSize string `protobuf:"bytes,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
Pages []*PageData `protobuf:"bytes,5,rep,name=pages,proto3" json:"pages,omitempty"`
SyncedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=synced_at,json=syncedAt,proto3" json:"synced_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetNotebookResponse) Reset() {
*x = GetNotebookResponse{}
mi := &file_proto_engpad_v1_sync_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetNotebookResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetNotebookResponse) ProtoMessage() {}
func (x *GetNotebookResponse) ProtoReflect() protoreflect.Message {
mi := &file_proto_engpad_v1_sync_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 GetNotebookResponse.ProtoReflect.Descriptor instead.
func (*GetNotebookResponse) Descriptor() ([]byte, []int) {
return file_proto_engpad_v1_sync_proto_rawDescGZIP(), []int{5}
}
func (x *GetNotebookResponse) GetServerNotebookId() int64 {
if x != nil {
return x.ServerNotebookId
}
return 0
}
func (x *GetNotebookResponse) GetRemoteId() int64 {
if x != nil {
return x.RemoteId
}
return 0
}
func (x *GetNotebookResponse) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *GetNotebookResponse) GetPageSize() string {
if x != nil {
return x.PageSize
}
return ""
}
func (x *GetNotebookResponse) GetPages() []*PageData {
if x != nil {
return x.Pages
}
return nil
}
func (x *GetNotebookResponse) GetSyncedAt() *timestamppb.Timestamp {
if x != nil {
return x.SyncedAt
}
return nil
}
type DeleteNotebookRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
NotebookId int64 `protobuf:"varint,1,opt,name=notebook_id,json=notebookId,proto3" json:"notebook_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeleteNotebookRequest) Reset() {
*x = DeleteNotebookRequest{}
mi := &file_proto_engpad_v1_sync_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteNotebookRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteNotebookRequest) ProtoMessage() {}
func (x *DeleteNotebookRequest) ProtoReflect() protoreflect.Message {
mi := &file_proto_engpad_v1_sync_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 DeleteNotebookRequest.ProtoReflect.Descriptor instead.
func (*DeleteNotebookRequest) Descriptor() ([]byte, []int) {
return file_proto_engpad_v1_sync_proto_rawDescGZIP(), []int{6}
}
func (x *DeleteNotebookRequest) GetNotebookId() int64 {
if x != nil {
return x.NotebookId
}
return 0
}
type DeleteNotebookResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeleteNotebookResponse) Reset() {
*x = DeleteNotebookResponse{}
mi := &file_proto_engpad_v1_sync_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteNotebookResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteNotebookResponse) ProtoMessage() {}
func (x *DeleteNotebookResponse) ProtoReflect() protoreflect.Message {
mi := &file_proto_engpad_v1_sync_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 DeleteNotebookResponse.ProtoReflect.Descriptor instead.
func (*DeleteNotebookResponse) Descriptor() ([]byte, []int) {
return file_proto_engpad_v1_sync_proto_rawDescGZIP(), []int{7}
}
type ListNotebooksRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListNotebooksRequest) Reset() {
*x = ListNotebooksRequest{}
mi := &file_proto_engpad_v1_sync_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListNotebooksRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListNotebooksRequest) ProtoMessage() {}
func (x *ListNotebooksRequest) ProtoReflect() protoreflect.Message {
mi := &file_proto_engpad_v1_sync_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 ListNotebooksRequest.ProtoReflect.Descriptor instead.
func (*ListNotebooksRequest) Descriptor() ([]byte, []int) {
return file_proto_engpad_v1_sync_proto_rawDescGZIP(), []int{8}
}
type ListNotebooksResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Notebooks []*NotebookSummary `protobuf:"bytes,1,rep,name=notebooks,proto3" json:"notebooks,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListNotebooksResponse) Reset() {
*x = ListNotebooksResponse{}
mi := &file_proto_engpad_v1_sync_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListNotebooksResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListNotebooksResponse) ProtoMessage() {}
func (x *ListNotebooksResponse) ProtoReflect() protoreflect.Message {
mi := &file_proto_engpad_v1_sync_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 ListNotebooksResponse.ProtoReflect.Descriptor instead.
func (*ListNotebooksResponse) Descriptor() ([]byte, []int) {
return file_proto_engpad_v1_sync_proto_rawDescGZIP(), []int{9}
}
func (x *ListNotebooksResponse) GetNotebooks() []*NotebookSummary {
if x != nil {
return x.Notebooks
}
return nil
}
type NotebookSummary struct {
state protoimpl.MessageState `protogen:"open.v1"`
ServerId int64 `protobuf:"varint,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
RemoteId int64 `protobuf:"varint,2,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"`
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
PageSize string `protobuf:"bytes,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
PageCount int32 `protobuf:"varint,5,opt,name=page_count,json=pageCount,proto3" json:"page_count,omitempty"`
SyncedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=synced_at,json=syncedAt,proto3" json:"synced_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NotebookSummary) Reset() {
*x = NotebookSummary{}
mi := &file_proto_engpad_v1_sync_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NotebookSummary) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NotebookSummary) ProtoMessage() {}
func (x *NotebookSummary) ProtoReflect() protoreflect.Message {
mi := &file_proto_engpad_v1_sync_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 NotebookSummary.ProtoReflect.Descriptor instead.
func (*NotebookSummary) Descriptor() ([]byte, []int) {
return file_proto_engpad_v1_sync_proto_rawDescGZIP(), []int{10}
}
func (x *NotebookSummary) GetServerId() int64 {
if x != nil {
return x.ServerId
}
return 0
}
func (x *NotebookSummary) GetRemoteId() int64 {
if x != nil {
return x.RemoteId
}
return 0
}
func (x *NotebookSummary) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *NotebookSummary) GetPageSize() string {
if x != nil {
return x.PageSize
}
return ""
}
func (x *NotebookSummary) GetPageCount() int32 {
if x != nil {
return x.PageCount
}
return 0
}
func (x *NotebookSummary) GetSyncedAt() *timestamppb.Timestamp {
if x != nil {
return x.SyncedAt
}
return nil
}
type CreateShareLinkRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
NotebookId int64 `protobuf:"varint,1,opt,name=notebook_id,json=notebookId,proto3" json:"notebook_id,omitempty"`
ExpiresInSeconds int64 `protobuf:"varint,2,opt,name=expires_in_seconds,json=expiresInSeconds,proto3" json:"expires_in_seconds,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateShareLinkRequest) Reset() {
*x = CreateShareLinkRequest{}
mi := &file_proto_engpad_v1_sync_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateShareLinkRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateShareLinkRequest) ProtoMessage() {}
func (x *CreateShareLinkRequest) ProtoReflect() protoreflect.Message {
mi := &file_proto_engpad_v1_sync_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 CreateShareLinkRequest.ProtoReflect.Descriptor instead.
func (*CreateShareLinkRequest) Descriptor() ([]byte, []int) {
return file_proto_engpad_v1_sync_proto_rawDescGZIP(), []int{11}
}
func (x *CreateShareLinkRequest) GetNotebookId() int64 {
if x != nil {
return x.NotebookId
}
return 0
}
func (x *CreateShareLinkRequest) GetExpiresInSeconds() int64 {
if x != nil {
return x.ExpiresInSeconds
}
return 0
}
type CreateShareLinkResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateShareLinkResponse) Reset() {
*x = CreateShareLinkResponse{}
mi := &file_proto_engpad_v1_sync_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateShareLinkResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateShareLinkResponse) ProtoMessage() {}
func (x *CreateShareLinkResponse) ProtoReflect() protoreflect.Message {
mi := &file_proto_engpad_v1_sync_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 CreateShareLinkResponse.ProtoReflect.Descriptor instead.
func (*CreateShareLinkResponse) Descriptor() ([]byte, []int) {
return file_proto_engpad_v1_sync_proto_rawDescGZIP(), []int{12}
}
func (x *CreateShareLinkResponse) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
func (x *CreateShareLinkResponse) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
func (x *CreateShareLinkResponse) GetExpiresAt() *timestamppb.Timestamp {
if x != nil {
return x.ExpiresAt
}
return nil
}
type RevokeShareLinkRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RevokeShareLinkRequest) Reset() {
*x = RevokeShareLinkRequest{}
mi := &file_proto_engpad_v1_sync_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RevokeShareLinkRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RevokeShareLinkRequest) ProtoMessage() {}
func (x *RevokeShareLinkRequest) ProtoReflect() protoreflect.Message {
mi := &file_proto_engpad_v1_sync_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 RevokeShareLinkRequest.ProtoReflect.Descriptor instead.
func (*RevokeShareLinkRequest) Descriptor() ([]byte, []int) {
return file_proto_engpad_v1_sync_proto_rawDescGZIP(), []int{13}
}
func (x *RevokeShareLinkRequest) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
type RevokeShareLinkResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RevokeShareLinkResponse) Reset() {
*x = RevokeShareLinkResponse{}
mi := &file_proto_engpad_v1_sync_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RevokeShareLinkResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RevokeShareLinkResponse) ProtoMessage() {}
func (x *RevokeShareLinkResponse) ProtoReflect() protoreflect.Message {
mi := &file_proto_engpad_v1_sync_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 RevokeShareLinkResponse.ProtoReflect.Descriptor instead.
func (*RevokeShareLinkResponse) Descriptor() ([]byte, []int) {
return file_proto_engpad_v1_sync_proto_rawDescGZIP(), []int{14}
}
type ListShareLinksRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
NotebookId int64 `protobuf:"varint,1,opt,name=notebook_id,json=notebookId,proto3" json:"notebook_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListShareLinksRequest) Reset() {
*x = ListShareLinksRequest{}
mi := &file_proto_engpad_v1_sync_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListShareLinksRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListShareLinksRequest) ProtoMessage() {}
func (x *ListShareLinksRequest) ProtoReflect() protoreflect.Message {
mi := &file_proto_engpad_v1_sync_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 ListShareLinksRequest.ProtoReflect.Descriptor instead.
func (*ListShareLinksRequest) Descriptor() ([]byte, []int) {
return file_proto_engpad_v1_sync_proto_rawDescGZIP(), []int{15}
}
func (x *ListShareLinksRequest) GetNotebookId() int64 {
if x != nil {
return x.NotebookId
}
return 0
}
type ListShareLinksResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Links []*ShareLinkInfo `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListShareLinksResponse) Reset() {
*x = ListShareLinksResponse{}
mi := &file_proto_engpad_v1_sync_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListShareLinksResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListShareLinksResponse) ProtoMessage() {}
func (x *ListShareLinksResponse) ProtoReflect() protoreflect.Message {
mi := &file_proto_engpad_v1_sync_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 ListShareLinksResponse.ProtoReflect.Descriptor instead.
func (*ListShareLinksResponse) Descriptor() ([]byte, []int) {
return file_proto_engpad_v1_sync_proto_rawDescGZIP(), []int{16}
}
func (x *ListShareLinksResponse) GetLinks() []*ShareLinkInfo {
if x != nil {
return x.Links
}
return nil
}
type ShareLinkInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ShareLinkInfo) Reset() {
*x = ShareLinkInfo{}
mi := &file_proto_engpad_v1_sync_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ShareLinkInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ShareLinkInfo) ProtoMessage() {}
func (x *ShareLinkInfo) ProtoReflect() protoreflect.Message {
mi := &file_proto_engpad_v1_sync_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 ShareLinkInfo.ProtoReflect.Descriptor instead.
func (*ShareLinkInfo) Descriptor() ([]byte, []int) {
return file_proto_engpad_v1_sync_proto_rawDescGZIP(), []int{17}
}
func (x *ShareLinkInfo) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
func (x *ShareLinkInfo) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
func (x *ShareLinkInfo) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *ShareLinkInfo) GetExpiresAt() *timestamppb.Timestamp {
if x != nil {
return x.ExpiresAt
}
return nil
}
var File_proto_engpad_v1_sync_proto protoreflect.FileDescriptor
const file_proto_engpad_v1_sync_proto_rawDesc = "" +
"\n" +
"\x1aproto/engpad/v1/sync.proto\x12\tengpad.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x94\x01\n" +
"\x13SyncNotebookRequest\x12\x1f\n" +
"\vnotebook_id\x18\x01 \x01(\x03R\n" +
"notebookId\x12\x14\n" +
"\x05title\x18\x02 \x01(\tR\x05title\x12\x1b\n" +
"\tpage_size\x18\x03 \x01(\tR\bpageSize\x12)\n" +
"\x05pages\x18\x04 \x03(\v2\x13.engpad.v1.PageDataR\x05pages\"u\n" +
"\bPageData\x12\x17\n" +
"\apage_id\x18\x01 \x01(\x03R\x06pageId\x12\x1f\n" +
"\vpage_number\x18\x02 \x01(\x05R\n" +
"pageNumber\x12/\n" +
"\astrokes\x18\x03 \x03(\v2\x15.engpad.v1.StrokeDataR\astrokes\"\x95\x01\n" +
"\n" +
"StrokeData\x12\x19\n" +
"\bpen_size\x18\x01 \x01(\x02R\apenSize\x12\x14\n" +
"\x05color\x18\x02 \x01(\x05R\x05color\x12\x14\n" +
"\x05style\x18\x03 \x01(\tR\x05style\x12\x1d\n" +
"\n" +
"point_data\x18\x04 \x01(\fR\tpointData\x12!\n" +
"\fstroke_order\x18\x05 \x01(\x05R\vstrokeOrder\"}\n" +
"\x14SyncNotebookResponse\x12,\n" +
"\x12server_notebook_id\x18\x01 \x01(\x03R\x10serverNotebookId\x127\n" +
"\tsynced_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\bsyncedAt\"5\n" +
"\x12GetNotebookRequest\x12\x1f\n" +
"\vnotebook_id\x18\x01 \x01(\x03R\n" +
"notebookId\"\xf7\x01\n" +
"\x13GetNotebookResponse\x12,\n" +
"\x12server_notebook_id\x18\x01 \x01(\x03R\x10serverNotebookId\x12\x1b\n" +
"\tremote_id\x18\x02 \x01(\x03R\bremoteId\x12\x14\n" +
"\x05title\x18\x03 \x01(\tR\x05title\x12\x1b\n" +
"\tpage_size\x18\x04 \x01(\tR\bpageSize\x12)\n" +
"\x05pages\x18\x05 \x03(\v2\x13.engpad.v1.PageDataR\x05pages\x127\n" +
"\tsynced_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\bsyncedAt\"8\n" +
"\x15DeleteNotebookRequest\x12\x1f\n" +
"\vnotebook_id\x18\x01 \x01(\x03R\n" +
"notebookId\"\x18\n" +
"\x16DeleteNotebookResponse\"\x16\n" +
"\x14ListNotebooksRequest\"Q\n" +
"\x15ListNotebooksResponse\x128\n" +
"\tnotebooks\x18\x01 \x03(\v2\x1a.engpad.v1.NotebookSummaryR\tnotebooks\"\xd6\x01\n" +
"\x0fNotebookSummary\x12\x1b\n" +
"\tserver_id\x18\x01 \x01(\x03R\bserverId\x12\x1b\n" +
"\tremote_id\x18\x02 \x01(\x03R\bremoteId\x12\x14\n" +
"\x05title\x18\x03 \x01(\tR\x05title\x12\x1b\n" +
"\tpage_size\x18\x04 \x01(\tR\bpageSize\x12\x1d\n" +
"\n" +
"page_count\x18\x05 \x01(\x05R\tpageCount\x127\n" +
"\tsynced_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\bsyncedAt\"g\n" +
"\x16CreateShareLinkRequest\x12\x1f\n" +
"\vnotebook_id\x18\x01 \x01(\x03R\n" +
"notebookId\x12,\n" +
"\x12expires_in_seconds\x18\x02 \x01(\x03R\x10expiresInSeconds\"|\n" +
"\x17CreateShareLinkResponse\x12\x14\n" +
"\x05token\x18\x01 \x01(\tR\x05token\x12\x10\n" +
"\x03url\x18\x02 \x01(\tR\x03url\x129\n" +
"\n" +
"expires_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\".\n" +
"\x16RevokeShareLinkRequest\x12\x14\n" +
"\x05token\x18\x01 \x01(\tR\x05token\"\x19\n" +
"\x17RevokeShareLinkResponse\"8\n" +
"\x15ListShareLinksRequest\x12\x1f\n" +
"\vnotebook_id\x18\x01 \x01(\x03R\n" +
"notebookId\"H\n" +
"\x16ListShareLinksResponse\x12.\n" +
"\x05links\x18\x01 \x03(\v2\x18.engpad.v1.ShareLinkInfoR\x05links\"\xad\x01\n" +
"\rShareLinkInfo\x12\x14\n" +
"\x05token\x18\x01 \x01(\tR\x05token\x12\x10\n" +
"\x03url\x18\x02 \x01(\tR\x03url\x129\n" +
"\n" +
"created_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
"\n" +
"expires_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt2\xe8\x04\n" +
"\x11EngPadSyncService\x12O\n" +
"\fSyncNotebook\x12\x1e.engpad.v1.SyncNotebookRequest\x1a\x1f.engpad.v1.SyncNotebookResponse\x12L\n" +
"\vGetNotebook\x12\x1d.engpad.v1.GetNotebookRequest\x1a\x1e.engpad.v1.GetNotebookResponse\x12U\n" +
"\x0eDeleteNotebook\x12 .engpad.v1.DeleteNotebookRequest\x1a!.engpad.v1.DeleteNotebookResponse\x12R\n" +
"\rListNotebooks\x12\x1f.engpad.v1.ListNotebooksRequest\x1a .engpad.v1.ListNotebooksResponse\x12X\n" +
"\x0fCreateShareLink\x12!.engpad.v1.CreateShareLinkRequest\x1a\".engpad.v1.CreateShareLinkResponse\x12X\n" +
"\x0fRevokeShareLink\x12!.engpad.v1.RevokeShareLinkRequest\x1a\".engpad.v1.RevokeShareLinkResponse\x12U\n" +
"\x0eListShareLinks\x12 .engpad.v1.ListShareLinksRequest\x1a!.engpad.v1.ListShareLinksResponseBa\n" +
" net.metacircular.engpad.proto.v1P\x01Z;git.wntrmute.dev/kyle/eng-pad-server/gen/engpad/v1;engpadv1b\x06proto3"
var (
file_proto_engpad_v1_sync_proto_rawDescOnce sync.Once
file_proto_engpad_v1_sync_proto_rawDescData []byte
)
func file_proto_engpad_v1_sync_proto_rawDescGZIP() []byte {
file_proto_engpad_v1_sync_proto_rawDescOnce.Do(func() {
file_proto_engpad_v1_sync_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_engpad_v1_sync_proto_rawDesc), len(file_proto_engpad_v1_sync_proto_rawDesc)))
})
return file_proto_engpad_v1_sync_proto_rawDescData
}
var file_proto_engpad_v1_sync_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
var file_proto_engpad_v1_sync_proto_goTypes = []any{
(*SyncNotebookRequest)(nil), // 0: engpad.v1.SyncNotebookRequest
(*PageData)(nil), // 1: engpad.v1.PageData
(*StrokeData)(nil), // 2: engpad.v1.StrokeData
(*SyncNotebookResponse)(nil), // 3: engpad.v1.SyncNotebookResponse
(*GetNotebookRequest)(nil), // 4: engpad.v1.GetNotebookRequest
(*GetNotebookResponse)(nil), // 5: engpad.v1.GetNotebookResponse
(*DeleteNotebookRequest)(nil), // 6: engpad.v1.DeleteNotebookRequest
(*DeleteNotebookResponse)(nil), // 7: engpad.v1.DeleteNotebookResponse
(*ListNotebooksRequest)(nil), // 8: engpad.v1.ListNotebooksRequest
(*ListNotebooksResponse)(nil), // 9: engpad.v1.ListNotebooksResponse
(*NotebookSummary)(nil), // 10: engpad.v1.NotebookSummary
(*CreateShareLinkRequest)(nil), // 11: engpad.v1.CreateShareLinkRequest
(*CreateShareLinkResponse)(nil), // 12: engpad.v1.CreateShareLinkResponse
(*RevokeShareLinkRequest)(nil), // 13: engpad.v1.RevokeShareLinkRequest
(*RevokeShareLinkResponse)(nil), // 14: engpad.v1.RevokeShareLinkResponse
(*ListShareLinksRequest)(nil), // 15: engpad.v1.ListShareLinksRequest
(*ListShareLinksResponse)(nil), // 16: engpad.v1.ListShareLinksResponse
(*ShareLinkInfo)(nil), // 17: engpad.v1.ShareLinkInfo
(*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp
}
var file_proto_engpad_v1_sync_proto_depIdxs = []int32{
1, // 0: engpad.v1.SyncNotebookRequest.pages:type_name -> engpad.v1.PageData
2, // 1: engpad.v1.PageData.strokes:type_name -> engpad.v1.StrokeData
18, // 2: engpad.v1.SyncNotebookResponse.synced_at:type_name -> google.protobuf.Timestamp
1, // 3: engpad.v1.GetNotebookResponse.pages:type_name -> engpad.v1.PageData
18, // 4: engpad.v1.GetNotebookResponse.synced_at:type_name -> google.protobuf.Timestamp
10, // 5: engpad.v1.ListNotebooksResponse.notebooks:type_name -> engpad.v1.NotebookSummary
18, // 6: engpad.v1.NotebookSummary.synced_at:type_name -> google.protobuf.Timestamp
18, // 7: engpad.v1.CreateShareLinkResponse.expires_at:type_name -> google.protobuf.Timestamp
17, // 8: engpad.v1.ListShareLinksResponse.links:type_name -> engpad.v1.ShareLinkInfo
18, // 9: engpad.v1.ShareLinkInfo.created_at:type_name -> google.protobuf.Timestamp
18, // 10: engpad.v1.ShareLinkInfo.expires_at:type_name -> google.protobuf.Timestamp
0, // 11: engpad.v1.EngPadSyncService.SyncNotebook:input_type -> engpad.v1.SyncNotebookRequest
4, // 12: engpad.v1.EngPadSyncService.GetNotebook:input_type -> engpad.v1.GetNotebookRequest
6, // 13: engpad.v1.EngPadSyncService.DeleteNotebook:input_type -> engpad.v1.DeleteNotebookRequest
8, // 14: engpad.v1.EngPadSyncService.ListNotebooks:input_type -> engpad.v1.ListNotebooksRequest
11, // 15: engpad.v1.EngPadSyncService.CreateShareLink:input_type -> engpad.v1.CreateShareLinkRequest
13, // 16: engpad.v1.EngPadSyncService.RevokeShareLink:input_type -> engpad.v1.RevokeShareLinkRequest
15, // 17: engpad.v1.EngPadSyncService.ListShareLinks:input_type -> engpad.v1.ListShareLinksRequest
3, // 18: engpad.v1.EngPadSyncService.SyncNotebook:output_type -> engpad.v1.SyncNotebookResponse
5, // 19: engpad.v1.EngPadSyncService.GetNotebook:output_type -> engpad.v1.GetNotebookResponse
7, // 20: engpad.v1.EngPadSyncService.DeleteNotebook:output_type -> engpad.v1.DeleteNotebookResponse
9, // 21: engpad.v1.EngPadSyncService.ListNotebooks:output_type -> engpad.v1.ListNotebooksResponse
12, // 22: engpad.v1.EngPadSyncService.CreateShareLink:output_type -> engpad.v1.CreateShareLinkResponse
14, // 23: engpad.v1.EngPadSyncService.RevokeShareLink:output_type -> engpad.v1.RevokeShareLinkResponse
16, // 24: engpad.v1.EngPadSyncService.ListShareLinks:output_type -> engpad.v1.ListShareLinksResponse
18, // [18:25] is the sub-list for method output_type
11, // [11:18] is the sub-list for method input_type
11, // [11:11] is the sub-list for extension type_name
11, // [11:11] is the sub-list for extension extendee
0, // [0:11] is the sub-list for field type_name
}
func init() { file_proto_engpad_v1_sync_proto_init() }
func file_proto_engpad_v1_sync_proto_init() {
if File_proto_engpad_v1_sync_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_engpad_v1_sync_proto_rawDesc), len(file_proto_engpad_v1_sync_proto_rawDesc)),
NumEnums: 0,
NumMessages: 18,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_proto_engpad_v1_sync_proto_goTypes,
DependencyIndexes: file_proto_engpad_v1_sync_proto_depIdxs,
MessageInfos: file_proto_engpad_v1_sync_proto_msgTypes,
}.Build()
File_proto_engpad_v1_sync_proto = out.File
file_proto_engpad_v1_sync_proto_goTypes = nil
file_proto_engpad_v1_sync_proto_depIdxs = nil
}