Files
eng-pad-server/gen/engpad/v1/sync_grpc.pb.go
Kyle Isom 49de9269d6 Rename service to EngPadSyncService (buf lint), add java_package, add buf.yaml
- Proto service renamed from EngPadSync to EngPadSyncService per buf
  STANDARD lint rule SERVICE_SUFFIX
- Added java_package and java_multiple_files options for Android client
- Added buf.yaml with STANDARD lint and FILE breaking detection
- Regenerated Go gRPC stubs, updated server references

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

312 lines
13 KiB
Go

// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.6.1
// - protoc v3.20.3
// source: proto/engpad/v1/sync.proto
package engpadv1
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 (
EngPadSyncService_SyncNotebook_FullMethodName = "/engpad.v1.EngPadSyncService/SyncNotebook"
EngPadSyncService_DeleteNotebook_FullMethodName = "/engpad.v1.EngPadSyncService/DeleteNotebook"
EngPadSyncService_ListNotebooks_FullMethodName = "/engpad.v1.EngPadSyncService/ListNotebooks"
EngPadSyncService_CreateShareLink_FullMethodName = "/engpad.v1.EngPadSyncService/CreateShareLink"
EngPadSyncService_RevokeShareLink_FullMethodName = "/engpad.v1.EngPadSyncService/RevokeShareLink"
EngPadSyncService_ListShareLinks_FullMethodName = "/engpad.v1.EngPadSyncService/ListShareLinks"
)
// EngPadSyncServiceClient is the client API for EngPadSyncService 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.
type EngPadSyncServiceClient interface {
SyncNotebook(ctx context.Context, in *SyncNotebookRequest, opts ...grpc.CallOption) (*SyncNotebookResponse, error)
DeleteNotebook(ctx context.Context, in *DeleteNotebookRequest, opts ...grpc.CallOption) (*DeleteNotebookResponse, error)
ListNotebooks(ctx context.Context, in *ListNotebooksRequest, opts ...grpc.CallOption) (*ListNotebooksResponse, error)
CreateShareLink(ctx context.Context, in *CreateShareLinkRequest, opts ...grpc.CallOption) (*CreateShareLinkResponse, error)
RevokeShareLink(ctx context.Context, in *RevokeShareLinkRequest, opts ...grpc.CallOption) (*RevokeShareLinkResponse, error)
ListShareLinks(ctx context.Context, in *ListShareLinksRequest, opts ...grpc.CallOption) (*ListShareLinksResponse, error)
}
type engPadSyncServiceClient struct {
cc grpc.ClientConnInterface
}
func NewEngPadSyncServiceClient(cc grpc.ClientConnInterface) EngPadSyncServiceClient {
return &engPadSyncServiceClient{cc}
}
func (c *engPadSyncServiceClient) SyncNotebook(ctx context.Context, in *SyncNotebookRequest, opts ...grpc.CallOption) (*SyncNotebookResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(SyncNotebookResponse)
err := c.cc.Invoke(ctx, EngPadSyncService_SyncNotebook_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *engPadSyncServiceClient) DeleteNotebook(ctx context.Context, in *DeleteNotebookRequest, opts ...grpc.CallOption) (*DeleteNotebookResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(DeleteNotebookResponse)
err := c.cc.Invoke(ctx, EngPadSyncService_DeleteNotebook_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *engPadSyncServiceClient) ListNotebooks(ctx context.Context, in *ListNotebooksRequest, opts ...grpc.CallOption) (*ListNotebooksResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(ListNotebooksResponse)
err := c.cc.Invoke(ctx, EngPadSyncService_ListNotebooks_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *engPadSyncServiceClient) CreateShareLink(ctx context.Context, in *CreateShareLinkRequest, opts ...grpc.CallOption) (*CreateShareLinkResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(CreateShareLinkResponse)
err := c.cc.Invoke(ctx, EngPadSyncService_CreateShareLink_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *engPadSyncServiceClient) RevokeShareLink(ctx context.Context, in *RevokeShareLinkRequest, opts ...grpc.CallOption) (*RevokeShareLinkResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(RevokeShareLinkResponse)
err := c.cc.Invoke(ctx, EngPadSyncService_RevokeShareLink_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *engPadSyncServiceClient) ListShareLinks(ctx context.Context, in *ListShareLinksRequest, opts ...grpc.CallOption) (*ListShareLinksResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(ListShareLinksResponse)
err := c.cc.Invoke(ctx, EngPadSyncService_ListShareLinks_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// EngPadSyncServiceServer is the server API for EngPadSyncService service.
// All implementations must embed UnimplementedEngPadSyncServiceServer
// for forward compatibility.
type EngPadSyncServiceServer interface {
SyncNotebook(context.Context, *SyncNotebookRequest) (*SyncNotebookResponse, error)
DeleteNotebook(context.Context, *DeleteNotebookRequest) (*DeleteNotebookResponse, error)
ListNotebooks(context.Context, *ListNotebooksRequest) (*ListNotebooksResponse, error)
CreateShareLink(context.Context, *CreateShareLinkRequest) (*CreateShareLinkResponse, error)
RevokeShareLink(context.Context, *RevokeShareLinkRequest) (*RevokeShareLinkResponse, error)
ListShareLinks(context.Context, *ListShareLinksRequest) (*ListShareLinksResponse, error)
mustEmbedUnimplementedEngPadSyncServiceServer()
}
// UnimplementedEngPadSyncServiceServer 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 UnimplementedEngPadSyncServiceServer struct{}
func (UnimplementedEngPadSyncServiceServer) SyncNotebook(context.Context, *SyncNotebookRequest) (*SyncNotebookResponse, error) {
return nil, status.Error(codes.Unimplemented, "method SyncNotebook not implemented")
}
func (UnimplementedEngPadSyncServiceServer) DeleteNotebook(context.Context, *DeleteNotebookRequest) (*DeleteNotebookResponse, error) {
return nil, status.Error(codes.Unimplemented, "method DeleteNotebook not implemented")
}
func (UnimplementedEngPadSyncServiceServer) ListNotebooks(context.Context, *ListNotebooksRequest) (*ListNotebooksResponse, error) {
return nil, status.Error(codes.Unimplemented, "method ListNotebooks not implemented")
}
func (UnimplementedEngPadSyncServiceServer) CreateShareLink(context.Context, *CreateShareLinkRequest) (*CreateShareLinkResponse, error) {
return nil, status.Error(codes.Unimplemented, "method CreateShareLink not implemented")
}
func (UnimplementedEngPadSyncServiceServer) RevokeShareLink(context.Context, *RevokeShareLinkRequest) (*RevokeShareLinkResponse, error) {
return nil, status.Error(codes.Unimplemented, "method RevokeShareLink not implemented")
}
func (UnimplementedEngPadSyncServiceServer) ListShareLinks(context.Context, *ListShareLinksRequest) (*ListShareLinksResponse, error) {
return nil, status.Error(codes.Unimplemented, "method ListShareLinks not implemented")
}
func (UnimplementedEngPadSyncServiceServer) mustEmbedUnimplementedEngPadSyncServiceServer() {}
func (UnimplementedEngPadSyncServiceServer) testEmbeddedByValue() {}
// UnsafeEngPadSyncServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to EngPadSyncServiceServer will
// result in compilation errors.
type UnsafeEngPadSyncServiceServer interface {
mustEmbedUnimplementedEngPadSyncServiceServer()
}
func RegisterEngPadSyncServiceServer(s grpc.ServiceRegistrar, srv EngPadSyncServiceServer) {
// If the following call panics, it indicates UnimplementedEngPadSyncServiceServer 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(&EngPadSyncService_ServiceDesc, srv)
}
func _EngPadSyncService_SyncNotebook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SyncNotebookRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EngPadSyncServiceServer).SyncNotebook(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: EngPadSyncService_SyncNotebook_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EngPadSyncServiceServer).SyncNotebook(ctx, req.(*SyncNotebookRequest))
}
return interceptor(ctx, in, info, handler)
}
func _EngPadSyncService_DeleteNotebook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteNotebookRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EngPadSyncServiceServer).DeleteNotebook(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: EngPadSyncService_DeleteNotebook_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EngPadSyncServiceServer).DeleteNotebook(ctx, req.(*DeleteNotebookRequest))
}
return interceptor(ctx, in, info, handler)
}
func _EngPadSyncService_ListNotebooks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListNotebooksRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EngPadSyncServiceServer).ListNotebooks(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: EngPadSyncService_ListNotebooks_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EngPadSyncServiceServer).ListNotebooks(ctx, req.(*ListNotebooksRequest))
}
return interceptor(ctx, in, info, handler)
}
func _EngPadSyncService_CreateShareLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateShareLinkRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EngPadSyncServiceServer).CreateShareLink(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: EngPadSyncService_CreateShareLink_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EngPadSyncServiceServer).CreateShareLink(ctx, req.(*CreateShareLinkRequest))
}
return interceptor(ctx, in, info, handler)
}
func _EngPadSyncService_RevokeShareLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RevokeShareLinkRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EngPadSyncServiceServer).RevokeShareLink(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: EngPadSyncService_RevokeShareLink_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EngPadSyncServiceServer).RevokeShareLink(ctx, req.(*RevokeShareLinkRequest))
}
return interceptor(ctx, in, info, handler)
}
func _EngPadSyncService_ListShareLinks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListShareLinksRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EngPadSyncServiceServer).ListShareLinks(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: EngPadSyncService_ListShareLinks_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EngPadSyncServiceServer).ListShareLinks(ctx, req.(*ListShareLinksRequest))
}
return interceptor(ctx, in, info, handler)
}
// EngPadSyncService_ServiceDesc is the grpc.ServiceDesc for EngPadSyncService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var EngPadSyncService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "engpad.v1.EngPadSyncService",
HandlerType: (*EngPadSyncServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "SyncNotebook",
Handler: _EngPadSyncService_SyncNotebook_Handler,
},
{
MethodName: "DeleteNotebook",
Handler: _EngPadSyncService_DeleteNotebook_Handler,
},
{
MethodName: "ListNotebooks",
Handler: _EngPadSyncService_ListNotebooks_Handler,
},
{
MethodName: "CreateShareLink",
Handler: _EngPadSyncService_CreateShareLink_Handler,
},
{
MethodName: "RevokeShareLink",
Handler: _EngPadSyncService_RevokeShareLink_Handler,
},
{
MethodName: "ListShareLinks",
Handler: _EngPadSyncService_ListShareLinks_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "proto/engpad/v1/sync.proto",
}