Files
dart-core-sdk/lib/restrictionLinks.pbgrpc.dart
2025-05-20 08:54:50 +00:00

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