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

module Google
  module Cloud
    module Dataplex
      module V1
        module BusinessGlossaryService
          # BusinessGlossaryService provides APIs for managing business glossary
          # resources for enterprise customers.
          # The resources currently supported in Business Glossary are:
          # 1. Glossary
          # 2. GlossaryCategory
          # 3. GlossaryTerm
          class Service

            include ::GRPC::GenericService

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

            # Creates a new Glossary resource.
            rpc :CreateGlossary, ::Google::Cloud::Dataplex::V1::CreateGlossaryRequest, ::Google::Longrunning::Operation
            # Updates a Glossary resource.
            rpc :UpdateGlossary, ::Google::Cloud::Dataplex::V1::UpdateGlossaryRequest, ::Google::Longrunning::Operation
            # Deletes a Glossary resource. All the categories and terms within the
            # Glossary must be deleted before the Glossary can be deleted.
            rpc :DeleteGlossary, ::Google::Cloud::Dataplex::V1::DeleteGlossaryRequest, ::Google::Longrunning::Operation
            # Gets a Glossary resource.
            rpc :GetGlossary, ::Google::Cloud::Dataplex::V1::GetGlossaryRequest, ::Google::Cloud::Dataplex::V1::Glossary
            # Lists Glossary resources in a project and location.
            rpc :ListGlossaries, ::Google::Cloud::Dataplex::V1::ListGlossariesRequest, ::Google::Cloud::Dataplex::V1::ListGlossariesResponse
            # Creates a new GlossaryCategory resource.
            rpc :CreateGlossaryCategory, ::Google::Cloud::Dataplex::V1::CreateGlossaryCategoryRequest, ::Google::Cloud::Dataplex::V1::GlossaryCategory
            # Updates a GlossaryCategory resource.
            rpc :UpdateGlossaryCategory, ::Google::Cloud::Dataplex::V1::UpdateGlossaryCategoryRequest, ::Google::Cloud::Dataplex::V1::GlossaryCategory
            # Deletes a GlossaryCategory resource. All the GlossaryCategories and
            # GlossaryTerms nested directly under the specified GlossaryCategory will be
            # moved one level up to the parent in the hierarchy.
            rpc :DeleteGlossaryCategory, ::Google::Cloud::Dataplex::V1::DeleteGlossaryCategoryRequest, ::Google::Protobuf::Empty
            # Gets a GlossaryCategory resource.
            rpc :GetGlossaryCategory, ::Google::Cloud::Dataplex::V1::GetGlossaryCategoryRequest, ::Google::Cloud::Dataplex::V1::GlossaryCategory
            # Lists GlossaryCategory resources in a Glossary.
            rpc :ListGlossaryCategories, ::Google::Cloud::Dataplex::V1::ListGlossaryCategoriesRequest, ::Google::Cloud::Dataplex::V1::ListGlossaryCategoriesResponse
            # Creates a new GlossaryTerm resource.
            rpc :CreateGlossaryTerm, ::Google::Cloud::Dataplex::V1::CreateGlossaryTermRequest, ::Google::Cloud::Dataplex::V1::GlossaryTerm
            # Updates a GlossaryTerm resource.
            rpc :UpdateGlossaryTerm, ::Google::Cloud::Dataplex::V1::UpdateGlossaryTermRequest, ::Google::Cloud::Dataplex::V1::GlossaryTerm
            # Deletes a GlossaryTerm resource.
            rpc :DeleteGlossaryTerm, ::Google::Cloud::Dataplex::V1::DeleteGlossaryTermRequest, ::Google::Protobuf::Empty
            # Gets a GlossaryTerm resource.
            rpc :GetGlossaryTerm, ::Google::Cloud::Dataplex::V1::GetGlossaryTermRequest, ::Google::Cloud::Dataplex::V1::GlossaryTerm
            # Lists GlossaryTerm resources in a Glossary.
            rpc :ListGlossaryTerms, ::Google::Cloud::Dataplex::V1::ListGlossaryTermsRequest, ::Google::Cloud::Dataplex::V1::ListGlossaryTermsResponse
          end

          Stub = Service.rpc_stub_class
        end
      end
    end
  end
end
