'Copies This object to a search_service_pb.FacetRefinement.'

def _CopyToProtocolBuffer(self, facet_refinement_pb):

    facet_refinement_pb.set_name(self.name)
    if (self.value is not None):
        facet_refinement_pb.set_value(_ConvertToUTF8(self.value))
    if (self.facet_range is not None):
        self.facet_range._CopyToProtocolBuffer(facet_refinement_pb.mutable_range())
