You've already forked dart-core-sdk
245 lines
12 KiB
Dart
245 lines
12 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
|
|
// ignore_for_file: curly_braces_in_flow_control_structures
|
|
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
|
// ignore_for_file: non_constant_identifier_names
|
|
|
|
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 $57;
|
|
|
|
export 'site.pb.dart';
|
|
|
|
@$pb.GrpcServiceName('api.SiteService')
|
|
class SiteServiceClient 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<$57.CreateSiteRequest, $57.CreateSiteResponse>(
|
|
'/api.SiteService/Create',
|
|
($57.CreateSiteRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $57.CreateSiteResponse.fromBuffer(value));
|
|
static final _$get = $grpc.ClientMethod<$57.GetSiteRequest, $57.GetSiteResponse>(
|
|
'/api.SiteService/Get',
|
|
($57.GetSiteRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $57.GetSiteResponse.fromBuffer(value));
|
|
static final _$list = $grpc.ClientMethod<$57.ListSiteRequest, $57.ListSiteResponse>(
|
|
'/api.SiteService/List',
|
|
($57.ListSiteRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $57.ListSiteResponse.fromBuffer(value));
|
|
static final _$update = $grpc.ClientMethod<$57.UpdateSiteRequest, $57.UpdateSiteResponse>(
|
|
'/api.SiteService/Update',
|
|
($57.UpdateSiteRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $57.UpdateSiteResponse.fromBuffer(value));
|
|
static final _$delete = $grpc.ClientMethod<$57.DeleteSiteRequest, $57.DeleteSiteResponse>(
|
|
'/api.SiteService/Delete',
|
|
($57.DeleteSiteRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $57.DeleteSiteResponse.fromBuffer(value));
|
|
static final _$suggestID = $grpc.ClientMethod<$57.SuggestSiteIDRequest, $57.SuggestSiteIDResult>(
|
|
'/api.SiteService/SuggestID',
|
|
($57.SuggestSiteIDRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $57.SuggestSiteIDResult.fromBuffer(value));
|
|
static final _$getAvailableSlots = $grpc.ClientMethod<$57.GetAvailableSlotsRequest, $57.GetAvailableSlotsResponse>(
|
|
'/api.SiteService/GetAvailableSlots',
|
|
($57.GetAvailableSlotsRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $57.GetAvailableSlotsResponse.fromBuffer(value));
|
|
static final _$listUserSites = $grpc.ClientMethod<$57.ListUserSitesRequest, $57.ListUserSitesResponse>(
|
|
'/api.SiteService/ListUserSites',
|
|
($57.ListUserSitesRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $57.ListUserSitesResponse.fromBuffer(value));
|
|
static final _$bookAppointment = $grpc.ClientMethod<$57.BookAppointmentRequest, $57.BookAppointmentResponse>(
|
|
'/api.SiteService/BookAppointment',
|
|
($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(),
|
|
($core.List<$core.int> value) => $57.CancelAppointmentResponse.fromBuffer(value));
|
|
|
|
SiteServiceClient(super.channel, {super.options, super.interceptors});
|
|
|
|
$grpc.ResponseFuture<$57.CreateSiteResponse> create($57.CreateSiteRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$create, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$57.GetSiteResponse> get($57.GetSiteRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$get, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$57.ListSiteResponse> list($57.ListSiteRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$list, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$57.UpdateSiteResponse> update($57.UpdateSiteRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$update, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$57.DeleteSiteResponse> delete($57.DeleteSiteRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$delete, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$57.SuggestSiteIDResult> suggestID($57.SuggestSiteIDRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$suggestID, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$57.GetAvailableSlotsResponse> getAvailableSlots($57.GetAvailableSlotsRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$getAvailableSlots, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$57.ListUserSitesResponse> listUserSites($57.ListUserSitesRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$listUserSites, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$57.BookAppointmentResponse> bookAppointment($57.BookAppointmentRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$bookAppointment, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$57.CancelAppointmentResponse> cancelAppointment($57.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<$57.CreateSiteRequest, $57.CreateSiteResponse>(
|
|
'Create',
|
|
create_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $57.CreateSiteRequest.fromBuffer(value),
|
|
($57.CreateSiteResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$57.GetSiteRequest, $57.GetSiteResponse>(
|
|
'Get',
|
|
get_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $57.GetSiteRequest.fromBuffer(value),
|
|
($57.GetSiteResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$57.ListSiteRequest, $57.ListSiteResponse>(
|
|
'List',
|
|
list_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $57.ListSiteRequest.fromBuffer(value),
|
|
($57.ListSiteResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$57.UpdateSiteRequest, $57.UpdateSiteResponse>(
|
|
'Update',
|
|
update_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $57.UpdateSiteRequest.fromBuffer(value),
|
|
($57.UpdateSiteResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$57.DeleteSiteRequest, $57.DeleteSiteResponse>(
|
|
'Delete',
|
|
delete_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $57.DeleteSiteRequest.fromBuffer(value),
|
|
($57.DeleteSiteResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$57.SuggestSiteIDRequest, $57.SuggestSiteIDResult>(
|
|
'SuggestID',
|
|
suggestID_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $57.SuggestSiteIDRequest.fromBuffer(value),
|
|
($57.SuggestSiteIDResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$57.GetAvailableSlotsRequest, $57.GetAvailableSlotsResponse>(
|
|
'GetAvailableSlots',
|
|
getAvailableSlots_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $57.GetAvailableSlotsRequest.fromBuffer(value),
|
|
($57.GetAvailableSlotsResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$57.ListUserSitesRequest, $57.ListUserSitesResponse>(
|
|
'ListUserSites',
|
|
listUserSites_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $57.ListUserSitesRequest.fromBuffer(value),
|
|
($57.ListUserSitesResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$57.BookAppointmentRequest, $57.BookAppointmentResponse>(
|
|
'BookAppointment',
|
|
bookAppointment_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,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $57.CancelAppointmentRequest.fromBuffer(value),
|
|
($57.CancelAppointmentResponse value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$57.CreateSiteResponse> create_Pre($grpc.ServiceCall $call, $async.Future<$57.CreateSiteRequest> $request) async {
|
|
return create($call, await $request);
|
|
}
|
|
|
|
$async.Future<$57.GetSiteResponse> get_Pre($grpc.ServiceCall $call, $async.Future<$57.GetSiteRequest> $request) async {
|
|
return get($call, await $request);
|
|
}
|
|
|
|
$async.Future<$57.ListSiteResponse> list_Pre($grpc.ServiceCall $call, $async.Future<$57.ListSiteRequest> $request) async {
|
|
return list($call, await $request);
|
|
}
|
|
|
|
$async.Future<$57.UpdateSiteResponse> update_Pre($grpc.ServiceCall $call, $async.Future<$57.UpdateSiteRequest> $request) async {
|
|
return update($call, await $request);
|
|
}
|
|
|
|
$async.Future<$57.DeleteSiteResponse> delete_Pre($grpc.ServiceCall $call, $async.Future<$57.DeleteSiteRequest> $request) async {
|
|
return delete($call, await $request);
|
|
}
|
|
|
|
$async.Future<$57.SuggestSiteIDResult> suggestID_Pre($grpc.ServiceCall $call, $async.Future<$57.SuggestSiteIDRequest> $request) async {
|
|
return suggestID($call, await $request);
|
|
}
|
|
|
|
$async.Future<$57.GetAvailableSlotsResponse> getAvailableSlots_Pre($grpc.ServiceCall $call, $async.Future<$57.GetAvailableSlotsRequest> $request) async {
|
|
return getAvailableSlots($call, await $request);
|
|
}
|
|
|
|
$async.Future<$57.ListUserSitesResponse> listUserSites_Pre($grpc.ServiceCall $call, $async.Future<$57.ListUserSitesRequest> $request) async {
|
|
return listUserSites($call, await $request);
|
|
}
|
|
|
|
$async.Future<$57.BookAppointmentResponse> bookAppointment_Pre($grpc.ServiceCall $call, $async.Future<$57.BookAppointmentRequest> $request) async {
|
|
return bookAppointment($call, await $request);
|
|
}
|
|
|
|
$async.Future<$57.CancelAppointmentResponse> cancelAppointment_Pre($grpc.ServiceCall $call, $async.Future<$57.CancelAppointmentRequest> $request) async {
|
|
return cancelAppointment($call, await $request);
|
|
}
|
|
|
|
$async.Future<$57.CreateSiteResponse> create($grpc.ServiceCall call, $57.CreateSiteRequest request);
|
|
$async.Future<$57.GetSiteResponse> get($grpc.ServiceCall call, $57.GetSiteRequest request);
|
|
$async.Future<$57.ListSiteResponse> list($grpc.ServiceCall call, $57.ListSiteRequest request);
|
|
$async.Future<$57.UpdateSiteResponse> update($grpc.ServiceCall call, $57.UpdateSiteRequest request);
|
|
$async.Future<$57.DeleteSiteResponse> delete($grpc.ServiceCall call, $57.DeleteSiteRequest request);
|
|
$async.Future<$57.SuggestSiteIDResult> suggestID($grpc.ServiceCall call, $57.SuggestSiteIDRequest request);
|
|
$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.CancelAppointmentResponse> cancelAppointment($grpc.ServiceCall call, $57.CancelAppointmentRequest request);
|
|
}
|