go.ligato.io/vpp-agent/v3@v3.5.0/proto/ligato/vpp/dns/dns.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.17.3 5 // source: ligato/vpp/dns/dns.proto 6 7 package vpp_dns 8 9 import ( 10 _ "go.ligato.io/vpp-agent/v3/proto/ligato" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 // DNSCache configuration models VPP's DNS cache server functionality. The main goal of this functionality is 25 //to cache DNS records and minimize external DNS traffic. 26 //The presence of this configuration enables the VPP DNS functionality and VPP start to acts as DNS cache Server. 27 //It responds on standard DNS port(53) to DNS requests. Removing of this configuration disables the VPP DNS 28 //functionality. 29 type DNSCache struct { 30 state protoimpl.MessageState 31 sizeCache protoimpl.SizeCache 32 unknownFields protoimpl.UnknownFields 33 34 // List of upstream DNS servers that are contacted by VPP when unknown domain name needs to be resolved. 35 //The results are cached and there should be no further upstream DNS server request for the same domain 36 //name until cached DNS record expiration. 37 UpstreamDnsServers []string `protobuf:"bytes,1,rep,name=upstream_dns_servers,json=upstreamDnsServers,proto3" json:"upstream_dns_servers,omitempty"` 38 } 39 40 func (x *DNSCache) Reset() { 41 *x = DNSCache{} 42 if protoimpl.UnsafeEnabled { 43 mi := &file_ligato_vpp_dns_dns_proto_msgTypes[0] 44 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 45 ms.StoreMessageInfo(mi) 46 } 47 } 48 49 func (x *DNSCache) String() string { 50 return protoimpl.X.MessageStringOf(x) 51 } 52 53 func (*DNSCache) ProtoMessage() {} 54 55 func (x *DNSCache) ProtoReflect() protoreflect.Message { 56 mi := &file_ligato_vpp_dns_dns_proto_msgTypes[0] 57 if protoimpl.UnsafeEnabled && x != nil { 58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 59 if ms.LoadMessageInfo() == nil { 60 ms.StoreMessageInfo(mi) 61 } 62 return ms 63 } 64 return mi.MessageOf(x) 65 } 66 67 // Deprecated: Use DNSCache.ProtoReflect.Descriptor instead. 68 func (*DNSCache) Descriptor() ([]byte, []int) { 69 return file_ligato_vpp_dns_dns_proto_rawDescGZIP(), []int{0} 70 } 71 72 func (x *DNSCache) GetUpstreamDnsServers() []string { 73 if x != nil { 74 return x.UpstreamDnsServers 75 } 76 return nil 77 } 78 79 var File_ligato_vpp_dns_dns_proto protoreflect.FileDescriptor 80 81 var file_ligato_vpp_dns_dns_proto_rawDesc = []byte{ 82 0x0a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 83 0x2f, 0x64, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6c, 0x69, 0x67, 0x61, 84 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x1a, 0x18, 0x6c, 0x69, 0x67, 0x61, 85 0x74, 0x6f, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 86 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x43, 0x0a, 0x08, 0x44, 0x4e, 0x53, 0x43, 0x61, 0x63, 0x68, 0x65, 87 0x12, 0x37, 0x0a, 0x14, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x64, 0x6e, 0x73, 88 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x05, 89 0x82, 0x7d, 0x02, 0x08, 0x01, 0x52, 0x12, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x44, 90 0x6e, 0x73, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x6f, 0x2e, 91 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 92 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 93 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0x3b, 0x76, 0x70, 0x70, 0x5f, 94 0x64, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 95 } 96 97 var ( 98 file_ligato_vpp_dns_dns_proto_rawDescOnce sync.Once 99 file_ligato_vpp_dns_dns_proto_rawDescData = file_ligato_vpp_dns_dns_proto_rawDesc 100 ) 101 102 func file_ligato_vpp_dns_dns_proto_rawDescGZIP() []byte { 103 file_ligato_vpp_dns_dns_proto_rawDescOnce.Do(func() { 104 file_ligato_vpp_dns_dns_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_dns_dns_proto_rawDescData) 105 }) 106 return file_ligato_vpp_dns_dns_proto_rawDescData 107 } 108 109 var file_ligato_vpp_dns_dns_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 110 var file_ligato_vpp_dns_dns_proto_goTypes = []interface{}{ 111 (*DNSCache)(nil), // 0: ligato.vpp.dns.DNSCache 112 } 113 var file_ligato_vpp_dns_dns_proto_depIdxs = []int32{ 114 0, // [0:0] is the sub-list for method output_type 115 0, // [0:0] is the sub-list for method input_type 116 0, // [0:0] is the sub-list for extension type_name 117 0, // [0:0] is the sub-list for extension extendee 118 0, // [0:0] is the sub-list for field type_name 119 } 120 121 func init() { file_ligato_vpp_dns_dns_proto_init() } 122 func file_ligato_vpp_dns_dns_proto_init() { 123 if File_ligato_vpp_dns_dns_proto != nil { 124 return 125 } 126 if !protoimpl.UnsafeEnabled { 127 file_ligato_vpp_dns_dns_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 128 switch v := v.(*DNSCache); i { 129 case 0: 130 return &v.state 131 case 1: 132 return &v.sizeCache 133 case 2: 134 return &v.unknownFields 135 default: 136 return nil 137 } 138 } 139 } 140 type x struct{} 141 out := protoimpl.TypeBuilder{ 142 File: protoimpl.DescBuilder{ 143 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 144 RawDescriptor: file_ligato_vpp_dns_dns_proto_rawDesc, 145 NumEnums: 0, 146 NumMessages: 1, 147 NumExtensions: 0, 148 NumServices: 0, 149 }, 150 GoTypes: file_ligato_vpp_dns_dns_proto_goTypes, 151 DependencyIndexes: file_ligato_vpp_dns_dns_proto_depIdxs, 152 MessageInfos: file_ligato_vpp_dns_dns_proto_msgTypes, 153 }.Build() 154 File_ligato_vpp_dns_dns_proto = out.File 155 file_ligato_vpp_dns_dns_proto_rawDesc = nil 156 file_ligato_vpp_dns_dns_proto_goTypes = nil 157 file_ligato_vpp_dns_dns_proto_depIdxs = nil 158 }