You've already forked dart-viz-sdk
89 lines
3.7 KiB
Dart
89 lines
3.7 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from viz-default-view.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 'viz-default-view.pb.dart' as $0;
|
|
|
|
export 'viz-default-view.pb.dart';
|
|
|
|
@$pb.GrpcServiceName('vizapi.DefaultViewService')
|
|
class DefaultViewServiceClient 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 = [
|
|
'',
|
|
];
|
|
|
|
DefaultViewServiceClient(super.channel, {super.options, super.interceptors});
|
|
|
|
$grpc.ResponseFuture<$0.CreatePlatformDefaultViewResult> createPlatform($0.CreatePlatformDefaultViewRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$createPlatform, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.UpdatePlatformDefaultViewResult> updatePlatform($0.UpdatePlatformDefaultViewRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$updatePlatform, request, options: options);
|
|
}
|
|
|
|
// method descriptors
|
|
|
|
static final _$createPlatform = $grpc.ClientMethod<$0.CreatePlatformDefaultViewRequest, $0.CreatePlatformDefaultViewResult>(
|
|
'/vizapi.DefaultViewService/CreatePlatform',
|
|
($0.CreatePlatformDefaultViewRequest value) => value.writeToBuffer(),
|
|
$0.CreatePlatformDefaultViewResult.fromBuffer);
|
|
static final _$updatePlatform = $grpc.ClientMethod<$0.UpdatePlatformDefaultViewRequest, $0.UpdatePlatformDefaultViewResult>(
|
|
'/vizapi.DefaultViewService/UpdatePlatform',
|
|
($0.UpdatePlatformDefaultViewRequest value) => value.writeToBuffer(),
|
|
$0.UpdatePlatformDefaultViewResult.fromBuffer);
|
|
}
|
|
|
|
@$pb.GrpcServiceName('vizapi.DefaultViewService')
|
|
abstract class DefaultViewServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'vizapi.DefaultViewService';
|
|
|
|
DefaultViewServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$0.CreatePlatformDefaultViewRequest, $0.CreatePlatformDefaultViewResult>(
|
|
'CreatePlatform',
|
|
createPlatform_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.CreatePlatformDefaultViewRequest.fromBuffer(value),
|
|
($0.CreatePlatformDefaultViewResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.UpdatePlatformDefaultViewRequest, $0.UpdatePlatformDefaultViewResult>(
|
|
'UpdatePlatform',
|
|
updatePlatform_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.UpdatePlatformDefaultViewRequest.fromBuffer(value),
|
|
($0.UpdatePlatformDefaultViewResult value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$0.CreatePlatformDefaultViewResult> createPlatform_Pre($grpc.ServiceCall $call, $async.Future<$0.CreatePlatformDefaultViewRequest> $request) async {
|
|
return createPlatform($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.CreatePlatformDefaultViewResult> createPlatform($grpc.ServiceCall call, $0.CreatePlatformDefaultViewRequest request);
|
|
|
|
$async.Future<$0.UpdatePlatformDefaultViewResult> updatePlatform_Pre($grpc.ServiceCall $call, $async.Future<$0.UpdatePlatformDefaultViewRequest> $request) async {
|
|
return updatePlatform($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.UpdatePlatformDefaultViewResult> updatePlatform($grpc.ServiceCall call, $0.UpdatePlatformDefaultViewRequest request);
|
|
|
|
}
|