summaryrefslogtreecommitdiff
path: root/java/com/google/android/libraries/mobiledatadownload/GetFileGroupRequest.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/google/android/libraries/mobiledatadownload/GetFileGroupRequest.java')
-rw-r--r--java/com/google/android/libraries/mobiledatadownload/GetFileGroupRequest.java21
1 files changed, 20 insertions, 1 deletions
diff --git a/java/com/google/android/libraries/mobiledatadownload/GetFileGroupRequest.java b/java/com/google/android/libraries/mobiledatadownload/GetFileGroupRequest.java
index bf117d5..05cabf8 100644
--- a/java/com/google/android/libraries/mobiledatadownload/GetFileGroupRequest.java
+++ b/java/com/google/android/libraries/mobiledatadownload/GetFileGroupRequest.java
@@ -34,8 +34,12 @@ public abstract class GetFileGroupRequest {
public abstract boolean preserveZipDirectories();
+ public abstract boolean verifyIsolatedStructure();
+
public static Builder newBuilder() {
- return new AutoValue_GetFileGroupRequest.Builder().setPreserveZipDirectories(false);
+ return new AutoValue_GetFileGroupRequest.Builder()
+ .setPreserveZipDirectories(false)
+ .setVerifyIsolatedStructure(true);
}
/** Builder for {@link GetFileGroupRequest}. */
@@ -60,6 +64,21 @@ public abstract class GetFileGroupRequest {
*/
public abstract Builder setPreserveZipDirectories(boolean preserve);
+ /**
+ * By default, file groups will isolated structures will have this structure checked for each
+ * file when returning the file group. If the isolated structure is not correct, MDD will return
+ * a failure.
+ *
+ * <p>Setting this option to false allows clients to bypass this check, reducing the latency for
+ * critical callpaths.
+ *
+ * <p>For groups that do not have an isolated structure, this option is a no-op.
+ *
+ * <p>NOTE: All groups with isolated structures are also verified/fixed during MDD's maintenance
+ * periodic task.
+ */
+ public abstract Builder setVerifyIsolatedStructure(boolean verifyIsolatedStructure);
+
public abstract GetFileGroupRequest build();
}
}