softplayer-dart-proto/lib/environments/environments_v1.pbgrpc.dart

141 lines
5.9 KiB
Dart

//
// Generated code. Do not modify.
// source: environments/environments_v1.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 '../google/protobuf/empty.pb.dart' as $1;
import 'environments_v1.pb.dart' as $2;
export 'environments_v1.pb.dart';
@$pb.GrpcServiceName('environments.Environments')
class EnvironmentsClient extends $grpc.Client {
static final _$create = $grpc.ClientMethod<$2.EnvironmentData, $2.EnvironmentFull>(
'/environments.Environments/Create',
($2.EnvironmentData value) => value.writeToBuffer(),
($core.List<$core.int> value) => $2.EnvironmentFull.fromBuffer(value));
static final _$update = $grpc.ClientMethod<$2.EnvironmentFull, $2.EnvironmentFull>(
'/environments.Environments/Update',
($2.EnvironmentFull value) => value.writeToBuffer(),
($core.List<$core.int> value) => $2.EnvironmentFull.fromBuffer(value));
static final _$delete = $grpc.ClientMethod<$2.EnvironmentFull, $1.Empty>(
'/environments.Environments/Delete',
($2.EnvironmentFull value) => value.writeToBuffer(),
($core.List<$core.int> value) => $1.Empty.fromBuffer(value));
static final _$get = $grpc.ClientMethod<$2.EnvironmentId, $2.EnvironmentFull>(
'/environments.Environments/Get',
($2.EnvironmentId value) => value.writeToBuffer(),
($core.List<$core.int> value) => $2.EnvironmentFull.fromBuffer(value));
static final _$list = $grpc.ClientMethod<$1.Empty, $2.EnvironmentFull>(
'/environments.Environments/List',
($1.Empty value) => value.writeToBuffer(),
($core.List<$core.int> value) => $2.EnvironmentFull.fromBuffer(value));
EnvironmentsClient($grpc.ClientChannel channel,
{$grpc.CallOptions? options,
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
: super(channel, options: options,
interceptors: interceptors);
$grpc.ResponseFuture<$2.EnvironmentFull> create($2.EnvironmentData request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$create, request, options: options);
}
$grpc.ResponseFuture<$2.EnvironmentFull> update($2.EnvironmentFull request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$update, request, options: options);
}
$grpc.ResponseFuture<$1.Empty> delete($2.EnvironmentFull request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$delete, request, options: options);
}
$grpc.ResponseFuture<$2.EnvironmentFull> get($2.EnvironmentId request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$get, request, options: options);
}
$grpc.ResponseStream<$2.EnvironmentFull> list($1.Empty request, {$grpc.CallOptions? options}) {
return $createStreamingCall(_$list, $async.Stream.fromIterable([request]), options: options);
}
}
@$pb.GrpcServiceName('environments.Environments')
abstract class EnvironmentsServiceBase extends $grpc.Service {
$core.String get $name => 'environments.Environments';
EnvironmentsServiceBase() {
$addMethod($grpc.ServiceMethod<$2.EnvironmentData, $2.EnvironmentFull>(
'Create',
create_Pre,
false,
false,
($core.List<$core.int> value) => $2.EnvironmentData.fromBuffer(value),
($2.EnvironmentFull value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$2.EnvironmentFull, $2.EnvironmentFull>(
'Update',
update_Pre,
false,
false,
($core.List<$core.int> value) => $2.EnvironmentFull.fromBuffer(value),
($2.EnvironmentFull value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$2.EnvironmentFull, $1.Empty>(
'Delete',
delete_Pre,
false,
false,
($core.List<$core.int> value) => $2.EnvironmentFull.fromBuffer(value),
($1.Empty value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$2.EnvironmentId, $2.EnvironmentFull>(
'Get',
get_Pre,
false,
false,
($core.List<$core.int> value) => $2.EnvironmentId.fromBuffer(value),
($2.EnvironmentFull value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.Empty, $2.EnvironmentFull>(
'List',
list_Pre,
false,
true,
($core.List<$core.int> value) => $1.Empty.fromBuffer(value),
($2.EnvironmentFull value) => value.writeToBuffer()));
}
$async.Future<$2.EnvironmentFull> create_Pre($grpc.ServiceCall call, $async.Future<$2.EnvironmentData> request) async {
return create(call, await request);
}
$async.Future<$2.EnvironmentFull> update_Pre($grpc.ServiceCall call, $async.Future<$2.EnvironmentFull> request) async {
return update(call, await request);
}
$async.Future<$1.Empty> delete_Pre($grpc.ServiceCall call, $async.Future<$2.EnvironmentFull> request) async {
return delete(call, await request);
}
$async.Future<$2.EnvironmentFull> get_Pre($grpc.ServiceCall call, $async.Future<$2.EnvironmentId> request) async {
return get(call, await request);
}
$async.Stream<$2.EnvironmentFull> list_Pre($grpc.ServiceCall call, $async.Future<$1.Empty> request) async* {
yield* list(call, await request);
}
$async.Future<$2.EnvironmentFull> create($grpc.ServiceCall call, $2.EnvironmentData request);
$async.Future<$2.EnvironmentFull> update($grpc.ServiceCall call, $2.EnvironmentFull request);
$async.Future<$1.Empty> delete($grpc.ServiceCall call, $2.EnvironmentFull request);
$async.Future<$2.EnvironmentFull> get($grpc.ServiceCall call, $2.EnvironmentId request);
$async.Stream<$2.EnvironmentFull> list($grpc.ServiceCall call, $1.Empty request);
}