364 lines
13 KiB
Go
364 lines
13 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.35.1
|
|
// protoc v3.21.12
|
|
// source: models/model_httpdns_rule.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
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 HTTPDNSRuleRecord struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
RuleId int64 `protobuf:"varint,2,opt,name=ruleId,proto3" json:"ruleId,omitempty"`
|
|
RecordType string `protobuf:"bytes,3,opt,name=recordType,proto3" json:"recordType,omitempty"`
|
|
RecordValue string `protobuf:"bytes,4,opt,name=recordValue,proto3" json:"recordValue,omitempty"`
|
|
Weight int32 `protobuf:"varint,5,opt,name=weight,proto3" json:"weight,omitempty"`
|
|
Sort int32 `protobuf:"varint,6,opt,name=sort,proto3" json:"sort,omitempty"`
|
|
}
|
|
|
|
func (x *HTTPDNSRuleRecord) Reset() {
|
|
*x = HTTPDNSRuleRecord{}
|
|
mi := &file_models_model_httpdns_rule_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *HTTPDNSRuleRecord) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HTTPDNSRuleRecord) ProtoMessage() {}
|
|
|
|
func (x *HTTPDNSRuleRecord) ProtoReflect() protoreflect.Message {
|
|
mi := &file_models_model_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 HTTPDNSRuleRecord.ProtoReflect.Descriptor instead.
|
|
func (*HTTPDNSRuleRecord) Descriptor() ([]byte, []int) {
|
|
return file_models_model_httpdns_rule_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *HTTPDNSRuleRecord) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HTTPDNSRuleRecord) GetRuleId() int64 {
|
|
if x != nil {
|
|
return x.RuleId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HTTPDNSRuleRecord) GetRecordType() string {
|
|
if x != nil {
|
|
return x.RecordType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *HTTPDNSRuleRecord) GetRecordValue() string {
|
|
if x != nil {
|
|
return x.RecordValue
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *HTTPDNSRuleRecord) GetWeight() int32 {
|
|
if x != nil {
|
|
return x.Weight
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HTTPDNSRuleRecord) GetSort() int32 {
|
|
if x != nil {
|
|
return x.Sort
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HTTPDNSCustomRule struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
AppId int64 `protobuf:"varint,2,opt,name=appId,proto3" json:"appId,omitempty"`
|
|
DomainId int64 `protobuf:"varint,3,opt,name=domainId,proto3" json:"domainId,omitempty"`
|
|
RuleName string `protobuf:"bytes,4,opt,name=ruleName,proto3" json:"ruleName,omitempty"`
|
|
LineScope string `protobuf:"bytes,5,opt,name=lineScope,proto3" json:"lineScope,omitempty"`
|
|
LineCarrier string `protobuf:"bytes,6,opt,name=lineCarrier,proto3" json:"lineCarrier,omitempty"`
|
|
LineRegion string `protobuf:"bytes,7,opt,name=lineRegion,proto3" json:"lineRegion,omitempty"`
|
|
LineProvince string `protobuf:"bytes,8,opt,name=lineProvince,proto3" json:"lineProvince,omitempty"`
|
|
LineContinent string `protobuf:"bytes,9,opt,name=lineContinent,proto3" json:"lineContinent,omitempty"`
|
|
LineCountry string `protobuf:"bytes,10,opt,name=lineCountry,proto3" json:"lineCountry,omitempty"`
|
|
Ttl int32 `protobuf:"varint,11,opt,name=ttl,proto3" json:"ttl,omitempty"`
|
|
IsOn bool `protobuf:"varint,12,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
|
Priority int32 `protobuf:"varint,13,opt,name=priority,proto3" json:"priority,omitempty"`
|
|
UpdatedAt int64 `protobuf:"varint,14,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
|
|
Records []*HTTPDNSRuleRecord `protobuf:"bytes,15,rep,name=records,proto3" json:"records,omitempty"`
|
|
}
|
|
|
|
func (x *HTTPDNSCustomRule) Reset() {
|
|
*x = HTTPDNSCustomRule{}
|
|
mi := &file_models_model_httpdns_rule_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *HTTPDNSCustomRule) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HTTPDNSCustomRule) ProtoMessage() {}
|
|
|
|
func (x *HTTPDNSCustomRule) ProtoReflect() protoreflect.Message {
|
|
mi := &file_models_model_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 HTTPDNSCustomRule.ProtoReflect.Descriptor instead.
|
|
func (*HTTPDNSCustomRule) Descriptor() ([]byte, []int) {
|
|
return file_models_model_httpdns_rule_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *HTTPDNSCustomRule) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HTTPDNSCustomRule) GetAppId() int64 {
|
|
if x != nil {
|
|
return x.AppId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HTTPDNSCustomRule) GetDomainId() int64 {
|
|
if x != nil {
|
|
return x.DomainId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HTTPDNSCustomRule) GetRuleName() string {
|
|
if x != nil {
|
|
return x.RuleName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *HTTPDNSCustomRule) GetLineScope() string {
|
|
if x != nil {
|
|
return x.LineScope
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *HTTPDNSCustomRule) GetLineCarrier() string {
|
|
if x != nil {
|
|
return x.LineCarrier
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *HTTPDNSCustomRule) GetLineRegion() string {
|
|
if x != nil {
|
|
return x.LineRegion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *HTTPDNSCustomRule) GetLineProvince() string {
|
|
if x != nil {
|
|
return x.LineProvince
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *HTTPDNSCustomRule) GetLineContinent() string {
|
|
if x != nil {
|
|
return x.LineContinent
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *HTTPDNSCustomRule) GetLineCountry() string {
|
|
if x != nil {
|
|
return x.LineCountry
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *HTTPDNSCustomRule) GetTtl() int32 {
|
|
if x != nil {
|
|
return x.Ttl
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HTTPDNSCustomRule) GetIsOn() bool {
|
|
if x != nil {
|
|
return x.IsOn
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *HTTPDNSCustomRule) GetPriority() int32 {
|
|
if x != nil {
|
|
return x.Priority
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HTTPDNSCustomRule) GetUpdatedAt() int64 {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HTTPDNSCustomRule) GetRecords() []*HTTPDNSRuleRecord {
|
|
if x != nil {
|
|
return x.Records
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_models_model_httpdns_rule_proto protoreflect.FileDescriptor
|
|
|
|
var file_models_model_httpdns_rule_proto_rawDesc = []byte{
|
|
0x0a, 0x1f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x68,
|
|
0x74, 0x74, 0x70, 0x64, 0x6e, 0x73, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xa9, 0x01, 0x0a, 0x11, 0x48, 0x54, 0x54, 0x50, 0x44, 0x4e,
|
|
0x53, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69,
|
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72,
|
|
0x75, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x75, 0x6c,
|
|
0x65, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70,
|
|
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54,
|
|
0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x56, 0x61, 0x6c,
|
|
0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64,
|
|
0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18,
|
|
0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x12, 0x0a,
|
|
0x04, 0x73, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x6f, 0x72,
|
|
0x74, 0x22, 0xce, 0x03, 0x0a, 0x11, 0x48, 0x54, 0x54, 0x50, 0x44, 0x4e, 0x53, 0x43, 0x75, 0x73,
|
|
0x74, 0x6f, 0x6d, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
|
|
0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64,
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x1a, 0x0a,
|
|
0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x75, 0x6c,
|
|
0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x75, 0x6c,
|
|
0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x63, 0x6f,
|
|
0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x63,
|
|
0x6f, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x61, 0x72, 0x72, 0x69,
|
|
0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x61,
|
|
0x72, 0x72, 0x69, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x67,
|
|
0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x69, 0x6e, 0x65, 0x52,
|
|
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x72, 0x6f,
|
|
0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x69, 0x6e,
|
|
0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6c, 0x69, 0x6e,
|
|
0x65, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09,
|
|
0x52, 0x0d, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x65, 0x6e, 0x74, 0x12,
|
|
0x20, 0x0a, 0x0b, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x0a,
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72,
|
|
0x79, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x74, 0x6c, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03,
|
|
0x74, 0x74, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28,
|
|
0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72,
|
|
0x69, 0x74, 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72,
|
|
0x69, 0x74, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74,
|
|
0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41,
|
|
0x74, 0x12, 0x2f, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x0f, 0x20, 0x03,
|
|
0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x44, 0x4e, 0x53, 0x52,
|
|
0x75, 0x6c, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72,
|
|
0x64, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
|
0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_models_model_httpdns_rule_proto_rawDescOnce sync.Once
|
|
file_models_model_httpdns_rule_proto_rawDescData = file_models_model_httpdns_rule_proto_rawDesc
|
|
)
|
|
|
|
func file_models_model_httpdns_rule_proto_rawDescGZIP() []byte {
|
|
file_models_model_httpdns_rule_proto_rawDescOnce.Do(func() {
|
|
file_models_model_httpdns_rule_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_httpdns_rule_proto_rawDescData)
|
|
})
|
|
return file_models_model_httpdns_rule_proto_rawDescData
|
|
}
|
|
|
|
var file_models_model_httpdns_rule_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_models_model_httpdns_rule_proto_goTypes = []any{
|
|
(*HTTPDNSRuleRecord)(nil), // 0: pb.HTTPDNSRuleRecord
|
|
(*HTTPDNSCustomRule)(nil), // 1: pb.HTTPDNSCustomRule
|
|
}
|
|
var file_models_model_httpdns_rule_proto_depIdxs = []int32{
|
|
0, // 0: pb.HTTPDNSCustomRule.records:type_name -> pb.HTTPDNSRuleRecord
|
|
1, // [1:1] is the sub-list for method output_type
|
|
1, // [1:1] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_models_model_httpdns_rule_proto_init() }
|
|
func file_models_model_httpdns_rule_proto_init() {
|
|
if File_models_model_httpdns_rule_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_models_model_httpdns_rule_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_models_model_httpdns_rule_proto_goTypes,
|
|
DependencyIndexes: file_models_model_httpdns_rule_proto_depIdxs,
|
|
MessageInfos: file_models_model_httpdns_rule_proto_msgTypes,
|
|
}.Build()
|
|
File_models_model_httpdns_rule_proto = out.File
|
|
file_models_model_httpdns_rule_proto_rawDesc = nil
|
|
file_models_model_httpdns_rule_proto_goTypes = nil
|
|
file_models_model_httpdns_rule_proto_depIdxs = nil
|
|
}
|