123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- syntax = "proto3";
- package google.cloud.retail.v2beta;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/retail/v2beta/serving_config.proto";
- import "google/protobuf/empty.proto";
- import "google/protobuf/field_mask.proto";
- option csharp_namespace = "Google.Cloud.Retail.V2Beta";
- option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail";
- option java_multiple_files = true;
- option java_outer_classname = "ServingConfigServiceProto";
- option java_package = "com.google.cloud.retail.v2beta";
- option objc_class_prefix = "RETAIL";
- option php_namespace = "Google\\Cloud\\Retail\\V2beta";
- option ruby_package = "Google::Cloud::Retail::V2beta";
- service ServingConfigService {
- option (google.api.default_host) = "retail.googleapis.com";
- option (google.api.oauth_scopes) =
- "https://www.googleapis.com/auth/cloud-platform";
-
-
-
-
-
- rpc CreateServingConfig(CreateServingConfigRequest) returns (ServingConfig) {
- option (google.api.http) = {
- post: "/v2beta/{parent=projects/*/locations/*/catalogs/*}/servingConfigs"
- body: "serving_config"
- };
- option (google.api.method_signature) =
- "parent,serving_config,serving_config_id";
- }
-
-
-
- rpc DeleteServingConfig(DeleteServingConfigRequest)
- returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v2beta/{name=projects/*/locations/*/catalogs/*/servingConfigs/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc UpdateServingConfig(UpdateServingConfigRequest) returns (ServingConfig) {
- option (google.api.http) = {
- patch: "/v2beta/{serving_config.name=projects/*/locations/*/catalogs/*/servingConfigs/*}"
- body: "serving_config"
- };
- option (google.api.method_signature) = "serving_config,update_mask";
- }
-
-
-
- rpc GetServingConfig(GetServingConfigRequest) returns (ServingConfig) {
- option (google.api.http) = {
- get: "/v2beta/{name=projects/*/locations/*/catalogs/*/servingConfigs/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListServingConfigs(ListServingConfigsRequest)
- returns (ListServingConfigsResponse) {
- option (google.api.http) = {
- get: "/v2beta/{parent=projects/*/locations/*/catalogs/*}/servingConfigs"
- };
- option (google.api.method_signature) = "parent";
- }
-
-
-
-
-
-
-
- rpc AddControl(AddControlRequest) returns (ServingConfig) {
- option (google.api.http) = {
- post: "/v2beta/{serving_config=projects/*/locations/*/catalogs/*/servingConfigs/*}:addControl"
- body: "*"
- };
- option (google.api.method_signature) = "serving_config";
- }
-
-
-
-
- rpc RemoveControl(RemoveControlRequest) returns (ServingConfig) {
- option (google.api.http) = {
- post: "/v2beta/{serving_config=projects/*/locations/*/catalogs/*/servingConfigs/*}:removeControl"
- body: "*"
- };
- option (google.api.method_signature) = "serving_config";
- }
- }
- message CreateServingConfigRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = { type: "retail.googleapis.com/Catalog" }
- ];
-
- ServingConfig serving_config = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
- string serving_config_id = 3 [(google.api.field_behavior) = REQUIRED];
- }
- message UpdateServingConfigRequest {
-
- ServingConfig serving_config = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
- google.protobuf.FieldMask update_mask = 2;
- }
- message DeleteServingConfigRequest {
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "retail.googleapis.com/ServingConfig"
- }
- ];
- }
- message GetServingConfigRequest {
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "retail.googleapis.com/ServingConfig"
- }
- ];
- }
- message ListServingConfigsRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = { type: "retail.googleapis.com/Catalog" }
- ];
-
-
-
- int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
- string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message ListServingConfigsResponse {
-
- repeated ServingConfig serving_configs = 1;
-
- string next_page_token = 2;
- }
- message AddControlRequest {
-
-
- string serving_config = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "retail.googleapis.com/ServingConfig"
- }
- ];
-
-
- string control_id = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message RemoveControlRequest {
-
-
- string serving_config = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "retail.googleapis.com/ServingConfig"
- }
- ];
-
-
- string control_id = 2 [(google.api.field_behavior) = REQUIRED];
- }
|