parser-v2/proto/taskProcessor/task.pb.go
2025-10-02 20:35:53 +03:00

409 lines
12 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.8
// protoc v6.32.0
// source: task.proto
package taskProcessor
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
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 Task struct {
state protoimpl.MessageState `protogen:"open.v1"`
MerchUuid string `protobuf:"bytes,1,opt,name=merch_uuid,json=merchUuid,proto3" json:"merch_uuid,omitempty"`
OriginSurugayaLink string `protobuf:"bytes,2,opt,name=origin_surugaya_link,json=originSurugayaLink,proto3" json:"origin_surugaya_link,omitempty"`
OriginMandarakeLink string `protobuf:"bytes,3,opt,name=origin_mandarake_link,json=originMandarakeLink,proto3" json:"origin_mandarake_link,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Task) Reset() {
*x = Task{}
mi := &file_task_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Task) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Task) ProtoMessage() {}
func (x *Task) ProtoReflect() protoreflect.Message {
mi := &file_task_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 Task.ProtoReflect.Descriptor instead.
func (*Task) Descriptor() ([]byte, []int) {
return file_task_proto_rawDescGZIP(), []int{0}
}
func (x *Task) GetMerchUuid() string {
if x != nil {
return x.MerchUuid
}
return ""
}
func (x *Task) GetOriginSurugayaLink() string {
if x != nil {
return x.OriginSurugayaLink
}
return ""
}
func (x *Task) GetOriginMandarakeLink() string {
if x != nil {
return x.OriginMandarakeLink
}
return ""
}
type Result struct {
state protoimpl.MessageState `protogen:"open.v1"`
MerchUuid string `protobuf:"bytes,1,opt,name=merch_uuid,json=merchUuid,proto3" json:"merch_uuid,omitempty"`
OriginName string `protobuf:"bytes,2,opt,name=origin_name,json=originName,proto3" json:"origin_name,omitempty"`
Price uint32 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Result) Reset() {
*x = Result{}
mi := &file_task_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Result) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Result) ProtoMessage() {}
func (x *Result) ProtoReflect() protoreflect.Message {
mi := &file_task_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 Result.ProtoReflect.Descriptor instead.
func (*Result) Descriptor() ([]byte, []int) {
return file_task_proto_rawDescGZIP(), []int{1}
}
func (x *Result) GetMerchUuid() string {
if x != nil {
return x.MerchUuid
}
return ""
}
func (x *Result) GetOriginName() string {
if x != nil {
return x.OriginName
}
return ""
}
func (x *Result) GetPrice() uint32 {
if x != nil {
return x.Price
}
return 0
}
type ProcessorStatusRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ProcessorStatusRequest) Reset() {
*x = ProcessorStatusRequest{}
mi := &file_task_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ProcessorStatusRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProcessorStatusRequest) ProtoMessage() {}
func (x *ProcessorStatusRequest) ProtoReflect() protoreflect.Message {
mi := &file_task_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 ProcessorStatusRequest.ProtoReflect.Descriptor instead.
func (*ProcessorStatusRequest) Descriptor() ([]byte, []int) {
return file_task_proto_rawDescGZIP(), []int{2}
}
type ProcessorStatusResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
AppStart int64 `protobuf:"varint,1,opt,name=appStart,proto3" json:"appStart,omitempty"`
LastCheck int64 `protobuf:"varint,2,opt,name=lastCheck,proto3" json:"lastCheck,omitempty"`
TasksReceived int32 `protobuf:"varint,3,opt,name=tasksReceived,proto3" json:"tasksReceived,omitempty"`
TasksInProgress int32 `protobuf:"varint,4,opt,name=tasksInProgress,proto3" json:"tasksInProgress,omitempty"`
TasksFirstTry int32 `protobuf:"varint,5,opt,name=tasksFirstTry,proto3" json:"tasksFirstTry,omitempty"`
TasksDoneAfterRetry int32 `protobuf:"varint,6,opt,name=tasksDoneAfterRetry,proto3" json:"tasksDoneAfterRetry,omitempty"`
TasksFailed int32 `protobuf:"varint,7,opt,name=tasksFailed,proto3" json:"tasksFailed,omitempty"`
WorkStatus string `protobuf:"bytes,8,opt,name=workStatus,proto3" json:"workStatus,omitempty"`
NumCPUs int32 `protobuf:"varint,9,opt,name=numCPUs,proto3" json:"numCPUs,omitempty"`
CheckPeriod int32 `protobuf:"varint,10,opt,name=checkPeriod,proto3" json:"checkPeriod,omitempty"`
RetriesCount int32 `protobuf:"varint,11,opt,name=retriesCount,proto3" json:"retriesCount,omitempty"`
RetriesMinutes int32 `protobuf:"varint,12,opt,name=retriesMinutes,proto3" json:"retriesMinutes,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ProcessorStatusResponse) Reset() {
*x = ProcessorStatusResponse{}
mi := &file_task_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ProcessorStatusResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProcessorStatusResponse) ProtoMessage() {}
func (x *ProcessorStatusResponse) ProtoReflect() protoreflect.Message {
mi := &file_task_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 ProcessorStatusResponse.ProtoReflect.Descriptor instead.
func (*ProcessorStatusResponse) Descriptor() ([]byte, []int) {
return file_task_proto_rawDescGZIP(), []int{3}
}
func (x *ProcessorStatusResponse) GetAppStart() int64 {
if x != nil {
return x.AppStart
}
return 0
}
func (x *ProcessorStatusResponse) GetLastCheck() int64 {
if x != nil {
return x.LastCheck
}
return 0
}
func (x *ProcessorStatusResponse) GetTasksReceived() int32 {
if x != nil {
return x.TasksReceived
}
return 0
}
func (x *ProcessorStatusResponse) GetTasksInProgress() int32 {
if x != nil {
return x.TasksInProgress
}
return 0
}
func (x *ProcessorStatusResponse) GetTasksFirstTry() int32 {
if x != nil {
return x.TasksFirstTry
}
return 0
}
func (x *ProcessorStatusResponse) GetTasksDoneAfterRetry() int32 {
if x != nil {
return x.TasksDoneAfterRetry
}
return 0
}
func (x *ProcessorStatusResponse) GetTasksFailed() int32 {
if x != nil {
return x.TasksFailed
}
return 0
}
func (x *ProcessorStatusResponse) GetWorkStatus() string {
if x != nil {
return x.WorkStatus
}
return ""
}
func (x *ProcessorStatusResponse) GetNumCPUs() int32 {
if x != nil {
return x.NumCPUs
}
return 0
}
func (x *ProcessorStatusResponse) GetCheckPeriod() int32 {
if x != nil {
return x.CheckPeriod
}
return 0
}
func (x *ProcessorStatusResponse) GetRetriesCount() int32 {
if x != nil {
return x.RetriesCount
}
return 0
}
func (x *ProcessorStatusResponse) GetRetriesMinutes() int32 {
if x != nil {
return x.RetriesMinutes
}
return 0
}
var File_task_proto protoreflect.FileDescriptor
const file_task_proto_rawDesc = "" +
"\n" +
"\n" +
"task.proto\x12\rtaskProcessor\x1a\x1bgoogle/protobuf/empty.proto\"\x8b\x01\n" +
"\x04Task\x12\x1d\n" +
"\n" +
"merch_uuid\x18\x01 \x01(\tR\tmerchUuid\x120\n" +
"\x14origin_surugaya_link\x18\x02 \x01(\tR\x12originSurugayaLink\x122\n" +
"\x15origin_mandarake_link\x18\x03 \x01(\tR\x13originMandarakeLink\"^\n" +
"\x06Result\x12\x1d\n" +
"\n" +
"merch_uuid\x18\x01 \x01(\tR\tmerchUuid\x12\x1f\n" +
"\vorigin_name\x18\x02 \x01(\tR\n" +
"originName\x12\x14\n" +
"\x05price\x18\x03 \x01(\rR\x05price\"\x18\n" +
"\x16ProcessorStatusRequest\"\xc5\x03\n" +
"\x17ProcessorStatusResponse\x12\x1a\n" +
"\bappStart\x18\x01 \x01(\x03R\bappStart\x12\x1c\n" +
"\tlastCheck\x18\x02 \x01(\x03R\tlastCheck\x12$\n" +
"\rtasksReceived\x18\x03 \x01(\x05R\rtasksReceived\x12(\n" +
"\x0ftasksInProgress\x18\x04 \x01(\x05R\x0ftasksInProgress\x12$\n" +
"\rtasksFirstTry\x18\x05 \x01(\x05R\rtasksFirstTry\x120\n" +
"\x13tasksDoneAfterRetry\x18\x06 \x01(\x05R\x13tasksDoneAfterRetry\x12 \n" +
"\vtasksFailed\x18\a \x01(\x05R\vtasksFailed\x12\x1e\n" +
"\n" +
"workStatus\x18\b \x01(\tR\n" +
"workStatus\x12\x18\n" +
"\anumCPUs\x18\t \x01(\x05R\anumCPUs\x12 \n" +
"\vcheckPeriod\x18\n" +
" \x01(\x05R\vcheckPeriod\x12\"\n" +
"\fretriesCount\x18\v \x01(\x05R\fretriesCount\x12&\n" +
"\x0eretriesMinutes\x18\f \x01(\x05R\x0eretriesMinutes2\xee\x01\n" +
"\rTaskProcessor\x12<\n" +
"\vRequestTask\x12\x16.google.protobuf.Empty\x1a\x13.taskProcessor.Task0\x01\x12=\n" +
"\n" +
"SendResult\x12\x15.taskProcessor.Result\x1a\x16.google.protobuf.Empty(\x01\x12`\n" +
"\x0fProcessorStatus\x12%.taskProcessor.ProcessorStatusRequest\x1a&.taskProcessor.ProcessorStatusResponseB\x11Z\x0f./taskProcessorb\x06proto3"
var (
file_task_proto_rawDescOnce sync.Once
file_task_proto_rawDescData []byte
)
func file_task_proto_rawDescGZIP() []byte {
file_task_proto_rawDescOnce.Do(func() {
file_task_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_task_proto_rawDesc), len(file_task_proto_rawDesc)))
})
return file_task_proto_rawDescData
}
var file_task_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_task_proto_goTypes = []any{
(*Task)(nil), // 0: taskProcessor.Task
(*Result)(nil), // 1: taskProcessor.Result
(*ProcessorStatusRequest)(nil), // 2: taskProcessor.ProcessorStatusRequest
(*ProcessorStatusResponse)(nil), // 3: taskProcessor.ProcessorStatusResponse
(*emptypb.Empty)(nil), // 4: google.protobuf.Empty
}
var file_task_proto_depIdxs = []int32{
4, // 0: taskProcessor.TaskProcessor.RequestTask:input_type -> google.protobuf.Empty
1, // 1: taskProcessor.TaskProcessor.SendResult:input_type -> taskProcessor.Result
2, // 2: taskProcessor.TaskProcessor.ProcessorStatus:input_type -> taskProcessor.ProcessorStatusRequest
0, // 3: taskProcessor.TaskProcessor.RequestTask:output_type -> taskProcessor.Task
4, // 4: taskProcessor.TaskProcessor.SendResult:output_type -> google.protobuf.Empty
3, // 5: taskProcessor.TaskProcessor.ProcessorStatus:output_type -> taskProcessor.ProcessorStatusResponse
3, // [3:6] is the sub-list for method output_type
0, // [0:3] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_task_proto_init() }
func file_task_proto_init() {
if File_task_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_task_proto_rawDesc), len(file_task_proto_rawDesc)),
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_task_proto_goTypes,
DependencyIndexes: file_task_proto_depIdxs,
MessageInfos: file_task_proto_msgTypes,
}.Build()
File_task_proto = out.File
file_task_proto_goTypes = nil
file_task_proto_depIdxs = nil
}