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

export 'messaging-settings.pb.dart';

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

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

  $grpc.ResponseFuture<$0.CreateSettingsAccountResponse> createSettingsAccount($0.CreateSettingsAccountRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$createSettingsAccount, request, options: options);
  }

  $grpc.ResponseFuture<$0.DeleteSettingsAccountResponse> deleteSettingsAccount($0.DeleteSettingsAccountRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$deleteSettingsAccount, request, options: options);
  }

  $grpc.ResponseFuture<$0.PutMessagingSettingsResponse> put($0.PutMessagingSettingsRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$put, request, options: options);
  }

  $grpc.ResponseFuture<$0.GetMessagingSettingsResponse> get($0.GetMessagingSettingsRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$get, request, options: options);
  }

  $grpc.ResponseFuture<$0.GetMessagingSettingsHistoryResponse> getHistory($0.GetMessagingSettingsHistoryRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$getHistory, request, options: options);
  }

    // method descriptors

  static final _$createSettingsAccount = $grpc.ClientMethod<$0.CreateSettingsAccountRequest, $0.CreateSettingsAccountResponse>(
      '/api.MessagingSettingsService/CreateSettingsAccount',
      ($0.CreateSettingsAccountRequest value) => value.writeToBuffer(),
      $0.CreateSettingsAccountResponse.fromBuffer);
  static final _$deleteSettingsAccount = $grpc.ClientMethod<$0.DeleteSettingsAccountRequest, $0.DeleteSettingsAccountResponse>(
      '/api.MessagingSettingsService/DeleteSettingsAccount',
      ($0.DeleteSettingsAccountRequest value) => value.writeToBuffer(),
      $0.DeleteSettingsAccountResponse.fromBuffer);
  static final _$put = $grpc.ClientMethod<$0.PutMessagingSettingsRequest, $0.PutMessagingSettingsResponse>(
      '/api.MessagingSettingsService/Put',
      ($0.PutMessagingSettingsRequest value) => value.writeToBuffer(),
      $0.PutMessagingSettingsResponse.fromBuffer);
  static final _$get = $grpc.ClientMethod<$0.GetMessagingSettingsRequest, $0.GetMessagingSettingsResponse>(
      '/api.MessagingSettingsService/Get',
      ($0.GetMessagingSettingsRequest value) => value.writeToBuffer(),
      $0.GetMessagingSettingsResponse.fromBuffer);
  static final _$getHistory = $grpc.ClientMethod<$0.GetMessagingSettingsHistoryRequest, $0.GetMessagingSettingsHistoryResponse>(
      '/api.MessagingSettingsService/GetHistory',
      ($0.GetMessagingSettingsHistoryRequest value) => value.writeToBuffer(),
      $0.GetMessagingSettingsHistoryResponse.fromBuffer);
}

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

  MessagingSettingsServiceBase() {
    $addMethod($grpc.ServiceMethod<$0.CreateSettingsAccountRequest, $0.CreateSettingsAccountResponse>(
        'CreateSettingsAccount',
        createSettingsAccount_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.CreateSettingsAccountRequest.fromBuffer(value),
        ($0.CreateSettingsAccountResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.DeleteSettingsAccountRequest, $0.DeleteSettingsAccountResponse>(
        'DeleteSettingsAccount',
        deleteSettingsAccount_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.DeleteSettingsAccountRequest.fromBuffer(value),
        ($0.DeleteSettingsAccountResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.PutMessagingSettingsRequest, $0.PutMessagingSettingsResponse>(
        'Put',
        put_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.PutMessagingSettingsRequest.fromBuffer(value),
        ($0.PutMessagingSettingsResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.GetMessagingSettingsRequest, $0.GetMessagingSettingsResponse>(
        'Get',
        get_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.GetMessagingSettingsRequest.fromBuffer(value),
        ($0.GetMessagingSettingsResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.GetMessagingSettingsHistoryRequest, $0.GetMessagingSettingsHistoryResponse>(
        'GetHistory',
        getHistory_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.GetMessagingSettingsHistoryRequest.fromBuffer(value),
        ($0.GetMessagingSettingsHistoryResponse value) => value.writeToBuffer()));
  }

  $async.Future<$0.CreateSettingsAccountResponse> createSettingsAccount_Pre($grpc.ServiceCall $call, $async.Future<$0.CreateSettingsAccountRequest> $request) async {
    return createSettingsAccount($call, await $request);
  }

  $async.Future<$0.CreateSettingsAccountResponse> createSettingsAccount($grpc.ServiceCall call, $0.CreateSettingsAccountRequest request);

  $async.Future<$0.DeleteSettingsAccountResponse> deleteSettingsAccount_Pre($grpc.ServiceCall $call, $async.Future<$0.DeleteSettingsAccountRequest> $request) async {
    return deleteSettingsAccount($call, await $request);
  }

  $async.Future<$0.DeleteSettingsAccountResponse> deleteSettingsAccount($grpc.ServiceCall call, $0.DeleteSettingsAccountRequest request);

  $async.Future<$0.PutMessagingSettingsResponse> put_Pre($grpc.ServiceCall $call, $async.Future<$0.PutMessagingSettingsRequest> $request) async {
    return put($call, await $request);
  }

  $async.Future<$0.PutMessagingSettingsResponse> put($grpc.ServiceCall call, $0.PutMessagingSettingsRequest request);

  $async.Future<$0.GetMessagingSettingsResponse> get_Pre($grpc.ServiceCall $call, $async.Future<$0.GetMessagingSettingsRequest> $request) async {
    return get($call, await $request);
  }

  $async.Future<$0.GetMessagingSettingsResponse> get($grpc.ServiceCall call, $0.GetMessagingSettingsRequest request);

  $async.Future<$0.GetMessagingSettingsHistoryResponse> getHistory_Pre($grpc.ServiceCall $call, $async.Future<$0.GetMessagingSettingsHistoryRequest> $request) async {
    return getHistory($call, await $request);
  }

  $async.Future<$0.GetMessagingSettingsHistoryResponse> getHistory($grpc.ServiceCall call, $0.GetMessagingSettingsHistoryRequest request);

}
