You've already forked dart-core-sdk
120 lines
6.0 KiB
Dart
120 lines
6.0 KiB
Dart
//
|
|
// Generated code. Do not modify.
|
|
// source: elastic.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 'elastic.pb.dart' as $56;
|
|
|
|
export 'elastic.pb.dart';
|
|
|
|
@$pb.GrpcServiceName('api.ElasticService')
|
|
class ElasticServiceClient extends $grpc.Client {
|
|
static final _$updateModelMappings = $grpc.ClientMethod<$56.UpdateModelMappingsRequest, $56.UpdateModelMappingsResult>(
|
|
'/api.ElasticService/UpdateModelMappings',
|
|
($56.UpdateModelMappingsRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $56.UpdateModelMappingsResult.fromBuffer(value));
|
|
static final _$createProjectMappings = $grpc.ClientMethod<$56.CreateProjectMappingsRequest, $56.CreateProjectMappingsResult>(
|
|
'/api.ElasticService/CreateProjectMappings',
|
|
($56.CreateProjectMappingsRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $56.CreateProjectMappingsResult.fromBuffer(value));
|
|
static final _$deleteProjectMappings = $grpc.ClientMethod<$56.DeleteProjectMappingsRequest, $56.DeleteProjectMappingsResult>(
|
|
'/api.ElasticService/DeleteProjectMappings',
|
|
($56.DeleteProjectMappingsRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $56.DeleteProjectMappingsResult.fromBuffer(value));
|
|
static final _$clearIndexEntity = $grpc.ClientMethod<$56.ClearIndexEntityRequest, $56.ClearIndexEntityResult>(
|
|
'/api.ElasticService/ClearIndexEntity',
|
|
($56.ClearIndexEntityRequest value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $56.ClearIndexEntityResult.fromBuffer(value));
|
|
|
|
ElasticServiceClient($grpc.ClientChannel channel,
|
|
{$grpc.CallOptions? options,
|
|
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
|
|
: super(channel, options: options,
|
|
interceptors: interceptors);
|
|
|
|
$grpc.ResponseFuture<$56.UpdateModelMappingsResult> updateModelMappings($56.UpdateModelMappingsRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$updateModelMappings, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$56.CreateProjectMappingsResult> createProjectMappings($56.CreateProjectMappingsRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$createProjectMappings, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$56.DeleteProjectMappingsResult> deleteProjectMappings($56.DeleteProjectMappingsRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$deleteProjectMappings, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$56.ClearIndexEntityResult> clearIndexEntity($56.ClearIndexEntityRequest request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$clearIndexEntity, request, options: options);
|
|
}
|
|
}
|
|
|
|
@$pb.GrpcServiceName('api.ElasticService')
|
|
abstract class ElasticServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'api.ElasticService';
|
|
|
|
ElasticServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$56.UpdateModelMappingsRequest, $56.UpdateModelMappingsResult>(
|
|
'UpdateModelMappings',
|
|
updateModelMappings_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $56.UpdateModelMappingsRequest.fromBuffer(value),
|
|
($56.UpdateModelMappingsResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$56.CreateProjectMappingsRequest, $56.CreateProjectMappingsResult>(
|
|
'CreateProjectMappings',
|
|
createProjectMappings_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $56.CreateProjectMappingsRequest.fromBuffer(value),
|
|
($56.CreateProjectMappingsResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$56.DeleteProjectMappingsRequest, $56.DeleteProjectMappingsResult>(
|
|
'DeleteProjectMappings',
|
|
deleteProjectMappings_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $56.DeleteProjectMappingsRequest.fromBuffer(value),
|
|
($56.DeleteProjectMappingsResult value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$56.ClearIndexEntityRequest, $56.ClearIndexEntityResult>(
|
|
'ClearIndexEntity',
|
|
clearIndexEntity_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $56.ClearIndexEntityRequest.fromBuffer(value),
|
|
($56.ClearIndexEntityResult value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$56.UpdateModelMappingsResult> updateModelMappings_Pre($grpc.ServiceCall call, $async.Future<$56.UpdateModelMappingsRequest> request) async {
|
|
return updateModelMappings(call, await request);
|
|
}
|
|
|
|
$async.Future<$56.CreateProjectMappingsResult> createProjectMappings_Pre($grpc.ServiceCall call, $async.Future<$56.CreateProjectMappingsRequest> request) async {
|
|
return createProjectMappings(call, await request);
|
|
}
|
|
|
|
$async.Future<$56.DeleteProjectMappingsResult> deleteProjectMappings_Pre($grpc.ServiceCall call, $async.Future<$56.DeleteProjectMappingsRequest> request) async {
|
|
return deleteProjectMappings(call, await request);
|
|
}
|
|
|
|
$async.Future<$56.ClearIndexEntityResult> clearIndexEntity_Pre($grpc.ServiceCall call, $async.Future<$56.ClearIndexEntityRequest> request) async {
|
|
return clearIndexEntity(call, await request);
|
|
}
|
|
|
|
$async.Future<$56.UpdateModelMappingsResult> updateModelMappings($grpc.ServiceCall call, $56.UpdateModelMappingsRequest request);
|
|
$async.Future<$56.CreateProjectMappingsResult> createProjectMappings($grpc.ServiceCall call, $56.CreateProjectMappingsRequest request);
|
|
$async.Future<$56.DeleteProjectMappingsResult> deleteProjectMappings($grpc.ServiceCall call, $56.DeleteProjectMappingsRequest request);
|
|
$async.Future<$56.ClearIndexEntityResult> clearIndexEntity($grpc.ServiceCall call, $56.ClearIndexEntityRequest request);
|
|
}
|