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

80 lines
3.7 KiB
Dart

//
// Generated code. Do not modify.
// source: viz-default-view.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-default-view.pb.dart' as $7;
export 'viz-default-view.pb.dart';
@$pb.GrpcServiceName('vizapi.DefaultViewService')
class DefaultViewServiceClient extends $grpc.Client {
static final _$createPlatform = $grpc.ClientMethod<$7.CreatePlatformDefaultViewRequest, $7.CreatePlatformDefaultViewResult>(
'/vizapi.DefaultViewService/CreatePlatform',
($7.CreatePlatformDefaultViewRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $7.CreatePlatformDefaultViewResult.fromBuffer(value));
static final _$updatePlatform = $grpc.ClientMethod<$7.UpdatePlatformDefaultViewRequest, $7.UpdatePlatformDefaultViewResult>(
'/vizapi.DefaultViewService/UpdatePlatform',
($7.UpdatePlatformDefaultViewRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $7.UpdatePlatformDefaultViewResult.fromBuffer(value));
DefaultViewServiceClient($grpc.ClientChannel channel,
{$grpc.CallOptions? options,
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
: super(channel, options: options,
interceptors: interceptors);
$grpc.ResponseFuture<$7.CreatePlatformDefaultViewResult> createPlatform($7.CreatePlatformDefaultViewRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$createPlatform, request, options: options);
}
$grpc.ResponseFuture<$7.UpdatePlatformDefaultViewResult> updatePlatform($7.UpdatePlatformDefaultViewRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$updatePlatform, request, options: options);
}
}
@$pb.GrpcServiceName('vizapi.DefaultViewService')
abstract class DefaultViewServiceBase extends $grpc.Service {
$core.String get $name => 'vizapi.DefaultViewService';
DefaultViewServiceBase() {
$addMethod($grpc.ServiceMethod<$7.CreatePlatformDefaultViewRequest, $7.CreatePlatformDefaultViewResult>(
'CreatePlatform',
createPlatform_Pre,
false,
false,
($core.List<$core.int> value) => $7.CreatePlatformDefaultViewRequest.fromBuffer(value),
($7.CreatePlatformDefaultViewResult value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$7.UpdatePlatformDefaultViewRequest, $7.UpdatePlatformDefaultViewResult>(
'UpdatePlatform',
updatePlatform_Pre,
false,
false,
($core.List<$core.int> value) => $7.UpdatePlatformDefaultViewRequest.fromBuffer(value),
($7.UpdatePlatformDefaultViewResult value) => value.writeToBuffer()));
}
$async.Future<$7.CreatePlatformDefaultViewResult> createPlatform_Pre($grpc.ServiceCall $call, $async.Future<$7.CreatePlatformDefaultViewRequest> $request) async {
return createPlatform($call, await $request);
}
$async.Future<$7.UpdatePlatformDefaultViewResult> updatePlatform_Pre($grpc.ServiceCall $call, $async.Future<$7.UpdatePlatformDefaultViewRequest> $request) async {
return updatePlatform($call, await $request);
}
$async.Future<$7.CreatePlatformDefaultViewResult> createPlatform($grpc.ServiceCall call, $7.CreatePlatformDefaultViewRequest request);
$async.Future<$7.UpdatePlatformDefaultViewResult> updatePlatform($grpc.ServiceCall call, $7.UpdatePlatformDefaultViewRequest request);
}