//
//  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 $48;

export 'project-lifecycle.pb.dart';

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

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

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

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

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

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

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

  $grpc.ResponseFuture<$48.SetTaskNextRunAtResponse> setTaskNextRunAt($48.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<$48.SetTaskRuleRequest, $48.SetTaskRuleResponse>(
        'SetTaskRule',
        setTaskRule_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $48.SetTaskRuleRequest.fromBuffer(value),
        ($48.SetTaskRuleResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$48.GetTaskRequest, $48.GetTaskResponse>(
        'GetTask',
        getTask_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $48.GetTaskRequest.fromBuffer(value),
        ($48.GetTaskResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$48.ListTasksRequest, $48.ListTasksResponse>(
        'ListTasks',
        listTasks_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $48.ListTasksRequest.fromBuffer(value),
        ($48.ListTasksResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$48.SetTaskStatusRequest, $48.SetTaskStatusResponse>(
        'SetTaskStatus',
        setTaskStatus_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $48.SetTaskStatusRequest.fromBuffer(value),
        ($48.SetTaskStatusResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$48.SetTaskExecutedAtRequest, $48.SetTaskExecutedAtResponse>(
        'SetTaskExecutedAt',
        setTaskExecutedAt_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $48.SetTaskExecutedAtRequest.fromBuffer(value),
        ($48.SetTaskExecutedAtResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$48.SetTaskNextRunAtRequest, $48.SetTaskNextRunAtResponse>(
        'SetTaskNextRunAt',
        setTaskNextRunAt_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $48.SetTaskNextRunAtRequest.fromBuffer(value),
        ($48.SetTaskNextRunAtResponse value) => value.writeToBuffer()));
  }

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

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

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

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

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

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

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