You've already forked dart-core-sdk
362 lines
17 KiB
Dart
362 lines
17 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from 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 $0;
|
|
|
|
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 = [
|
|
'',
|
|
];
|
|
|
|
SiteServiceClient(super.channel, {super.options, super.interceptors});
|
|
|
|
$grpc.ResponseFuture<$0.CreateSiteResponse> create($0.CreateSiteRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$create, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.GetSiteResponse> get($0.GetSiteRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$get, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.ListSiteResponse> list($0.ListSiteRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$list, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.UpdateSiteResponse> update($0.UpdateSiteRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$update, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.DeleteSiteResponse> delete($0.DeleteSiteRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$delete, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.SuggestSiteIDResult> suggestID($0.SuggestSiteIDRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$suggestID, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.GetAvailableSlotsResponse> getAvailableSlots($0.GetAvailableSlotsRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$getAvailableSlots, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.GetAvailableSlotsResponse> getAllSlots($0.GetAvailableSlotsRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$getAllSlots, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.ListUserSitesResponse> listUserSites($0.ListUserSitesRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$listUserSites, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.BookAppointmentResponse> bookAppointment($0.BookAppointmentRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$bookAppointment, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.BookAppointmentResponse> forceBookAppointment($0.BookAppointmentRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$forceBookAppointment, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.BookAppointmentResponse> wMSForceBookAppointment($0.WMSBookAppointmentRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$wMSForceBookAppointment, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.CancelAppointmentResponse> cancelAppointment($0.CancelAppointmentRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$cancelAppointment, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.UpdateSiteStatusResult> updateStatus($0.UpdateSiteStatusRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$updateStatus, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.DeleteSiteInDBResult> deleteSiteInDB($0.DeleteSiteInDBRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$deleteSiteInDB, request, options: options);
|
|
}
|
|
|
|
// method descriptors
|
|
|
|
static final _$create = $grpc.ClientMethod<$0.CreateSiteRequest, $0.CreateSiteResponse>(
|
|
'/api.SiteService/Create',
|
|
($0.CreateSiteRequest value) => value.writeToBuffer(),
|
|
$0.CreateSiteResponse.fromBuffer);
|
|
static final _$get = $grpc.ClientMethod<$0.GetSiteRequest, $0.GetSiteResponse>(
|
|
'/api.SiteService/Get',
|
|
($0.GetSiteRequest value) => value.writeToBuffer(),
|
|
$0.GetSiteResponse.fromBuffer);
|
|
static final _$list = $grpc.ClientMethod<$0.ListSiteRequest, $0.ListSiteResponse>(
|
|
'/api.SiteService/List',
|
|
($0.ListSiteRequest value) => value.writeToBuffer(),
|
|
$0.ListSiteResponse.fromBuffer);
|
|
static final _$update = $grpc.ClientMethod<$0.UpdateSiteRequest, $0.UpdateSiteResponse>(
|
|
'/api.SiteService/Update',
|
|
($0.UpdateSiteRequest value) => value.writeToBuffer(),
|
|
$0.UpdateSiteResponse.fromBuffer);
|
|
static final _$delete = $grpc.ClientMethod<$0.DeleteSiteRequest, $0.DeleteSiteResponse>(
|
|
'/api.SiteService/Delete',
|
|
($0.DeleteSiteRequest value) => value.writeToBuffer(),
|
|
$0.DeleteSiteResponse.fromBuffer);
|
|
static final _$suggestID = $grpc.ClientMethod<$0.SuggestSiteIDRequest, $0.SuggestSiteIDResult>(
|
|
'/api.SiteService/SuggestID',
|
|
($0.SuggestSiteIDRequest value) => value.writeToBuffer(),
|
|
$0.SuggestSiteIDResult.fromBuffer);
|
|
static final _$getAvailableSlots = $grpc.ClientMethod<$0.GetAvailableSlotsRequest, $0.GetAvailableSlotsResponse>(
|
|
'/api.SiteService/GetAvailableSlots',
|
|
($0.GetAvailableSlotsRequest value) => value.writeToBuffer(),
|
|
$0.GetAvailableSlotsResponse.fromBuffer);
|
|
static final _$getAllSlots = $grpc.ClientMethod<$0.GetAvailableSlotsRequest, $0.GetAvailableSlotsResponse>(
|
|
'/api.SiteService/GetAllSlots',
|
|
($0.GetAvailableSlotsRequest value) => value.writeToBuffer(),
|
|
$0.GetAvailableSlotsResponse.fromBuffer);
|
|
static final _$listUserSites = $grpc.ClientMethod<$0.ListUserSitesRequest, $0.ListUserSitesResponse>(
|
|
'/api.SiteService/ListUserSites',
|
|
($0.ListUserSitesRequest value) => value.writeToBuffer(),
|
|
$0.ListUserSitesResponse.fromBuffer);
|
|
static final _$bookAppointment = $grpc.ClientMethod<$0.BookAppointmentRequest, $0.BookAppointmentResponse>(
|
|
'/api.SiteService/BookAppointment',
|
|
($0.BookAppointmentRequest value) => value.writeToBuffer(),
|
|
$0.BookAppointmentResponse.fromBuffer);
|
|
static final _$forceBookAppointment = $grpc.ClientMethod<$0.BookAppointmentRequest, $0.BookAppointmentResponse>(
|
|
'/api.SiteService/ForceBookAppointment',
|
|
($0.BookAppointmentRequest value) => value.writeToBuffer(),
|
|
$0.BookAppointmentResponse.fromBuffer);
|
|
static final _$wMSForceBookAppointment = $grpc.ClientMethod<$0.WMSBookAppointmentRequest, $0.BookAppointmentResponse>(
|
|
'/api.SiteService/WMSForceBookAppointment',
|
|
($0.WMSBookAppointmentRequest value) => value.writeToBuffer(),
|
|
$0.BookAppointmentResponse.fromBuffer);
|
|
static final _$cancelAppointment = $grpc.ClientMethod<$0.CancelAppointmentRequest, $0.CancelAppointmentResponse>(
|
|
'/api.SiteService/CancelAppointment',
|
|
($0.CancelAppointmentRequest value) => value.writeToBuffer(),
|
|
$0.CancelAppointmentResponse.fromBuffer);
|
|
static final _$updateStatus = $grpc.ClientMethod<$0.UpdateSiteStatusRequest, $0.UpdateSiteStatusResult>(
|
|
'/api.SiteService/UpdateStatus',
|
|
($0.UpdateSiteStatusRequest value) => value.writeToBuffer(),
|
|
$0.UpdateSiteStatusResult.fromBuffer);
|
|
static final _$deleteSiteInDB = $grpc.ClientMethod<$0.DeleteSiteInDBRequest, $0.DeleteSiteInDBResult>(
|
|
'/api.SiteService/DeleteSiteInDB',
|
|
($0.DeleteSiteInDBRequest value) => value.writeToBuffer(),
|
|
$0.DeleteSiteInDBResult.fromBuffer);
|
|
}
|
|
|
|
@$pb.GrpcServiceName('api.SiteService')
|
|
abstract class SiteServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'api.SiteService';
|
|
|
|
SiteServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$0.CreateSiteRequest, $0.CreateSiteResponse>(
|
|
'Create',
|
|
create_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.CreateSiteRequest.fromBuffer(value),
|
|
($0.CreateSiteResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.GetSiteRequest, $0.GetSiteResponse>(
|
|
'Get',
|
|
get_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.GetSiteRequest.fromBuffer(value),
|
|
($0.GetSiteResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.ListSiteRequest, $0.ListSiteResponse>(
|
|
'List',
|
|
list_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.ListSiteRequest.fromBuffer(value),
|
|
($0.ListSiteResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.UpdateSiteRequest, $0.UpdateSiteResponse>(
|
|
'Update',
|
|
update_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.UpdateSiteRequest.fromBuffer(value),
|
|
($0.UpdateSiteResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.DeleteSiteRequest, $0.DeleteSiteResponse>(
|
|
'Delete',
|
|
delete_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.DeleteSiteRequest.fromBuffer(value),
|
|
($0.DeleteSiteResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.SuggestSiteIDRequest, $0.SuggestSiteIDResult>(
|
|
'SuggestID',
|
|
suggestID_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.SuggestSiteIDRequest.fromBuffer(value),
|
|
($0.SuggestSiteIDResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.GetAvailableSlotsRequest, $0.GetAvailableSlotsResponse>(
|
|
'GetAvailableSlots',
|
|
getAvailableSlots_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.GetAvailableSlotsRequest.fromBuffer(value),
|
|
($0.GetAvailableSlotsResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.GetAvailableSlotsRequest, $0.GetAvailableSlotsResponse>(
|
|
'GetAllSlots',
|
|
getAllSlots_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.GetAvailableSlotsRequest.fromBuffer(value),
|
|
($0.GetAvailableSlotsResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.ListUserSitesRequest, $0.ListUserSitesResponse>(
|
|
'ListUserSites',
|
|
listUserSites_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.ListUserSitesRequest.fromBuffer(value),
|
|
($0.ListUserSitesResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.BookAppointmentRequest, $0.BookAppointmentResponse>(
|
|
'BookAppointment',
|
|
bookAppointment_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.BookAppointmentRequest.fromBuffer(value),
|
|
($0.BookAppointmentResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.BookAppointmentRequest, $0.BookAppointmentResponse>(
|
|
'ForceBookAppointment',
|
|
forceBookAppointment_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.BookAppointmentRequest.fromBuffer(value),
|
|
($0.BookAppointmentResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.WMSBookAppointmentRequest, $0.BookAppointmentResponse>(
|
|
'WMSForceBookAppointment',
|
|
wMSForceBookAppointment_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.WMSBookAppointmentRequest.fromBuffer(value),
|
|
($0.BookAppointmentResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.CancelAppointmentRequest, $0.CancelAppointmentResponse>(
|
|
'CancelAppointment',
|
|
cancelAppointment_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.CancelAppointmentRequest.fromBuffer(value),
|
|
($0.CancelAppointmentResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.UpdateSiteStatusRequest, $0.UpdateSiteStatusResult>(
|
|
'UpdateStatus',
|
|
updateStatus_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.UpdateSiteStatusRequest.fromBuffer(value),
|
|
($0.UpdateSiteStatusResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.DeleteSiteInDBRequest, $0.DeleteSiteInDBResult>(
|
|
'DeleteSiteInDB',
|
|
deleteSiteInDB_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.DeleteSiteInDBRequest.fromBuffer(value),
|
|
($0.DeleteSiteInDBResult value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$0.CreateSiteResponse> create_Pre($grpc.ServiceCall $call, $async.Future<$0.CreateSiteRequest> $request) async {
|
|
return create($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.CreateSiteResponse> create($grpc.ServiceCall call, $0.CreateSiteRequest request);
|
|
|
|
$async.Future<$0.GetSiteResponse> get_Pre($grpc.ServiceCall $call, $async.Future<$0.GetSiteRequest> $request) async {
|
|
return get($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.GetSiteResponse> get($grpc.ServiceCall call, $0.GetSiteRequest request);
|
|
|
|
$async.Future<$0.ListSiteResponse> list_Pre($grpc.ServiceCall $call, $async.Future<$0.ListSiteRequest> $request) async {
|
|
return list($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.ListSiteResponse> list($grpc.ServiceCall call, $0.ListSiteRequest request);
|
|
|
|
$async.Future<$0.UpdateSiteResponse> update_Pre($grpc.ServiceCall $call, $async.Future<$0.UpdateSiteRequest> $request) async {
|
|
return update($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.UpdateSiteResponse> update($grpc.ServiceCall call, $0.UpdateSiteRequest request);
|
|
|
|
$async.Future<$0.DeleteSiteResponse> delete_Pre($grpc.ServiceCall $call, $async.Future<$0.DeleteSiteRequest> $request) async {
|
|
return delete($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.DeleteSiteResponse> delete($grpc.ServiceCall call, $0.DeleteSiteRequest request);
|
|
|
|
$async.Future<$0.SuggestSiteIDResult> suggestID_Pre($grpc.ServiceCall $call, $async.Future<$0.SuggestSiteIDRequest> $request) async {
|
|
return suggestID($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.SuggestSiteIDResult> suggestID($grpc.ServiceCall call, $0.SuggestSiteIDRequest request);
|
|
|
|
$async.Future<$0.GetAvailableSlotsResponse> getAvailableSlots_Pre($grpc.ServiceCall $call, $async.Future<$0.GetAvailableSlotsRequest> $request) async {
|
|
return getAvailableSlots($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.GetAvailableSlotsResponse> getAvailableSlots($grpc.ServiceCall call, $0.GetAvailableSlotsRequest request);
|
|
|
|
$async.Future<$0.GetAvailableSlotsResponse> getAllSlots_Pre($grpc.ServiceCall $call, $async.Future<$0.GetAvailableSlotsRequest> $request) async {
|
|
return getAllSlots($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.GetAvailableSlotsResponse> getAllSlots($grpc.ServiceCall call, $0.GetAvailableSlotsRequest request);
|
|
|
|
$async.Future<$0.ListUserSitesResponse> listUserSites_Pre($grpc.ServiceCall $call, $async.Future<$0.ListUserSitesRequest> $request) async {
|
|
return listUserSites($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.ListUserSitesResponse> listUserSites($grpc.ServiceCall call, $0.ListUserSitesRequest request);
|
|
|
|
$async.Future<$0.BookAppointmentResponse> bookAppointment_Pre($grpc.ServiceCall $call, $async.Future<$0.BookAppointmentRequest> $request) async {
|
|
return bookAppointment($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.BookAppointmentResponse> bookAppointment($grpc.ServiceCall call, $0.BookAppointmentRequest request);
|
|
|
|
$async.Future<$0.BookAppointmentResponse> forceBookAppointment_Pre($grpc.ServiceCall $call, $async.Future<$0.BookAppointmentRequest> $request) async {
|
|
return forceBookAppointment($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.BookAppointmentResponse> forceBookAppointment($grpc.ServiceCall call, $0.BookAppointmentRequest request);
|
|
|
|
$async.Future<$0.BookAppointmentResponse> wMSForceBookAppointment_Pre($grpc.ServiceCall $call, $async.Future<$0.WMSBookAppointmentRequest> $request) async {
|
|
return wMSForceBookAppointment($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.BookAppointmentResponse> wMSForceBookAppointment($grpc.ServiceCall call, $0.WMSBookAppointmentRequest request);
|
|
|
|
$async.Future<$0.CancelAppointmentResponse> cancelAppointment_Pre($grpc.ServiceCall $call, $async.Future<$0.CancelAppointmentRequest> $request) async {
|
|
return cancelAppointment($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.CancelAppointmentResponse> cancelAppointment($grpc.ServiceCall call, $0.CancelAppointmentRequest request);
|
|
|
|
$async.Future<$0.UpdateSiteStatusResult> updateStatus_Pre($grpc.ServiceCall $call, $async.Future<$0.UpdateSiteStatusRequest> $request) async {
|
|
return updateStatus($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.UpdateSiteStatusResult> updateStatus($grpc.ServiceCall call, $0.UpdateSiteStatusRequest request);
|
|
|
|
$async.Future<$0.DeleteSiteInDBResult> deleteSiteInDB_Pre($grpc.ServiceCall $call, $async.Future<$0.DeleteSiteInDBRequest> $request) async {
|
|
return deleteSiteInDB($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.DeleteSiteInDBResult> deleteSiteInDB($grpc.ServiceCall call, $0.DeleteSiteInDBRequest request);
|
|
|
|
}
|