| 1 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 |
// versions: |
| 3 |
// protoc-gen-go v1.30.0 |
| 4 |
// protoc v5.29.1 |
| 5 |
// source: envoy/config/core/v3/resolver.proto |
| 6 |
|
| 7 |
package corev3 |
| 8 |
|
| 9 |
import ( |
| 10 |
_ "github.com/cncf/xds/go/udpa/annotations" |
| 11 |
_ "github.com/envoyproxy/protoc-gen-validate/validate" |
| 12 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 13 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 14 |
reflect "reflect" |
| 15 |
sync "sync" |
| 16 |
) |
| 17 |
|
| 18 |
const ( |
| 19 |
// Verify that this generated code is sufficiently up-to-date. |
| 20 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 21 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 22 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 23 |
) |
| 24 |
|
| 25 |
// Configuration of DNS resolver option flags which control the behavior of the DNS resolver. |
| 26 |
type DnsResolverOptions struct { |
| 27 |
state protoimpl.MessageState |
| 28 |
sizeCache protoimpl.SizeCache |
| 29 |
unknownFields protoimpl.UnknownFields |
| 30 |
|
| 31 |
// Use TCP for all DNS queries instead of the default protocol UDP. |
| 32 |
UseTcpForDnsLookups bool `protobuf:"varint,1,opt,name=use_tcp_for_dns_lookups,json=useTcpForDnsLookups,proto3" json:"use_tcp_for_dns_lookups,omitempty"` |
| 33 |
// Do not use the default search domains; only query hostnames as-is or as aliases. |
| 34 |
NoDefaultSearchDomain bool `protobuf:"varint,2,opt,name=no_default_search_domain,json=noDefaultSearchDomain,proto3" json:"no_default_search_domain,omitempty"` |
| 35 |
} |
| 36 |
|
| 37 |
func (x *DnsResolverOptions) Reset() { |
| 38 |
*x = DnsResolverOptions{} |
| 39 |
if protoimpl.UnsafeEnabled { |
| 40 |
mi := &file_envoy_config_core_v3_resolver_proto_msgTypes[0] |
| 41 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 42 |
ms.StoreMessageInfo(mi) |
| 43 |
} |
| 44 |
} |
| 45 |
|
| 46 |
func (x *DnsResolverOptions) String() string { |
| 47 |
return protoimpl.X.MessageStringOf(x) |
| 48 |
} |
| 49 |
|
| 50 |
func (*DnsResolverOptions) ProtoMessage() {} |
| 51 |
|
| 52 |
func (x *DnsResolverOptions) ProtoReflect() protoreflect.Message { |
| 53 |
mi := &file_envoy_config_core_v3_resolver_proto_msgTypes[0] |
| 54 |
if protoimpl.UnsafeEnabled && x != nil { |
| 55 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 56 |
if ms.LoadMessageInfo() == nil { |
| 57 |
ms.StoreMessageInfo(mi) |
| 58 |
} |
| 59 |
return ms |
| 60 |
} |
| 61 |
return mi.MessageOf(x) |
| 62 |
} |
| 63 |
|
| 64 |
// Deprecated: Use DnsResolverOptions.ProtoReflect.Descriptor instead. |
| 65 |
func (*DnsResolverOptions) Descriptor() ([]byte, []int) { |
| 66 |
return file_envoy_config_core_v3_resolver_proto_rawDescGZIP(), []int{0} |
| 67 |
} |
| 68 |
|
| 69 |
func (x *DnsResolverOptions) GetUseTcpForDnsLookups() bool { |
| 70 |
if x != nil { |
| 71 |
return x.UseTcpForDnsLookups |
| 72 |
} |
| 73 |
return false |
| 74 |
} |
| 75 |
|
| 76 |
func (x *DnsResolverOptions) GetNoDefaultSearchDomain() bool { |
| 77 |
if x != nil { |
| 78 |
return x.NoDefaultSearchDomain |
| 79 |
} |
| 80 |
return false |
| 81 |
} |
| 82 |
|
| 83 |
// DNS resolution configuration which includes the underlying dns resolver addresses and options. |
| 84 |
type DnsResolutionConfig struct { |
| 85 |
state protoimpl.MessageState |
| 86 |
sizeCache protoimpl.SizeCache |
| 87 |
unknownFields protoimpl.UnknownFields |
| 88 |
|
| 89 |
// A list of dns resolver addresses. If specified, the DNS client library will perform resolution |
| 90 |
// via the underlying DNS resolvers. Otherwise, the default system resolvers |
| 91 |
// (e.g., /etc/resolv.conf) will be used. |
| 92 |
Resolvers []*Address `protobuf:"bytes,1,rep,name=resolvers,proto3" json:"resolvers,omitempty"` |
| 93 |
// Configuration of DNS resolver option flags which control the behavior of the DNS resolver. |
| 94 |
DnsResolverOptions *DnsResolverOptions `protobuf:"bytes,2,opt,name=dns_resolver_options,json=dnsResolverOptions,proto3" json:"dns_resolver_options,omitempty"` |
| 95 |
} |
| 96 |
|
| 97 |
func (x *DnsResolutionConfig) Reset() { |
| 98 |
*x = DnsResolutionConfig{} |
| 99 |
if protoimpl.UnsafeEnabled { |
| 100 |
mi := &file_envoy_config_core_v3_resolver_proto_msgTypes[1] |
| 101 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 102 |
ms.StoreMessageInfo(mi) |
| 103 |
} |
| 104 |
} |
| 105 |
|
| 106 |
func (x *DnsResolutionConfig) String() string { |
| 107 |
return protoimpl.X.MessageStringOf(x) |
| 108 |
} |
| 109 |
|
| 110 |
func (*DnsResolutionConfig) ProtoMessage() {} |
| 111 |
|
| 112 |
func (x *DnsResolutionConfig) ProtoReflect() protoreflect.Message { |
| 113 |
mi := &file_envoy_config_core_v3_resolver_proto_msgTypes[1] |
| 114 |
if protoimpl.UnsafeEnabled && x != nil { |
| 115 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 116 |
if ms.LoadMessageInfo() == nil { |
| 117 |
ms.StoreMessageInfo(mi) |
| 118 |
} |
| 119 |
return ms |
| 120 |
} |
| 121 |
return mi.MessageOf(x) |
| 122 |
} |
| 123 |
|
| 124 |
// Deprecated: Use DnsResolutionConfig.ProtoReflect.Descriptor instead. |
| 125 |
func (*DnsResolutionConfig) Descriptor() ([]byte, []int) { |
| 126 |
return file_envoy_config_core_v3_resolver_proto_rawDescGZIP(), []int{1} |
| 127 |
} |
| 128 |
|
| 129 |
func (x *DnsResolutionConfig) GetResolvers() []*Address { |
| 130 |
if x != nil { |
| 131 |
return x.Resolvers |
| 132 |
} |
| 133 |
return nil |
| 134 |
} |
| 135 |
|
| 136 |
func (x *DnsResolutionConfig) GetDnsResolverOptions() *DnsResolverOptions { |
| 137 |
if x != nil { |
| 138 |
return x.DnsResolverOptions |
| 139 |
} |
| 140 |
return nil |
| 141 |
} |
| 142 |
|
| 143 |
var File_envoy_config_core_v3_resolver_proto protoreflect.FileDescriptor |
| 144 |
|
| 145 |
var file_envoy_config_core_v3_resolver_proto_rawDesc = []byte{ |
| 146 |
0x0a, 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, |
| 147 |
0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2e, |
| 148 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, |
| 149 |
0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x1a, 0x22, 0x65, 0x6e, 0x76, |
| 150 |
0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, |
| 151 |
0x33, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, |
| 152 |
0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 153 |
0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, |
| 154 |
0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, |
| 155 |
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x83, 0x01, 0x0a, 0x12, 0x44, 0x6e, 0x73, 0x52, |
| 156 |
0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x34, |
| 157 |
0x0a, 0x17, 0x75, 0x73, 0x65, 0x5f, 0x74, 0x63, 0x70, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x64, 0x6e, |
| 158 |
0x73, 0x5f, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, |
| 159 |
0x13, 0x75, 0x73, 0x65, 0x54, 0x63, 0x70, 0x46, 0x6f, 0x72, 0x44, 0x6e, 0x73, 0x4c, 0x6f, 0x6f, |
| 160 |
0x6b, 0x75, 0x70, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x6e, 0x6f, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, |
| 161 |
0x6c, 0x74, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, |
| 162 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x6e, 0x6f, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, |
| 163 |
0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xb8, 0x01, |
| 164 |
0x0a, 0x13, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, |
| 165 |
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x45, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, |
| 166 |
0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, |
| 167 |
0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, |
| 168 |
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x08, |
| 169 |
0x01, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x12, 0x5a, 0x0a, 0x14, |
| 170 |
0x64, 0x6e, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, 0x6f, 0x70, 0x74, |
| 171 |
0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x65, 0x6e, 0x76, |
| 172 |
0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, |
| 173 |
0x33, 0x2e, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x4f, 0x70, 0x74, |
| 174 |
0x69, 0x6f, 0x6e, 0x73, 0x52, 0x12, 0x64, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, |
| 175 |
0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x81, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, |
| 176 |
0x02, 0x10, 0x02, 0x0a, 0x22, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, |
| 177 |
0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, |
| 178 |
0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x42, 0x0d, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, |
| 179 |
0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, |
| 180 |
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, |
| 181 |
0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, |
| 182 |
0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, |
| 183 |
0x72, 0x65, 0x2f, 0x76, 0x33, 0x3b, 0x63, 0x6f, 0x72, 0x65, 0x76, 0x33, 0x62, 0x06, 0x70, 0x72, |
| 184 |
0x6f, 0x74, 0x6f, 0x33, |
| 185 |
} |
| 186 |
|
| 187 |
var ( |
| 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 |
|
| 192 |
func 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 |
|
| 199 |
var file_envoy_config_core_v3_resolver_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 200 |
var 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 |
} |
| 205 |
var 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 |
|
| 215 |
func init() { file_envoy_config_core_v3_resolver_proto_init() } |
| 216 |
func 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 |
} |