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

140 lines
7.3 KiB
Dart

//
// Generated code. Do not modify.
// source: opensearch.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 'opensearch.pb.dart' as $29;
export 'opensearch.pb.dart';
@$pb.GrpcServiceName('api.OpenSearchService')
class OpenSearchServiceClient extends $grpc.Client {
static final _$createUser = $grpc.ClientMethod<$29.CreateOpenSearchUserRequest, $29.CreateOpenSearchUserResponse>(
'/api.OpenSearchService/CreateUser',
($29.CreateOpenSearchUserRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $29.CreateOpenSearchUserResponse.fromBuffer(value));
static final _$deleteUser = $grpc.ClientMethod<$29.DeleteOpenSearchUserRequest, $29.DeleteOpenSearchUserResponse>(
'/api.OpenSearchService/DeleteUser',
($29.DeleteOpenSearchUserRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $29.DeleteOpenSearchUserResponse.fromBuffer(value));
static final _$createTenant = $grpc.ClientMethod<$29.CreateOpenSearchTenantRequest, $29.CreateOpenSearchTenantResponse>(
'/api.OpenSearchService/CreateTenant',
($29.CreateOpenSearchTenantRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $29.CreateOpenSearchTenantResponse.fromBuffer(value));
static final _$createProjectRole = $grpc.ClientMethod<$29.CreateOpenSearchProjectRoleRequest, $29.CreateOpenSearchProjectRoleResponse>(
'/api.OpenSearchService/CreateProjectRole',
($29.CreateOpenSearchProjectRoleRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $29.CreateOpenSearchProjectRoleResponse.fromBuffer(value));
static final _$deleteProject = $grpc.ClientMethod<$29.DeleteOpenSearchProjectRequest, $29.DeleteOpenSearchProjectResponse>(
'/api.OpenSearchService/DeleteProject',
($29.DeleteOpenSearchProjectRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $29.DeleteOpenSearchProjectResponse.fromBuffer(value));
OpenSearchServiceClient($grpc.ClientChannel channel,
{$grpc.CallOptions? options,
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
: super(channel, options: options,
interceptors: interceptors);
$grpc.ResponseFuture<$29.CreateOpenSearchUserResponse> createUser($29.CreateOpenSearchUserRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$createUser, request, options: options);
}
$grpc.ResponseFuture<$29.DeleteOpenSearchUserResponse> deleteUser($29.DeleteOpenSearchUserRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$deleteUser, request, options: options);
}
$grpc.ResponseFuture<$29.CreateOpenSearchTenantResponse> createTenant($29.CreateOpenSearchTenantRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$createTenant, request, options: options);
}
$grpc.ResponseFuture<$29.CreateOpenSearchProjectRoleResponse> createProjectRole($29.CreateOpenSearchProjectRoleRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$createProjectRole, request, options: options);
}
$grpc.ResponseFuture<$29.DeleteOpenSearchProjectResponse> deleteProject($29.DeleteOpenSearchProjectRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$deleteProject, request, options: options);
}
}
@$pb.GrpcServiceName('api.OpenSearchService')
abstract class OpenSearchServiceBase extends $grpc.Service {
$core.String get $name => 'api.OpenSearchService';
OpenSearchServiceBase() {
$addMethod($grpc.ServiceMethod<$29.CreateOpenSearchUserRequest, $29.CreateOpenSearchUserResponse>(
'CreateUser',
createUser_Pre,
false,
false,
($core.List<$core.int> value) => $29.CreateOpenSearchUserRequest.fromBuffer(value),
($29.CreateOpenSearchUserResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$29.DeleteOpenSearchUserRequest, $29.DeleteOpenSearchUserResponse>(
'DeleteUser',
deleteUser_Pre,
false,
false,
($core.List<$core.int> value) => $29.DeleteOpenSearchUserRequest.fromBuffer(value),
($29.DeleteOpenSearchUserResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$29.CreateOpenSearchTenantRequest, $29.CreateOpenSearchTenantResponse>(
'CreateTenant',
createTenant_Pre,
false,
false,
($core.List<$core.int> value) => $29.CreateOpenSearchTenantRequest.fromBuffer(value),
($29.CreateOpenSearchTenantResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$29.CreateOpenSearchProjectRoleRequest, $29.CreateOpenSearchProjectRoleResponse>(
'CreateProjectRole',
createProjectRole_Pre,
false,
false,
($core.List<$core.int> value) => $29.CreateOpenSearchProjectRoleRequest.fromBuffer(value),
($29.CreateOpenSearchProjectRoleResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$29.DeleteOpenSearchProjectRequest, $29.DeleteOpenSearchProjectResponse>(
'DeleteProject',
deleteProject_Pre,
false,
false,
($core.List<$core.int> value) => $29.DeleteOpenSearchProjectRequest.fromBuffer(value),
($29.DeleteOpenSearchProjectResponse value) => value.writeToBuffer()));
}
$async.Future<$29.CreateOpenSearchUserResponse> createUser_Pre($grpc.ServiceCall $call, $async.Future<$29.CreateOpenSearchUserRequest> $request) async {
return createUser($call, await $request);
}
$async.Future<$29.DeleteOpenSearchUserResponse> deleteUser_Pre($grpc.ServiceCall $call, $async.Future<$29.DeleteOpenSearchUserRequest> $request) async {
return deleteUser($call, await $request);
}
$async.Future<$29.CreateOpenSearchTenantResponse> createTenant_Pre($grpc.ServiceCall $call, $async.Future<$29.CreateOpenSearchTenantRequest> $request) async {
return createTenant($call, await $request);
}
$async.Future<$29.CreateOpenSearchProjectRoleResponse> createProjectRole_Pre($grpc.ServiceCall $call, $async.Future<$29.CreateOpenSearchProjectRoleRequest> $request) async {
return createProjectRole($call, await $request);
}
$async.Future<$29.DeleteOpenSearchProjectResponse> deleteProject_Pre($grpc.ServiceCall $call, $async.Future<$29.DeleteOpenSearchProjectRequest> $request) async {
return deleteProject($call, await $request);
}
$async.Future<$29.CreateOpenSearchUserResponse> createUser($grpc.ServiceCall call, $29.CreateOpenSearchUserRequest request);
$async.Future<$29.DeleteOpenSearchUserResponse> deleteUser($grpc.ServiceCall call, $29.DeleteOpenSearchUserRequest request);
$async.Future<$29.CreateOpenSearchTenantResponse> createTenant($grpc.ServiceCall call, $29.CreateOpenSearchTenantRequest request);
$async.Future<$29.CreateOpenSearchProjectRoleResponse> createProjectRole($grpc.ServiceCall call, $29.CreateOpenSearchProjectRoleRequest request);
$async.Future<$29.DeleteOpenSearchProjectResponse> deleteProject($grpc.ServiceCall call, $29.DeleteOpenSearchProjectRequest request);
}