// // Generated code. Do not modify. // source: restrictionLinks.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 'restrictionLinks.pb.dart' as $62; export 'restrictionLinks.pb.dart'; @$pb.GrpcServiceName('api.RestrictionLinkService') class RestrictionLinkServiceClient extends $grpc.Client { static final _$create = $grpc.ClientMethod<$62.CreateRestrictionLinkRequest, $62.CreateRestrictionLinkResponse>( '/api.RestrictionLinkService/Create', ($62.CreateRestrictionLinkRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $62.CreateRestrictionLinkResponse.fromBuffer(value)); static final _$update = $grpc.ClientMethod<$62.UpdateRestrictionLinkRequest, $62.UpdateRestrictionLinkResponse>( '/api.RestrictionLinkService/Update', ($62.UpdateRestrictionLinkRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $62.UpdateRestrictionLinkResponse.fromBuffer(value)); static final _$delete = $grpc.ClientMethod<$62.DeleteRestrictionLinkRequest, $62.DeleteRestrictionLinkResponse>( '/api.RestrictionLinkService/Delete', ($62.DeleteRestrictionLinkRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $62.DeleteRestrictionLinkResponse.fromBuffer(value)); static final _$get = $grpc.ClientMethod<$62.GetRestrictionLinkRequest, $62.GetRestrictionLinkResponse>( '/api.RestrictionLinkService/Get', ($62.GetRestrictionLinkRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $62.GetRestrictionLinkResponse.fromBuffer(value)); static final _$list = $grpc.ClientMethod<$62.ListRestrictionLinksRequest, $62.ListRestrictionLinksResponse>( '/api.RestrictionLinkService/List', ($62.ListRestrictionLinksRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $62.ListRestrictionLinksResponse.fromBuffer(value)); static final _$setUserActors = $grpc.ClientMethod<$62.SetUserActorsRequest, $62.SetUserActorsResponse>( '/api.RestrictionLinkService/SetUserActors', ($62.SetUserActorsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $62.SetUserActorsResponse.fromBuffer(value)); static final _$deleteForProject = $grpc.ClientMethod<$62.DeleteForProjectRestrictionLinkRequest, $62.DeleteForProjectRestrictionLinkResponse>( '/api.RestrictionLinkService/DeleteForProject', ($62.DeleteForProjectRestrictionLinkRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $62.DeleteForProjectRestrictionLinkResponse.fromBuffer(value)); RestrictionLinkServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); $grpc.ResponseFuture<$62.CreateRestrictionLinkResponse> create($62.CreateRestrictionLinkRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$create, request, options: options); } $grpc.ResponseFuture<$62.UpdateRestrictionLinkResponse> update($62.UpdateRestrictionLinkRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$update, request, options: options); } $grpc.ResponseFuture<$62.DeleteRestrictionLinkResponse> delete($62.DeleteRestrictionLinkRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$delete, request, options: options); } $grpc.ResponseFuture<$62.GetRestrictionLinkResponse> get($62.GetRestrictionLinkRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$get, request, options: options); } $grpc.ResponseFuture<$62.ListRestrictionLinksResponse> list($62.ListRestrictionLinksRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$list, request, options: options); } $grpc.ResponseFuture<$62.SetUserActorsResponse> setUserActors($62.SetUserActorsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$setUserActors, request, options: options); } $grpc.ResponseFuture<$62.DeleteForProjectRestrictionLinkResponse> deleteForProject($62.DeleteForProjectRestrictionLinkRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteForProject, request, options: options); } } @$pb.GrpcServiceName('api.RestrictionLinkService') abstract class RestrictionLinkServiceBase extends $grpc.Service { $core.String get $name => 'api.RestrictionLinkService'; RestrictionLinkServiceBase() { $addMethod($grpc.ServiceMethod<$62.CreateRestrictionLinkRequest, $62.CreateRestrictionLinkResponse>( 'Create', create_Pre, false, false, ($core.List<$core.int> value) => $62.CreateRestrictionLinkRequest.fromBuffer(value), ($62.CreateRestrictionLinkResponse value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$62.UpdateRestrictionLinkRequest, $62.UpdateRestrictionLinkResponse>( 'Update', update_Pre, false, false, ($core.List<$core.int> value) => $62.UpdateRestrictionLinkRequest.fromBuffer(value), ($62.UpdateRestrictionLinkResponse value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$62.DeleteRestrictionLinkRequest, $62.DeleteRestrictionLinkResponse>( 'Delete', delete_Pre, false, false, ($core.List<$core.int> value) => $62.DeleteRestrictionLinkRequest.fromBuffer(value), ($62.DeleteRestrictionLinkResponse value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$62.GetRestrictionLinkRequest, $62.GetRestrictionLinkResponse>( 'Get', get_Pre, false, false, ($core.List<$core.int> value) => $62.GetRestrictionLinkRequest.fromBuffer(value), ($62.GetRestrictionLinkResponse value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$62.ListRestrictionLinksRequest, $62.ListRestrictionLinksResponse>( 'List', list_Pre, false, false, ($core.List<$core.int> value) => $62.ListRestrictionLinksRequest.fromBuffer(value), ($62.ListRestrictionLinksResponse value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$62.SetUserActorsRequest, $62.SetUserActorsResponse>( 'SetUserActors', setUserActors_Pre, false, false, ($core.List<$core.int> value) => $62.SetUserActorsRequest.fromBuffer(value), ($62.SetUserActorsResponse value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$62.DeleteForProjectRestrictionLinkRequest, $62.DeleteForProjectRestrictionLinkResponse>( 'DeleteForProject', deleteForProject_Pre, false, false, ($core.List<$core.int> value) => $62.DeleteForProjectRestrictionLinkRequest.fromBuffer(value), ($62.DeleteForProjectRestrictionLinkResponse value) => value.writeToBuffer())); } $async.Future<$62.CreateRestrictionLinkResponse> create_Pre($grpc.ServiceCall $call, $async.Future<$62.CreateRestrictionLinkRequest> $request) async { return create($call, await $request); } $async.Future<$62.UpdateRestrictionLinkResponse> update_Pre($grpc.ServiceCall $call, $async.Future<$62.UpdateRestrictionLinkRequest> $request) async { return update($call, await $request); } $async.Future<$62.DeleteRestrictionLinkResponse> delete_Pre($grpc.ServiceCall $call, $async.Future<$62.DeleteRestrictionLinkRequest> $request) async { return delete($call, await $request); } $async.Future<$62.GetRestrictionLinkResponse> get_Pre($grpc.ServiceCall $call, $async.Future<$62.GetRestrictionLinkRequest> $request) async { return get($call, await $request); } $async.Future<$62.ListRestrictionLinksResponse> list_Pre($grpc.ServiceCall $call, $async.Future<$62.ListRestrictionLinksRequest> $request) async { return list($call, await $request); } $async.Future<$62.SetUserActorsResponse> setUserActors_Pre($grpc.ServiceCall $call, $async.Future<$62.SetUserActorsRequest> $request) async { return setUserActors($call, await $request); } $async.Future<$62.DeleteForProjectRestrictionLinkResponse> deleteForProject_Pre($grpc.ServiceCall $call, $async.Future<$62.DeleteForProjectRestrictionLinkRequest> $request) async { return deleteForProject($call, await $request); } $async.Future<$62.CreateRestrictionLinkResponse> create($grpc.ServiceCall call, $62.CreateRestrictionLinkRequest request); $async.Future<$62.UpdateRestrictionLinkResponse> update($grpc.ServiceCall call, $62.UpdateRestrictionLinkRequest request); $async.Future<$62.DeleteRestrictionLinkResponse> delete($grpc.ServiceCall call, $62.DeleteRestrictionLinkRequest request); $async.Future<$62.GetRestrictionLinkResponse> get($grpc.ServiceCall call, $62.GetRestrictionLinkRequest request); $async.Future<$62.ListRestrictionLinksResponse> list($grpc.ServiceCall call, $62.ListRestrictionLinksRequest request); $async.Future<$62.SetUserActorsResponse> setUserActors($grpc.ServiceCall call, $62.SetUserActorsRequest request); $async.Future<$62.DeleteForProjectRestrictionLinkResponse> deleteForProject($grpc.ServiceCall call, $62.DeleteForProjectRestrictionLinkRequest request); }