proto

package
v0.0.0-...-316f095 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PdfService_MakeScientificPaper_FullMethodName      = "/pp.pdf.PdfService/MakeScientificPaper"
	PdfService_MakeScientificPaperLatex_FullMethodName = "/pp.pdf.PdfService/MakeScientificPaperLatex"
)

Variables

View Source
var File_pdf_srv_pdf_proto protoreflect.FileDescriptor
View Source
var PdfService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pp.pdf.PdfService",
	HandlerType: (*PdfServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "MakeScientificPaper",
			Handler:    _PdfService_MakeScientificPaper_Handler,
		},
		{
			MethodName: "MakeScientificPaperLatex",
			Handler:    _PdfService_MakeScientificPaperLatex_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pdf-srv/pdf.proto",
}

PdfService_ServiceDesc is the grpc.ServiceDesc for PdfService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPdfServiceServer

func RegisterPdfServiceServer(s grpc.ServiceRegistrar, srv PdfServiceServer)

Types

type AuthorInfo

type AuthorInfo struct {
	LastName   string `protobuf:"bytes,1,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	FirstName  string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	MiddleName string `protobuf:"bytes,3,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"`
	Address    string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	Nickname   string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthorInfo) Descriptor deprecated

func (*AuthorInfo) Descriptor() ([]byte, []int)

Deprecated: Use AuthorInfo.ProtoReflect.Descriptor instead.

func (*AuthorInfo) GetAddress

func (x *AuthorInfo) GetAddress() string

func (*AuthorInfo) GetFirstName

func (x *AuthorInfo) GetFirstName() string

func (*AuthorInfo) GetLastName

func (x *AuthorInfo) GetLastName() string

func (*AuthorInfo) GetMiddleName

func (x *AuthorInfo) GetMiddleName() string

func (*AuthorInfo) GetNickname

func (x *AuthorInfo) GetNickname() string

func (*AuthorInfo) ProtoMessage

func (*AuthorInfo) ProtoMessage()

func (*AuthorInfo) ProtoReflect

func (x *AuthorInfo) ProtoReflect() protoreflect.Message

func (*AuthorInfo) Reset

func (x *AuthorInfo) Reset()

func (*AuthorInfo) String

func (x *AuthorInfo) String() string

type PaperContent

type PaperContent struct {
	Introduction      string   `protobuf:"bytes,1,opt,name=introduction,proto3" json:"introduction,omitempty"`
	GoalMethodsDesign string   `protobuf:"bytes,2,opt,name=goal_methods_design,json=goalMethodsDesign,proto3" json:"goal_methods_design,omitempty"`
	ResultDiscussion  string   `protobuf:"bytes,3,opt,name=result_discussion,json=resultDiscussion,proto3" json:"result_discussion,omitempty"`
	Conclusion        string   `protobuf:"bytes,4,opt,name=conclusion,proto3" json:"conclusion,omitempty"`
	Literature        string   `protobuf:"bytes,5,opt,name=literature,proto3" json:"literature,omitempty"`
	Images            [][]byte `protobuf:"bytes,6,rep,name=images,proto3" json:"images,omitempty"`
	Tables            []*Table `protobuf:"bytes,7,rep,name=tables,proto3" json:"tables,omitempty"`
	// contains filtered or unexported fields
}

func (*PaperContent) Descriptor deprecated

func (*PaperContent) Descriptor() ([]byte, []int)

Deprecated: Use PaperContent.ProtoReflect.Descriptor instead.

func (*PaperContent) GetConclusion

func (x *PaperContent) GetConclusion() string

func (*PaperContent) GetGoalMethodsDesign

func (x *PaperContent) GetGoalMethodsDesign() string

func (*PaperContent) GetImages

func (x *PaperContent) GetImages() [][]byte

func (*PaperContent) GetIntroduction

func (x *PaperContent) GetIntroduction() string

func (*PaperContent) GetLiterature

func (x *PaperContent) GetLiterature() string

func (*PaperContent) GetResultDiscussion

func (x *PaperContent) GetResultDiscussion() string

func (*PaperContent) GetTables

func (x *PaperContent) GetTables() []*Table

func (*PaperContent) ProtoMessage

func (*PaperContent) ProtoMessage()

func (*PaperContent) ProtoReflect

func (x *PaperContent) ProtoReflect() protoreflect.Message

func (*PaperContent) Reset

func (x *PaperContent) Reset()

func (*PaperContent) String

func (x *PaperContent) String() string

type PaperMeta

type PaperMeta struct {
	Author   *AuthorInfo `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"`
	Title    string      `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Abstract string      `protobuf:"bytes,3,opt,name=abstract,proto3" json:"abstract,omitempty"`
	Tags     []string    `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"`
	Lang     string      `protobuf:"bytes,5,opt,name=lang,proto3" json:"lang,omitempty"`
	// contains filtered or unexported fields
}

func (*PaperMeta) Descriptor deprecated

func (*PaperMeta) Descriptor() ([]byte, []int)

Deprecated: Use PaperMeta.ProtoReflect.Descriptor instead.

func (*PaperMeta) GetAbstract

func (x *PaperMeta) GetAbstract() string

func (*PaperMeta) GetAuthor

func (x *PaperMeta) GetAuthor() *AuthorInfo

func (*PaperMeta) GetLang

func (x *PaperMeta) GetLang() string

func (*PaperMeta) GetTags

func (x *PaperMeta) GetTags() []string

func (*PaperMeta) GetTitle

func (x *PaperMeta) GetTitle() string

func (*PaperMeta) ProtoMessage

func (*PaperMeta) ProtoMessage()

func (*PaperMeta) ProtoReflect

func (x *PaperMeta) ProtoReflect() protoreflect.Message

func (*PaperMeta) Reset

func (x *PaperMeta) Reset()

func (*PaperMeta) String

func (x *PaperMeta) String() string

type PdfServiceClient

type PdfServiceClient interface {
	MakeScientificPaper(ctx context.Context, in *ScientificPaperRequest, opts ...grpc.CallOption) (*ScientificPaperResponse, error)
	MakeScientificPaperLatex(ctx context.Context, in *ScientificPaperRequest, opts ...grpc.CallOption) (*ScientificPaperResponse, error)
}

PdfServiceClient is the client API for PdfService 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.

func NewPdfServiceClient

func NewPdfServiceClient(cc grpc.ClientConnInterface) PdfServiceClient

type PdfServiceServer

type PdfServiceServer interface {
	MakeScientificPaper(context.Context, *ScientificPaperRequest) (*ScientificPaperResponse, error)
	MakeScientificPaperLatex(context.Context, *ScientificPaperRequest) (*ScientificPaperResponse, error)
	// contains filtered or unexported methods
}

PdfServiceServer is the server API for PdfService service. All implementations must embed UnimplementedPdfServiceServer for forward compatibility

type ScientificPaperRequest

type ScientificPaperRequest struct {
	Meta    *PaperMeta    `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Content *PaperContent `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*ScientificPaperRequest) Descriptor deprecated

func (*ScientificPaperRequest) Descriptor() ([]byte, []int)

Deprecated: Use ScientificPaperRequest.ProtoReflect.Descriptor instead.

func (*ScientificPaperRequest) GetContent

func (x *ScientificPaperRequest) GetContent() *PaperContent

func (*ScientificPaperRequest) GetMeta

func (x *ScientificPaperRequest) GetMeta() *PaperMeta

func (*ScientificPaperRequest) ProtoMessage

func (*ScientificPaperRequest) ProtoMessage()

func (*ScientificPaperRequest) ProtoReflect

func (x *ScientificPaperRequest) ProtoReflect() protoreflect.Message

func (*ScientificPaperRequest) Reset

func (x *ScientificPaperRequest) Reset()

func (*ScientificPaperRequest) String

func (x *ScientificPaperRequest) String() string

type ScientificPaperResponse

type ScientificPaperResponse struct {
	Pdf   []byte `protobuf:"bytes,1,opt,name=pdf,proto3" json:"pdf,omitempty"`
	Pages int64  `protobuf:"varint,2,opt,name=pages,proto3" json:"pages,omitempty"`
	// contains filtered or unexported fields
}

func (*ScientificPaperResponse) Descriptor deprecated

func (*ScientificPaperResponse) Descriptor() ([]byte, []int)

Deprecated: Use ScientificPaperResponse.ProtoReflect.Descriptor instead.

func (*ScientificPaperResponse) GetPages

func (x *ScientificPaperResponse) GetPages() int64

func (*ScientificPaperResponse) GetPdf

func (x *ScientificPaperResponse) GetPdf() []byte

func (*ScientificPaperResponse) ProtoMessage

func (*ScientificPaperResponse) ProtoMessage()

func (*ScientificPaperResponse) ProtoReflect

func (x *ScientificPaperResponse) ProtoReflect() protoreflect.Message

func (*ScientificPaperResponse) Reset

func (x *ScientificPaperResponse) Reset()

func (*ScientificPaperResponse) String

func (x *ScientificPaperResponse) String() string

type StringArray

type StringArray struct {
	Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*StringArray) Descriptor deprecated

func (*StringArray) Descriptor() ([]byte, []int)

Deprecated: Use StringArray.ProtoReflect.Descriptor instead.

func (*StringArray) GetValues

func (x *StringArray) GetValues() []string

func (*StringArray) ProtoMessage

func (*StringArray) ProtoMessage()

func (*StringArray) ProtoReflect

func (x *StringArray) ProtoReflect() protoreflect.Message

func (*StringArray) Reset

func (x *StringArray) Reset()

func (*StringArray) String

func (x *StringArray) String() string

type Table

type Table struct {
	Headers []string       `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
	Columns []*StringArray `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"`
	// contains filtered or unexported fields
}

func (*Table) Descriptor deprecated

func (*Table) Descriptor() ([]byte, []int)

Deprecated: Use Table.ProtoReflect.Descriptor instead.

func (*Table) GetColumns

func (x *Table) GetColumns() []*StringArray

func (*Table) GetHeaders

func (x *Table) GetHeaders() []string

func (*Table) ProtoMessage

func (*Table) ProtoMessage()

func (*Table) ProtoReflect

func (x *Table) ProtoReflect() protoreflect.Message

func (*Table) Reset

func (x *Table) Reset()

func (*Table) String

func (x *Table) String() string

type UnimplementedPdfServiceServer

type UnimplementedPdfServiceServer struct {
}

UnimplementedPdfServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPdfServiceServer) MakeScientificPaper

func (UnimplementedPdfServiceServer) MakeScientificPaperLatex

type UnsafePdfServiceServer

type UnsafePdfServiceServer interface {
	// contains filtered or unexported methods
}

UnsafePdfServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PdfServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL