By allanger
Commit link: 0f8ccde25c
Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/93
183 lines
5.7 KiB
Dart
183 lines
5.7 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from test/v1/test_v1.proto.
|
|
|
|
// @dart = 3.3
|
|
|
|
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
|
// ignore_for_file: constant_identifier_names
|
|
// ignore_for_file: curly_braces_in_flow_control_structures
|
|
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
|
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
|
|
|
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 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart' as $1;
|
|
|
|
import 'test_v1.pb.dart' as $0;
|
|
|
|
export 'test_v1.pb.dart';
|
|
|
|
/// *
|
|
/// Service for handling environments
|
|
@$pb.GrpcServiceName('test.v1.PublicTestService')
|
|
class PublicTestServiceClient 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 = [
|
|
'',
|
|
];
|
|
|
|
PublicTestServiceClient(super.channel, {super.options, super.interceptors});
|
|
|
|
$grpc.ResponseFuture<$0.PingResponse> ping(
|
|
$0.PingRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$ping, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseStream<$0.PingStreamResponse> pingStream(
|
|
$1.Empty request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createStreamingCall(
|
|
_$pingStream, $async.Stream.fromIterable([request]),
|
|
options: options);
|
|
}
|
|
|
|
// method descriptors
|
|
|
|
static final _$ping = $grpc.ClientMethod<$0.PingRequest, $0.PingResponse>(
|
|
'/test.v1.PublicTestService/Ping',
|
|
($0.PingRequest value) => value.writeToBuffer(),
|
|
$0.PingResponse.fromBuffer);
|
|
static final _$pingStream =
|
|
$grpc.ClientMethod<$1.Empty, $0.PingStreamResponse>(
|
|
'/test.v1.PublicTestService/PingStream',
|
|
($1.Empty value) => value.writeToBuffer(),
|
|
$0.PingStreamResponse.fromBuffer);
|
|
}
|
|
|
|
@$pb.GrpcServiceName('test.v1.PublicTestService')
|
|
abstract class PublicTestServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'test.v1.PublicTestService';
|
|
|
|
PublicTestServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$0.PingRequest, $0.PingResponse>(
|
|
'Ping',
|
|
ping_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.PingRequest.fromBuffer(value),
|
|
($0.PingResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$1.Empty, $0.PingStreamResponse>(
|
|
'PingStream',
|
|
pingStream_Pre,
|
|
false,
|
|
true,
|
|
($core.List<$core.int> value) => $1.Empty.fromBuffer(value),
|
|
($0.PingStreamResponse value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$0.PingResponse> ping_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.PingRequest> $request) async {
|
|
return ping($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.PingResponse> ping(
|
|
$grpc.ServiceCall call, $0.PingRequest request);
|
|
|
|
$async.Stream<$0.PingStreamResponse> pingStream_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$1.Empty> $request) async* {
|
|
yield* pingStream($call, await $request);
|
|
}
|
|
|
|
$async.Stream<$0.PingStreamResponse> pingStream(
|
|
$grpc.ServiceCall call, $1.Empty request);
|
|
}
|
|
|
|
@$pb.GrpcServiceName('test.v1.TestService')
|
|
class TestServiceClient 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 = [
|
|
'',
|
|
];
|
|
|
|
TestServiceClient(super.channel, {super.options, super.interceptors});
|
|
|
|
$grpc.ResponseFuture<$0.PongResponse> pong(
|
|
$0.PongRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$pong, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseStream<$0.PongStreamResponse> pongStream(
|
|
$1.Empty request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createStreamingCall(
|
|
_$pongStream, $async.Stream.fromIterable([request]),
|
|
options: options);
|
|
}
|
|
|
|
// method descriptors
|
|
|
|
static final _$pong = $grpc.ClientMethod<$0.PongRequest, $0.PongResponse>(
|
|
'/test.v1.TestService/Pong',
|
|
($0.PongRequest value) => value.writeToBuffer(),
|
|
$0.PongResponse.fromBuffer);
|
|
static final _$pongStream =
|
|
$grpc.ClientMethod<$1.Empty, $0.PongStreamResponse>(
|
|
'/test.v1.TestService/PongStream',
|
|
($1.Empty value) => value.writeToBuffer(),
|
|
$0.PongStreamResponse.fromBuffer);
|
|
}
|
|
|
|
@$pb.GrpcServiceName('test.v1.TestService')
|
|
abstract class TestServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'test.v1.TestService';
|
|
|
|
TestServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$0.PongRequest, $0.PongResponse>(
|
|
'Pong',
|
|
pong_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.PongRequest.fromBuffer(value),
|
|
($0.PongResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$1.Empty, $0.PongStreamResponse>(
|
|
'PongStream',
|
|
pongStream_Pre,
|
|
false,
|
|
true,
|
|
($core.List<$core.int> value) => $1.Empty.fromBuffer(value),
|
|
($0.PongStreamResponse value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$0.PongResponse> pong_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.PongRequest> $request) async {
|
|
return pong($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.PongResponse> pong(
|
|
$grpc.ServiceCall call, $0.PongRequest request);
|
|
|
|
$async.Stream<$0.PongStreamResponse> pongStream_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$1.Empty> $request) async* {
|
|
yield* pongStream($call, await $request);
|
|
}
|
|
|
|
$async.Stream<$0.PongStreamResponse> pongStream(
|
|
$grpc.ServiceCall call, $1.Empty request);
|
|
}
|