//
//  Generated code. Do not modify.
//  source: idp.proto
//
// @dart = 3.3

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

import 'dart:async' as $async;
import 'dart:core' as $core;

import 'package:grpc/service_api.dart' as $grpc;
import 'package:protobuf/protobuf.dart' as $pb;

import 'idp.pb.dart' as $10;

export 'idp.pb.dart';

@$pb.GrpcServiceName('api.IDPService')
class IDPServiceClient extends $grpc.Client {
  static final _$get = $grpc.ClientMethod<$10.GetIDPRequest, $10.GetIDPResult>(
      '/api.IDPService/Get',
      ($10.GetIDPRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $10.GetIDPResult.fromBuffer(value));
  static final _$create = $grpc.ClientMethod<$10.CreateIDPRequest, $10.CreateIDPResult>(
      '/api.IDPService/Create',
      ($10.CreateIDPRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $10.CreateIDPResult.fromBuffer(value));
  static final _$update = $grpc.ClientMethod<$10.UpdateIDPRequest, $10.UpdateIDPResult>(
      '/api.IDPService/Update',
      ($10.UpdateIDPRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $10.UpdateIDPResult.fromBuffer(value));
  static final _$delete = $grpc.ClientMethod<$10.DeleteIDPRequest, $10.DeleteIDPResult>(
      '/api.IDPService/Delete',
      ($10.DeleteIDPRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $10.DeleteIDPResult.fromBuffer(value));
  static final _$list = $grpc.ClientMethod<$10.ListIDPRequest, $10.ListIDPResult>(
      '/api.IDPService/List',
      ($10.ListIDPRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $10.ListIDPResult.fromBuffer(value));

  IDPServiceClient($grpc.ClientChannel channel,
      {$grpc.CallOptions? options,
      $core.Iterable<$grpc.ClientInterceptor>? interceptors})
      : super(channel, options: options,
        interceptors: interceptors);

  $grpc.ResponseFuture<$10.GetIDPResult> get($10.GetIDPRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$get, request, options: options);
  }

  $grpc.ResponseFuture<$10.CreateIDPResult> create($10.CreateIDPRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$create, request, options: options);
  }

  $grpc.ResponseFuture<$10.UpdateIDPResult> update($10.UpdateIDPRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$update, request, options: options);
  }

  $grpc.ResponseFuture<$10.DeleteIDPResult> delete($10.DeleteIDPRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$delete, request, options: options);
  }

  $grpc.ResponseFuture<$10.ListIDPResult> list($10.ListIDPRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$list, request, options: options);
  }
}

@$pb.GrpcServiceName('api.IDPService')
abstract class IDPServiceBase extends $grpc.Service {
  $core.String get $name => 'api.IDPService';

  IDPServiceBase() {
    $addMethod($grpc.ServiceMethod<$10.GetIDPRequest, $10.GetIDPResult>(
        'Get',
        get_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $10.GetIDPRequest.fromBuffer(value),
        ($10.GetIDPResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$10.CreateIDPRequest, $10.CreateIDPResult>(
        'Create',
        create_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $10.CreateIDPRequest.fromBuffer(value),
        ($10.CreateIDPResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$10.UpdateIDPRequest, $10.UpdateIDPResult>(
        'Update',
        update_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $10.UpdateIDPRequest.fromBuffer(value),
        ($10.UpdateIDPResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$10.DeleteIDPRequest, $10.DeleteIDPResult>(
        'Delete',
        delete_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $10.DeleteIDPRequest.fromBuffer(value),
        ($10.DeleteIDPResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$10.ListIDPRequest, $10.ListIDPResult>(
        'List',
        list_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $10.ListIDPRequest.fromBuffer(value),
        ($10.ListIDPResult value) => value.writeToBuffer()));
  }

  $async.Future<$10.GetIDPResult> get_Pre($grpc.ServiceCall $call, $async.Future<$10.GetIDPRequest> $request) async {
    return get($call, await $request);
  }

  $async.Future<$10.CreateIDPResult> create_Pre($grpc.ServiceCall $call, $async.Future<$10.CreateIDPRequest> $request) async {
    return create($call, await $request);
  }

  $async.Future<$10.UpdateIDPResult> update_Pre($grpc.ServiceCall $call, $async.Future<$10.UpdateIDPRequest> $request) async {
    return update($call, await $request);
  }

  $async.Future<$10.DeleteIDPResult> delete_Pre($grpc.ServiceCall $call, $async.Future<$10.DeleteIDPRequest> $request) async {
    return delete($call, await $request);
  }

  $async.Future<$10.ListIDPResult> list_Pre($grpc.ServiceCall $call, $async.Future<$10.ListIDPRequest> $request) async {
    return list($call, await $request);
  }

  $async.Future<$10.GetIDPResult> get($grpc.ServiceCall call, $10.GetIDPRequest request);
  $async.Future<$10.CreateIDPResult> create($grpc.ServiceCall call, $10.CreateIDPRequest request);
  $async.Future<$10.UpdateIDPResult> update($grpc.ServiceCall call, $10.UpdateIDPRequest request);
  $async.Future<$10.DeleteIDPResult> delete($grpc.ServiceCall call, $10.DeleteIDPRequest request);
  $async.Future<$10.ListIDPResult> list($grpc.ServiceCall call, $10.ListIDPRequest request);
}
