You've already forked dart-core-sdk
110 lines
4.7 KiB
Dart
110 lines
4.7 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from messaging.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.pb.dart' as $0;
|
|
|
|
export 'messaging.pb.dart';
|
|
|
|
@$pb.GrpcServiceName('api.MessagingService')
|
|
class MessagingServiceClient 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 = [
|
|
'',
|
|
];
|
|
|
|
MessagingServiceClient(super.channel, {super.options, super.interceptors});
|
|
|
|
$grpc.ResponseFuture<$0.SendSMSResponse> sendSMS($0.SendSMSRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$sendSMS, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.GetMessagingUsageResponse> getMessagingUsage($0.GetMessagingUsageRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$getMessagingUsage, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.IsMessagingMaxUsageReachedResponse> isMessagingMaxUsageReached($0.IsMessagingMaxUsageReachedRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$isMessagingMaxUsageReached, request, options: options);
|
|
}
|
|
|
|
// method descriptors
|
|
|
|
static final _$sendSMS = $grpc.ClientMethod<$0.SendSMSRequest, $0.SendSMSResponse>(
|
|
'/api.MessagingService/SendSMS',
|
|
($0.SendSMSRequest value) => value.writeToBuffer(),
|
|
$0.SendSMSResponse.fromBuffer);
|
|
static final _$getMessagingUsage = $grpc.ClientMethod<$0.GetMessagingUsageRequest, $0.GetMessagingUsageResponse>(
|
|
'/api.MessagingService/GetMessagingUsage',
|
|
($0.GetMessagingUsageRequest value) => value.writeToBuffer(),
|
|
$0.GetMessagingUsageResponse.fromBuffer);
|
|
static final _$isMessagingMaxUsageReached = $grpc.ClientMethod<$0.IsMessagingMaxUsageReachedRequest, $0.IsMessagingMaxUsageReachedResponse>(
|
|
'/api.MessagingService/IsMessagingMaxUsageReached',
|
|
($0.IsMessagingMaxUsageReachedRequest value) => value.writeToBuffer(),
|
|
$0.IsMessagingMaxUsageReachedResponse.fromBuffer);
|
|
}
|
|
|
|
@$pb.GrpcServiceName('api.MessagingService')
|
|
abstract class MessagingServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'api.MessagingService';
|
|
|
|
MessagingServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$0.SendSMSRequest, $0.SendSMSResponse>(
|
|
'SendSMS',
|
|
sendSMS_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.SendSMSRequest.fromBuffer(value),
|
|
($0.SendSMSResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.GetMessagingUsageRequest, $0.GetMessagingUsageResponse>(
|
|
'GetMessagingUsage',
|
|
getMessagingUsage_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.GetMessagingUsageRequest.fromBuffer(value),
|
|
($0.GetMessagingUsageResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.IsMessagingMaxUsageReachedRequest, $0.IsMessagingMaxUsageReachedResponse>(
|
|
'IsMessagingMaxUsageReached',
|
|
isMessagingMaxUsageReached_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.IsMessagingMaxUsageReachedRequest.fromBuffer(value),
|
|
($0.IsMessagingMaxUsageReachedResponse value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$0.SendSMSResponse> sendSMS_Pre($grpc.ServiceCall $call, $async.Future<$0.SendSMSRequest> $request) async {
|
|
return sendSMS($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.SendSMSResponse> sendSMS($grpc.ServiceCall call, $0.SendSMSRequest request);
|
|
|
|
$async.Future<$0.GetMessagingUsageResponse> getMessagingUsage_Pre($grpc.ServiceCall $call, $async.Future<$0.GetMessagingUsageRequest> $request) async {
|
|
return getMessagingUsage($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.GetMessagingUsageResponse> getMessagingUsage($grpc.ServiceCall call, $0.GetMessagingUsageRequest request);
|
|
|
|
$async.Future<$0.IsMessagingMaxUsageReachedResponse> isMessagingMaxUsageReached_Pre($grpc.ServiceCall $call, $async.Future<$0.IsMessagingMaxUsageReachedRequest> $request) async {
|
|
return isMessagingMaxUsageReached($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.IsMessagingMaxUsageReachedResponse> isMessagingMaxUsageReached($grpc.ServiceCall call, $0.IsMessagingMaxUsageReachedRequest request);
|
|
|
|
}
|