Update protobuf definitions: 9e2dcbd5

By allanger

Commit link: 9e2dcbd599

Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/45
This commit is contained in:
2026-04-27 17:17:29 +00:00
parent b2ed7e577d
commit b454c2ed42

View File

@@ -22,8 +22,8 @@ export 'test_v1.pb.dart';
/// *
/// Service for handling environments
@$pb.GrpcServiceName('test.v1.TestService')
class TestServiceClient extends $grpc.Client {
@$pb.GrpcServiceName('test.v1.TestNoAuthService')
class TestNoAuthServiceClient extends $grpc.Client {
/// The hostname for this service.
static const $core.String defaultHost = '';
@@ -32,7 +32,7 @@ class TestServiceClient extends $grpc.Client {
'',
];
TestServiceClient(super.channel, {super.options, super.interceptors});
TestNoAuthServiceClient(super.channel, {super.options, super.interceptors});
$grpc.ResponseFuture<$0.PingResponse> ping(
$0.PingRequest request, {
@@ -41,6 +41,49 @@ class TestServiceClient extends $grpc.Client {
return $createUnaryCall(_$ping, request, options: options);
}
// method descriptors
static final _$ping = $grpc.ClientMethod<$0.PingRequest, $0.PingResponse>(
'/test.v1.TestNoAuthService/Ping',
($0.PingRequest value) => value.writeToBuffer(),
$0.PingResponse.fromBuffer);
}
@$pb.GrpcServiceName('test.v1.TestNoAuthService')
abstract class TestNoAuthServiceBase extends $grpc.Service {
$core.String get $name => 'test.v1.TestNoAuthService';
TestNoAuthServiceBase() {
$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()));
}
$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);
}
@$pb.GrpcServiceName('test.v1.TestAuthService')
class TestAuthServiceClient 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 = [
'',
];
TestAuthServiceClient(super.channel, {super.options, super.interceptors});
$grpc.ResponseFuture<$0.PongResponse> pong(
$0.PongRequest request, {
$grpc.CallOptions? options,
@@ -50,28 +93,17 @@ class TestServiceClient extends $grpc.Client {
// method descriptors
static final _$ping = $grpc.ClientMethod<$0.PingRequest, $0.PingResponse>(
'/test.v1.TestService/Ping',
($0.PingRequest value) => value.writeToBuffer(),
$0.PingResponse.fromBuffer);
static final _$pong = $grpc.ClientMethod<$0.PongRequest, $0.PongResponse>(
'/test.v1.TestService/Pong',
'/test.v1.TestAuthService/Pong',
($0.PongRequest value) => value.writeToBuffer(),
$0.PongResponse.fromBuffer);
}
@$pb.GrpcServiceName('test.v1.TestService')
abstract class TestServiceBase extends $grpc.Service {
$core.String get $name => 'test.v1.TestService';
@$pb.GrpcServiceName('test.v1.TestAuthService')
abstract class TestAuthServiceBase extends $grpc.Service {
$core.String get $name => 'test.v1.TestAuthService';
TestServiceBase() {
$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()));
TestAuthServiceBase() {
$addMethod($grpc.ServiceMethod<$0.PongRequest, $0.PongResponse>(
'Pong',
pong_Pre,
@@ -81,14 +113,6 @@ abstract class TestServiceBase extends $grpc.Service {
($0.PongResponse 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.Future<$0.PongResponse> pong_Pre(
$grpc.ServiceCall $call, $async.Future<$0.PongRequest> $request) async {
return pong($call, await $request);