# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/cloud/bigquery/migration/v2/migration_service.proto for package 'google.cloud.bigquery.migration.v2'
# Original file comments:
# Copyright 2022 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/bigquery/migration/v2/migration_service_pb'

module Google
  module Cloud
    module Bigquery
      module Migration
        module V2
          module MigrationService
            # Service to handle EDW migrations.
            class Service

              include ::GRPC::GenericService

              self.marshal_class_method = :encode
              self.unmarshal_class_method = :decode
              self.service_name = 'google.cloud.bigquery.migration.v2.MigrationService'

              # Creates a migration workflow.
              rpc :CreateMigrationWorkflow, ::Google::Cloud::Bigquery::Migration::V2::CreateMigrationWorkflowRequest, ::Google::Cloud::Bigquery::Migration::V2::MigrationWorkflow
              # Gets a previously created migration workflow.
              rpc :GetMigrationWorkflow, ::Google::Cloud::Bigquery::Migration::V2::GetMigrationWorkflowRequest, ::Google::Cloud::Bigquery::Migration::V2::MigrationWorkflow
              # Lists previously created migration workflow.
              rpc :ListMigrationWorkflows, ::Google::Cloud::Bigquery::Migration::V2::ListMigrationWorkflowsRequest, ::Google::Cloud::Bigquery::Migration::V2::ListMigrationWorkflowsResponse
              # Deletes a migration workflow by name.
              rpc :DeleteMigrationWorkflow, ::Google::Cloud::Bigquery::Migration::V2::DeleteMigrationWorkflowRequest, ::Google::Protobuf::Empty
              # Starts a previously created migration workflow. I.e., the state transitions
              # from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
              # An error will be signaled if the state is anything other than DRAFT or
              # RUNNING.
              rpc :StartMigrationWorkflow, ::Google::Cloud::Bigquery::Migration::V2::StartMigrationWorkflowRequest, ::Google::Protobuf::Empty
              # Gets a previously created migration subtask.
              rpc :GetMigrationSubtask, ::Google::Cloud::Bigquery::Migration::V2::GetMigrationSubtaskRequest, ::Google::Cloud::Bigquery::Migration::V2::MigrationSubtask
              # Lists previously created migration subtasks.
              rpc :ListMigrationSubtasks, ::Google::Cloud::Bigquery::Migration::V2::ListMigrationSubtasksRequest, ::Google::Cloud::Bigquery::Migration::V2::ListMigrationSubtasksResponse
            end

            Stub = Service.rpc_stub_class
          end
        end
      end
    end
  end
end