218 lines
6.7 KiB
Go
218 lines
6.7 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.19.6
|
|
// source: models/model_dns_task.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
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)
|
|
)
|
|
|
|
// DNS相关同步任务
|
|
type DNSTask struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
IsDone bool `protobuf:"varint,3,opt,name=isDone,proto3" json:"isDone,omitempty"`
|
|
IsOk bool `protobuf:"varint,4,opt,name=isOk,proto3" json:"isOk,omitempty"`
|
|
Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
|
|
UpdatedAt int64 `protobuf:"varint,6,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
|
|
Node *Node `protobuf:"bytes,30,opt,name=node,proto3" json:"node,omitempty"`
|
|
NodeCluster *NodeCluster `protobuf:"bytes,31,opt,name=nodeCluster,proto3" json:"nodeCluster,omitempty"`
|
|
Server *Server `protobuf:"bytes,32,opt,name=server,proto3" json:"server,omitempty"`
|
|
DnsDomain *DNSDomain `protobuf:"bytes,33,opt,name=dnsDomain,proto3" json:"dnsDomain,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DNSTask) Reset() {
|
|
*x = DNSTask{}
|
|
mi := &file_models_model_dns_task_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DNSTask) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DNSTask) ProtoMessage() {}
|
|
|
|
func (x *DNSTask) ProtoReflect() protoreflect.Message {
|
|
mi := &file_models_model_dns_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 DNSTask.ProtoReflect.Descriptor instead.
|
|
func (*DNSTask) Descriptor() ([]byte, []int) {
|
|
return file_models_model_dns_task_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *DNSTask) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DNSTask) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DNSTask) GetIsDone() bool {
|
|
if x != nil {
|
|
return x.IsDone
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DNSTask) GetIsOk() bool {
|
|
if x != nil {
|
|
return x.IsOk
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DNSTask) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DNSTask) GetUpdatedAt() int64 {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DNSTask) GetNode() *Node {
|
|
if x != nil {
|
|
return x.Node
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DNSTask) GetNodeCluster() *NodeCluster {
|
|
if x != nil {
|
|
return x.NodeCluster
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DNSTask) GetServer() *Server {
|
|
if x != nil {
|
|
return x.Server
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DNSTask) GetDnsDomain() *DNSDomain {
|
|
if x != nil {
|
|
return x.DnsDomain
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_models_model_dns_task_proto protoreflect.FileDescriptor
|
|
|
|
const file_models_model_dns_task_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1bmodels/model_dns_task.proto\x12\x02pb\x1a\x17models/model_node.proto\x1a\x1fmodels/model_node_cluster.proto\x1a\x19models/model_server.proto\x1a\x1dmodels/model_dns_domain.proto\"\xaf\x02\n" +
|
|
"\aDNSTask\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" +
|
|
"\x04type\x18\x02 \x01(\tR\x04type\x12\x16\n" +
|
|
"\x06isDone\x18\x03 \x01(\bR\x06isDone\x12\x12\n" +
|
|
"\x04isOk\x18\x04 \x01(\bR\x04isOk\x12\x14\n" +
|
|
"\x05error\x18\x05 \x01(\tR\x05error\x12\x1c\n" +
|
|
"\tupdatedAt\x18\x06 \x01(\x03R\tupdatedAt\x12\x1c\n" +
|
|
"\x04node\x18\x1e \x01(\v2\b.pb.NodeR\x04node\x121\n" +
|
|
"\vnodeCluster\x18\x1f \x01(\v2\x0f.pb.NodeClusterR\vnodeCluster\x12\"\n" +
|
|
"\x06server\x18 \x01(\v2\n" +
|
|
".pb.ServerR\x06server\x12+\n" +
|
|
"\tdnsDomain\x18! \x01(\v2\r.pb.DNSDomainR\tdnsDomainB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_models_model_dns_task_proto_rawDescOnce sync.Once
|
|
file_models_model_dns_task_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_models_model_dns_task_proto_rawDescGZIP() []byte {
|
|
file_models_model_dns_task_proto_rawDescOnce.Do(func() {
|
|
file_models_model_dns_task_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_models_model_dns_task_proto_rawDesc), len(file_models_model_dns_task_proto_rawDesc)))
|
|
})
|
|
return file_models_model_dns_task_proto_rawDescData
|
|
}
|
|
|
|
var file_models_model_dns_task_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
var file_models_model_dns_task_proto_goTypes = []any{
|
|
(*DNSTask)(nil), // 0: pb.DNSTask
|
|
(*Node)(nil), // 1: pb.Node
|
|
(*NodeCluster)(nil), // 2: pb.NodeCluster
|
|
(*Server)(nil), // 3: pb.Server
|
|
(*DNSDomain)(nil), // 4: pb.DNSDomain
|
|
}
|
|
var file_models_model_dns_task_proto_depIdxs = []int32{
|
|
1, // 0: pb.DNSTask.node:type_name -> pb.Node
|
|
2, // 1: pb.DNSTask.nodeCluster:type_name -> pb.NodeCluster
|
|
3, // 2: pb.DNSTask.server:type_name -> pb.Server
|
|
4, // 3: pb.DNSTask.dnsDomain:type_name -> pb.DNSDomain
|
|
4, // [4:4] is the sub-list for method output_type
|
|
4, // [4:4] is the sub-list for method input_type
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
0, // [0:4] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_models_model_dns_task_proto_init() }
|
|
func file_models_model_dns_task_proto_init() {
|
|
if File_models_model_dns_task_proto != nil {
|
|
return
|
|
}
|
|
file_models_model_node_proto_init()
|
|
file_models_model_node_cluster_proto_init()
|
|
file_models_model_server_proto_init()
|
|
file_models_model_dns_domain_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_models_model_dns_task_proto_rawDesc), len(file_models_model_dns_task_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 1,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_models_model_dns_task_proto_goTypes,
|
|
DependencyIndexes: file_models_model_dns_task_proto_depIdxs,
|
|
MessageInfos: file_models_model_dns_task_proto_msgTypes,
|
|
}.Build()
|
|
File_models_model_dns_task_proto = out.File
|
|
file_models_model_dns_task_proto_goTypes = nil
|
|
file_models_model_dns_task_proto_depIdxs = nil
|
|
}
|