// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v3.19.6 // source: models/model_node.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) ) type Node struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` StatusJSON []byte `protobuf:"bytes,3,opt,name=statusJSON,proto3" json:"statusJSON,omitempty"` InstallDir string `protobuf:"bytes,4,opt,name=installDir,proto3" json:"installDir,omitempty"` IsInstalled bool `protobuf:"varint,5,opt,name=isInstalled,proto3" json:"isInstalled,omitempty"` Code string `protobuf:"bytes,6,opt,name=code,proto3" json:"code,omitempty"` UniqueId string `protobuf:"bytes,7,opt,name=uniqueId,proto3" json:"uniqueId,omitempty"` Secret string `protobuf:"bytes,8,opt,name=secret,proto3" json:"secret,omitempty"` Version int64 `protobuf:"varint,9,opt,name=version,proto3" json:"version,omitempty"` LatestVersion int64 `protobuf:"varint,10,opt,name=latestVersion,proto3" json:"latestVersion,omitempty"` ConnectedAPINodeIds []int64 `protobuf:"varint,11,rep,packed,name=connectedAPINodeIds,proto3" json:"connectedAPINodeIds,omitempty"` MaxCPU int32 `protobuf:"varint,12,opt,name=maxCPU,proto3" json:"maxCPU,omitempty"` IsOn bool `protobuf:"varint,13,opt,name=isOn,proto3" json:"isOn,omitempty"` IsUp bool `protobuf:"varint,14,opt,name=isUp,proto3" json:"isUp,omitempty"` DnsRoutes []*DNSRoute `protobuf:"bytes,15,rep,name=dnsRoutes,proto3" json:"dnsRoutes,omitempty"` IsActive bool `protobuf:"varint,16,opt,name=isActive,proto3" json:"isActive,omitempty"` MaxCacheDiskCapacity *SizeCapacity `protobuf:"bytes,17,opt,name=maxCacheDiskCapacity,proto3" json:"maxCacheDiskCapacity,omitempty"` MaxCacheMemoryCapacity *SizeCapacity `protobuf:"bytes,18,opt,name=maxCacheMemoryCapacity,proto3" json:"maxCacheMemoryCapacity,omitempty"` CacheDiskDir string `protobuf:"bytes,19,opt,name=cacheDiskDir,proto3" json:"cacheDiskDir,omitempty"` CacheDiskSubDirsJSON []byte `protobuf:"bytes,23,opt,name=cacheDiskSubDirsJSON,proto3" json:"cacheDiskSubDirsJSON,omitempty"` Level int32 `protobuf:"varint,20,opt,name=level,proto3" json:"level,omitempty"` LnAddrs []string `protobuf:"bytes,21,rep,name=lnAddrs,proto3" json:"lnAddrs,omitempty"` // Ln访问地址 EnableIPLists bool `protobuf:"varint,22,opt,name=enableIPLists,proto3" json:"enableIPLists,omitempty"` ApiNodeAddrsJSON []byte `protobuf:"bytes,24,opt,name=apiNodeAddrsJSON,proto3" json:"apiNodeAddrsJSON,omitempty"` OfflineDay string `protobuf:"bytes,25,opt,name=offlineDay,proto3" json:"offlineDay,omitempty"` // 下线日期 IsBackupForCluster bool `protobuf:"varint,26,opt,name=isBackupForCluster,proto3" json:"isBackupForCluster,omitempty"` // 是否为集群备用节点 IsBackupForGroup bool `protobuf:"varint,27,opt,name=isBackupForGroup,proto3" json:"isBackupForGroup,omitempty"` // 是否为分组备用节点 NodeCluster *NodeCluster `protobuf:"bytes,32,opt,name=nodeCluster,proto3" json:"nodeCluster,omitempty"` // 主集群 NodeLogin *NodeLogin `protobuf:"bytes,33,opt,name=nodeLogin,proto3" json:"nodeLogin,omitempty"` InstallStatus *NodeInstallStatus `protobuf:"bytes,34,opt,name=installStatus,proto3" json:"installStatus,omitempty"` IpAddresses []*NodeIPAddress `protobuf:"bytes,35,rep,name=ipAddresses,proto3" json:"ipAddresses,omitempty"` NodeGroup *NodeGroup `protobuf:"bytes,36,opt,name=nodeGroup,proto3" json:"nodeGroup,omitempty"` NodeRegion *NodeRegion `protobuf:"bytes,37,opt,name=nodeRegion,proto3" json:"nodeRegion,omitempty"` SecondaryNodeClusters []*NodeCluster `protobuf:"bytes,38,rep,name=secondaryNodeClusters,proto3" json:"secondaryNodeClusters,omitempty"` // 从集群 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Node) Reset() { *x = Node{} mi := &file_models_model_node_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Node) String() string { return protoimpl.X.MessageStringOf(x) } func (*Node) ProtoMessage() {} func (x *Node) ProtoReflect() protoreflect.Message { mi := &file_models_model_node_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 Node.ProtoReflect.Descriptor instead. func (*Node) Descriptor() ([]byte, []int) { return file_models_model_node_proto_rawDescGZIP(), []int{0} } func (x *Node) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *Node) GetName() string { if x != nil { return x.Name } return "" } func (x *Node) GetStatusJSON() []byte { if x != nil { return x.StatusJSON } return nil } func (x *Node) GetInstallDir() string { if x != nil { return x.InstallDir } return "" } func (x *Node) GetIsInstalled() bool { if x != nil { return x.IsInstalled } return false } func (x *Node) GetCode() string { if x != nil { return x.Code } return "" } func (x *Node) GetUniqueId() string { if x != nil { return x.UniqueId } return "" } func (x *Node) GetSecret() string { if x != nil { return x.Secret } return "" } func (x *Node) GetVersion() int64 { if x != nil { return x.Version } return 0 } func (x *Node) GetLatestVersion() int64 { if x != nil { return x.LatestVersion } return 0 } func (x *Node) GetConnectedAPINodeIds() []int64 { if x != nil { return x.ConnectedAPINodeIds } return nil } func (x *Node) GetMaxCPU() int32 { if x != nil { return x.MaxCPU } return 0 } func (x *Node) GetIsOn() bool { if x != nil { return x.IsOn } return false } func (x *Node) GetIsUp() bool { if x != nil { return x.IsUp } return false } func (x *Node) GetDnsRoutes() []*DNSRoute { if x != nil { return x.DnsRoutes } return nil } func (x *Node) GetIsActive() bool { if x != nil { return x.IsActive } return false } func (x *Node) GetMaxCacheDiskCapacity() *SizeCapacity { if x != nil { return x.MaxCacheDiskCapacity } return nil } func (x *Node) GetMaxCacheMemoryCapacity() *SizeCapacity { if x != nil { return x.MaxCacheMemoryCapacity } return nil } func (x *Node) GetCacheDiskDir() string { if x != nil { return x.CacheDiskDir } return "" } func (x *Node) GetCacheDiskSubDirsJSON() []byte { if x != nil { return x.CacheDiskSubDirsJSON } return nil } func (x *Node) GetLevel() int32 { if x != nil { return x.Level } return 0 } func (x *Node) GetLnAddrs() []string { if x != nil { return x.LnAddrs } return nil } func (x *Node) GetEnableIPLists() bool { if x != nil { return x.EnableIPLists } return false } func (x *Node) GetApiNodeAddrsJSON() []byte { if x != nil { return x.ApiNodeAddrsJSON } return nil } func (x *Node) GetOfflineDay() string { if x != nil { return x.OfflineDay } return "" } func (x *Node) GetIsBackupForCluster() bool { if x != nil { return x.IsBackupForCluster } return false } func (x *Node) GetIsBackupForGroup() bool { if x != nil { return x.IsBackupForGroup } return false } func (x *Node) GetNodeCluster() *NodeCluster { if x != nil { return x.NodeCluster } return nil } func (x *Node) GetNodeLogin() *NodeLogin { if x != nil { return x.NodeLogin } return nil } func (x *Node) GetInstallStatus() *NodeInstallStatus { if x != nil { return x.InstallStatus } return nil } func (x *Node) GetIpAddresses() []*NodeIPAddress { if x != nil { return x.IpAddresses } return nil } func (x *Node) GetNodeGroup() *NodeGroup { if x != nil { return x.NodeGroup } return nil } func (x *Node) GetNodeRegion() *NodeRegion { if x != nil { return x.NodeRegion } return nil } func (x *Node) GetSecondaryNodeClusters() []*NodeCluster { if x != nil { return x.SecondaryNodeClusters } return nil } type BasicNode struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` IsOn bool `protobuf:"varint,3,opt,name=isOn,proto3" json:"isOn,omitempty"` IsUp bool `protobuf:"varint,4,opt,name=isUp,proto3" json:"isUp,omitempty"` Level int32 `protobuf:"varint,5,opt,name=level,proto3" json:"level,omitempty"` NodeCluster *NodeCluster `protobuf:"bytes,30,opt,name=nodeCluster,proto3" json:"nodeCluster,omitempty"` // 主集群 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *BasicNode) Reset() { *x = BasicNode{} mi := &file_models_model_node_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *BasicNode) String() string { return protoimpl.X.MessageStringOf(x) } func (*BasicNode) ProtoMessage() {} func (x *BasicNode) ProtoReflect() protoreflect.Message { mi := &file_models_model_node_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 BasicNode.ProtoReflect.Descriptor instead. func (*BasicNode) Descriptor() ([]byte, []int) { return file_models_model_node_proto_rawDescGZIP(), []int{1} } func (x *BasicNode) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *BasicNode) GetName() string { if x != nil { return x.Name } return "" } func (x *BasicNode) GetIsOn() bool { if x != nil { return x.IsOn } return false } func (x *BasicNode) GetIsUp() bool { if x != nil { return x.IsUp } return false } func (x *BasicNode) GetLevel() int32 { if x != nil { return x.Level } return 0 } func (x *BasicNode) GetNodeCluster() *NodeCluster { if x != nil { return x.NodeCluster } return nil } var File_models_model_node_proto protoreflect.FileDescriptor const file_models_model_node_proto_rawDesc = "" + "\n" + "\x17models/model_node.proto\x12\x02pb\x1a\x1fmodels/model_node_cluster.proto\x1a\x1dmodels/model_node_login.proto\x1a&models/model_node_install_status.proto\x1a\"models/model_node_ip_address.proto\x1a\x1dmodels/model_node_group.proto\x1a\x1emodels/model_node_region.proto\x1a\x1cmodels/model_dns_route.proto\x1a models/model_size_capacity.proto\"\xaa\n" + "\n" + "\x04Node\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12\x1e\n" + "\n" + "statusJSON\x18\x03 \x01(\fR\n" + "statusJSON\x12\x1e\n" + "\n" + "installDir\x18\x04 \x01(\tR\n" + "installDir\x12 \n" + "\visInstalled\x18\x05 \x01(\bR\visInstalled\x12\x12\n" + "\x04code\x18\x06 \x01(\tR\x04code\x12\x1a\n" + "\buniqueId\x18\a \x01(\tR\buniqueId\x12\x16\n" + "\x06secret\x18\b \x01(\tR\x06secret\x12\x18\n" + "\aversion\x18\t \x01(\x03R\aversion\x12$\n" + "\rlatestVersion\x18\n" + " \x01(\x03R\rlatestVersion\x120\n" + "\x13connectedAPINodeIds\x18\v \x03(\x03R\x13connectedAPINodeIds\x12\x16\n" + "\x06maxCPU\x18\f \x01(\x05R\x06maxCPU\x12\x12\n" + "\x04isOn\x18\r \x01(\bR\x04isOn\x12\x12\n" + "\x04isUp\x18\x0e \x01(\bR\x04isUp\x12*\n" + "\tdnsRoutes\x18\x0f \x03(\v2\f.pb.DNSRouteR\tdnsRoutes\x12\x1a\n" + "\bisActive\x18\x10 \x01(\bR\bisActive\x12D\n" + "\x14maxCacheDiskCapacity\x18\x11 \x01(\v2\x10.pb.SizeCapacityR\x14maxCacheDiskCapacity\x12H\n" + "\x16maxCacheMemoryCapacity\x18\x12 \x01(\v2\x10.pb.SizeCapacityR\x16maxCacheMemoryCapacity\x12\"\n" + "\fcacheDiskDir\x18\x13 \x01(\tR\fcacheDiskDir\x122\n" + "\x14cacheDiskSubDirsJSON\x18\x17 \x01(\fR\x14cacheDiskSubDirsJSON\x12\x14\n" + "\x05level\x18\x14 \x01(\x05R\x05level\x12\x18\n" + "\alnAddrs\x18\x15 \x03(\tR\alnAddrs\x12$\n" + "\renableIPLists\x18\x16 \x01(\bR\renableIPLists\x12*\n" + "\x10apiNodeAddrsJSON\x18\x18 \x01(\fR\x10apiNodeAddrsJSON\x12\x1e\n" + "\n" + "offlineDay\x18\x19 \x01(\tR\n" + "offlineDay\x12.\n" + "\x12isBackupForCluster\x18\x1a \x01(\bR\x12isBackupForCluster\x12*\n" + "\x10isBackupForGroup\x18\x1b \x01(\bR\x10isBackupForGroup\x121\n" + "\vnodeCluster\x18 \x01(\v2\x0f.pb.NodeClusterR\vnodeCluster\x12+\n" + "\tnodeLogin\x18! \x01(\v2\r.pb.NodeLoginR\tnodeLogin\x12;\n" + "\rinstallStatus\x18\" \x01(\v2\x15.pb.NodeInstallStatusR\rinstallStatus\x123\n" + "\vipAddresses\x18# \x03(\v2\x11.pb.NodeIPAddressR\vipAddresses\x12+\n" + "\tnodeGroup\x18$ \x01(\v2\r.pb.NodeGroupR\tnodeGroup\x12.\n" + "\n" + "nodeRegion\x18% \x01(\v2\x0e.pb.NodeRegionR\n" + "nodeRegion\x12E\n" + "\x15secondaryNodeClusters\x18& \x03(\v2\x0f.pb.NodeClusterR\x15secondaryNodeClusters\"\xa0\x01\n" + "\tBasicNode\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" + "\x04isOn\x18\x03 \x01(\bR\x04isOn\x12\x12\n" + "\x04isUp\x18\x04 \x01(\bR\x04isUp\x12\x14\n" + "\x05level\x18\x05 \x01(\x05R\x05level\x121\n" + "\vnodeCluster\x18\x1e \x01(\v2\x0f.pb.NodeClusterR\vnodeClusterB\x06Z\x04./pbb\x06proto3" var ( file_models_model_node_proto_rawDescOnce sync.Once file_models_model_node_proto_rawDescData []byte ) func file_models_model_node_proto_rawDescGZIP() []byte { file_models_model_node_proto_rawDescOnce.Do(func() { file_models_model_node_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_models_model_node_proto_rawDesc), len(file_models_model_node_proto_rawDesc))) }) return file_models_model_node_proto_rawDescData } var file_models_model_node_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_models_model_node_proto_goTypes = []any{ (*Node)(nil), // 0: pb.Node (*BasicNode)(nil), // 1: pb.BasicNode (*DNSRoute)(nil), // 2: pb.DNSRoute (*SizeCapacity)(nil), // 3: pb.SizeCapacity (*NodeCluster)(nil), // 4: pb.NodeCluster (*NodeLogin)(nil), // 5: pb.NodeLogin (*NodeInstallStatus)(nil), // 6: pb.NodeInstallStatus (*NodeIPAddress)(nil), // 7: pb.NodeIPAddress (*NodeGroup)(nil), // 8: pb.NodeGroup (*NodeRegion)(nil), // 9: pb.NodeRegion } var file_models_model_node_proto_depIdxs = []int32{ 2, // 0: pb.Node.dnsRoutes:type_name -> pb.DNSRoute 3, // 1: pb.Node.maxCacheDiskCapacity:type_name -> pb.SizeCapacity 3, // 2: pb.Node.maxCacheMemoryCapacity:type_name -> pb.SizeCapacity 4, // 3: pb.Node.nodeCluster:type_name -> pb.NodeCluster 5, // 4: pb.Node.nodeLogin:type_name -> pb.NodeLogin 6, // 5: pb.Node.installStatus:type_name -> pb.NodeInstallStatus 7, // 6: pb.Node.ipAddresses:type_name -> pb.NodeIPAddress 8, // 7: pb.Node.nodeGroup:type_name -> pb.NodeGroup 9, // 8: pb.Node.nodeRegion:type_name -> pb.NodeRegion 4, // 9: pb.Node.secondaryNodeClusters:type_name -> pb.NodeCluster 4, // 10: pb.BasicNode.nodeCluster:type_name -> pb.NodeCluster 11, // [11:11] is the sub-list for method output_type 11, // [11:11] is the sub-list for method input_type 11, // [11:11] is the sub-list for extension type_name 11, // [11:11] is the sub-list for extension extendee 0, // [0:11] is the sub-list for field type_name } func init() { file_models_model_node_proto_init() } func file_models_model_node_proto_init() { if File_models_model_node_proto != nil { return } file_models_model_node_cluster_proto_init() file_models_model_node_login_proto_init() file_models_model_node_install_status_proto_init() file_models_model_node_ip_address_proto_init() file_models_model_node_group_proto_init() file_models_model_node_region_proto_init() file_models_model_dns_route_proto_init() file_models_model_size_capacity_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_models_model_node_proto_rawDesc), len(file_models_model_node_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, GoTypes: file_models_model_node_proto_goTypes, DependencyIndexes: file_models_model_node_proto_depIdxs, MessageInfos: file_models_model_node_proto_msgTypes, }.Build() File_models_model_node_proto = out.File file_models_model_node_proto_goTypes = nil file_models_model_node_proto_depIdxs = nil }