//
//  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 $25;

export 'idp.pb.dart';

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

  IDPServiceClient(super.channel, {super.options, super.interceptors});

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

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

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

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

  $grpc.ResponseFuture<$25.ListIDPResult> list($25.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<$25.GetIDPRequest, $25.GetIDPResult>(
        'Get',
        get_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $25.GetIDPRequest.fromBuffer(value),
        ($25.GetIDPResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$25.CreateIDPRequest, $25.CreateIDPResult>(
        'Create',
        create_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $25.CreateIDPRequest.fromBuffer(value),
        ($25.CreateIDPResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$25.UpdateIDPRequest, $25.UpdateIDPResult>(
        'Update',
        update_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $25.UpdateIDPRequest.fromBuffer(value),
        ($25.UpdateIDPResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$25.DeleteIDPRequest, $25.DeleteIDPResult>(
        'Delete',
        delete_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $25.DeleteIDPRequest.fromBuffer(value),
        ($25.DeleteIDPResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$25.ListIDPRequest, $25.ListIDPResult>(
        'List',
        list_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $25.ListIDPRequest.fromBuffer(value),
        ($25.ListIDPResult value) => value.writeToBuffer()));
  }

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

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

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

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

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

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