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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GptService_DetectLanguage_FullMethodName           = "/pp.gpt.GptService/DetectLanguage"
	GptService_ExtractSection_FullMethodName           = "/pp.gpt.GptService/ExtractSection"
	GptService_ExtractDiploma_FullMethodName           = "/pp.gpt.GptService/ExtractDiploma"
	GptService_FilterKeyWords_FullMethodName           = "/pp.gpt.GptService/FilterKeyWords"
	GptService_FormatReferences_FullMethodName         = "/pp.gpt.GptService/FormatReferences"
	GptService_ReviewPaper_FullMethodName              = "/pp.gpt.GptService/ReviewPaper"
	GptService_CensorNickname_FullMethodName           = "/pp.gpt.GptService/CensorNickname"
	GptService_TransliterateNameSurname_FullMethodName = "/pp.gpt.GptService/TransliterateNameSurname"
)

Variables

View Source
var GptService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pp.gpt.GptService",
	HandlerType: (*GptServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "DetectLanguage",
			Handler:    _GptService_DetectLanguage_Handler,
		},
		{
			MethodName: "ExtractSection",
			Handler:    _GptService_ExtractSection_Handler,
		},
		{
			MethodName: "ExtractDiploma",
			Handler:    _GptService_ExtractDiploma_Handler,
		},
		{
			MethodName: "FilterKeyWords",
			Handler:    _GptService_FilterKeyWords_Handler,
		},
		{
			MethodName: "FormatReferences",
			Handler:    _GptService_FormatReferences_Handler,
		},
		{
			MethodName: "ReviewPaper",
			Handler:    _GptService_ReviewPaper_Handler,
		},
		{
			MethodName: "CensorNickname",
			Handler:    _GptService_CensorNickname_Handler,
		},
		{
			MethodName: "TransliterateNameSurname",
			Handler:    _GptService_TransliterateNameSurname_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "gpt.proto",
}

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

Functions

func RegisterGptServiceServer

func RegisterGptServiceServer(s grpc.ServiceRegistrar, srv GptServiceServer)

Types

type DetectLanguageResponse

type DetectLanguageResponse struct {
	Lang  string `protobuf:"bytes,1,opt,name=lang,proto3" json:"lang,omitempty"`
	Code  string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*DetectLanguageResponse) Descriptor deprecated

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

Deprecated: Use DetectLanguageResponse.ProtoReflect.Descriptor instead.

func (*DetectLanguageResponse) GetCode

func (x *DetectLanguageResponse) GetCode() string

func (*DetectLanguageResponse) GetError

func (x *DetectLanguageResponse) GetError() string

func (*DetectLanguageResponse) GetLang

func (x *DetectLanguageResponse) GetLang() string

func (*DetectLanguageResponse) IsValid

func (l *DetectLanguageResponse) IsValid() (out bool)

func (*DetectLanguageResponse) ProtoMessage

func (*DetectLanguageResponse) ProtoMessage()

func (*DetectLanguageResponse) ProtoReflect

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

func (*DetectLanguageResponse) Reset

func (x *DetectLanguageResponse) Reset()

func (*DetectLanguageResponse) String

func (x *DetectLanguageResponse) String() string

type DiplomaBackResponse

type DiplomaBackResponse struct {
	Series string                 `protobuf:"bytes,1,opt,name=series,proto3" json:"series,omitempty"`
	Number string                 `protobuf:"bytes,2,opt,name=number,proto3" json:"number,omitempty"`
	Date   *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"`
	// contains filtered or unexported fields
}

func (*DiplomaBackResponse) Descriptor deprecated

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

Deprecated: Use DiplomaBackResponse.ProtoReflect.Descriptor instead.

func (*DiplomaBackResponse) GetDate

func (*DiplomaBackResponse) GetNumber

func (x *DiplomaBackResponse) GetNumber() string

func (*DiplomaBackResponse) GetSeries

func (x *DiplomaBackResponse) GetSeries() string

func (*DiplomaBackResponse) ProtoMessage

func (*DiplomaBackResponse) ProtoMessage()

func (*DiplomaBackResponse) ProtoReflect

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

func (*DiplomaBackResponse) Reset

func (x *DiplomaBackResponse) Reset()

func (*DiplomaBackResponse) String

func (x *DiplomaBackResponse) String() string

func (*DiplomaBackResponse) UnmarshalJSON

func (d *DiplomaBackResponse) UnmarshalJSON(data []byte) error

type ExtractDiplomaRequest

type ExtractDiplomaRequest struct {
	BackText string `protobuf:"bytes,1,opt,name=back_text,json=backText,proto3" json:"back_text,omitempty"`
	// contains filtered or unexported fields
}

func (*ExtractDiplomaRequest) Descriptor deprecated

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

Deprecated: Use ExtractDiplomaRequest.ProtoReflect.Descriptor instead.

func (*ExtractDiplomaRequest) GetBackText

func (x *ExtractDiplomaRequest) GetBackText() string

func (*ExtractDiplomaRequest) ProtoMessage

func (*ExtractDiplomaRequest) ProtoMessage()

func (*ExtractDiplomaRequest) ProtoReflect

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

func (*ExtractDiplomaRequest) Reset

func (x *ExtractDiplomaRequest) Reset()

func (*ExtractDiplomaRequest) String

func (x *ExtractDiplomaRequest) String() string

type ExtractDiplomaResponse

type ExtractDiplomaResponse struct {
	Back *DiplomaBackResponse `protobuf:"bytes,1,opt,name=back,proto3" json:"back,omitempty"`
	// contains filtered or unexported fields
}

func (*ExtractDiplomaResponse) Descriptor deprecated

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

Deprecated: Use ExtractDiplomaResponse.ProtoReflect.Descriptor instead.

func (*ExtractDiplomaResponse) GetBack

func (*ExtractDiplomaResponse) ProtoMessage

func (*ExtractDiplomaResponse) ProtoMessage()

func (*ExtractDiplomaResponse) ProtoReflect

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

func (*ExtractDiplomaResponse) Reset

func (x *ExtractDiplomaResponse) Reset()

func (*ExtractDiplomaResponse) String

func (x *ExtractDiplomaResponse) String() string

type ExtractSectionResponse

type ExtractSectionResponse struct {
	Title    string            `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Authors  []string          `protobuf:"bytes,2,rep,name=authors,proto3" json:"authors,omitempty"`
	Abstract string            `protobuf:"bytes,3,opt,name=abstract,proto3" json:"abstract,omitempty"`
	Keywords []string          `protobuf:"bytes,4,rep,name=keywords,proto3" json:"keywords,omitempty"`
	Main     map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ExtractSectionResponse) Descriptor deprecated

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

Deprecated: Use ExtractSectionResponse.ProtoReflect.Descriptor instead.

func (*ExtractSectionResponse) GetAbstract

func (x *ExtractSectionResponse) GetAbstract() string

func (*ExtractSectionResponse) GetAuthors

func (x *ExtractSectionResponse) GetAuthors() []string

func (*ExtractSectionResponse) GetKeywords

func (x *ExtractSectionResponse) GetKeywords() []string

func (*ExtractSectionResponse) GetMain

func (x *ExtractSectionResponse) GetMain() map[string]string

func (*ExtractSectionResponse) GetTitle

func (x *ExtractSectionResponse) GetTitle() string

func (*ExtractSectionResponse) ProtoMessage

func (*ExtractSectionResponse) ProtoMessage()

func (*ExtractSectionResponse) ProtoReflect

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

func (*ExtractSectionResponse) Reset

func (x *ExtractSectionResponse) Reset()

func (*ExtractSectionResponse) String

func (x *ExtractSectionResponse) String() string

type FilterKeyWordsResponse

type FilterKeyWordsResponse struct {
	KeyWords []string `protobuf:"bytes,1,rep,name=key_words,json=keyWords,proto3" json:"key_words,omitempty"`
	// contains filtered or unexported fields
}

func (*FilterKeyWordsResponse) Descriptor deprecated

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

Deprecated: Use FilterKeyWordsResponse.ProtoReflect.Descriptor instead.

func (*FilterKeyWordsResponse) GetKeyWords

func (x *FilterKeyWordsResponse) GetKeyWords() []string

func (*FilterKeyWordsResponse) ProtoMessage

func (*FilterKeyWordsResponse) ProtoMessage()

func (*FilterKeyWordsResponse) ProtoReflect

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

func (*FilterKeyWordsResponse) Reset

func (x *FilterKeyWordsResponse) Reset()

func (*FilterKeyWordsResponse) String

func (x *FilterKeyWordsResponse) String() string

type GptServiceClient

type GptServiceClient interface {
	DetectLanguage(ctx context.Context, in *TextRequest, opts ...grpc.CallOption) (*DetectLanguageResponse, error)
	ExtractSection(ctx context.Context, in *TextRequest, opts ...grpc.CallOption) (*ExtractSectionResponse, error)
	ExtractDiploma(ctx context.Context, in *ExtractDiplomaRequest, opts ...grpc.CallOption) (*ExtractDiplomaResponse, error)
	FilterKeyWords(ctx context.Context, in *RepeatedTextRequest, opts ...grpc.CallOption) (*FilterKeyWordsResponse, error)
	FormatReferences(ctx context.Context, in *TextRequest, opts ...grpc.CallOption) (*ReformattedReferenceResponse, error)
	ReviewPaper(ctx context.Context, in *ScientificCriteriaRequest, opts ...grpc.CallOption) (*ScientificReviewResponse, error)
	CensorNickname(ctx context.Context, in *NicknameRequest, opts ...grpc.CallOption) (*NicknameResponse, error)
	TransliterateNameSurname(ctx context.Context, in *NameSurnameRequest, opts ...grpc.CallOption) (*NameSurnameResponse, error)
}

GptServiceClient is the client API for GptService 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 NewGptServiceClient

func NewGptServiceClient(cc grpc.ClientConnInterface) GptServiceClient

type GptServiceServer

GptServiceServer is the server API for GptService service. All implementations must embed UnimplementedGptServiceServer for forward compatibility

type NameSurnameRequest

type NameSurnameRequest struct {
	Name       string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Surname    string `protobuf:"bytes,2,opt,name=surname,proto3" json:"surname,omitempty"`
	MiddleName string `protobuf:"bytes,3,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"`
	// contains filtered or unexported fields
}

func (*NameSurnameRequest) Descriptor deprecated

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

Deprecated: Use NameSurnameRequest.ProtoReflect.Descriptor instead.

func (*NameSurnameRequest) GetMiddleName

func (x *NameSurnameRequest) GetMiddleName() string

func (*NameSurnameRequest) GetName

func (x *NameSurnameRequest) GetName() string

func (*NameSurnameRequest) GetSurname

func (x *NameSurnameRequest) GetSurname() string

func (*NameSurnameRequest) ProtoMessage

func (*NameSurnameRequest) ProtoMessage()

func (*NameSurnameRequest) ProtoReflect

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

func (*NameSurnameRequest) Reset

func (x *NameSurnameRequest) Reset()

func (*NameSurnameRequest) String

func (x *NameSurnameRequest) String() string

type NameSurnameResponse

type NameSurnameResponse struct {
	TransliteratedName       string `protobuf:"bytes,1,opt,name=transliteratedName,proto3" json:"transliteratedName,omitempty"`
	TransliteratedSurname    string `protobuf:"bytes,2,opt,name=transliteratedSurname,proto3" json:"transliteratedSurname,omitempty"`
	TransliteratedMiddleName string `protobuf:"bytes,3,opt,name=transliteratedMiddleName,proto3" json:"transliteratedMiddleName,omitempty"`
	// contains filtered or unexported fields
}

func (*NameSurnameResponse) Descriptor deprecated

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

Deprecated: Use NameSurnameResponse.ProtoReflect.Descriptor instead.

func (*NameSurnameResponse) GetTransliteratedMiddleName

func (x *NameSurnameResponse) GetTransliteratedMiddleName() string

func (*NameSurnameResponse) GetTransliteratedName

func (x *NameSurnameResponse) GetTransliteratedName() string

func (*NameSurnameResponse) GetTransliteratedSurname

func (x *NameSurnameResponse) GetTransliteratedSurname() string

func (*NameSurnameResponse) ProtoMessage

func (*NameSurnameResponse) ProtoMessage()

func (*NameSurnameResponse) ProtoReflect

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

func (*NameSurnameResponse) Reset

func (x *NameSurnameResponse) Reset()

func (*NameSurnameResponse) String

func (x *NameSurnameResponse) String() string

type NicknameRequest

type NicknameRequest struct {
	Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"`
	// contains filtered or unexported fields
}

func (*NicknameRequest) Descriptor deprecated

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

Deprecated: Use NicknameRequest.ProtoReflect.Descriptor instead.

func (*NicknameRequest) GetNickname

func (x *NicknameRequest) GetNickname() string

func (*NicknameRequest) ProtoMessage

func (*NicknameRequest) ProtoMessage()

func (*NicknameRequest) ProtoReflect

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

func (*NicknameRequest) Reset

func (x *NicknameRequest) Reset()

func (*NicknameRequest) String

func (x *NicknameRequest) String() string

type NicknameResponse

type NicknameResponse struct {
	CensoredNickname string `protobuf:"bytes,1,opt,name=censoredNickname,proto3" json:"censoredNickname,omitempty"`
	// contains filtered or unexported fields
}

func (*NicknameResponse) Descriptor deprecated

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

Deprecated: Use NicknameResponse.ProtoReflect.Descriptor instead.

func (*NicknameResponse) GetCensoredNickname

func (x *NicknameResponse) GetCensoredNickname() string

func (*NicknameResponse) ProtoMessage

func (*NicknameResponse) ProtoMessage()

func (*NicknameResponse) ProtoReflect

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

func (*NicknameResponse) Reset

func (x *NicknameResponse) Reset()

func (*NicknameResponse) String

func (x *NicknameResponse) String() string

type ReformattedReferenceResponse

type ReformattedReferenceResponse struct {
	References string `protobuf:"bytes,1,opt,name=references,proto3" json:"references,omitempty"`
	// contains filtered or unexported fields
}

func (*ReformattedReferenceResponse) Descriptor deprecated

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

Deprecated: Use ReformattedReferenceResponse.ProtoReflect.Descriptor instead.

func (*ReformattedReferenceResponse) GetReferences

func (x *ReformattedReferenceResponse) GetReferences() string

func (*ReformattedReferenceResponse) ProtoMessage

func (*ReformattedReferenceResponse) ProtoMessage()

func (*ReformattedReferenceResponse) ProtoReflect

func (*ReformattedReferenceResponse) Reset

func (x *ReformattedReferenceResponse) Reset()

func (*ReformattedReferenceResponse) String

type RepeatedTextRequest

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

func (*RepeatedTextRequest) Descriptor deprecated

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

Deprecated: Use RepeatedTextRequest.ProtoReflect.Descriptor instead.

func (*RepeatedTextRequest) GetText

func (x *RepeatedTextRequest) GetText() []string

func (*RepeatedTextRequest) ProtoMessage

func (*RepeatedTextRequest) ProtoMessage()

func (*RepeatedTextRequest) ProtoReflect

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

func (*RepeatedTextRequest) Reset

func (x *RepeatedTextRequest) Reset()

func (*RepeatedTextRequest) String

func (x *RepeatedTextRequest) String() string

type ScientificCriteriaRequest

type ScientificCriteriaRequest struct {
	PaperText string `protobuf:"bytes,1,opt,name=paper_text,json=paperText,proto3" json:"paper_text,omitempty"`
	// contains filtered or unexported fields
}

func (*ScientificCriteriaRequest) Descriptor deprecated

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

Deprecated: Use ScientificCriteriaRequest.ProtoReflect.Descriptor instead.

func (*ScientificCriteriaRequest) GetPaperText

func (x *ScientificCriteriaRequest) GetPaperText() string

func (*ScientificCriteriaRequest) ProtoMessage

func (*ScientificCriteriaRequest) ProtoMessage()

func (*ScientificCriteriaRequest) ProtoReflect

func (*ScientificCriteriaRequest) Reset

func (x *ScientificCriteriaRequest) Reset()

func (*ScientificCriteriaRequest) String

func (x *ScientificCriteriaRequest) String() string

type ScientificReviewResponse

type ScientificReviewResponse struct {
	ProblemRelevance       int64  `protobuf:"varint,1,opt,name=problem_relevance,json=problemRelevance,proto3" json:"problem_relevance,omitempty"`
	ArticleQuality         int64  `protobuf:"varint,2,opt,name=article_quality,json=articleQuality,proto3" json:"article_quality,omitempty"`
	MethodsAppropriateness int64  `` /* 128-byte string literal not displayed */
	ScientificNovelty      int64  `protobuf:"varint,4,opt,name=scientific_novelty,json=scientificNovelty,proto3" json:"scientific_novelty,omitempty"`
	LiteratureRelevance    int64  `protobuf:"varint,5,opt,name=literature_relevance,json=literatureRelevance,proto3" json:"literature_relevance,omitempty"`
	DetailedConclusion     string `protobuf:"bytes,6,opt,name=detailed_conclusion,json=detailedConclusion,proto3" json:"detailed_conclusion,omitempty"`
	Decision               string `protobuf:"bytes,7,opt,name=decision,proto3" json:"decision,omitempty"`
	// contains filtered or unexported fields
}

func (*ScientificReviewResponse) Descriptor deprecated

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

Deprecated: Use ScientificReviewResponse.ProtoReflect.Descriptor instead.

func (*ScientificReviewResponse) GetArticleQuality

func (x *ScientificReviewResponse) GetArticleQuality() int64

func (*ScientificReviewResponse) GetDecision

func (x *ScientificReviewResponse) GetDecision() string

func (*ScientificReviewResponse) GetDetailedConclusion

func (x *ScientificReviewResponse) GetDetailedConclusion() string

func (*ScientificReviewResponse) GetLiteratureRelevance

func (x *ScientificReviewResponse) GetLiteratureRelevance() int64

func (*ScientificReviewResponse) GetMethodsAppropriateness

func (x *ScientificReviewResponse) GetMethodsAppropriateness() int64

func (*ScientificReviewResponse) GetProblemRelevance

func (x *ScientificReviewResponse) GetProblemRelevance() int64

func (*ScientificReviewResponse) GetScientificNovelty

func (x *ScientificReviewResponse) GetScientificNovelty() int64

func (*ScientificReviewResponse) ProtoMessage

func (*ScientificReviewResponse) ProtoMessage()

func (*ScientificReviewResponse) ProtoReflect

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

func (*ScientificReviewResponse) Reset

func (x *ScientificReviewResponse) Reset()

func (*ScientificReviewResponse) String

func (x *ScientificReviewResponse) String() string

type TextRequest

type TextRequest struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*TextRequest) Descriptor deprecated

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

Deprecated: Use TextRequest.ProtoReflect.Descriptor instead.

func (*TextRequest) GetText

func (x *TextRequest) GetText() string

func (*TextRequest) ProtoMessage

func (*TextRequest) ProtoMessage()

func (*TextRequest) ProtoReflect

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

func (*TextRequest) Reset

func (x *TextRequest) Reset()

func (*TextRequest) String

func (x *TextRequest) String() string

type UnimplementedGptServiceServer

type UnimplementedGptServiceServer struct {
}

UnimplementedGptServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGptServiceServer) CensorNickname

func (UnimplementedGptServiceServer) DetectLanguage

func (UnimplementedGptServiceServer) ExtractDiploma

func (UnimplementedGptServiceServer) ExtractSection

func (UnimplementedGptServiceServer) FilterKeyWords

func (UnimplementedGptServiceServer) FormatReferences

func (UnimplementedGptServiceServer) TransliterateNameSurname

type UnsafeGptServiceServer

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

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

Jump to

Keyboard shortcuts

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