gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/go-control-plane/envoy/api/v2/endpoint.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.16.0 5 // source: envoy/api/v2/endpoint.proto 6 7 package envoy_api_v2 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 endpoint "gitee.com/ks-custle/core-gm/go-control-plane/envoy/api/v2/endpoint" 12 _type "gitee.com/ks-custle/core-gm/go-control-plane/envoy/type" 13 _ "github.com/envoyproxy/protoc-gen-validate/validate" 14 proto "github.com/golang/protobuf/proto" 15 duration "github.com/golang/protobuf/ptypes/duration" 16 wrappers "github.com/golang/protobuf/ptypes/wrappers" 17 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 18 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 19 reflect "reflect" 20 sync "sync" 21 ) 22 23 const ( 24 // Verify that this generated code is sufficiently up-to-date. 25 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 26 // Verify that runtime/protoimpl is sufficiently up-to-date. 27 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 28 ) 29 30 // This is a compile-time assertion that a sufficiently up-to-date version 31 // of the legacy proto package is being used. 32 const _ = proto.ProtoPackageIsVersion4 33 34 // Each route from RDS will map to a single cluster or traffic split across 35 // clusters using weights expressed in the RDS WeightedCluster. 36 // 37 // With EDS, each cluster is treated independently from a LB perspective, with 38 // LB taking place between the Localities within a cluster and at a finer 39 // granularity between the hosts within a locality. The percentage of traffic 40 // for each endpoint is determined by both its load_balancing_weight, and the 41 // load_balancing_weight of its locality. First, a locality will be selected, 42 // then an endpoint within that locality will be chose based on its weight. 43 // [#next-free-field: 6] 44 type ClusterLoadAssignment struct { 45 state protoimpl.MessageState 46 sizeCache protoimpl.SizeCache 47 unknownFields protoimpl.UnknownFields 48 49 // Name of the cluster. This will be the :ref:`service_name 50 // <envoy_api_field_Cluster.EdsClusterConfig.service_name>` value if specified 51 // in the cluster :ref:`EdsClusterConfig 52 // <envoy_api_msg_Cluster.EdsClusterConfig>`. 53 ClusterName string `protobuf:"bytes,1,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` 54 // List of endpoints to load balance to. 55 Endpoints []*endpoint.LocalityLbEndpoints `protobuf:"bytes,2,rep,name=endpoints,proto3" json:"endpoints,omitempty"` 56 // Map of named endpoints that can be referenced in LocalityLbEndpoints. 57 // [#not-implemented-hide:] 58 NamedEndpoints map[string]*endpoint.Endpoint `protobuf:"bytes,5,rep,name=named_endpoints,json=namedEndpoints,proto3" json:"named_endpoints,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 59 // Load balancing policy settings. 60 Policy *ClusterLoadAssignment_Policy `protobuf:"bytes,4,opt,name=policy,proto3" json:"policy,omitempty"` 61 } 62 63 func (x *ClusterLoadAssignment) Reset() { 64 *x = ClusterLoadAssignment{} 65 if protoimpl.UnsafeEnabled { 66 mi := &file_envoy_api_v2_endpoint_proto_msgTypes[0] 67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 68 ms.StoreMessageInfo(mi) 69 } 70 } 71 72 func (x *ClusterLoadAssignment) String() string { 73 return protoimpl.X.MessageStringOf(x) 74 } 75 76 func (*ClusterLoadAssignment) ProtoMessage() {} 77 78 func (x *ClusterLoadAssignment) ProtoReflect() protoreflect.Message { 79 mi := &file_envoy_api_v2_endpoint_proto_msgTypes[0] 80 if protoimpl.UnsafeEnabled && x != nil { 81 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 82 if ms.LoadMessageInfo() == nil { 83 ms.StoreMessageInfo(mi) 84 } 85 return ms 86 } 87 return mi.MessageOf(x) 88 } 89 90 // Deprecated: Use ClusterLoadAssignment.ProtoReflect.Descriptor instead. 91 func (*ClusterLoadAssignment) Descriptor() ([]byte, []int) { 92 return file_envoy_api_v2_endpoint_proto_rawDescGZIP(), []int{0} 93 } 94 95 func (x *ClusterLoadAssignment) GetClusterName() string { 96 if x != nil { 97 return x.ClusterName 98 } 99 return "" 100 } 101 102 func (x *ClusterLoadAssignment) GetEndpoints() []*endpoint.LocalityLbEndpoints { 103 if x != nil { 104 return x.Endpoints 105 } 106 return nil 107 } 108 109 func (x *ClusterLoadAssignment) GetNamedEndpoints() map[string]*endpoint.Endpoint { 110 if x != nil { 111 return x.NamedEndpoints 112 } 113 return nil 114 } 115 116 func (x *ClusterLoadAssignment) GetPolicy() *ClusterLoadAssignment_Policy { 117 if x != nil { 118 return x.Policy 119 } 120 return nil 121 } 122 123 // Load balancing policy settings. 124 // [#next-free-field: 6] 125 type ClusterLoadAssignment_Policy struct { 126 state protoimpl.MessageState 127 sizeCache protoimpl.SizeCache 128 unknownFields protoimpl.UnknownFields 129 130 // Action to trim the overall incoming traffic to protect the upstream 131 // hosts. This action allows protection in case the hosts are unable to 132 // recover from an outage, or unable to autoscale or unable to handle 133 // incoming traffic volume for any reason. 134 // 135 // At the client each category is applied one after the other to generate 136 // the 'actual' drop percentage on all outgoing traffic. For example: 137 // 138 // .. code-block:: json 139 // 140 // { "drop_overloads": [ 141 // { "category": "throttle", "drop_percentage": 60 } 142 // { "category": "lb", "drop_percentage": 50 } 143 // ]} 144 // 145 // The actual drop percentages applied to the traffic at the clients will be 146 // "throttle"_drop = 60% 147 // "lb"_drop = 20% // 50% of the remaining 'actual' load, which is 40%. 148 // actual_outgoing_load = 20% // remaining after applying all categories. 149 // [#not-implemented-hide:] 150 DropOverloads []*ClusterLoadAssignment_Policy_DropOverload `protobuf:"bytes,2,rep,name=drop_overloads,json=dropOverloads,proto3" json:"drop_overloads,omitempty"` 151 // Priority levels and localities are considered overprovisioned with this 152 // factor (in percentage). This means that we don't consider a priority 153 // level or locality unhealthy until the percentage of healthy hosts 154 // multiplied by the overprovisioning factor drops below 100. 155 // With the default value 140(1.4), Envoy doesn't consider a priority level 156 // or a locality unhealthy until their percentage of healthy hosts drops 157 // below 72%. For example: 158 // 159 // .. code-block:: json 160 // 161 // { "overprovisioning_factor": 100 } 162 // 163 // Read more at :ref:`priority levels <arch_overview_load_balancing_priority_levels>` and 164 // :ref:`localities <arch_overview_load_balancing_locality_weighted_lb>`. 165 OverprovisioningFactor *wrappers.UInt32Value `protobuf:"bytes,3,opt,name=overprovisioning_factor,json=overprovisioningFactor,proto3" json:"overprovisioning_factor,omitempty"` 166 // The max time until which the endpoints from this assignment can be used. 167 // If no new assignments are received before this time expires the endpoints 168 // are considered stale and should be marked unhealthy. 169 // Defaults to 0 which means endpoints never go stale. 170 EndpointStaleAfter *duration.Duration `protobuf:"bytes,4,opt,name=endpoint_stale_after,json=endpointStaleAfter,proto3" json:"endpoint_stale_after,omitempty"` 171 // The flag to disable overprovisioning. If it is set to true, 172 // :ref:`overprovisioning factor 173 // <arch_overview_load_balancing_overprovisioning_factor>` will be ignored 174 // and Envoy will not perform graceful failover between priority levels or 175 // localities as endpoints become unhealthy. Otherwise Envoy will perform 176 // graceful failover as :ref:`overprovisioning factor 177 // <arch_overview_load_balancing_overprovisioning_factor>` suggests. 178 // [#not-implemented-hide:] 179 // 180 // Deprecated: Do not use. 181 DisableOverprovisioning bool `protobuf:"varint,5,opt,name=disable_overprovisioning,json=disableOverprovisioning,proto3" json:"disable_overprovisioning,omitempty"` 182 } 183 184 func (x *ClusterLoadAssignment_Policy) Reset() { 185 *x = ClusterLoadAssignment_Policy{} 186 if protoimpl.UnsafeEnabled { 187 mi := &file_envoy_api_v2_endpoint_proto_msgTypes[1] 188 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 189 ms.StoreMessageInfo(mi) 190 } 191 } 192 193 func (x *ClusterLoadAssignment_Policy) String() string { 194 return protoimpl.X.MessageStringOf(x) 195 } 196 197 func (*ClusterLoadAssignment_Policy) ProtoMessage() {} 198 199 func (x *ClusterLoadAssignment_Policy) ProtoReflect() protoreflect.Message { 200 mi := &file_envoy_api_v2_endpoint_proto_msgTypes[1] 201 if protoimpl.UnsafeEnabled && x != nil { 202 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 203 if ms.LoadMessageInfo() == nil { 204 ms.StoreMessageInfo(mi) 205 } 206 return ms 207 } 208 return mi.MessageOf(x) 209 } 210 211 // Deprecated: Use ClusterLoadAssignment_Policy.ProtoReflect.Descriptor instead. 212 func (*ClusterLoadAssignment_Policy) Descriptor() ([]byte, []int) { 213 return file_envoy_api_v2_endpoint_proto_rawDescGZIP(), []int{0, 0} 214 } 215 216 func (x *ClusterLoadAssignment_Policy) GetDropOverloads() []*ClusterLoadAssignment_Policy_DropOverload { 217 if x != nil { 218 return x.DropOverloads 219 } 220 return nil 221 } 222 223 func (x *ClusterLoadAssignment_Policy) GetOverprovisioningFactor() *wrappers.UInt32Value { 224 if x != nil { 225 return x.OverprovisioningFactor 226 } 227 return nil 228 } 229 230 func (x *ClusterLoadAssignment_Policy) GetEndpointStaleAfter() *duration.Duration { 231 if x != nil { 232 return x.EndpointStaleAfter 233 } 234 return nil 235 } 236 237 // Deprecated: Do not use. 238 func (x *ClusterLoadAssignment_Policy) GetDisableOverprovisioning() bool { 239 if x != nil { 240 return x.DisableOverprovisioning 241 } 242 return false 243 } 244 245 // [#not-implemented-hide:] 246 type ClusterLoadAssignment_Policy_DropOverload struct { 247 state protoimpl.MessageState 248 sizeCache protoimpl.SizeCache 249 unknownFields protoimpl.UnknownFields 250 251 // Identifier for the policy specifying the drop. 252 Category string `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"` 253 // Percentage of traffic that should be dropped for the category. 254 DropPercentage *_type.FractionalPercent `protobuf:"bytes,2,opt,name=drop_percentage,json=dropPercentage,proto3" json:"drop_percentage,omitempty"` 255 } 256 257 func (x *ClusterLoadAssignment_Policy_DropOverload) Reset() { 258 *x = ClusterLoadAssignment_Policy_DropOverload{} 259 if protoimpl.UnsafeEnabled { 260 mi := &file_envoy_api_v2_endpoint_proto_msgTypes[3] 261 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 262 ms.StoreMessageInfo(mi) 263 } 264 } 265 266 func (x *ClusterLoadAssignment_Policy_DropOverload) String() string { 267 return protoimpl.X.MessageStringOf(x) 268 } 269 270 func (*ClusterLoadAssignment_Policy_DropOverload) ProtoMessage() {} 271 272 func (x *ClusterLoadAssignment_Policy_DropOverload) ProtoReflect() protoreflect.Message { 273 mi := &file_envoy_api_v2_endpoint_proto_msgTypes[3] 274 if protoimpl.UnsafeEnabled && x != nil { 275 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 276 if ms.LoadMessageInfo() == nil { 277 ms.StoreMessageInfo(mi) 278 } 279 return ms 280 } 281 return mi.MessageOf(x) 282 } 283 284 // Deprecated: Use ClusterLoadAssignment_Policy_DropOverload.ProtoReflect.Descriptor instead. 285 func (*ClusterLoadAssignment_Policy_DropOverload) Descriptor() ([]byte, []int) { 286 return file_envoy_api_v2_endpoint_proto_rawDescGZIP(), []int{0, 0, 0} 287 } 288 289 func (x *ClusterLoadAssignment_Policy_DropOverload) GetCategory() string { 290 if x != nil { 291 return x.Category 292 } 293 return "" 294 } 295 296 func (x *ClusterLoadAssignment_Policy_DropOverload) GetDropPercentage() *_type.FractionalPercent { 297 if x != nil { 298 return x.DropPercentage 299 } 300 return nil 301 } 302 303 var File_envoy_api_v2_endpoint_proto protoreflect.FileDescriptor 304 305 var file_envoy_api_v2_endpoint_proto_rawDesc = []byte{ 306 0x0a, 0x1b, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x65, 307 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x65, 308 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x1a, 0x2f, 0x65, 0x6e, 0x76, 309 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 310 0x6e, 0x74, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 311 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x6e, 312 0x76, 0x6f, 0x79, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 313 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 314 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 315 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 316 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 317 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 318 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 319 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 320 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 321 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 322 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfb, 323 0x06, 0x0a, 0x15, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4c, 0x6f, 0x61, 0x64, 0x41, 0x73, 324 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73, 325 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 326 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 327 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x48, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 328 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 329 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 330 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4c, 0x62, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 331 0x6e, 0x74, 0x73, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x60, 332 0x0a, 0x0f, 0x6e, 0x61, 0x6d, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 333 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 334 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4c, 0x6f, 335 0x61, 0x64, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4e, 0x61, 0x6d, 336 0x65, 0x64, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 337 0x52, 0x0e, 0x6e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 338 0x12, 0x42, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 339 0x32, 0x2a, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 340 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4c, 0x6f, 0x61, 0x64, 0x41, 0x73, 0x73, 0x69, 0x67, 341 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 342 0x6c, 0x69, 0x63, 0x79, 0x1a, 0xe1, 0x03, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 343 0x5e, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x6c, 0x6f, 0x61, 0x64, 344 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 345 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4c, 0x6f, 346 0x61, 0x64, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x6f, 0x6c, 347 0x69, 0x63, 0x79, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x4f, 0x76, 0x65, 0x72, 0x6c, 0x6f, 0x61, 0x64, 348 0x52, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x4f, 0x76, 0x65, 0x72, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x12, 349 0x5e, 0x0a, 0x17, 0x6f, 0x76, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 350 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 351 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 352 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, 353 0xfa, 0x42, 0x04, 0x2a, 0x02, 0x20, 0x00, 0x52, 0x16, 0x6f, 0x76, 0x65, 0x72, 0x70, 0x72, 0x6f, 354 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 355 0x55, 0x0a, 0x14, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x6c, 356 0x65, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 357 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 358 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0xfa, 0x42, 0x05, 0xaa, 0x01, 0x02, 359 0x2a, 0x00, 0x52, 0x12, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x6c, 360 0x65, 0x41, 0x66, 0x74, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 361 0x65, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 362 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x17, 0x64, 0x69, 363 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 364 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x1a, 0x7b, 0x0a, 0x0c, 0x44, 0x72, 0x6f, 0x70, 0x4f, 0x76, 0x65, 365 0x72, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 366 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 367 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x46, 0x0a, 0x0f, 0x64, 0x72, 368 0x6f, 0x70, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 369 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 370 0x2e, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x50, 0x65, 0x72, 0x63, 0x65, 371 0x6e, 0x74, 0x52, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 372 0x67, 0x65, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x1a, 0x62, 0x0a, 0x13, 0x4e, 0x61, 0x6d, 0x65, 373 0x64, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 374 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 375 0x79, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 376 0x32, 0x1f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 377 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 378 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x55, 0x0a, 0x1a, 379 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 380 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x42, 0x0d, 0x45, 0x6e, 0x64, 0x70, 381 0x6f, 0x69, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xf2, 0x98, 0xfe, 0x8f, 0x05, 382 0x1a, 0x12, 0x18, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 383 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x33, 0xba, 0x80, 0xc8, 0xd1, 0x06, 384 0x02, 0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 385 } 386 387 var ( 388 file_envoy_api_v2_endpoint_proto_rawDescOnce sync.Once 389 file_envoy_api_v2_endpoint_proto_rawDescData = file_envoy_api_v2_endpoint_proto_rawDesc 390 ) 391 392 func file_envoy_api_v2_endpoint_proto_rawDescGZIP() []byte { 393 file_envoy_api_v2_endpoint_proto_rawDescOnce.Do(func() { 394 file_envoy_api_v2_endpoint_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_api_v2_endpoint_proto_rawDescData) 395 }) 396 return file_envoy_api_v2_endpoint_proto_rawDescData 397 } 398 399 var file_envoy_api_v2_endpoint_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 400 var file_envoy_api_v2_endpoint_proto_goTypes = []interface{}{ 401 (*ClusterLoadAssignment)(nil), // 0: envoy.api.v2.ClusterLoadAssignment 402 (*ClusterLoadAssignment_Policy)(nil), // 1: envoy.api.v2.ClusterLoadAssignment.Policy 403 nil, // 2: envoy.api.v2.ClusterLoadAssignment.NamedEndpointsEntry 404 (*ClusterLoadAssignment_Policy_DropOverload)(nil), // 3: envoy.api.v2.ClusterLoadAssignment.Policy.DropOverload 405 (*endpoint.LocalityLbEndpoints)(nil), // 4: envoy.api.v2.endpoint.LocalityLbEndpoints 406 (*wrappers.UInt32Value)(nil), // 5: google.protobuf.UInt32Value 407 (*duration.Duration)(nil), // 6: google.protobuf.Duration 408 (*endpoint.Endpoint)(nil), // 7: envoy.api.v2.endpoint.Endpoint 409 (*_type.FractionalPercent)(nil), // 8: envoy.type.FractionalPercent 410 } 411 var file_envoy_api_v2_endpoint_proto_depIdxs = []int32{ 412 4, // 0: envoy.api.v2.ClusterLoadAssignment.endpoints:type_name -> envoy.api.v2.endpoint.LocalityLbEndpoints 413 2, // 1: envoy.api.v2.ClusterLoadAssignment.named_endpoints:type_name -> envoy.api.v2.ClusterLoadAssignment.NamedEndpointsEntry 414 1, // 2: envoy.api.v2.ClusterLoadAssignment.policy:type_name -> envoy.api.v2.ClusterLoadAssignment.Policy 415 3, // 3: envoy.api.v2.ClusterLoadAssignment.Policy.drop_overloads:type_name -> envoy.api.v2.ClusterLoadAssignment.Policy.DropOverload 416 5, // 4: envoy.api.v2.ClusterLoadAssignment.Policy.overprovisioning_factor:type_name -> google.protobuf.UInt32Value 417 6, // 5: envoy.api.v2.ClusterLoadAssignment.Policy.endpoint_stale_after:type_name -> google.protobuf.Duration 418 7, // 6: envoy.api.v2.ClusterLoadAssignment.NamedEndpointsEntry.value:type_name -> envoy.api.v2.endpoint.Endpoint 419 8, // 7: envoy.api.v2.ClusterLoadAssignment.Policy.DropOverload.drop_percentage:type_name -> envoy.type.FractionalPercent 420 8, // [8:8] is the sub-list for method output_type 421 8, // [8:8] is the sub-list for method input_type 422 8, // [8:8] is the sub-list for extension type_name 423 8, // [8:8] is the sub-list for extension extendee 424 0, // [0:8] is the sub-list for field type_name 425 } 426 427 func init() { file_envoy_api_v2_endpoint_proto_init() } 428 func file_envoy_api_v2_endpoint_proto_init() { 429 if File_envoy_api_v2_endpoint_proto != nil { 430 return 431 } 432 if !protoimpl.UnsafeEnabled { 433 file_envoy_api_v2_endpoint_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 434 switch v := v.(*ClusterLoadAssignment); i { 435 case 0: 436 return &v.state 437 case 1: 438 return &v.sizeCache 439 case 2: 440 return &v.unknownFields 441 default: 442 return nil 443 } 444 } 445 file_envoy_api_v2_endpoint_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 446 switch v := v.(*ClusterLoadAssignment_Policy); i { 447 case 0: 448 return &v.state 449 case 1: 450 return &v.sizeCache 451 case 2: 452 return &v.unknownFields 453 default: 454 return nil 455 } 456 } 457 file_envoy_api_v2_endpoint_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 458 switch v := v.(*ClusterLoadAssignment_Policy_DropOverload); i { 459 case 0: 460 return &v.state 461 case 1: 462 return &v.sizeCache 463 case 2: 464 return &v.unknownFields 465 default: 466 return nil 467 } 468 } 469 } 470 type x struct{} 471 out := protoimpl.TypeBuilder{ 472 File: protoimpl.DescBuilder{ 473 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 474 RawDescriptor: file_envoy_api_v2_endpoint_proto_rawDesc, 475 NumEnums: 0, 476 NumMessages: 4, 477 NumExtensions: 0, 478 NumServices: 0, 479 }, 480 GoTypes: file_envoy_api_v2_endpoint_proto_goTypes, 481 DependencyIndexes: file_envoy_api_v2_endpoint_proto_depIdxs, 482 MessageInfos: file_envoy_api_v2_endpoint_proto_msgTypes, 483 }.Build() 484 File_envoy_api_v2_endpoint_proto = out.File 485 file_envoy_api_v2_endpoint_proto_rawDesc = nil 486 file_envoy_api_v2_endpoint_proto_goTypes = nil 487 file_envoy_api_v2_endpoint_proto_depIdxs = nil 488 }