Go to the documentation of this file.
17 #ifndef GRPC_CORE_EXT_XDS_XDS_ENDPOINT_H
18 #define GRPC_CORE_EXT_XDS_XDS_ENDPOINT_H
31 #include "absl/status/statusor.h"
32 #include "absl/strings/string_view.h"
60 std::map<XdsLocalityName*, Locality, XdsLocalityName::Less>
localities;
88 if (parts_per_million == 1000000)
drop_all_ =
true;
126 return "envoy.config.endpoint.v3.ClusterLoadAssignment";
129 return "envoy.api.v2.ClusterLoadAssignment";
134 bool is_v2)
const override;
143 #endif // GRPC_CORE_EXT_XDS_XDS_ENDPOINT_H
bool operator==(const Locality &other) const
std::vector< DropCategory > DropCategoryList
std::map< XdsLocalityName *, Locality, XdsLocalityName::Less > localities
std::string ToString() const
const uint32_t parts_per_million
std::string ToString() const
void InitUpbSymtab(upb_DefPool *symtab) const override
bool ShouldDrop(const std::string **category_name) const
bool operator==(const XdsEndpointResource &other) const
RefCountedPtr< DropConfig > drop_config
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
RefCountedPtr< XdsLocalityName > name
void AddCategory(std::string name, uint32_t parts_per_million)
bool operator!=(const Locality &other) const
std::string ToString() const
absl::string_view v2_type_url() const override
absl::StatusOr< DecodeResult > Decode(const XdsEncodingContext &context, absl::string_view serialized_resource, bool is_v2) const override
std::vector< Priority > PriorityList
std::vector< ServerAddress > ServerAddressList
std::string ToString() const
const DropCategoryList & drop_category_list() const
bool operator==(const DropCategory &other) const
DropCategoryList drop_category_list_
const UPB_INLINE upb_MessageDef * envoy_config_endpoint_v3_ClusterLoadAssignment_getmsgdef(upb_DefPool *s)
absl::string_view type_url() const override
bool operator!=(const DropConfig &other) const
bool operator==(const Priority &other) const
grpc::ClientContext context
bool operator==(const DropConfig &other) const
ServerAddressList endpoints
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:56