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

export 'project-lifecycle.pb.dart';

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

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

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

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

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

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

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

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

    // method descriptors

  static final _$setTaskRule = $grpc.ClientMethod<$0.SetTaskRuleRequest, $0.SetTaskRuleResponse>(
      '/api.ProjectLifecycleService/SetTaskRule',
      ($0.SetTaskRuleRequest value) => value.writeToBuffer(),
      $0.SetTaskRuleResponse.fromBuffer);
  static final _$getTask = $grpc.ClientMethod<$0.GetTaskRequest, $0.GetTaskResponse>(
      '/api.ProjectLifecycleService/GetTask',
      ($0.GetTaskRequest value) => value.writeToBuffer(),
      $0.GetTaskResponse.fromBuffer);
  static final _$listTasks = $grpc.ClientMethod<$0.ListTasksRequest, $0.ListTasksResponse>(
      '/api.ProjectLifecycleService/ListTasks',
      ($0.ListTasksRequest value) => value.writeToBuffer(),
      $0.ListTasksResponse.fromBuffer);
  static final _$setTaskStatus = $grpc.ClientMethod<$0.SetTaskStatusRequest, $0.SetTaskStatusResponse>(
      '/api.ProjectLifecycleService/SetTaskStatus',
      ($0.SetTaskStatusRequest value) => value.writeToBuffer(),
      $0.SetTaskStatusResponse.fromBuffer);
  static final _$setTaskExecutedAt = $grpc.ClientMethod<$0.SetTaskExecutedAtRequest, $0.SetTaskExecutedAtResponse>(
      '/api.ProjectLifecycleService/SetTaskExecutedAt',
      ($0.SetTaskExecutedAtRequest value) => value.writeToBuffer(),
      $0.SetTaskExecutedAtResponse.fromBuffer);
  static final _$setTaskNextRunAt = $grpc.ClientMethod<$0.SetTaskNextRunAtRequest, $0.SetTaskNextRunAtResponse>(
      '/api.ProjectLifecycleService/SetTaskNextRunAt',
      ($0.SetTaskNextRunAtRequest value) => value.writeToBuffer(),
      $0.SetTaskNextRunAtResponse.fromBuffer);
}

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

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

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

  $async.Future<$0.SetTaskRuleResponse> setTaskRule($grpc.ServiceCall call, $0.SetTaskRuleRequest request);

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

  $async.Future<$0.GetTaskResponse> getTask($grpc.ServiceCall call, $0.GetTaskRequest request);

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

  $async.Future<$0.ListTasksResponse> listTasks($grpc.ServiceCall call, $0.ListTasksRequest request);

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

  $async.Future<$0.SetTaskStatusResponse> setTaskStatus($grpc.ServiceCall call, $0.SetTaskStatusRequest request);

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

  $async.Future<$0.SetTaskExecutedAtResponse> setTaskExecutedAt($grpc.ServiceCall call, $0.SetTaskExecutedAtRequest request);

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

  $async.Future<$0.SetTaskNextRunAtResponse> setTaskNextRunAt($grpc.ServiceCall call, $0.SetTaskNextRunAtRequest request);

}
