# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/cloud/developerconnect/v1/developer_connect.proto for package 'Google.Cloud.DeveloperConnect.V1'
# Original file comments:
# Copyright 2024 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/developerconnect/v1/developer_connect_pb'

module Google
  module Cloud
    module DeveloperConnect
      module V1
        module DeveloperConnect
          # Service describing handlers for resources
          class Service

            include ::GRPC::GenericService

            self.marshal_class_method = :encode
            self.unmarshal_class_method = :decode
            self.service_name = 'google.cloud.developerconnect.v1.DeveloperConnect'

            # Lists Connections in a given project and location.
            rpc :ListConnections, ::Google::Cloud::DeveloperConnect::V1::ListConnectionsRequest, ::Google::Cloud::DeveloperConnect::V1::ListConnectionsResponse
            # Gets details of a single Connection.
            rpc :GetConnection, ::Google::Cloud::DeveloperConnect::V1::GetConnectionRequest, ::Google::Cloud::DeveloperConnect::V1::Connection
            # Creates a new Connection in a given project and location.
            rpc :CreateConnection, ::Google::Cloud::DeveloperConnect::V1::CreateConnectionRequest, ::Google::Longrunning::Operation
            # Updates the parameters of a single Connection.
            rpc :UpdateConnection, ::Google::Cloud::DeveloperConnect::V1::UpdateConnectionRequest, ::Google::Longrunning::Operation
            # Deletes a single Connection.
            rpc :DeleteConnection, ::Google::Cloud::DeveloperConnect::V1::DeleteConnectionRequest, ::Google::Longrunning::Operation
            # Creates a GitRepositoryLink. Upon linking a Git Repository, Developer
            # Connect will configure the Git Repository to send webhook events to
            # Developer Connect. Connections that use Firebase GitHub Application will
            # have events forwarded to the Firebase service. All other Connections will
            # have events forwarded to Cloud Build.
            rpc :CreateGitRepositoryLink, ::Google::Cloud::DeveloperConnect::V1::CreateGitRepositoryLinkRequest, ::Google::Longrunning::Operation
            # Deletes a single GitRepositoryLink.
            rpc :DeleteGitRepositoryLink, ::Google::Cloud::DeveloperConnect::V1::DeleteGitRepositoryLinkRequest, ::Google::Longrunning::Operation
            # Lists GitRepositoryLinks in a given project, location, and connection.
            rpc :ListGitRepositoryLinks, ::Google::Cloud::DeveloperConnect::V1::ListGitRepositoryLinksRequest, ::Google::Cloud::DeveloperConnect::V1::ListGitRepositoryLinksResponse
            # Gets details of a single GitRepositoryLink.
            rpc :GetGitRepositoryLink, ::Google::Cloud::DeveloperConnect::V1::GetGitRepositoryLinkRequest, ::Google::Cloud::DeveloperConnect::V1::GitRepositoryLink
            # Fetches read/write token of a given gitRepositoryLink.
            rpc :FetchReadWriteToken, ::Google::Cloud::DeveloperConnect::V1::FetchReadWriteTokenRequest, ::Google::Cloud::DeveloperConnect::V1::FetchReadWriteTokenResponse
            # Fetches read token of a given gitRepositoryLink.
            rpc :FetchReadToken, ::Google::Cloud::DeveloperConnect::V1::FetchReadTokenRequest, ::Google::Cloud::DeveloperConnect::V1::FetchReadTokenResponse
            # FetchLinkableGitRepositories returns a list of git repositories from an SCM
            # that are available to be added to a Connection.
            rpc :FetchLinkableGitRepositories, ::Google::Cloud::DeveloperConnect::V1::FetchLinkableGitRepositoriesRequest, ::Google::Cloud::DeveloperConnect::V1::FetchLinkableGitRepositoriesResponse
            # FetchGitHubInstallations returns the list of GitHub Installations that
            # are available to be added to a Connection.
            # For github.com, only installations accessible to the authorizer token
            # are returned. For GitHub Enterprise, all installations are returned.
            rpc :FetchGitHubInstallations, ::Google::Cloud::DeveloperConnect::V1::FetchGitHubInstallationsRequest, ::Google::Cloud::DeveloperConnect::V1::FetchGitHubInstallationsResponse
            # Fetch the list of branches or tags for a given repository.
            rpc :FetchGitRefs, ::Google::Cloud::DeveloperConnect::V1::FetchGitRefsRequest, ::Google::Cloud::DeveloperConnect::V1::FetchGitRefsResponse
            # Lists AccountConnectors in a given project and location.
            rpc :ListAccountConnectors, ::Google::Cloud::DeveloperConnect::V1::ListAccountConnectorsRequest, ::Google::Cloud::DeveloperConnect::V1::ListAccountConnectorsResponse
            # Gets details of a single AccountConnector.
            rpc :GetAccountConnector, ::Google::Cloud::DeveloperConnect::V1::GetAccountConnectorRequest, ::Google::Cloud::DeveloperConnect::V1::AccountConnector
            # Creates a new AccountConnector in a given project and location.
            rpc :CreateAccountConnector, ::Google::Cloud::DeveloperConnect::V1::CreateAccountConnectorRequest, ::Google::Longrunning::Operation
            # Updates the parameters of a single AccountConnector.
            rpc :UpdateAccountConnector, ::Google::Cloud::DeveloperConnect::V1::UpdateAccountConnectorRequest, ::Google::Longrunning::Operation
            # Deletes a single AccountConnector.
            rpc :DeleteAccountConnector, ::Google::Cloud::DeveloperConnect::V1::DeleteAccountConnectorRequest, ::Google::Longrunning::Operation
            # Fetches OAuth access token based on end user credentials.
            rpc :FetchAccessToken, ::Google::Cloud::DeveloperConnect::V1::FetchAccessTokenRequest, ::Google::Cloud::DeveloperConnect::V1::FetchAccessTokenResponse
            # Lists Users in a given project, location, and account_connector.
            rpc :ListUsers, ::Google::Cloud::DeveloperConnect::V1::ListUsersRequest, ::Google::Cloud::DeveloperConnect::V1::ListUsersResponse
            # Deletes a single User.
            rpc :DeleteUser, ::Google::Cloud::DeveloperConnect::V1::DeleteUserRequest, ::Google::Longrunning::Operation
            # Fetch the User based on the user credentials.
            rpc :FetchSelf, ::Google::Cloud::DeveloperConnect::V1::FetchSelfRequest, ::Google::Cloud::DeveloperConnect::V1::User
            # Delete the User based on the user credentials.
            rpc :DeleteSelf, ::Google::Cloud::DeveloperConnect::V1::DeleteSelfRequest, ::Google::Longrunning::Operation
          end

          Stub = Service.rpc_stub_class
        end
      end
    end
  end
end
