event_service.proto 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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.cloud.talent.v4;
  16. import "google/api/annotations.proto";
  17. import "google/api/client.proto";
  18. import "google/api/field_behavior.proto";
  19. import "google/api/resource.proto";
  20. import "google/cloud/talent/v4/event.proto";
  21. option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "EventServiceProto";
  24. option java_package = "com.google.cloud.talent.v4";
  25. option objc_class_prefix = "CTS";
  26. // A service handles client event report.
  27. service EventService {
  28. option (google.api.default_host) = "jobs.googleapis.com";
  29. option (google.api.oauth_scopes) =
  30. "https://www.googleapis.com/auth/cloud-platform,"
  31. "https://www.googleapis.com/auth/jobs";
  32. // Report events issued when end user interacts with customer's application
  33. // that uses Cloud Talent Solution. You may inspect the created events in
  34. // [self service
  35. // tools](https://console.cloud.google.com/talent-solution/overview).
  36. // [Learn
  37. // more](https://cloud.google.com/talent-solution/docs/management-tools)
  38. // about self service tools.
  39. rpc CreateClientEvent(CreateClientEventRequest) returns (ClientEvent) {
  40. option (google.api.http) = {
  41. post: "/v4/{parent=projects/*/tenants/*}/clientEvents"
  42. body: "client_event"
  43. };
  44. option (google.api.method_signature) = "parent,client_event";
  45. }
  46. }
  47. // The report event request.
  48. message CreateClientEventRequest {
  49. // Required. Resource name of the tenant under which the event is created.
  50. //
  51. // The format is "projects/{project_id}/tenants/{tenant_id}", for example,
  52. // "projects/foo/tenants/bar".
  53. string parent = 1 [
  54. (google.api.field_behavior) = REQUIRED,
  55. (google.api.resource_reference) = {
  56. type: "jobs.googleapis.com/Tenant"
  57. }
  58. ];
  59. // Required. Events issued when end user interacts with customer's application that
  60. // uses Cloud Talent Solution.
  61. ClientEvent client_event = 2 [(google.api.field_behavior) = REQUIRED];
  62. }