github.com/google/cloudprober@v0.11.3/probes/dns/proto/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.26.0 4 // protoc v3.17.3 5 // source: github.com/google/cloudprober/probes/dns/proto/config.proto 6 7 package proto 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 // DNS query types from https://en.wikipedia.org/wiki/List_of_DNS_record_types 24 type QueryType int32 25 26 const ( 27 QueryType_NONE QueryType = 0 28 QueryType_A QueryType = 1 29 QueryType_NS QueryType = 2 30 QueryType_CNAME QueryType = 5 31 QueryType_SOA QueryType = 6 32 QueryType_PTR QueryType = 12 33 QueryType_MX QueryType = 15 34 QueryType_TXT QueryType = 16 35 QueryType_RP QueryType = 17 36 QueryType_AFSDB QueryType = 18 37 QueryType_SIG QueryType = 24 38 QueryType_KEY QueryType = 25 39 QueryType_AAAA QueryType = 28 40 QueryType_LOC QueryType = 29 41 QueryType_SRV QueryType = 33 42 QueryType_NAPTR QueryType = 35 43 QueryType_KX QueryType = 36 44 QueryType_CERT QueryType = 37 45 QueryType_DNAME QueryType = 39 46 QueryType_APL QueryType = 42 47 QueryType_DS QueryType = 43 48 QueryType_SSHFP QueryType = 44 49 QueryType_IPSECKEY QueryType = 45 50 QueryType_RRSIG QueryType = 46 51 QueryType_NSEC QueryType = 47 52 QueryType_DNSKEY QueryType = 48 53 QueryType_DHCID QueryType = 49 54 QueryType_NSEC3 QueryType = 50 55 QueryType_NSEC3PARAM QueryType = 51 56 QueryType_TLSA QueryType = 52 57 QueryType_HIP QueryType = 55 58 QueryType_CDS QueryType = 59 59 QueryType_CDNSKEY QueryType = 60 60 QueryType_OPENPGPKEY QueryType = 61 61 QueryType_TKEY QueryType = 249 62 QueryType_TSIG QueryType = 250 63 QueryType_URI QueryType = 256 64 QueryType_CAA QueryType = 257 65 QueryType_TA QueryType = 32768 66 QueryType_DLV QueryType = 32769 67 ) 68 69 // Enum value maps for QueryType. 70 var ( 71 QueryType_name = map[int32]string{ 72 0: "NONE", 73 1: "A", 74 2: "NS", 75 5: "CNAME", 76 6: "SOA", 77 12: "PTR", 78 15: "MX", 79 16: "TXT", 80 17: "RP", 81 18: "AFSDB", 82 24: "SIG", 83 25: "KEY", 84 28: "AAAA", 85 29: "LOC", 86 33: "SRV", 87 35: "NAPTR", 88 36: "KX", 89 37: "CERT", 90 39: "DNAME", 91 42: "APL", 92 43: "DS", 93 44: "SSHFP", 94 45: "IPSECKEY", 95 46: "RRSIG", 96 47: "NSEC", 97 48: "DNSKEY", 98 49: "DHCID", 99 50: "NSEC3", 100 51: "NSEC3PARAM", 101 52: "TLSA", 102 55: "HIP", 103 59: "CDS", 104 60: "CDNSKEY", 105 61: "OPENPGPKEY", 106 249: "TKEY", 107 250: "TSIG", 108 256: "URI", 109 257: "CAA", 110 32768: "TA", 111 32769: "DLV", 112 } 113 QueryType_value = map[string]int32{ 114 "NONE": 0, 115 "A": 1, 116 "NS": 2, 117 "CNAME": 5, 118 "SOA": 6, 119 "PTR": 12, 120 "MX": 15, 121 "TXT": 16, 122 "RP": 17, 123 "AFSDB": 18, 124 "SIG": 24, 125 "KEY": 25, 126 "AAAA": 28, 127 "LOC": 29, 128 "SRV": 33, 129 "NAPTR": 35, 130 "KX": 36, 131 "CERT": 37, 132 "DNAME": 39, 133 "APL": 42, 134 "DS": 43, 135 "SSHFP": 44, 136 "IPSECKEY": 45, 137 "RRSIG": 46, 138 "NSEC": 47, 139 "DNSKEY": 48, 140 "DHCID": 49, 141 "NSEC3": 50, 142 "NSEC3PARAM": 51, 143 "TLSA": 52, 144 "HIP": 55, 145 "CDS": 59, 146 "CDNSKEY": 60, 147 "OPENPGPKEY": 61, 148 "TKEY": 249, 149 "TSIG": 250, 150 "URI": 256, 151 "CAA": 257, 152 "TA": 32768, 153 "DLV": 32769, 154 } 155 ) 156 157 func (x QueryType) Enum() *QueryType { 158 p := new(QueryType) 159 *p = x 160 return p 161 } 162 163 func (x QueryType) String() string { 164 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 165 } 166 167 func (QueryType) Descriptor() protoreflect.EnumDescriptor { 168 return file_github_com_google_cloudprober_probes_dns_proto_config_proto_enumTypes[0].Descriptor() 169 } 170 171 func (QueryType) Type() protoreflect.EnumType { 172 return &file_github_com_google_cloudprober_probes_dns_proto_config_proto_enumTypes[0] 173 } 174 175 func (x QueryType) Number() protoreflect.EnumNumber { 176 return protoreflect.EnumNumber(x) 177 } 178 179 // Deprecated: Do not use. 180 func (x *QueryType) UnmarshalJSON(b []byte) error { 181 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 182 if err != nil { 183 return err 184 } 185 *x = QueryType(num) 186 return nil 187 } 188 189 // Deprecated: Use QueryType.Descriptor instead. 190 func (QueryType) EnumDescriptor() ([]byte, []int) { 191 return file_github_com_google_cloudprober_probes_dns_proto_config_proto_rawDescGZIP(), []int{0} 192 } 193 194 type ProbeConf struct { 195 state protoimpl.MessageState 196 sizeCache protoimpl.SizeCache 197 unknownFields protoimpl.UnknownFields 198 199 // Domain to use when making DNS queries 200 ResolvedDomain *string `protobuf:"bytes,1,opt,name=resolved_domain,json=resolvedDomain,def=www.google.com." json:"resolved_domain,omitempty"` 201 // DNS Query Type 202 QueryType *QueryType `protobuf:"varint,3,opt,name=query_type,json=queryType,enum=cloudprober.probes.dns.QueryType,def=15" json:"query_type,omitempty"` 203 // Minimum number of answers expected. Default behavior is to return success 204 // if DNS response status is NOERROR. 205 MinAnswers *uint32 `protobuf:"varint,4,opt,name=min_answers,json=minAnswers,def=0" json:"min_answers,omitempty"` 206 // Whether to resolve the target before making the request. If set to false, 207 // we hand over the target directly to the DNS client. Otherwise, we resolve 208 // the target first to an IP address. 209 ResolveFirst *bool `protobuf:"varint,5,opt,name=resolve_first,json=resolveFirst,def=0" json:"resolve_first,omitempty"` 210 } 211 212 // Default values for ProbeConf fields. 213 const ( 214 Default_ProbeConf_ResolvedDomain = string("www.google.com.") 215 Default_ProbeConf_QueryType = QueryType_MX 216 Default_ProbeConf_MinAnswers = uint32(0) 217 Default_ProbeConf_ResolveFirst = bool(false) 218 ) 219 220 func (x *ProbeConf) Reset() { 221 *x = ProbeConf{} 222 if protoimpl.UnsafeEnabled { 223 mi := &file_github_com_google_cloudprober_probes_dns_proto_config_proto_msgTypes[0] 224 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 225 ms.StoreMessageInfo(mi) 226 } 227 } 228 229 func (x *ProbeConf) String() string { 230 return protoimpl.X.MessageStringOf(x) 231 } 232 233 func (*ProbeConf) ProtoMessage() {} 234 235 func (x *ProbeConf) ProtoReflect() protoreflect.Message { 236 mi := &file_github_com_google_cloudprober_probes_dns_proto_config_proto_msgTypes[0] 237 if protoimpl.UnsafeEnabled && x != nil { 238 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 239 if ms.LoadMessageInfo() == nil { 240 ms.StoreMessageInfo(mi) 241 } 242 return ms 243 } 244 return mi.MessageOf(x) 245 } 246 247 // Deprecated: Use ProbeConf.ProtoReflect.Descriptor instead. 248 func (*ProbeConf) Descriptor() ([]byte, []int) { 249 return file_github_com_google_cloudprober_probes_dns_proto_config_proto_rawDescGZIP(), []int{0} 250 } 251 252 func (x *ProbeConf) GetResolvedDomain() string { 253 if x != nil && x.ResolvedDomain != nil { 254 return *x.ResolvedDomain 255 } 256 return Default_ProbeConf_ResolvedDomain 257 } 258 259 func (x *ProbeConf) GetQueryType() QueryType { 260 if x != nil && x.QueryType != nil { 261 return *x.QueryType 262 } 263 return Default_ProbeConf_QueryType 264 } 265 266 func (x *ProbeConf) GetMinAnswers() uint32 { 267 if x != nil && x.MinAnswers != nil { 268 return *x.MinAnswers 269 } 270 return Default_ProbeConf_MinAnswers 271 } 272 273 func (x *ProbeConf) GetResolveFirst() bool { 274 if x != nil && x.ResolveFirst != nil { 275 return *x.ResolveFirst 276 } 277 return Default_ProbeConf_ResolveFirst 278 } 279 280 var File_github_com_google_cloudprober_probes_dns_proto_config_proto protoreflect.FileDescriptor 281 282 var file_github_com_google_cloudprober_probes_dns_proto_config_proto_rawDesc = []byte{ 283 0x0a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 284 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 285 0x70, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 286 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x63, 287 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x62, 0x65, 288 0x73, 0x2e, 0x64, 0x6e, 0x73, 0x22, 0xdb, 0x01, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x43, 289 0x6f, 0x6e, 0x66, 0x12, 0x38, 0x0a, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x5f, 290 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x0f, 0x77, 0x77, 291 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x52, 0x0e, 0x72, 292 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x44, 0x0a, 293 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 294 0x0e, 0x32, 0x21, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 295 0x70, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 296 0x54, 0x79, 0x70, 0x65, 0x3a, 0x02, 0x4d, 0x58, 0x52, 0x09, 0x71, 0x75, 0x65, 0x72, 0x79, 0x54, 297 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0b, 0x6d, 0x69, 0x6e, 0x5f, 0x61, 0x6e, 0x73, 0x77, 0x65, 298 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x01, 0x30, 0x52, 0x0a, 0x6d, 0x69, 0x6e, 299 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x12, 0x2a, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x6c, 300 0x76, 0x65, 0x5f, 0x66, 0x69, 0x72, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 301 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x46, 0x69, 302 0x72, 0x73, 0x74, 0x2a, 0xa4, 0x03, 0x0a, 0x09, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x79, 0x70, 303 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x05, 0x0a, 0x01, 0x41, 304 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, 0x4e, 0x53, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x43, 0x4e, 305 0x41, 0x4d, 0x45, 0x10, 0x05, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x4f, 0x41, 0x10, 0x06, 0x12, 0x07, 306 0x0a, 0x03, 0x50, 0x54, 0x52, 0x10, 0x0c, 0x12, 0x06, 0x0a, 0x02, 0x4d, 0x58, 0x10, 0x0f, 0x12, 307 0x07, 0x0a, 0x03, 0x54, 0x58, 0x54, 0x10, 0x10, 0x12, 0x06, 0x0a, 0x02, 0x52, 0x50, 0x10, 0x11, 308 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x53, 0x44, 0x42, 0x10, 0x12, 0x12, 0x07, 0x0a, 0x03, 0x53, 309 0x49, 0x47, 0x10, 0x18, 0x12, 0x07, 0x0a, 0x03, 0x4b, 0x45, 0x59, 0x10, 0x19, 0x12, 0x08, 0x0a, 310 0x04, 0x41, 0x41, 0x41, 0x41, 0x10, 0x1c, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x4f, 0x43, 0x10, 0x1d, 311 0x12, 0x07, 0x0a, 0x03, 0x53, 0x52, 0x56, 0x10, 0x21, 0x12, 0x09, 0x0a, 0x05, 0x4e, 0x41, 0x50, 312 0x54, 0x52, 0x10, 0x23, 0x12, 0x06, 0x0a, 0x02, 0x4b, 0x58, 0x10, 0x24, 0x12, 0x08, 0x0a, 0x04, 313 0x43, 0x45, 0x52, 0x54, 0x10, 0x25, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x4e, 0x41, 0x4d, 0x45, 0x10, 314 0x27, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x50, 0x4c, 0x10, 0x2a, 0x12, 0x06, 0x0a, 0x02, 0x44, 0x53, 315 0x10, 0x2b, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x53, 0x48, 0x46, 0x50, 0x10, 0x2c, 0x12, 0x0c, 0x0a, 316 0x08, 0x49, 0x50, 0x53, 0x45, 0x43, 0x4b, 0x45, 0x59, 0x10, 0x2d, 0x12, 0x09, 0x0a, 0x05, 0x52, 317 0x52, 0x53, 0x49, 0x47, 0x10, 0x2e, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x53, 0x45, 0x43, 0x10, 0x2f, 318 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x4e, 0x53, 0x4b, 0x45, 0x59, 0x10, 0x30, 0x12, 0x09, 0x0a, 0x05, 319 0x44, 0x48, 0x43, 0x49, 0x44, 0x10, 0x31, 0x12, 0x09, 0x0a, 0x05, 0x4e, 0x53, 0x45, 0x43, 0x33, 320 0x10, 0x32, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x53, 0x45, 0x43, 0x33, 0x50, 0x41, 0x52, 0x41, 0x4d, 321 0x10, 0x33, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x4c, 0x53, 0x41, 0x10, 0x34, 0x12, 0x07, 0x0a, 0x03, 322 0x48, 0x49, 0x50, 0x10, 0x37, 0x12, 0x07, 0x0a, 0x03, 0x43, 0x44, 0x53, 0x10, 0x3b, 0x12, 0x0b, 323 0x0a, 0x07, 0x43, 0x44, 0x4e, 0x53, 0x4b, 0x45, 0x59, 0x10, 0x3c, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 324 0x50, 0x45, 0x4e, 0x50, 0x47, 0x50, 0x4b, 0x45, 0x59, 0x10, 0x3d, 0x12, 0x09, 0x0a, 0x04, 0x54, 325 0x4b, 0x45, 0x59, 0x10, 0xf9, 0x01, 0x12, 0x09, 0x0a, 0x04, 0x54, 0x53, 0x49, 0x47, 0x10, 0xfa, 326 0x01, 0x12, 0x08, 0x0a, 0x03, 0x55, 0x52, 0x49, 0x10, 0x80, 0x02, 0x12, 0x08, 0x0a, 0x03, 0x43, 327 0x41, 0x41, 0x10, 0x81, 0x02, 0x12, 0x08, 0x0a, 0x02, 0x54, 0x41, 0x10, 0x80, 0x80, 0x02, 0x12, 328 0x09, 0x0a, 0x03, 0x44, 0x4c, 0x56, 0x10, 0x81, 0x80, 0x02, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 329 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 330 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x62, 331 0x65, 0x73, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 332 } 333 334 var ( 335 file_github_com_google_cloudprober_probes_dns_proto_config_proto_rawDescOnce sync.Once 336 file_github_com_google_cloudprober_probes_dns_proto_config_proto_rawDescData = file_github_com_google_cloudprober_probes_dns_proto_config_proto_rawDesc 337 ) 338 339 func file_github_com_google_cloudprober_probes_dns_proto_config_proto_rawDescGZIP() []byte { 340 file_github_com_google_cloudprober_probes_dns_proto_config_proto_rawDescOnce.Do(func() { 341 file_github_com_google_cloudprober_probes_dns_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_probes_dns_proto_config_proto_rawDescData) 342 }) 343 return file_github_com_google_cloudprober_probes_dns_proto_config_proto_rawDescData 344 } 345 346 var file_github_com_google_cloudprober_probes_dns_proto_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 347 var file_github_com_google_cloudprober_probes_dns_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 348 var file_github_com_google_cloudprober_probes_dns_proto_config_proto_goTypes = []interface{}{ 349 (QueryType)(0), // 0: cloudprober.probes.dns.QueryType 350 (*ProbeConf)(nil), // 1: cloudprober.probes.dns.ProbeConf 351 } 352 var file_github_com_google_cloudprober_probes_dns_proto_config_proto_depIdxs = []int32{ 353 0, // 0: cloudprober.probes.dns.ProbeConf.query_type:type_name -> cloudprober.probes.dns.QueryType 354 1, // [1:1] is the sub-list for method output_type 355 1, // [1:1] is the sub-list for method input_type 356 1, // [1:1] is the sub-list for extension type_name 357 1, // [1:1] is the sub-list for extension extendee 358 0, // [0:1] is the sub-list for field type_name 359 } 360 361 func init() { file_github_com_google_cloudprober_probes_dns_proto_config_proto_init() } 362 func file_github_com_google_cloudprober_probes_dns_proto_config_proto_init() { 363 if File_github_com_google_cloudprober_probes_dns_proto_config_proto != nil { 364 return 365 } 366 if !protoimpl.UnsafeEnabled { 367 file_github_com_google_cloudprober_probes_dns_proto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 368 switch v := v.(*ProbeConf); i { 369 case 0: 370 return &v.state 371 case 1: 372 return &v.sizeCache 373 case 2: 374 return &v.unknownFields 375 default: 376 return nil 377 } 378 } 379 } 380 type x struct{} 381 out := protoimpl.TypeBuilder{ 382 File: protoimpl.DescBuilder{ 383 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 384 RawDescriptor: file_github_com_google_cloudprober_probes_dns_proto_config_proto_rawDesc, 385 NumEnums: 1, 386 NumMessages: 1, 387 NumExtensions: 0, 388 NumServices: 0, 389 }, 390 GoTypes: file_github_com_google_cloudprober_probes_dns_proto_config_proto_goTypes, 391 DependencyIndexes: file_github_com_google_cloudprober_probes_dns_proto_config_proto_depIdxs, 392 EnumInfos: file_github_com_google_cloudprober_probes_dns_proto_config_proto_enumTypes, 393 MessageInfos: file_github_com_google_cloudprober_probes_dns_proto_config_proto_msgTypes, 394 }.Build() 395 File_github_com_google_cloudprober_probes_dns_proto_config_proto = out.File 396 file_github_com_google_cloudprober_probes_dns_proto_config_proto_rawDesc = nil 397 file_github_com_google_cloudprober_probes_dns_proto_config_proto_goTypes = nil 398 file_github_com_google_cloudprober_probes_dns_proto_config_proto_depIdxs = nil 399 }