# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/cloud/talent/v4beta1/job_service.proto for package 'google.cloud.talent.v4beta1'
# Original file comments:
# Copyright 2020 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/talent/v4beta1/job_service_pb'

module Google
  module Cloud
    module Talent
      module V4beta1
        module JobService
          # A service handles job management, including job CRUD, enumeration and search.
          class Service

            include GRPC::GenericService

            self.marshal_class_method = :encode
            self.unmarshal_class_method = :decode
            self.service_name = 'google.cloud.talent.v4beta1.JobService'

            # Creates a new job.
            #
            # Typically, the job becomes searchable within 10 seconds, but it may take
            # up to 5 minutes.
            rpc :CreateJob, CreateJobRequest, Job
            # Begins executing a batch create jobs operation.
            rpc :BatchCreateJobs, BatchCreateJobsRequest, Google::Longrunning::Operation
            # Retrieves the specified job, whose status is OPEN or recently EXPIRED
            # within the last 90 days.
            rpc :GetJob, GetJobRequest, Job
            # Updates specified job.
            #
            # Typically, updated contents become visible in search results within 10
            # seconds, but it may take up to 5 minutes.
            rpc :UpdateJob, UpdateJobRequest, Job
            # Begins executing a batch update jobs operation.
            rpc :BatchUpdateJobs, BatchUpdateJobsRequest, Google::Longrunning::Operation
            # Deletes the specified job.
            #
            # Typically, the job becomes unsearchable within 10 seconds, but it may take
            # up to 5 minutes.
            rpc :DeleteJob, DeleteJobRequest, Google::Protobuf::Empty
            # Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
            rpc :BatchDeleteJobs, BatchDeleteJobsRequest, Google::Protobuf::Empty
            # Lists jobs by filter.
            rpc :ListJobs, ListJobsRequest, ListJobsResponse
            # Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
            #
            # This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs
            # present in the database, and only returns jobs that the caller has
            # permission to search against.
            rpc :SearchJobs, SearchJobsRequest, SearchJobsResponse
            # Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
            #
            # This API call is intended for the use case of targeting passive job
            # seekers (for example, job seekers who have signed up to receive email
            # alerts about potential job opportunities), and has different algorithmic
            # adjustments that are targeted to passive job seekers.
            #
            # This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs
            # present in the database, and only returns jobs the caller has
            # permission to search against.
            rpc :SearchJobsForAlert, SearchJobsRequest, SearchJobsResponse
          end

          Stub = Service.rpc_stub_class
        end
      end
    end
  end
end