// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v3.19.6 // source: models/model_ip_item.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 IPItem struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Value string `protobuf:"bytes,22,opt,name=value,proto3" json:"value,omitempty"` // 原始值,比如单个IP、IP范围或者CIDR IpFrom string `protobuf:"bytes,2,opt,name=ipFrom,proto3" json:"ipFrom,omitempty"` IpTo string `protobuf:"bytes,3,opt,name=ipTo,proto3" json:"ipTo,omitempty"` Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` ExpiredAt int64 `protobuf:"varint,5,opt,name=expiredAt,proto3" json:"expiredAt,omitempty"` Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` ListId int64 `protobuf:"varint,7,opt,name=listId,proto3" json:"listId,omitempty"` IsDeleted bool `protobuf:"varint,8,opt,name=isDeleted,proto3" json:"isDeleted,omitempty"` Type string `protobuf:"bytes,9,opt,name=type,proto3" json:"type,omitempty"` EventLevel string `protobuf:"bytes,10,opt,name=eventLevel,proto3" json:"eventLevel,omitempty"` // 级别 ListType string `protobuf:"bytes,11,opt,name=listType,proto3" json:"listType,omitempty"` // 所在名单类型,来自名单 IsGlobal bool `protobuf:"varint,20,opt,name=isGlobal,proto3" json:"isGlobal,omitempty"` // 是否全局,来自名单 CreatedAt int64 `protobuf:"varint,12,opt,name=createdAt,proto3" json:"createdAt,omitempty"` NodeId int64 `protobuf:"varint,13,opt,name=nodeId,proto3" json:"nodeId,omitempty"` ServerId int64 `protobuf:"varint,14,opt,name=serverId,proto3" json:"serverId,omitempty"` SourceNodeId int64 `protobuf:"varint,15,opt,name=sourceNodeId,proto3" json:"sourceNodeId,omitempty"` SourceServerId int64 `protobuf:"varint,16,opt,name=sourceServerId,proto3" json:"sourceServerId,omitempty"` SourceHTTPFirewallPolicyId int64 `protobuf:"varint,17,opt,name=sourceHTTPFirewallPolicyId,proto3" json:"sourceHTTPFirewallPolicyId,omitempty"` SourceHTTPFirewallRuleGroupId int64 `protobuf:"varint,18,opt,name=sourceHTTPFirewallRuleGroupId,proto3" json:"sourceHTTPFirewallRuleGroupId,omitempty"` SourceHTTPFirewallRuleSetId int64 `protobuf:"varint,19,opt,name=sourceHTTPFirewallRuleSetId,proto3" json:"sourceHTTPFirewallRuleSetId,omitempty"` IsRead bool `protobuf:"varint,21,opt,name=isRead,proto3" json:"isRead,omitempty"` SourceServer *Server `protobuf:"bytes,30,opt,name=sourceServer,proto3" json:"sourceServer,omitempty"` Server *Server `protobuf:"bytes,34,opt,name=server,proto3" json:"server,omitempty"` SourceHTTPFirewallPolicy *HTTPFirewallPolicy `protobuf:"bytes,31,opt,name=sourceHTTPFirewallPolicy,proto3" json:"sourceHTTPFirewallPolicy,omitempty"` SourceHTTPFirewallRuleGroup *HTTPFirewallRuleGroup `protobuf:"bytes,32,opt,name=sourceHTTPFirewallRuleGroup,proto3" json:"sourceHTTPFirewallRuleGroup,omitempty"` SourceHTTPFirewallRuleSet *HTTPFirewallRuleSet `protobuf:"bytes,33,opt,name=sourceHTTPFirewallRuleSet,proto3" json:"sourceHTTPFirewallRuleSet,omitempty"` SourceNode *Node `protobuf:"bytes,35,opt,name=sourceNode,proto3" json:"sourceNode,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *IPItem) Reset() { *x = IPItem{} mi := &file_models_model_ip_item_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *IPItem) String() string { return protoimpl.X.MessageStringOf(x) } func (*IPItem) ProtoMessage() {} func (x *IPItem) ProtoReflect() protoreflect.Message { mi := &file_models_model_ip_item_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 IPItem.ProtoReflect.Descriptor instead. func (*IPItem) Descriptor() ([]byte, []int) { return file_models_model_ip_item_proto_rawDescGZIP(), []int{0} } func (x *IPItem) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *IPItem) GetValue() string { if x != nil { return x.Value } return "" } func (x *IPItem) GetIpFrom() string { if x != nil { return x.IpFrom } return "" } func (x *IPItem) GetIpTo() string { if x != nil { return x.IpTo } return "" } func (x *IPItem) GetVersion() int64 { if x != nil { return x.Version } return 0 } func (x *IPItem) GetExpiredAt() int64 { if x != nil { return x.ExpiredAt } return 0 } func (x *IPItem) GetReason() string { if x != nil { return x.Reason } return "" } func (x *IPItem) GetListId() int64 { if x != nil { return x.ListId } return 0 } func (x *IPItem) GetIsDeleted() bool { if x != nil { return x.IsDeleted } return false } func (x *IPItem) GetType() string { if x != nil { return x.Type } return "" } func (x *IPItem) GetEventLevel() string { if x != nil { return x.EventLevel } return "" } func (x *IPItem) GetListType() string { if x != nil { return x.ListType } return "" } func (x *IPItem) GetIsGlobal() bool { if x != nil { return x.IsGlobal } return false } func (x *IPItem) GetCreatedAt() int64 { if x != nil { return x.CreatedAt } return 0 } func (x *IPItem) GetNodeId() int64 { if x != nil { return x.NodeId } return 0 } func (x *IPItem) GetServerId() int64 { if x != nil { return x.ServerId } return 0 } func (x *IPItem) GetSourceNodeId() int64 { if x != nil { return x.SourceNodeId } return 0 } func (x *IPItem) GetSourceServerId() int64 { if x != nil { return x.SourceServerId } return 0 } func (x *IPItem) GetSourceHTTPFirewallPolicyId() int64 { if x != nil { return x.SourceHTTPFirewallPolicyId } return 0 } func (x *IPItem) GetSourceHTTPFirewallRuleGroupId() int64 { if x != nil { return x.SourceHTTPFirewallRuleGroupId } return 0 } func (x *IPItem) GetSourceHTTPFirewallRuleSetId() int64 { if x != nil { return x.SourceHTTPFirewallRuleSetId } return 0 } func (x *IPItem) GetIsRead() bool { if x != nil { return x.IsRead } return false } func (x *IPItem) GetSourceServer() *Server { if x != nil { return x.SourceServer } return nil } func (x *IPItem) GetServer() *Server { if x != nil { return x.Server } return nil } func (x *IPItem) GetSourceHTTPFirewallPolicy() *HTTPFirewallPolicy { if x != nil { return x.SourceHTTPFirewallPolicy } return nil } func (x *IPItem) GetSourceHTTPFirewallRuleGroup() *HTTPFirewallRuleGroup { if x != nil { return x.SourceHTTPFirewallRuleGroup } return nil } func (x *IPItem) GetSourceHTTPFirewallRuleSet() *HTTPFirewallRuleSet { if x != nil { return x.SourceHTTPFirewallRuleSet } return nil } func (x *IPItem) GetSourceNode() *Node { if x != nil { return x.SourceNode } return nil } var File_models_model_ip_item_proto protoreflect.FileDescriptor const file_models_model_ip_item_proto_rawDesc = "" + "\n" + "\x1amodels/model_ip_item.proto\x12\x02pb\x1a'models/model_http_firewall_policy.proto\x1a+models/model_http_firewall_rule_group.proto\x1a)models/model_http_firewall_rule_set.proto\x1a\x19models/model_server.proto\x1a\x17models/model_node.proto\"\xd0\b\n" + "\x06IPItem\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x14\n" + "\x05value\x18\x16 \x01(\tR\x05value\x12\x16\n" + "\x06ipFrom\x18\x02 \x01(\tR\x06ipFrom\x12\x12\n" + "\x04ipTo\x18\x03 \x01(\tR\x04ipTo\x12\x18\n" + "\aversion\x18\x04 \x01(\x03R\aversion\x12\x1c\n" + "\texpiredAt\x18\x05 \x01(\x03R\texpiredAt\x12\x16\n" + "\x06reason\x18\x06 \x01(\tR\x06reason\x12\x16\n" + "\x06listId\x18\a \x01(\x03R\x06listId\x12\x1c\n" + "\tisDeleted\x18\b \x01(\bR\tisDeleted\x12\x12\n" + "\x04type\x18\t \x01(\tR\x04type\x12\x1e\n" + "\n" + "eventLevel\x18\n" + " \x01(\tR\n" + "eventLevel\x12\x1a\n" + "\blistType\x18\v \x01(\tR\blistType\x12\x1a\n" + "\bisGlobal\x18\x14 \x01(\bR\bisGlobal\x12\x1c\n" + "\tcreatedAt\x18\f \x01(\x03R\tcreatedAt\x12\x16\n" + "\x06nodeId\x18\r \x01(\x03R\x06nodeId\x12\x1a\n" + "\bserverId\x18\x0e \x01(\x03R\bserverId\x12\"\n" + "\fsourceNodeId\x18\x0f \x01(\x03R\fsourceNodeId\x12&\n" + "\x0esourceServerId\x18\x10 \x01(\x03R\x0esourceServerId\x12>\n" + "\x1asourceHTTPFirewallPolicyId\x18\x11 \x01(\x03R\x1asourceHTTPFirewallPolicyId\x12D\n" + "\x1dsourceHTTPFirewallRuleGroupId\x18\x12 \x01(\x03R\x1dsourceHTTPFirewallRuleGroupId\x12@\n" + "\x1bsourceHTTPFirewallRuleSetId\x18\x13 \x01(\x03R\x1bsourceHTTPFirewallRuleSetId\x12\x16\n" + "\x06isRead\x18\x15 \x01(\bR\x06isRead\x12.\n" + "\fsourceServer\x18\x1e \x01(\v2\n" + ".pb.ServerR\fsourceServer\x12\"\n" + "\x06server\x18\" \x01(\v2\n" + ".pb.ServerR\x06server\x12R\n" + "\x18sourceHTTPFirewallPolicy\x18\x1f \x01(\v2\x16.pb.HTTPFirewallPolicyR\x18sourceHTTPFirewallPolicy\x12[\n" + "\x1bsourceHTTPFirewallRuleGroup\x18 \x01(\v2\x19.pb.HTTPFirewallRuleGroupR\x1bsourceHTTPFirewallRuleGroup\x12U\n" + "\x19sourceHTTPFirewallRuleSet\x18! \x01(\v2\x17.pb.HTTPFirewallRuleSetR\x19sourceHTTPFirewallRuleSet\x12(\n" + "\n" + "sourceNode\x18# \x01(\v2\b.pb.NodeR\n" + "sourceNodeB\x06Z\x04./pbb\x06proto3" var ( file_models_model_ip_item_proto_rawDescOnce sync.Once file_models_model_ip_item_proto_rawDescData []byte ) func file_models_model_ip_item_proto_rawDescGZIP() []byte { file_models_model_ip_item_proto_rawDescOnce.Do(func() { file_models_model_ip_item_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_models_model_ip_item_proto_rawDesc), len(file_models_model_ip_item_proto_rawDesc))) }) return file_models_model_ip_item_proto_rawDescData } var file_models_model_ip_item_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_models_model_ip_item_proto_goTypes = []any{ (*IPItem)(nil), // 0: pb.IPItem (*Server)(nil), // 1: pb.Server (*HTTPFirewallPolicy)(nil), // 2: pb.HTTPFirewallPolicy (*HTTPFirewallRuleGroup)(nil), // 3: pb.HTTPFirewallRuleGroup (*HTTPFirewallRuleSet)(nil), // 4: pb.HTTPFirewallRuleSet (*Node)(nil), // 5: pb.Node } var file_models_model_ip_item_proto_depIdxs = []int32{ 1, // 0: pb.IPItem.sourceServer:type_name -> pb.Server 1, // 1: pb.IPItem.server:type_name -> pb.Server 2, // 2: pb.IPItem.sourceHTTPFirewallPolicy:type_name -> pb.HTTPFirewallPolicy 3, // 3: pb.IPItem.sourceHTTPFirewallRuleGroup:type_name -> pb.HTTPFirewallRuleGroup 4, // 4: pb.IPItem.sourceHTTPFirewallRuleSet:type_name -> pb.HTTPFirewallRuleSet 5, // 5: pb.IPItem.sourceNode:type_name -> pb.Node 6, // [6:6] is the sub-list for method output_type 6, // [6:6] is the sub-list for method input_type 6, // [6:6] is the sub-list for extension type_name 6, // [6:6] is the sub-list for extension extendee 0, // [0:6] is the sub-list for field type_name } func init() { file_models_model_ip_item_proto_init() } func file_models_model_ip_item_proto_init() { if File_models_model_ip_item_proto != nil { return } file_models_model_http_firewall_policy_proto_init() file_models_model_http_firewall_rule_group_proto_init() file_models_model_http_firewall_rule_set_proto_init() file_models_model_server_proto_init() file_models_model_node_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_models_model_ip_item_proto_rawDesc), len(file_models_model_ip_item_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, GoTypes: file_models_model_ip_item_proto_goTypes, DependencyIndexes: file_models_model_ip_item_proto_depIdxs, MessageInfos: file_models_model_ip_item_proto_msgTypes, }.Build() File_models_model_ip_item_proto = out.File file_models_model_ip_item_proto_goTypes = nil file_models_model_ip_item_proto_depIdxs = nil }