Add resource capabitliy when request task am: 4a065d76b6
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/federated-compute/+/25255176
Change-Id: I5147b06660b1eb4150b43b66236e69715eaff926
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/fcp/protos/federatedcompute/common.proto b/fcp/protos/federatedcompute/common.proto
index dd57daa..9b4bd5a 100644
--- a/fcp/protos/federatedcompute/common.proto
+++ b/fcp/protos/federatedcompute/common.proto
@@ -76,8 +76,7 @@
message InlineResource {
// The inlined data for the resource.
- bytes data = 1
- ;
+ bytes data = 1;
// The compression used for the inlined data, or unset if the data is
// uncompressed.
@@ -93,6 +92,10 @@
// client. Not set if `client_cache_id` is not set.
google.protobuf.Duration max_age = 5;
+ // The compression used for resource, or unset if the data is
+ // uncompressed.
+ optional ResourceCompressionFormat compression_format = 999;
+
reserved 2;
}
diff --git a/fcp/protos/ondevicepersonalization/task_assignments.proto b/fcp/protos/ondevicepersonalization/task_assignments.proto
index 62e5e90..b890695 100644
--- a/fcp/protos/ondevicepersonalization/task_assignments.proto
+++ b/fcp/protos/ondevicepersonalization/task_assignments.proto
@@ -25,9 +25,12 @@
// Create task assignment request.
// The url to create task assignment under v1 API is:
// https://{host}/taskassignment/v1/population/{populationName}:create-task-assignment
-// Next Id: 2
+// Next Id: 3
message CreateTaskAssignmentRequest {
google.internal.federatedcompute.v1.ClientVersion client_version = 1;
+
+ // The client's capabilities when downloading and processing resources.
+ google.internal.federatedcompute.v1.ResourceCapabilities resource_capabilities = 2;
}
// Create task assignment response.
@@ -105,11 +108,15 @@
}
// The upload instruction.
-// Next id: 3
+// Next id: 4
message UploadInstruction {
// upload file path.
string upload_location = 1;
// extra head for uploading.
map<string, string> extra_request_headers = 2;
+
+ // The compression used for resource, or unset if the data is
+ // uncompressed.
+ google.internal.federatedcompute.v1.ResourceCompressionFormat compression_format = 3;
}