# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/shopping/merchant/conversions/v1beta/conversionsources.proto for package 'google.shopping.merchant.conversions.v1beta'
# Original file comments:
# Copyright 2023 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/shopping/merchant/conversions/v1beta/conversionsources_pb'

module Google
  module Shopping
    module Merchant
      module Conversions
        module V1beta
          module ConversionSourcesService
            # Service for managing conversion sources for a merchant account.
            class Service

              include ::GRPC::GenericService

              self.marshal_class_method = :encode
              self.unmarshal_class_method = :decode
              self.service_name = 'google.shopping.merchant.conversions.v1beta.ConversionSourcesService'

              # Creates a new conversion source.
              rpc :CreateConversionSource, ::Google::Shopping::Merchant::Conversions::V1beta::CreateConversionSourceRequest, ::Google::Shopping::Merchant::Conversions::V1beta::ConversionSource
              # Updates information of an existing conversion source. Available only for
              # Merchant Center Destination conversion sources.
              rpc :UpdateConversionSource, ::Google::Shopping::Merchant::Conversions::V1beta::UpdateConversionSourceRequest, ::Google::Shopping::Merchant::Conversions::V1beta::ConversionSource
              # Archives an existing conversion source. If the conversion source is a
              # Merchant Center Destination, it will be recoverable for 30 days. If the
              # conversion source is a Google Analytics Link, it will be deleted
              # immediately and can be restored by creating a new one.
              rpc :DeleteConversionSource, ::Google::Shopping::Merchant::Conversions::V1beta::DeleteConversionSourceRequest, ::Google::Protobuf::Empty
              # Re-enables an archived conversion source. Only Available for Merchant
              # Center Destination conversion sources.
              rpc :UndeleteConversionSource, ::Google::Shopping::Merchant::Conversions::V1beta::UndeleteConversionSourceRequest, ::Google::Shopping::Merchant::Conversions::V1beta::ConversionSource
              # Fetches a conversion source.
              rpc :GetConversionSource, ::Google::Shopping::Merchant::Conversions::V1beta::GetConversionSourceRequest, ::Google::Shopping::Merchant::Conversions::V1beta::ConversionSource
              # Retrieves the list of conversion sources the caller has access to.
              rpc :ListConversionSources, ::Google::Shopping::Merchant::Conversions::V1beta::ListConversionSourcesRequest, ::Google::Shopping::Merchant::Conversions::V1beta::ListConversionSourcesResponse
            end

            Stub = Service.rpc_stub_class
          end
        end
      end
    end
  end
end
