Files
dart-viz-sdk/lib/viz-tab.pbgrpc.dart
2025-05-06 11:17:05 +00:00

60 lines
2.0 KiB
Dart

//
// Generated code. Do not modify.
// source: viz-tab.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 'viz-tab.pb.dart' as $8;
export 'viz-tab.pb.dart';
@$pb.GrpcServiceName('vizapi.TabService')
class TabServiceClient extends $grpc.Client {
static final _$list = $grpc.ClientMethod<$8.ListTabRequest, $8.ListTabResult>(
'/vizapi.TabService/List',
($8.ListTabRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $8.ListTabResult.fromBuffer(value));
TabServiceClient($grpc.ClientChannel channel,
{$grpc.CallOptions? options,
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
: super(channel, options: options,
interceptors: interceptors);
$grpc.ResponseFuture<$8.ListTabResult> list($8.ListTabRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$list, request, options: options);
}
}
@$pb.GrpcServiceName('vizapi.TabService')
abstract class TabServiceBase extends $grpc.Service {
$core.String get $name => 'vizapi.TabService';
TabServiceBase() {
$addMethod($grpc.ServiceMethod<$8.ListTabRequest, $8.ListTabResult>(
'List',
list_Pre,
false,
false,
($core.List<$core.int> value) => $8.ListTabRequest.fromBuffer(value),
($8.ListTabResult value) => value.writeToBuffer()));
}
$async.Future<$8.ListTabResult> list_Pre($grpc.ServiceCall $call, $async.Future<$8.ListTabRequest> $request) async {
return list($call, await $request);
}
$async.Future<$8.ListTabResult> list($grpc.ServiceCall call, $8.ListTabRequest request);
}