You've already forked dart-core-sdk
231 lines
11 KiB
Dart
231 lines
11 KiB
Dart
//
|
|
// Generated code. Do not modify.
|
|
// source: stockQuery.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 'clickhouse.pb.dart' as $9;
|
|
import 'shared.pb.dart' as $3;
|
|
import 'stockQuery.pb.dart' as $59;
|
|
|
|
export 'stockQuery.pb.dart';
|
|
|
|
///
|
|
/// Stock cannot be queried using id because the id is generated and not publicly-known.
|
|
/// Stock is only queryable by expressing conditions on Goods 'key' attributes (itemID, LVBranchID, PriorityDate and SegmentationKeys) and the ActorID.
|
|
@$pb.GrpcServiceName('api.StockQuery')
|
|
class StockQueryClient 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 _$getByIds = $grpc.ClientMethod<$59.StockByIdQuery, $59.StockByIdResult>(
|
|
'/api.StockQuery/GetByIds',
|
|
($59.StockByIdQuery value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $59.StockByIdResult.fromBuffer(value));
|
|
static final _$find = $grpc.ClientMethod<$59.StockByFilterQuery, $59.StockByFilterResult>(
|
|
'/api.StockQuery/Find',
|
|
($59.StockByFilterQuery value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $59.StockByFilterResult.fromBuffer(value));
|
|
static final _$findMatchingFieldValues = $grpc.ClientMethod<$59.StockByMatchQuery, $59.StockByMatchResult>(
|
|
'/api.StockQuery/FindMatchingFieldValues',
|
|
($59.StockByMatchQuery value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $59.StockByMatchResult.fromBuffer(value));
|
|
static final _$findMatchingFieldElements = $grpc.ClientMethod<$3.ElementByMatchQuery, $3.ElementByMatchResult>(
|
|
'/api.StockQuery/FindMatchingFieldElements',
|
|
($3.ElementByMatchQuery value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $3.ElementByMatchResult.fromBuffer(value));
|
|
static final _$getKPIData = $grpc.ClientMethod<$9.GetKPIDataQuery, $9.GetKPIDataResult>(
|
|
'/api.StockQuery/GetKPIData',
|
|
($9.GetKPIDataQuery value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $9.GetKPIDataResult.fromBuffer(value));
|
|
static final _$getKPIDataForUser = $grpc.ClientMethod<$9.GetKPIDataForUserQuery, $9.GetKPIDataResult>(
|
|
'/api.StockQuery/GetKPIDataForUser',
|
|
($9.GetKPIDataForUserQuery value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $9.GetKPIDataResult.fromBuffer(value));
|
|
static final _$extractKPI = $grpc.ClientMethod<$9.ExtractKPIQuery, $9.ExtractKPIResult>(
|
|
'/api.StockQuery/ExtractKPI',
|
|
($9.ExtractKPIQuery value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $9.ExtractKPIResult.fromBuffer(value));
|
|
static final _$countLines = $grpc.ClientMethod<$3.CountLinesQuery, $3.CountLinesResult>(
|
|
'/api.StockQuery/CountLines',
|
|
($3.CountLinesQuery value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $3.CountLinesResult.fromBuffer(value));
|
|
static final _$findKPIData = $grpc.ClientMethod<$9.FindKPIDataQuery, $9.FindKPIDataResult>(
|
|
'/api.StockQuery/FindKPIData',
|
|
($9.FindKPIDataQuery value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $9.FindKPIDataResult.fromBuffer(value));
|
|
|
|
StockQueryClient(super.channel, {super.options, super.interceptors});
|
|
|
|
@$core.Deprecated('This method is deprecated')
|
|
$grpc.ResponseFuture<$59.StockByIdResult> getByIds($59.StockByIdQuery request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$getByIds, request, options: options);
|
|
}
|
|
|
|
@$core.Deprecated('This method is deprecated')
|
|
$grpc.ResponseFuture<$59.StockByFilterResult> find($59.StockByFilterQuery request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$find, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$59.StockByMatchResult> findMatchingFieldValues($59.StockByMatchQuery request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$findMatchingFieldValues, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$3.ElementByMatchResult> findMatchingFieldElements($3.ElementByMatchQuery request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$findMatchingFieldElements, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$9.GetKPIDataResult> getKPIData($9.GetKPIDataQuery request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$getKPIData, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$9.GetKPIDataResult> getKPIDataForUser($9.GetKPIDataForUserQuery request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$getKPIDataForUser, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$9.ExtractKPIResult> extractKPI($9.ExtractKPIQuery request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$extractKPI, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$3.CountLinesResult> countLines($3.CountLinesQuery request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$countLines, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$9.FindKPIDataResult> findKPIData($9.FindKPIDataQuery request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$findKPIData, request, options: options);
|
|
}
|
|
}
|
|
|
|
@$pb.GrpcServiceName('api.StockQuery')
|
|
abstract class StockQueryServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'api.StockQuery';
|
|
|
|
StockQueryServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$59.StockByIdQuery, $59.StockByIdResult>(
|
|
'GetByIds',
|
|
getByIds_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $59.StockByIdQuery.fromBuffer(value),
|
|
($59.StockByIdResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$59.StockByFilterQuery, $59.StockByFilterResult>(
|
|
'Find',
|
|
find_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $59.StockByFilterQuery.fromBuffer(value),
|
|
($59.StockByFilterResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$59.StockByMatchQuery, $59.StockByMatchResult>(
|
|
'FindMatchingFieldValues',
|
|
findMatchingFieldValues_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $59.StockByMatchQuery.fromBuffer(value),
|
|
($59.StockByMatchResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$3.ElementByMatchQuery, $3.ElementByMatchResult>(
|
|
'FindMatchingFieldElements',
|
|
findMatchingFieldElements_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $3.ElementByMatchQuery.fromBuffer(value),
|
|
($3.ElementByMatchResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$9.GetKPIDataQuery, $9.GetKPIDataResult>(
|
|
'GetKPIData',
|
|
getKPIData_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $9.GetKPIDataQuery.fromBuffer(value),
|
|
($9.GetKPIDataResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$9.GetKPIDataForUserQuery, $9.GetKPIDataResult>(
|
|
'GetKPIDataForUser',
|
|
getKPIDataForUser_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $9.GetKPIDataForUserQuery.fromBuffer(value),
|
|
($9.GetKPIDataResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$9.ExtractKPIQuery, $9.ExtractKPIResult>(
|
|
'ExtractKPI',
|
|
extractKPI_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $9.ExtractKPIQuery.fromBuffer(value),
|
|
($9.ExtractKPIResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$3.CountLinesQuery, $3.CountLinesResult>(
|
|
'CountLines',
|
|
countLines_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $3.CountLinesQuery.fromBuffer(value),
|
|
($3.CountLinesResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$9.FindKPIDataQuery, $9.FindKPIDataResult>(
|
|
'FindKPIData',
|
|
findKPIData_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $9.FindKPIDataQuery.fromBuffer(value),
|
|
($9.FindKPIDataResult value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$59.StockByIdResult> getByIds_Pre($grpc.ServiceCall $call, $async.Future<$59.StockByIdQuery> $request) async {
|
|
return getByIds($call, await $request);
|
|
}
|
|
|
|
$async.Future<$59.StockByFilterResult> find_Pre($grpc.ServiceCall $call, $async.Future<$59.StockByFilterQuery> $request) async {
|
|
return find($call, await $request);
|
|
}
|
|
|
|
$async.Future<$59.StockByMatchResult> findMatchingFieldValues_Pre($grpc.ServiceCall $call, $async.Future<$59.StockByMatchQuery> $request) async {
|
|
return findMatchingFieldValues($call, await $request);
|
|
}
|
|
|
|
$async.Future<$3.ElementByMatchResult> findMatchingFieldElements_Pre($grpc.ServiceCall $call, $async.Future<$3.ElementByMatchQuery> $request) async {
|
|
return findMatchingFieldElements($call, await $request);
|
|
}
|
|
|
|
$async.Future<$9.GetKPIDataResult> getKPIData_Pre($grpc.ServiceCall $call, $async.Future<$9.GetKPIDataQuery> $request) async {
|
|
return getKPIData($call, await $request);
|
|
}
|
|
|
|
$async.Future<$9.GetKPIDataResult> getKPIDataForUser_Pre($grpc.ServiceCall $call, $async.Future<$9.GetKPIDataForUserQuery> $request) async {
|
|
return getKPIDataForUser($call, await $request);
|
|
}
|
|
|
|
$async.Future<$9.ExtractKPIResult> extractKPI_Pre($grpc.ServiceCall $call, $async.Future<$9.ExtractKPIQuery> $request) async {
|
|
return extractKPI($call, await $request);
|
|
}
|
|
|
|
$async.Future<$3.CountLinesResult> countLines_Pre($grpc.ServiceCall $call, $async.Future<$3.CountLinesQuery> $request) async {
|
|
return countLines($call, await $request);
|
|
}
|
|
|
|
$async.Future<$9.FindKPIDataResult> findKPIData_Pre($grpc.ServiceCall $call, $async.Future<$9.FindKPIDataQuery> $request) async {
|
|
return findKPIData($call, await $request);
|
|
}
|
|
|
|
$async.Future<$59.StockByIdResult> getByIds($grpc.ServiceCall call, $59.StockByIdQuery request);
|
|
$async.Future<$59.StockByFilterResult> find($grpc.ServiceCall call, $59.StockByFilterQuery request);
|
|
$async.Future<$59.StockByMatchResult> findMatchingFieldValues($grpc.ServiceCall call, $59.StockByMatchQuery request);
|
|
$async.Future<$3.ElementByMatchResult> findMatchingFieldElements($grpc.ServiceCall call, $3.ElementByMatchQuery request);
|
|
$async.Future<$9.GetKPIDataResult> getKPIData($grpc.ServiceCall call, $9.GetKPIDataQuery request);
|
|
$async.Future<$9.GetKPIDataResult> getKPIDataForUser($grpc.ServiceCall call, $9.GetKPIDataForUserQuery request);
|
|
$async.Future<$9.ExtractKPIResult> extractKPI($grpc.ServiceCall call, $9.ExtractKPIQuery request);
|
|
$async.Future<$3.CountLinesResult> countLines($grpc.ServiceCall call, $3.CountLinesQuery request);
|
|
$async.Future<$9.FindKPIDataResult> findKPIData($grpc.ServiceCall call, $9.FindKPIDataQuery request);
|
|
}
|