Latest generation

This commit is contained in:
ci core model
2025-06-05 12:59:22 +00:00
parent 6023425544
commit 656fac9cb8
9 changed files with 112 additions and 9 deletions

View File

@@ -66,6 +66,10 @@ class SiteServiceClient extends $grpc.Client {
'/api.SiteService/BookAppointment',
($57.BookAppointmentRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $57.BookAppointmentResponse.fromBuffer(value));
static final _$forceBookAppointment = $grpc.ClientMethod<$57.BookAppointmentRequest, $57.BookAppointmentResponse>(
'/api.SiteService/ForceBookAppointment',
($57.BookAppointmentRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $57.BookAppointmentResponse.fromBuffer(value));
static final _$cancelAppointment = $grpc.ClientMethod<$57.CancelAppointmentRequest, $57.CancelAppointmentResponse>(
'/api.SiteService/CancelAppointment',
($57.CancelAppointmentRequest value) => value.writeToBuffer(),
@@ -109,6 +113,10 @@ class SiteServiceClient extends $grpc.Client {
return $createUnaryCall(_$bookAppointment, request, options: options);
}
$grpc.ResponseFuture<$57.BookAppointmentResponse> forceBookAppointment($57.BookAppointmentRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$forceBookAppointment, request, options: options);
}
$grpc.ResponseFuture<$57.CancelAppointmentResponse> cancelAppointment($57.CancelAppointmentRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$cancelAppointment, request, options: options);
}
@@ -182,6 +190,13 @@ abstract class SiteServiceBase extends $grpc.Service {
false,
($core.List<$core.int> value) => $57.BookAppointmentRequest.fromBuffer(value),
($57.BookAppointmentResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$57.BookAppointmentRequest, $57.BookAppointmentResponse>(
'ForceBookAppointment',
forceBookAppointment_Pre,
false,
false,
($core.List<$core.int> value) => $57.BookAppointmentRequest.fromBuffer(value),
($57.BookAppointmentResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$57.CancelAppointmentRequest, $57.CancelAppointmentResponse>(
'CancelAppointment',
cancelAppointment_Pre,
@@ -227,6 +242,10 @@ abstract class SiteServiceBase extends $grpc.Service {
return bookAppointment($call, await $request);
}
$async.Future<$57.BookAppointmentResponse> forceBookAppointment_Pre($grpc.ServiceCall $call, $async.Future<$57.BookAppointmentRequest> $request) async {
return forceBookAppointment($call, await $request);
}
$async.Future<$57.CancelAppointmentResponse> cancelAppointment_Pre($grpc.ServiceCall $call, $async.Future<$57.CancelAppointmentRequest> $request) async {
return cancelAppointment($call, await $request);
}
@@ -240,5 +259,6 @@ abstract class SiteServiceBase extends $grpc.Service {
$async.Future<$57.GetAvailableSlotsResponse> getAvailableSlots($grpc.ServiceCall call, $57.GetAvailableSlotsRequest request);
$async.Future<$57.ListUserSitesResponse> listUserSites($grpc.ServiceCall call, $57.ListUserSitesRequest request);
$async.Future<$57.BookAppointmentResponse> bookAppointment($grpc.ServiceCall call, $57.BookAppointmentRequest request);
$async.Future<$57.BookAppointmentResponse> forceBookAppointment($grpc.ServiceCall call, $57.BookAppointmentRequest request);
$async.Future<$57.CancelAppointmentResponse> cancelAppointment($grpc.ServiceCall call, $57.CancelAppointmentRequest request);
}