Files
dart-core-sdk/lib/elastic.pbgrpc.dart
2025-05-05 09:13:40 +00:00

120 lines
6.1 KiB
Dart

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