Creates an already-completed OperationFuture, useful for testing.
completedSnapshot.isDone() must return true. The snapshot's getResponse()
and getMetadata() must be instances of ResponseT and MetadataT,
respectively.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-15 UTC."],[[["\u003cp\u003eThis webpage provides documentation for \u003ccode\u003eOperationFutures\u003c/code\u003e within the Google API Client Library for Java.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version documented is 2.63.1, while the current version of the page is for 2.50.0, and there are a wide range of past versions available to check.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eOperationFutures\u003c/code\u003e inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e, providing inherited methods like \u003ccode\u003eclone()\u003c/code\u003e, \u003ccode\u003eequals()\u003c/code\u003e, and \u003ccode\u003ewait()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eOperationFutures\u003c/code\u003e offers a static method \u003ccode\u003eimmediateOperationFuture(OperationSnapshot completedSnapshot)\u003c/code\u003e for creating an already-completed \u003ccode\u003eOperationFuture\u003c/code\u003e, which is useful for testing purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eimmediateOperationFuture\u003c/code\u003e method takes an \u003ccode\u003eOperationSnapshot\u003c/code\u003e as a parameter, and it is stipulated that \u003ccode\u003ecompletedSnapshot.isDone()\u003c/code\u003e must return true, and the snapshot's \u003ccode\u003egetResponse()\u003c/code\u003e and \u003ccode\u003egetMetadata()\u003c/code\u003e must be of \u003ccode\u003eResponseT\u003c/code\u003e and \u003ccode\u003eMetadataT\u003c/code\u003e respectively.\u003c/p\u003e\n"]]],[],null,[]]