123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- syntax = "proto3";
- package google.cloud.discoveryengine.v1beta;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/httpbody.proto";
- import "google/api/resource.proto";
- import "google/cloud/discoveryengine/v1beta/import_config.proto";
- import "google/cloud/discoveryengine/v1beta/user_event.proto";
- import "google/longrunning/operations.proto";
- option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta";
- option go_package = "google.golang.org/genproto/googleapis/cloud/discoveryengine/v1beta;discoveryengine";
- option java_multiple_files = true;
- option java_outer_classname = "UserEventServiceProto";
- option java_package = "com.google.cloud.discoveryengine.v1beta";
- option objc_class_prefix = "DISCOVERYENGINE";
- option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta";
- option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta";
- service UserEventService {
- option (google.api.default_host) = "discoveryengine.googleapis.com";
- option (google.api.oauth_scopes) =
- "https://www.googleapis.com/auth/cloud-platform";
-
- rpc WriteUserEvent(WriteUserEventRequest) returns (UserEvent) {
- option (google.api.http) = {
- post: "/v1beta/{parent=projects/*/locations/*/dataStores/*}/userEvents:write"
- body: "user_event"
- };
- }
-
-
-
-
-
- rpc CollectUserEvent(CollectUserEventRequest) returns (google.api.HttpBody) {
- option (google.api.http) = {
- get: "/v1beta/{parent=projects/*/locations/*/dataStores/*}/userEvents:collect"
- };
- }
-
-
-
-
-
-
-
- rpc ImportUserEvents(ImportUserEventsRequest)
- returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1beta/{parent=projects/*/locations/*/dataStores/*}/userEvents:import"
- body: "*"
- };
- option (google.longrunning.operation_info) = {
- response_type: "google.cloud.discoveryengine.v1beta.ImportUserEventsResponse"
- metadata_type: "google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata"
- };
- }
- }
- message WriteUserEventRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "discoveryengine.googleapis.com/DataStore"
- }
- ];
-
- optional UserEvent user_event = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message CollectUserEventRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "discoveryengine.googleapis.com/DataStore"
- }
- ];
-
-
- string user_event = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
- optional string uri = 3;
-
-
-
- optional int64 ets = 4;
- }
|