//
//  Generated code. Do not modify.
//  source: project-lifecycle.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 'project-lifecycle.pb.dart' as $20;

export 'project-lifecycle.pb.dart';

@$pb.GrpcServiceName('api.ProjectLifecycleService')
class ProjectLifecycleServiceClient extends $grpc.Client {
  static final _$setTaskRule = $grpc.ClientMethod<$20.SetTaskRuleRequest, $20.SetTaskRuleResponse>(
      '/api.ProjectLifecycleService/SetTaskRule',
      ($20.SetTaskRuleRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $20.SetTaskRuleResponse.fromBuffer(value));
  static final _$getTask = $grpc.ClientMethod<$20.GetTaskRequest, $20.GetTaskResponse>(
      '/api.ProjectLifecycleService/GetTask',
      ($20.GetTaskRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $20.GetTaskResponse.fromBuffer(value));
  static final _$listTasks = $grpc.ClientMethod<$20.ListTasksRequest, $20.ListTasksResponse>(
      '/api.ProjectLifecycleService/ListTasks',
      ($20.ListTasksRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $20.ListTasksResponse.fromBuffer(value));
  static final _$setTaskStatus = $grpc.ClientMethod<$20.SetTaskStatusRequest, $20.SetTaskStatusResponse>(
      '/api.ProjectLifecycleService/SetTaskStatus',
      ($20.SetTaskStatusRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $20.SetTaskStatusResponse.fromBuffer(value));
  static final _$setTaskExecutedAt = $grpc.ClientMethod<$20.SetTaskExecutedAtRequest, $20.SetTaskExecutedAtResponse>(
      '/api.ProjectLifecycleService/SetTaskExecutedAt',
      ($20.SetTaskExecutedAtRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $20.SetTaskExecutedAtResponse.fromBuffer(value));
  static final _$setTaskNextRunAt = $grpc.ClientMethod<$20.SetTaskNextRunAtRequest, $20.SetTaskNextRunAtResponse>(
      '/api.ProjectLifecycleService/SetTaskNextRunAt',
      ($20.SetTaskNextRunAtRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $20.SetTaskNextRunAtResponse.fromBuffer(value));

  ProjectLifecycleServiceClient($grpc.ClientChannel channel,
      {$grpc.CallOptions? options,
      $core.Iterable<$grpc.ClientInterceptor>? interceptors})
      : super(channel, options: options,
        interceptors: interceptors);

  $grpc.ResponseFuture<$20.SetTaskRuleResponse> setTaskRule($20.SetTaskRuleRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$setTaskRule, request, options: options);
  }

  $grpc.ResponseFuture<$20.GetTaskResponse> getTask($20.GetTaskRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getTask, request, options: options);
  }

  $grpc.ResponseFuture<$20.ListTasksResponse> listTasks($20.ListTasksRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$listTasks, request, options: options);
  }

  $grpc.ResponseFuture<$20.SetTaskStatusResponse> setTaskStatus($20.SetTaskStatusRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$setTaskStatus, request, options: options);
  }

  $grpc.ResponseFuture<$20.SetTaskExecutedAtResponse> setTaskExecutedAt($20.SetTaskExecutedAtRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$setTaskExecutedAt, request, options: options);
  }

  $grpc.ResponseFuture<$20.SetTaskNextRunAtResponse> setTaskNextRunAt($20.SetTaskNextRunAtRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$setTaskNextRunAt, request, options: options);
  }
}

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

  ProjectLifecycleServiceBase() {
    $addMethod($grpc.ServiceMethod<$20.SetTaskRuleRequest, $20.SetTaskRuleResponse>(
        'SetTaskRule',
        setTaskRule_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $20.SetTaskRuleRequest.fromBuffer(value),
        ($20.SetTaskRuleResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$20.GetTaskRequest, $20.GetTaskResponse>(
        'GetTask',
        getTask_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $20.GetTaskRequest.fromBuffer(value),
        ($20.GetTaskResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$20.ListTasksRequest, $20.ListTasksResponse>(
        'ListTasks',
        listTasks_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $20.ListTasksRequest.fromBuffer(value),
        ($20.ListTasksResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$20.SetTaskStatusRequest, $20.SetTaskStatusResponse>(
        'SetTaskStatus',
        setTaskStatus_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $20.SetTaskStatusRequest.fromBuffer(value),
        ($20.SetTaskStatusResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$20.SetTaskExecutedAtRequest, $20.SetTaskExecutedAtResponse>(
        'SetTaskExecutedAt',
        setTaskExecutedAt_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $20.SetTaskExecutedAtRequest.fromBuffer(value),
        ($20.SetTaskExecutedAtResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$20.SetTaskNextRunAtRequest, $20.SetTaskNextRunAtResponse>(
        'SetTaskNextRunAt',
        setTaskNextRunAt_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $20.SetTaskNextRunAtRequest.fromBuffer(value),
        ($20.SetTaskNextRunAtResponse value) => value.writeToBuffer()));
  }

  $async.Future<$20.SetTaskRuleResponse> setTaskRule_Pre($grpc.ServiceCall $call, $async.Future<$20.SetTaskRuleRequest> $request) async {
    return setTaskRule($call, await $request);
  }

  $async.Future<$20.GetTaskResponse> getTask_Pre($grpc.ServiceCall $call, $async.Future<$20.GetTaskRequest> $request) async {
    return getTask($call, await $request);
  }

  $async.Future<$20.ListTasksResponse> listTasks_Pre($grpc.ServiceCall $call, $async.Future<$20.ListTasksRequest> $request) async {
    return listTasks($call, await $request);
  }

  $async.Future<$20.SetTaskStatusResponse> setTaskStatus_Pre($grpc.ServiceCall $call, $async.Future<$20.SetTaskStatusRequest> $request) async {
    return setTaskStatus($call, await $request);
  }

  $async.Future<$20.SetTaskExecutedAtResponse> setTaskExecutedAt_Pre($grpc.ServiceCall $call, $async.Future<$20.SetTaskExecutedAtRequest> $request) async {
    return setTaskExecutedAt($call, await $request);
  }

  $async.Future<$20.SetTaskNextRunAtResponse> setTaskNextRunAt_Pre($grpc.ServiceCall $call, $async.Future<$20.SetTaskNextRunAtRequest> $request) async {
    return setTaskNextRunAt($call, await $request);
  }

  $async.Future<$20.SetTaskRuleResponse> setTaskRule($grpc.ServiceCall call, $20.SetTaskRuleRequest request);
  $async.Future<$20.GetTaskResponse> getTask($grpc.ServiceCall call, $20.GetTaskRequest request);
  $async.Future<$20.ListTasksResponse> listTasks($grpc.ServiceCall call, $20.ListTasksRequest request);
  $async.Future<$20.SetTaskStatusResponse> setTaskStatus($grpc.ServiceCall call, $20.SetTaskStatusRequest request);
  $async.Future<$20.SetTaskExecutedAtResponse> setTaskExecutedAt($grpc.ServiceCall call, $20.SetTaskExecutedAtRequest request);
  $async.Future<$20.SetTaskNextRunAtResponse> setTaskNextRunAt($grpc.ServiceCall call, $20.SetTaskNextRunAtRequest request);
}
