query_drive_activity_response.proto 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.apps.drive.activity.v2;
  16. import "google/apps/drive/activity/v2/action.proto";
  17. import "google/apps/drive/activity/v2/actor.proto";
  18. import "google/apps/drive/activity/v2/common.proto";
  19. import "google/apps/drive/activity/v2/target.proto";
  20. import "google/protobuf/timestamp.proto";
  21. option csharp_namespace = "Google.Apps.Drive.Activity.V2";
  22. option go_package = "google.golang.org/genproto/googleapis/apps/drive/activity/v2;activity";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "QueryDriveActivityResponseProto";
  25. option java_package = "com.google.apps.drive.activity.v2";
  26. option objc_class_prefix = "GADA";
  27. option php_namespace = "Google\\Apps\\Drive\\Activity\\V2";
  28. // Response message for querying Drive activity.
  29. message QueryDriveActivityResponse {
  30. // List of activity requested.
  31. repeated DriveActivity activities = 1;
  32. // Token to retrieve the next page of results, or
  33. // empty if there are no more results in the list.
  34. string next_page_token = 2;
  35. }
  36. // A single Drive activity comprising one or more Actions by one or more
  37. // Actors on one or more Targets. Some Action groupings occur spontaneously,
  38. // such as moving an item into a shared folder triggering a permission change.
  39. // Other groupings of related Actions, such as multiple Actors editing one item
  40. // or moving multiple files into a new folder, are controlled by the selection
  41. // of a ConsolidationStrategy in the QueryDriveActivityRequest.
  42. message DriveActivity {
  43. // Key information about the primary action for this activity. This is either
  44. // representative, or the most important, of all actions in the activity,
  45. // according to the ConsolidationStrategy in the request.
  46. ActionDetail primary_action_detail = 2;
  47. // All actor(s) responsible for the activity.
  48. repeated Actor actors = 3;
  49. // Details on all actions in this activity.
  50. repeated Action actions = 4;
  51. // All Google Drive objects this activity is about (e.g. file, folder, drive).
  52. // This represents the state of the target immediately after the actions
  53. // occurred.
  54. repeated Target targets = 5;
  55. // The period of time when this activity occurred.
  56. oneof time {
  57. // The activity occurred at this specific time.
  58. google.protobuf.Timestamp timestamp = 6;
  59. // The activity occurred over this time range.
  60. TimeRange time_range = 7;
  61. }
  62. }