1 Star 0 Fork 0

陈天/taibak

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
dbtask.pb.go 13.73 KB
Copy Edit Raw Blame History
陈天 authored 2022-04-30 21:31 +08:00 . [*]整合后的第一次合并
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.12.4
// source: dbtask.proto
package rpc
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
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)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type DbTaskRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Local string `protobuf:"bytes,1,opt,name=local,proto3" json:"local,omitempty"`
Dbname string `protobuf:"bytes,2,opt,name=dbname,proto3" json:"dbname,omitempty"`
Port int64 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
Dip string `protobuf:"bytes,4,opt,name=dip,proto3" json:"dip,omitempty"` // 命令
Ac string `protobuf:"bytes,5,opt,name=ac,proto3" json:"ac,omitempty"`
Pd string `protobuf:"bytes,6,opt,name=pd,proto3" json:"pd,omitempty"`
Dtype int32 `protobuf:"varint,7,opt,name=dtype,proto3" json:"dtype,omitempty"`
Sqlpath string `protobuf:"bytes,8,opt,name=sqlpath,proto3" json:"sqlpath,omitempty"`
Timeout int32 `protobuf:"varint,9,opt,name=timeout,proto3" json:"timeout,omitempty"` // 任务执行超时时间
Id int64 `protobuf:"varint,10,opt,name=id,proto3" json:"id,omitempty"` // 执行任务唯一ID
Ftp []*DbTaskRequest_Ftp `protobuf:"bytes,11,rep,name=ftp,proto3" json:"ftp,omitempty"`
}
func (x *DbTaskRequest) Reset() {
*x = DbTaskRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_dbtask_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DbTaskRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DbTaskRequest) ProtoMessage() {}
func (x *DbTaskRequest) ProtoReflect() protoreflect.Message {
mi := &file_dbtask_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DbTaskRequest.ProtoReflect.Descriptor instead.
func (*DbTaskRequest) Descriptor() ([]byte, []int) {
return file_dbtask_proto_rawDescGZIP(), []int{0}
}
func (x *DbTaskRequest) GetLocal() string {
if x != nil {
return x.Local
}
return ""
}
func (x *DbTaskRequest) GetDbname() string {
if x != nil {
return x.Dbname
}
return ""
}
func (x *DbTaskRequest) GetPort() int64 {
if x != nil {
return x.Port
}
return 0
}
func (x *DbTaskRequest) GetDip() string {
if x != nil {
return x.Dip
}
return ""
}
func (x *DbTaskRequest) GetAc() string {
if x != nil {
return x.Ac
}
return ""
}
func (x *DbTaskRequest) GetPd() string {
if x != nil {
return x.Pd
}
return ""
}
func (x *DbTaskRequest) GetDtype() int32 {
if x != nil {
return x.Dtype
}
return 0
}
func (x *DbTaskRequest) GetSqlpath() string {
if x != nil {
return x.Sqlpath
}
return ""
}
func (x *DbTaskRequest) GetTimeout() int32 {
if x != nil {
return x.Timeout
}
return 0
}
func (x *DbTaskRequest) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *DbTaskRequest) GetFtp() []*DbTaskRequest_Ftp {
if x != nil {
return x.Ftp
}
return nil
}
type SomeOtherRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Requst *DbTaskRequest `protobuf:"bytes,1,opt,name=requst,proto3" json:"requst,omitempty"`
}
func (x *SomeOtherRequest) Reset() {
*x = SomeOtherRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_dbtask_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SomeOtherRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SomeOtherRequest) ProtoMessage() {}
func (x *SomeOtherRequest) ProtoReflect() protoreflect.Message {
mi := &file_dbtask_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SomeOtherRequest.ProtoReflect.Descriptor instead.
func (*SomeOtherRequest) Descriptor() ([]byte, []int) {
return file_dbtask_proto_rawDescGZIP(), []int{1}
}
func (x *SomeOtherRequest) GetRequst() *DbTaskRequest {
if x != nil {
return x.Requst
}
return nil
}
type DbTaskResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Output string `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"` // 命令标准输出
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // 命令错误
}
func (x *DbTaskResponse) Reset() {
*x = DbTaskResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_dbtask_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DbTaskResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DbTaskResponse) ProtoMessage() {}
func (x *DbTaskResponse) ProtoReflect() protoreflect.Message {
mi := &file_dbtask_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DbTaskResponse.ProtoReflect.Descriptor instead.
func (*DbTaskResponse) Descriptor() ([]byte, []int) {
return file_dbtask_proto_rawDescGZIP(), []int{2}
}
func (x *DbTaskResponse) GetOutput() string {
if x != nil {
return x.Output
}
return ""
}
func (x *DbTaskResponse) GetError() string {
if x != nil {
return x.Error
}
return ""
}
type DbTaskRequest_Ftp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Dip string `protobuf:"bytes,1,opt,name=dip,proto3" json:"dip,omitempty"` // 命令
Port int64 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
Ac string `protobuf:"bytes,3,opt,name=ac,proto3" json:"ac,omitempty"`
Pd string `protobuf:"bytes,4,opt,name=pd,proto3" json:"pd,omitempty"`
}
func (x *DbTaskRequest_Ftp) Reset() {
*x = DbTaskRequest_Ftp{}
if protoimpl.UnsafeEnabled {
mi := &file_dbtask_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DbTaskRequest_Ftp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DbTaskRequest_Ftp) ProtoMessage() {}
func (x *DbTaskRequest_Ftp) ProtoReflect() protoreflect.Message {
mi := &file_dbtask_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DbTaskRequest_Ftp.ProtoReflect.Descriptor instead.
func (*DbTaskRequest_Ftp) Descriptor() ([]byte, []int) {
return file_dbtask_proto_rawDescGZIP(), []int{0, 0}
}
func (x *DbTaskRequest_Ftp) GetDip() string {
if x != nil {
return x.Dip
}
return ""
}
func (x *DbTaskRequest_Ftp) GetPort() int64 {
if x != nil {
return x.Port
}
return 0
}
func (x *DbTaskRequest_Ftp) GetAc() string {
if x != nil {
return x.Ac
}
return ""
}
func (x *DbTaskRequest_Ftp) GetPd() string {
if x != nil {
return x.Pd
}
return ""
}
var File_dbtask_proto protoreflect.FileDescriptor
var file_dbtask_proto_rawDesc = []byte{
0x0a, 0x0c, 0x64, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03,
0x72, 0x70, 0x63, 0x22, 0xd4, 0x02, 0x0a, 0x0d, 0x44, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x64,
0x62, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x62, 0x6e,
0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
0x03, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x70, 0x18, 0x04,
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x61, 0x63, 0x18,
0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x61, 0x63, 0x12, 0x0e, 0x0a, 0x02, 0x70, 0x64, 0x18,
0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x70, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x74, 0x79,
0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x64, 0x74, 0x79, 0x70, 0x65, 0x12,
0x18, 0x0a, 0x07, 0x73, 0x71, 0x6c, 0x70, 0x61, 0x74, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09,
0x52, 0x07, 0x73, 0x71, 0x6c, 0x70, 0x61, 0x74, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d,
0x65, 0x6f, 0x75, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65,
0x6f, 0x75, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52,
0x02, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x03, 0x66, 0x74, 0x70, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x16, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x74, 0x70, 0x52, 0x03, 0x66, 0x74, 0x70, 0x1a, 0x4b, 0x0a,
0x03, 0x46, 0x74, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x03, 0x64, 0x69, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02,
0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x61, 0x63,
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x61, 0x63, 0x12, 0x0e, 0x0a, 0x02, 0x70, 0x64,
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x70, 0x64, 0x22, 0x3e, 0x0a, 0x10, 0x53, 0x6f,
0x6d, 0x65, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a,
0x0a, 0x06, 0x72, 0x65, 0x71, 0x75, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12,
0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x52, 0x06, 0x72, 0x65, 0x71, 0x75, 0x73, 0x74, 0x22, 0x3e, 0x0a, 0x0e, 0x44, 0x62,
0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06,
0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75,
0x74, 0x70, 0x75, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var (
file_dbtask_proto_rawDescOnce sync.Once
file_dbtask_proto_rawDescData = file_dbtask_proto_rawDesc
)
func file_dbtask_proto_rawDescGZIP() []byte {
file_dbtask_proto_rawDescOnce.Do(func() {
file_dbtask_proto_rawDescData = protoimpl.X.CompressGZIP(file_dbtask_proto_rawDescData)
})
return file_dbtask_proto_rawDescData
}
var file_dbtask_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_dbtask_proto_goTypes = []interface{}{
(*DbTaskRequest)(nil), // 0: rpc.DbTaskRequest
(*SomeOtherRequest)(nil), // 1: rpc.SomeOtherRequest
(*DbTaskResponse)(nil), // 2: rpc.DbTaskResponse
(*DbTaskRequest_Ftp)(nil), // 3: rpc.DbTaskRequest.Ftp
}
var file_dbtask_proto_depIdxs = []int32{
3, // 0: rpc.DbTaskRequest.ftp:type_name -> rpc.DbTaskRequest.Ftp
0, // 1: rpc.SomeOtherRequest.requst:type_name -> rpc.DbTaskRequest
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_dbtask_proto_init() }
func file_dbtask_proto_init() {
if File_dbtask_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_dbtask_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DbTaskRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_dbtask_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SomeOtherRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_dbtask_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DbTaskResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_dbtask_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DbTaskRequest_Ftp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_dbtask_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_dbtask_proto_goTypes,
DependencyIndexes: file_dbtask_proto_depIdxs,
MessageInfos: file_dbtask_proto_msgTypes,
}.Build()
File_dbtask_proto = out.File
file_dbtask_proto_rawDesc = nil
file_dbtask_proto_goTypes = nil
file_dbtask_proto_depIdxs = nil
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/hakwolf/taibak.git
git@gitee.com:hakwolf/taibak.git
hakwolf
taibak
taibak
000f062082a1

Search