# PlaceBufferResponse

public class **PlaceBufferResponse** extends DataBufferResponse\<[Place](https://developers.google.com/android/reference/com/google/android/gms/location/places/Place), [PlaceBuffer](https://developers.google.com/android/reference/com/google/android/gms/location/places/PlaceBuffer)\>  
**This class is deprecated.**   

**The Google Play Services Places SDK is deprecated.** A new SDK is available.
See the [client
migration guide](https://developers.google.com/places/android-sdk/client-migration) for more information.

Data structure providing access to a list of `https://developers.google.com/android/reference/com/google/android/gms/location/places/Place`
objects.

NOTE: The calling application must `https://developers.google.com/android/reference/com/google/android/gms/common/api/DataBufferResponse#release()`
this object after it is done with it to prevent a memory leak. Refer to the [developer's guide](https://developers.google.com/places/documentation/android/buffers) for more
information about handling buffers.

### Public Method Summary

|---|---|
| [CharSequence](https://developer.android.com/reference/java/lang/CharSequence.html) | [getAttributions](https://developers.google.com/android/reference/com/google/android/gms/location/places/PlaceBufferResponse#getAttributions())() Returns the attributions to be shown to the user. |

### Inherited Method Summary

From class com.google.android.gms.common.api.DataBufferResponse

|---|---|
| void | close() |
| [Place](https://developers.google.com/android/reference/com/google/android/gms/location/places/Place) | get(int arg0) |
| int | getCount() |
| [Bundle](https://developer.android.com/reference/android/os/Bundle.html) | getMetadata() |
| boolean | isClosed() |
| [Iterator](https://developer.android.com/reference/java/util/Iterator.html)\<[Place](https://developers.google.com/android/reference/com/google/android/gms/location/places/Place)\> | iterator() |
| void | release() |
| [Iterator](https://developer.android.com/reference/java/util/Iterator.html)\<[Place](https://developers.google.com/android/reference/com/google/android/gms/location/places/Place)\> | singleRefIterator() |

From class com.google.android.gms.common.api.Response

|---|---|
| R extends [AbstractDataBuffer](https://developers.google.com/android/reference/com/google/android/gms/common/data/AbstractDataBuffer)\<T\> \& [Result](https://developers.google.com/android/reference/com/google/android/gms/common/api/Result) | getResult() |
| void | setResult(R extends [AbstractDataBuffer](https://developers.google.com/android/reference/com/google/android/gms/common/data/AbstractDataBuffer)\<T\> \& [Result](https://developers.google.com/android/reference/com/google/android/gms/common/api/Result) arg0) |

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

From interface com.google.android.gms.common.data.DataBuffer

|---|---|
| abstract void | close() |
| abstract [Place](https://developers.google.com/android/reference/com/google/android/gms/location/places/Place) | get(int arg0) |
| abstract int | getCount() |
| abstract [Bundle](https://developer.android.com/reference/android/os/Bundle.html) | getMetadata() |
| abstract boolean | isClosed() |
| abstract [Iterator](https://developer.android.com/reference/java/util/Iterator.html)\<[Place](https://developers.google.com/android/reference/com/google/android/gms/location/places/Place)\> | iterator() |
| abstract void | release() |
| abstract [Iterator](https://developer.android.com/reference/java/util/Iterator.html)\<[Place](https://developers.google.com/android/reference/com/google/android/gms/location/places/Place)\> | singleRefIterator() |

From interface java.lang.Iterable

|---|---|
| void | forEach(Consumer\<? super T\> arg0) |
| abstract [Iterator](https://developer.android.com/reference/java/util/Iterator.html)\<[Place](https://developers.google.com/android/reference/com/google/android/gms/location/places/Place)\> | iterator() |
| Spliterator\<[Place](https://developers.google.com/android/reference/com/google/android/gms/location/places/Place)\> | spliterator() |

From interface com.google.android.gms.common.api.Releasable

|---|---|
| abstract void | release() |

## Public Methods

#### public [CharSequence](https://developer.android.com/reference/java/lang/CharSequence.html)
**getAttributions** ()

Returns the attributions to be shown to the user.

These are aggregated attributions for all the places in the buffer.

We recommend placing this information below any place information. See [Displaying
Attributions](https://developers.google.com/places/android/attributions#third-party) for more details.

##### Returns

- The attributions in HTML format, or null if there are none.