# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/cloud/bigquery/analyticshub/v1/analyticshub.proto for package 'Google.Cloud.Bigquery.AnalyticsHub.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/bigquery/analyticshub/v1/analyticshub_pb'

module Google
  module Cloud
    module Bigquery
      module AnalyticsHub
        module V1
          module AnalyticsHubService
            # The `AnalyticsHubService` API facilitates data sharing within and across
            # organizations. It allows data providers to publish listings that reference
            # shared datasets. With Analytics Hub, users can discover and search for
            # listings that they have access to. Subscribers can view and subscribe to
            # listings. When you subscribe to a listing, Analytics Hub creates a linked
            # dataset in your project.
            class Service

              include ::GRPC::GenericService

              self.marshal_class_method = :encode
              self.unmarshal_class_method = :decode
              self.service_name = 'google.cloud.bigquery.analyticshub.v1.AnalyticsHubService'

              # Lists all data exchanges in a given project and location.
              rpc :ListDataExchanges, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListDataExchangesRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListDataExchangesResponse
              # Lists all data exchanges from projects in a given organization and
              # location.
              rpc :ListOrgDataExchanges, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListOrgDataExchangesRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListOrgDataExchangesResponse
              # Gets the details of a data exchange.
              rpc :GetDataExchange, ::Google::Cloud::Bigquery::AnalyticsHub::V1::GetDataExchangeRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange
              # Creates a new data exchange.
              rpc :CreateDataExchange, ::Google::Cloud::Bigquery::AnalyticsHub::V1::CreateDataExchangeRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange
              # Updates an existing data exchange.
              rpc :UpdateDataExchange, ::Google::Cloud::Bigquery::AnalyticsHub::V1::UpdateDataExchangeRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::DataExchange
              # Deletes an existing data exchange.
              rpc :DeleteDataExchange, ::Google::Cloud::Bigquery::AnalyticsHub::V1::DeleteDataExchangeRequest, ::Google::Protobuf::Empty
              # Lists all listings in a given project and location.
              rpc :ListListings, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListListingsRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListListingsResponse
              # Gets the details of a listing.
              rpc :GetListing, ::Google::Cloud::Bigquery::AnalyticsHub::V1::GetListingRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing
              # Creates a new listing.
              rpc :CreateListing, ::Google::Cloud::Bigquery::AnalyticsHub::V1::CreateListingRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing
              # Updates an existing listing.
              rpc :UpdateListing, ::Google::Cloud::Bigquery::AnalyticsHub::V1::UpdateListingRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::Listing
              # Deletes a listing.
              rpc :DeleteListing, ::Google::Cloud::Bigquery::AnalyticsHub::V1::DeleteListingRequest, ::Google::Protobuf::Empty
              # Subscribes to a listing.
              #
              # Currently, with Analytics Hub, you can create listings that
              # reference only BigQuery datasets.
              # Upon subscription to a listing for a BigQuery dataset, Analytics Hub
              # creates a linked dataset in the subscriber's project.
              rpc :SubscribeListing, ::Google::Cloud::Bigquery::AnalyticsHub::V1::SubscribeListingRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::SubscribeListingResponse
              # Creates a Subscription to a Data Clean Room. This is a
              # long-running operation as it will create one or more linked datasets.
              # Throws a Bad Request error if the Data Exchange does not contain any
              # listings.
              rpc :SubscribeDataExchange, ::Google::Cloud::Bigquery::AnalyticsHub::V1::SubscribeDataExchangeRequest, ::Google::Longrunning::Operation
              # Refreshes a Subscription to a Data Exchange. A Data Exchange can become
              # stale when a publisher adds or removes data. This is a long-running
              # operation as it may create many linked datasets.
              rpc :RefreshSubscription, ::Google::Cloud::Bigquery::AnalyticsHub::V1::RefreshSubscriptionRequest, ::Google::Longrunning::Operation
              # Gets the details of a Subscription.
              rpc :GetSubscription, ::Google::Cloud::Bigquery::AnalyticsHub::V1::GetSubscriptionRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::Subscription
              # Lists all subscriptions in a given project and location.
              rpc :ListSubscriptions, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListSubscriptionsRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListSubscriptionsResponse
              # Lists all subscriptions on a given Data Exchange or Listing.
              rpc :ListSharedResourceSubscriptions, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListSharedResourceSubscriptionsRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListSharedResourceSubscriptionsResponse
              # Revokes a given subscription.
              rpc :RevokeSubscription, ::Google::Cloud::Bigquery::AnalyticsHub::V1::RevokeSubscriptionRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::RevokeSubscriptionResponse
              # Deletes a subscription.
              rpc :DeleteSubscription, ::Google::Cloud::Bigquery::AnalyticsHub::V1::DeleteSubscriptionRequest, ::Google::Longrunning::Operation
              # Gets the IAM policy.
              rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
              # Sets the IAM policy.
              rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
              # Returns the permissions that a caller has.
              rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
              # Creates a new QueryTemplate
              rpc :CreateQueryTemplate, ::Google::Cloud::Bigquery::AnalyticsHub::V1::CreateQueryTemplateRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::QueryTemplate
              # Gets a QueryTemplate
              rpc :GetQueryTemplate, ::Google::Cloud::Bigquery::AnalyticsHub::V1::GetQueryTemplateRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::QueryTemplate
              # Lists all QueryTemplates in a given project and location.
              rpc :ListQueryTemplates, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListQueryTemplatesRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ListQueryTemplatesResponse
              # Updates an existing QueryTemplate
              rpc :UpdateQueryTemplate, ::Google::Cloud::Bigquery::AnalyticsHub::V1::UpdateQueryTemplateRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::QueryTemplate
              # Deletes a query template.
              rpc :DeleteQueryTemplate, ::Google::Cloud::Bigquery::AnalyticsHub::V1::DeleteQueryTemplateRequest, ::Google::Protobuf::Empty
              # Submits a query template for approval.
              rpc :SubmitQueryTemplate, ::Google::Cloud::Bigquery::AnalyticsHub::V1::SubmitQueryTemplateRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::QueryTemplate
              # Approves a query template.
              rpc :ApproveQueryTemplate, ::Google::Cloud::Bigquery::AnalyticsHub::V1::ApproveQueryTemplateRequest, ::Google::Cloud::Bigquery::AnalyticsHub::V1::QueryTemplate
            end

            Stub = Service.rpc_stub_class
          end
        end
      end
    end
  end
end
