-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
syntax = "proto3"; | ||
|
||
package cmp.services.activity.v1alpha1; | ||
|
||
import "cmp/services/activity/v1alpha1/search_result_types.proto"; | ||
import "cmp/types/v1alpha1/common.proto"; | ||
import "google/protobuf/timestamp.proto"; | ||
|
||
message ActivityProductListRequest { | ||
// Message header | ||
cmp.types.v1alpha1.Header header = 1; | ||
|
||
// Only respond with the products that are modified after this timestamp | ||
google.protobuf.Timestamp modified_after = 2; | ||
} | ||
|
||
message ActivityProductListResponse { | ||
// Message header | ||
cmp.types.v1alpha1.Header header = 1; | ||
|
||
// Product list: Activities | ||
repeated Activity activities = 2; | ||
} | ||
|
||
// This service is used to get a product list for activities. | ||
// | ||
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/activity/v1alpha1/list.proto.dot.xs.svg) | ||
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/activity/v1alpha1/list.proto.dot.svg) | ||
service ActivityProductListService { | ||
// Gets an optional `modified_after` date and returns a product list. | ||
rpc ActivityProductList(ActivityProductListRequest) returns (ActivityProductListResponse); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters