You've already forked dart-core-sdk
144 lines
6.8 KiB
Dart
144 lines
6.8 KiB
Dart
//
|
|
// Generated code. Do not modify.
|
|
// source: model.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 'model.pb.dart' as $36;
|
|
|
|
export 'model.pb.dart';
|
|
|
|
@$pb.GrpcServiceName('api.ModelService')
|
|
class ModelServiceClient 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 = [
|
|
'',
|
|
];
|
|
|
|
static final _$getDataModel = $grpc.ClientMethod<$36.GetDataModelRequest, $36.GetDataModelResult>(
|
|
'/api.ModelService/GetDataModel',
|
|
($36.GetDataModelRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $36.GetDataModelResult.fromBuffer(value));
|
|
static final _$getEntityModel = $grpc.ClientMethod<$36.GetEntityModelRequest, $36.GetEntityModelResult>(
|
|
'/api.ModelService/GetEntityModel',
|
|
($36.GetEntityModelRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $36.GetEntityModelResult.fromBuffer(value));
|
|
static final _$getEntities = $grpc.ClientMethod<$36.GetEntitiesRequest, $36.GetEntitiesResult>(
|
|
'/api.ModelService/GetEntities',
|
|
($36.GetEntitiesRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $36.GetEntitiesResult.fromBuffer(value));
|
|
static final _$getEntitiesWithMetadata = $grpc.ClientMethod<$36.GetEntitiesRequest, $36.GetEntitiesResult>(
|
|
'/api.ModelService/GetEntitiesWithMetadata',
|
|
($36.GetEntitiesRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $36.GetEntitiesResult.fromBuffer(value));
|
|
static final _$getEntitiesWithDataRestriction = $grpc.ClientMethod<$36.GetEntitiesRequest, $36.GetEntitiesResult>(
|
|
'/api.ModelService/GetEntitiesWithDataRestriction',
|
|
($36.GetEntitiesRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $36.GetEntitiesResult.fromBuffer(value));
|
|
|
|
ModelServiceClient(super.channel, {super.options, super.interceptors});
|
|
|
|
$grpc.ResponseFuture<$36.GetDataModelResult> getDataModel($36.GetDataModelRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$getDataModel, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$36.GetEntityModelResult> getEntityModel($36.GetEntityModelRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$getEntityModel, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$36.GetEntitiesResult> getEntities($36.GetEntitiesRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$getEntities, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$36.GetEntitiesResult> getEntitiesWithMetadata($36.GetEntitiesRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$getEntitiesWithMetadata, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$36.GetEntitiesResult> getEntitiesWithDataRestriction($36.GetEntitiesRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$getEntitiesWithDataRestriction, request, options: options);
|
|
}
|
|
}
|
|
|
|
@$pb.GrpcServiceName('api.ModelService')
|
|
abstract class ModelServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'api.ModelService';
|
|
|
|
ModelServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$36.GetDataModelRequest, $36.GetDataModelResult>(
|
|
'GetDataModel',
|
|
getDataModel_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $36.GetDataModelRequest.fromBuffer(value),
|
|
($36.GetDataModelResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$36.GetEntityModelRequest, $36.GetEntityModelResult>(
|
|
'GetEntityModel',
|
|
getEntityModel_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $36.GetEntityModelRequest.fromBuffer(value),
|
|
($36.GetEntityModelResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$36.GetEntitiesRequest, $36.GetEntitiesResult>(
|
|
'GetEntities',
|
|
getEntities_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $36.GetEntitiesRequest.fromBuffer(value),
|
|
($36.GetEntitiesResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$36.GetEntitiesRequest, $36.GetEntitiesResult>(
|
|
'GetEntitiesWithMetadata',
|
|
getEntitiesWithMetadata_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $36.GetEntitiesRequest.fromBuffer(value),
|
|
($36.GetEntitiesResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$36.GetEntitiesRequest, $36.GetEntitiesResult>(
|
|
'GetEntitiesWithDataRestriction',
|
|
getEntitiesWithDataRestriction_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $36.GetEntitiesRequest.fromBuffer(value),
|
|
($36.GetEntitiesResult value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$36.GetDataModelResult> getDataModel_Pre($grpc.ServiceCall $call, $async.Future<$36.GetDataModelRequest> $request) async {
|
|
return getDataModel($call, await $request);
|
|
}
|
|
|
|
$async.Future<$36.GetEntityModelResult> getEntityModel_Pre($grpc.ServiceCall $call, $async.Future<$36.GetEntityModelRequest> $request) async {
|
|
return getEntityModel($call, await $request);
|
|
}
|
|
|
|
$async.Future<$36.GetEntitiesResult> getEntities_Pre($grpc.ServiceCall $call, $async.Future<$36.GetEntitiesRequest> $request) async {
|
|
return getEntities($call, await $request);
|
|
}
|
|
|
|
$async.Future<$36.GetEntitiesResult> getEntitiesWithMetadata_Pre($grpc.ServiceCall $call, $async.Future<$36.GetEntitiesRequest> $request) async {
|
|
return getEntitiesWithMetadata($call, await $request);
|
|
}
|
|
|
|
$async.Future<$36.GetEntitiesResult> getEntitiesWithDataRestriction_Pre($grpc.ServiceCall $call, $async.Future<$36.GetEntitiesRequest> $request) async {
|
|
return getEntitiesWithDataRestriction($call, await $request);
|
|
}
|
|
|
|
$async.Future<$36.GetDataModelResult> getDataModel($grpc.ServiceCall call, $36.GetDataModelRequest request);
|
|
$async.Future<$36.GetEntityModelResult> getEntityModel($grpc.ServiceCall call, $36.GetEntityModelRequest request);
|
|
$async.Future<$36.GetEntitiesResult> getEntities($grpc.ServiceCall call, $36.GetEntitiesRequest request);
|
|
$async.Future<$36.GetEntitiesResult> getEntitiesWithMetadata($grpc.ServiceCall call, $36.GetEntitiesRequest request);
|
|
$async.Future<$36.GetEntitiesResult> getEntitiesWithDataRestriction($grpc.ServiceCall call, $36.GetEntitiesRequest request);
|
|
}
|