def METHOD_NAME(self):
    env = VirtualBuildEnv(self)
    env.METHOD_NAME()
    if can_run(self):
        env = VirtualRunEnv(self)
        env.METHOD_NAME(scope="build")
    tc = CMakeToolchain(self)
    googleapis_resdirs = self.dependencies["googleapis"].cpp_info.aggregated_components().resdirs
    tc.cache_variables["GOOGLEAPIS_PROTO_DIRS"] = ";".join([p.replace("\\", "/") for p in googleapis_resdirs])
    tc.METHOD_NAME()
    deps = CMakeDeps(self)
    deps.METHOD_NAME()