17 #ifndef GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_XDS_XDS_H
18 #define GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_XDS_XDS_H
26 #include "absl/memory/memory.h"
46 std::unique_ptr<AttributeInterface>
Copy()
const override {
47 return absl::make_unique<XdsLocalityAttribute>(
locality_name_->Ref());
50 int Cmp(
const AttributeInterface* other)
const override {
51 const auto* other_locality_attr =
53 return locality_name_->Compare(*other_locality_attr->locality_name_);