1153 lines
38 KiB
Go
1153 lines
38 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.11
|
||
// protoc v3.19.6
|
||
// source: service_ip_library.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)
|
||
)
|
||
|
||
// 创建IP库
|
||
type CreateIPLibraryRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
||
FileId int64 `protobuf:"varint,3,opt,name=fileId,proto3" json:"fileId,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateIPLibraryRequest) Reset() {
|
||
*x = CreateIPLibraryRequest{}
|
||
mi := &file_service_ip_library_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateIPLibraryRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateIPLibraryRequest) ProtoMessage() {}
|
||
|
||
func (x *CreateIPLibraryRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_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 CreateIPLibraryRequest.ProtoReflect.Descriptor instead.
|
||
func (*CreateIPLibraryRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *CreateIPLibraryRequest) GetType() string {
|
||
if x != nil {
|
||
return x.Type
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateIPLibraryRequest) GetFileId() int64 {
|
||
if x != nil {
|
||
return x.FileId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type CreateIPLibraryResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
IpLibraryId int64 `protobuf:"varint,1,opt,name=ipLibraryId,proto3" json:"ipLibraryId,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateIPLibraryResponse) Reset() {
|
||
*x = CreateIPLibraryResponse{}
|
||
mi := &file_service_ip_library_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateIPLibraryResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateIPLibraryResponse) ProtoMessage() {}
|
||
|
||
func (x *CreateIPLibraryResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_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 CreateIPLibraryResponse.ProtoReflect.Descriptor instead.
|
||
func (*CreateIPLibraryResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *CreateIPLibraryResponse) GetIpLibraryId() int64 {
|
||
if x != nil {
|
||
return x.IpLibraryId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 查找单个IP库
|
||
type FindEnabledIPLibraryRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
IpLibraryId int64 `protobuf:"varint,1,opt,name=ipLibraryId,proto3" json:"ipLibraryId,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindEnabledIPLibraryRequest) Reset() {
|
||
*x = FindEnabledIPLibraryRequest{}
|
||
mi := &file_service_ip_library_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindEnabledIPLibraryRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindEnabledIPLibraryRequest) ProtoMessage() {}
|
||
|
||
func (x *FindEnabledIPLibraryRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_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 FindEnabledIPLibraryRequest.ProtoReflect.Descriptor instead.
|
||
func (*FindEnabledIPLibraryRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *FindEnabledIPLibraryRequest) GetIpLibraryId() int64 {
|
||
if x != nil {
|
||
return x.IpLibraryId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type FindEnabledIPLibraryResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
IpLibrary *IPLibrary `protobuf:"bytes,1,opt,name=ipLibrary,proto3" json:"ipLibrary,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindEnabledIPLibraryResponse) Reset() {
|
||
*x = FindEnabledIPLibraryResponse{}
|
||
mi := &file_service_ip_library_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindEnabledIPLibraryResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindEnabledIPLibraryResponse) ProtoMessage() {}
|
||
|
||
func (x *FindEnabledIPLibraryResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_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 FindEnabledIPLibraryResponse.ProtoReflect.Descriptor instead.
|
||
func (*FindEnabledIPLibraryResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
func (x *FindEnabledIPLibraryResponse) GetIpLibrary() *IPLibrary {
|
||
if x != nil {
|
||
return x.IpLibrary
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 查找最新的IP库
|
||
type FindLatestIPLibraryWithTypeRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindLatestIPLibraryWithTypeRequest) Reset() {
|
||
*x = FindLatestIPLibraryWithTypeRequest{}
|
||
mi := &file_service_ip_library_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindLatestIPLibraryWithTypeRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindLatestIPLibraryWithTypeRequest) ProtoMessage() {}
|
||
|
||
func (x *FindLatestIPLibraryWithTypeRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_proto_msgTypes[4]
|
||
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 FindLatestIPLibraryWithTypeRequest.ProtoReflect.Descriptor instead.
|
||
func (*FindLatestIPLibraryWithTypeRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
func (x *FindLatestIPLibraryWithTypeRequest) GetType() string {
|
||
if x != nil {
|
||
return x.Type
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type FindLatestIPLibraryWithTypeResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
IpLibrary *IPLibrary `protobuf:"bytes,1,opt,name=ipLibrary,proto3" json:"ipLibrary,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindLatestIPLibraryWithTypeResponse) Reset() {
|
||
*x = FindLatestIPLibraryWithTypeResponse{}
|
||
mi := &file_service_ip_library_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindLatestIPLibraryWithTypeResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindLatestIPLibraryWithTypeResponse) ProtoMessage() {}
|
||
|
||
func (x *FindLatestIPLibraryWithTypeResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_proto_msgTypes[5]
|
||
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 FindLatestIPLibraryWithTypeResponse.ProtoReflect.Descriptor instead.
|
||
func (*FindLatestIPLibraryWithTypeResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
func (x *FindLatestIPLibraryWithTypeResponse) GetIpLibrary() *IPLibrary {
|
||
if x != nil {
|
||
return x.IpLibrary
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 列出某个类型的所有IP库
|
||
type FindAllEnabledIPLibrariesWithTypeRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindAllEnabledIPLibrariesWithTypeRequest) Reset() {
|
||
*x = FindAllEnabledIPLibrariesWithTypeRequest{}
|
||
mi := &file_service_ip_library_proto_msgTypes[6]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindAllEnabledIPLibrariesWithTypeRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindAllEnabledIPLibrariesWithTypeRequest) ProtoMessage() {}
|
||
|
||
func (x *FindAllEnabledIPLibrariesWithTypeRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_proto_msgTypes[6]
|
||
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 FindAllEnabledIPLibrariesWithTypeRequest.ProtoReflect.Descriptor instead.
|
||
func (*FindAllEnabledIPLibrariesWithTypeRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{6}
|
||
}
|
||
|
||
func (x *FindAllEnabledIPLibrariesWithTypeRequest) GetType() string {
|
||
if x != nil {
|
||
return x.Type
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type FindAllEnabledIPLibrariesWithTypeResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
IpLibraries []*IPLibrary `protobuf:"bytes,1,rep,name=ipLibraries,proto3" json:"ipLibraries,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindAllEnabledIPLibrariesWithTypeResponse) Reset() {
|
||
*x = FindAllEnabledIPLibrariesWithTypeResponse{}
|
||
mi := &file_service_ip_library_proto_msgTypes[7]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindAllEnabledIPLibrariesWithTypeResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindAllEnabledIPLibrariesWithTypeResponse) ProtoMessage() {}
|
||
|
||
func (x *FindAllEnabledIPLibrariesWithTypeResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_proto_msgTypes[7]
|
||
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 FindAllEnabledIPLibrariesWithTypeResponse.ProtoReflect.Descriptor instead.
|
||
func (*FindAllEnabledIPLibrariesWithTypeResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{7}
|
||
}
|
||
|
||
func (x *FindAllEnabledIPLibrariesWithTypeResponse) GetIpLibraries() []*IPLibrary {
|
||
if x != nil {
|
||
return x.IpLibraries
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 删除IP库
|
||
type DeleteIPLibraryRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
IpLibraryId int64 `protobuf:"varint,1,opt,name=ipLibraryId,proto3" json:"ipLibraryId,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *DeleteIPLibraryRequest) Reset() {
|
||
*x = DeleteIPLibraryRequest{}
|
||
mi := &file_service_ip_library_proto_msgTypes[8]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DeleteIPLibraryRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DeleteIPLibraryRequest) ProtoMessage() {}
|
||
|
||
func (x *DeleteIPLibraryRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_proto_msgTypes[8]
|
||
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 DeleteIPLibraryRequest.ProtoReflect.Descriptor instead.
|
||
func (*DeleteIPLibraryRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{8}
|
||
}
|
||
|
||
func (x *DeleteIPLibraryRequest) GetIpLibraryId() int64 {
|
||
if x != nil {
|
||
return x.IpLibraryId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 查询某个IP信息
|
||
type LookupIPRegionRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *LookupIPRegionRequest) Reset() {
|
||
*x = LookupIPRegionRequest{}
|
||
mi := &file_service_ip_library_proto_msgTypes[9]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *LookupIPRegionRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*LookupIPRegionRequest) ProtoMessage() {}
|
||
|
||
func (x *LookupIPRegionRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_proto_msgTypes[9]
|
||
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 LookupIPRegionRequest.ProtoReflect.Descriptor instead.
|
||
func (*LookupIPRegionRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{9}
|
||
}
|
||
|
||
func (x *LookupIPRegionRequest) GetIp() string {
|
||
if x != nil {
|
||
return x.Ip
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type LookupIPRegionResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
IpRegion *IPRegion `protobuf:"bytes,1,opt,name=ipRegion,proto3" json:"ipRegion,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *LookupIPRegionResponse) Reset() {
|
||
*x = LookupIPRegionResponse{}
|
||
mi := &file_service_ip_library_proto_msgTypes[10]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *LookupIPRegionResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*LookupIPRegionResponse) ProtoMessage() {}
|
||
|
||
func (x *LookupIPRegionResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_proto_msgTypes[10]
|
||
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 LookupIPRegionResponse.ProtoReflect.Descriptor instead.
|
||
func (*LookupIPRegionResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{10}
|
||
}
|
||
|
||
func (x *LookupIPRegionResponse) GetIpRegion() *IPRegion {
|
||
if x != nil {
|
||
return x.IpRegion
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 查询一组IP信息
|
||
type LookupIPRegionsRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
IpList []string `protobuf:"bytes,1,rep,name=ipList,proto3" json:"ipList,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *LookupIPRegionsRequest) Reset() {
|
||
*x = LookupIPRegionsRequest{}
|
||
mi := &file_service_ip_library_proto_msgTypes[11]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *LookupIPRegionsRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*LookupIPRegionsRequest) ProtoMessage() {}
|
||
|
||
func (x *LookupIPRegionsRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_proto_msgTypes[11]
|
||
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 LookupIPRegionsRequest.ProtoReflect.Descriptor instead.
|
||
func (*LookupIPRegionsRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{11}
|
||
}
|
||
|
||
func (x *LookupIPRegionsRequest) GetIpList() []string {
|
||
if x != nil {
|
||
return x.IpList
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type LookupIPRegionsResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
IpRegionMap map[string]*IPRegion `protobuf:"bytes,1,rep,name=ipRegionMap,proto3" json:"ipRegionMap,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *LookupIPRegionsResponse) Reset() {
|
||
*x = LookupIPRegionsResponse{}
|
||
mi := &file_service_ip_library_proto_msgTypes[12]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *LookupIPRegionsResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*LookupIPRegionsResponse) ProtoMessage() {}
|
||
|
||
func (x *LookupIPRegionsResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_proto_msgTypes[12]
|
||
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 LookupIPRegionsResponse.ProtoReflect.Descriptor instead.
|
||
func (*LookupIPRegionsResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{12}
|
||
}
|
||
|
||
func (x *LookupIPRegionsResponse) GetIpRegionMap() map[string]*IPRegion {
|
||
if x != nil {
|
||
return x.IpRegionMap
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// IP信息
|
||
type IPRegion struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"` // 国家/地区名称
|
||
Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` // 区域名称
|
||
Province string `protobuf:"bytes,3,opt,name=province,proto3" json:"province,omitempty"` // 省份名称
|
||
City string `protobuf:"bytes,4,opt,name=city,proto3" json:"city,omitempty"` // 城市名称
|
||
Isp string `protobuf:"bytes,5,opt,name=isp,proto3" json:"isp,omitempty"` // 运营商名称
|
||
CountryId int64 `protobuf:"varint,6,opt,name=countryId,proto3" json:"countryId,omitempty"` // 国家/地区ID
|
||
ProvinceId int64 `protobuf:"varint,7,opt,name=provinceId,proto3" json:"provinceId,omitempty"` // 省份ID
|
||
CityId int64 `protobuf:"varint,9,opt,name=cityId,proto3" json:"cityId,omitempty"` // 城市ID
|
||
TownId int64 `protobuf:"varint,10,opt,name=townId,proto3" json:"townId,omitempty"` // 区县ID
|
||
ProviderId int64 `protobuf:"varint,11,opt,name=providerId,proto3" json:"providerId,omitempty"` // 运营商ID
|
||
Summary string `protobuf:"bytes,8,opt,name=summary,proto3" json:"summary,omitempty"` // 完整的地区组合
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *IPRegion) Reset() {
|
||
*x = IPRegion{}
|
||
mi := &file_service_ip_library_proto_msgTypes[13]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *IPRegion) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*IPRegion) ProtoMessage() {}
|
||
|
||
func (x *IPRegion) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_proto_msgTypes[13]
|
||
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 IPRegion.ProtoReflect.Descriptor instead.
|
||
func (*IPRegion) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{13}
|
||
}
|
||
|
||
func (x *IPRegion) GetCountry() string {
|
||
if x != nil {
|
||
return x.Country
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *IPRegion) GetRegion() string {
|
||
if x != nil {
|
||
return x.Region
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *IPRegion) GetProvince() string {
|
||
if x != nil {
|
||
return x.Province
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *IPRegion) GetCity() string {
|
||
if x != nil {
|
||
return x.City
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *IPRegion) GetIsp() string {
|
||
if x != nil {
|
||
return x.Isp
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *IPRegion) GetCountryId() int64 {
|
||
if x != nil {
|
||
return x.CountryId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *IPRegion) GetProvinceId() int64 {
|
||
if x != nil {
|
||
return x.ProvinceId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *IPRegion) GetCityId() int64 {
|
||
if x != nil {
|
||
return x.CityId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *IPRegion) GetTownId() int64 {
|
||
if x != nil {
|
||
return x.TownId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *IPRegion) GetProviderId() int64 {
|
||
if x != nil {
|
||
return x.ProviderId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *IPRegion) GetSummary() string {
|
||
if x != nil {
|
||
return x.Summary
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// 重新加载IP库
|
||
type ReloadIPLibraryRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ReloadIPLibraryRequest) Reset() {
|
||
*x = ReloadIPLibraryRequest{}
|
||
mi := &file_service_ip_library_proto_msgTypes[14]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ReloadIPLibraryRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ReloadIPLibraryRequest) ProtoMessage() {}
|
||
|
||
func (x *ReloadIPLibraryRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_proto_msgTypes[14]
|
||
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 ReloadIPLibraryRequest.ProtoReflect.Descriptor instead.
|
||
func (*ReloadIPLibraryRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{14}
|
||
}
|
||
|
||
// 上传MaxMind文件到EdgeAPI
|
||
type UploadMaxMindFileRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` // 文件名(必须包含 "city" 或 "asn")
|
||
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // 文件内容
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UploadMaxMindFileRequest) Reset() {
|
||
*x = UploadMaxMindFileRequest{}
|
||
mi := &file_service_ip_library_proto_msgTypes[15]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UploadMaxMindFileRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UploadMaxMindFileRequest) ProtoMessage() {}
|
||
|
||
func (x *UploadMaxMindFileRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_proto_msgTypes[15]
|
||
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 UploadMaxMindFileRequest.ProtoReflect.Descriptor instead.
|
||
func (*UploadMaxMindFileRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{15}
|
||
}
|
||
|
||
func (x *UploadMaxMindFileRequest) GetFilename() string {
|
||
if x != nil {
|
||
return x.Filename
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UploadMaxMindFileRequest) GetData() []byte {
|
||
if x != nil {
|
||
return x.Data
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 查询MaxMind文件状态
|
||
type FindMaxMindFileStatusRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindMaxMindFileStatusRequest) Reset() {
|
||
*x = FindMaxMindFileStatusRequest{}
|
||
mi := &file_service_ip_library_proto_msgTypes[16]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindMaxMindFileStatusRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindMaxMindFileStatusRequest) ProtoMessage() {}
|
||
|
||
func (x *FindMaxMindFileStatusRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_proto_msgTypes[16]
|
||
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 FindMaxMindFileStatusRequest.ProtoReflect.Descriptor instead.
|
||
func (*FindMaxMindFileStatusRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{16}
|
||
}
|
||
|
||
type FindMaxMindFileStatusResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
CityExists bool `protobuf:"varint,1,opt,name=cityExists,proto3" json:"cityExists,omitempty"` // City数据库是否存在
|
||
AsnExists bool `protobuf:"varint,2,opt,name=asnExists,proto3" json:"asnExists,omitempty"` // ASN数据库是否存在
|
||
UsingMaxMind bool `protobuf:"varint,3,opt,name=usingMaxMind,proto3" json:"usingMaxMind,omitempty"` // 是否正在使用MaxMind库
|
||
UsingEmbeddedMaxMind bool `protobuf:"varint,4,opt,name=usingEmbeddedMaxMind,proto3" json:"usingEmbeddedMaxMind,omitempty"` // 是否使用嵌入的MaxMind库
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindMaxMindFileStatusResponse) Reset() {
|
||
*x = FindMaxMindFileStatusResponse{}
|
||
mi := &file_service_ip_library_proto_msgTypes[17]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindMaxMindFileStatusResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindMaxMindFileStatusResponse) ProtoMessage() {}
|
||
|
||
func (x *FindMaxMindFileStatusResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_proto_msgTypes[17]
|
||
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 FindMaxMindFileStatusResponse.ProtoReflect.Descriptor instead.
|
||
func (*FindMaxMindFileStatusResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{17}
|
||
}
|
||
|
||
func (x *FindMaxMindFileStatusResponse) GetCityExists() bool {
|
||
if x != nil {
|
||
return x.CityExists
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *FindMaxMindFileStatusResponse) GetAsnExists() bool {
|
||
if x != nil {
|
||
return x.AsnExists
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *FindMaxMindFileStatusResponse) GetUsingMaxMind() bool {
|
||
if x != nil {
|
||
return x.UsingMaxMind
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *FindMaxMindFileStatusResponse) GetUsingEmbeddedMaxMind() bool {
|
||
if x != nil {
|
||
return x.UsingEmbeddedMaxMind
|
||
}
|
||
return false
|
||
}
|
||
|
||
// 删除MaxMind文件
|
||
type DeleteMaxMindFileRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` // 文件名("city" 或 "asn"),如果为空则删除所有
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *DeleteMaxMindFileRequest) Reset() {
|
||
*x = DeleteMaxMindFileRequest{}
|
||
mi := &file_service_ip_library_proto_msgTypes[18]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DeleteMaxMindFileRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DeleteMaxMindFileRequest) ProtoMessage() {}
|
||
|
||
func (x *DeleteMaxMindFileRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ip_library_proto_msgTypes[18]
|
||
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 DeleteMaxMindFileRequest.ProtoReflect.Descriptor instead.
|
||
func (*DeleteMaxMindFileRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ip_library_proto_rawDescGZIP(), []int{18}
|
||
}
|
||
|
||
func (x *DeleteMaxMindFileRequest) GetFilename() string {
|
||
if x != nil {
|
||
return x.Filename
|
||
}
|
||
return ""
|
||
}
|
||
|
||
var File_service_ip_library_proto protoreflect.FileDescriptor
|
||
|
||
const file_service_ip_library_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\x18service_ip_library.proto\x12\x02pb\x1a\x19models/rpc_messages.proto\x1a\x1dmodels/model_ip_library.proto\"D\n" +
|
||
"\x16CreateIPLibraryRequest\x12\x12\n" +
|
||
"\x04type\x18\x01 \x01(\tR\x04type\x12\x16\n" +
|
||
"\x06fileId\x18\x03 \x01(\x03R\x06fileId\";\n" +
|
||
"\x17CreateIPLibraryResponse\x12 \n" +
|
||
"\vipLibraryId\x18\x01 \x01(\x03R\vipLibraryId\"?\n" +
|
||
"\x1bFindEnabledIPLibraryRequest\x12 \n" +
|
||
"\vipLibraryId\x18\x01 \x01(\x03R\vipLibraryId\"K\n" +
|
||
"\x1cFindEnabledIPLibraryResponse\x12+\n" +
|
||
"\tipLibrary\x18\x01 \x01(\v2\r.pb.IPLibraryR\tipLibrary\"8\n" +
|
||
"\"FindLatestIPLibraryWithTypeRequest\x12\x12\n" +
|
||
"\x04type\x18\x01 \x01(\tR\x04type\"R\n" +
|
||
"#FindLatestIPLibraryWithTypeResponse\x12+\n" +
|
||
"\tipLibrary\x18\x01 \x01(\v2\r.pb.IPLibraryR\tipLibrary\">\n" +
|
||
"(FindAllEnabledIPLibrariesWithTypeRequest\x12\x12\n" +
|
||
"\x04type\x18\x01 \x01(\tR\x04type\"\\\n" +
|
||
")FindAllEnabledIPLibrariesWithTypeResponse\x12/\n" +
|
||
"\vipLibraries\x18\x01 \x03(\v2\r.pb.IPLibraryR\vipLibraries\":\n" +
|
||
"\x16DeleteIPLibraryRequest\x12 \n" +
|
||
"\vipLibraryId\x18\x01 \x01(\x03R\vipLibraryId\"'\n" +
|
||
"\x15LookupIPRegionRequest\x12\x0e\n" +
|
||
"\x02ip\x18\x01 \x01(\tR\x02ip\"B\n" +
|
||
"\x16LookupIPRegionResponse\x12(\n" +
|
||
"\bipRegion\x18\x01 \x01(\v2\f.pb.IPRegionR\bipRegion\"0\n" +
|
||
"\x16LookupIPRegionsRequest\x12\x16\n" +
|
||
"\x06ipList\x18\x01 \x03(\tR\x06ipList\"\xb7\x01\n" +
|
||
"\x17LookupIPRegionsResponse\x12N\n" +
|
||
"\vipRegionMap\x18\x01 \x03(\v2,.pb.LookupIPRegionsResponse.IpRegionMapEntryR\vipRegionMap\x1aL\n" +
|
||
"\x10IpRegionMapEntry\x12\x10\n" +
|
||
"\x03key\x18\x01 \x01(\tR\x03key\x12\"\n" +
|
||
"\x05value\x18\x02 \x01(\v2\f.pb.IPRegionR\x05value:\x028\x01\"\xa6\x02\n" +
|
||
"\bIPRegion\x12\x18\n" +
|
||
"\acountry\x18\x01 \x01(\tR\acountry\x12\x16\n" +
|
||
"\x06region\x18\x02 \x01(\tR\x06region\x12\x1a\n" +
|
||
"\bprovince\x18\x03 \x01(\tR\bprovince\x12\x12\n" +
|
||
"\x04city\x18\x04 \x01(\tR\x04city\x12\x10\n" +
|
||
"\x03isp\x18\x05 \x01(\tR\x03isp\x12\x1c\n" +
|
||
"\tcountryId\x18\x06 \x01(\x03R\tcountryId\x12\x1e\n" +
|
||
"\n" +
|
||
"provinceId\x18\a \x01(\x03R\n" +
|
||
"provinceId\x12\x16\n" +
|
||
"\x06cityId\x18\t \x01(\x03R\x06cityId\x12\x16\n" +
|
||
"\x06townId\x18\n" +
|
||
" \x01(\x03R\x06townId\x12\x1e\n" +
|
||
"\n" +
|
||
"providerId\x18\v \x01(\x03R\n" +
|
||
"providerId\x12\x18\n" +
|
||
"\asummary\x18\b \x01(\tR\asummary\"\x18\n" +
|
||
"\x16ReloadIPLibraryRequest\"J\n" +
|
||
"\x18UploadMaxMindFileRequest\x12\x1a\n" +
|
||
"\bfilename\x18\x01 \x01(\tR\bfilename\x12\x12\n" +
|
||
"\x04data\x18\x02 \x01(\fR\x04data\"\x1e\n" +
|
||
"\x1cFindMaxMindFileStatusRequest\"\xb5\x01\n" +
|
||
"\x1dFindMaxMindFileStatusResponse\x12\x1e\n" +
|
||
"\n" +
|
||
"cityExists\x18\x01 \x01(\bR\n" +
|
||
"cityExists\x12\x1c\n" +
|
||
"\tasnExists\x18\x02 \x01(\bR\tasnExists\x12\"\n" +
|
||
"\fusingMaxMind\x18\x03 \x01(\bR\fusingMaxMind\x122\n" +
|
||
"\x14usingEmbeddedMaxMind\x18\x04 \x01(\bR\x14usingEmbeddedMaxMind\"6\n" +
|
||
"\x18DeleteMaxMindFileRequest\x12\x1a\n" +
|
||
"\bfilename\x18\x01 \x01(\tR\bfilename2\xbc\a\n" +
|
||
"\x10IPLibraryService\x12O\n" +
|
||
"\x0fcreateIPLibrary\x12\x1a.pb.CreateIPLibraryRequest\x1a\x1b.pb.CreateIPLibraryResponse\"\x03\x88\x02\x01\x12s\n" +
|
||
"\x1bfindLatestIPLibraryWithType\x12&.pb.FindLatestIPLibraryWithTypeRequest\x1a'.pb.FindLatestIPLibraryWithTypeResponse\"\x03\x88\x02\x01\x12^\n" +
|
||
"\x14findEnabledIPLibrary\x12\x1f.pb.FindEnabledIPLibraryRequest\x1a .pb.FindEnabledIPLibraryResponse\"\x03\x88\x02\x01\x12\x85\x01\n" +
|
||
"!findAllEnabledIPLibrariesWithType\x12,.pb.FindAllEnabledIPLibrariesWithTypeRequest\x1a-.pb.FindAllEnabledIPLibrariesWithTypeResponse\"\x03\x88\x02\x01\x12B\n" +
|
||
"\x0fdeleteIPLibrary\x12\x1a.pb.DeleteIPLibraryRequest\x1a\x0e.pb.RPCSuccess\"\x03\x88\x02\x01\x12G\n" +
|
||
"\x0elookupIPRegion\x12\x19.pb.LookupIPRegionRequest\x1a\x1a.pb.LookupIPRegionResponse\x12J\n" +
|
||
"\x0flookupIPRegions\x12\x1a.pb.LookupIPRegionsRequest\x1a\x1b.pb.LookupIPRegionsResponse\x12=\n" +
|
||
"\x0freloadIPLibrary\x12\x1a.pb.ReloadIPLibraryRequest\x1a\x0e.pb.RPCSuccess\x12A\n" +
|
||
"\x11uploadMaxMindFile\x12\x1c.pb.UploadMaxMindFileRequest\x1a\x0e.pb.RPCSuccess\x12\\\n" +
|
||
"\x15findMaxMindFileStatus\x12 .pb.FindMaxMindFileStatusRequest\x1a!.pb.FindMaxMindFileStatusResponse\x12A\n" +
|
||
"\x11deleteMaxMindFile\x12\x1c.pb.DeleteMaxMindFileRequest\x1a\x0e.pb.RPCSuccessB\x06Z\x04./pbb\x06proto3"
|
||
|
||
var (
|
||
file_service_ip_library_proto_rawDescOnce sync.Once
|
||
file_service_ip_library_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_service_ip_library_proto_rawDescGZIP() []byte {
|
||
file_service_ip_library_proto_rawDescOnce.Do(func() {
|
||
file_service_ip_library_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_ip_library_proto_rawDesc), len(file_service_ip_library_proto_rawDesc)))
|
||
})
|
||
return file_service_ip_library_proto_rawDescData
|
||
}
|
||
|
||
var file_service_ip_library_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
|
||
var file_service_ip_library_proto_goTypes = []any{
|
||
(*CreateIPLibraryRequest)(nil), // 0: pb.CreateIPLibraryRequest
|
||
(*CreateIPLibraryResponse)(nil), // 1: pb.CreateIPLibraryResponse
|
||
(*FindEnabledIPLibraryRequest)(nil), // 2: pb.FindEnabledIPLibraryRequest
|
||
(*FindEnabledIPLibraryResponse)(nil), // 3: pb.FindEnabledIPLibraryResponse
|
||
(*FindLatestIPLibraryWithTypeRequest)(nil), // 4: pb.FindLatestIPLibraryWithTypeRequest
|
||
(*FindLatestIPLibraryWithTypeResponse)(nil), // 5: pb.FindLatestIPLibraryWithTypeResponse
|
||
(*FindAllEnabledIPLibrariesWithTypeRequest)(nil), // 6: pb.FindAllEnabledIPLibrariesWithTypeRequest
|
||
(*FindAllEnabledIPLibrariesWithTypeResponse)(nil), // 7: pb.FindAllEnabledIPLibrariesWithTypeResponse
|
||
(*DeleteIPLibraryRequest)(nil), // 8: pb.DeleteIPLibraryRequest
|
||
(*LookupIPRegionRequest)(nil), // 9: pb.LookupIPRegionRequest
|
||
(*LookupIPRegionResponse)(nil), // 10: pb.LookupIPRegionResponse
|
||
(*LookupIPRegionsRequest)(nil), // 11: pb.LookupIPRegionsRequest
|
||
(*LookupIPRegionsResponse)(nil), // 12: pb.LookupIPRegionsResponse
|
||
(*IPRegion)(nil), // 13: pb.IPRegion
|
||
(*ReloadIPLibraryRequest)(nil), // 14: pb.ReloadIPLibraryRequest
|
||
(*UploadMaxMindFileRequest)(nil), // 15: pb.UploadMaxMindFileRequest
|
||
(*FindMaxMindFileStatusRequest)(nil), // 16: pb.FindMaxMindFileStatusRequest
|
||
(*FindMaxMindFileStatusResponse)(nil), // 17: pb.FindMaxMindFileStatusResponse
|
||
(*DeleteMaxMindFileRequest)(nil), // 18: pb.DeleteMaxMindFileRequest
|
||
nil, // 19: pb.LookupIPRegionsResponse.IpRegionMapEntry
|
||
(*IPLibrary)(nil), // 20: pb.IPLibrary
|
||
(*RPCSuccess)(nil), // 21: pb.RPCSuccess
|
||
}
|
||
var file_service_ip_library_proto_depIdxs = []int32{
|
||
20, // 0: pb.FindEnabledIPLibraryResponse.ipLibrary:type_name -> pb.IPLibrary
|
||
20, // 1: pb.FindLatestIPLibraryWithTypeResponse.ipLibrary:type_name -> pb.IPLibrary
|
||
20, // 2: pb.FindAllEnabledIPLibrariesWithTypeResponse.ipLibraries:type_name -> pb.IPLibrary
|
||
13, // 3: pb.LookupIPRegionResponse.ipRegion:type_name -> pb.IPRegion
|
||
19, // 4: pb.LookupIPRegionsResponse.ipRegionMap:type_name -> pb.LookupIPRegionsResponse.IpRegionMapEntry
|
||
13, // 5: pb.LookupIPRegionsResponse.IpRegionMapEntry.value:type_name -> pb.IPRegion
|
||
0, // 6: pb.IPLibraryService.createIPLibrary:input_type -> pb.CreateIPLibraryRequest
|
||
4, // 7: pb.IPLibraryService.findLatestIPLibraryWithType:input_type -> pb.FindLatestIPLibraryWithTypeRequest
|
||
2, // 8: pb.IPLibraryService.findEnabledIPLibrary:input_type -> pb.FindEnabledIPLibraryRequest
|
||
6, // 9: pb.IPLibraryService.findAllEnabledIPLibrariesWithType:input_type -> pb.FindAllEnabledIPLibrariesWithTypeRequest
|
||
8, // 10: pb.IPLibraryService.deleteIPLibrary:input_type -> pb.DeleteIPLibraryRequest
|
||
9, // 11: pb.IPLibraryService.lookupIPRegion:input_type -> pb.LookupIPRegionRequest
|
||
11, // 12: pb.IPLibraryService.lookupIPRegions:input_type -> pb.LookupIPRegionsRequest
|
||
14, // 13: pb.IPLibraryService.reloadIPLibrary:input_type -> pb.ReloadIPLibraryRequest
|
||
15, // 14: pb.IPLibraryService.uploadMaxMindFile:input_type -> pb.UploadMaxMindFileRequest
|
||
16, // 15: pb.IPLibraryService.findMaxMindFileStatus:input_type -> pb.FindMaxMindFileStatusRequest
|
||
18, // 16: pb.IPLibraryService.deleteMaxMindFile:input_type -> pb.DeleteMaxMindFileRequest
|
||
1, // 17: pb.IPLibraryService.createIPLibrary:output_type -> pb.CreateIPLibraryResponse
|
||
5, // 18: pb.IPLibraryService.findLatestIPLibraryWithType:output_type -> pb.FindLatestIPLibraryWithTypeResponse
|
||
3, // 19: pb.IPLibraryService.findEnabledIPLibrary:output_type -> pb.FindEnabledIPLibraryResponse
|
||
7, // 20: pb.IPLibraryService.findAllEnabledIPLibrariesWithType:output_type -> pb.FindAllEnabledIPLibrariesWithTypeResponse
|
||
21, // 21: pb.IPLibraryService.deleteIPLibrary:output_type -> pb.RPCSuccess
|
||
10, // 22: pb.IPLibraryService.lookupIPRegion:output_type -> pb.LookupIPRegionResponse
|
||
12, // 23: pb.IPLibraryService.lookupIPRegions:output_type -> pb.LookupIPRegionsResponse
|
||
21, // 24: pb.IPLibraryService.reloadIPLibrary:output_type -> pb.RPCSuccess
|
||
21, // 25: pb.IPLibraryService.uploadMaxMindFile:output_type -> pb.RPCSuccess
|
||
17, // 26: pb.IPLibraryService.findMaxMindFileStatus:output_type -> pb.FindMaxMindFileStatusResponse
|
||
21, // 27: pb.IPLibraryService.deleteMaxMindFile:output_type -> pb.RPCSuccess
|
||
17, // [17:28] is the sub-list for method output_type
|
||
6, // [6:17] 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_service_ip_library_proto_init() }
|
||
func file_service_ip_library_proto_init() {
|
||
if File_service_ip_library_proto != nil {
|
||
return
|
||
}
|
||
file_models_rpc_messages_proto_init()
|
||
file_models_model_ip_library_proto_init()
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_ip_library_proto_rawDesc), len(file_service_ip_library_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 20,
|
||
NumExtensions: 0,
|
||
NumServices: 1,
|
||
},
|
||
GoTypes: file_service_ip_library_proto_goTypes,
|
||
DependencyIndexes: file_service_ip_library_proto_depIdxs,
|
||
MessageInfos: file_service_ip_library_proto_msgTypes,
|
||
}.Build()
|
||
File_service_ip_library_proto = out.File
|
||
file_service_ip_library_proto_goTypes = nil
|
||
file_service_ip_library_proto_depIdxs = nil
|
||
}
|