You've already forked dart-viz-sdk
152 lines
5.8 KiB
Dart
152 lines
5.8 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from viz-motd.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-motd.pb.dart' as $0;
|
|
|
|
export 'viz-motd.pb.dart';
|
|
|
|
@$pb.GrpcServiceName('vizapi.MotdService')
|
|
class MotdServiceClient 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 = [
|
|
'',
|
|
];
|
|
|
|
MotdServiceClient(super.channel, {super.options, super.interceptors});
|
|
|
|
$grpc.ResponseFuture<$0.GetMotdResult> get($0.GetMotdRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$get, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.CreateMotdResult> create($0.CreateMotdRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$create, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.UpdateMotdResult> update($0.UpdateMotdRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$update, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.DeleteMotdResult> delete($0.DeleteMotdRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$delete, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$0.ListMotdsResult> list($0.ListMotdsRequest request, {$grpc.CallOptions? options,}) {
|
|
return $createUnaryCall(_$list, request, options: options);
|
|
}
|
|
|
|
// method descriptors
|
|
|
|
static final _$get = $grpc.ClientMethod<$0.GetMotdRequest, $0.GetMotdResult>(
|
|
'/vizapi.MotdService/Get',
|
|
($0.GetMotdRequest value) => value.writeToBuffer(),
|
|
$0.GetMotdResult.fromBuffer);
|
|
static final _$create = $grpc.ClientMethod<$0.CreateMotdRequest, $0.CreateMotdResult>(
|
|
'/vizapi.MotdService/Create',
|
|
($0.CreateMotdRequest value) => value.writeToBuffer(),
|
|
$0.CreateMotdResult.fromBuffer);
|
|
static final _$update = $grpc.ClientMethod<$0.UpdateMotdRequest, $0.UpdateMotdResult>(
|
|
'/vizapi.MotdService/Update',
|
|
($0.UpdateMotdRequest value) => value.writeToBuffer(),
|
|
$0.UpdateMotdResult.fromBuffer);
|
|
static final _$delete = $grpc.ClientMethod<$0.DeleteMotdRequest, $0.DeleteMotdResult>(
|
|
'/vizapi.MotdService/Delete',
|
|
($0.DeleteMotdRequest value) => value.writeToBuffer(),
|
|
$0.DeleteMotdResult.fromBuffer);
|
|
static final _$list = $grpc.ClientMethod<$0.ListMotdsRequest, $0.ListMotdsResult>(
|
|
'/vizapi.MotdService/List',
|
|
($0.ListMotdsRequest value) => value.writeToBuffer(),
|
|
$0.ListMotdsResult.fromBuffer);
|
|
}
|
|
|
|
@$pb.GrpcServiceName('vizapi.MotdService')
|
|
abstract class MotdServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'vizapi.MotdService';
|
|
|
|
MotdServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$0.GetMotdRequest, $0.GetMotdResult>(
|
|
'Get',
|
|
get_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.GetMotdRequest.fromBuffer(value),
|
|
($0.GetMotdResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.CreateMotdRequest, $0.CreateMotdResult>(
|
|
'Create',
|
|
create_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.CreateMotdRequest.fromBuffer(value),
|
|
($0.CreateMotdResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.UpdateMotdRequest, $0.UpdateMotdResult>(
|
|
'Update',
|
|
update_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.UpdateMotdRequest.fromBuffer(value),
|
|
($0.UpdateMotdResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.DeleteMotdRequest, $0.DeleteMotdResult>(
|
|
'Delete',
|
|
delete_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.DeleteMotdRequest.fromBuffer(value),
|
|
($0.DeleteMotdResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.ListMotdsRequest, $0.ListMotdsResult>(
|
|
'List',
|
|
list_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.ListMotdsRequest.fromBuffer(value),
|
|
($0.ListMotdsResult value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$0.GetMotdResult> get_Pre($grpc.ServiceCall $call, $async.Future<$0.GetMotdRequest> $request) async {
|
|
return get($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.GetMotdResult> get($grpc.ServiceCall call, $0.GetMotdRequest request);
|
|
|
|
$async.Future<$0.CreateMotdResult> create_Pre($grpc.ServiceCall $call, $async.Future<$0.CreateMotdRequest> $request) async {
|
|
return create($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.CreateMotdResult> create($grpc.ServiceCall call, $0.CreateMotdRequest request);
|
|
|
|
$async.Future<$0.UpdateMotdResult> update_Pre($grpc.ServiceCall $call, $async.Future<$0.UpdateMotdRequest> $request) async {
|
|
return update($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.UpdateMotdResult> update($grpc.ServiceCall call, $0.UpdateMotdRequest request);
|
|
|
|
$async.Future<$0.DeleteMotdResult> delete_Pre($grpc.ServiceCall $call, $async.Future<$0.DeleteMotdRequest> $request) async {
|
|
return delete($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.DeleteMotdResult> delete($grpc.ServiceCall call, $0.DeleteMotdRequest request);
|
|
|
|
$async.Future<$0.ListMotdsResult> list_Pre($grpc.ServiceCall $call, $async.Future<$0.ListMotdsRequest> $request) async {
|
|
return list($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.ListMotdsResult> list($grpc.ServiceCall call, $0.ListMotdsRequest request);
|
|
|
|
}
|