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

export 'stockInput.pb.dart';

///
/// API-server services
@$pb.GrpcServiceName('api.StockInputAPI')
class StockInputAPIClient 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 = [
    '',
  ];

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

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

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

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

  $grpc.ResponseFuture<$0.StockSanitisedResponse> sanitised($0.StockSanitisedRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$sanitised, request, options: options);
  }

  $grpc.ResponseFuture<$0.StockCustomFieldsUpdatedResponse> customFieldsUpdated($0.StockCustomFieldsUpdatedRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$customFieldsUpdated, request, options: options);
  }

    // method descriptors

  static final _$moved = $grpc.ClientMethod<$0.StockMovedRequest, $0.StockMovedResponse>(
      '/api.StockInputAPI/Moved',
      ($0.StockMovedRequest value) => value.writeToBuffer(),
      $0.StockMovedResponse.fromBuffer);
  static final _$snapshotted = $grpc.ClientMethod<$0.StockSnapshottedRequest, $0.StockSnapshottedResponse>(
      '/api.StockInputAPI/Snapshotted',
      ($0.StockSnapshottedRequest value) => value.writeToBuffer(),
      $0.StockSnapshottedResponse.fromBuffer);
  static final _$deleted = $grpc.ClientMethod<$0.StockDeletedRequest, $0.StockDeletedResponse>(
      '/api.StockInputAPI/Deleted',
      ($0.StockDeletedRequest value) => value.writeToBuffer(),
      $0.StockDeletedResponse.fromBuffer);
  static final _$sanitised = $grpc.ClientMethod<$0.StockSanitisedRequest, $0.StockSanitisedResponse>(
      '/api.StockInputAPI/Sanitised',
      ($0.StockSanitisedRequest value) => value.writeToBuffer(),
      $0.StockSanitisedResponse.fromBuffer);
  static final _$customFieldsUpdated = $grpc.ClientMethod<$0.StockCustomFieldsUpdatedRequest, $0.StockCustomFieldsUpdatedResponse>(
      '/api.StockInputAPI/CustomFieldsUpdated',
      ($0.StockCustomFieldsUpdatedRequest value) => value.writeToBuffer(),
      $0.StockCustomFieldsUpdatedResponse.fromBuffer);
}

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

  StockInputAPIServiceBase() {
    $addMethod($grpc.ServiceMethod<$0.StockMovedRequest, $0.StockMovedResponse>(
        'Moved',
        moved_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.StockMovedRequest.fromBuffer(value),
        ($0.StockMovedResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.StockSnapshottedRequest, $0.StockSnapshottedResponse>(
        'Snapshotted',
        snapshotted_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.StockSnapshottedRequest.fromBuffer(value),
        ($0.StockSnapshottedResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.StockDeletedRequest, $0.StockDeletedResponse>(
        'Deleted',
        deleted_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.StockDeletedRequest.fromBuffer(value),
        ($0.StockDeletedResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.StockSanitisedRequest, $0.StockSanitisedResponse>(
        'Sanitised',
        sanitised_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.StockSanitisedRequest.fromBuffer(value),
        ($0.StockSanitisedResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.StockCustomFieldsUpdatedRequest, $0.StockCustomFieldsUpdatedResponse>(
        'CustomFieldsUpdated',
        customFieldsUpdated_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.StockCustomFieldsUpdatedRequest.fromBuffer(value),
        ($0.StockCustomFieldsUpdatedResponse value) => value.writeToBuffer()));
  }

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

  $async.Future<$0.StockMovedResponse> moved($grpc.ServiceCall call, $0.StockMovedRequest request);

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

  $async.Future<$0.StockSnapshottedResponse> snapshotted($grpc.ServiceCall call, $0.StockSnapshottedRequest request);

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

  $async.Future<$0.StockDeletedResponse> deleted($grpc.ServiceCall call, $0.StockDeletedRequest request);

  $async.Future<$0.StockSanitisedResponse> sanitised_Pre($grpc.ServiceCall $call, $async.Future<$0.StockSanitisedRequest> $request) async {
    return sanitised($call, await $request);
  }

  $async.Future<$0.StockSanitisedResponse> sanitised($grpc.ServiceCall call, $0.StockSanitisedRequest request);

  $async.Future<$0.StockCustomFieldsUpdatedResponse> customFieldsUpdated_Pre($grpc.ServiceCall $call, $async.Future<$0.StockCustomFieldsUpdatedRequest> $request) async {
    return customFieldsUpdated($call, await $request);
  }

  $async.Future<$0.StockCustomFieldsUpdatedResponse> customFieldsUpdated($grpc.ServiceCall call, $0.StockCustomFieldsUpdatedRequest request);

}
