'Get an IsEnabledResponse for the capabilities listed.
Returns:
IsEnabledResponse for the specified capabilities.
Raises:
UnknownCapabilityError: If an unknown capability was requested.'

def _get_status(self):

    req = IsEnabledRequest()
    req.set_package(self._package)
    for capability in self._capabilities:
        req.add_capability(capability)
    for method in self._methods:
        req.add_call(method)
    resp = capability_service_pb.IsEnabledResponse()
    self._stub_map.MakeSyncCall('capability_service', 'IsEnabled', req, resp)
    if (resp.summary_status() == IsEnabledResponse.UNKNOWN):
        raise UnknownCapabilityError()
    return resp
