You've already forked dart-core-sdk
220 lines
11 KiB
Dart
220 lines
11 KiB
Dart
//
|
|
// Generated code. Do not modify.
|
|
// source: site.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 'site.pb.dart' as $38;
|
|
|
|
export 'site.pb.dart';
|
|
|
|
@$pb.GrpcServiceName('api.SiteService')
|
|
class SiteServiceClient extends $grpc.Client {
|
|
static final _$create = $grpc.ClientMethod<$38.CreateSiteRequest, $38.CreateSiteResponse>(
|
|
'/api.SiteService/Create',
|
|
($38.CreateSiteRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $38.CreateSiteResponse.fromBuffer(value));
|
|
static final _$get = $grpc.ClientMethod<$38.GetSiteRequest, $38.GetSiteResponse>(
|
|
'/api.SiteService/Get',
|
|
($38.GetSiteRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $38.GetSiteResponse.fromBuffer(value));
|
|
static final _$list = $grpc.ClientMethod<$38.ListSiteRequest, $38.ListSiteResponse>(
|
|
'/api.SiteService/List',
|
|
($38.ListSiteRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $38.ListSiteResponse.fromBuffer(value));
|
|
static final _$update = $grpc.ClientMethod<$38.UpdateSiteRequest, $38.UpdateSiteResponse>(
|
|
'/api.SiteService/Update',
|
|
($38.UpdateSiteRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $38.UpdateSiteResponse.fromBuffer(value));
|
|
static final _$delete = $grpc.ClientMethod<$38.DeleteSiteRequest, $38.DeleteSiteResponse>(
|
|
'/api.SiteService/Delete',
|
|
($38.DeleteSiteRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $38.DeleteSiteResponse.fromBuffer(value));
|
|
static final _$getAvailableSlots = $grpc.ClientMethod<$38.GetAvailableSlotsRequest, $38.GetAvailableSlotsResponse>(
|
|
'/api.SiteService/GetAvailableSlots',
|
|
($38.GetAvailableSlotsRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $38.GetAvailableSlotsResponse.fromBuffer(value));
|
|
static final _$listUserSites = $grpc.ClientMethod<$38.ListUserSitesRequest, $38.ListUserSitesResponse>(
|
|
'/api.SiteService/ListUserSites',
|
|
($38.ListUserSitesRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $38.ListUserSitesResponse.fromBuffer(value));
|
|
static final _$bookAppointment = $grpc.ClientMethod<$38.BookAppointmentRequest, $38.BookAppointmentResponse>(
|
|
'/api.SiteService/BookAppointment',
|
|
($38.BookAppointmentRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $38.BookAppointmentResponse.fromBuffer(value));
|
|
static final _$cancelAppointment = $grpc.ClientMethod<$38.CancelAppointmentRequest, $38.CancelAppointmentResponse>(
|
|
'/api.SiteService/CancelAppointment',
|
|
($38.CancelAppointmentRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $38.CancelAppointmentResponse.fromBuffer(value));
|
|
|
|
SiteServiceClient($grpc.ClientChannel channel,
|
|
{$grpc.CallOptions? options,
|
|
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
|
|
: super(channel, options: options,
|
|
interceptors: interceptors);
|
|
|
|
$grpc.ResponseFuture<$38.CreateSiteResponse> create($38.CreateSiteRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$create, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$38.GetSiteResponse> get($38.GetSiteRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$get, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$38.ListSiteResponse> list($38.ListSiteRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$list, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$38.UpdateSiteResponse> update($38.UpdateSiteRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$update, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$38.DeleteSiteResponse> delete($38.DeleteSiteRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$delete, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$38.GetAvailableSlotsResponse> getAvailableSlots($38.GetAvailableSlotsRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$getAvailableSlots, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$38.ListUserSitesResponse> listUserSites($38.ListUserSitesRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$listUserSites, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$38.BookAppointmentResponse> bookAppointment($38.BookAppointmentRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$bookAppointment, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$38.CancelAppointmentResponse> cancelAppointment($38.CancelAppointmentRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$cancelAppointment, request, options: options);
|
|
}
|
|
}
|
|
|
|
@$pb.GrpcServiceName('api.SiteService')
|
|
abstract class SiteServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'api.SiteService';
|
|
|
|
SiteServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$38.CreateSiteRequest, $38.CreateSiteResponse>(
|
|
'Create',
|
|
create_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $38.CreateSiteRequest.fromBuffer(value),
|
|
($38.CreateSiteResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$38.GetSiteRequest, $38.GetSiteResponse>(
|
|
'Get',
|
|
get_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $38.GetSiteRequest.fromBuffer(value),
|
|
($38.GetSiteResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$38.ListSiteRequest, $38.ListSiteResponse>(
|
|
'List',
|
|
list_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $38.ListSiteRequest.fromBuffer(value),
|
|
($38.ListSiteResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$38.UpdateSiteRequest, $38.UpdateSiteResponse>(
|
|
'Update',
|
|
update_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $38.UpdateSiteRequest.fromBuffer(value),
|
|
($38.UpdateSiteResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$38.DeleteSiteRequest, $38.DeleteSiteResponse>(
|
|
'Delete',
|
|
delete_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $38.DeleteSiteRequest.fromBuffer(value),
|
|
($38.DeleteSiteResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$38.GetAvailableSlotsRequest, $38.GetAvailableSlotsResponse>(
|
|
'GetAvailableSlots',
|
|
getAvailableSlots_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $38.GetAvailableSlotsRequest.fromBuffer(value),
|
|
($38.GetAvailableSlotsResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$38.ListUserSitesRequest, $38.ListUserSitesResponse>(
|
|
'ListUserSites',
|
|
listUserSites_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $38.ListUserSitesRequest.fromBuffer(value),
|
|
($38.ListUserSitesResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$38.BookAppointmentRequest, $38.BookAppointmentResponse>(
|
|
'BookAppointment',
|
|
bookAppointment_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $38.BookAppointmentRequest.fromBuffer(value),
|
|
($38.BookAppointmentResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$38.CancelAppointmentRequest, $38.CancelAppointmentResponse>(
|
|
'CancelAppointment',
|
|
cancelAppointment_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $38.CancelAppointmentRequest.fromBuffer(value),
|
|
($38.CancelAppointmentResponse value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$38.CreateSiteResponse> create_Pre($grpc.ServiceCall $call, $async.Future<$38.CreateSiteRequest> $request) async {
|
|
return create($call, await $request);
|
|
}
|
|
|
|
$async.Future<$38.GetSiteResponse> get_Pre($grpc.ServiceCall $call, $async.Future<$38.GetSiteRequest> $request) async {
|
|
return get($call, await $request);
|
|
}
|
|
|
|
$async.Future<$38.ListSiteResponse> list_Pre($grpc.ServiceCall $call, $async.Future<$38.ListSiteRequest> $request) async {
|
|
return list($call, await $request);
|
|
}
|
|
|
|
$async.Future<$38.UpdateSiteResponse> update_Pre($grpc.ServiceCall $call, $async.Future<$38.UpdateSiteRequest> $request) async {
|
|
return update($call, await $request);
|
|
}
|
|
|
|
$async.Future<$38.DeleteSiteResponse> delete_Pre($grpc.ServiceCall $call, $async.Future<$38.DeleteSiteRequest> $request) async {
|
|
return delete($call, await $request);
|
|
}
|
|
|
|
$async.Future<$38.GetAvailableSlotsResponse> getAvailableSlots_Pre($grpc.ServiceCall $call, $async.Future<$38.GetAvailableSlotsRequest> $request) async {
|
|
return getAvailableSlots($call, await $request);
|
|
}
|
|
|
|
$async.Future<$38.ListUserSitesResponse> listUserSites_Pre($grpc.ServiceCall $call, $async.Future<$38.ListUserSitesRequest> $request) async {
|
|
return listUserSites($call, await $request);
|
|
}
|
|
|
|
$async.Future<$38.BookAppointmentResponse> bookAppointment_Pre($grpc.ServiceCall $call, $async.Future<$38.BookAppointmentRequest> $request) async {
|
|
return bookAppointment($call, await $request);
|
|
}
|
|
|
|
$async.Future<$38.CancelAppointmentResponse> cancelAppointment_Pre($grpc.ServiceCall $call, $async.Future<$38.CancelAppointmentRequest> $request) async {
|
|
return cancelAppointment($call, await $request);
|
|
}
|
|
|
|
$async.Future<$38.CreateSiteResponse> create($grpc.ServiceCall call, $38.CreateSiteRequest request);
|
|
$async.Future<$38.GetSiteResponse> get($grpc.ServiceCall call, $38.GetSiteRequest request);
|
|
$async.Future<$38.ListSiteResponse> list($grpc.ServiceCall call, $38.ListSiteRequest request);
|
|
$async.Future<$38.UpdateSiteResponse> update($grpc.ServiceCall call, $38.UpdateSiteRequest request);
|
|
$async.Future<$38.DeleteSiteResponse> delete($grpc.ServiceCall call, $38.DeleteSiteRequest request);
|
|
$async.Future<$38.GetAvailableSlotsResponse> getAvailableSlots($grpc.ServiceCall call, $38.GetAvailableSlotsRequest request);
|
|
$async.Future<$38.ListUserSitesResponse> listUserSites($grpc.ServiceCall call, $38.ListUserSitesRequest request);
|
|
$async.Future<$38.BookAppointmentResponse> bookAppointment($grpc.ServiceCall call, $38.BookAppointmentRequest request);
|
|
$async.Future<$38.CancelAppointmentResponse> cancelAppointment($grpc.ServiceCall call, $38.CancelAppointmentRequest request);
|
|
}
|