// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v3.19.6 // source: service_http_firewall_policy.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 FindAllEnabledHTTPFirewallPoliciesRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FindAllEnabledHTTPFirewallPoliciesRequest) Reset() { *x = FindAllEnabledHTTPFirewallPoliciesRequest{} mi := &file_service_http_firewall_policy_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FindAllEnabledHTTPFirewallPoliciesRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindAllEnabledHTTPFirewallPoliciesRequest) ProtoMessage() {} func (x *FindAllEnabledHTTPFirewallPoliciesRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 FindAllEnabledHTTPFirewallPoliciesRequest.ProtoReflect.Descriptor instead. func (*FindAllEnabledHTTPFirewallPoliciesRequest) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{0} } type FindAllEnabledHTTPFirewallPoliciesResponse struct { state protoimpl.MessageState `protogen:"open.v1"` FirewallPolicies []*HTTPFirewallPolicy `protobuf:"bytes,1,rep,name=firewallPolicies,proto3" json:"firewallPolicies,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FindAllEnabledHTTPFirewallPoliciesResponse) Reset() { *x = FindAllEnabledHTTPFirewallPoliciesResponse{} mi := &file_service_http_firewall_policy_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FindAllEnabledHTTPFirewallPoliciesResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindAllEnabledHTTPFirewallPoliciesResponse) ProtoMessage() {} func (x *FindAllEnabledHTTPFirewallPoliciesResponse) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 FindAllEnabledHTTPFirewallPoliciesResponse.ProtoReflect.Descriptor instead. func (*FindAllEnabledHTTPFirewallPoliciesResponse) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{1} } func (x *FindAllEnabledHTTPFirewallPoliciesResponse) GetFirewallPolicies() []*HTTPFirewallPolicy { if x != nil { return x.FirewallPolicies } return nil } // 创建防火墙策略 type CreateHTTPFirewallPolicyRequest struct { state protoimpl.MessageState `protogen:"open.v1"` IsOn bool `protobuf:"varint,1,opt,name=isOn,proto3" json:"isOn,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` HttpFirewallGroupCodes []string `protobuf:"bytes,4,rep,name=httpFirewallGroupCodes,proto3" json:"httpFirewallGroupCodes,omitempty"` ServerId int64 `protobuf:"varint,5,opt,name=serverId,proto3" json:"serverId,omitempty"` ServerGroupId int64 `protobuf:"varint,6,opt,name=serverGroupId,proto3" json:"serverGroupId,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CreateHTTPFirewallPolicyRequest) Reset() { *x = CreateHTTPFirewallPolicyRequest{} mi := &file_service_http_firewall_policy_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CreateHTTPFirewallPolicyRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateHTTPFirewallPolicyRequest) ProtoMessage() {} func (x *CreateHTTPFirewallPolicyRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 CreateHTTPFirewallPolicyRequest.ProtoReflect.Descriptor instead. func (*CreateHTTPFirewallPolicyRequest) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{2} } func (x *CreateHTTPFirewallPolicyRequest) GetIsOn() bool { if x != nil { return x.IsOn } return false } func (x *CreateHTTPFirewallPolicyRequest) GetName() string { if x != nil { return x.Name } return "" } func (x *CreateHTTPFirewallPolicyRequest) GetDescription() string { if x != nil { return x.Description } return "" } func (x *CreateHTTPFirewallPolicyRequest) GetHttpFirewallGroupCodes() []string { if x != nil { return x.HttpFirewallGroupCodes } return nil } func (x *CreateHTTPFirewallPolicyRequest) GetServerId() int64 { if x != nil { return x.ServerId } return 0 } func (x *CreateHTTPFirewallPolicyRequest) GetServerGroupId() int64 { if x != nil { return x.ServerGroupId } return 0 } type CreateHTTPFirewallPolicyResponse struct { state protoimpl.MessageState `protogen:"open.v1"` HttpFirewallPolicyId int64 `protobuf:"varint,1,opt,name=httpFirewallPolicyId,proto3" json:"httpFirewallPolicyId,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CreateHTTPFirewallPolicyResponse) Reset() { *x = CreateHTTPFirewallPolicyResponse{} mi := &file_service_http_firewall_policy_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CreateHTTPFirewallPolicyResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateHTTPFirewallPolicyResponse) ProtoMessage() {} func (x *CreateHTTPFirewallPolicyResponse) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 CreateHTTPFirewallPolicyResponse.ProtoReflect.Descriptor instead. func (*CreateHTTPFirewallPolicyResponse) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{3} } func (x *CreateHTTPFirewallPolicyResponse) GetHttpFirewallPolicyId() int64 { if x != nil { return x.HttpFirewallPolicyId } return 0 } // 创建空防火墙策略 type CreateEmptyHTTPFirewallPolicyRequest struct { state protoimpl.MessageState `protogen:"open.v1"` IsOn bool `protobuf:"varint,1,opt,name=isOn,proto3" json:"isOn,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` ServerId int64 `protobuf:"varint,4,opt,name=serverId,proto3" json:"serverId,omitempty"` ServerGroupId int64 `protobuf:"varint,5,opt,name=serverGroupId,proto3" json:"serverGroupId,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CreateEmptyHTTPFirewallPolicyRequest) Reset() { *x = CreateEmptyHTTPFirewallPolicyRequest{} mi := &file_service_http_firewall_policy_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CreateEmptyHTTPFirewallPolicyRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateEmptyHTTPFirewallPolicyRequest) ProtoMessage() {} func (x *CreateEmptyHTTPFirewallPolicyRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 CreateEmptyHTTPFirewallPolicyRequest.ProtoReflect.Descriptor instead. func (*CreateEmptyHTTPFirewallPolicyRequest) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{4} } func (x *CreateEmptyHTTPFirewallPolicyRequest) GetIsOn() bool { if x != nil { return x.IsOn } return false } func (x *CreateEmptyHTTPFirewallPolicyRequest) GetName() string { if x != nil { return x.Name } return "" } func (x *CreateEmptyHTTPFirewallPolicyRequest) GetDescription() string { if x != nil { return x.Description } return "" } func (x *CreateEmptyHTTPFirewallPolicyRequest) GetServerId() int64 { if x != nil { return x.ServerId } return 0 } func (x *CreateEmptyHTTPFirewallPolicyRequest) GetServerGroupId() int64 { if x != nil { return x.ServerGroupId } return 0 } type CreateEmptyHTTPFirewallPolicyResponse struct { state protoimpl.MessageState `protogen:"open.v1"` HttpFirewallPolicyId int64 `protobuf:"varint,1,opt,name=httpFirewallPolicyId,proto3" json:"httpFirewallPolicyId,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CreateEmptyHTTPFirewallPolicyResponse) Reset() { *x = CreateEmptyHTTPFirewallPolicyResponse{} mi := &file_service_http_firewall_policy_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CreateEmptyHTTPFirewallPolicyResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateEmptyHTTPFirewallPolicyResponse) ProtoMessage() {} func (x *CreateEmptyHTTPFirewallPolicyResponse) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 CreateEmptyHTTPFirewallPolicyResponse.ProtoReflect.Descriptor instead. func (*CreateEmptyHTTPFirewallPolicyResponse) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{5} } func (x *CreateEmptyHTTPFirewallPolicyResponse) GetHttpFirewallPolicyId() int64 { if x != nil { return x.HttpFirewallPolicyId } return 0 } // 修改防火墙策略 type UpdateHTTPFirewallPolicyRequest struct { state protoimpl.MessageState `protogen:"open.v1"` HttpFirewallPolicyId int64 `protobuf:"varint,1,opt,name=httpFirewallPolicyId,proto3" json:"httpFirewallPolicyId,omitempty"` IsOn bool `protobuf:"varint,2,opt,name=isOn,proto3" json:"isOn,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` FirewallGroupCodes []string `protobuf:"bytes,5,rep,name=firewallGroupCodes,proto3" json:"firewallGroupCodes,omitempty"` BlockOptionsJSON []byte `protobuf:"bytes,6,opt,name=blockOptionsJSON,proto3" json:"blockOptionsJSON,omitempty"` // 阻止动作配置 PageOptionsJSON []byte `protobuf:"bytes,15,opt,name=pageOptionsJSON,proto3" json:"pageOptionsJSON,omitempty"` // 显示网页动作配置 CaptchaOptionsJSON []byte `protobuf:"bytes,11,opt,name=captchaOptionsJSON,proto3" json:"captchaOptionsJSON,omitempty"` // 验证码动作配置 JsCookieOptionsJSON []byte `protobuf:"bytes,16,opt,name=jsCookieOptionsJSON,proto3" json:"jsCookieOptionsJSON,omitempty"` // JSCookie动作配置 Mode string `protobuf:"bytes,7,opt,name=mode,proto3" json:"mode,omitempty"` UseLocalFirewall bool `protobuf:"varint,8,opt,name=useLocalFirewall,proto3" json:"useLocalFirewall,omitempty"` // 是否使用本地防火墙 SynFloodJSON []byte `protobuf:"bytes,9,opt,name=synFloodJSON,proto3" json:"synFloodJSON,omitempty"` // SYN Flood相关配置 LogJSON []byte `protobuf:"bytes,10,opt,name=LogJSON,proto3" json:"LogJSON,omitempty"` // 日志相关配置 MaxRequestBodySize int64 `protobuf:"varint,12,opt,name=maxRequestBodySize,proto3" json:"maxRequestBodySize,omitempty"` // 最大文件尺寸,单位为字节 DenyCountryHTML string `protobuf:"bytes,13,opt,name=denyCountryHTML,proto3" json:"denyCountryHTML,omitempty"` // 区域封禁提示 DenyProvinceHTML string `protobuf:"bytes,14,opt,name=denyProvinceHTML,proto3" json:"denyProvinceHTML,omitempty"` // 省份封禁提示 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *UpdateHTTPFirewallPolicyRequest) Reset() { *x = UpdateHTTPFirewallPolicyRequest{} mi := &file_service_http_firewall_policy_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *UpdateHTTPFirewallPolicyRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateHTTPFirewallPolicyRequest) ProtoMessage() {} func (x *UpdateHTTPFirewallPolicyRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 UpdateHTTPFirewallPolicyRequest.ProtoReflect.Descriptor instead. func (*UpdateHTTPFirewallPolicyRequest) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{6} } func (x *UpdateHTTPFirewallPolicyRequest) GetHttpFirewallPolicyId() int64 { if x != nil { return x.HttpFirewallPolicyId } return 0 } func (x *UpdateHTTPFirewallPolicyRequest) GetIsOn() bool { if x != nil { return x.IsOn } return false } func (x *UpdateHTTPFirewallPolicyRequest) GetName() string { if x != nil { return x.Name } return "" } func (x *UpdateHTTPFirewallPolicyRequest) GetDescription() string { if x != nil { return x.Description } return "" } func (x *UpdateHTTPFirewallPolicyRequest) GetFirewallGroupCodes() []string { if x != nil { return x.FirewallGroupCodes } return nil } func (x *UpdateHTTPFirewallPolicyRequest) GetBlockOptionsJSON() []byte { if x != nil { return x.BlockOptionsJSON } return nil } func (x *UpdateHTTPFirewallPolicyRequest) GetPageOptionsJSON() []byte { if x != nil { return x.PageOptionsJSON } return nil } func (x *UpdateHTTPFirewallPolicyRequest) GetCaptchaOptionsJSON() []byte { if x != nil { return x.CaptchaOptionsJSON } return nil } func (x *UpdateHTTPFirewallPolicyRequest) GetJsCookieOptionsJSON() []byte { if x != nil { return x.JsCookieOptionsJSON } return nil } func (x *UpdateHTTPFirewallPolicyRequest) GetMode() string { if x != nil { return x.Mode } return "" } func (x *UpdateHTTPFirewallPolicyRequest) GetUseLocalFirewall() bool { if x != nil { return x.UseLocalFirewall } return false } func (x *UpdateHTTPFirewallPolicyRequest) GetSynFloodJSON() []byte { if x != nil { return x.SynFloodJSON } return nil } func (x *UpdateHTTPFirewallPolicyRequest) GetLogJSON() []byte { if x != nil { return x.LogJSON } return nil } func (x *UpdateHTTPFirewallPolicyRequest) GetMaxRequestBodySize() int64 { if x != nil { return x.MaxRequestBodySize } return 0 } func (x *UpdateHTTPFirewallPolicyRequest) GetDenyCountryHTML() string { if x != nil { return x.DenyCountryHTML } return "" } func (x *UpdateHTTPFirewallPolicyRequest) GetDenyProvinceHTML() string { if x != nil { return x.DenyProvinceHTML } return "" } // 修改分组信息 type UpdateHTTPFirewallPolicyGroupsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` HttpFirewallPolicyId int64 `protobuf:"varint,1,opt,name=httpFirewallPolicyId,proto3" json:"httpFirewallPolicyId,omitempty"` InboundJSON []byte `protobuf:"bytes,2,opt,name=inboundJSON,proto3" json:"inboundJSON,omitempty"` OutboundJSON []byte `protobuf:"bytes,3,opt,name=outboundJSON,proto3" json:"outboundJSON,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *UpdateHTTPFirewallPolicyGroupsRequest) Reset() { *x = UpdateHTTPFirewallPolicyGroupsRequest{} mi := &file_service_http_firewall_policy_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *UpdateHTTPFirewallPolicyGroupsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateHTTPFirewallPolicyGroupsRequest) ProtoMessage() {} func (x *UpdateHTTPFirewallPolicyGroupsRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 UpdateHTTPFirewallPolicyGroupsRequest.ProtoReflect.Descriptor instead. func (*UpdateHTTPFirewallPolicyGroupsRequest) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{7} } func (x *UpdateHTTPFirewallPolicyGroupsRequest) GetHttpFirewallPolicyId() int64 { if x != nil { return x.HttpFirewallPolicyId } return 0 } func (x *UpdateHTTPFirewallPolicyGroupsRequest) GetInboundJSON() []byte { if x != nil { return x.InboundJSON } return nil } func (x *UpdateHTTPFirewallPolicyGroupsRequest) GetOutboundJSON() []byte { if x != nil { return x.OutboundJSON } return nil } // 修改inbound信息 type UpdateHTTPFirewallInboundConfigRequest struct { state protoimpl.MessageState `protogen:"open.v1"` HttpFirewallPolicyId int64 `protobuf:"varint,1,opt,name=httpFirewallPolicyId,proto3" json:"httpFirewallPolicyId,omitempty"` InboundJSON []byte `protobuf:"bytes,2,opt,name=inboundJSON,proto3" json:"inboundJSON,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *UpdateHTTPFirewallInboundConfigRequest) Reset() { *x = UpdateHTTPFirewallInboundConfigRequest{} mi := &file_service_http_firewall_policy_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *UpdateHTTPFirewallInboundConfigRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateHTTPFirewallInboundConfigRequest) ProtoMessage() {} func (x *UpdateHTTPFirewallInboundConfigRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 UpdateHTTPFirewallInboundConfigRequest.ProtoReflect.Descriptor instead. func (*UpdateHTTPFirewallInboundConfigRequest) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{8} } func (x *UpdateHTTPFirewallInboundConfigRequest) GetHttpFirewallPolicyId() int64 { if x != nil { return x.HttpFirewallPolicyId } return 0 } func (x *UpdateHTTPFirewallInboundConfigRequest) GetInboundJSON() []byte { if x != nil { return x.InboundJSON } return nil } // 计算可用的防火墙策略数量 type CountAllEnabledHTTPFirewallPoliciesRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` NodeClusterId int64 `protobuf:"varint,2,opt,name=nodeClusterId,proto3" json:"nodeClusterId,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CountAllEnabledHTTPFirewallPoliciesRequest) Reset() { *x = CountAllEnabledHTTPFirewallPoliciesRequest{} mi := &file_service_http_firewall_policy_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CountAllEnabledHTTPFirewallPoliciesRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CountAllEnabledHTTPFirewallPoliciesRequest) ProtoMessage() {} func (x *CountAllEnabledHTTPFirewallPoliciesRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 CountAllEnabledHTTPFirewallPoliciesRequest.ProtoReflect.Descriptor instead. func (*CountAllEnabledHTTPFirewallPoliciesRequest) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{9} } func (x *CountAllEnabledHTTPFirewallPoliciesRequest) GetKeyword() string { if x != nil { return x.Keyword } return "" } func (x *CountAllEnabledHTTPFirewallPoliciesRequest) GetNodeClusterId() int64 { if x != nil { return x.NodeClusterId } return 0 } // 列出单页的防火墙策略 type ListEnabledHTTPFirewallPoliciesRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"` NodeClusterId int64 `protobuf:"varint,4,opt,name=nodeClusterId,proto3" json:"nodeClusterId,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListEnabledHTTPFirewallPoliciesRequest) Reset() { *x = ListEnabledHTTPFirewallPoliciesRequest{} mi := &file_service_http_firewall_policy_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListEnabledHTTPFirewallPoliciesRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListEnabledHTTPFirewallPoliciesRequest) ProtoMessage() {} func (x *ListEnabledHTTPFirewallPoliciesRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 ListEnabledHTTPFirewallPoliciesRequest.ProtoReflect.Descriptor instead. func (*ListEnabledHTTPFirewallPoliciesRequest) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{10} } func (x *ListEnabledHTTPFirewallPoliciesRequest) GetOffset() int64 { if x != nil { return x.Offset } return 0 } func (x *ListEnabledHTTPFirewallPoliciesRequest) GetSize() int64 { if x != nil { return x.Size } return 0 } func (x *ListEnabledHTTPFirewallPoliciesRequest) GetKeyword() string { if x != nil { return x.Keyword } return "" } func (x *ListEnabledHTTPFirewallPoliciesRequest) GetNodeClusterId() int64 { if x != nil { return x.NodeClusterId } return 0 } type ListEnabledHTTPFirewallPoliciesResponse struct { state protoimpl.MessageState `protogen:"open.v1"` HttpFirewallPolicies []*HTTPFirewallPolicy `protobuf:"bytes,1,rep,name=httpFirewallPolicies,proto3" json:"httpFirewallPolicies,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListEnabledHTTPFirewallPoliciesResponse) Reset() { *x = ListEnabledHTTPFirewallPoliciesResponse{} mi := &file_service_http_firewall_policy_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListEnabledHTTPFirewallPoliciesResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListEnabledHTTPFirewallPoliciesResponse) ProtoMessage() {} func (x *ListEnabledHTTPFirewallPoliciesResponse) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 ListEnabledHTTPFirewallPoliciesResponse.ProtoReflect.Descriptor instead. func (*ListEnabledHTTPFirewallPoliciesResponse) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{11} } func (x *ListEnabledHTTPFirewallPoliciesResponse) GetHttpFirewallPolicies() []*HTTPFirewallPolicy { if x != nil { return x.HttpFirewallPolicies } return nil } // 删除某个防火墙策略 type DeleteHTTPFirewallPolicyRequest struct { state protoimpl.MessageState `protogen:"open.v1"` HttpFirewallPolicyId int64 `protobuf:"varint,1,opt,name=httpFirewallPolicyId,proto3" json:"httpFirewallPolicyId,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *DeleteHTTPFirewallPolicyRequest) Reset() { *x = DeleteHTTPFirewallPolicyRequest{} mi := &file_service_http_firewall_policy_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *DeleteHTTPFirewallPolicyRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*DeleteHTTPFirewallPolicyRequest) ProtoMessage() {} func (x *DeleteHTTPFirewallPolicyRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 DeleteHTTPFirewallPolicyRequest.ProtoReflect.Descriptor instead. func (*DeleteHTTPFirewallPolicyRequest) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{12} } func (x *DeleteHTTPFirewallPolicyRequest) GetHttpFirewallPolicyId() int64 { if x != nil { return x.HttpFirewallPolicyId } return 0 } // 查找单个防火墙配置 type FindEnabledHTTPFirewallPolicyConfigRequest struct { state protoimpl.MessageState `protogen:"open.v1"` HttpFirewallPolicyId int64 `protobuf:"varint,1,opt,name=httpFirewallPolicyId,proto3" json:"httpFirewallPolicyId,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FindEnabledHTTPFirewallPolicyConfigRequest) Reset() { *x = FindEnabledHTTPFirewallPolicyConfigRequest{} mi := &file_service_http_firewall_policy_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FindEnabledHTTPFirewallPolicyConfigRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindEnabledHTTPFirewallPolicyConfigRequest) ProtoMessage() {} func (x *FindEnabledHTTPFirewallPolicyConfigRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 FindEnabledHTTPFirewallPolicyConfigRequest.ProtoReflect.Descriptor instead. func (*FindEnabledHTTPFirewallPolicyConfigRequest) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{13} } func (x *FindEnabledHTTPFirewallPolicyConfigRequest) GetHttpFirewallPolicyId() int64 { if x != nil { return x.HttpFirewallPolicyId } return 0 } type FindEnabledHTTPFirewallPolicyConfigResponse struct { state protoimpl.MessageState `protogen:"open.v1"` HttpFirewallPolicyJSON []byte `protobuf:"bytes,1,opt,name=httpFirewallPolicyJSON,proto3" json:"httpFirewallPolicyJSON,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FindEnabledHTTPFirewallPolicyConfigResponse) Reset() { *x = FindEnabledHTTPFirewallPolicyConfigResponse{} mi := &file_service_http_firewall_policy_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FindEnabledHTTPFirewallPolicyConfigResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindEnabledHTTPFirewallPolicyConfigResponse) ProtoMessage() {} func (x *FindEnabledHTTPFirewallPolicyConfigResponse) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 FindEnabledHTTPFirewallPolicyConfigResponse.ProtoReflect.Descriptor instead. func (*FindEnabledHTTPFirewallPolicyConfigResponse) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{14} } func (x *FindEnabledHTTPFirewallPolicyConfigResponse) GetHttpFirewallPolicyJSON() []byte { if x != nil { return x.HttpFirewallPolicyJSON } return nil } // 获取防火墙的基本信息 type FindEnabledHTTPFirewallPolicyRequest struct { state protoimpl.MessageState `protogen:"open.v1"` HttpFirewallPolicyId int64 `protobuf:"varint,1,opt,name=httpFirewallPolicyId,proto3" json:"httpFirewallPolicyId,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FindEnabledHTTPFirewallPolicyRequest) Reset() { *x = FindEnabledHTTPFirewallPolicyRequest{} mi := &file_service_http_firewall_policy_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FindEnabledHTTPFirewallPolicyRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindEnabledHTTPFirewallPolicyRequest) ProtoMessage() {} func (x *FindEnabledHTTPFirewallPolicyRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 FindEnabledHTTPFirewallPolicyRequest.ProtoReflect.Descriptor instead. func (*FindEnabledHTTPFirewallPolicyRequest) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{15} } func (x *FindEnabledHTTPFirewallPolicyRequest) GetHttpFirewallPolicyId() int64 { if x != nil { return x.HttpFirewallPolicyId } return 0 } type FindEnabledHTTPFirewallPolicyResponse struct { state protoimpl.MessageState `protogen:"open.v1"` HttpFirewallPolicy *HTTPFirewallPolicy `protobuf:"bytes,1,opt,name=httpFirewallPolicy,proto3" json:"httpFirewallPolicy,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FindEnabledHTTPFirewallPolicyResponse) Reset() { *x = FindEnabledHTTPFirewallPolicyResponse{} mi := &file_service_http_firewall_policy_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FindEnabledHTTPFirewallPolicyResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindEnabledHTTPFirewallPolicyResponse) ProtoMessage() {} func (x *FindEnabledHTTPFirewallPolicyResponse) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 FindEnabledHTTPFirewallPolicyResponse.ProtoReflect.Descriptor instead. func (*FindEnabledHTTPFirewallPolicyResponse) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{16} } func (x *FindEnabledHTTPFirewallPolicyResponse) GetHttpFirewallPolicy() *HTTPFirewallPolicy { if x != nil { return x.HttpFirewallPolicy } return nil } // 导入策略数据 type ImportHTTPFirewallPolicyRequest struct { state protoimpl.MessageState `protogen:"open.v1"` HttpFirewallPolicyId int64 `protobuf:"varint,1,opt,name=httpFirewallPolicyId,proto3" json:"httpFirewallPolicyId,omitempty"` HttpFirewallPolicyJSON []byte `protobuf:"bytes,2,opt,name=httpFirewallPolicyJSON,proto3" json:"httpFirewallPolicyJSON,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ImportHTTPFirewallPolicyRequest) Reset() { *x = ImportHTTPFirewallPolicyRequest{} mi := &file_service_http_firewall_policy_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ImportHTTPFirewallPolicyRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ImportHTTPFirewallPolicyRequest) ProtoMessage() {} func (x *ImportHTTPFirewallPolicyRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 ImportHTTPFirewallPolicyRequest.ProtoReflect.Descriptor instead. func (*ImportHTTPFirewallPolicyRequest) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{17} } func (x *ImportHTTPFirewallPolicyRequest) GetHttpFirewallPolicyId() int64 { if x != nil { return x.HttpFirewallPolicyId } return 0 } func (x *ImportHTTPFirewallPolicyRequest) GetHttpFirewallPolicyJSON() []byte { if x != nil { return x.HttpFirewallPolicyJSON } return nil } // 检查IP状态 type CheckHTTPFirewallPolicyIPStatusRequest struct { state protoimpl.MessageState `protogen:"open.v1"` HttpFirewallPolicyId int64 `protobuf:"varint,1,opt,name=httpFirewallPolicyId,proto3" json:"httpFirewallPolicyId,omitempty"` Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CheckHTTPFirewallPolicyIPStatusRequest) Reset() { *x = CheckHTTPFirewallPolicyIPStatusRequest{} mi := &file_service_http_firewall_policy_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CheckHTTPFirewallPolicyIPStatusRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CheckHTTPFirewallPolicyIPStatusRequest) ProtoMessage() {} func (x *CheckHTTPFirewallPolicyIPStatusRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_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 CheckHTTPFirewallPolicyIPStatusRequest.ProtoReflect.Descriptor instead. func (*CheckHTTPFirewallPolicyIPStatusRequest) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{18} } func (x *CheckHTTPFirewallPolicyIPStatusRequest) GetHttpFirewallPolicyId() int64 { if x != nil { return x.HttpFirewallPolicyId } return 0 } func (x *CheckHTTPFirewallPolicyIPStatusRequest) GetIp() string { if x != nil { return x.Ip } return "" } type CheckHTTPFirewallPolicyIPStatusResponse struct { state protoimpl.MessageState `protogen:"open.v1"` IsOk bool `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"` // 是否查询成功 Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // 错误信息 IsFound bool `protobuf:"varint,3,opt,name=isFound,proto3" json:"isFound,omitempty"` // 是否找到 IsAllowed bool `protobuf:"varint,4,opt,name=isAllowed,proto3" json:"isAllowed,omitempty"` // 是否允许访问 IpList *IPList `protobuf:"bytes,5,opt,name=ipList,proto3" json:"ipList,omitempty"` // 匹配的IPList IpItem *IPItem `protobuf:"bytes,6,opt,name=ipItem,proto3" json:"ipItem,omitempty"` // 匹配的IPItem RegionCountry *RegionCountry `protobuf:"bytes,7,opt,name=regionCountry,proto3" json:"regionCountry,omitempty"` // 匹配到封禁的地区 RegionProvince *RegionProvince `protobuf:"bytes,8,opt,name=regionProvince,proto3" json:"regionProvince,omitempty"` // 匹配到封禁的省份 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CheckHTTPFirewallPolicyIPStatusResponse) Reset() { *x = CheckHTTPFirewallPolicyIPStatusResponse{} mi := &file_service_http_firewall_policy_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CheckHTTPFirewallPolicyIPStatusResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*CheckHTTPFirewallPolicyIPStatusResponse) ProtoMessage() {} func (x *CheckHTTPFirewallPolicyIPStatusResponse) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_proto_msgTypes[19] 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 CheckHTTPFirewallPolicyIPStatusResponse.ProtoReflect.Descriptor instead. func (*CheckHTTPFirewallPolicyIPStatusResponse) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{19} } func (x *CheckHTTPFirewallPolicyIPStatusResponse) GetIsOk() bool { if x != nil { return x.IsOk } return false } func (x *CheckHTTPFirewallPolicyIPStatusResponse) GetError() string { if x != nil { return x.Error } return "" } func (x *CheckHTTPFirewallPolicyIPStatusResponse) GetIsFound() bool { if x != nil { return x.IsFound } return false } func (x *CheckHTTPFirewallPolicyIPStatusResponse) GetIsAllowed() bool { if x != nil { return x.IsAllowed } return false } func (x *CheckHTTPFirewallPolicyIPStatusResponse) GetIpList() *IPList { if x != nil { return x.IpList } return nil } func (x *CheckHTTPFirewallPolicyIPStatusResponse) GetIpItem() *IPItem { if x != nil { return x.IpItem } return nil } func (x *CheckHTTPFirewallPolicyIPStatusResponse) GetRegionCountry() *RegionCountry { if x != nil { return x.RegionCountry } return nil } func (x *CheckHTTPFirewallPolicyIPStatusResponse) GetRegionProvince() *RegionProvince { if x != nil { return x.RegionProvince } return nil } // 获取防火墙对应的网站ID type FindServerIdWithHTTPFirewallPolicyIdRequest struct { state protoimpl.MessageState `protogen:"open.v1"` HttpFirewallPolicyId int64 `protobuf:"varint,1,opt,name=httpFirewallPolicyId,proto3" json:"httpFirewallPolicyId,omitempty"` // 防火墙策略ID unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FindServerIdWithHTTPFirewallPolicyIdRequest) Reset() { *x = FindServerIdWithHTTPFirewallPolicyIdRequest{} mi := &file_service_http_firewall_policy_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FindServerIdWithHTTPFirewallPolicyIdRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindServerIdWithHTTPFirewallPolicyIdRequest) ProtoMessage() {} func (x *FindServerIdWithHTTPFirewallPolicyIdRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_proto_msgTypes[20] 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 FindServerIdWithHTTPFirewallPolicyIdRequest.ProtoReflect.Descriptor instead. func (*FindServerIdWithHTTPFirewallPolicyIdRequest) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{20} } func (x *FindServerIdWithHTTPFirewallPolicyIdRequest) GetHttpFirewallPolicyId() int64 { if x != nil { return x.HttpFirewallPolicyId } return 0 } type FindServerIdWithHTTPFirewallPolicyIdResponse struct { state protoimpl.MessageState `protogen:"open.v1"` ServerId int64 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"` // 防火墙策略对应的网站ID,公共的防火墙策略的网站ID为0 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FindServerIdWithHTTPFirewallPolicyIdResponse) Reset() { *x = FindServerIdWithHTTPFirewallPolicyIdResponse{} mi := &file_service_http_firewall_policy_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FindServerIdWithHTTPFirewallPolicyIdResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindServerIdWithHTTPFirewallPolicyIdResponse) ProtoMessage() {} func (x *FindServerIdWithHTTPFirewallPolicyIdResponse) ProtoReflect() protoreflect.Message { mi := &file_service_http_firewall_policy_proto_msgTypes[21] 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 FindServerIdWithHTTPFirewallPolicyIdResponse.ProtoReflect.Descriptor instead. func (*FindServerIdWithHTTPFirewallPolicyIdResponse) Descriptor() ([]byte, []int) { return file_service_http_firewall_policy_proto_rawDescGZIP(), []int{21} } func (x *FindServerIdWithHTTPFirewallPolicyIdResponse) GetServerId() int64 { if x != nil { return x.ServerId } return 0 } var File_service_http_firewall_policy_proto protoreflect.FileDescriptor const file_service_http_firewall_policy_proto_rawDesc = "" + "\n" + "\"service_http_firewall_policy.proto\x12\x02pb\x1a'models/model_http_firewall_policy.proto\x1a\x1amodels/model_ip_list.proto\x1a\x1amodels/model_ip_item.proto\x1a!models/model_region_country.proto\x1a\"models/model_region_province.proto\x1a\x19models/rpc_messages.proto\"+\n" + ")FindAllEnabledHTTPFirewallPoliciesRequest\"p\n" + "*FindAllEnabledHTTPFirewallPoliciesResponse\x12B\n" + "\x10firewallPolicies\x18\x01 \x03(\v2\x16.pb.HTTPFirewallPolicyR\x10firewallPolicies\"\xe5\x01\n" + "\x1fCreateHTTPFirewallPolicyRequest\x12\x12\n" + "\x04isOn\x18\x01 \x01(\bR\x04isOn\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" + "\vdescription\x18\x03 \x01(\tR\vdescription\x126\n" + "\x16httpFirewallGroupCodes\x18\x04 \x03(\tR\x16httpFirewallGroupCodes\x12\x1a\n" + "\bserverId\x18\x05 \x01(\x03R\bserverId\x12$\n" + "\rserverGroupId\x18\x06 \x01(\x03R\rserverGroupId\"V\n" + " CreateHTTPFirewallPolicyResponse\x122\n" + "\x14httpFirewallPolicyId\x18\x01 \x01(\x03R\x14httpFirewallPolicyId\"\xb2\x01\n" + "$CreateEmptyHTTPFirewallPolicyRequest\x12\x12\n" + "\x04isOn\x18\x01 \x01(\bR\x04isOn\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" + "\vdescription\x18\x03 \x01(\tR\vdescription\x12\x1a\n" + "\bserverId\x18\x04 \x01(\x03R\bserverId\x12$\n" + "\rserverGroupId\x18\x05 \x01(\x03R\rserverGroupId\"[\n" + "%CreateEmptyHTTPFirewallPolicyResponse\x122\n" + "\x14httpFirewallPolicyId\x18\x01 \x01(\x03R\x14httpFirewallPolicyId\"\x8b\x05\n" + "\x1fUpdateHTTPFirewallPolicyRequest\x122\n" + "\x14httpFirewallPolicyId\x18\x01 \x01(\x03R\x14httpFirewallPolicyId\x12\x12\n" + "\x04isOn\x18\x02 \x01(\bR\x04isOn\x12\x12\n" + "\x04name\x18\x03 \x01(\tR\x04name\x12 \n" + "\vdescription\x18\x04 \x01(\tR\vdescription\x12.\n" + "\x12firewallGroupCodes\x18\x05 \x03(\tR\x12firewallGroupCodes\x12*\n" + "\x10blockOptionsJSON\x18\x06 \x01(\fR\x10blockOptionsJSON\x12(\n" + "\x0fpageOptionsJSON\x18\x0f \x01(\fR\x0fpageOptionsJSON\x12.\n" + "\x12captchaOptionsJSON\x18\v \x01(\fR\x12captchaOptionsJSON\x120\n" + "\x13jsCookieOptionsJSON\x18\x10 \x01(\fR\x13jsCookieOptionsJSON\x12\x12\n" + "\x04mode\x18\a \x01(\tR\x04mode\x12*\n" + "\x10useLocalFirewall\x18\b \x01(\bR\x10useLocalFirewall\x12\"\n" + "\fsynFloodJSON\x18\t \x01(\fR\fsynFloodJSON\x12\x18\n" + "\aLogJSON\x18\n" + " \x01(\fR\aLogJSON\x12.\n" + "\x12maxRequestBodySize\x18\f \x01(\x03R\x12maxRequestBodySize\x12(\n" + "\x0fdenyCountryHTML\x18\r \x01(\tR\x0fdenyCountryHTML\x12*\n" + "\x10denyProvinceHTML\x18\x0e \x01(\tR\x10denyProvinceHTML\"\xa1\x01\n" + "%UpdateHTTPFirewallPolicyGroupsRequest\x122\n" + "\x14httpFirewallPolicyId\x18\x01 \x01(\x03R\x14httpFirewallPolicyId\x12 \n" + "\vinboundJSON\x18\x02 \x01(\fR\vinboundJSON\x12\"\n" + "\foutboundJSON\x18\x03 \x01(\fR\foutboundJSON\"~\n" + "&UpdateHTTPFirewallInboundConfigRequest\x122\n" + "\x14httpFirewallPolicyId\x18\x01 \x01(\x03R\x14httpFirewallPolicyId\x12 \n" + "\vinboundJSON\x18\x02 \x01(\fR\vinboundJSON\"l\n" + "*CountAllEnabledHTTPFirewallPoliciesRequest\x12\x18\n" + "\akeyword\x18\x01 \x01(\tR\akeyword\x12$\n" + "\rnodeClusterId\x18\x02 \x01(\x03R\rnodeClusterId\"\x94\x01\n" + "&ListEnabledHTTPFirewallPoliciesRequest\x12\x16\n" + "\x06offset\x18\x01 \x01(\x03R\x06offset\x12\x12\n" + "\x04size\x18\x02 \x01(\x03R\x04size\x12\x18\n" + "\akeyword\x18\x03 \x01(\tR\akeyword\x12$\n" + "\rnodeClusterId\x18\x04 \x01(\x03R\rnodeClusterId\"u\n" + "'ListEnabledHTTPFirewallPoliciesResponse\x12J\n" + "\x14httpFirewallPolicies\x18\x01 \x03(\v2\x16.pb.HTTPFirewallPolicyR\x14httpFirewallPolicies\"U\n" + "\x1fDeleteHTTPFirewallPolicyRequest\x122\n" + "\x14httpFirewallPolicyId\x18\x01 \x01(\x03R\x14httpFirewallPolicyId\"`\n" + "*FindEnabledHTTPFirewallPolicyConfigRequest\x122\n" + "\x14httpFirewallPolicyId\x18\x01 \x01(\x03R\x14httpFirewallPolicyId\"e\n" + "+FindEnabledHTTPFirewallPolicyConfigResponse\x126\n" + "\x16httpFirewallPolicyJSON\x18\x01 \x01(\fR\x16httpFirewallPolicyJSON\"Z\n" + "$FindEnabledHTTPFirewallPolicyRequest\x122\n" + "\x14httpFirewallPolicyId\x18\x01 \x01(\x03R\x14httpFirewallPolicyId\"o\n" + "%FindEnabledHTTPFirewallPolicyResponse\x12F\n" + "\x12httpFirewallPolicy\x18\x01 \x01(\v2\x16.pb.HTTPFirewallPolicyR\x12httpFirewallPolicy\"\x8d\x01\n" + "\x1fImportHTTPFirewallPolicyRequest\x122\n" + "\x14httpFirewallPolicyId\x18\x01 \x01(\x03R\x14httpFirewallPolicyId\x126\n" + "\x16httpFirewallPolicyJSON\x18\x02 \x01(\fR\x16httpFirewallPolicyJSON\"l\n" + "&CheckHTTPFirewallPolicyIPStatusRequest\x122\n" + "\x14httpFirewallPolicyId\x18\x01 \x01(\x03R\x14httpFirewallPolicyId\x12\x0e\n" + "\x02ip\x18\x02 \x01(\tR\x02ip\"\xc8\x02\n" + "'CheckHTTPFirewallPolicyIPStatusResponse\x12\x12\n" + "\x04isOk\x18\x01 \x01(\bR\x04isOk\x12\x14\n" + "\x05error\x18\x02 \x01(\tR\x05error\x12\x18\n" + "\aisFound\x18\x03 \x01(\bR\aisFound\x12\x1c\n" + "\tisAllowed\x18\x04 \x01(\bR\tisAllowed\x12\"\n" + "\x06ipList\x18\x05 \x01(\v2\n" + ".pb.IPListR\x06ipList\x12\"\n" + "\x06ipItem\x18\x06 \x01(\v2\n" + ".pb.IPItemR\x06ipItem\x127\n" + "\rregionCountry\x18\a \x01(\v2\x11.pb.RegionCountryR\rregionCountry\x12:\n" + "\x0eregionProvince\x18\b \x01(\v2\x12.pb.RegionProvinceR\x0eregionProvince\"a\n" + "+FindServerIdWithHTTPFirewallPolicyIdRequest\x122\n" + "\x14httpFirewallPolicyId\x18\x01 \x01(\x03R\x14httpFirewallPolicyId\"J\n" + ",FindServerIdWithHTTPFirewallPolicyIdResponse\x12\x1a\n" + "\bserverId\x18\x01 \x01(\x03R\bserverId2\x9d\f\n" + "\x19HTTPFirewallPolicyService\x12\x83\x01\n" + "\"findAllEnabledHTTPFirewallPolicies\x12-.pb.FindAllEnabledHTTPFirewallPoliciesRequest\x1a..pb.FindAllEnabledHTTPFirewallPoliciesResponse\x12e\n" + "\x18createHTTPFirewallPolicy\x12#.pb.CreateHTTPFirewallPolicyRequest\x1a$.pb.CreateHTTPFirewallPolicyResponse\x12t\n" + "\x1dcreateEmptyHTTPFirewallPolicy\x12(.pb.CreateEmptyHTTPFirewallPolicyRequest\x1a).pb.CreateEmptyHTTPFirewallPolicyResponse\x12O\n" + "\x18updateHTTPFirewallPolicy\x12#.pb.UpdateHTTPFirewallPolicyRequest\x1a\x0e.pb.RPCSuccess\x12[\n" + "\x1eupdateHTTPFirewallPolicyGroups\x12).pb.UpdateHTTPFirewallPolicyGroupsRequest\x1a\x0e.pb.RPCSuccess\x12]\n" + "\x1fupdateHTTPFirewallInboundConfig\x12*.pb.UpdateHTTPFirewallInboundConfigRequest\x1a\x0e.pb.RPCSuccess\x12k\n" + "#countAllEnabledHTTPFirewallPolicies\x12..pb.CountAllEnabledHTTPFirewallPoliciesRequest\x1a\x14.pb.RPCCountResponse\x12z\n" + "\x1flistEnabledHTTPFirewallPolicies\x12*.pb.ListEnabledHTTPFirewallPoliciesRequest\x1a+.pb.ListEnabledHTTPFirewallPoliciesResponse\x12O\n" + "\x18deleteHTTPFirewallPolicy\x12#.pb.DeleteHTTPFirewallPolicyRequest\x1a\x0e.pb.RPCSuccess\x12\x86\x01\n" + "#findEnabledHTTPFirewallPolicyConfig\x12..pb.FindEnabledHTTPFirewallPolicyConfigRequest\x1a/.pb.FindEnabledHTTPFirewallPolicyConfigResponse\x12t\n" + "\x1dfindEnabledHTTPFirewallPolicy\x12(.pb.FindEnabledHTTPFirewallPolicyRequest\x1a).pb.FindEnabledHTTPFirewallPolicyResponse\x12O\n" + "\x18importHTTPFirewallPolicy\x12#.pb.ImportHTTPFirewallPolicyRequest\x1a\x0e.pb.RPCSuccess\x12z\n" + "\x1fcheckHTTPFirewallPolicyIPStatus\x12*.pb.CheckHTTPFirewallPolicyIPStatusRequest\x1a+.pb.CheckHTTPFirewallPolicyIPStatusResponse\x12\x89\x01\n" + "$findServerIdWithHTTPFirewallPolicyId\x12/.pb.FindServerIdWithHTTPFirewallPolicyIdRequest\x1a0.pb.FindServerIdWithHTTPFirewallPolicyIdResponseB\x06Z\x04./pbb\x06proto3" var ( file_service_http_firewall_policy_proto_rawDescOnce sync.Once file_service_http_firewall_policy_proto_rawDescData []byte ) func file_service_http_firewall_policy_proto_rawDescGZIP() []byte { file_service_http_firewall_policy_proto_rawDescOnce.Do(func() { file_service_http_firewall_policy_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_http_firewall_policy_proto_rawDesc), len(file_service_http_firewall_policy_proto_rawDesc))) }) return file_service_http_firewall_policy_proto_rawDescData } var file_service_http_firewall_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 22) var file_service_http_firewall_policy_proto_goTypes = []any{ (*FindAllEnabledHTTPFirewallPoliciesRequest)(nil), // 0: pb.FindAllEnabledHTTPFirewallPoliciesRequest (*FindAllEnabledHTTPFirewallPoliciesResponse)(nil), // 1: pb.FindAllEnabledHTTPFirewallPoliciesResponse (*CreateHTTPFirewallPolicyRequest)(nil), // 2: pb.CreateHTTPFirewallPolicyRequest (*CreateHTTPFirewallPolicyResponse)(nil), // 3: pb.CreateHTTPFirewallPolicyResponse (*CreateEmptyHTTPFirewallPolicyRequest)(nil), // 4: pb.CreateEmptyHTTPFirewallPolicyRequest (*CreateEmptyHTTPFirewallPolicyResponse)(nil), // 5: pb.CreateEmptyHTTPFirewallPolicyResponse (*UpdateHTTPFirewallPolicyRequest)(nil), // 6: pb.UpdateHTTPFirewallPolicyRequest (*UpdateHTTPFirewallPolicyGroupsRequest)(nil), // 7: pb.UpdateHTTPFirewallPolicyGroupsRequest (*UpdateHTTPFirewallInboundConfigRequest)(nil), // 8: pb.UpdateHTTPFirewallInboundConfigRequest (*CountAllEnabledHTTPFirewallPoliciesRequest)(nil), // 9: pb.CountAllEnabledHTTPFirewallPoliciesRequest (*ListEnabledHTTPFirewallPoliciesRequest)(nil), // 10: pb.ListEnabledHTTPFirewallPoliciesRequest (*ListEnabledHTTPFirewallPoliciesResponse)(nil), // 11: pb.ListEnabledHTTPFirewallPoliciesResponse (*DeleteHTTPFirewallPolicyRequest)(nil), // 12: pb.DeleteHTTPFirewallPolicyRequest (*FindEnabledHTTPFirewallPolicyConfigRequest)(nil), // 13: pb.FindEnabledHTTPFirewallPolicyConfigRequest (*FindEnabledHTTPFirewallPolicyConfigResponse)(nil), // 14: pb.FindEnabledHTTPFirewallPolicyConfigResponse (*FindEnabledHTTPFirewallPolicyRequest)(nil), // 15: pb.FindEnabledHTTPFirewallPolicyRequest (*FindEnabledHTTPFirewallPolicyResponse)(nil), // 16: pb.FindEnabledHTTPFirewallPolicyResponse (*ImportHTTPFirewallPolicyRequest)(nil), // 17: pb.ImportHTTPFirewallPolicyRequest (*CheckHTTPFirewallPolicyIPStatusRequest)(nil), // 18: pb.CheckHTTPFirewallPolicyIPStatusRequest (*CheckHTTPFirewallPolicyIPStatusResponse)(nil), // 19: pb.CheckHTTPFirewallPolicyIPStatusResponse (*FindServerIdWithHTTPFirewallPolicyIdRequest)(nil), // 20: pb.FindServerIdWithHTTPFirewallPolicyIdRequest (*FindServerIdWithHTTPFirewallPolicyIdResponse)(nil), // 21: pb.FindServerIdWithHTTPFirewallPolicyIdResponse (*HTTPFirewallPolicy)(nil), // 22: pb.HTTPFirewallPolicy (*IPList)(nil), // 23: pb.IPList (*IPItem)(nil), // 24: pb.IPItem (*RegionCountry)(nil), // 25: pb.RegionCountry (*RegionProvince)(nil), // 26: pb.RegionProvince (*RPCSuccess)(nil), // 27: pb.RPCSuccess (*RPCCountResponse)(nil), // 28: pb.RPCCountResponse } var file_service_http_firewall_policy_proto_depIdxs = []int32{ 22, // 0: pb.FindAllEnabledHTTPFirewallPoliciesResponse.firewallPolicies:type_name -> pb.HTTPFirewallPolicy 22, // 1: pb.ListEnabledHTTPFirewallPoliciesResponse.httpFirewallPolicies:type_name -> pb.HTTPFirewallPolicy 22, // 2: pb.FindEnabledHTTPFirewallPolicyResponse.httpFirewallPolicy:type_name -> pb.HTTPFirewallPolicy 23, // 3: pb.CheckHTTPFirewallPolicyIPStatusResponse.ipList:type_name -> pb.IPList 24, // 4: pb.CheckHTTPFirewallPolicyIPStatusResponse.ipItem:type_name -> pb.IPItem 25, // 5: pb.CheckHTTPFirewallPolicyIPStatusResponse.regionCountry:type_name -> pb.RegionCountry 26, // 6: pb.CheckHTTPFirewallPolicyIPStatusResponse.regionProvince:type_name -> pb.RegionProvince 0, // 7: pb.HTTPFirewallPolicyService.findAllEnabledHTTPFirewallPolicies:input_type -> pb.FindAllEnabledHTTPFirewallPoliciesRequest 2, // 8: pb.HTTPFirewallPolicyService.createHTTPFirewallPolicy:input_type -> pb.CreateHTTPFirewallPolicyRequest 4, // 9: pb.HTTPFirewallPolicyService.createEmptyHTTPFirewallPolicy:input_type -> pb.CreateEmptyHTTPFirewallPolicyRequest 6, // 10: pb.HTTPFirewallPolicyService.updateHTTPFirewallPolicy:input_type -> pb.UpdateHTTPFirewallPolicyRequest 7, // 11: pb.HTTPFirewallPolicyService.updateHTTPFirewallPolicyGroups:input_type -> pb.UpdateHTTPFirewallPolicyGroupsRequest 8, // 12: pb.HTTPFirewallPolicyService.updateHTTPFirewallInboundConfig:input_type -> pb.UpdateHTTPFirewallInboundConfigRequest 9, // 13: pb.HTTPFirewallPolicyService.countAllEnabledHTTPFirewallPolicies:input_type -> pb.CountAllEnabledHTTPFirewallPoliciesRequest 10, // 14: pb.HTTPFirewallPolicyService.listEnabledHTTPFirewallPolicies:input_type -> pb.ListEnabledHTTPFirewallPoliciesRequest 12, // 15: pb.HTTPFirewallPolicyService.deleteHTTPFirewallPolicy:input_type -> pb.DeleteHTTPFirewallPolicyRequest 13, // 16: pb.HTTPFirewallPolicyService.findEnabledHTTPFirewallPolicyConfig:input_type -> pb.FindEnabledHTTPFirewallPolicyConfigRequest 15, // 17: pb.HTTPFirewallPolicyService.findEnabledHTTPFirewallPolicy:input_type -> pb.FindEnabledHTTPFirewallPolicyRequest 17, // 18: pb.HTTPFirewallPolicyService.importHTTPFirewallPolicy:input_type -> pb.ImportHTTPFirewallPolicyRequest 18, // 19: pb.HTTPFirewallPolicyService.checkHTTPFirewallPolicyIPStatus:input_type -> pb.CheckHTTPFirewallPolicyIPStatusRequest 20, // 20: pb.HTTPFirewallPolicyService.findServerIdWithHTTPFirewallPolicyId:input_type -> pb.FindServerIdWithHTTPFirewallPolicyIdRequest 1, // 21: pb.HTTPFirewallPolicyService.findAllEnabledHTTPFirewallPolicies:output_type -> pb.FindAllEnabledHTTPFirewallPoliciesResponse 3, // 22: pb.HTTPFirewallPolicyService.createHTTPFirewallPolicy:output_type -> pb.CreateHTTPFirewallPolicyResponse 5, // 23: pb.HTTPFirewallPolicyService.createEmptyHTTPFirewallPolicy:output_type -> pb.CreateEmptyHTTPFirewallPolicyResponse 27, // 24: pb.HTTPFirewallPolicyService.updateHTTPFirewallPolicy:output_type -> pb.RPCSuccess 27, // 25: pb.HTTPFirewallPolicyService.updateHTTPFirewallPolicyGroups:output_type -> pb.RPCSuccess 27, // 26: pb.HTTPFirewallPolicyService.updateHTTPFirewallInboundConfig:output_type -> pb.RPCSuccess 28, // 27: pb.HTTPFirewallPolicyService.countAllEnabledHTTPFirewallPolicies:output_type -> pb.RPCCountResponse 11, // 28: pb.HTTPFirewallPolicyService.listEnabledHTTPFirewallPolicies:output_type -> pb.ListEnabledHTTPFirewallPoliciesResponse 27, // 29: pb.HTTPFirewallPolicyService.deleteHTTPFirewallPolicy:output_type -> pb.RPCSuccess 14, // 30: pb.HTTPFirewallPolicyService.findEnabledHTTPFirewallPolicyConfig:output_type -> pb.FindEnabledHTTPFirewallPolicyConfigResponse 16, // 31: pb.HTTPFirewallPolicyService.findEnabledHTTPFirewallPolicy:output_type -> pb.FindEnabledHTTPFirewallPolicyResponse 27, // 32: pb.HTTPFirewallPolicyService.importHTTPFirewallPolicy:output_type -> pb.RPCSuccess 19, // 33: pb.HTTPFirewallPolicyService.checkHTTPFirewallPolicyIPStatus:output_type -> pb.CheckHTTPFirewallPolicyIPStatusResponse 21, // 34: pb.HTTPFirewallPolicyService.findServerIdWithHTTPFirewallPolicyId:output_type -> pb.FindServerIdWithHTTPFirewallPolicyIdResponse 21, // [21:35] is the sub-list for method output_type 7, // [7:21] is the sub-list for method input_type 7, // [7:7] is the sub-list for extension type_name 7, // [7:7] is the sub-list for extension extendee 0, // [0:7] is the sub-list for field type_name } func init() { file_service_http_firewall_policy_proto_init() } func file_service_http_firewall_policy_proto_init() { if File_service_http_firewall_policy_proto != nil { return } file_models_model_http_firewall_policy_proto_init() file_models_model_ip_list_proto_init() file_models_model_ip_item_proto_init() file_models_model_region_country_proto_init() file_models_model_region_province_proto_init() file_models_rpc_messages_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_http_firewall_policy_proto_rawDesc), len(file_service_http_firewall_policy_proto_rawDesc)), NumEnums: 0, NumMessages: 22, NumExtensions: 0, NumServices: 1, }, GoTypes: file_service_http_firewall_policy_proto_goTypes, DependencyIndexes: file_service_http_firewall_policy_proto_depIdxs, MessageInfos: file_service_http_firewall_policy_proto_msgTypes, }.Build() File_service_http_firewall_policy_proto = out.File file_service_http_firewall_policy_proto_goTypes = nil file_service_http_firewall_policy_proto_depIdxs = nil }