//
//  Generated code. Do not modify.
//  source: user-groups.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 'user-groups.pb.dart' as $59;

export 'user-groups.pb.dart';

@$pb.GrpcServiceName('api.UserGroupsService')
class UserGroupsServiceClient extends $grpc.Client {
  static final _$get = $grpc.ClientMethod<$59.GetUserGroupsRequest, $59.GetUserGroupsResult>(
      '/api.UserGroupsService/Get',
      ($59.GetUserGroupsRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $59.GetUserGroupsResult.fromBuffer(value));
  static final _$put = $grpc.ClientMethod<$59.PutUserGroupsRequest, $59.PutUserGroupsResult>(
      '/api.UserGroupsService/Put',
      ($59.PutUserGroupsRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $59.PutUserGroupsResult.fromBuffer(value));
  static final _$delete = $grpc.ClientMethod<$59.DeleteUserGroupsRequest, $59.DeleteUserGroupsResult>(
      '/api.UserGroupsService/Delete',
      ($59.DeleteUserGroupsRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $59.DeleteUserGroupsResult.fromBuffer(value));
  static final _$list = $grpc.ClientMethod<$59.ListUserGroupsRequest, $59.ListUserGroupsResult>(
      '/api.UserGroupsService/List',
      ($59.ListUserGroupsRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $59.ListUserGroupsResult.fromBuffer(value));

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

  $grpc.ResponseFuture<$59.GetUserGroupsResult> get($59.GetUserGroupsRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$get, request, options: options);
  }

  $grpc.ResponseFuture<$59.PutUserGroupsResult> put($59.PutUserGroupsRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$put, request, options: options);
  }

  $grpc.ResponseFuture<$59.DeleteUserGroupsResult> delete($59.DeleteUserGroupsRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$delete, request, options: options);
  }

  $grpc.ResponseFuture<$59.ListUserGroupsResult> list($59.ListUserGroupsRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$list, request, options: options);
  }
}

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

  UserGroupsServiceBase() {
    $addMethod($grpc.ServiceMethod<$59.GetUserGroupsRequest, $59.GetUserGroupsResult>(
        'Get',
        get_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $59.GetUserGroupsRequest.fromBuffer(value),
        ($59.GetUserGroupsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$59.PutUserGroupsRequest, $59.PutUserGroupsResult>(
        'Put',
        put_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $59.PutUserGroupsRequest.fromBuffer(value),
        ($59.PutUserGroupsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$59.DeleteUserGroupsRequest, $59.DeleteUserGroupsResult>(
        'Delete',
        delete_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $59.DeleteUserGroupsRequest.fromBuffer(value),
        ($59.DeleteUserGroupsResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$59.ListUserGroupsRequest, $59.ListUserGroupsResult>(
        'List',
        list_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $59.ListUserGroupsRequest.fromBuffer(value),
        ($59.ListUserGroupsResult value) => value.writeToBuffer()));
  }

  $async.Future<$59.GetUserGroupsResult> get_Pre($grpc.ServiceCall $call, $async.Future<$59.GetUserGroupsRequest> $request) async {
    return get($call, await $request);
  }

  $async.Future<$59.PutUserGroupsResult> put_Pre($grpc.ServiceCall $call, $async.Future<$59.PutUserGroupsRequest> $request) async {
    return put($call, await $request);
  }

  $async.Future<$59.DeleteUserGroupsResult> delete_Pre($grpc.ServiceCall $call, $async.Future<$59.DeleteUserGroupsRequest> $request) async {
    return delete($call, await $request);
  }

  $async.Future<$59.ListUserGroupsResult> list_Pre($grpc.ServiceCall $call, $async.Future<$59.ListUserGroupsRequest> $request) async {
    return list($call, await $request);
  }

  $async.Future<$59.GetUserGroupsResult> get($grpc.ServiceCall call, $59.GetUserGroupsRequest request);
  $async.Future<$59.PutUserGroupsResult> put($grpc.ServiceCall call, $59.PutUserGroupsRequest request);
  $async.Future<$59.DeleteUserGroupsResult> delete($grpc.ServiceCall call, $59.DeleteUserGroupsRequest request);
  $async.Future<$59.ListUserGroupsResult> list($grpc.ServiceCall call, $59.ListUserGroupsRequest request);
}
