Skip to content

Commit

Permalink
Add CopyOptions to ExchangeWorkflow.CopyToSharedStorage (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
efoxepstein committed Sep 28, 2021
1 parent bf04b4e commit b0a3c79
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions src/main/proto/wfa/measurement/api/v2alpha/exchange_workflow.proto
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,32 @@ message ExchangeWorkflow {
// to "c", this would result in creating a shared blob with label "c". The
// only way to read "c" would be to use a `CopyFromSharedStorageStep` with
// input_labels and output_labels swapped.
message CopyToSharedStorageStep {}
message CopyToSharedStorageStep {
CopyOptions copy_options = 1;
}

// Copies blobs from shared storage to private storage. See documentation
// for `CopyToSharedStorageStep`.
message CopyFromSharedStorageStep {}
message CopyFromSharedStorageStep {
CopyOptions copy_options = 1;
}

message CopyOptions {
enum LabelType {
BLOB_TYPE_UNKNOWN = 0;

// Indicates the blob should be treated as an opaque blob.
BLOB = 1;

// Indicates the blob for a label is a "manifest" -- the blob is treated
// as a UTF-8 plaintext file containing a file glob referencing other
// files that should be copied. The referenced files should be in the
// same directory as the manifest blob itself -- and thus the glob
// should not have any protocol specified or any directory separators.
MANIFEST = 2;
}
LabelType label_type = 1;
}

// Compares the inputs to determine if they overlap sufficiently.
message IntersectAndValidateStep {
Expand Down

0 comments on commit b0a3c79

Please sign in to comment.