1// Code generated by protoc-gen-go. DO NOT EDIT. 2// versions: 3// protoc-gen-go v1.25.0 4// protoc v3.19.1 5// source: envoy/config/core/v3/resolver.proto 6 7package envoy_config_core_v3 8 9import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 _ "github.com/envoyproxy/protoc-gen-validate/validate" 12 proto "github.com/golang/protobuf/proto" 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 reflect "reflect" 16 sync "sync" 17) 18 19const ( 20 // Verify that this generated code is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 22 // Verify that runtime/protoimpl is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 24) 25 26// This is a compile-time assertion that a sufficiently up-to-date version 27// of the legacy proto package is being used. 28const _ = proto.ProtoPackageIsVersion4 29 30// Configuration of DNS resolver option flags which control the behavior of the DNS resolver. 31type DnsResolverOptions struct { 32 state protoimpl.MessageState 33 sizeCache protoimpl.SizeCache 34 unknownFields protoimpl.UnknownFields 35 36 // Use TCP for all DNS queries instead of the default protocol UDP. 37 UseTcpForDnsLookups bool `protobuf:"varint,1,opt,name=use_tcp_for_dns_lookups,json=useTcpForDnsLookups,proto3" json:"use_tcp_for_dns_lookups,omitempty"` 38 // Do not use the default search domains; only query hostnames as-is or as aliases. 39 NoDefaultSearchDomain bool `protobuf:"varint,2,opt,name=no_default_search_domain,json=noDefaultSearchDomain,proto3" json:"no_default_search_domain,omitempty"` 40} 41 42func (x *DnsResolverOptions) Reset() { 43 *x = DnsResolverOptions{} 44 if protoimpl.UnsafeEnabled { 45 mi := &file_envoy_config_core_v3_resolver_proto_msgTypes[0] 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 ms.StoreMessageInfo(mi) 48 } 49} 50 51func (x *DnsResolverOptions) String() string { 52 return protoimpl.X.MessageStringOf(x) 53} 54 55func (*DnsResolverOptions) ProtoMessage() {} 56 57func (x *DnsResolverOptions) ProtoReflect() protoreflect.Message { 58 mi := &file_envoy_config_core_v3_resolver_proto_msgTypes[0] 59 if protoimpl.UnsafeEnabled && x != nil { 60 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 61 if ms.LoadMessageInfo() == nil { 62 ms.StoreMessageInfo(mi) 63 } 64 return ms 65 } 66 return mi.MessageOf(x) 67} 68 69// Deprecated: Use DnsResolverOptions.ProtoReflect.Descriptor instead. 70func (*DnsResolverOptions) Descriptor() ([]byte, []int) { 71 return file_envoy_config_core_v3_resolver_proto_rawDescGZIP(), []int{0} 72} 73 74func (x *DnsResolverOptions) GetUseTcpForDnsLookups() bool { 75 if x != nil { 76 return x.UseTcpForDnsLookups 77 } 78 return false 79} 80 81func (x *DnsResolverOptions) GetNoDefaultSearchDomain() bool { 82 if x != nil { 83 return x.NoDefaultSearchDomain 84 } 85 return false 86} 87 88// DNS resolution configuration which includes the underlying dns resolver addresses and options. 89type DnsResolutionConfig struct { 90 state protoimpl.MessageState 91 sizeCache protoimpl.SizeCache 92 unknownFields protoimpl.UnknownFields 93 94 // A list of dns resolver addresses. If specified, the DNS client library will perform resolution 95 // via the underlying DNS resolvers. Otherwise, the default system resolvers 96 // (e.g., /etc/resolv.conf) will be used. 97 Resolvers []*Address `protobuf:"bytes,1,rep,name=resolvers,proto3" json:"resolvers,omitempty"` 98 // Configuration of DNS resolver option flags which control the behavior of the DNS resolver. 99 DnsResolverOptions *DnsResolverOptions `protobuf:"bytes,2,opt,name=dns_resolver_options,json=dnsResolverOptions,proto3" json:"dns_resolver_options,omitempty"` 100} 101 102func (x *DnsResolutionConfig) Reset() { 103 *x = DnsResolutionConfig{} 104 if protoimpl.UnsafeEnabled { 105 mi := &file_envoy_config_core_v3_resolver_proto_msgTypes[1] 106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 107 ms.StoreMessageInfo(mi) 108 } 109} 110 111func (x *DnsResolutionConfig) String() string { 112 return protoimpl.X.MessageStringOf(x) 113} 114 115func (*DnsResolutionConfig) ProtoMessage() {} 116 117func (x *DnsResolutionConfig) ProtoReflect() protoreflect.Message { 118 mi := &file_envoy_config_core_v3_resolver_proto_msgTypes[1] 119 if protoimpl.UnsafeEnabled && x != nil { 120 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 121 if ms.LoadMessageInfo() == nil { 122 ms.StoreMessageInfo(mi) 123 } 124 return ms 125 } 126 return mi.MessageOf(x) 127} 128 129// Deprecated: Use DnsResolutionConfig.ProtoReflect.Descriptor instead. 130func (*DnsResolutionConfig) Descriptor() ([]byte, []int) { 131 return file_envoy_config_core_v3_resolver_proto_rawDescGZIP(), []int{1} 132} 133 134func (x *DnsResolutionConfig) GetResolvers() []*Address { 135 if x != nil { 136 return x.Resolvers 137 } 138 return nil 139} 140 141func (x *DnsResolutionConfig) GetDnsResolverOptions() *DnsResolverOptions { 142 if x != nil { 143 return x.DnsResolverOptions 144 } 145 return nil 146} 147 148var File_envoy_config_core_v3_resolver_proto protoreflect.FileDescriptor 149 150var file_envoy_config_core_v3_resolver_proto_rawDesc = []byte{ 151 0x0a, 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 152 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2e, 153 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 154 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x1a, 0x22, 0x65, 0x6e, 0x76, 155 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 156 0x33, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 157 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 158 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 159 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 160 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x83, 0x01, 0x0a, 0x12, 0x44, 0x6e, 0x73, 0x52, 161 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x34, 162 0x0a, 0x17, 0x75, 0x73, 0x65, 0x5f, 0x74, 0x63, 0x70, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x64, 0x6e, 163 0x73, 0x5f, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 164 0x13, 0x75, 0x73, 0x65, 0x54, 0x63, 0x70, 0x46, 0x6f, 0x72, 0x44, 0x6e, 0x73, 0x4c, 0x6f, 0x6f, 165 0x6b, 0x75, 0x70, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x6e, 0x6f, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 166 0x6c, 0x74, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 167 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x6e, 0x6f, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 168 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xb8, 0x01, 169 0x0a, 0x13, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 170 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x45, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 171 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 172 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 173 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x08, 174 0x01, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x12, 0x5a, 0x0a, 0x14, 175 0x64, 0x6e, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, 0x6f, 0x70, 0x74, 176 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x65, 0x6e, 0x76, 177 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 178 0x33, 0x2e, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x4f, 0x70, 0x74, 179 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x12, 0x64, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 180 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x3d, 0x0a, 0x22, 0x69, 0x6f, 0x2e, 0x65, 181 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 182 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x42, 0x0d, 183 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 184 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 185} 186 187var ( 188 file_envoy_config_core_v3_resolver_proto_rawDescOnce sync.Once 189 file_envoy_config_core_v3_resolver_proto_rawDescData = file_envoy_config_core_v3_resolver_proto_rawDesc 190) 191 192func file_envoy_config_core_v3_resolver_proto_rawDescGZIP() []byte { 193 file_envoy_config_core_v3_resolver_proto_rawDescOnce.Do(func() { 194 file_envoy_config_core_v3_resolver_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_core_v3_resolver_proto_rawDescData) 195 }) 196 return file_envoy_config_core_v3_resolver_proto_rawDescData 197} 198 199var file_envoy_config_core_v3_resolver_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 200var file_envoy_config_core_v3_resolver_proto_goTypes = []interface{}{ 201 (*DnsResolverOptions)(nil), // 0: envoy.config.core.v3.DnsResolverOptions 202 (*DnsResolutionConfig)(nil), // 1: envoy.config.core.v3.DnsResolutionConfig 203 (*Address)(nil), // 2: envoy.config.core.v3.Address 204} 205var file_envoy_config_core_v3_resolver_proto_depIdxs = []int32{ 206 2, // 0: envoy.config.core.v3.DnsResolutionConfig.resolvers:type_name -> envoy.config.core.v3.Address 207 0, // 1: envoy.config.core.v3.DnsResolutionConfig.dns_resolver_options:type_name -> envoy.config.core.v3.DnsResolverOptions 208 2, // [2:2] is the sub-list for method output_type 209 2, // [2:2] is the sub-list for method input_type 210 2, // [2:2] is the sub-list for extension type_name 211 2, // [2:2] is the sub-list for extension extendee 212 0, // [0:2] is the sub-list for field type_name 213} 214 215func init() { file_envoy_config_core_v3_resolver_proto_init() } 216func file_envoy_config_core_v3_resolver_proto_init() { 217 if File_envoy_config_core_v3_resolver_proto != nil { 218 return 219 } 220 file_envoy_config_core_v3_address_proto_init() 221 if !protoimpl.UnsafeEnabled { 222 file_envoy_config_core_v3_resolver_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 223 switch v := v.(*DnsResolverOptions); i { 224 case 0: 225 return &v.state 226 case 1: 227 return &v.sizeCache 228 case 2: 229 return &v.unknownFields 230 default: 231 return nil 232 } 233 } 234 file_envoy_config_core_v3_resolver_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 235 switch v := v.(*DnsResolutionConfig); i { 236 case 0: 237 return &v.state 238 case 1: 239 return &v.sizeCache 240 case 2: 241 return &v.unknownFields 242 default: 243 return nil 244 } 245 } 246 } 247 type x struct{} 248 out := protoimpl.TypeBuilder{ 249 File: protoimpl.DescBuilder{ 250 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 251 RawDescriptor: file_envoy_config_core_v3_resolver_proto_rawDesc, 252 NumEnums: 0, 253 NumMessages: 2, 254 NumExtensions: 0, 255 NumServices: 0, 256 }, 257 GoTypes: file_envoy_config_core_v3_resolver_proto_goTypes, 258 DependencyIndexes: file_envoy_config_core_v3_resolver_proto_depIdxs, 259 MessageInfos: file_envoy_config_core_v3_resolver_proto_msgTypes, 260 }.Build() 261 File_envoy_config_core_v3_resolver_proto = out.File 262 file_envoy_config_core_v3_resolver_proto_rawDesc = nil 263 file_envoy_config_core_v3_resolver_proto_goTypes = nil 264 file_envoy_config_core_v3_resolver_proto_depIdxs = nil 265} 266