def _find_one_after_last_labeled_index(self):
        body_index = 0
        while self.bodies[body_index].segment_id in self.state.body_labels:
            body_index += 1
        return body_index
def __init__(self, resolver, proxy_type, key):
        if proxy_type == "file":
            self._method = resolver.get_file_content
        elif proxy_type == "param":
            self._method = resolver.get_parameter_value
        elif proxy_type == "secret":
            self._method = resolver.get_secret_value
        elif proxy_type == "bucket_file":
            self._method = resolver.get_bucket_file
        else:
            raise ValueError("Unknown proxy type %s", proxy_type)
        self._key = key