// This is a generated file - do not edit.
//
// Generated from user-groups.proto.

// @dart = 3.3

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names

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 $0;

export 'user-groups.pb.dart';

@$pb.GrpcServiceName('api.UserGroupsService')
class UserGroupsServiceClient extends $grpc.Client {
  /// The hostname for this service.
  static const $core.String defaultHost = '';

  /// OAuth scopes needed for the client.
  static const $core.List<$core.String> oauthScopes = [
    '',
  ];

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

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

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

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

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

    // method descriptors

  static final _$get = $grpc.ClientMethod<$0.GetUserGroupsRequest, $0.GetUserGroupsResult>(
      '/api.UserGroupsService/Get',
      ($0.GetUserGroupsRequest value) => value.writeToBuffer(),
      $0.GetUserGroupsResult.fromBuffer);
  static final _$put = $grpc.ClientMethod<$0.PutUserGroupsRequest, $0.PutUserGroupsResult>(
      '/api.UserGroupsService/Put',
      ($0.PutUserGroupsRequest value) => value.writeToBuffer(),
      $0.PutUserGroupsResult.fromBuffer);
  static final _$delete = $grpc.ClientMethod<$0.DeleteUserGroupsRequest, $0.DeleteUserGroupsResult>(
      '/api.UserGroupsService/Delete',
      ($0.DeleteUserGroupsRequest value) => value.writeToBuffer(),
      $0.DeleteUserGroupsResult.fromBuffer);
  static final _$list = $grpc.ClientMethod<$0.ListUserGroupsRequest, $0.ListUserGroupsResult>(
      '/api.UserGroupsService/List',
      ($0.ListUserGroupsRequest value) => value.writeToBuffer(),
      $0.ListUserGroupsResult.fromBuffer);
}

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

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

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

  $async.Future<$0.GetUserGroupsResult> get($grpc.ServiceCall call, $0.GetUserGroupsRequest request);

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

  $async.Future<$0.PutUserGroupsResult> put($grpc.ServiceCall call, $0.PutUserGroupsRequest request);

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

  $async.Future<$0.DeleteUserGroupsResult> delete($grpc.ServiceCall call, $0.DeleteUserGroupsRequest request);

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

  $async.Future<$0.ListUserGroupsResult> list($grpc.ServiceCall call, $0.ListUserGroupsRequest request);

}
