Nested Class Summary
|class||ExecutionOptions.Builder||A builder for creating a new
|int||CONFLICT_STRATEGY_KEEP_REMOTE||A conflict resolution strategy that keeps the remote version of the file instead of overwriting it with the locally committed changes when a conflict is detected.|
|int||CONFLICT_STRATEGY_OVERWRITE_REMOTE||A conflict resolution strategy that always overwrites any remote state and applies the locally committed changes on top, even in case of conflicts.|
|int||MAX_TRACKING_TAG_STRING_LENGTH||The maximum tracking tag size in string length.|
Public Method Summary
Inherited Method Summary
public static final int CONFLICT_STRATEGY_KEEP_REMOTE
A conflict resolution strategy that keeps the remote version of the file instead of overwriting it with the locally committed changes when a conflict is detected.
When using this strategy, the caller must also request completion notifications, by
setNotifyOnCompletion(boolean). Then, in case of conflict the remote state
of the file will be preserved but through the
the client will be able to handle the conflict, access the locally committed changes
that conflicted (and couldn't be persisted on the server), and perform the desired
conflict resolution with all the data. See
STATUS_CONFLICT for more information on how to resolve conflicts.
This strategy can be used with
that were either opened in
openFile(DriveFile, int), or reopened in
but obtained through
reopenContentsForWrite(DriveContents). This is because the API can only
detect conflicts if the written contents are based upon a known revision. In both cases
the base revision is considered the one obtained through the first
public static final int CONFLICT_STRATEGY_OVERWRITE_REMOTE
A conflict resolution strategy that always overwrites any remote state and applies the locally committed changes on top, even in case of conflicts.
When this strategy is used, the Drive API will not even attempt to detect conflicts
and will always overwrite contents. This strategy can be used with
opened in any mode (
public static final int MAX_TRACKING_TAG_STRING_LENGTH
The maximum tracking tag size in string length.