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

export 'stockInput.pb.dart';

@$pb.GrpcServiceName('api.StockInputAPI')
class StockInputAPIClient extends $grpc.Client {
  static final _$moved = $grpc.ClientMethod<$40.StockMovedRequest, $40.StockMovedResponse>(
      '/api.StockInputAPI/Moved',
      ($40.StockMovedRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $40.StockMovedResponse.fromBuffer(value));
  static final _$snapshotted = $grpc.ClientMethod<$40.StockSnapshottedRequest, $40.StockSnapshottedResponse>(
      '/api.StockInputAPI/Snapshotted',
      ($40.StockSnapshottedRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $40.StockSnapshottedResponse.fromBuffer(value));
  static final _$deleted = $grpc.ClientMethod<$40.StockDeletedRequest, $40.StockDeletedResponse>(
      '/api.StockInputAPI/Deleted',
      ($40.StockDeletedRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $40.StockDeletedResponse.fromBuffer(value));

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

  $grpc.ResponseFuture<$40.StockMovedResponse> moved($40.StockMovedRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$moved, request, options: options);
  }

  $grpc.ResponseFuture<$40.StockSnapshottedResponse> snapshotted($40.StockSnapshottedRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$snapshotted, request, options: options);
  }

  @$core.Deprecated('This method is deprecated')
  $grpc.ResponseFuture<$40.StockDeletedResponse> deleted($40.StockDeletedRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$deleted, request, options: options);
  }
}

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

  StockInputAPIServiceBase() {
    $addMethod($grpc.ServiceMethod<$40.StockMovedRequest, $40.StockMovedResponse>(
        'Moved',
        moved_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $40.StockMovedRequest.fromBuffer(value),
        ($40.StockMovedResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$40.StockSnapshottedRequest, $40.StockSnapshottedResponse>(
        'Snapshotted',
        snapshotted_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $40.StockSnapshottedRequest.fromBuffer(value),
        ($40.StockSnapshottedResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$40.StockDeletedRequest, $40.StockDeletedResponse>(
        'Deleted',
        deleted_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $40.StockDeletedRequest.fromBuffer(value),
        ($40.StockDeletedResponse value) => value.writeToBuffer()));
  }

  $async.Future<$40.StockMovedResponse> moved_Pre($grpc.ServiceCall $call, $async.Future<$40.StockMovedRequest> $request) async {
    return moved($call, await $request);
  }

  $async.Future<$40.StockSnapshottedResponse> snapshotted_Pre($grpc.ServiceCall $call, $async.Future<$40.StockSnapshottedRequest> $request) async {
    return snapshotted($call, await $request);
  }

  $async.Future<$40.StockDeletedResponse> deleted_Pre($grpc.ServiceCall $call, $async.Future<$40.StockDeletedRequest> $request) async {
    return deleted($call, await $request);
  }

  $async.Future<$40.StockMovedResponse> moved($grpc.ServiceCall call, $40.StockMovedRequest request);
  $async.Future<$40.StockSnapshottedResponse> snapshotted($grpc.ServiceCall call, $40.StockSnapshottedRequest request);
  $async.Future<$40.StockDeletedResponse> deleted($grpc.ServiceCall call, $40.StockDeletedRequest request);
}
