Summary: Nested Classes | Inherited Constants | Fields | Methods | Inherited Methods | [Expand All]
public class

# DataUpdateRequest

extends Object
implements SafeParcelable

java.lang.Object
↳ | com.google.android.gms.fitness.request.DataUpdateRequest

## Class Overview

A request to update data added by the app from the Google Fit store in the time interval specified.

An app will provide time range using startTimeMillis and endTimeMillis for which app wants to update the fitness data. Existing fitness data for the provided time range will be cleared. In addition, app will provide `DataSet` which will have new fitness data for the provided time range. This new data will be inserted into fitness store.

An app can only update data that it has added and cannot update data added by other apps.

## Summary

Nested Classes
class | DataUpdateRequest.Builder | Builder used to create new DataUpdateRequests.

[Expand] Inherited Constants
From interface com.google.android.gms.common.internal.safeparcel.SafeParcelable
String | NULL |
From interface android.os.Parcelable
int | CONTENTS_FILE_DESCRIPTOR |
int | PARCELABLE_WRITE_RETURN_VALUE |

Fields
public static final Creator<DataUpdateRequest> | CREATOR |

Public Methods
boolean | equals(Object o)
IBinder | getCallbackBinder()
DataSet | getDataSet() Returns the data set we're inserting.
long | getEndTime(TimeUnit timeUnit) Returns the end time of the query, in the given unit since epoch.
long | getStartTime(TimeUnit timeUnit) Returns the start time of the query, in the given unit since epoch.
int | hashCode()
String | toString()
void | writeToParcel(Parcel dest, int flags)

[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()
From interface android.os.Parcelable
abstract int | describeContents()
abstract void | writeToParcel(Parcel arg0, int arg1)

## Fields

#### public static final Creator<DataUpdateRequest> CREATOR

## Public Methods

#### public boolean equals (Object o)

#### public IBinder getCallbackBinder ()

#### public DataSet getDataSet ()

Returns the data set we're inserting.

#### public long getEndTime (TimeUnit timeUnit)

Returns the end time of the query, in the given unit since epoch. A valid end time is always set.

#### public long getStartTime (TimeUnit timeUnit)

Returns the start time of the query, in the given unit since epoch. A valid start time is always set.

#### public int hashCode ()

#### public String toString ()

#### public void writeToParcel (Parcel dest, int flags)