github.com/google/cloudprober@v0.11.3/rds/proto/rds.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/rds/proto/rds.proto 6 7 package proto 8 9 import ( 10 context "context" 11 grpc "google.golang.org/grpc" 12 codes "google.golang.org/grpc/codes" 13 status "google.golang.org/grpc/status" 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 reflect "reflect" 17 sync "sync" 18 ) 19 20 const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 type IPConfig_IPType int32 28 29 const ( 30 // Default IP of the resource. 31 // - Private IP for instance resource 32 // - Forwarding rule IP for forwarding rule. 33 IPConfig_DEFAULT IPConfig_IPType = 0 34 // Instance's external IP. 35 IPConfig_PUBLIC IPConfig_IPType = 1 36 // First IP address from the first Alias IP range. For example, for 37 // alias IP range "192.168.12.0/24", 192.168.12.0 will be returned. 38 // Supported only on GCE. 39 IPConfig_ALIAS IPConfig_IPType = 2 40 ) 41 42 // Enum value maps for IPConfig_IPType. 43 var ( 44 IPConfig_IPType_name = map[int32]string{ 45 0: "DEFAULT", 46 1: "PUBLIC", 47 2: "ALIAS", 48 } 49 IPConfig_IPType_value = map[string]int32{ 50 "DEFAULT": 0, 51 "PUBLIC": 1, 52 "ALIAS": 2, 53 } 54 ) 55 56 func (x IPConfig_IPType) Enum() *IPConfig_IPType { 57 p := new(IPConfig_IPType) 58 *p = x 59 return p 60 } 61 62 func (x IPConfig_IPType) String() string { 63 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 64 } 65 66 func (IPConfig_IPType) Descriptor() protoreflect.EnumDescriptor { 67 return file_github_com_google_cloudprober_rds_proto_rds_proto_enumTypes[0].Descriptor() 68 } 69 70 func (IPConfig_IPType) Type() protoreflect.EnumType { 71 return &file_github_com_google_cloudprober_rds_proto_rds_proto_enumTypes[0] 72 } 73 74 func (x IPConfig_IPType) Number() protoreflect.EnumNumber { 75 return protoreflect.EnumNumber(x) 76 } 77 78 // Deprecated: Do not use. 79 func (x *IPConfig_IPType) UnmarshalJSON(b []byte) error { 80 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 81 if err != nil { 82 return err 83 } 84 *x = IPConfig_IPType(num) 85 return nil 86 } 87 88 // Deprecated: Use IPConfig_IPType.Descriptor instead. 89 func (IPConfig_IPType) EnumDescriptor() ([]byte, []int) { 90 return file_github_com_google_cloudprober_rds_proto_rds_proto_rawDescGZIP(), []int{2, 0} 91 } 92 93 type IPConfig_IPVersion int32 94 95 const ( 96 IPConfig_IP_VERSION_UNSPECIFIED IPConfig_IPVersion = 0 97 IPConfig_IPV4 IPConfig_IPVersion = 1 98 IPConfig_IPV6 IPConfig_IPVersion = 2 99 ) 100 101 // Enum value maps for IPConfig_IPVersion. 102 var ( 103 IPConfig_IPVersion_name = map[int32]string{ 104 0: "IP_VERSION_UNSPECIFIED", 105 1: "IPV4", 106 2: "IPV6", 107 } 108 IPConfig_IPVersion_value = map[string]int32{ 109 "IP_VERSION_UNSPECIFIED": 0, 110 "IPV4": 1, 111 "IPV6": 2, 112 } 113 ) 114 115 func (x IPConfig_IPVersion) Enum() *IPConfig_IPVersion { 116 p := new(IPConfig_IPVersion) 117 *p = x 118 return p 119 } 120 121 func (x IPConfig_IPVersion) String() string { 122 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 123 } 124 125 func (IPConfig_IPVersion) Descriptor() protoreflect.EnumDescriptor { 126 return file_github_com_google_cloudprober_rds_proto_rds_proto_enumTypes[1].Descriptor() 127 } 128 129 func (IPConfig_IPVersion) Type() protoreflect.EnumType { 130 return &file_github_com_google_cloudprober_rds_proto_rds_proto_enumTypes[1] 131 } 132 133 func (x IPConfig_IPVersion) Number() protoreflect.EnumNumber { 134 return protoreflect.EnumNumber(x) 135 } 136 137 // Deprecated: Do not use. 138 func (x *IPConfig_IPVersion) UnmarshalJSON(b []byte) error { 139 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 140 if err != nil { 141 return err 142 } 143 *x = IPConfig_IPVersion(num) 144 return nil 145 } 146 147 // Deprecated: Use IPConfig_IPVersion.Descriptor instead. 148 func (IPConfig_IPVersion) EnumDescriptor() ([]byte, []int) { 149 return file_github_com_google_cloudprober_rds_proto_rds_proto_rawDescGZIP(), []int{2, 1} 150 } 151 152 type ListResourcesRequest struct { 153 state protoimpl.MessageState 154 sizeCache protoimpl.SizeCache 155 unknownFields protoimpl.UnknownFields 156 157 // Provider is the resource list provider, for example: "gcp", "aws", etc. 158 Provider *string `protobuf:"bytes,1,req,name=provider" json:"provider,omitempty"` 159 // Provider specific resource path. For example: for GCP, it could be 160 // "gce_instances/<project>", "regional_forwarding_rules/<project>", etc. 161 ResourcePath *string `protobuf:"bytes,2,opt,name=resource_path,json=resourcePath" json:"resource_path,omitempty"` 162 // Filters for the resources list. Filters are ANDed: all filters should 163 // succeed for an item to included in the result list. 164 Filter []*Filter `protobuf:"bytes,3,rep,name=filter" json:"filter,omitempty"` 165 // Optional. If resource has an IP (and a NIC) address, following 166 // fields determine which IP address will be included in the results. 167 IpConfig *IPConfig `protobuf:"bytes,4,opt,name=ip_config,json=ipConfig" json:"ip_config,omitempty"` 168 // If specified, and if provider supports it, server will send resources in 169 // the response only if they have changed since the given timestamp. Since 170 // there may be no resources in the response for non-caching reasons as well, 171 // clients should use the "last_modified" field in the response to determine 172 // if they need to update the local cache or not. 173 IfModifiedSince *int64 `protobuf:"varint,5,opt,name=if_modified_since,json=ifModifiedSince" json:"if_modified_since,omitempty"` 174 } 175 176 func (x *ListResourcesRequest) Reset() { 177 *x = ListResourcesRequest{} 178 if protoimpl.UnsafeEnabled { 179 mi := &file_github_com_google_cloudprober_rds_proto_rds_proto_msgTypes[0] 180 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 181 ms.StoreMessageInfo(mi) 182 } 183 } 184 185 func (x *ListResourcesRequest) String() string { 186 return protoimpl.X.MessageStringOf(x) 187 } 188 189 func (*ListResourcesRequest) ProtoMessage() {} 190 191 func (x *ListResourcesRequest) ProtoReflect() protoreflect.Message { 192 mi := &file_github_com_google_cloudprober_rds_proto_rds_proto_msgTypes[0] 193 if protoimpl.UnsafeEnabled && x != nil { 194 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 195 if ms.LoadMessageInfo() == nil { 196 ms.StoreMessageInfo(mi) 197 } 198 return ms 199 } 200 return mi.MessageOf(x) 201 } 202 203 // Deprecated: Use ListResourcesRequest.ProtoReflect.Descriptor instead. 204 func (*ListResourcesRequest) Descriptor() ([]byte, []int) { 205 return file_github_com_google_cloudprober_rds_proto_rds_proto_rawDescGZIP(), []int{0} 206 } 207 208 func (x *ListResourcesRequest) GetProvider() string { 209 if x != nil && x.Provider != nil { 210 return *x.Provider 211 } 212 return "" 213 } 214 215 func (x *ListResourcesRequest) GetResourcePath() string { 216 if x != nil && x.ResourcePath != nil { 217 return *x.ResourcePath 218 } 219 return "" 220 } 221 222 func (x *ListResourcesRequest) GetFilter() []*Filter { 223 if x != nil { 224 return x.Filter 225 } 226 return nil 227 } 228 229 func (x *ListResourcesRequest) GetIpConfig() *IPConfig { 230 if x != nil { 231 return x.IpConfig 232 } 233 return nil 234 } 235 236 func (x *ListResourcesRequest) GetIfModifiedSince() int64 { 237 if x != nil && x.IfModifiedSince != nil { 238 return *x.IfModifiedSince 239 } 240 return 0 241 } 242 243 type Filter struct { 244 state protoimpl.MessageState 245 sizeCache protoimpl.SizeCache 246 unknownFields protoimpl.UnknownFields 247 248 Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"` 249 Value *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"` 250 } 251 252 func (x *Filter) Reset() { 253 *x = Filter{} 254 if protoimpl.UnsafeEnabled { 255 mi := &file_github_com_google_cloudprober_rds_proto_rds_proto_msgTypes[1] 256 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 257 ms.StoreMessageInfo(mi) 258 } 259 } 260 261 func (x *Filter) String() string { 262 return protoimpl.X.MessageStringOf(x) 263 } 264 265 func (*Filter) ProtoMessage() {} 266 267 func (x *Filter) ProtoReflect() protoreflect.Message { 268 mi := &file_github_com_google_cloudprober_rds_proto_rds_proto_msgTypes[1] 269 if protoimpl.UnsafeEnabled && x != nil { 270 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 271 if ms.LoadMessageInfo() == nil { 272 ms.StoreMessageInfo(mi) 273 } 274 return ms 275 } 276 return mi.MessageOf(x) 277 } 278 279 // Deprecated: Use Filter.ProtoReflect.Descriptor instead. 280 func (*Filter) Descriptor() ([]byte, []int) { 281 return file_github_com_google_cloudprober_rds_proto_rds_proto_rawDescGZIP(), []int{1} 282 } 283 284 func (x *Filter) GetKey() string { 285 if x != nil && x.Key != nil { 286 return *x.Key 287 } 288 return "" 289 } 290 291 func (x *Filter) GetValue() string { 292 if x != nil && x.Value != nil { 293 return *x.Value 294 } 295 return "" 296 } 297 298 type IPConfig struct { 299 state protoimpl.MessageState 300 sizeCache protoimpl.SizeCache 301 unknownFields protoimpl.UnknownFields 302 303 // NIC index 304 NicIndex *int32 `protobuf:"varint,1,opt,name=nic_index,json=nicIndex,def=0" json:"nic_index,omitempty"` 305 IpType *IPConfig_IPType `protobuf:"varint,3,opt,name=ip_type,json=ipType,enum=cloudprober.rds.IPConfig_IPType" json:"ip_type,omitempty"` 306 IpVersion *IPConfig_IPVersion `protobuf:"varint,2,opt,name=ip_version,json=ipVersion,enum=cloudprober.rds.IPConfig_IPVersion" json:"ip_version,omitempty"` 307 } 308 309 // Default values for IPConfig fields. 310 const ( 311 Default_IPConfig_NicIndex = int32(0) 312 ) 313 314 func (x *IPConfig) Reset() { 315 *x = IPConfig{} 316 if protoimpl.UnsafeEnabled { 317 mi := &file_github_com_google_cloudprober_rds_proto_rds_proto_msgTypes[2] 318 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 319 ms.StoreMessageInfo(mi) 320 } 321 } 322 323 func (x *IPConfig) String() string { 324 return protoimpl.X.MessageStringOf(x) 325 } 326 327 func (*IPConfig) ProtoMessage() {} 328 329 func (x *IPConfig) ProtoReflect() protoreflect.Message { 330 mi := &file_github_com_google_cloudprober_rds_proto_rds_proto_msgTypes[2] 331 if protoimpl.UnsafeEnabled && x != nil { 332 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 333 if ms.LoadMessageInfo() == nil { 334 ms.StoreMessageInfo(mi) 335 } 336 return ms 337 } 338 return mi.MessageOf(x) 339 } 340 341 // Deprecated: Use IPConfig.ProtoReflect.Descriptor instead. 342 func (*IPConfig) Descriptor() ([]byte, []int) { 343 return file_github_com_google_cloudprober_rds_proto_rds_proto_rawDescGZIP(), []int{2} 344 } 345 346 func (x *IPConfig) GetNicIndex() int32 { 347 if x != nil && x.NicIndex != nil { 348 return *x.NicIndex 349 } 350 return Default_IPConfig_NicIndex 351 } 352 353 func (x *IPConfig) GetIpType() IPConfig_IPType { 354 if x != nil && x.IpType != nil { 355 return *x.IpType 356 } 357 return IPConfig_DEFAULT 358 } 359 360 func (x *IPConfig) GetIpVersion() IPConfig_IPVersion { 361 if x != nil && x.IpVersion != nil { 362 return *x.IpVersion 363 } 364 return IPConfig_IP_VERSION_UNSPECIFIED 365 } 366 367 type Resource struct { 368 state protoimpl.MessageState 369 sizeCache protoimpl.SizeCache 370 unknownFields protoimpl.UnknownFields 371 372 // Resource name. 373 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 374 // Resource's IP address, selected based on the request's ip_config. 375 Ip *string `protobuf:"bytes,2,opt,name=ip" json:"ip,omitempty"` 376 // Resource's port, if any. 377 Port *int32 `protobuf:"varint,5,opt,name=port" json:"port,omitempty"` 378 // Resource's labels, if any. 379 Labels map[string]string `protobuf:"bytes,6,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 380 // Last updated (in unix epoch). 381 LastUpdated *int64 `protobuf:"varint,7,opt,name=last_updated,json=lastUpdated" json:"last_updated,omitempty"` 382 // Id associated with the resource, if any. 383 Id *string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"` 384 // Optional info associated with the resource. Some resource type may make use 385 // of it. 386 Info []byte `protobuf:"bytes,4,opt,name=info" json:"info,omitempty"` 387 } 388 389 func (x *Resource) Reset() { 390 *x = Resource{} 391 if protoimpl.UnsafeEnabled { 392 mi := &file_github_com_google_cloudprober_rds_proto_rds_proto_msgTypes[3] 393 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 394 ms.StoreMessageInfo(mi) 395 } 396 } 397 398 func (x *Resource) String() string { 399 return protoimpl.X.MessageStringOf(x) 400 } 401 402 func (*Resource) ProtoMessage() {} 403 404 func (x *Resource) ProtoReflect() protoreflect.Message { 405 mi := &file_github_com_google_cloudprober_rds_proto_rds_proto_msgTypes[3] 406 if protoimpl.UnsafeEnabled && x != nil { 407 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 408 if ms.LoadMessageInfo() == nil { 409 ms.StoreMessageInfo(mi) 410 } 411 return ms 412 } 413 return mi.MessageOf(x) 414 } 415 416 // Deprecated: Use Resource.ProtoReflect.Descriptor instead. 417 func (*Resource) Descriptor() ([]byte, []int) { 418 return file_github_com_google_cloudprober_rds_proto_rds_proto_rawDescGZIP(), []int{3} 419 } 420 421 func (x *Resource) GetName() string { 422 if x != nil && x.Name != nil { 423 return *x.Name 424 } 425 return "" 426 } 427 428 func (x *Resource) GetIp() string { 429 if x != nil && x.Ip != nil { 430 return *x.Ip 431 } 432 return "" 433 } 434 435 func (x *Resource) GetPort() int32 { 436 if x != nil && x.Port != nil { 437 return *x.Port 438 } 439 return 0 440 } 441 442 func (x *Resource) GetLabels() map[string]string { 443 if x != nil { 444 return x.Labels 445 } 446 return nil 447 } 448 449 func (x *Resource) GetLastUpdated() int64 { 450 if x != nil && x.LastUpdated != nil { 451 return *x.LastUpdated 452 } 453 return 0 454 } 455 456 func (x *Resource) GetId() string { 457 if x != nil && x.Id != nil { 458 return *x.Id 459 } 460 return "" 461 } 462 463 func (x *Resource) GetInfo() []byte { 464 if x != nil { 465 return x.Info 466 } 467 return nil 468 } 469 470 type ListResourcesResponse struct { 471 state protoimpl.MessageState 472 sizeCache protoimpl.SizeCache 473 unknownFields protoimpl.UnknownFields 474 475 // There may not be any resources in the response if request contains the 476 // "if_modified_since" field and provider "knows" that nothing has changed since 477 // the if_modified_since timestamp. 478 Resources []*Resource `protobuf:"bytes,1,rep,name=resources" json:"resources,omitempty"` 479 // When were resources last modified. This field will always be set if 480 // provider has a way of figuring out last_modified timestamp for its 481 // resources. 482 LastModified *int64 `protobuf:"varint,2,opt,name=last_modified,json=lastModified" json:"last_modified,omitempty"` 483 } 484 485 func (x *ListResourcesResponse) Reset() { 486 *x = ListResourcesResponse{} 487 if protoimpl.UnsafeEnabled { 488 mi := &file_github_com_google_cloudprober_rds_proto_rds_proto_msgTypes[4] 489 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 490 ms.StoreMessageInfo(mi) 491 } 492 } 493 494 func (x *ListResourcesResponse) String() string { 495 return protoimpl.X.MessageStringOf(x) 496 } 497 498 func (*ListResourcesResponse) ProtoMessage() {} 499 500 func (x *ListResourcesResponse) ProtoReflect() protoreflect.Message { 501 mi := &file_github_com_google_cloudprober_rds_proto_rds_proto_msgTypes[4] 502 if protoimpl.UnsafeEnabled && x != nil { 503 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 504 if ms.LoadMessageInfo() == nil { 505 ms.StoreMessageInfo(mi) 506 } 507 return ms 508 } 509 return mi.MessageOf(x) 510 } 511 512 // Deprecated: Use ListResourcesResponse.ProtoReflect.Descriptor instead. 513 func (*ListResourcesResponse) Descriptor() ([]byte, []int) { 514 return file_github_com_google_cloudprober_rds_proto_rds_proto_rawDescGZIP(), []int{4} 515 } 516 517 func (x *ListResourcesResponse) GetResources() []*Resource { 518 if x != nil { 519 return x.Resources 520 } 521 return nil 522 } 523 524 func (x *ListResourcesResponse) GetLastModified() int64 { 525 if x != nil && x.LastModified != nil { 526 return *x.LastModified 527 } 528 return 0 529 } 530 531 var File_github_com_google_cloudprober_rds_proto_rds_proto protoreflect.FileDescriptor 532 533 var file_github_com_google_cloudprober_rds_proto_rds_proto_rawDesc = []byte{ 534 0x0a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 535 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 536 0x72, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x64, 0x73, 0x2e, 0x70, 0x72, 537 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 538 0x2e, 0x72, 0x64, 0x73, 0x22, 0xec, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 539 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 540 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 541 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 542 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 543 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x2f, 544 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 545 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x72, 0x64, 0x73, 546 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 547 0x36, 0x0a, 0x09, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 548 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 549 0x2e, 0x72, 0x64, 0x73, 0x2e, 0x49, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x69, 550 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2a, 0x0a, 0x11, 0x69, 0x66, 0x5f, 0x6d, 0x6f, 551 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 552 0x28, 0x03, 0x52, 0x0f, 0x69, 0x66, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x53, 0x69, 553 0x6e, 0x63, 0x65, 0x22, 0x30, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x10, 0x0a, 554 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 555 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x02, 0x28, 0x09, 0x52, 0x05, 556 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x94, 0x02, 0x0a, 0x08, 0x49, 0x50, 0x43, 0x6f, 0x6e, 0x66, 557 0x69, 0x67, 0x12, 0x1e, 0x0a, 0x09, 0x6e, 0x69, 0x63, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 558 0x01, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x01, 0x30, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x49, 0x6e, 0x64, 559 0x65, 0x78, 0x12, 0x39, 0x0a, 0x07, 0x69, 0x70, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 560 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 561 0x72, 0x2e, 0x72, 0x64, 0x73, 0x2e, 0x49, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x49, 562 0x50, 0x54, 0x79, 0x70, 0x65, 0x52, 0x06, 0x69, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x42, 0x0a, 563 0x0a, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 564 0x0e, 0x32, 0x23, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 565 0x72, 0x64, 0x73, 0x2e, 0x49, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x49, 0x50, 0x56, 566 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x69, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 567 0x6e, 0x22, 0x2c, 0x0a, 0x06, 0x49, 0x50, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x44, 568 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x55, 0x42, 0x4c, 569 0x49, 0x43, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4c, 0x49, 0x41, 0x53, 0x10, 0x02, 0x22, 570 0x3b, 0x0a, 0x09, 0x49, 0x50, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x16, 571 0x49, 0x50, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 572 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x34, 573 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x36, 0x10, 0x02, 0x22, 0x83, 0x02, 0x0a, 574 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 575 0x65, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 576 0x02, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x12, 0x0a, 577 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 578 0x74, 0x12, 0x3d, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 579 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 580 0x72, 0x64, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x4c, 0x61, 0x62, 581 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 582 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 583 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 584 0x74, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 585 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 586 0x0c, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 587 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 588 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 589 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 590 0x38, 0x01, 0x22, 0x75, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 591 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x09, 0x72, 592 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 593 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x72, 0x64, 0x73, 594 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 595 0x72, 0x63, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 596 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6c, 0x61, 0x73, 597 0x74, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x32, 0x75, 0x0a, 0x11, 0x52, 0x65, 0x73, 598 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x12, 0x60, 599 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 600 0x25, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x72, 0x64, 601 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 602 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 603 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x72, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 604 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 605 0x42, 0x29, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 606 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 607 0x72, 0x2f, 0x72, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 608 } 609 610 var ( 611 file_github_com_google_cloudprober_rds_proto_rds_proto_rawDescOnce sync.Once 612 file_github_com_google_cloudprober_rds_proto_rds_proto_rawDescData = file_github_com_google_cloudprober_rds_proto_rds_proto_rawDesc 613 ) 614 615 func file_github_com_google_cloudprober_rds_proto_rds_proto_rawDescGZIP() []byte { 616 file_github_com_google_cloudprober_rds_proto_rds_proto_rawDescOnce.Do(func() { 617 file_github_com_google_cloudprober_rds_proto_rds_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_rds_proto_rds_proto_rawDescData) 618 }) 619 return file_github_com_google_cloudprober_rds_proto_rds_proto_rawDescData 620 } 621 622 var file_github_com_google_cloudprober_rds_proto_rds_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 623 var file_github_com_google_cloudprober_rds_proto_rds_proto_msgTypes = make([]protoimpl.MessageInfo, 6) 624 var file_github_com_google_cloudprober_rds_proto_rds_proto_goTypes = []interface{}{ 625 (IPConfig_IPType)(0), // 0: cloudprober.rds.IPConfig.IPType 626 (IPConfig_IPVersion)(0), // 1: cloudprober.rds.IPConfig.IPVersion 627 (*ListResourcesRequest)(nil), // 2: cloudprober.rds.ListResourcesRequest 628 (*Filter)(nil), // 3: cloudprober.rds.Filter 629 (*IPConfig)(nil), // 4: cloudprober.rds.IPConfig 630 (*Resource)(nil), // 5: cloudprober.rds.Resource 631 (*ListResourcesResponse)(nil), // 6: cloudprober.rds.ListResourcesResponse 632 nil, // 7: cloudprober.rds.Resource.LabelsEntry 633 } 634 var file_github_com_google_cloudprober_rds_proto_rds_proto_depIdxs = []int32{ 635 3, // 0: cloudprober.rds.ListResourcesRequest.filter:type_name -> cloudprober.rds.Filter 636 4, // 1: cloudprober.rds.ListResourcesRequest.ip_config:type_name -> cloudprober.rds.IPConfig 637 0, // 2: cloudprober.rds.IPConfig.ip_type:type_name -> cloudprober.rds.IPConfig.IPType 638 1, // 3: cloudprober.rds.IPConfig.ip_version:type_name -> cloudprober.rds.IPConfig.IPVersion 639 7, // 4: cloudprober.rds.Resource.labels:type_name -> cloudprober.rds.Resource.LabelsEntry 640 5, // 5: cloudprober.rds.ListResourcesResponse.resources:type_name -> cloudprober.rds.Resource 641 2, // 6: cloudprober.rds.ResourceDiscovery.ListResources:input_type -> cloudprober.rds.ListResourcesRequest 642 6, // 7: cloudprober.rds.ResourceDiscovery.ListResources:output_type -> cloudprober.rds.ListResourcesResponse 643 7, // [7:8] is the sub-list for method output_type 644 6, // [6:7] is the sub-list for method input_type 645 6, // [6:6] is the sub-list for extension type_name 646 6, // [6:6] is the sub-list for extension extendee 647 0, // [0:6] is the sub-list for field type_name 648 } 649 650 func init() { file_github_com_google_cloudprober_rds_proto_rds_proto_init() } 651 func file_github_com_google_cloudprober_rds_proto_rds_proto_init() { 652 if File_github_com_google_cloudprober_rds_proto_rds_proto != nil { 653 return 654 } 655 if !protoimpl.UnsafeEnabled { 656 file_github_com_google_cloudprober_rds_proto_rds_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 657 switch v := v.(*ListResourcesRequest); i { 658 case 0: 659 return &v.state 660 case 1: 661 return &v.sizeCache 662 case 2: 663 return &v.unknownFields 664 default: 665 return nil 666 } 667 } 668 file_github_com_google_cloudprober_rds_proto_rds_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 669 switch v := v.(*Filter); i { 670 case 0: 671 return &v.state 672 case 1: 673 return &v.sizeCache 674 case 2: 675 return &v.unknownFields 676 default: 677 return nil 678 } 679 } 680 file_github_com_google_cloudprober_rds_proto_rds_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 681 switch v := v.(*IPConfig); i { 682 case 0: 683 return &v.state 684 case 1: 685 return &v.sizeCache 686 case 2: 687 return &v.unknownFields 688 default: 689 return nil 690 } 691 } 692 file_github_com_google_cloudprober_rds_proto_rds_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 693 switch v := v.(*Resource); i { 694 case 0: 695 return &v.state 696 case 1: 697 return &v.sizeCache 698 case 2: 699 return &v.unknownFields 700 default: 701 return nil 702 } 703 } 704 file_github_com_google_cloudprober_rds_proto_rds_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 705 switch v := v.(*ListResourcesResponse); i { 706 case 0: 707 return &v.state 708 case 1: 709 return &v.sizeCache 710 case 2: 711 return &v.unknownFields 712 default: 713 return nil 714 } 715 } 716 } 717 type x struct{} 718 out := protoimpl.TypeBuilder{ 719 File: protoimpl.DescBuilder{ 720 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 721 RawDescriptor: file_github_com_google_cloudprober_rds_proto_rds_proto_rawDesc, 722 NumEnums: 2, 723 NumMessages: 6, 724 NumExtensions: 0, 725 NumServices: 1, 726 }, 727 GoTypes: file_github_com_google_cloudprober_rds_proto_rds_proto_goTypes, 728 DependencyIndexes: file_github_com_google_cloudprober_rds_proto_rds_proto_depIdxs, 729 EnumInfos: file_github_com_google_cloudprober_rds_proto_rds_proto_enumTypes, 730 MessageInfos: file_github_com_google_cloudprober_rds_proto_rds_proto_msgTypes, 731 }.Build() 732 File_github_com_google_cloudprober_rds_proto_rds_proto = out.File 733 file_github_com_google_cloudprober_rds_proto_rds_proto_rawDesc = nil 734 file_github_com_google_cloudprober_rds_proto_rds_proto_goTypes = nil 735 file_github_com_google_cloudprober_rds_proto_rds_proto_depIdxs = nil 736 } 737 738 // Reference imports to suppress errors if they are not otherwise used. 739 var _ context.Context 740 var _ grpc.ClientConnInterface 741 742 // This is a compile-time assertion to ensure that this generated file 743 // is compatible with the grpc package it is being compiled against. 744 const _ = grpc.SupportPackageIsVersion6 745 746 // ResourceDiscoveryClient is the client API for ResourceDiscovery service. 747 // 748 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 749 type ResourceDiscoveryClient interface { 750 // ListResources returns the list of resources matching the URI provided in 751 // the request. 752 ListResources(ctx context.Context, in *ListResourcesRequest, opts ...grpc.CallOption) (*ListResourcesResponse, error) 753 } 754 755 type resourceDiscoveryClient struct { 756 cc grpc.ClientConnInterface 757 } 758 759 func NewResourceDiscoveryClient(cc grpc.ClientConnInterface) ResourceDiscoveryClient { 760 return &resourceDiscoveryClient{cc} 761 } 762 763 func (c *resourceDiscoveryClient) ListResources(ctx context.Context, in *ListResourcesRequest, opts ...grpc.CallOption) (*ListResourcesResponse, error) { 764 out := new(ListResourcesResponse) 765 err := c.cc.Invoke(ctx, "/cloudprober.rds.ResourceDiscovery/ListResources", in, out, opts...) 766 if err != nil { 767 return nil, err 768 } 769 return out, nil 770 } 771 772 // ResourceDiscoveryServer is the server API for ResourceDiscovery service. 773 type ResourceDiscoveryServer interface { 774 // ListResources returns the list of resources matching the URI provided in 775 // the request. 776 ListResources(context.Context, *ListResourcesRequest) (*ListResourcesResponse, error) 777 } 778 779 // UnimplementedResourceDiscoveryServer can be embedded to have forward compatible implementations. 780 type UnimplementedResourceDiscoveryServer struct { 781 } 782 783 func (*UnimplementedResourceDiscoveryServer) ListResources(context.Context, *ListResourcesRequest) (*ListResourcesResponse, error) { 784 return nil, status.Errorf(codes.Unimplemented, "method ListResources not implemented") 785 } 786 787 func RegisterResourceDiscoveryServer(s *grpc.Server, srv ResourceDiscoveryServer) { 788 s.RegisterService(&_ResourceDiscovery_serviceDesc, srv) 789 } 790 791 func _ResourceDiscovery_ListResources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 792 in := new(ListResourcesRequest) 793 if err := dec(in); err != nil { 794 return nil, err 795 } 796 if interceptor == nil { 797 return srv.(ResourceDiscoveryServer).ListResources(ctx, in) 798 } 799 info := &grpc.UnaryServerInfo{ 800 Server: srv, 801 FullMethod: "/cloudprober.rds.ResourceDiscovery/ListResources", 802 } 803 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 804 return srv.(ResourceDiscoveryServer).ListResources(ctx, req.(*ListResourcesRequest)) 805 } 806 return interceptor(ctx, in, info, handler) 807 } 808 809 var _ResourceDiscovery_serviceDesc = grpc.ServiceDesc{ 810 ServiceName: "cloudprober.rds.ResourceDiscovery", 811 HandlerType: (*ResourceDiscoveryServer)(nil), 812 Methods: []grpc.MethodDesc{ 813 { 814 MethodName: "ListResources", 815 Handler: _ResourceDiscovery_ListResources_Handler, 816 }, 817 }, 818 Streams: []grpc.StreamDesc{}, 819 Metadata: "github.com/google/cloudprober/rds/proto/rds.proto", 820 }