# Generated by the protocol buffer compiler. DO NOT EDIT! # Source: google/cloud/retail/v2/serving_config_service.proto for package 'Google.Cloud.Retail.V2' # Original file comments: # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # require 'grpc' require 'google/cloud/retail/v2/serving_config_service_pb' module Google module Cloud module Retail module V2 module ServingConfigService # Service for modifying ServingConfig. class Service include ::GRPC::GenericService self.marshal_class_method = :encode self.unmarshal_class_method = :decode self.service_name = 'google.cloud.retail.v2.ServingConfigService' # Creates a ServingConfig. # # A maximum of 100 [ServingConfig][google.cloud.retail.v2.ServingConfig]s are # allowed in a [Catalog][google.cloud.retail.v2.Catalog], otherwise a # FAILED_PRECONDITION error is returned. rpc :CreateServingConfig, ::Google::Cloud::Retail::V2::CreateServingConfigRequest, ::Google::Cloud::Retail::V2::ServingConfig # Deletes a ServingConfig. # # Returns a NotFound error if the ServingConfig does not exist. rpc :DeleteServingConfig, ::Google::Cloud::Retail::V2::DeleteServingConfigRequest, ::Google::Protobuf::Empty # Updates a ServingConfig. rpc :UpdateServingConfig, ::Google::Cloud::Retail::V2::UpdateServingConfigRequest, ::Google::Cloud::Retail::V2::ServingConfig # Gets a ServingConfig. # # Returns a NotFound error if the ServingConfig does not exist. rpc :GetServingConfig, ::Google::Cloud::Retail::V2::GetServingConfigRequest, ::Google::Cloud::Retail::V2::ServingConfig # Lists all ServingConfigs linked to this catalog. rpc :ListServingConfigs, ::Google::Cloud::Retail::V2::ListServingConfigsRequest, ::Google::Cloud::Retail::V2::ListServingConfigsResponse # Enables a Control on the specified ServingConfig. # The control is added in the last position of the list of controls # it belongs to (e.g. if it's a facet spec control it will be applied # in the last position of servingConfig.facetSpecIds) # Returns a ALREADY_EXISTS error if the control has already been applied. # Returns a FAILED_PRECONDITION error if the addition could exceed maximum # number of control allowed for that type of control. rpc :AddControl, ::Google::Cloud::Retail::V2::AddControlRequest, ::Google::Cloud::Retail::V2::ServingConfig # Disables a Control on the specified ServingConfig. # The control is removed from the ServingConfig. # Returns a NOT_FOUND error if the Control is not enabled for the # ServingConfig. rpc :RemoveControl, ::Google::Cloud::Retail::V2::RemoveControlRequest, ::Google::Cloud::Retail::V2::ServingConfig end Stub = Service.rpc_stub_class end end end end end