347 lines
10 KiB
Go
347 lines
10 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.19.6
|
|
// 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"
|
|
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 HTTPDNSRuleRecord struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
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"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
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 `protogen:"open.v1"`
|
|
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"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
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
|
|
|
|
const file_models_model_httpdns_rule_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1fmodels/model_httpdns_rule.proto\x12\x02pb\"\xa9\x01\n" +
|
|
"\x11HTTPDNSRuleRecord\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" +
|
|
"\x06ruleId\x18\x02 \x01(\x03R\x06ruleId\x12\x1e\n" +
|
|
"\n" +
|
|
"recordType\x18\x03 \x01(\tR\n" +
|
|
"recordType\x12 \n" +
|
|
"\vrecordValue\x18\x04 \x01(\tR\vrecordValue\x12\x16\n" +
|
|
"\x06weight\x18\x05 \x01(\x05R\x06weight\x12\x12\n" +
|
|
"\x04sort\x18\x06 \x01(\x05R\x04sort\"\xce\x03\n" +
|
|
"\x11HTTPDNSCustomRule\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x14\n" +
|
|
"\x05appId\x18\x02 \x01(\x03R\x05appId\x12\x1a\n" +
|
|
"\bdomainId\x18\x03 \x01(\x03R\bdomainId\x12\x1a\n" +
|
|
"\bruleName\x18\x04 \x01(\tR\bruleName\x12\x1c\n" +
|
|
"\tlineScope\x18\x05 \x01(\tR\tlineScope\x12 \n" +
|
|
"\vlineCarrier\x18\x06 \x01(\tR\vlineCarrier\x12\x1e\n" +
|
|
"\n" +
|
|
"lineRegion\x18\a \x01(\tR\n" +
|
|
"lineRegion\x12\"\n" +
|
|
"\flineProvince\x18\b \x01(\tR\flineProvince\x12$\n" +
|
|
"\rlineContinent\x18\t \x01(\tR\rlineContinent\x12 \n" +
|
|
"\vlineCountry\x18\n" +
|
|
" \x01(\tR\vlineCountry\x12\x10\n" +
|
|
"\x03ttl\x18\v \x01(\x05R\x03ttl\x12\x12\n" +
|
|
"\x04isOn\x18\f \x01(\bR\x04isOn\x12\x1a\n" +
|
|
"\bpriority\x18\r \x01(\x05R\bpriority\x12\x1c\n" +
|
|
"\tupdatedAt\x18\x0e \x01(\x03R\tupdatedAt\x12/\n" +
|
|
"\arecords\x18\x0f \x03(\v2\x15.pb.HTTPDNSRuleRecordR\arecordsB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_models_model_httpdns_rule_proto_rawDescOnce sync.Once
|
|
file_models_model_httpdns_rule_proto_rawDescData []byte
|
|
)
|
|
|
|
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(unsafe.Slice(unsafe.StringData(file_models_model_httpdns_rule_proto_rawDesc), len(file_models_model_httpdns_rule_proto_rawDesc)))
|
|
})
|
|
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: unsafe.Slice(unsafe.StringData(file_models_model_httpdns_rule_proto_rawDesc), len(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_goTypes = nil
|
|
file_models_model_httpdns_rule_proto_depIdxs = nil
|
|
}
|