'Converts this object to a search_service_pb.FacetRequest proto buff.'

def _CopyToProtocolBuffer(self, facet_request_pb):

    facet_request_pb.set_name(self.name)
    request_param_pb = facet_request_pb.mutable_params()
    request_param_pb.set_value_limit(self.value_limit)
    for facet_range in self.ranges:
        facet_range._CopyToProtocolBuffer(request_param_pb.add_range())
    for constraint in self.values:
        request_param_pb.add_value_constraint(_ConvertToUTF8(constraint))
