IsOpenRequest

public abstract class IsOpenRequest implements Request


Request used by isOpen.

Summary

Nested types

public abstract class IsOpenRequest.Builder

Builder for IsOpenRequest.

Public constructors

Public methods

static IsOpenRequest.Builder
builder(String placeId)

Returns an IsOpenRequest.Builder using the device's current time.

static IsOpenRequest.Builder
builder(Place place)

Returns an IsOpenRequest.Builder using the device's current time.

static IsOpenRequest.Builder
builder(String placeId, long utcTimeMillis)

Returns an IsOpenRequest.Builder.

static IsOpenRequest.Builder
builder(Place place, long utcTimeMillis)

Returns an IsOpenRequest.Builder.

abstract @Nullable CancellationToken

Returns the CancellationToken used by PlacesClient to cancel any queued requests.

abstract @Nullable Place

Returns the Place for which isOpen is to be determined.

abstract @Nullable String

Returns the getId of the place for which isOpen is to be determined.

abstract long

Returns the milliseconds from 1970-01-01T00:00:00Z for when isOpen is to be determined.

static IsOpenRequest

Returns an IsOpenRequest using the device's current time.

static IsOpenRequest

Returns an IsOpenRequest using the device's current time.

static IsOpenRequest
newInstance(String placeId, long utcTimeMillis)

Returns an IsOpenRequest.

static IsOpenRequest
newInstance(Place place, long utcTimeMillis)

Returns an IsOpenRequest.

Public constructors

IsOpenRequest

public IsOpenRequest()

Public methods

builder

public static IsOpenRequest.Builder builder(String placeId)

Returns an IsOpenRequest.Builder using the device's current time.

Parameters
String placeId

The getId of the place for which isOpen is to be determined.

builder

public static IsOpenRequest.Builder builder(Place place)

Returns an IsOpenRequest.Builder using the device's current time.

Parameters
Place place

The Place for which isOpen is to be determined. * @throws

Throws
java.lang.IllegalArgumentException

if Place does not have a getId associated with it.

builder

public static IsOpenRequest.Builder builder(String placeId, long utcTimeMillis)

Returns an IsOpenRequest.Builder.

Parameters
String placeId

The getId of the place for which isOpen is to be determined.

long utcTimeMillis

The milliseconds from 1970-01-01T00:00:00Z.

builder

public static IsOpenRequest.Builder builder(Place place, long utcTimeMillis)

Returns an IsOpenRequest.Builder.

Parameters
Place place

The Place for which isOpen is to be determined.

long utcTimeMillis

The milliseconds from 1970-01-01T00:00:00Z.

Throws
java.lang.IllegalArgumentException

if Place does not have a getId associated with it.

getCancellationToken

public abstract @Nullable CancellationToken getCancellationToken()

Returns the CancellationToken used by PlacesClient to cancel any queued requests.

getPlace

public abstract @Nullable Place getPlace()

Returns the Place for which isOpen is to be determined.

Returns null if a placeId was used to create the IsOpenRequest.

getPlaceId

public abstract @Nullable String getPlaceId()

Returns the getId of the place for which isOpen is to be determined.

Returns null if a place was used to create the IsOpenRequest.

getUtcTimeMillis

public abstract long getUtcTimeMillis()

Returns the milliseconds from 1970-01-01T00:00:00Z for when isOpen is to be determined.

newInstance

public static IsOpenRequest newInstance(String placeId)

Returns an IsOpenRequest using the device's current time.

Parameters
String placeId

The getId of the place for which isOpen is to be determined.

newInstance

public static IsOpenRequest newInstance(Place place)

Returns an IsOpenRequest using the device's current time.

Parameters
Place place

The Place for which isOpen is to be determined. * @throws

Throws
java.lang.IllegalArgumentException

if Place does not have a getId associated with it.

newInstance

public static IsOpenRequest newInstance(String placeId, long utcTimeMillis)

Returns an IsOpenRequest.

Parameters
String placeId

The getId of the place for which isOpen is to be determined.

long utcTimeMillis

The milliseconds from 1970-01-01T00:00:00Z.

newInstance

public static IsOpenRequest newInstance(Place place, long utcTimeMillis)

Returns an IsOpenRequest.

Parameters
Place place

The Place for which isOpen is to be determined.

long utcTimeMillis

The milliseconds from 1970-01-01T00:00:00Z. * @throws

Throws
java.lang.IllegalArgumentException

if Place does not have a getId associated with it.