Files
waf-platform/EdgeCommon/pkg/rpc/pb/service_httpdns_rule.pb.go
2026-03-22 17:37:40 +08:00

437 lines
16 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v3.19.6
// source: service_httpdns_rule.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 CreateHTTPDNSCustomRuleRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Rule *HTTPDNSCustomRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateHTTPDNSCustomRuleRequest) Reset() {
*x = CreateHTTPDNSCustomRuleRequest{}
mi := &file_service_httpdns_rule_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateHTTPDNSCustomRuleRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateHTTPDNSCustomRuleRequest) ProtoMessage() {}
func (x *CreateHTTPDNSCustomRuleRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_httpdns_rule_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 CreateHTTPDNSCustomRuleRequest.ProtoReflect.Descriptor instead.
func (*CreateHTTPDNSCustomRuleRequest) Descriptor() ([]byte, []int) {
return file_service_httpdns_rule_proto_rawDescGZIP(), []int{0}
}
func (x *CreateHTTPDNSCustomRuleRequest) GetRule() *HTTPDNSCustomRule {
if x != nil {
return x.Rule
}
return nil
}
type CreateHTTPDNSCustomRuleResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
RuleId int64 `protobuf:"varint,1,opt,name=ruleId,proto3" json:"ruleId,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateHTTPDNSCustomRuleResponse) Reset() {
*x = CreateHTTPDNSCustomRuleResponse{}
mi := &file_service_httpdns_rule_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateHTTPDNSCustomRuleResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateHTTPDNSCustomRuleResponse) ProtoMessage() {}
func (x *CreateHTTPDNSCustomRuleResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_httpdns_rule_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 CreateHTTPDNSCustomRuleResponse.ProtoReflect.Descriptor instead.
func (*CreateHTTPDNSCustomRuleResponse) Descriptor() ([]byte, []int) {
return file_service_httpdns_rule_proto_rawDescGZIP(), []int{1}
}
func (x *CreateHTTPDNSCustomRuleResponse) GetRuleId() int64 {
if x != nil {
return x.RuleId
}
return 0
}
type UpdateHTTPDNSCustomRuleRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Rule *HTTPDNSCustomRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateHTTPDNSCustomRuleRequest) Reset() {
*x = UpdateHTTPDNSCustomRuleRequest{}
mi := &file_service_httpdns_rule_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateHTTPDNSCustomRuleRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateHTTPDNSCustomRuleRequest) ProtoMessage() {}
func (x *UpdateHTTPDNSCustomRuleRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_httpdns_rule_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 UpdateHTTPDNSCustomRuleRequest.ProtoReflect.Descriptor instead.
func (*UpdateHTTPDNSCustomRuleRequest) Descriptor() ([]byte, []int) {
return file_service_httpdns_rule_proto_rawDescGZIP(), []int{2}
}
func (x *UpdateHTTPDNSCustomRuleRequest) GetRule() *HTTPDNSCustomRule {
if x != nil {
return x.Rule
}
return nil
}
type DeleteHTTPDNSCustomRuleRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
RuleId int64 `protobuf:"varint,1,opt,name=ruleId,proto3" json:"ruleId,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeleteHTTPDNSCustomRuleRequest) Reset() {
*x = DeleteHTTPDNSCustomRuleRequest{}
mi := &file_service_httpdns_rule_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteHTTPDNSCustomRuleRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteHTTPDNSCustomRuleRequest) ProtoMessage() {}
func (x *DeleteHTTPDNSCustomRuleRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_httpdns_rule_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 DeleteHTTPDNSCustomRuleRequest.ProtoReflect.Descriptor instead.
func (*DeleteHTTPDNSCustomRuleRequest) Descriptor() ([]byte, []int) {
return file_service_httpdns_rule_proto_rawDescGZIP(), []int{3}
}
func (x *DeleteHTTPDNSCustomRuleRequest) GetRuleId() int64 {
if x != nil {
return x.RuleId
}
return 0
}
type UpdateHTTPDNSCustomRuleStatusRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
RuleId int64 `protobuf:"varint,1,opt,name=ruleId,proto3" json:"ruleId,omitempty"`
IsOn bool `protobuf:"varint,2,opt,name=isOn,proto3" json:"isOn,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateHTTPDNSCustomRuleStatusRequest) Reset() {
*x = UpdateHTTPDNSCustomRuleStatusRequest{}
mi := &file_service_httpdns_rule_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateHTTPDNSCustomRuleStatusRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateHTTPDNSCustomRuleStatusRequest) ProtoMessage() {}
func (x *UpdateHTTPDNSCustomRuleStatusRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_httpdns_rule_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 UpdateHTTPDNSCustomRuleStatusRequest.ProtoReflect.Descriptor instead.
func (*UpdateHTTPDNSCustomRuleStatusRequest) Descriptor() ([]byte, []int) {
return file_service_httpdns_rule_proto_rawDescGZIP(), []int{4}
}
func (x *UpdateHTTPDNSCustomRuleStatusRequest) GetRuleId() int64 {
if x != nil {
return x.RuleId
}
return 0
}
func (x *UpdateHTTPDNSCustomRuleStatusRequest) GetIsOn() bool {
if x != nil {
return x.IsOn
}
return false
}
type ListHTTPDNSCustomRulesWithDomainIdRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
DomainId int64 `protobuf:"varint,1,opt,name=domainId,proto3" json:"domainId,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListHTTPDNSCustomRulesWithDomainIdRequest) Reset() {
*x = ListHTTPDNSCustomRulesWithDomainIdRequest{}
mi := &file_service_httpdns_rule_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListHTTPDNSCustomRulesWithDomainIdRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListHTTPDNSCustomRulesWithDomainIdRequest) ProtoMessage() {}
func (x *ListHTTPDNSCustomRulesWithDomainIdRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_httpdns_rule_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 ListHTTPDNSCustomRulesWithDomainIdRequest.ProtoReflect.Descriptor instead.
func (*ListHTTPDNSCustomRulesWithDomainIdRequest) Descriptor() ([]byte, []int) {
return file_service_httpdns_rule_proto_rawDescGZIP(), []int{5}
}
func (x *ListHTTPDNSCustomRulesWithDomainIdRequest) GetDomainId() int64 {
if x != nil {
return x.DomainId
}
return 0
}
type ListHTTPDNSCustomRulesWithDomainIdResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Rules []*HTTPDNSCustomRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListHTTPDNSCustomRulesWithDomainIdResponse) Reset() {
*x = ListHTTPDNSCustomRulesWithDomainIdResponse{}
mi := &file_service_httpdns_rule_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListHTTPDNSCustomRulesWithDomainIdResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListHTTPDNSCustomRulesWithDomainIdResponse) ProtoMessage() {}
func (x *ListHTTPDNSCustomRulesWithDomainIdResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_httpdns_rule_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 ListHTTPDNSCustomRulesWithDomainIdResponse.ProtoReflect.Descriptor instead.
func (*ListHTTPDNSCustomRulesWithDomainIdResponse) Descriptor() ([]byte, []int) {
return file_service_httpdns_rule_proto_rawDescGZIP(), []int{6}
}
func (x *ListHTTPDNSCustomRulesWithDomainIdResponse) GetRules() []*HTTPDNSCustomRule {
if x != nil {
return x.Rules
}
return nil
}
var File_service_httpdns_rule_proto protoreflect.FileDescriptor
const file_service_httpdns_rule_proto_rawDesc = "" +
"\n" +
"\x1aservice_httpdns_rule.proto\x12\x02pb\x1a\x1fmodels/model_httpdns_rule.proto\x1a\x19models/rpc_messages.proto\"K\n" +
"\x1eCreateHTTPDNSCustomRuleRequest\x12)\n" +
"\x04rule\x18\x01 \x01(\v2\x15.pb.HTTPDNSCustomRuleR\x04rule\"9\n" +
"\x1fCreateHTTPDNSCustomRuleResponse\x12\x16\n" +
"\x06ruleId\x18\x01 \x01(\x03R\x06ruleId\"K\n" +
"\x1eUpdateHTTPDNSCustomRuleRequest\x12)\n" +
"\x04rule\x18\x01 \x01(\v2\x15.pb.HTTPDNSCustomRuleR\x04rule\"8\n" +
"\x1eDeleteHTTPDNSCustomRuleRequest\x12\x16\n" +
"\x06ruleId\x18\x01 \x01(\x03R\x06ruleId\"R\n" +
"$UpdateHTTPDNSCustomRuleStatusRequest\x12\x16\n" +
"\x06ruleId\x18\x01 \x01(\x03R\x06ruleId\x12\x12\n" +
"\x04isOn\x18\x02 \x01(\bR\x04isOn\"G\n" +
")ListHTTPDNSCustomRulesWithDomainIdRequest\x12\x1a\n" +
"\bdomainId\x18\x01 \x01(\x03R\bdomainId\"Y\n" +
"*ListHTTPDNSCustomRulesWithDomainIdResponse\x12+\n" +
"\x05rules\x18\x01 \x03(\v2\x15.pb.HTTPDNSCustomRuleR\x05rules2\xf7\x03\n" +
"\x12HTTPDNSRuleService\x12b\n" +
"\x17createHTTPDNSCustomRule\x12\".pb.CreateHTTPDNSCustomRuleRequest\x1a#.pb.CreateHTTPDNSCustomRuleResponse\x12M\n" +
"\x17updateHTTPDNSCustomRule\x12\".pb.UpdateHTTPDNSCustomRuleRequest\x1a\x0e.pb.RPCSuccess\x12M\n" +
"\x17deleteHTTPDNSCustomRule\x12\".pb.DeleteHTTPDNSCustomRuleRequest\x1a\x0e.pb.RPCSuccess\x12Y\n" +
"\x1dupdateHTTPDNSCustomRuleStatus\x12(.pb.UpdateHTTPDNSCustomRuleStatusRequest\x1a\x0e.pb.RPCSuccess\x12\x83\x01\n" +
"\"listHTTPDNSCustomRulesWithDomainId\x12-.pb.ListHTTPDNSCustomRulesWithDomainIdRequest\x1a..pb.ListHTTPDNSCustomRulesWithDomainIdResponseB\x06Z\x04./pbb\x06proto3"
var (
file_service_httpdns_rule_proto_rawDescOnce sync.Once
file_service_httpdns_rule_proto_rawDescData []byte
)
func file_service_httpdns_rule_proto_rawDescGZIP() []byte {
file_service_httpdns_rule_proto_rawDescOnce.Do(func() {
file_service_httpdns_rule_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_httpdns_rule_proto_rawDesc), len(file_service_httpdns_rule_proto_rawDesc)))
})
return file_service_httpdns_rule_proto_rawDescData
}
var file_service_httpdns_rule_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_service_httpdns_rule_proto_goTypes = []any{
(*CreateHTTPDNSCustomRuleRequest)(nil), // 0: pb.CreateHTTPDNSCustomRuleRequest
(*CreateHTTPDNSCustomRuleResponse)(nil), // 1: pb.CreateHTTPDNSCustomRuleResponse
(*UpdateHTTPDNSCustomRuleRequest)(nil), // 2: pb.UpdateHTTPDNSCustomRuleRequest
(*DeleteHTTPDNSCustomRuleRequest)(nil), // 3: pb.DeleteHTTPDNSCustomRuleRequest
(*UpdateHTTPDNSCustomRuleStatusRequest)(nil), // 4: pb.UpdateHTTPDNSCustomRuleStatusRequest
(*ListHTTPDNSCustomRulesWithDomainIdRequest)(nil), // 5: pb.ListHTTPDNSCustomRulesWithDomainIdRequest
(*ListHTTPDNSCustomRulesWithDomainIdResponse)(nil), // 6: pb.ListHTTPDNSCustomRulesWithDomainIdResponse
(*HTTPDNSCustomRule)(nil), // 7: pb.HTTPDNSCustomRule
(*RPCSuccess)(nil), // 8: pb.RPCSuccess
}
var file_service_httpdns_rule_proto_depIdxs = []int32{
7, // 0: pb.CreateHTTPDNSCustomRuleRequest.rule:type_name -> pb.HTTPDNSCustomRule
7, // 1: pb.UpdateHTTPDNSCustomRuleRequest.rule:type_name -> pb.HTTPDNSCustomRule
7, // 2: pb.ListHTTPDNSCustomRulesWithDomainIdResponse.rules:type_name -> pb.HTTPDNSCustomRule
0, // 3: pb.HTTPDNSRuleService.createHTTPDNSCustomRule:input_type -> pb.CreateHTTPDNSCustomRuleRequest
2, // 4: pb.HTTPDNSRuleService.updateHTTPDNSCustomRule:input_type -> pb.UpdateHTTPDNSCustomRuleRequest
3, // 5: pb.HTTPDNSRuleService.deleteHTTPDNSCustomRule:input_type -> pb.DeleteHTTPDNSCustomRuleRequest
4, // 6: pb.HTTPDNSRuleService.updateHTTPDNSCustomRuleStatus:input_type -> pb.UpdateHTTPDNSCustomRuleStatusRequest
5, // 7: pb.HTTPDNSRuleService.listHTTPDNSCustomRulesWithDomainId:input_type -> pb.ListHTTPDNSCustomRulesWithDomainIdRequest
1, // 8: pb.HTTPDNSRuleService.createHTTPDNSCustomRule:output_type -> pb.CreateHTTPDNSCustomRuleResponse
8, // 9: pb.HTTPDNSRuleService.updateHTTPDNSCustomRule:output_type -> pb.RPCSuccess
8, // 10: pb.HTTPDNSRuleService.deleteHTTPDNSCustomRule:output_type -> pb.RPCSuccess
8, // 11: pb.HTTPDNSRuleService.updateHTTPDNSCustomRuleStatus:output_type -> pb.RPCSuccess
6, // 12: pb.HTTPDNSRuleService.listHTTPDNSCustomRulesWithDomainId:output_type -> pb.ListHTTPDNSCustomRulesWithDomainIdResponse
8, // [8:13] is the sub-list for method output_type
3, // [3:8] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_service_httpdns_rule_proto_init() }
func file_service_httpdns_rule_proto_init() {
if File_service_httpdns_rule_proto != nil {
return
}
file_models_model_httpdns_rule_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_httpdns_rule_proto_rawDesc), len(file_service_httpdns_rule_proto_rawDesc)),
NumEnums: 0,
NumMessages: 7,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_service_httpdns_rule_proto_goTypes,
DependencyIndexes: file_service_httpdns_rule_proto_depIdxs,
MessageInfos: file_service_httpdns_rule_proto_msgTypes,
}.Build()
File_service_httpdns_rule_proto = out.File
file_service_httpdns_rule_proto_goTypes = nil
file_service_httpdns_rule_proto_depIdxs = nil
}