Skip to content

Commit

Permalink
Add a secondary EventGroup pattern with MeasurementConsumer as the pa…
Browse files Browse the repository at this point in the history
…rent.
  • Loading branch information
SanjayVas committed Jun 13, 2023
1 parent 3705b80 commit a0f5faa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/main/proto/wfa/measurement/api/v2alpha/event_group.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ message EventGroup {
option (google.api.resource) = {
type: "halo.wfanet.org/EventGroup"
pattern: "dataProviders/{data_provider}/eventGroups/{event_group}"
pattern: "measurementConsumers/{measurement_consumer}/eventGroups/{event_group}"
singular: "eventGroup"
plural: "eventGroups"
};

// Resource name.
//
// Canonical format: dataProviders/{data_provider}/eventGroups/{event_group}
string name = 1;

// Resource name of the `MeasurementConsumer` associated with this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,9 @@ message DeleteEventGroupRequest {

// Request message for `ListEventGroups` method.
message ListEventGroupsRequest {
// Resource name of the parent `DataProvider`. The wildcard ID (`-`) may be
// used in place of the `DataProvider` ID to list across `DataProvider`s, in
// which case a filter should be specified.
// Resource name of the parent.
string parent = 1 [
(google.api.resource_reference).type = "halo.wfanet.org/DataProvider",
(google.api.resource_reference).child_type = "halo.wfanet.org/EventGroup",
(google.api.field_behavior) = REQUIRED
];

Expand All @@ -137,6 +135,9 @@ message ListEventGroupsRequest {
repeated string measurement_consumers = 1
[(google.api.resource_reference).type =
"halo.wfanet.org/MeasurementConsumer"];
// Matches against the parent `DataProvider`.
repeated string data_providers = 6
[(google.api.resource_reference).type = "halo.wfanet.org/DataProvider"];
}
// Filter criteria for this request.
//
Expand Down

0 comments on commit a0f5faa

Please sign in to comment.