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