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

module Google
  module Cloud
    module VisionAI
      module V1
        module AppPlatform
          # 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.visionai.v1.AppPlatform'

            # Lists Applications in a given project and location.
            rpc :ListApplications, ::Google::Cloud::VisionAI::V1::ListApplicationsRequest, ::Google::Cloud::VisionAI::V1::ListApplicationsResponse
            # Gets details of a single Application.
            rpc :GetApplication, ::Google::Cloud::VisionAI::V1::GetApplicationRequest, ::Google::Cloud::VisionAI::V1::Application
            # Creates a new Application in a given project and location.
            rpc :CreateApplication, ::Google::Cloud::VisionAI::V1::CreateApplicationRequest, ::Google::Longrunning::Operation
            # Updates the parameters of a single Application.
            rpc :UpdateApplication, ::Google::Cloud::VisionAI::V1::UpdateApplicationRequest, ::Google::Longrunning::Operation
            # Deletes a single Application.
            rpc :DeleteApplication, ::Google::Cloud::VisionAI::V1::DeleteApplicationRequest, ::Google::Longrunning::Operation
            # Deploys a single Application.
            rpc :DeployApplication, ::Google::Cloud::VisionAI::V1::DeployApplicationRequest, ::Google::Longrunning::Operation
            # Undeploys a single Application.
            rpc :UndeployApplication, ::Google::Cloud::VisionAI::V1::UndeployApplicationRequest, ::Google::Longrunning::Operation
            # Adds target stream input to the Application.
            # If the Application is deployed, the corresponding new Application instance
            # will be created. If the stream has already been in the Application, the RPC
            # will fail.
            rpc :AddApplicationStreamInput, ::Google::Cloud::VisionAI::V1::AddApplicationStreamInputRequest, ::Google::Longrunning::Operation
            # Remove target stream input to the Application, if the Application is
            # deployed, the corresponding instance based will be deleted. If the stream
            # is not in the Application, the RPC will fail.
            rpc :RemoveApplicationStreamInput, ::Google::Cloud::VisionAI::V1::RemoveApplicationStreamInputRequest, ::Google::Longrunning::Operation
            # Update target stream input to the Application, if the Application is
            # deployed, the corresponding instance based will be deployed. For
            # CreateOrUpdate behavior, set allow_missing to true.
            rpc :UpdateApplicationStreamInput, ::Google::Cloud::VisionAI::V1::UpdateApplicationStreamInputRequest, ::Google::Longrunning::Operation
            # Lists Instances in a given project and location.
            rpc :ListInstances, ::Google::Cloud::VisionAI::V1::ListInstancesRequest, ::Google::Cloud::VisionAI::V1::ListInstancesResponse
            # Gets details of a single Instance.
            rpc :GetInstance, ::Google::Cloud::VisionAI::V1::GetInstanceRequest, ::Google::Cloud::VisionAI::V1::Instance
            # Adds target stream input to the Application.
            # If the Application is deployed, the corresponding new Application instance
            # will be created. If the stream has already been in the Application, the RPC
            # will fail.
            rpc :CreateApplicationInstances, ::Google::Cloud::VisionAI::V1::CreateApplicationInstancesRequest, ::Google::Longrunning::Operation
            # Remove target stream input to the Application, if the Application is
            # deployed, the corresponding instance based will be deleted. If the stream
            # is not in the Application, the RPC will fail.
            rpc :DeleteApplicationInstances, ::Google::Cloud::VisionAI::V1::DeleteApplicationInstancesRequest, ::Google::Longrunning::Operation
            # Adds target stream input to the Application.
            # If the Application is deployed, the corresponding new Application instance
            # will be created. If the stream has already been in the Application, the RPC
            # will fail.
            rpc :UpdateApplicationInstances, ::Google::Cloud::VisionAI::V1::UpdateApplicationInstancesRequest, ::Google::Longrunning::Operation
            # Lists Drafts in a given project and location.
            rpc :ListDrafts, ::Google::Cloud::VisionAI::V1::ListDraftsRequest, ::Google::Cloud::VisionAI::V1::ListDraftsResponse
            # Gets details of a single Draft.
            rpc :GetDraft, ::Google::Cloud::VisionAI::V1::GetDraftRequest, ::Google::Cloud::VisionAI::V1::Draft
            # Creates a new Draft in a given project and location.
            rpc :CreateDraft, ::Google::Cloud::VisionAI::V1::CreateDraftRequest, ::Google::Longrunning::Operation
            # Updates the parameters of a single Draft.
            rpc :UpdateDraft, ::Google::Cloud::VisionAI::V1::UpdateDraftRequest, ::Google::Longrunning::Operation
            # Deletes a single Draft.
            rpc :DeleteDraft, ::Google::Cloud::VisionAI::V1::DeleteDraftRequest, ::Google::Longrunning::Operation
            # Lists Processors in a given project and location.
            rpc :ListProcessors, ::Google::Cloud::VisionAI::V1::ListProcessorsRequest, ::Google::Cloud::VisionAI::V1::ListProcessorsResponse
            # ListPrebuiltProcessors is a custom pass-through verb that Lists Prebuilt
            # Processors.
            rpc :ListPrebuiltProcessors, ::Google::Cloud::VisionAI::V1::ListPrebuiltProcessorsRequest, ::Google::Cloud::VisionAI::V1::ListPrebuiltProcessorsResponse
            # Gets details of a single Processor.
            rpc :GetProcessor, ::Google::Cloud::VisionAI::V1::GetProcessorRequest, ::Google::Cloud::VisionAI::V1::Processor
            # Creates a new Processor in a given project and location.
            rpc :CreateProcessor, ::Google::Cloud::VisionAI::V1::CreateProcessorRequest, ::Google::Longrunning::Operation
            # Updates the parameters of a single Processor.
            rpc :UpdateProcessor, ::Google::Cloud::VisionAI::V1::UpdateProcessorRequest, ::Google::Longrunning::Operation
            # Deletes a single Processor.
            rpc :DeleteProcessor, ::Google::Cloud::VisionAI::V1::DeleteProcessorRequest, ::Google::Longrunning::Operation
          end

          Stub = Service.rpc_stub_class
        end
      end
    end
  end
end
