// This is a generated file - do not edit.
//
// Generated from calendar.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 'calendar.pb.dart' as $0;

export 'calendar.pb.dart';

@$pb.GrpcServiceName('api.CalendarService')
class CalendarServiceClient 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 = [
    '',
  ];

  CalendarServiceClient(super.channel, {super.options, super.interceptors});

  $grpc.ResponseFuture<$0.CreateOnOrganisationResponse> createOnOrganisation($0.CreateOnOrganisationRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$createOnOrganisation, request, options: options);
  }

  $grpc.ResponseFuture<$0.GetOnOrganisationResponse> getOnOrganisation($0.GetOnOrganisationRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$getOnOrganisation, request, options: options);
  }

  $grpc.ResponseFuture<$0.ListOnOrganisationResponse> listOnOrganisation($0.ListOnOrganisationRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$listOnOrganisation, request, options: options);
  }

  $grpc.ResponseFuture<$0.UpdateOnOrganisationResponse> updateOnOrganisation($0.UpdateOnOrganisationRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$updateOnOrganisation, request, options: options);
  }

  $grpc.ResponseFuture<$0.DeleteOnOrganisationResponse> deleteOnOrganisation($0.DeleteOnOrganisationRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$deleteOnOrganisation, request, options: options);
  }

  $grpc.ResponseFuture<$0.DeleteAllForOrganisationResponse> deleteAllForOrganisation($0.DeleteAllForOrganisationRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$deleteAllForOrganisation, request, options: options);
  }

  $grpc.ResponseFuture<$0.DeleteAllForProjectResponse> deleteAllForProject($0.DeleteAllForProjectRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$deleteAllForProject, request, options: options);
  }

  $grpc.ResponseFuture<$0.ComputeSLAPeriodResponse> computeSLAPeriodOnOrganisation($0.ComputeSLAPeriodOnOrganisationRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$computeSLAPeriodOnOrganisation, request, options: options);
  }

  $grpc.ResponseFuture<$0.CreateOnSiteResponse> createOnSite($0.CreateOnSiteRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$createOnSite, request, options: options);
  }

  $grpc.ResponseFuture<$0.GetOnSiteResponse> getOnSite($0.GetOnSiteRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$getOnSite, request, options: options);
  }

  $grpc.ResponseFuture<$0.ListOnSiteResponse> listOnSite($0.ListOnSiteRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$listOnSite, request, options: options);
  }

  $grpc.ResponseFuture<$0.UpdateOnSiteResponse> updateOnSite($0.UpdateOnSiteRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$updateOnSite, request, options: options);
  }

  $grpc.ResponseFuture<$0.DeleteOnSiteResponse> deleteOnSite($0.DeleteOnSiteRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$deleteOnSite, request, options: options);
  }

  $grpc.ResponseFuture<$0.GetPublicHolidaysResponse> getPublicHolidays($0.GetPublicHolidaysRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$getPublicHolidays, request, options: options);
  }

  $grpc.ResponseFuture<$0.ComputeSLAPeriodResponse> computeSLAPeriodOnSite($0.ComputeSLAPeriodOnSiteRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$computeSLAPeriodOnSite, request, options: options);
  }

    // method descriptors

  static final _$createOnOrganisation = $grpc.ClientMethod<$0.CreateOnOrganisationRequest, $0.CreateOnOrganisationResponse>(
      '/api.CalendarService/CreateOnOrganisation',
      ($0.CreateOnOrganisationRequest value) => value.writeToBuffer(),
      $0.CreateOnOrganisationResponse.fromBuffer);
  static final _$getOnOrganisation = $grpc.ClientMethod<$0.GetOnOrganisationRequest, $0.GetOnOrganisationResponse>(
      '/api.CalendarService/GetOnOrganisation',
      ($0.GetOnOrganisationRequest value) => value.writeToBuffer(),
      $0.GetOnOrganisationResponse.fromBuffer);
  static final _$listOnOrganisation = $grpc.ClientMethod<$0.ListOnOrganisationRequest, $0.ListOnOrganisationResponse>(
      '/api.CalendarService/ListOnOrganisation',
      ($0.ListOnOrganisationRequest value) => value.writeToBuffer(),
      $0.ListOnOrganisationResponse.fromBuffer);
  static final _$updateOnOrganisation = $grpc.ClientMethod<$0.UpdateOnOrganisationRequest, $0.UpdateOnOrganisationResponse>(
      '/api.CalendarService/UpdateOnOrganisation',
      ($0.UpdateOnOrganisationRequest value) => value.writeToBuffer(),
      $0.UpdateOnOrganisationResponse.fromBuffer);
  static final _$deleteOnOrganisation = $grpc.ClientMethod<$0.DeleteOnOrganisationRequest, $0.DeleteOnOrganisationResponse>(
      '/api.CalendarService/DeleteOnOrganisation',
      ($0.DeleteOnOrganisationRequest value) => value.writeToBuffer(),
      $0.DeleteOnOrganisationResponse.fromBuffer);
  static final _$deleteAllForOrganisation = $grpc.ClientMethod<$0.DeleteAllForOrganisationRequest, $0.DeleteAllForOrganisationResponse>(
      '/api.CalendarService/DeleteAllForOrganisation',
      ($0.DeleteAllForOrganisationRequest value) => value.writeToBuffer(),
      $0.DeleteAllForOrganisationResponse.fromBuffer);
  static final _$deleteAllForProject = $grpc.ClientMethod<$0.DeleteAllForProjectRequest, $0.DeleteAllForProjectResponse>(
      '/api.CalendarService/DeleteAllForProject',
      ($0.DeleteAllForProjectRequest value) => value.writeToBuffer(),
      $0.DeleteAllForProjectResponse.fromBuffer);
  static final _$computeSLAPeriodOnOrganisation = $grpc.ClientMethod<$0.ComputeSLAPeriodOnOrganisationRequest, $0.ComputeSLAPeriodResponse>(
      '/api.CalendarService/ComputeSLAPeriodOnOrganisation',
      ($0.ComputeSLAPeriodOnOrganisationRequest value) => value.writeToBuffer(),
      $0.ComputeSLAPeriodResponse.fromBuffer);
  static final _$createOnSite = $grpc.ClientMethod<$0.CreateOnSiteRequest, $0.CreateOnSiteResponse>(
      '/api.CalendarService/CreateOnSite',
      ($0.CreateOnSiteRequest value) => value.writeToBuffer(),
      $0.CreateOnSiteResponse.fromBuffer);
  static final _$getOnSite = $grpc.ClientMethod<$0.GetOnSiteRequest, $0.GetOnSiteResponse>(
      '/api.CalendarService/GetOnSite',
      ($0.GetOnSiteRequest value) => value.writeToBuffer(),
      $0.GetOnSiteResponse.fromBuffer);
  static final _$listOnSite = $grpc.ClientMethod<$0.ListOnSiteRequest, $0.ListOnSiteResponse>(
      '/api.CalendarService/ListOnSite',
      ($0.ListOnSiteRequest value) => value.writeToBuffer(),
      $0.ListOnSiteResponse.fromBuffer);
  static final _$updateOnSite = $grpc.ClientMethod<$0.UpdateOnSiteRequest, $0.UpdateOnSiteResponse>(
      '/api.CalendarService/UpdateOnSite',
      ($0.UpdateOnSiteRequest value) => value.writeToBuffer(),
      $0.UpdateOnSiteResponse.fromBuffer);
  static final _$deleteOnSite = $grpc.ClientMethod<$0.DeleteOnSiteRequest, $0.DeleteOnSiteResponse>(
      '/api.CalendarService/DeleteOnSite',
      ($0.DeleteOnSiteRequest value) => value.writeToBuffer(),
      $0.DeleteOnSiteResponse.fromBuffer);
  static final _$getPublicHolidays = $grpc.ClientMethod<$0.GetPublicHolidaysRequest, $0.GetPublicHolidaysResponse>(
      '/api.CalendarService/GetPublicHolidays',
      ($0.GetPublicHolidaysRequest value) => value.writeToBuffer(),
      $0.GetPublicHolidaysResponse.fromBuffer);
  static final _$computeSLAPeriodOnSite = $grpc.ClientMethod<$0.ComputeSLAPeriodOnSiteRequest, $0.ComputeSLAPeriodResponse>(
      '/api.CalendarService/ComputeSLAPeriodOnSite',
      ($0.ComputeSLAPeriodOnSiteRequest value) => value.writeToBuffer(),
      $0.ComputeSLAPeriodResponse.fromBuffer);
}

@$pb.GrpcServiceName('api.CalendarService')
abstract class CalendarServiceBase extends $grpc.Service {
  $core.String get $name => 'api.CalendarService';

  CalendarServiceBase() {
    $addMethod($grpc.ServiceMethod<$0.CreateOnOrganisationRequest, $0.CreateOnOrganisationResponse>(
        'CreateOnOrganisation',
        createOnOrganisation_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.CreateOnOrganisationRequest.fromBuffer(value),
        ($0.CreateOnOrganisationResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.GetOnOrganisationRequest, $0.GetOnOrganisationResponse>(
        'GetOnOrganisation',
        getOnOrganisation_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.GetOnOrganisationRequest.fromBuffer(value),
        ($0.GetOnOrganisationResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.ListOnOrganisationRequest, $0.ListOnOrganisationResponse>(
        'ListOnOrganisation',
        listOnOrganisation_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.ListOnOrganisationRequest.fromBuffer(value),
        ($0.ListOnOrganisationResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.UpdateOnOrganisationRequest, $0.UpdateOnOrganisationResponse>(
        'UpdateOnOrganisation',
        updateOnOrganisation_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.UpdateOnOrganisationRequest.fromBuffer(value),
        ($0.UpdateOnOrganisationResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.DeleteOnOrganisationRequest, $0.DeleteOnOrganisationResponse>(
        'DeleteOnOrganisation',
        deleteOnOrganisation_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.DeleteOnOrganisationRequest.fromBuffer(value),
        ($0.DeleteOnOrganisationResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.DeleteAllForOrganisationRequest, $0.DeleteAllForOrganisationResponse>(
        'DeleteAllForOrganisation',
        deleteAllForOrganisation_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.DeleteAllForOrganisationRequest.fromBuffer(value),
        ($0.DeleteAllForOrganisationResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.DeleteAllForProjectRequest, $0.DeleteAllForProjectResponse>(
        'DeleteAllForProject',
        deleteAllForProject_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.DeleteAllForProjectRequest.fromBuffer(value),
        ($0.DeleteAllForProjectResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.ComputeSLAPeriodOnOrganisationRequest, $0.ComputeSLAPeriodResponse>(
        'ComputeSLAPeriodOnOrganisation',
        computeSLAPeriodOnOrganisation_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.ComputeSLAPeriodOnOrganisationRequest.fromBuffer(value),
        ($0.ComputeSLAPeriodResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.CreateOnSiteRequest, $0.CreateOnSiteResponse>(
        'CreateOnSite',
        createOnSite_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.CreateOnSiteRequest.fromBuffer(value),
        ($0.CreateOnSiteResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.GetOnSiteRequest, $0.GetOnSiteResponse>(
        'GetOnSite',
        getOnSite_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.GetOnSiteRequest.fromBuffer(value),
        ($0.GetOnSiteResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.ListOnSiteRequest, $0.ListOnSiteResponse>(
        'ListOnSite',
        listOnSite_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.ListOnSiteRequest.fromBuffer(value),
        ($0.ListOnSiteResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.UpdateOnSiteRequest, $0.UpdateOnSiteResponse>(
        'UpdateOnSite',
        updateOnSite_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.UpdateOnSiteRequest.fromBuffer(value),
        ($0.UpdateOnSiteResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.DeleteOnSiteRequest, $0.DeleteOnSiteResponse>(
        'DeleteOnSite',
        deleteOnSite_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.DeleteOnSiteRequest.fromBuffer(value),
        ($0.DeleteOnSiteResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.GetPublicHolidaysRequest, $0.GetPublicHolidaysResponse>(
        'GetPublicHolidays',
        getPublicHolidays_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.GetPublicHolidaysRequest.fromBuffer(value),
        ($0.GetPublicHolidaysResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.ComputeSLAPeriodOnSiteRequest, $0.ComputeSLAPeriodResponse>(
        'ComputeSLAPeriodOnSite',
        computeSLAPeriodOnSite_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.ComputeSLAPeriodOnSiteRequest.fromBuffer(value),
        ($0.ComputeSLAPeriodResponse value) => value.writeToBuffer()));
  }

  $async.Future<$0.CreateOnOrganisationResponse> createOnOrganisation_Pre($grpc.ServiceCall $call, $async.Future<$0.CreateOnOrganisationRequest> $request) async {
    return createOnOrganisation($call, await $request);
  }

  $async.Future<$0.CreateOnOrganisationResponse> createOnOrganisation($grpc.ServiceCall call, $0.CreateOnOrganisationRequest request);

  $async.Future<$0.GetOnOrganisationResponse> getOnOrganisation_Pre($grpc.ServiceCall $call, $async.Future<$0.GetOnOrganisationRequest> $request) async {
    return getOnOrganisation($call, await $request);
  }

  $async.Future<$0.GetOnOrganisationResponse> getOnOrganisation($grpc.ServiceCall call, $0.GetOnOrganisationRequest request);

  $async.Future<$0.ListOnOrganisationResponse> listOnOrganisation_Pre($grpc.ServiceCall $call, $async.Future<$0.ListOnOrganisationRequest> $request) async {
    return listOnOrganisation($call, await $request);
  }

  $async.Future<$0.ListOnOrganisationResponse> listOnOrganisation($grpc.ServiceCall call, $0.ListOnOrganisationRequest request);

  $async.Future<$0.UpdateOnOrganisationResponse> updateOnOrganisation_Pre($grpc.ServiceCall $call, $async.Future<$0.UpdateOnOrganisationRequest> $request) async {
    return updateOnOrganisation($call, await $request);
  }

  $async.Future<$0.UpdateOnOrganisationResponse> updateOnOrganisation($grpc.ServiceCall call, $0.UpdateOnOrganisationRequest request);

  $async.Future<$0.DeleteOnOrganisationResponse> deleteOnOrganisation_Pre($grpc.ServiceCall $call, $async.Future<$0.DeleteOnOrganisationRequest> $request) async {
    return deleteOnOrganisation($call, await $request);
  }

  $async.Future<$0.DeleteOnOrganisationResponse> deleteOnOrganisation($grpc.ServiceCall call, $0.DeleteOnOrganisationRequest request);

  $async.Future<$0.DeleteAllForOrganisationResponse> deleteAllForOrganisation_Pre($grpc.ServiceCall $call, $async.Future<$0.DeleteAllForOrganisationRequest> $request) async {
    return deleteAllForOrganisation($call, await $request);
  }

  $async.Future<$0.DeleteAllForOrganisationResponse> deleteAllForOrganisation($grpc.ServiceCall call, $0.DeleteAllForOrganisationRequest request);

  $async.Future<$0.DeleteAllForProjectResponse> deleteAllForProject_Pre($grpc.ServiceCall $call, $async.Future<$0.DeleteAllForProjectRequest> $request) async {
    return deleteAllForProject($call, await $request);
  }

  $async.Future<$0.DeleteAllForProjectResponse> deleteAllForProject($grpc.ServiceCall call, $0.DeleteAllForProjectRequest request);

  $async.Future<$0.ComputeSLAPeriodResponse> computeSLAPeriodOnOrganisation_Pre($grpc.ServiceCall $call, $async.Future<$0.ComputeSLAPeriodOnOrganisationRequest> $request) async {
    return computeSLAPeriodOnOrganisation($call, await $request);
  }

  $async.Future<$0.ComputeSLAPeriodResponse> computeSLAPeriodOnOrganisation($grpc.ServiceCall call, $0.ComputeSLAPeriodOnOrganisationRequest request);

  $async.Future<$0.CreateOnSiteResponse> createOnSite_Pre($grpc.ServiceCall $call, $async.Future<$0.CreateOnSiteRequest> $request) async {
    return createOnSite($call, await $request);
  }

  $async.Future<$0.CreateOnSiteResponse> createOnSite($grpc.ServiceCall call, $0.CreateOnSiteRequest request);

  $async.Future<$0.GetOnSiteResponse> getOnSite_Pre($grpc.ServiceCall $call, $async.Future<$0.GetOnSiteRequest> $request) async {
    return getOnSite($call, await $request);
  }

  $async.Future<$0.GetOnSiteResponse> getOnSite($grpc.ServiceCall call, $0.GetOnSiteRequest request);

  $async.Future<$0.ListOnSiteResponse> listOnSite_Pre($grpc.ServiceCall $call, $async.Future<$0.ListOnSiteRequest> $request) async {
    return listOnSite($call, await $request);
  }

  $async.Future<$0.ListOnSiteResponse> listOnSite($grpc.ServiceCall call, $0.ListOnSiteRequest request);

  $async.Future<$0.UpdateOnSiteResponse> updateOnSite_Pre($grpc.ServiceCall $call, $async.Future<$0.UpdateOnSiteRequest> $request) async {
    return updateOnSite($call, await $request);
  }

  $async.Future<$0.UpdateOnSiteResponse> updateOnSite($grpc.ServiceCall call, $0.UpdateOnSiteRequest request);

  $async.Future<$0.DeleteOnSiteResponse> deleteOnSite_Pre($grpc.ServiceCall $call, $async.Future<$0.DeleteOnSiteRequest> $request) async {
    return deleteOnSite($call, await $request);
  }

  $async.Future<$0.DeleteOnSiteResponse> deleteOnSite($grpc.ServiceCall call, $0.DeleteOnSiteRequest request);

  $async.Future<$0.GetPublicHolidaysResponse> getPublicHolidays_Pre($grpc.ServiceCall $call, $async.Future<$0.GetPublicHolidaysRequest> $request) async {
    return getPublicHolidays($call, await $request);
  }

  $async.Future<$0.GetPublicHolidaysResponse> getPublicHolidays($grpc.ServiceCall call, $0.GetPublicHolidaysRequest request);

  $async.Future<$0.ComputeSLAPeriodResponse> computeSLAPeriodOnSite_Pre($grpc.ServiceCall $call, $async.Future<$0.ComputeSLAPeriodOnSiteRequest> $request) async {
    return computeSLAPeriodOnSite($call, await $request);
  }

  $async.Future<$0.ComputeSLAPeriodResponse> computeSLAPeriodOnSite($grpc.ServiceCall call, $0.ComputeSLAPeriodOnSiteRequest request);

}
