# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/cloud/managedkafka/v1/managed_kafka_connect.proto for package 'Google.Cloud.ManagedKafka.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/managedkafka/v1/managed_kafka_connect_pb'

module Google
  module Cloud
    module ManagedKafka
      module V1
        module ManagedKafkaConnect
          # The service that a client application uses to manage Apache Kafka Connect
          # clusters and connectors.
          class Service

            include ::GRPC::GenericService

            self.marshal_class_method = :encode
            self.unmarshal_class_method = :decode
            self.service_name = 'google.cloud.managedkafka.v1.ManagedKafkaConnect'

            # Lists the Kafka Connect clusters in a given project and location.
            rpc :ListConnectClusters, ::Google::Cloud::ManagedKafka::V1::ListConnectClustersRequest, ::Google::Cloud::ManagedKafka::V1::ListConnectClustersResponse
            # Returns the properties of a single Kafka Connect cluster.
            rpc :GetConnectCluster, ::Google::Cloud::ManagedKafka::V1::GetConnectClusterRequest, ::Google::Cloud::ManagedKafka::V1::ConnectCluster
            # Creates a new Kafka Connect cluster in a given project and location.
            rpc :CreateConnectCluster, ::Google::Cloud::ManagedKafka::V1::CreateConnectClusterRequest, ::Google::Longrunning::Operation
            # Updates the properties of a single Kafka Connect cluster.
            rpc :UpdateConnectCluster, ::Google::Cloud::ManagedKafka::V1::UpdateConnectClusterRequest, ::Google::Longrunning::Operation
            # Deletes a single Connect cluster.
            rpc :DeleteConnectCluster, ::Google::Cloud::ManagedKafka::V1::DeleteConnectClusterRequest, ::Google::Longrunning::Operation
            # Lists the connectors in a given Connect cluster.
            rpc :ListConnectors, ::Google::Cloud::ManagedKafka::V1::ListConnectorsRequest, ::Google::Cloud::ManagedKafka::V1::ListConnectorsResponse
            # Returns the properties of a single connector.
            rpc :GetConnector, ::Google::Cloud::ManagedKafka::V1::GetConnectorRequest, ::Google::Cloud::ManagedKafka::V1::Connector
            # Creates a new connector in a given Connect cluster.
            rpc :CreateConnector, ::Google::Cloud::ManagedKafka::V1::CreateConnectorRequest, ::Google::Cloud::ManagedKafka::V1::Connector
            # Updates the properties of a connector.
            rpc :UpdateConnector, ::Google::Cloud::ManagedKafka::V1::UpdateConnectorRequest, ::Google::Cloud::ManagedKafka::V1::Connector
            # Deletes a connector.
            rpc :DeleteConnector, ::Google::Cloud::ManagedKafka::V1::DeleteConnectorRequest, ::Google::Protobuf::Empty
            # Pauses the connector and its tasks.
            rpc :PauseConnector, ::Google::Cloud::ManagedKafka::V1::PauseConnectorRequest, ::Google::Cloud::ManagedKafka::V1::PauseConnectorResponse
            # Resumes the connector and its tasks.
            rpc :ResumeConnector, ::Google::Cloud::ManagedKafka::V1::ResumeConnectorRequest, ::Google::Cloud::ManagedKafka::V1::ResumeConnectorResponse
            # Restarts the connector.
            rpc :RestartConnector, ::Google::Cloud::ManagedKafka::V1::RestartConnectorRequest, ::Google::Cloud::ManagedKafka::V1::RestartConnectorResponse
            # Stops the connector.
            rpc :StopConnector, ::Google::Cloud::ManagedKafka::V1::StopConnectorRequest, ::Google::Cloud::ManagedKafka::V1::StopConnectorResponse
          end

          Stub = Service.rpc_stub_class
        end
      end
    end
  end
end
