123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- syntax = "proto3";
- package google.cloud.retail.v2;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/cloud/retail/v2/user_event.proto";
- import "google/protobuf/struct.proto";
- option csharp_namespace = "Google.Cloud.Retail.V2";
- option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail";
- option java_multiple_files = true;
- option java_outer_classname = "PredictionServiceProto";
- option java_package = "com.google.cloud.retail.v2";
- option objc_class_prefix = "RETAIL";
- option php_namespace = "Google\\Cloud\\Retail\\V2";
- option ruby_package = "Google::Cloud::Retail::V2";
- service PredictionService {
- option (google.api.default_host) = "retail.googleapis.com";
- option (google.api.oauth_scopes) =
- "https://www.googleapis.com/auth/cloud-platform";
-
- rpc Predict(PredictRequest) returns (PredictResponse) {
- option (google.api.http) = {
- post: "/v2/{placement=projects/*/locations/*/catalogs/*/placements/*}:predict"
- body: "*"
- additional_bindings {
- post: "/v2/{placement=projects/*/locations/*/catalogs/*/servingConfigs/*}:predict"
- body: "*"
- }
- };
- }
- }
- message PredictRequest {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- string placement = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- UserEvent user_event = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
- int32 page_size = 3;
-
- string page_token = 4 [deprecated = true];
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- string filter = 5;
-
-
-
-
- bool validate_only = 6;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- map<string, google.protobuf.Value> params = 7;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- map<string, string> labels = 8;
- }
- message PredictResponse {
-
- message PredictionResult {
-
- string id = 1;
-
-
-
-
-
-
-
-
- map<string, google.protobuf.Value> metadata = 2;
- }
-
-
- repeated PredictionResult results = 1;
-
-
-
-
- string attribution_token = 2;
-
- repeated string missing_ids = 3;
-
- bool validate_only = 4;
- }
|