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