Files
dart-core-sdk/lib/elastic.pbgrpc.dart
2025-04-22 09:11:37 +00:00

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