# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/cloud/dataplex/v1/data_taxonomy.proto for package 'google.cloud.dataplex.v1'
# 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/cloud/dataplex/v1/data_taxonomy_pb'

module Google
  module Cloud
    module Dataplex
      module V1
        module DataTaxonomyService
          # DataTaxonomyService enables attribute-based governance. The resources
          # currently offered include DataTaxonomy and DataAttribute.
          class Service

            include ::GRPC::GenericService

            self.marshal_class_method = :encode
            self.unmarshal_class_method = :decode
            self.service_name = 'google.cloud.dataplex.v1.DataTaxonomyService'

            # Create a DataTaxonomy resource.
            rpc :CreateDataTaxonomy, ::Google::Cloud::Dataplex::V1::CreateDataTaxonomyRequest, ::Google::Longrunning::Operation
            # Updates a DataTaxonomy resource.
            rpc :UpdateDataTaxonomy, ::Google::Cloud::Dataplex::V1::UpdateDataTaxonomyRequest, ::Google::Longrunning::Operation
            # Deletes a DataTaxonomy resource. All attributes within the DataTaxonomy
            # must be deleted before the DataTaxonomy can be deleted.
            rpc :DeleteDataTaxonomy, ::Google::Cloud::Dataplex::V1::DeleteDataTaxonomyRequest, ::Google::Longrunning::Operation
            # Lists DataTaxonomy resources in a project and location.
            rpc :ListDataTaxonomies, ::Google::Cloud::Dataplex::V1::ListDataTaxonomiesRequest, ::Google::Cloud::Dataplex::V1::ListDataTaxonomiesResponse
            # Retrieves a DataTaxonomy resource.
            rpc :GetDataTaxonomy, ::Google::Cloud::Dataplex::V1::GetDataTaxonomyRequest, ::Google::Cloud::Dataplex::V1::DataTaxonomy
            # Create a DataAttributeBinding resource.
            rpc :CreateDataAttributeBinding, ::Google::Cloud::Dataplex::V1::CreateDataAttributeBindingRequest, ::Google::Longrunning::Operation
            # Updates a DataAttributeBinding resource.
            rpc :UpdateDataAttributeBinding, ::Google::Cloud::Dataplex::V1::UpdateDataAttributeBindingRequest, ::Google::Longrunning::Operation
            # Deletes a DataAttributeBinding resource. All attributes within the
            # DataAttributeBinding must be deleted before the DataAttributeBinding can be
            # deleted.
            rpc :DeleteDataAttributeBinding, ::Google::Cloud::Dataplex::V1::DeleteDataAttributeBindingRequest, ::Google::Longrunning::Operation
            # Lists DataAttributeBinding resources in a project and location.
            rpc :ListDataAttributeBindings, ::Google::Cloud::Dataplex::V1::ListDataAttributeBindingsRequest, ::Google::Cloud::Dataplex::V1::ListDataAttributeBindingsResponse
            # Retrieves a DataAttributeBinding resource.
            rpc :GetDataAttributeBinding, ::Google::Cloud::Dataplex::V1::GetDataAttributeBindingRequest, ::Google::Cloud::Dataplex::V1::DataAttributeBinding
            # Create a DataAttribute resource.
            rpc :CreateDataAttribute, ::Google::Cloud::Dataplex::V1::CreateDataAttributeRequest, ::Google::Longrunning::Operation
            # Updates a DataAttribute resource.
            rpc :UpdateDataAttribute, ::Google::Cloud::Dataplex::V1::UpdateDataAttributeRequest, ::Google::Longrunning::Operation
            # Deletes a Data Attribute resource.
            rpc :DeleteDataAttribute, ::Google::Cloud::Dataplex::V1::DeleteDataAttributeRequest, ::Google::Longrunning::Operation
            # Lists Data Attribute resources in a DataTaxonomy.
            rpc :ListDataAttributes, ::Google::Cloud::Dataplex::V1::ListDataAttributesRequest, ::Google::Cloud::Dataplex::V1::ListDataAttributesResponse
            # Retrieves a Data Attribute resource.
            rpc :GetDataAttribute, ::Google::Cloud::Dataplex::V1::GetDataAttributeRequest, ::Google::Cloud::Dataplex::V1::DataAttribute
          end

          Stub = Service.rpc_stub_class
        end
      end
    end
  end
end
