| 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/service/discovery/v2/hds.proto |
| 6 |
|
| 7 |
package discoveryv2 |
| 8 |
|
| 9 |
import ( |
| 10 |
_ "github.com/cncf/xds/go/udpa/annotations" |
| 11 |
core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" |
| 12 |
endpoint "github.com/envoyproxy/go-control-plane/envoy/api/v2/endpoint" |
| 13 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 14 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 15 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 16 |
durationpb "google.golang.org/protobuf/types/known/durationpb" |
| 17 |
reflect "reflect" |
| 18 |
sync "sync" |
| 19 |
) |
| 20 |
|
| 21 |
const ( |
| 22 |
// Verify that this generated code is sufficiently up-to-date. |
| 23 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 24 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 25 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 26 |
) |
| 27 |
|
| 28 |
// Different Envoy instances may have different capabilities (e.g. Redis) |
| 29 |
// and/or have ports enabled for different protocols. |
| 30 |
type Capability_Protocol int32 |
| 31 |
|
| 32 |
const ( |
| 33 |
Capability_HTTP Capability_Protocol = 0 |
| 34 |
Capability_TCP Capability_Protocol = 1 |
| 35 |
Capability_REDIS Capability_Protocol = 2 |
| 36 |
) |
| 37 |
|
| 38 |
// Enum value maps for Capability_Protocol. |
| 39 |
var ( |
| 40 |
Capability_Protocol_name = map[int32]string{ |
| 41 |
0: "HTTP", |
| 42 |
1: "TCP", |
| 43 |
2: "REDIS", |
| 44 |
} |
| 45 |
Capability_Protocol_value = map[string]int32{ |
| 46 |
"HTTP": 0, |
| 47 |
"TCP": 1, |
| 48 |
"REDIS": 2, |
| 49 |
} |
| 50 |
) |
| 51 |
|
| 52 |
func (x Capability_Protocol) Enum() *Capability_Protocol { |
| 53 |
p := new(Capability_Protocol) |
| 54 |
*p = x |
| 55 |
return p |
| 56 |
} |
| 57 |
|
| 58 |
func (x Capability_Protocol) String() string { |
| 59 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 60 |
} |
| 61 |
|
| 62 |
func (Capability_Protocol) Descriptor() protoreflect.EnumDescriptor { |
| 63 |
return file_envoy_service_discovery_v2_hds_proto_enumTypes[0].Descriptor() |
| 64 |
} |
| 65 |
|
| 66 |
func (Capability_Protocol) Type() protoreflect.EnumType { |
| 67 |
return &file_envoy_service_discovery_v2_hds_proto_enumTypes[0] |
| 68 |
} |
| 69 |
|
| 70 |
func (x Capability_Protocol) Number() protoreflect.EnumNumber { |
| 71 |
return protoreflect.EnumNumber(x) |
| 72 |
} |
| 73 |
|
| 74 |
// Deprecated: Use Capability_Protocol.Descriptor instead. |
| 75 |
func (Capability_Protocol) EnumDescriptor() ([]byte, []int) { |
| 76 |
return file_envoy_service_discovery_v2_hds_proto_rawDescGZIP(), []int{0, 0} |
| 77 |
} |
| 78 |
|
| 79 |
// Defines supported protocols etc, so the management server can assign proper |
| 80 |
// endpoints to healthcheck. |
| 81 |
type Capability struct { |
| 82 |
state protoimpl.MessageState |
| 83 |
sizeCache protoimpl.SizeCache |
| 84 |
unknownFields protoimpl.UnknownFields |
| 85 |
|
| 86 |
HealthCheckProtocols []Capability_Protocol `protobuf:"varint,1,rep,packed,name=health_check_protocols,json=healthCheckProtocols,proto3,enum=envoy.service.discovery.v2.Capability_Protocol" json:"health_check_protocols,omitempty"` |
| 87 |
} |
| 88 |
|
| 89 |
func (x *Capability) Reset() { |
| 90 |
*x = Capability{} |
| 91 |
if protoimpl.UnsafeEnabled { |
| 92 |
mi := &file_envoy_service_discovery_v2_hds_proto_msgTypes[0] |
| 93 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 94 |
ms.StoreMessageInfo(mi) |
| 95 |
} |
| 96 |
} |
| 97 |
|
| 98 |
func (x *Capability) String() string { |
| 99 |
return protoimpl.X.MessageStringOf(x) |
| 100 |
} |
| 101 |
|
| 102 |
func (*Capability) ProtoMessage() {} |
| 103 |
|
| 104 |
func (x *Capability) ProtoReflect() protoreflect.Message { |
| 105 |
mi := &file_envoy_service_discovery_v2_hds_proto_msgTypes[0] |
| 106 |
if protoimpl.UnsafeEnabled && x != nil { |
| 107 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 108 |
if ms.LoadMessageInfo() == nil { |
| 109 |
ms.StoreMessageInfo(mi) |
| 110 |
} |
| 111 |
return ms |
| 112 |
} |
| 113 |
return mi.MessageOf(x) |
| 114 |
} |
| 115 |
|
| 116 |
// Deprecated: Use Capability.ProtoReflect.Descriptor instead. |
| 117 |
func (*Capability) Descriptor() ([]byte, []int) { |
| 118 |
return file_envoy_service_discovery_v2_hds_proto_rawDescGZIP(), []int{0} |
| 119 |
} |
| 120 |
|
| 121 |
func (x *Capability) GetHealthCheckProtocols() []Capability_Protocol { |
| 122 |
if x != nil { |
| 123 |
return x.HealthCheckProtocols |
| 124 |
} |
| 125 |
return nil |
| 126 |
} |
| 127 |
|
| 128 |
type HealthCheckRequest struct { |
| 129 |
state protoimpl.MessageState |
| 130 |
sizeCache protoimpl.SizeCache |
| 131 |
unknownFields protoimpl.UnknownFields |
| 132 |
|
| 133 |
Node *core.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` |
| 134 |
Capability *Capability `protobuf:"bytes,2,opt,name=capability,proto3" json:"capability,omitempty"` |
| 135 |
} |
| 136 |
|
| 137 |
func (x *HealthCheckRequest) Reset() { |
| 138 |
*x = HealthCheckRequest{} |
| 139 |
if protoimpl.UnsafeEnabled { |
| 140 |
mi := &file_envoy_service_discovery_v2_hds_proto_msgTypes[1] |
| 141 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 142 |
ms.StoreMessageInfo(mi) |
| 143 |
} |
| 144 |
} |
| 145 |
|
| 146 |
func (x *HealthCheckRequest) String() string { |
| 147 |
return protoimpl.X.MessageStringOf(x) |
| 148 |
} |
| 149 |
|
| 150 |
func (*HealthCheckRequest) ProtoMessage() {} |
| 151 |
|
| 152 |
func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message { |
| 153 |
mi := &file_envoy_service_discovery_v2_hds_proto_msgTypes[1] |
| 154 |
if protoimpl.UnsafeEnabled && x != nil { |
| 155 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 156 |
if ms.LoadMessageInfo() == nil { |
| 157 |
ms.StoreMessageInfo(mi) |
| 158 |
} |
| 159 |
return ms |
| 160 |
} |
| 161 |
return mi.MessageOf(x) |
| 162 |
} |
| 163 |
|
| 164 |
// Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead. |
| 165 |
func (*HealthCheckRequest) Descriptor() ([]byte, []int) { |
| 166 |
return file_envoy_service_discovery_v2_hds_proto_rawDescGZIP(), []int{1} |
| 167 |
} |
| 168 |
|
| 169 |
func (x *HealthCheckRequest) GetNode() *core.Node { |
| 170 |
if x != nil { |
| 171 |
return x.Node |
| 172 |
} |
| 173 |
return nil |
| 174 |
} |
| 175 |
|
| 176 |
func (x *HealthCheckRequest) GetCapability() *Capability { |
| 177 |
if x != nil { |
| 178 |
return x.Capability |
| 179 |
} |
| 180 |
return nil |
| 181 |
} |
| 182 |
|
| 183 |
type EndpointHealth struct { |
| 184 |
state protoimpl.MessageState |
| 185 |
sizeCache protoimpl.SizeCache |
| 186 |
unknownFields protoimpl.UnknownFields |
| 187 |
|
| 188 |
Endpoint *endpoint.Endpoint `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` |
| 189 |
HealthStatus core.HealthStatus `protobuf:"varint,2,opt,name=health_status,json=healthStatus,proto3,enum=envoy.api.v2.core.HealthStatus" json:"health_status,omitempty"` |
| 190 |
} |
| 191 |
|
| 192 |
func (x *EndpointHealth) Reset() { |
| 193 |
*x = EndpointHealth{} |
| 194 |
if protoimpl.UnsafeEnabled { |
| 195 |
mi := &file_envoy_service_discovery_v2_hds_proto_msgTypes[2] |
| 196 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 197 |
ms.StoreMessageInfo(mi) |
| 198 |
} |
| 199 |
} |
| 200 |
|
| 201 |
func (x *EndpointHealth) String() string { |
| 202 |
return protoimpl.X.MessageStringOf(x) |
| 203 |
} |
| 204 |
|
| 205 |
func (*EndpointHealth) ProtoMessage() {} |
| 206 |
|
| 207 |
func (x *EndpointHealth) ProtoReflect() protoreflect.Message { |
| 208 |
mi := &file_envoy_service_discovery_v2_hds_proto_msgTypes[2] |
| 209 |
if protoimpl.UnsafeEnabled && x != nil { |
| 210 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 211 |
if ms.LoadMessageInfo() == nil { |
| 212 |
ms.StoreMessageInfo(mi) |
| 213 |
} |
| 214 |
return ms |
| 215 |
} |
| 216 |
return mi.MessageOf(x) |
| 217 |
} |
| 218 |
|
| 219 |
// Deprecated: Use EndpointHealth.ProtoReflect.Descriptor instead. |
| 220 |
func (*EndpointHealth) Descriptor() ([]byte, []int) { |
| 221 |
return file_envoy_service_discovery_v2_hds_proto_rawDescGZIP(), []int{2} |
| 222 |
} |
| 223 |
|
| 224 |
func (x *EndpointHealth) GetEndpoint() *endpoint.Endpoint { |
| 225 |
if x != nil { |
| 226 |
return x.Endpoint |
| 227 |
} |
| 228 |
return nil |
| 229 |
} |
| 230 |
|
| 231 |
func (x *EndpointHealth) GetHealthStatus() core.HealthStatus { |
| 232 |
if x != nil { |
| 233 |
return x.HealthStatus |
| 234 |
} |
| 235 |
return core.HealthStatus(0) |
| 236 |
} |
| 237 |
|
| 238 |
type EndpointHealthResponse struct { |
| 239 |
state protoimpl.MessageState |
| 240 |
sizeCache protoimpl.SizeCache |
| 241 |
unknownFields protoimpl.UnknownFields |
| 242 |
|
| 243 |
EndpointsHealth []*EndpointHealth `protobuf:"bytes,1,rep,name=endpoints_health,json=endpointsHealth,proto3" json:"endpoints_health,omitempty"` |
| 244 |
} |
| 245 |
|
| 246 |
func (x *EndpointHealthResponse) Reset() { |
| 247 |
*x = EndpointHealthResponse{} |
| 248 |
if protoimpl.UnsafeEnabled { |
| 249 |
mi := &file_envoy_service_discovery_v2_hds_proto_msgTypes[3] |
| 250 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 251 |
ms.StoreMessageInfo(mi) |
| 252 |
} |
| 253 |
} |
| 254 |
|
| 255 |
func (x *EndpointHealthResponse) String() string { |
| 256 |
return protoimpl.X.MessageStringOf(x) |
| 257 |
} |
| 258 |
|
| 259 |
func (*EndpointHealthResponse) ProtoMessage() {} |
| 260 |
|
| 261 |
func (x *EndpointHealthResponse) ProtoReflect() protoreflect.Message { |
| 262 |
mi := &file_envoy_service_discovery_v2_hds_proto_msgTypes[3] |
| 263 |
if protoimpl.UnsafeEnabled && x != nil { |
| 264 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 265 |
if ms.LoadMessageInfo() == nil { |
| 266 |
ms.StoreMessageInfo(mi) |
| 267 |
} |
| 268 |
return ms |
| 269 |
} |
| 270 |
return mi.MessageOf(x) |
| 271 |
} |
| 272 |
|
| 273 |
// Deprecated: Use EndpointHealthResponse.ProtoReflect.Descriptor instead. |
| 274 |
func (*EndpointHealthResponse) Descriptor() ([]byte, []int) { |
| 275 |
return file_envoy_service_discovery_v2_hds_proto_rawDescGZIP(), []int{3} |
| 276 |
} |
| 277 |
|
| 278 |
func (x *EndpointHealthResponse) GetEndpointsHealth() []*EndpointHealth { |
| 279 |
if x != nil { |
| 280 |
return x.EndpointsHealth |
| 281 |
} |
| 282 |
return nil |
| 283 |
} |
| 284 |
|
| 285 |
type HealthCheckRequestOrEndpointHealthResponse struct { |
| 286 |
state protoimpl.MessageState |
| 287 |
sizeCache protoimpl.SizeCache |
| 288 |
unknownFields protoimpl.UnknownFields |
| 289 |
|
| 290 |
// Types that are assignable to RequestType: |
| 291 |
// |
| 292 |
// *HealthCheckRequestOrEndpointHealthResponse_HealthCheckRequest |
| 293 |
// *HealthCheckRequestOrEndpointHealthResponse_EndpointHealthResponse |
| 294 |
RequestType isHealthCheckRequestOrEndpointHealthResponse_RequestType `protobuf_oneof:"request_type"` |
| 295 |
} |
| 296 |
|
| 297 |
func (x *HealthCheckRequestOrEndpointHealthResponse) Reset() { |
| 298 |
*x = HealthCheckRequestOrEndpointHealthResponse{} |
| 299 |
if protoimpl.UnsafeEnabled { |
| 300 |
mi := &file_envoy_service_discovery_v2_hds_proto_msgTypes[4] |
| 301 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 302 |
ms.StoreMessageInfo(mi) |
| 303 |
} |
| 304 |
} |
| 305 |
|
| 306 |
func (x *HealthCheckRequestOrEndpointHealthResponse) String() string { |
| 307 |
return protoimpl.X.MessageStringOf(x) |
| 308 |
} |
| 309 |
|
| 310 |
func (*HealthCheckRequestOrEndpointHealthResponse) ProtoMessage() {} |
| 311 |
|
| 312 |
func (x *HealthCheckRequestOrEndpointHealthResponse) ProtoReflect() protoreflect.Message { |
| 313 |
mi := &file_envoy_service_discovery_v2_hds_proto_msgTypes[4] |
| 314 |
if protoimpl.UnsafeEnabled && x != nil { |
| 315 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 316 |
if ms.LoadMessageInfo() == nil { |
| 317 |
ms.StoreMessageInfo(mi) |
| 318 |
} |
| 319 |
return ms |
| 320 |
} |
| 321 |
return mi.MessageOf(x) |
| 322 |
} |
| 323 |
|
| 324 |
// Deprecated: Use HealthCheckRequestOrEndpointHealthResponse.ProtoReflect.Descriptor instead. |
| 325 |
func (*HealthCheckRequestOrEndpointHealthResponse) Descriptor() ([]byte, []int) { |
| 326 |
return file_envoy_service_discovery_v2_hds_proto_rawDescGZIP(), []int{4} |
| 327 |
} |
| 328 |
|
| 329 |
func (m *HealthCheckRequestOrEndpointHealthResponse) GetRequestType() isHealthCheckRequestOrEndpointHealthResponse_RequestType { |
| 330 |
if m != nil { |
| 331 |
return m.RequestType |
| 332 |
} |
| 333 |
return nil |
| 334 |
} |
| 335 |
|
| 336 |
func (x *HealthCheckRequestOrEndpointHealthResponse) GetHealthCheckRequest() *HealthCheckRequest { |
| 337 |
if x, ok := x.GetRequestType().(*HealthCheckRequestOrEndpointHealthResponse_HealthCheckRequest); ok { |
| 338 |
return x.HealthCheckRequest |
| 339 |
} |
| 340 |
return nil |
| 341 |
} |
| 342 |
|
| 343 |
func (x *HealthCheckRequestOrEndpointHealthResponse) GetEndpointHealthResponse() *EndpointHealthResponse { |
| 344 |
if x, ok := x.GetRequestType().(*HealthCheckRequestOrEndpointHealthResponse_EndpointHealthResponse); ok { |
| 345 |
return x.EndpointHealthResponse |
| 346 |
} |
| 347 |
return nil |
| 348 |
} |
| 349 |
|
| 350 |
type isHealthCheckRequestOrEndpointHealthResponse_RequestType interface { |
| 351 |
isHealthCheckRequestOrEndpointHealthResponse_RequestType() |
| 352 |
} |
| 353 |
|
| 354 |
type HealthCheckRequestOrEndpointHealthResponse_HealthCheckRequest struct { |
| 355 |
HealthCheckRequest *HealthCheckRequest `protobuf:"bytes,1,opt,name=health_check_request,json=healthCheckRequest,proto3,oneof"` |
| 356 |
} |
| 357 |
|
| 358 |
type HealthCheckRequestOrEndpointHealthResponse_EndpointHealthResponse struct { |
| 359 |
EndpointHealthResponse *EndpointHealthResponse `protobuf:"bytes,2,opt,name=endpoint_health_response,json=endpointHealthResponse,proto3,oneof"` |
| 360 |
} |
| 361 |
|
| 362 |
func (*HealthCheckRequestOrEndpointHealthResponse_HealthCheckRequest) isHealthCheckRequestOrEndpointHealthResponse_RequestType() { |
| 363 |
} |
| 364 |
|
| 365 |
func (*HealthCheckRequestOrEndpointHealthResponse_EndpointHealthResponse) isHealthCheckRequestOrEndpointHealthResponse_RequestType() { |
| 366 |
} |
| 367 |
|
| 368 |
type LocalityEndpoints struct { |
| 369 |
state protoimpl.MessageState |
| 370 |
sizeCache protoimpl.SizeCache |
| 371 |
unknownFields protoimpl.UnknownFields |
| 372 |
|
| 373 |
Locality *core.Locality `protobuf:"bytes,1,opt,name=locality,proto3" json:"locality,omitempty"` |
| 374 |
Endpoints []*endpoint.Endpoint `protobuf:"bytes,2,rep,name=endpoints,proto3" json:"endpoints,omitempty"` |
| 375 |
} |
| 376 |
|
| 377 |
func (x *LocalityEndpoints) Reset() { |
| 378 |
*x = LocalityEndpoints{} |
| 379 |
if protoimpl.UnsafeEnabled { |
| 380 |
mi := &file_envoy_service_discovery_v2_hds_proto_msgTypes[5] |
| 381 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 382 |
ms.StoreMessageInfo(mi) |
| 383 |
} |
| 384 |
} |
| 385 |
|
| 386 |
func (x *LocalityEndpoints) String() string { |
| 387 |
return protoimpl.X.MessageStringOf(x) |
| 388 |
} |
| 389 |
|
| 390 |
func (*LocalityEndpoints) ProtoMessage() {} |
| 391 |
|
| 392 |
func (x *LocalityEndpoints) ProtoReflect() protoreflect.Message { |
| 393 |
mi := &file_envoy_service_discovery_v2_hds_proto_msgTypes[5] |
| 394 |
if protoimpl.UnsafeEnabled && x != nil { |
| 395 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 396 |
if ms.LoadMessageInfo() == nil { |
| 397 |
ms.StoreMessageInfo(mi) |
| 398 |
} |
| 399 |
return ms |
| 400 |
} |
| 401 |
return mi.MessageOf(x) |
| 402 |
} |
| 403 |
|
| 404 |
// Deprecated: Use LocalityEndpoints.ProtoReflect.Descriptor instead. |
| 405 |
func (*LocalityEndpoints) Descriptor() ([]byte, []int) { |
| 406 |
return file_envoy_service_discovery_v2_hds_proto_rawDescGZIP(), []int{5} |
| 407 |
} |
| 408 |
|
| 409 |
func (x *LocalityEndpoints) GetLocality() *core.Locality { |
| 410 |
if x != nil { |
| 411 |
return x.Locality |
| 412 |
} |
| 413 |
return nil |
| 414 |
} |
| 415 |
|
| 416 |
func (x *LocalityEndpoints) GetEndpoints() []*endpoint.Endpoint { |
| 417 |
if x != nil { |
| 418 |
return x.Endpoints |
| 419 |
} |
| 420 |
return nil |
| 421 |
} |
| 422 |
|
| 423 |
// The cluster name and locality is provided to Envoy for the endpoints that it |
| 424 |
// health checks to support statistics reporting, logging and debugging by the |
| 425 |
// Envoy instance (outside of HDS). For maximum usefulness, it should match the |
| 426 |
// same cluster structure as that provided by EDS. |
| 427 |
type ClusterHealthCheck struct { |
| 428 |
state protoimpl.MessageState |
| 429 |
sizeCache protoimpl.SizeCache |
| 430 |
unknownFields protoimpl.UnknownFields |
| 431 |
|
| 432 |
ClusterName string `protobuf:"bytes,1,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` |
| 433 |
HealthChecks []*core.HealthCheck `protobuf:"bytes,2,rep,name=health_checks,json=healthChecks,proto3" json:"health_checks,omitempty"` |
| 434 |
LocalityEndpoints []*LocalityEndpoints `protobuf:"bytes,3,rep,name=locality_endpoints,json=localityEndpoints,proto3" json:"locality_endpoints,omitempty"` |
| 435 |
} |
| 436 |
|
| 437 |
func (x *ClusterHealthCheck) Reset() { |
| 438 |
*x = ClusterHealthCheck{} |
| 439 |
if protoimpl.UnsafeEnabled { |
| 440 |
mi := &file_envoy_service_discovery_v2_hds_proto_msgTypes[6] |
| 441 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 442 |
ms.StoreMessageInfo(mi) |
| 443 |
} |
| 444 |
} |
| 445 |
|
| 446 |
func (x *ClusterHealthCheck) String() string { |
| 447 |
return protoimpl.X.MessageStringOf(x) |
| 448 |
} |
| 449 |
|
| 450 |
func (*ClusterHealthCheck) ProtoMessage() {} |
| 451 |
|
| 452 |
func (x *ClusterHealthCheck) ProtoReflect() protoreflect.Message { |
| 453 |
mi := &file_envoy_service_discovery_v2_hds_proto_msgTypes[6] |
| 454 |
if protoimpl.UnsafeEnabled && x != nil { |
| 455 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 456 |
if ms.LoadMessageInfo() == nil { |
| 457 |
ms.StoreMessageInfo(mi) |
| 458 |
} |
| 459 |
return ms |
| 460 |
} |
| 461 |
return mi.MessageOf(x) |
| 462 |
} |
| 463 |
|
| 464 |
// Deprecated: Use ClusterHealthCheck.ProtoReflect.Descriptor instead. |
| 465 |
func (*ClusterHealthCheck) Descriptor() ([]byte, []int) { |
| 466 |
return file_envoy_service_discovery_v2_hds_proto_rawDescGZIP(), []int{6} |
| 467 |
} |
| 468 |
|
| 469 |
func (x *ClusterHealthCheck) GetClusterName() string { |
| 470 |
if x != nil { |
| 471 |
return x.ClusterName |
| 472 |
} |
| 473 |
return "" |
| 474 |
} |
| 475 |
|
| 476 |
func (x *ClusterHealthCheck) GetHealthChecks() []*core.HealthCheck { |
| 477 |
if x != nil { |
| 478 |
return x.HealthChecks |
| 479 |
} |
| 480 |
return nil |
| 481 |
} |
| 482 |
|
| 483 |
func (x *ClusterHealthCheck) GetLocalityEndpoints() []*LocalityEndpoints { |
| 484 |
if x != nil { |
| 485 |
return x.LocalityEndpoints |
| 486 |
} |
| 487 |
return nil |
| 488 |
} |
| 489 |
|
| 490 |
type HealthCheckSpecifier struct { |
| 491 |
state protoimpl.MessageState |
| 492 |
sizeCache protoimpl.SizeCache |
| 493 |
unknownFields protoimpl.UnknownFields |
| 494 |
|
| 495 |
ClusterHealthChecks []*ClusterHealthCheck `protobuf:"bytes,1,rep,name=cluster_health_checks,json=clusterHealthChecks,proto3" json:"cluster_health_checks,omitempty"` |
| 496 |
// The default is 1 second. |
| 497 |
Interval *durationpb.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"` |
| 498 |
} |
| 499 |
|
| 500 |
func (x *HealthCheckSpecifier) Reset() { |
| 501 |
*x = HealthCheckSpecifier{} |
| 502 |
if protoimpl.UnsafeEnabled { |
| 503 |
mi := &file_envoy_service_discovery_v2_hds_proto_msgTypes[7] |
| 504 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 505 |
ms.StoreMessageInfo(mi) |
| 506 |
} |
| 507 |
} |
| 508 |
|
| 509 |
func (x *HealthCheckSpecifier) String() string { |
| 510 |
return protoimpl.X.MessageStringOf(x) |
| 511 |
} |
| 512 |
|
| 513 |
func (*HealthCheckSpecifier) ProtoMessage() {} |
| 514 |
|
| 515 |
func (x *HealthCheckSpecifier) ProtoReflect() protoreflect.Message { |
| 516 |
mi := &file_envoy_service_discovery_v2_hds_proto_msgTypes[7] |
| 517 |
if protoimpl.UnsafeEnabled && x != nil { |
| 518 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 519 |
if ms.LoadMessageInfo() == nil { |
| 520 |
ms.StoreMessageInfo(mi) |
| 521 |
} |
| 522 |
return ms |
| 523 |
} |
| 524 |
return mi.MessageOf(x) |
| 525 |
} |
| 526 |
|
| 527 |
// Deprecated: Use HealthCheckSpecifier.ProtoReflect.Descriptor instead. |
| 528 |
func (*HealthCheckSpecifier) Descriptor() ([]byte, []int) { |
| 529 |
return file_envoy_service_discovery_v2_hds_proto_rawDescGZIP(), []int{7} |
| 530 |
} |
| 531 |
|
| 532 |
func (x *HealthCheckSpecifier) GetClusterHealthChecks() []*ClusterHealthCheck { |
| 533 |
if x != nil { |
| 534 |
return x.ClusterHealthChecks |
| 535 |
} |
| 536 |
return nil |
| 537 |
} |
| 538 |
|
| 539 |
func (x *HealthCheckSpecifier) GetInterval() *durationpb.Duration { |
| 540 |
if x != nil { |
| 541 |
return x.Interval |
| 542 |
} |
| 543 |
return nil |
| 544 |
} |
| 545 |
|
| 546 |
var File_envoy_service_discovery_v2_hds_proto protoreflect.FileDescriptor |
| 547 |
|
| 548 |
var file_envoy_service_discovery_v2_hds_proto_rawDesc = []byte{ |
| 549 |
0x0a, 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, |
| 550 |
0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x68, 0x64, 0x73, |
| 551 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, |
| 552 |
0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, |
| 553 |
0x76, 0x32, 0x1a, 0x1c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, |
| 554 |
0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 555 |
0x1a, 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x63, |
| 556 |
0x6f, 0x72, 0x65, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, |
| 557 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, |
| 558 |
0x69, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2f, 0x65, 0x6e, |
| 559 |
0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, |
| 560 |
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, |
| 561 |
0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, |
| 562 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, |
| 563 |
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, |
| 564 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, |
| 565 |
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x2e, |
| 566 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, |
| 567 |
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, |
| 568 |
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x01, 0x0a, 0x0a, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, |
| 569 |
0x69, 0x74, 0x79, 0x12, 0x65, 0x0a, 0x16, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x63, 0x68, |
| 570 |
0x65, 0x63, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x18, 0x01, 0x20, |
| 571 |
0x03, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, |
| 572 |
0x69, 0x63, 0x65, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, |
| 573 |
0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x74, |
| 574 |
0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x14, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, |
| 575 |
0x6b, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x22, 0x28, 0x0a, 0x08, 0x50, 0x72, |
| 576 |
0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, 0x00, |
| 577 |
0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x45, 0x44, |
| 578 |
0x49, 0x53, 0x10, 0x02, 0x22, 0x89, 0x01, 0x0a, 0x12, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, |
| 579 |
0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x6e, |
| 580 |
0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x65, 0x6e, 0x76, 0x6f, |
| 581 |
0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, |
| 582 |
0x64, 0x65, 0x52, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x12, 0x46, 0x0a, 0x0a, 0x63, 0x61, 0x70, 0x61, |
| 583 |
0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x65, |
| 584 |
0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x64, 0x69, 0x73, |
| 585 |
0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, |
| 586 |
0x6c, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, |
| 587 |
0x22, 0x93, 0x01, 0x0a, 0x0e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x48, 0x65, 0x61, |
| 588 |
0x6c, 0x74, 0x68, 0x12, 0x3b, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, |
| 589 |
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, |
| 590 |
0x69, 0x2e, 0x76, 0x32, 0x2e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x45, 0x6e, |
| 591 |
0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, |
| 592 |
0x12, 0x44, 0x0a, 0x0d, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, |
| 593 |
0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, |
| 594 |
0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x6c, |
| 595 |
0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0c, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, |
| 596 |
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x6f, 0x0a, 0x16, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, |
| 597 |
0x6e, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, |
| 598 |
0x12, 0x55, 0x0a, 0x10, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x5f, 0x68, 0x65, |
| 599 |
0x61, 0x6c, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x65, 0x6e, 0x76, |
| 600 |
0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, |
| 601 |
0x76, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, |
| 602 |
0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x0f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, |
| 603 |
0x73, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x22, 0x90, 0x02, 0x0a, 0x2a, 0x48, 0x65, 0x61, 0x6c, |
| 604 |
0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x72, |
| 605 |
0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, |
| 606 |
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x14, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, |
| 607 |
0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, |
| 608 |
0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, |
| 609 |
0x76, 0x69, 0x63, 0x65, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x76, |
| 610 |
0x32, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, |
| 611 |
0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x12, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, |
| 612 |
0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x6e, 0x0a, 0x18, 0x65, 0x6e, |
| 613 |
0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x72, 0x65, |
| 614 |
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x65, |
| 615 |
0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x64, 0x69, 0x73, |
| 616 |
0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, |
| 617 |
0x6e, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, |
| 618 |
0x48, 0x00, 0x52, 0x16, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x48, 0x65, 0x61, 0x6c, |
| 619 |
0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x72, 0x65, |
| 620 |
0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x8b, 0x01, 0x0a, 0x11, 0x4c, |
| 621 |
0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, |
| 622 |
0x12, 0x37, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, |
| 623 |
0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, |
| 624 |
0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x52, |
| 625 |
0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x3d, 0x0a, 0x09, 0x65, 0x6e, 0x64, |
| 626 |
0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x65, |
| 627 |
0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x65, 0x6e, 0x64, 0x70, |
| 628 |
0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x09, 0x65, |
| 629 |
0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x22, 0xda, 0x01, 0x0a, 0x12, 0x43, 0x6c, 0x75, |
| 630 |
0x73, 0x74, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, |
| 631 |
0x21, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, |
| 632 |
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, |
| 633 |
0x6d, 0x65, 0x12, 0x43, 0x0a, 0x0d, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, |
| 634 |
0x63, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x6e, 0x76, 0x6f, |
| 635 |
0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x48, 0x65, |
| 636 |
0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x0c, 0x68, 0x65, 0x61, 0x6c, 0x74, |
| 637 |
0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x12, 0x5c, 0x0a, 0x12, 0x6c, 0x6f, 0x63, 0x61, 0x6c, |
| 638 |
0x69, 0x74, 0x79, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, |
| 639 |
0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, |
| 640 |
0x69, 0x63, 0x65, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, |
| 641 |
0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, |
| 642 |
0x74, 0x73, 0x52, 0x11, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x45, 0x6e, 0x64, 0x70, |
| 643 |
0x6f, 0x69, 0x6e, 0x74, 0x73, 0x22, 0xb1, 0x01, 0x0a, 0x14, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, |
| 644 |
0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x62, |
| 645 |
0x0a, 0x15, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, |
| 646 |
0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, |
| 647 |
0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x64, 0x69, |
| 648 |
0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, |
| 649 |
0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x13, 0x63, |
| 650 |
0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, |
| 651 |
0x6b, 0x73, 0x12, 0x35, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x02, |
| 652 |
0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, |
| 653 |
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, |
| 654 |
0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x32, 0xe4, 0x02, 0x0a, 0x16, 0x48, 0x65, |
| 655 |
0x61, 0x6c, 0x74, 0x68, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x53, 0x65, 0x72, |
| 656 |
0x76, 0x69, 0x63, 0x65, 0x12, 0x93, 0x01, 0x0a, 0x11, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x48, |
| 657 |
0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x46, 0x2e, 0x65, 0x6e, 0x76, |
| 658 |
0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, |
| 659 |
0x76, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, |
| 660 |
0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x72, 0x45, 0x6e, 0x64, 0x70, |
| 661 |
0x6f, 0x69, 0x6e, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, |
| 662 |
0x73, 0x65, 0x1a, 0x30, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, |
| 663 |
0x63, 0x65, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x2e, |
| 664 |
0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x70, 0x65, 0x63, 0x69, |
| 665 |
0x66, 0x69, 0x65, 0x72, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0xb3, 0x01, 0x0a, 0x10, 0x46, |
| 666 |
0x65, 0x74, 0x63, 0x68, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, |
| 667 |
0x46, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, |
| 668 |
0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x48, 0x65, 0x61, |
| 669 |
0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, |
| 670 |
0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, |
| 671 |
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x30, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, |
| 672 |
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, |
| 673 |
0x79, 0x2e, 0x76, 0x32, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, |
| 674 |
0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x72, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, |
| 675 |
0x1f, 0x3a, 0x01, 0x2a, 0x22, 0x1a, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, |
| 676 |
0x65, 0x72, 0x79, 0x3a, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, |
| 677 |
0x42, 0xac, 0x01, 0xf2, 0x98, 0xfe, 0x8f, 0x05, 0x19, 0x12, 0x17, 0x65, 0x6e, 0x76, 0x6f, 0x79, |
| 678 |
0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, |
| 679 |
0x76, 0x33, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x0a, 0x28, 0x69, 0x6f, 0x2e, 0x65, |
| 680 |
0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, |
| 681 |
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, |
| 682 |
0x79, 0x2e, 0x76, 0x32, 0x42, 0x08, 0x48, 0x64, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, |
| 683 |
0x5a, 0x4d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, |
| 684 |
0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, |
| 685 |
0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, |
| 686 |
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, |
| 687 |
0x2f, 0x76, 0x32, 0x3b, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x76, 0x32, 0x62, |
| 688 |
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 689 |
} |
| 690 |
|
| 691 |
var ( |
| 692 |
file_envoy_service_discovery_v2_hds_proto_rawDescOnce sync.Once |
| 693 |
file_envoy_service_discovery_v2_hds_proto_rawDescData = file_envoy_service_discovery_v2_hds_proto_rawDesc |
| 694 |
) |
| 695 |
|
| 696 |
func file_envoy_service_discovery_v2_hds_proto_rawDescGZIP() []byte { |
| 697 |
file_envoy_service_discovery_v2_hds_proto_rawDescOnce.Do(func() { |
| 698 |
file_envoy_service_discovery_v2_hds_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_service_discovery_v2_hds_proto_rawDescData) |
| 699 |
}) |
| 700 |
return file_envoy_service_discovery_v2_hds_proto_rawDescData |
| 701 |
} |
| 702 |
|
| 703 |
var file_envoy_service_discovery_v2_hds_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 704 |
var file_envoy_service_discovery_v2_hds_proto_msgTypes = make([]protoimpl.MessageInfo, 8) |
| 705 |
var file_envoy_service_discovery_v2_hds_proto_goTypes = []interface{}{ |
| 706 |
(Capability_Protocol)(0), // 0: envoy.service.discovery.v2.Capability.Protocol |
| 707 |
(*Capability)(nil), // 1: envoy.service.discovery.v2.Capability |
| 708 |
(*HealthCheckRequest)(nil), // 2: envoy.service.discovery.v2.HealthCheckRequest |
| 709 |
(*EndpointHealth)(nil), // 3: envoy.service.discovery.v2.EndpointHealth |
| 710 |
(*EndpointHealthResponse)(nil), // 4: envoy.service.discovery.v2.EndpointHealthResponse |
| 711 |
(*HealthCheckRequestOrEndpointHealthResponse)(nil), // 5: envoy.service.discovery.v2.HealthCheckRequestOrEndpointHealthResponse |
| 712 |
(*LocalityEndpoints)(nil), // 6: envoy.service.discovery.v2.LocalityEndpoints |
| 713 |
(*ClusterHealthCheck)(nil), // 7: envoy.service.discovery.v2.ClusterHealthCheck |
| 714 |
(*HealthCheckSpecifier)(nil), // 8: envoy.service.discovery.v2.HealthCheckSpecifier |
| 715 |
(*core.Node)(nil), // 9: envoy.api.v2.core.Node |
| 716 |
(*endpoint.Endpoint)(nil), // 10: envoy.api.v2.endpoint.Endpoint |
| 717 |
(core.HealthStatus)(0), // 11: envoy.api.v2.core.HealthStatus |
| 718 |
(*core.Locality)(nil), // 12: envoy.api.v2.core.Locality |
| 719 |
(*core.HealthCheck)(nil), // 13: envoy.api.v2.core.HealthCheck |
| 720 |
(*durationpb.Duration)(nil), // 14: google.protobuf.Duration |
| 721 |
} |
| 722 |
var file_envoy_service_discovery_v2_hds_proto_depIdxs = []int32{ |
| 723 |
0, // 0: envoy.service.discovery.v2.Capability.health_check_protocols:type_name -> envoy.service.discovery.v2.Capability.Protocol |
| 724 |
9, // 1: envoy.service.discovery.v2.HealthCheckRequest.node:type_name -> envoy.api.v2.core.Node |
| 725 |
1, // 2: envoy.service.discovery.v2.HealthCheckRequest.capability:type_name -> envoy.service.discovery.v2.Capability |
| 726 |
10, // 3: envoy.service.discovery.v2.EndpointHealth.endpoint:type_name -> envoy.api.v2.endpoint.Endpoint |
| 727 |
11, // 4: envoy.service.discovery.v2.EndpointHealth.health_status:type_name -> envoy.api.v2.core.HealthStatus |
| 728 |
3, // 5: envoy.service.discovery.v2.EndpointHealthResponse.endpoints_health:type_name -> envoy.service.discovery.v2.EndpointHealth |
| 729 |
2, // 6: envoy.service.discovery.v2.HealthCheckRequestOrEndpointHealthResponse.health_check_request:type_name -> envoy.service.discovery.v2.HealthCheckRequest |
| 730 |
4, // 7: envoy.service.discovery.v2.HealthCheckRequestOrEndpointHealthResponse.endpoint_health_response:type_name -> envoy.service.discovery.v2.EndpointHealthResponse |
| 731 |
12, // 8: envoy.service.discovery.v2.LocalityEndpoints.locality:type_name -> envoy.api.v2.core.Locality |
| 732 |
10, // 9: envoy.service.discovery.v2.LocalityEndpoints.endpoints:type_name -> envoy.api.v2.endpoint.Endpoint |
| 733 |
13, // 10: envoy.service.discovery.v2.ClusterHealthCheck.health_checks:type_name -> envoy.api.v2.core.HealthCheck |
| 734 |
6, // 11: envoy.service.discovery.v2.ClusterHealthCheck.locality_endpoints:type_name -> envoy.service.discovery.v2.LocalityEndpoints |
| 735 |
7, // 12: envoy.service.discovery.v2.HealthCheckSpecifier.cluster_health_checks:type_name -> envoy.service.discovery.v2.ClusterHealthCheck |
| 736 |
14, // 13: envoy.service.discovery.v2.HealthCheckSpecifier.interval:type_name -> google.protobuf.Duration |
| 737 |
5, // 14: envoy.service.discovery.v2.HealthDiscoveryService.StreamHealthCheck:input_type -> envoy.service.discovery.v2.HealthCheckRequestOrEndpointHealthResponse |
| 738 |
5, // 15: envoy.service.discovery.v2.HealthDiscoveryService.FetchHealthCheck:input_type -> envoy.service.discovery.v2.HealthCheckRequestOrEndpointHealthResponse |
| 739 |
8, // 16: envoy.service.discovery.v2.HealthDiscoveryService.StreamHealthCheck:output_type -> envoy.service.discovery.v2.HealthCheckSpecifier |
| 740 |
8, // 17: envoy.service.discovery.v2.HealthDiscoveryService.FetchHealthCheck:output_type -> envoy.service.discovery.v2.HealthCheckSpecifier |
| 741 |
16, // [16:18] is the sub-list for method output_type |
| 742 |
14, // [14:16] is the sub-list for method input_type |
| 743 |
14, // [14:14] is the sub-list for extension type_name |
| 744 |
14, // [14:14] is the sub-list for extension extendee |
| 745 |
0, // [0:14] is the sub-list for field type_name |
| 746 |
} |
| 747 |
|
| 748 |
func init() { file_envoy_service_discovery_v2_hds_proto_init() } |
| 749 |
func file_envoy_service_discovery_v2_hds_proto_init() { |
| 750 |
if File_envoy_service_discovery_v2_hds_proto != nil { |
| 751 |
return |
| 752 |
} |
| 753 |
if !protoimpl.UnsafeEnabled { |
| 754 |
file_envoy_service_discovery_v2_hds_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 755 |
switch v := v.(*Capability); i { |
| 756 |
case 0: |
| 757 |
return &v.state |
| 758 |
case 1: |
| 759 |
return &v.sizeCache |
| 760 |
case 2: |
| 761 |
return &v.unknownFields |
| 762 |
default: |
| 763 |
return nil |
| 764 |
} |
| 765 |
} |
| 766 |
file_envoy_service_discovery_v2_hds_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 767 |
switch v := v.(*HealthCheckRequest); i { |
| 768 |
case 0: |
| 769 |
return &v.state |
| 770 |
case 1: |
| 771 |
return &v.sizeCache |
| 772 |
case 2: |
| 773 |
return &v.unknownFields |
| 774 |
default: |
| 775 |
return nil |
| 776 |
} |
| 777 |
} |
| 778 |
file_envoy_service_discovery_v2_hds_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 779 |
switch v := v.(*EndpointHealth); i { |
| 780 |
case 0: |
| 781 |
return &v.state |
| 782 |
case 1: |
| 783 |
return &v.sizeCache |
| 784 |
case 2: |
| 785 |
return &v.unknownFields |
| 786 |
default: |
| 787 |
return nil |
| 788 |
} |
| 789 |
} |
| 790 |
file_envoy_service_discovery_v2_hds_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 791 |
switch v := v.(*EndpointHealthResponse); i { |
| 792 |
case 0: |
| 793 |
return &v.state |
| 794 |
case 1: |
| 795 |
return &v.sizeCache |
| 796 |
case 2: |
| 797 |
return &v.unknownFields |
| 798 |
default: |
| 799 |
return nil |
| 800 |
} |
| 801 |
} |
| 802 |
file_envoy_service_discovery_v2_hds_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 803 |
switch v := v.(*HealthCheckRequestOrEndpointHealthResponse); i { |
| 804 |
case 0: |
| 805 |
return &v.state |
| 806 |
case 1: |
| 807 |
return &v.sizeCache |
| 808 |
case 2: |
| 809 |
return &v.unknownFields |
| 810 |
default: |
| 811 |
return nil |
| 812 |
} |
| 813 |
} |
| 814 |
file_envoy_service_discovery_v2_hds_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| 815 |
switch v := v.(*LocalityEndpoints); i { |
| 816 |
case 0: |
| 817 |
return &v.state |
| 818 |
case 1: |
| 819 |
return &v.sizeCache |
| 820 |
case 2: |
| 821 |
return &v.unknownFields |
| 822 |
default: |
| 823 |
return nil |
| 824 |
} |
| 825 |
} |
| 826 |
file_envoy_service_discovery_v2_hds_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
| 827 |
switch v := v.(*ClusterHealthCheck); i { |
| 828 |
case 0: |
| 829 |
return &v.state |
| 830 |
case 1: |
| 831 |
return &v.sizeCache |
| 832 |
case 2: |
| 833 |
return &v.unknownFields |
| 834 |
default: |
| 835 |
return nil |
| 836 |
} |
| 837 |
} |
| 838 |
file_envoy_service_discovery_v2_hds_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { |
| 839 |
switch v := v.(*HealthCheckSpecifier); i { |
| 840 |
case 0: |
| 841 |
return &v.state |
| 842 |
case 1: |
| 843 |
return &v.sizeCache |
| 844 |
case 2: |
| 845 |
return &v.unknownFields |
| 846 |
default: |
| 847 |
return nil |
| 848 |
} |
| 849 |
} |
| 850 |
} |
| 851 |
file_envoy_service_discovery_v2_hds_proto_msgTypes[4].OneofWrappers = []interface{}{ |
| 852 |
(*HealthCheckRequestOrEndpointHealthResponse_HealthCheckRequest)(nil), |
| 853 |
(*HealthCheckRequestOrEndpointHealthResponse_EndpointHealthResponse)(nil), |
| 854 |
} |
| 855 |
type x struct{} |
| 856 |
out := protoimpl.TypeBuilder{ |
| 857 |
File: protoimpl.DescBuilder{ |
| 858 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 859 |
RawDescriptor: file_envoy_service_discovery_v2_hds_proto_rawDesc, |
| 860 |
NumEnums: 1, |
| 861 |
NumMessages: 8, |
| 862 |
NumExtensions: 0, |
| 863 |
NumServices: 1, |
| 864 |
}, |
| 865 |
GoTypes: file_envoy_service_discovery_v2_hds_proto_goTypes, |
| 866 |
DependencyIndexes: file_envoy_service_discovery_v2_hds_proto_depIdxs, |
| 867 |
EnumInfos: file_envoy_service_discovery_v2_hds_proto_enumTypes, |
| 868 |
MessageInfos: file_envoy_service_discovery_v2_hds_proto_msgTypes, |
| 869 |
}.Build() |
| 870 |
File_envoy_service_discovery_v2_hds_proto = out.File |
| 871 |
file_envoy_service_discovery_v2_hds_proto_rawDesc = nil |
| 872 |
file_envoy_service_discovery_v2_hds_proto_goTypes = nil |
| 873 |
file_envoy_service_discovery_v2_hds_proto_depIdxs = nil |
| 874 |
} |