Summary: Methods | Inherited Methods | [Expand All]
public final class

# UserAddressRequest.Builder

extends Object

java.lang.Object
↳ | com.google.android.gms.identity.intents.UserAddressRequest.Builder

## Class Overview

Builder for creating a `UserAddressRequest`. This class lets your create an instance of UserAddressRequest that specifies a set of countries for restricting the choice of addresses by the user, i.e. the user can only select an address if it's in one of the specified countries. If no countries are specified, then there are no restrictions and the user can select any of their addresses to share with your app.

## Summary

Public Methods
UserAddressRequest.Builder | addAllowedCountrySpecification(CountrySpecification countrySpecification) Specifies a country whose addresses can be handled by your app.
UserAddressRequest.Builder | addAllowedCountrySpecifications(Collection<CountrySpecification> countrySpecifications) Specifies multiple countries whose addresses can be handled by your app.
UserAddressRequest | build() Builds an instance of UserAddressRequest and returns it.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Public Methods

#### public UserAddressRequest.Builder addAllowedCountrySpecification (CountrySpecification countrySpecification)

Specifies a country whose addresses can be handled by your app. Note that calling this after you have called `build()` will cause a runtime exception to be thrown.

#### public UserAddressRequest.Builder addAllowedCountrySpecifications (Collection<CountrySpecification> countrySpecifications)

Specifies multiple countries whose addresses can be handled by your app. Note that calling this after you have called `build()` will cause a runtime exception to be thrown.

#### public UserAddressRequest build ()

Builds an instance of UserAddressRequest and returns it.