Files
dart-core-sdk/lib/restrictionLinks.pbgrpc.dart
2025-04-22 09:11:37 +00:00

180 lines
9.5 KiB
Dart

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