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