Represents a result of putting a list of objects (documents or queries)
into an index. The response contains a list of OperationResult
indicating success or not of putting each of the objects into the index,
and a list of Id of the objects which are those given in the request or
allocated by the search service to those objects which do not have an
Id supplied.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003e\u003ccode\u003ePutResponse\u003c/code\u003e represents the outcome of adding a list of objects (documents or queries) to an index, providing details on the success or failure of each object's insertion.\u003c/p\u003e\n"],["\u003cp\u003eIt provides two key pieces of information: a list of \u003ccode\u003eOperationResult\u003c/code\u003e objects indicating the status of each put operation, and a list of the Ids associated with the objects.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePutResponse\u003c/code\u003e implements both \u003ccode\u003eIterable<OperationResult>\u003c/code\u003e and \u003ccode\u003eSerializable\u003c/code\u003e, meaning you can iterate through the results and serialize the response.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve an unmodifiable list of Ids using the \u003ccode\u003egetIds()\u003c/code\u003e method, and you can get an unmodifiable list of \u003ccode\u003eOperationResult\u003c/code\u003e objects using \u003ccode\u003egetResults()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are methods such as \u003ccode\u003etoString()\u003c/code\u003e and \u003ccode\u003eiterator()\u003c/code\u003e available to get a string representation of the \u003ccode\u003ePutResponse\u003c/code\u003e and to iterate over the \u003ccode\u003eOperationResult\u003c/code\u003e respectively.\u003c/p\u003e\n"]]],[],null,["# Class PutResponse (2.0.0)\n\n public class PutResponse implements Iterable\u003cOperationResult\u003e, Serializable\n\nRepresents a result of putting a list of objects (documents or queries)\ninto an index. The response contains a list of [OperationResult](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.OperationResult)\nindicating success or not of putting each of the objects into the index,\nand a list of Id of the objects which are those given in the request or\nallocated by the search service to those objects which do not have an\nId supplied. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e PutResponse \n\nImplements\n----------\n\n[Iterable\\\u003cOperationResult\\\u003e](https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable\u003ccom/google/appengine/api/search/OperationResult\u003e.html), [Serializable](https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html) \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nConstructors\n------------\n\n### PutResponse(List\\\u003cOperationResult\\\u003e results, List\\\u003cString\\\u003e ids)\n\n protected PutResponse(List\u003cOperationResult\u003e results, List\u003cString\u003e ids)\n\nCreates a [PutResponse](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.PutResponse) by specifying a list of\n[OperationResult](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.OperationResult) and a list of document or query ids.\n\nMethods\n-------\n\n### getIds()\n\n public List\u003cString\u003e getIds()\n\n### getResults()\n\n public List\u003cOperationResult\u003e getResults()\n\n### iterator()\n\n public Iterator\u003cOperationResult\u003e iterator()\n\n### toString()\n\n public String toString()\n\n**Overrides** \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--)"]]