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