//
// DO NOT EDIT.
//
// Generated by the protocol buffer compiler.
// Source: rideos/pudo/v1/pudo.proto
//

//
// Copyright 2018, gRPC Authors All rights reserved.
//
// 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.
//
import GRPC
import NIO
import SwiftProtobuf


/// Usage: instantiate Rideos_Pudo_V1_PudoServiceClient, then call methods of this protocol to make API calls.
public protocol Rideos_Pudo_V1_PudoServiceClientProtocol: GRPCClient {
  func getRoutablePositions(
    _ request: Rideos_Pudo_V1_GetRoutablePositionsRequest,
    callOptions: CallOptions?
  ) -> UnaryCall<Rideos_Pudo_V1_GetRoutablePositionsRequest, Rideos_Pudo_V1_GetRoutablePositionsResponse>

}

extension Rideos_Pudo_V1_PudoServiceClientProtocol {

  /// Unary call to GetRoutablePositions
  ///
  /// - Parameters:
  ///   - request: Request to send to GetRoutablePositions.
  ///   - callOptions: Call options.
  /// - Returns: A `UnaryCall` with futures for the metadata, status and response.
  public func getRoutablePositions(
    _ request: Rideos_Pudo_V1_GetRoutablePositionsRequest,
    callOptions: CallOptions? = nil
  ) -> UnaryCall<Rideos_Pudo_V1_GetRoutablePositionsRequest, Rideos_Pudo_V1_GetRoutablePositionsResponse> {
    return self.makeUnaryCall(
      path: "/rideos.pudo.v1.PudoService/GetRoutablePositions",
      request: request,
      callOptions: callOptions ?? self.defaultCallOptions
    )
  }
}

public final class Rideos_Pudo_V1_PudoServiceClient: Rideos_Pudo_V1_PudoServiceClientProtocol {
  public let channel: GRPCChannel
  public var defaultCallOptions: CallOptions

  /// Creates a client for the rideos.pudo.v1.PudoService service.
  ///
  /// - Parameters:
  ///   - channel: `GRPCChannel` to the service host.
  ///   - defaultCallOptions: Options to use for each service call if the user doesn't provide them.
  public init(channel: GRPCChannel, defaultCallOptions: CallOptions = CallOptions()) {
    self.channel = channel
    self.defaultCallOptions = defaultCallOptions
  }
}

