# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/cloud/discoveryengine/v1/site_search_engine_service.proto for package 'Google.Cloud.DiscoveryEngine.V1'
# Original file comments:
# Copyright 2022 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/discoveryengine/v1/site_search_engine_service_pb'

module Google
  module Cloud
    module DiscoveryEngine
      module V1
        module SiteSearchEngineService
          # Service for managing site search related resources.
          class Service

            include ::GRPC::GenericService

            self.marshal_class_method = :encode
            self.unmarshal_class_method = :decode
            self.service_name = 'google.cloud.discoveryengine.v1.SiteSearchEngineService'

            # Gets the
            # [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine].
            rpc :GetSiteSearchEngine, ::Google::Cloud::DiscoveryEngine::V1::GetSiteSearchEngineRequest, ::Google::Cloud::DiscoveryEngine::V1::SiteSearchEngine
            # Creates a [TargetSite][google.cloud.discoveryengine.v1.TargetSite].
            rpc :CreateTargetSite, ::Google::Cloud::DiscoveryEngine::V1::CreateTargetSiteRequest, ::Google::Longrunning::Operation
            # Creates [TargetSite][google.cloud.discoveryengine.v1.TargetSite] in a
            # batch.
            rpc :BatchCreateTargetSites, ::Google::Cloud::DiscoveryEngine::V1::BatchCreateTargetSitesRequest, ::Google::Longrunning::Operation
            # Gets a [TargetSite][google.cloud.discoveryengine.v1.TargetSite].
            rpc :GetTargetSite, ::Google::Cloud::DiscoveryEngine::V1::GetTargetSiteRequest, ::Google::Cloud::DiscoveryEngine::V1::TargetSite
            # Updates a [TargetSite][google.cloud.discoveryengine.v1.TargetSite].
            rpc :UpdateTargetSite, ::Google::Cloud::DiscoveryEngine::V1::UpdateTargetSiteRequest, ::Google::Longrunning::Operation
            # Deletes a [TargetSite][google.cloud.discoveryengine.v1.TargetSite].
            rpc :DeleteTargetSite, ::Google::Cloud::DiscoveryEngine::V1::DeleteTargetSiteRequest, ::Google::Longrunning::Operation
            # Gets a list of [TargetSite][google.cloud.discoveryengine.v1.TargetSite]s.
            rpc :ListTargetSites, ::Google::Cloud::DiscoveryEngine::V1::ListTargetSitesRequest, ::Google::Cloud::DiscoveryEngine::V1::ListTargetSitesResponse
            # Creates a [Sitemap][google.cloud.discoveryengine.v1.Sitemap].
            rpc :CreateSitemap, ::Google::Cloud::DiscoveryEngine::V1::CreateSitemapRequest, ::Google::Longrunning::Operation
            # Deletes a [Sitemap][google.cloud.discoveryengine.v1.Sitemap].
            rpc :DeleteSitemap, ::Google::Cloud::DiscoveryEngine::V1::DeleteSitemapRequest, ::Google::Longrunning::Operation
            # Fetch [Sitemap][google.cloud.discoveryengine.v1.Sitemap]s in a
            # [DataStore][google.cloud.discoveryengine.v1.DataStore].
            rpc :FetchSitemaps, ::Google::Cloud::DiscoveryEngine::V1::FetchSitemapsRequest, ::Google::Cloud::DiscoveryEngine::V1::FetchSitemapsResponse
            # Upgrade from basic site search to advanced site search.
            rpc :EnableAdvancedSiteSearch, ::Google::Cloud::DiscoveryEngine::V1::EnableAdvancedSiteSearchRequest, ::Google::Longrunning::Operation
            # Downgrade from advanced site search to basic site search.
            rpc :DisableAdvancedSiteSearch, ::Google::Cloud::DiscoveryEngine::V1::DisableAdvancedSiteSearchRequest, ::Google::Longrunning::Operation
            # Request on-demand recrawl for a list of URIs.
            rpc :RecrawlUris, ::Google::Cloud::DiscoveryEngine::V1::RecrawlUrisRequest, ::Google::Longrunning::Operation
            # Verify target sites' ownership and validity.
            # This API sends all the target sites under site search engine for
            # verification.
            rpc :BatchVerifyTargetSites, ::Google::Cloud::DiscoveryEngine::V1::BatchVerifyTargetSitesRequest, ::Google::Longrunning::Operation
            # Returns list of target sites with its domain verification status.
            # This method can only be called under data store with BASIC_SITE_SEARCH
            # state at the moment.
            rpc :FetchDomainVerificationStatus, ::Google::Cloud::DiscoveryEngine::V1::FetchDomainVerificationStatusRequest, ::Google::Cloud::DiscoveryEngine::V1::FetchDomainVerificationStatusResponse
          end

          Stub = Service.rpc_stub_class
        end
      end
    end
  end
end
