# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto for package 'Google.Ads.MarketingPlatform.Admin.V1alpha'
# Original file comments:
# Copyright 2025 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/marketingplatform/admin/v1alpha/marketingplatform_admin_pb'

module Google
  module Ads
    module MarketingPlatform
      module Admin
        module V1alpha
          module MarketingplatformAdminService
            # Service Interface for the Google Marketing Platform Admin API.
            class Service

              include ::GRPC::GenericService

              self.marshal_class_method = :encode
              self.unmarshal_class_method = :decode
              self.service_name = 'google.marketingplatform.admin.v1alpha.MarketingplatformAdminService'

              # Lookup for a single organization.
              rpc :GetOrganization, ::Google::Ads::MarketingPlatform::Admin::V1alpha::GetOrganizationRequest, ::Google::Ads::MarketingPlatform::Admin::V1alpha::Organization
              # Lists the Google Analytics accounts link to the specified Google Marketing
              # Platform organization.
              rpc :ListAnalyticsAccountLinks, ::Google::Ads::MarketingPlatform::Admin::V1alpha::ListAnalyticsAccountLinksRequest, ::Google::Ads::MarketingPlatform::Admin::V1alpha::ListAnalyticsAccountLinksResponse
              # Creates the link between the Analytics account and the Google Marketing
              # Platform organization.
              #
              # User needs to be an org user, and admin on the Analytics account to create
              # the link. If the account is already linked to an organization, user needs
              # to unlink the account from the current organization, then try link again.
              rpc :CreateAnalyticsAccountLink, ::Google::Ads::MarketingPlatform::Admin::V1alpha::CreateAnalyticsAccountLinkRequest, ::Google::Ads::MarketingPlatform::Admin::V1alpha::AnalyticsAccountLink
              # Deletes the AnalyticsAccountLink, which detaches the Analytics account from
              # the Google Marketing Platform organization.
              #
              # User needs to be an org user, and admin on the Analytics account in order
              # to delete the link.
              rpc :DeleteAnalyticsAccountLink, ::Google::Ads::MarketingPlatform::Admin::V1alpha::DeleteAnalyticsAccountLinkRequest, ::Google::Protobuf::Empty
              # Updates the service level for an Analytics property.
              rpc :SetPropertyServiceLevel, ::Google::Ads::MarketingPlatform::Admin::V1alpha::SetPropertyServiceLevelRequest, ::Google::Ads::MarketingPlatform::Admin::V1alpha::SetPropertyServiceLevelResponse
            end

            Stub = Service.rpc_stub_class
          end
        end
      end
    end
  end
end
