mirror of https://github.com/grpc/grpc-dart.git
Update interop to null-safe grpc-dart (#448)
Also replace dependency_overrides with published versions
This commit is contained in:
parent
b437d1089d
commit
d7dc79971e
|
@ -18,3 +18,5 @@ dependency_overrides:
|
||||||
# TODO: Need bazel_worker 1.0.0-nullsafety.0 published
|
# TODO: Need bazel_worker 1.0.0-nullsafety.0 published
|
||||||
bazel_worker:
|
bazel_worker:
|
||||||
git: https://github.com/dart-lang/bazel_worker
|
git: https://github.com/dart-lang/bazel_worker
|
||||||
|
shelf:
|
||||||
|
version: ^1.0.0-nullsafety
|
||||||
|
|
|
@ -88,19 +88,24 @@ Future<int> main(List<String> args) async {
|
||||||
'developer console.');
|
'developer console.');
|
||||||
final arguments = argumentParser.parse(args);
|
final arguments = argumentParser.parse(args);
|
||||||
|
|
||||||
final testClient = Tester();
|
late Tester testClient;
|
||||||
|
try {
|
||||||
testClient.serverHost = arguments[_serverHostArgument];
|
testClient = Tester(
|
||||||
testClient.serverHostOverride = arguments[_serverHostOverrideArgument];
|
serverHost: arguments[_serverHostArgument] ??
|
||||||
testClient.serverPort = arguments[_serverPortArgument];
|
(throw 'Must specify --$_serverHostArgument'),
|
||||||
testClient.testCase = arguments[_testCaseArgument];
|
serverHostOverride: arguments[_serverHostOverrideArgument],
|
||||||
testClient.useTls = arguments[_useTLSArgument];
|
serverPort: int.tryParse(arguments[_serverPortArgument] ??
|
||||||
testClient.useTestCA = arguments[_useTestCAArgument];
|
(throw 'Must specify --$_serverPortArgument')) ??
|
||||||
testClient.defaultServiceAccount = arguments[_defaultServiceAccountArgument];
|
(throw 'Invalid port "${arguments[_serverPortArgument]}"'),
|
||||||
testClient.oauthScope = arguments[_oauthScopeArgument];
|
testCase: arguments[_testCaseArgument] ??
|
||||||
testClient.serviceAccountKeyFile = arguments[_serviceAccountKeyFileArgument];
|
(throw 'Must specify --$_testCaseArgument'),
|
||||||
|
useTls: arguments[_useTLSArgument] != 'false',
|
||||||
if (!testClient.validate()) {
|
useTestCA: arguments[_useTestCAArgument],
|
||||||
|
defaultServiceAccount: arguments[_defaultServiceAccountArgument],
|
||||||
|
oauthScope: arguments[_oauthScopeArgument],
|
||||||
|
serviceAccountKeyFile: arguments[_serviceAccountKeyFileArgument]);
|
||||||
|
} catch (e) {
|
||||||
|
print(e);
|
||||||
print(argumentParser.usage);
|
print(argumentParser.usage);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,13 +30,13 @@ const _trailerEchoKey = 'x-grpc-test-echo-trailing-bin';
|
||||||
class TestService extends TestServiceBase {
|
class TestService extends TestServiceBase {
|
||||||
@override
|
@override
|
||||||
void $onMetadata(ServiceCall context) {
|
void $onMetadata(ServiceCall context) {
|
||||||
final headerEcho = context.clientMetadata[_headerEchoKey];
|
final headerEcho = context.clientMetadata![_headerEchoKey];
|
||||||
if (headerEcho != null) {
|
if (headerEcho != null) {
|
||||||
context.headers[_headerEchoKey] = headerEcho;
|
context.headers![_headerEchoKey] = headerEcho;
|
||||||
}
|
}
|
||||||
final trailerEcho = context.clientMetadata[_trailerEchoKey];
|
final trailerEcho = context.clientMetadata![_trailerEchoKey];
|
||||||
if (trailerEcho != null) {
|
if (trailerEcho != null) {
|
||||||
context.trailers[_trailerEchoKey] = trailerEcho;
|
context.trailers![_trailerEchoKey] = trailerEcho;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ class TestService extends TestServiceBase {
|
||||||
@override
|
@override
|
||||||
Future<StreamingInputCallResponse> streamingInputCall(
|
Future<StreamingInputCallResponse> streamingInputCall(
|
||||||
ServiceCall call, Stream<StreamingInputCallRequest> request) async {
|
ServiceCall call, Stream<StreamingInputCallRequest> request) async {
|
||||||
final aggregatedPayloadSize = await request.fold(
|
final aggregatedPayloadSize = await request.fold<int>(
|
||||||
0, (size, message) => size + message.payload.body.length);
|
0, (size, message) => size + message.payload.body.length);
|
||||||
return StreamingInputCallResponse()
|
return StreamingInputCallResponse()
|
||||||
..aggregatedPayloadSize = aggregatedPayloadSize;
|
..aggregatedPayloadSize = aggregatedPayloadSize;
|
||||||
|
@ -114,9 +114,9 @@ class TestService extends TestServiceBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<Empty> unimplementedCall(ServiceCall call, Empty request) {
|
Future<Empty> unimplementedCall(ServiceCall call, Empty request) async {
|
||||||
call.sendTrailers(status: StatusCode.unimplemented);
|
call.sendTrailers(status: StatusCode.unimplemented);
|
||||||
return null;
|
return Empty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ Future<void> main(List<String> args) async {
|
||||||
|
|
||||||
final server = Server(services);
|
final server = Server(services);
|
||||||
|
|
||||||
ServerTlsCredentials tlsCredentials;
|
late ServerTlsCredentials tlsCredentials;
|
||||||
if (arguments['use_tls'] == 'true') {
|
if (arguments['use_tls'] == 'true') {
|
||||||
final certificate = File(arguments['tls_cert_file']).readAsBytes();
|
final certificate = File(arguments['tls_cert_file']).readAsBytes();
|
||||||
final privateKey = File(arguments['tls_key_file']).readAsBytes();
|
final privateKey = File(arguments['tls_key_file']).readAsBytes();
|
||||||
|
|
|
@ -30,16 +30,27 @@ const _trailerEchoKey = 'x-grpc-test-echo-trailing-bin';
|
||||||
const _trailerEchoData = 'q6ur'; // 0xababab in base64
|
const _trailerEchoData = 'q6ur'; // 0xababab in base64
|
||||||
|
|
||||||
class Tester {
|
class Tester {
|
||||||
String serverHost;
|
final String serverHost;
|
||||||
String serverHostOverride;
|
final String? serverHostOverride;
|
||||||
int _serverPort;
|
final int serverPort;
|
||||||
String testCase;
|
final String testCase;
|
||||||
bool _useTls;
|
final bool useTls;
|
||||||
bool _useTestCA;
|
final bool useTestCA;
|
||||||
String defaultServiceAccount;
|
final String? defaultServiceAccount;
|
||||||
String oauthScope;
|
final String? oauthScope;
|
||||||
String serviceAccountKeyFile;
|
final String? serviceAccountKeyFile;
|
||||||
String _serviceAccountJson;
|
String? _serviceAccountJson;
|
||||||
|
|
||||||
|
Tester(
|
||||||
|
{required this.serverHost,
|
||||||
|
required this.serverHostOverride,
|
||||||
|
required this.serverPort,
|
||||||
|
required this.testCase,
|
||||||
|
required this.useTls,
|
||||||
|
required this.useTestCA,
|
||||||
|
required this.defaultServiceAccount,
|
||||||
|
required this.oauthScope,
|
||||||
|
required this.serviceAccountKeyFile});
|
||||||
|
|
||||||
String get serviceAccountJson =>
|
String get serviceAccountJson =>
|
||||||
_serviceAccountJson ??= _readServiceAccountJson();
|
_serviceAccountJson ??= _readServiceAccountJson();
|
||||||
|
@ -48,51 +59,18 @@ class Tester {
|
||||||
if (serviceAccountKeyFile?.isEmpty ?? true) {
|
if (serviceAccountKeyFile?.isEmpty ?? true) {
|
||||||
throw 'Service account key file not specified.';
|
throw 'Service account key file not specified.';
|
||||||
}
|
}
|
||||||
return File(serviceAccountKeyFile).readAsStringSync();
|
return File(serviceAccountKeyFile!).readAsStringSync();
|
||||||
}
|
}
|
||||||
|
|
||||||
set serverPort(String value) {
|
late final ClientChannel channel;
|
||||||
if (value == null) {
|
late final TestServiceClient client;
|
||||||
_serverPort = null;
|
late final UnimplementedServiceClient unimplementedServiceClient;
|
||||||
return;
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
_serverPort = int.parse(value);
|
|
||||||
} catch (e) {
|
|
||||||
print('Invalid port "$value": $e');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
set useTls(String value) {
|
|
||||||
_useTls = value != 'false';
|
|
||||||
}
|
|
||||||
|
|
||||||
set useTestCA(String value) {
|
|
||||||
_useTestCA = value == 'true';
|
|
||||||
}
|
|
||||||
|
|
||||||
ClientChannel channel;
|
|
||||||
TestServiceClient client;
|
|
||||||
UnimplementedServiceClient unimplementedServiceClient;
|
|
||||||
|
|
||||||
bool validate() {
|
|
||||||
if (serverHost == null) {
|
|
||||||
print('Must specify --server_host');
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (_serverPort == null) {
|
|
||||||
print('Must specify --server_port');
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> runTest() async {
|
Future<void> runTest() async {
|
||||||
ChannelCredentials credentials;
|
ChannelCredentials credentials;
|
||||||
if (_useTls) {
|
if (useTls) {
|
||||||
List<int> trustedRoot;
|
List<int>? trustedRoot;
|
||||||
if (_useTestCA) {
|
if (useTestCA) {
|
||||||
trustedRoot = File('ca.pem').readAsBytesSync();
|
trustedRoot = File('ca.pem').readAsBytesSync();
|
||||||
}
|
}
|
||||||
credentials = ChannelCredentials.secure(
|
credentials = ChannelCredentials.secure(
|
||||||
|
@ -102,7 +80,7 @@ class Tester {
|
||||||
}
|
}
|
||||||
|
|
||||||
final options = ChannelOptions(credentials: credentials);
|
final options = ChannelOptions(credentials: credentials);
|
||||||
channel = ClientChannel(serverHost, port: _serverPort, options: options);
|
channel = ClientChannel(serverHost, port: serverPort, options: options);
|
||||||
client = TestServiceClient(channel);
|
client = TestServiceClient(channel);
|
||||||
unimplementedServiceClient = UnimplementedServiceClient(channel);
|
unimplementedServiceClient = UnimplementedServiceClient(channel);
|
||||||
await runTestCase();
|
await runTestCase();
|
||||||
|
@ -175,7 +153,6 @@ class Tester {
|
||||||
/// * response is non-null
|
/// * response is non-null
|
||||||
Future<void> emptyUnary() async {
|
Future<void> emptyUnary() async {
|
||||||
final response = await client.emptyCall(Empty());
|
final response = await client.emptyCall(Empty());
|
||||||
if (response == null) throw 'Expected non-null response.';
|
|
||||||
if (response is! Empty) throw 'Expected Empty response.';
|
if (response is! Empty) throw 'Expected Empty response.';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -661,17 +638,17 @@ class Tester {
|
||||||
final user = response.username;
|
final user = response.username;
|
||||||
final oauth = response.oauthScope;
|
final oauth = response.oauthScope;
|
||||||
|
|
||||||
if (user?.isEmpty ?? true) {
|
if (user.isEmpty) {
|
||||||
throw 'Username not received.';
|
throw 'Username not received.';
|
||||||
}
|
}
|
||||||
if (oauth?.isEmpty ?? true) {
|
if (oauth.isEmpty) {
|
||||||
throw 'OAuth scope not received.';
|
throw 'OAuth scope not received.';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user != defaultServiceAccount) {
|
if (user != defaultServiceAccount) {
|
||||||
throw 'Got user name $user, wanted $defaultServiceAccount';
|
throw 'Got user name $user, wanted $defaultServiceAccount';
|
||||||
}
|
}
|
||||||
if (!oauthScope.contains(oauth)) {
|
if (!oauthScope!.contains(oauth)) {
|
||||||
throw 'Got OAuth scope $oauth, which is not a substring of $oauthScope';
|
throw 'Got OAuth scope $oauth, which is not a substring of $oauthScope';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -748,7 +725,7 @@ class Tester {
|
||||||
final response = await _sendSimpleRequestForAuth(clientWithCredentials,
|
final response = await _sendSimpleRequestForAuth(clientWithCredentials,
|
||||||
fillUsername: true);
|
fillUsername: true);
|
||||||
final username = response.username;
|
final username = response.username;
|
||||||
if (username?.isEmpty ?? true) {
|
if (username.isEmpty) {
|
||||||
throw 'Username not received.';
|
throw 'Username not received.';
|
||||||
}
|
}
|
||||||
if (!serviceAccountJson.contains(username)) {
|
if (!serviceAccountJson.contains(username)) {
|
||||||
|
@ -797,7 +774,7 @@ class Tester {
|
||||||
/// * received SimpleResponse.oauth_scope is in `--oauth_scope`
|
/// * received SimpleResponse.oauth_scope is in `--oauth_scope`
|
||||||
Future<void> oauth2AuthToken() async {
|
Future<void> oauth2AuthToken() async {
|
||||||
final credentials =
|
final credentials =
|
||||||
ServiceAccountAuthenticator(serviceAccountJson, [oauthScope]);
|
ServiceAccountAuthenticator(serviceAccountJson, [oauthScope!]);
|
||||||
final clientWithCredentials =
|
final clientWithCredentials =
|
||||||
TestServiceClient(channel, options: credentials.toCallOptions);
|
TestServiceClient(channel, options: credentials.toCallOptions);
|
||||||
|
|
||||||
|
@ -807,17 +784,18 @@ class Tester {
|
||||||
final user = response.username;
|
final user = response.username;
|
||||||
final oauth = response.oauthScope;
|
final oauth = response.oauthScope;
|
||||||
|
|
||||||
if (user?.isEmpty ?? true) {
|
if (user.isEmpty) {
|
||||||
throw 'Username not received.';
|
throw 'Username not received.';
|
||||||
}
|
}
|
||||||
if (oauth?.isEmpty ?? true) {
|
if (oauth.isEmpty) {
|
||||||
throw 'OAuth scope not received.';
|
throw 'OAuth scope not received.';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!serviceAccountJson.contains(user)) {
|
if (!serviceAccountJson.contains(user)) {
|
||||||
throw 'Got user name $user, which is not a substring of $serviceAccountJson';
|
throw 'Got user name $user, which is not'
|
||||||
|
' a substring of $serviceAccountJson';
|
||||||
}
|
}
|
||||||
if (!oauthScope.contains(oauth)) {
|
if (!oauthScope!.contains(oauth)) {
|
||||||
throw 'Got OAuth scope $oauth, which is not a substring of $oauthScope';
|
throw 'Got OAuth scope $oauth, which is not a substring of $oauthScope';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -852,7 +830,7 @@ class Tester {
|
||||||
/// username matches the email address in the key file.
|
/// username matches the email address in the key file.
|
||||||
Future<void> perRpcCreds() async {
|
Future<void> perRpcCreds() async {
|
||||||
final credentials =
|
final credentials =
|
||||||
ServiceAccountAuthenticator(serviceAccountJson, [oauthScope]);
|
ServiceAccountAuthenticator(serviceAccountJson, [oauthScope!]);
|
||||||
|
|
||||||
final response = await _sendSimpleRequestForAuth(client,
|
final response = await _sendSimpleRequestForAuth(client,
|
||||||
fillUsername: true,
|
fillUsername: true,
|
||||||
|
@ -862,17 +840,17 @@ class Tester {
|
||||||
final user = response.username;
|
final user = response.username;
|
||||||
final oauth = response.oauthScope;
|
final oauth = response.oauthScope;
|
||||||
|
|
||||||
if (user?.isEmpty ?? true) {
|
if (user.isEmpty) {
|
||||||
throw 'Username not received.';
|
throw 'Username not received.';
|
||||||
}
|
}
|
||||||
if (oauth?.isEmpty ?? true) {
|
if (oauth.isEmpty) {
|
||||||
throw 'OAuth scope not received.';
|
throw 'OAuth scope not received.';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!serviceAccountJson.contains(user)) {
|
if (!serviceAccountJson.contains(user)) {
|
||||||
throw 'Got user name $user, which is not a substring of $serviceAccountJson';
|
throw 'Got user name $user, which is not a substring of $serviceAccountJson';
|
||||||
}
|
}
|
||||||
if (!oauthScope.contains(oauth)) {
|
if (!oauthScope!.contains(oauth)) {
|
||||||
throw 'Got OAuth scope $oauth, which is not a substring of $oauthScope';
|
throw 'Got OAuth scope $oauth, which is not a substring of $oauthScope';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -880,7 +858,7 @@ class Tester {
|
||||||
Future<SimpleResponse> _sendSimpleRequestForAuth(TestServiceClient client,
|
Future<SimpleResponse> _sendSimpleRequestForAuth(TestServiceClient client,
|
||||||
{bool fillUsername = false,
|
{bool fillUsername = false,
|
||||||
bool fillOauthScope = false,
|
bool fillOauthScope = false,
|
||||||
CallOptions options}) async {
|
CallOptions? options}) async {
|
||||||
final payload = Payload()..body = Uint8List(271828);
|
final payload = Payload()..body = Uint8List(271828);
|
||||||
final request = SimpleRequest()
|
final request = SimpleRequest()
|
||||||
..responseSize = 314159
|
..responseSize = 314159
|
||||||
|
@ -1003,7 +981,7 @@ class Tester {
|
||||||
final expectedStatus = GrpcError.custom(2, 'test status message');
|
final expectedStatus = GrpcError.custom(2, 'test status message');
|
||||||
final responseStatus = EchoStatus()
|
final responseStatus = EchoStatus()
|
||||||
..code = expectedStatus.code
|
..code = expectedStatus.code
|
||||||
..message = expectedStatus.message;
|
..message = expectedStatus.message!;
|
||||||
try {
|
try {
|
||||||
await client.unaryCall(SimpleRequest()..responseStatus = responseStatus);
|
await client.unaryCall(SimpleRequest()..responseStatus = responseStatus);
|
||||||
throw 'Did not receive correct status code.';
|
throw 'Did not receive correct status code.';
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Generated code. Do not modify.
|
// Generated code. Do not modify.
|
||||||
// source: empty.proto
|
// source: empty.proto
|
||||||
//
|
//
|
||||||
// @dart = 2.7
|
// @dart = 2.12
|
||||||
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
|
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
|
||||||
|
|
||||||
import 'dart:core' as $core;
|
import 'dart:core' as $core;
|
||||||
|
@ -36,8 +36,9 @@ class Empty extends $pb.GeneratedMessage {
|
||||||
@$core.Deprecated('Using this can add significant overhead to your binary. '
|
@$core.Deprecated('Using this can add significant overhead to your binary. '
|
||||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||||
'Will be removed in next major version')
|
'Will be removed in next major version')
|
||||||
Empty copyWith(void Function(Empty) updates) => super.copyWith(
|
Empty copyWith(void Function(Empty) updates) =>
|
||||||
(message) => updates(message as Empty)); // ignore: deprecated_member_use
|
super.copyWith((message) => updates(message as Empty))
|
||||||
|
as Empty; // ignore: deprecated_member_use
|
||||||
$pb.BuilderInfo get info_ => _i;
|
$pb.BuilderInfo get info_ => _i;
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static Empty create() => Empty._();
|
static Empty create() => Empty._();
|
||||||
|
@ -46,5 +47,5 @@ class Empty extends $pb.GeneratedMessage {
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static Empty getDefault() =>
|
static Empty getDefault() =>
|
||||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Empty>(create);
|
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Empty>(create);
|
||||||
static Empty _defaultInstance;
|
static Empty? _defaultInstance;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Generated code. Do not modify.
|
// Generated code. Do not modify.
|
||||||
// source: messages.proto
|
// source: messages.proto
|
||||||
//
|
//
|
||||||
// @dart = 2.7
|
// @dart = 2.12
|
||||||
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
|
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
|
||||||
|
|
||||||
import 'dart:core' as $core;
|
import 'dart:core' as $core;
|
||||||
|
@ -32,7 +32,7 @@ class BoolValue extends $pb.GeneratedMessage {
|
||||||
|
|
||||||
BoolValue._() : super();
|
BoolValue._() : super();
|
||||||
factory BoolValue({
|
factory BoolValue({
|
||||||
$core.bool value,
|
$core.bool? value,
|
||||||
}) {
|
}) {
|
||||||
final _result = create();
|
final _result = create();
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
|
@ -54,8 +54,8 @@ class BoolValue extends $pb.GeneratedMessage {
|
||||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||||
'Will be removed in next major version')
|
'Will be removed in next major version')
|
||||||
BoolValue copyWith(void Function(BoolValue) updates) =>
|
BoolValue copyWith(void Function(BoolValue) updates) =>
|
||||||
super.copyWith((message) =>
|
super.copyWith((message) => updates(message as BoolValue))
|
||||||
updates(message as BoolValue)); // ignore: deprecated_member_use
|
as BoolValue; // ignore: deprecated_member_use
|
||||||
$pb.BuilderInfo get info_ => _i;
|
$pb.BuilderInfo get info_ => _i;
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static BoolValue create() => BoolValue._();
|
static BoolValue create() => BoolValue._();
|
||||||
|
@ -64,7 +64,7 @@ class BoolValue extends $pb.GeneratedMessage {
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static BoolValue getDefault() =>
|
static BoolValue getDefault() =>
|
||||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<BoolValue>(create);
|
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<BoolValue>(create);
|
||||||
static BoolValue _defaultInstance;
|
static BoolValue? _defaultInstance;
|
||||||
|
|
||||||
@$pb.TagNumber(1)
|
@$pb.TagNumber(1)
|
||||||
$core.bool get value => $_getBF(0);
|
$core.bool get value => $_getBF(0);
|
||||||
|
@ -106,8 +106,8 @@ class Payload extends $pb.GeneratedMessage {
|
||||||
|
|
||||||
Payload._() : super();
|
Payload._() : super();
|
||||||
factory Payload({
|
factory Payload({
|
||||||
PayloadType type,
|
PayloadType? type,
|
||||||
$core.List<$core.int> body,
|
$core.List<$core.int>? body,
|
||||||
}) {
|
}) {
|
||||||
final _result = create();
|
final _result = create();
|
||||||
if (type != null) {
|
if (type != null) {
|
||||||
|
@ -132,8 +132,8 @@ class Payload extends $pb.GeneratedMessage {
|
||||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||||
'Will be removed in next major version')
|
'Will be removed in next major version')
|
||||||
Payload copyWith(void Function(Payload) updates) =>
|
Payload copyWith(void Function(Payload) updates) =>
|
||||||
super.copyWith((message) =>
|
super.copyWith((message) => updates(message as Payload))
|
||||||
updates(message as Payload)); // ignore: deprecated_member_use
|
as Payload; // ignore: deprecated_member_use
|
||||||
$pb.BuilderInfo get info_ => _i;
|
$pb.BuilderInfo get info_ => _i;
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static Payload create() => Payload._();
|
static Payload create() => Payload._();
|
||||||
|
@ -142,7 +142,7 @@ class Payload extends $pb.GeneratedMessage {
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static Payload getDefault() =>
|
static Payload getDefault() =>
|
||||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Payload>(create);
|
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Payload>(create);
|
||||||
static Payload _defaultInstance;
|
static Payload? _defaultInstance;
|
||||||
|
|
||||||
@$pb.TagNumber(1)
|
@$pb.TagNumber(1)
|
||||||
PayloadType get type => $_getN(0);
|
PayloadType get type => $_getN(0);
|
||||||
|
@ -194,8 +194,8 @@ class EchoStatus extends $pb.GeneratedMessage {
|
||||||
|
|
||||||
EchoStatus._() : super();
|
EchoStatus._() : super();
|
||||||
factory EchoStatus({
|
factory EchoStatus({
|
||||||
$core.int code,
|
$core.int? code,
|
||||||
$core.String message,
|
$core.String? message,
|
||||||
}) {
|
}) {
|
||||||
final _result = create();
|
final _result = create();
|
||||||
if (code != null) {
|
if (code != null) {
|
||||||
|
@ -220,8 +220,8 @@ class EchoStatus extends $pb.GeneratedMessage {
|
||||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||||
'Will be removed in next major version')
|
'Will be removed in next major version')
|
||||||
EchoStatus copyWith(void Function(EchoStatus) updates) =>
|
EchoStatus copyWith(void Function(EchoStatus) updates) =>
|
||||||
super.copyWith((message) =>
|
super.copyWith((message) => updates(message as EchoStatus))
|
||||||
updates(message as EchoStatus)); // ignore: deprecated_member_use
|
as EchoStatus; // ignore: deprecated_member_use
|
||||||
$pb.BuilderInfo get info_ => _i;
|
$pb.BuilderInfo get info_ => _i;
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static EchoStatus create() => EchoStatus._();
|
static EchoStatus create() => EchoStatus._();
|
||||||
|
@ -230,7 +230,7 @@ class EchoStatus extends $pb.GeneratedMessage {
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static EchoStatus getDefault() => _defaultInstance ??=
|
static EchoStatus getDefault() => _defaultInstance ??=
|
||||||
$pb.GeneratedMessage.$_defaultFor<EchoStatus>(create);
|
$pb.GeneratedMessage.$_defaultFor<EchoStatus>(create);
|
||||||
static EchoStatus _defaultInstance;
|
static EchoStatus? _defaultInstance;
|
||||||
|
|
||||||
@$pb.TagNumber(1)
|
@$pb.TagNumber(1)
|
||||||
$core.int get code => $_getIZ(0);
|
$core.int get code => $_getIZ(0);
|
||||||
|
@ -289,14 +289,14 @@ class SimpleRequest extends $pb.GeneratedMessage {
|
||||||
|
|
||||||
SimpleRequest._() : super();
|
SimpleRequest._() : super();
|
||||||
factory SimpleRequest({
|
factory SimpleRequest({
|
||||||
PayloadType responseType,
|
PayloadType? responseType,
|
||||||
$core.int responseSize,
|
$core.int? responseSize,
|
||||||
Payload payload,
|
Payload? payload,
|
||||||
$core.bool fillUsername,
|
$core.bool? fillUsername,
|
||||||
$core.bool fillOauthScope,
|
$core.bool? fillOauthScope,
|
||||||
BoolValue responseCompressed,
|
BoolValue? responseCompressed,
|
||||||
EchoStatus responseStatus,
|
EchoStatus? responseStatus,
|
||||||
BoolValue expectCompressed,
|
BoolValue? expectCompressed,
|
||||||
}) {
|
}) {
|
||||||
final _result = create();
|
final _result = create();
|
||||||
if (responseType != null) {
|
if (responseType != null) {
|
||||||
|
@ -339,8 +339,8 @@ class SimpleRequest extends $pb.GeneratedMessage {
|
||||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||||
'Will be removed in next major version')
|
'Will be removed in next major version')
|
||||||
SimpleRequest copyWith(void Function(SimpleRequest) updates) =>
|
SimpleRequest copyWith(void Function(SimpleRequest) updates) =>
|
||||||
super.copyWith((message) =>
|
super.copyWith((message) => updates(message as SimpleRequest))
|
||||||
updates(message as SimpleRequest)); // ignore: deprecated_member_use
|
as SimpleRequest; // ignore: deprecated_member_use
|
||||||
$pb.BuilderInfo get info_ => _i;
|
$pb.BuilderInfo get info_ => _i;
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static SimpleRequest create() => SimpleRequest._();
|
static SimpleRequest create() => SimpleRequest._();
|
||||||
|
@ -350,7 +350,7 @@ class SimpleRequest extends $pb.GeneratedMessage {
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static SimpleRequest getDefault() => _defaultInstance ??=
|
static SimpleRequest getDefault() => _defaultInstance ??=
|
||||||
$pb.GeneratedMessage.$_defaultFor<SimpleRequest>(create);
|
$pb.GeneratedMessage.$_defaultFor<SimpleRequest>(create);
|
||||||
static SimpleRequest _defaultInstance;
|
static SimpleRequest? _defaultInstance;
|
||||||
|
|
||||||
@$pb.TagNumber(1)
|
@$pb.TagNumber(1)
|
||||||
PayloadType get responseType => $_getN(0);
|
PayloadType get responseType => $_getN(0);
|
||||||
|
@ -480,9 +480,9 @@ class SimpleResponse extends $pb.GeneratedMessage {
|
||||||
|
|
||||||
SimpleResponse._() : super();
|
SimpleResponse._() : super();
|
||||||
factory SimpleResponse({
|
factory SimpleResponse({
|
||||||
Payload payload,
|
Payload? payload,
|
||||||
$core.String username,
|
$core.String? username,
|
||||||
$core.String oauthScope,
|
$core.String? oauthScope,
|
||||||
}) {
|
}) {
|
||||||
final _result = create();
|
final _result = create();
|
||||||
if (payload != null) {
|
if (payload != null) {
|
||||||
|
@ -510,8 +510,8 @@ class SimpleResponse extends $pb.GeneratedMessage {
|
||||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||||
'Will be removed in next major version')
|
'Will be removed in next major version')
|
||||||
SimpleResponse copyWith(void Function(SimpleResponse) updates) =>
|
SimpleResponse copyWith(void Function(SimpleResponse) updates) =>
|
||||||
super.copyWith((message) =>
|
super.copyWith((message) => updates(message as SimpleResponse))
|
||||||
updates(message as SimpleResponse)); // ignore: deprecated_member_use
|
as SimpleResponse; // ignore: deprecated_member_use
|
||||||
$pb.BuilderInfo get info_ => _i;
|
$pb.BuilderInfo get info_ => _i;
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static SimpleResponse create() => SimpleResponse._();
|
static SimpleResponse create() => SimpleResponse._();
|
||||||
|
@ -521,7 +521,7 @@ class SimpleResponse extends $pb.GeneratedMessage {
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static SimpleResponse getDefault() => _defaultInstance ??=
|
static SimpleResponse getDefault() => _defaultInstance ??=
|
||||||
$pb.GeneratedMessage.$_defaultFor<SimpleResponse>(create);
|
$pb.GeneratedMessage.$_defaultFor<SimpleResponse>(create);
|
||||||
static SimpleResponse _defaultInstance;
|
static SimpleResponse? _defaultInstance;
|
||||||
|
|
||||||
@$pb.TagNumber(1)
|
@$pb.TagNumber(1)
|
||||||
Payload get payload => $_getN(0);
|
Payload get payload => $_getN(0);
|
||||||
|
@ -585,8 +585,8 @@ class StreamingInputCallRequest extends $pb.GeneratedMessage {
|
||||||
|
|
||||||
StreamingInputCallRequest._() : super();
|
StreamingInputCallRequest._() : super();
|
||||||
factory StreamingInputCallRequest({
|
factory StreamingInputCallRequest({
|
||||||
Payload payload,
|
Payload? payload,
|
||||||
BoolValue expectCompressed,
|
BoolValue? expectCompressed,
|
||||||
}) {
|
}) {
|
||||||
final _result = create();
|
final _result = create();
|
||||||
if (payload != null) {
|
if (payload != null) {
|
||||||
|
@ -613,8 +613,8 @@ class StreamingInputCallRequest extends $pb.GeneratedMessage {
|
||||||
'Will be removed in next major version')
|
'Will be removed in next major version')
|
||||||
StreamingInputCallRequest copyWith(
|
StreamingInputCallRequest copyWith(
|
||||||
void Function(StreamingInputCallRequest) updates) =>
|
void Function(StreamingInputCallRequest) updates) =>
|
||||||
super.copyWith((message) => updates(message
|
super.copyWith((message) => updates(message as StreamingInputCallRequest))
|
||||||
as StreamingInputCallRequest)); // ignore: deprecated_member_use
|
as StreamingInputCallRequest; // ignore: deprecated_member_use
|
||||||
$pb.BuilderInfo get info_ => _i;
|
$pb.BuilderInfo get info_ => _i;
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static StreamingInputCallRequest create() => StreamingInputCallRequest._();
|
static StreamingInputCallRequest create() => StreamingInputCallRequest._();
|
||||||
|
@ -624,7 +624,7 @@ class StreamingInputCallRequest extends $pb.GeneratedMessage {
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static StreamingInputCallRequest getDefault() => _defaultInstance ??=
|
static StreamingInputCallRequest getDefault() => _defaultInstance ??=
|
||||||
$pb.GeneratedMessage.$_defaultFor<StreamingInputCallRequest>(create);
|
$pb.GeneratedMessage.$_defaultFor<StreamingInputCallRequest>(create);
|
||||||
static StreamingInputCallRequest _defaultInstance;
|
static StreamingInputCallRequest? _defaultInstance;
|
||||||
|
|
||||||
@$pb.TagNumber(1)
|
@$pb.TagNumber(1)
|
||||||
Payload get payload => $_getN(0);
|
Payload get payload => $_getN(0);
|
||||||
|
@ -675,7 +675,7 @@ class StreamingInputCallResponse extends $pb.GeneratedMessage {
|
||||||
|
|
||||||
StreamingInputCallResponse._() : super();
|
StreamingInputCallResponse._() : super();
|
||||||
factory StreamingInputCallResponse({
|
factory StreamingInputCallResponse({
|
||||||
$core.int aggregatedPayloadSize,
|
$core.int? aggregatedPayloadSize,
|
||||||
}) {
|
}) {
|
||||||
final _result = create();
|
final _result = create();
|
||||||
if (aggregatedPayloadSize != null) {
|
if (aggregatedPayloadSize != null) {
|
||||||
|
@ -699,8 +699,9 @@ class StreamingInputCallResponse extends $pb.GeneratedMessage {
|
||||||
'Will be removed in next major version')
|
'Will be removed in next major version')
|
||||||
StreamingInputCallResponse copyWith(
|
StreamingInputCallResponse copyWith(
|
||||||
void Function(StreamingInputCallResponse) updates) =>
|
void Function(StreamingInputCallResponse) updates) =>
|
||||||
super.copyWith((message) => updates(message
|
super.copyWith(
|
||||||
as StreamingInputCallResponse)); // ignore: deprecated_member_use
|
(message) => updates(message as StreamingInputCallResponse))
|
||||||
|
as StreamingInputCallResponse; // ignore: deprecated_member_use
|
||||||
$pb.BuilderInfo get info_ => _i;
|
$pb.BuilderInfo get info_ => _i;
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static StreamingInputCallResponse create() => StreamingInputCallResponse._();
|
static StreamingInputCallResponse create() => StreamingInputCallResponse._();
|
||||||
|
@ -710,7 +711,7 @@ class StreamingInputCallResponse extends $pb.GeneratedMessage {
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static StreamingInputCallResponse getDefault() => _defaultInstance ??=
|
static StreamingInputCallResponse getDefault() => _defaultInstance ??=
|
||||||
$pb.GeneratedMessage.$_defaultFor<StreamingInputCallResponse>(create);
|
$pb.GeneratedMessage.$_defaultFor<StreamingInputCallResponse>(create);
|
||||||
static StreamingInputCallResponse _defaultInstance;
|
static StreamingInputCallResponse? _defaultInstance;
|
||||||
|
|
||||||
@$pb.TagNumber(1)
|
@$pb.TagNumber(1)
|
||||||
$core.int get aggregatedPayloadSize => $_getIZ(0);
|
$core.int get aggregatedPayloadSize => $_getIZ(0);
|
||||||
|
@ -754,9 +755,9 @@ class ResponseParameters extends $pb.GeneratedMessage {
|
||||||
|
|
||||||
ResponseParameters._() : super();
|
ResponseParameters._() : super();
|
||||||
factory ResponseParameters({
|
factory ResponseParameters({
|
||||||
$core.int size,
|
$core.int? size,
|
||||||
$core.int intervalUs,
|
$core.int? intervalUs,
|
||||||
BoolValue compressed,
|
BoolValue? compressed,
|
||||||
}) {
|
}) {
|
||||||
final _result = create();
|
final _result = create();
|
||||||
if (size != null) {
|
if (size != null) {
|
||||||
|
@ -784,8 +785,8 @@ class ResponseParameters extends $pb.GeneratedMessage {
|
||||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||||
'Will be removed in next major version')
|
'Will be removed in next major version')
|
||||||
ResponseParameters copyWith(void Function(ResponseParameters) updates) =>
|
ResponseParameters copyWith(void Function(ResponseParameters) updates) =>
|
||||||
super.copyWith((message) => updates(
|
super.copyWith((message) => updates(message as ResponseParameters))
|
||||||
message as ResponseParameters)); // ignore: deprecated_member_use
|
as ResponseParameters; // ignore: deprecated_member_use
|
||||||
$pb.BuilderInfo get info_ => _i;
|
$pb.BuilderInfo get info_ => _i;
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static ResponseParameters create() => ResponseParameters._();
|
static ResponseParameters create() => ResponseParameters._();
|
||||||
|
@ -795,7 +796,7 @@ class ResponseParameters extends $pb.GeneratedMessage {
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static ResponseParameters getDefault() => _defaultInstance ??=
|
static ResponseParameters getDefault() => _defaultInstance ??=
|
||||||
$pb.GeneratedMessage.$_defaultFor<ResponseParameters>(create);
|
$pb.GeneratedMessage.$_defaultFor<ResponseParameters>(create);
|
||||||
static ResponseParameters _defaultInstance;
|
static ResponseParameters? _defaultInstance;
|
||||||
|
|
||||||
@$pb.TagNumber(1)
|
@$pb.TagNumber(1)
|
||||||
$core.int get size => $_getIZ(0);
|
$core.int get size => $_getIZ(0);
|
||||||
|
@ -862,10 +863,10 @@ class StreamingOutputCallRequest extends $pb.GeneratedMessage {
|
||||||
|
|
||||||
StreamingOutputCallRequest._() : super();
|
StreamingOutputCallRequest._() : super();
|
||||||
factory StreamingOutputCallRequest({
|
factory StreamingOutputCallRequest({
|
||||||
PayloadType responseType,
|
PayloadType? responseType,
|
||||||
$core.Iterable<ResponseParameters> responseParameters,
|
$core.Iterable<ResponseParameters>? responseParameters,
|
||||||
Payload payload,
|
Payload? payload,
|
||||||
EchoStatus responseStatus,
|
EchoStatus? responseStatus,
|
||||||
}) {
|
}) {
|
||||||
final _result = create();
|
final _result = create();
|
||||||
if (responseType != null) {
|
if (responseType != null) {
|
||||||
|
@ -898,8 +899,9 @@ class StreamingOutputCallRequest extends $pb.GeneratedMessage {
|
||||||
'Will be removed in next major version')
|
'Will be removed in next major version')
|
||||||
StreamingOutputCallRequest copyWith(
|
StreamingOutputCallRequest copyWith(
|
||||||
void Function(StreamingOutputCallRequest) updates) =>
|
void Function(StreamingOutputCallRequest) updates) =>
|
||||||
super.copyWith((message) => updates(message
|
super.copyWith(
|
||||||
as StreamingOutputCallRequest)); // ignore: deprecated_member_use
|
(message) => updates(message as StreamingOutputCallRequest))
|
||||||
|
as StreamingOutputCallRequest; // ignore: deprecated_member_use
|
||||||
$pb.BuilderInfo get info_ => _i;
|
$pb.BuilderInfo get info_ => _i;
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static StreamingOutputCallRequest create() => StreamingOutputCallRequest._();
|
static StreamingOutputCallRequest create() => StreamingOutputCallRequest._();
|
||||||
|
@ -909,7 +911,7 @@ class StreamingOutputCallRequest extends $pb.GeneratedMessage {
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static StreamingOutputCallRequest getDefault() => _defaultInstance ??=
|
static StreamingOutputCallRequest getDefault() => _defaultInstance ??=
|
||||||
$pb.GeneratedMessage.$_defaultFor<StreamingOutputCallRequest>(create);
|
$pb.GeneratedMessage.$_defaultFor<StreamingOutputCallRequest>(create);
|
||||||
static StreamingOutputCallRequest _defaultInstance;
|
static StreamingOutputCallRequest? _defaultInstance;
|
||||||
|
|
||||||
@$pb.TagNumber(1)
|
@$pb.TagNumber(1)
|
||||||
PayloadType get responseType => $_getN(0);
|
PayloadType get responseType => $_getN(0);
|
||||||
|
@ -975,7 +977,7 @@ class StreamingOutputCallResponse extends $pb.GeneratedMessage {
|
||||||
|
|
||||||
StreamingOutputCallResponse._() : super();
|
StreamingOutputCallResponse._() : super();
|
||||||
factory StreamingOutputCallResponse({
|
factory StreamingOutputCallResponse({
|
||||||
Payload payload,
|
Payload? payload,
|
||||||
}) {
|
}) {
|
||||||
final _result = create();
|
final _result = create();
|
||||||
if (payload != null) {
|
if (payload != null) {
|
||||||
|
@ -999,8 +1001,9 @@ class StreamingOutputCallResponse extends $pb.GeneratedMessage {
|
||||||
'Will be removed in next major version')
|
'Will be removed in next major version')
|
||||||
StreamingOutputCallResponse copyWith(
|
StreamingOutputCallResponse copyWith(
|
||||||
void Function(StreamingOutputCallResponse) updates) =>
|
void Function(StreamingOutputCallResponse) updates) =>
|
||||||
super.copyWith((message) => updates(message
|
super.copyWith(
|
||||||
as StreamingOutputCallResponse)); // ignore: deprecated_member_use
|
(message) => updates(message as StreamingOutputCallResponse))
|
||||||
|
as StreamingOutputCallResponse; // ignore: deprecated_member_use
|
||||||
$pb.BuilderInfo get info_ => _i;
|
$pb.BuilderInfo get info_ => _i;
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static StreamingOutputCallResponse create() =>
|
static StreamingOutputCallResponse create() =>
|
||||||
|
@ -1011,7 +1014,7 @@ class StreamingOutputCallResponse extends $pb.GeneratedMessage {
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static StreamingOutputCallResponse getDefault() => _defaultInstance ??=
|
static StreamingOutputCallResponse getDefault() => _defaultInstance ??=
|
||||||
$pb.GeneratedMessage.$_defaultFor<StreamingOutputCallResponse>(create);
|
$pb.GeneratedMessage.$_defaultFor<StreamingOutputCallResponse>(create);
|
||||||
static StreamingOutputCallResponse _defaultInstance;
|
static StreamingOutputCallResponse? _defaultInstance;
|
||||||
|
|
||||||
@$pb.TagNumber(1)
|
@$pb.TagNumber(1)
|
||||||
Payload get payload => $_getN(0);
|
Payload get payload => $_getN(0);
|
||||||
|
@ -1048,7 +1051,7 @@ class ReconnectParams extends $pb.GeneratedMessage {
|
||||||
|
|
||||||
ReconnectParams._() : super();
|
ReconnectParams._() : super();
|
||||||
factory ReconnectParams({
|
factory ReconnectParams({
|
||||||
$core.int maxReconnectBackoffMs,
|
$core.int? maxReconnectBackoffMs,
|
||||||
}) {
|
}) {
|
||||||
final _result = create();
|
final _result = create();
|
||||||
if (maxReconnectBackoffMs != null) {
|
if (maxReconnectBackoffMs != null) {
|
||||||
|
@ -1070,8 +1073,8 @@ class ReconnectParams extends $pb.GeneratedMessage {
|
||||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||||
'Will be removed in next major version')
|
'Will be removed in next major version')
|
||||||
ReconnectParams copyWith(void Function(ReconnectParams) updates) =>
|
ReconnectParams copyWith(void Function(ReconnectParams) updates) =>
|
||||||
super.copyWith((message) =>
|
super.copyWith((message) => updates(message as ReconnectParams))
|
||||||
updates(message as ReconnectParams)); // ignore: deprecated_member_use
|
as ReconnectParams; // ignore: deprecated_member_use
|
||||||
$pb.BuilderInfo get info_ => _i;
|
$pb.BuilderInfo get info_ => _i;
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static ReconnectParams create() => ReconnectParams._();
|
static ReconnectParams create() => ReconnectParams._();
|
||||||
|
@ -1081,7 +1084,7 @@ class ReconnectParams extends $pb.GeneratedMessage {
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static ReconnectParams getDefault() => _defaultInstance ??=
|
static ReconnectParams getDefault() => _defaultInstance ??=
|
||||||
$pb.GeneratedMessage.$_defaultFor<ReconnectParams>(create);
|
$pb.GeneratedMessage.$_defaultFor<ReconnectParams>(create);
|
||||||
static ReconnectParams _defaultInstance;
|
static ReconnectParams? _defaultInstance;
|
||||||
|
|
||||||
@$pb.TagNumber(1)
|
@$pb.TagNumber(1)
|
||||||
$core.int get maxReconnectBackoffMs => $_getIZ(0);
|
$core.int get maxReconnectBackoffMs => $_getIZ(0);
|
||||||
|
@ -1121,8 +1124,8 @@ class ReconnectInfo extends $pb.GeneratedMessage {
|
||||||
|
|
||||||
ReconnectInfo._() : super();
|
ReconnectInfo._() : super();
|
||||||
factory ReconnectInfo({
|
factory ReconnectInfo({
|
||||||
$core.bool passed,
|
$core.bool? passed,
|
||||||
$core.Iterable<$core.int> backoffMs,
|
$core.Iterable<$core.int>? backoffMs,
|
||||||
}) {
|
}) {
|
||||||
final _result = create();
|
final _result = create();
|
||||||
if (passed != null) {
|
if (passed != null) {
|
||||||
|
@ -1147,8 +1150,8 @@ class ReconnectInfo extends $pb.GeneratedMessage {
|
||||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||||
'Will be removed in next major version')
|
'Will be removed in next major version')
|
||||||
ReconnectInfo copyWith(void Function(ReconnectInfo) updates) =>
|
ReconnectInfo copyWith(void Function(ReconnectInfo) updates) =>
|
||||||
super.copyWith((message) =>
|
super.copyWith((message) => updates(message as ReconnectInfo))
|
||||||
updates(message as ReconnectInfo)); // ignore: deprecated_member_use
|
as ReconnectInfo; // ignore: deprecated_member_use
|
||||||
$pb.BuilderInfo get info_ => _i;
|
$pb.BuilderInfo get info_ => _i;
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static ReconnectInfo create() => ReconnectInfo._();
|
static ReconnectInfo create() => ReconnectInfo._();
|
||||||
|
@ -1158,7 +1161,7 @@ class ReconnectInfo extends $pb.GeneratedMessage {
|
||||||
@$core.pragma('dart2js:noInline')
|
@$core.pragma('dart2js:noInline')
|
||||||
static ReconnectInfo getDefault() => _defaultInstance ??=
|
static ReconnectInfo getDefault() => _defaultInstance ??=
|
||||||
$pb.GeneratedMessage.$_defaultFor<ReconnectInfo>(create);
|
$pb.GeneratedMessage.$_defaultFor<ReconnectInfo>(create);
|
||||||
static ReconnectInfo _defaultInstance;
|
static ReconnectInfo? _defaultInstance;
|
||||||
|
|
||||||
@$pb.TagNumber(1)
|
@$pb.TagNumber(1)
|
||||||
$core.bool get passed => $_getBF(0);
|
$core.bool get passed => $_getBF(0);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Generated code. Do not modify.
|
// Generated code. Do not modify.
|
||||||
// source: messages.proto
|
// source: messages.proto
|
||||||
//
|
//
|
||||||
// @dart = 2.7
|
// @dart = 2.12
|
||||||
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
|
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
|
||||||
|
|
||||||
// ignore_for_file: UNDEFINED_SHOWN_NAME
|
// ignore_for_file: UNDEFINED_SHOWN_NAME
|
||||||
|
@ -22,7 +22,7 @@ class PayloadType extends $pb.ProtobufEnum {
|
||||||
|
|
||||||
static final $core.Map<$core.int, PayloadType> _byValue =
|
static final $core.Map<$core.int, PayloadType> _byValue =
|
||||||
$pb.ProtobufEnum.initByValue(values);
|
$pb.ProtobufEnum.initByValue(values);
|
||||||
static PayloadType valueOf($core.int value) => _byValue[value];
|
static PayloadType? valueOf($core.int value) => _byValue[value];
|
||||||
|
|
||||||
const PayloadType._($core.int v, $core.String n) : super(v, n);
|
const PayloadType._($core.int v, $core.String n) : super(v, n);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Generated code. Do not modify.
|
// Generated code. Do not modify.
|
||||||
// source: test.proto
|
// source: test.proto
|
||||||
//
|
//
|
||||||
// @dart = 2.7
|
// @dart = 2.12
|
||||||
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
|
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
|
||||||
|
|
||||||
import 'dart:core' as $core;
|
import 'dart:core' as $core;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Generated code. Do not modify.
|
// Generated code. Do not modify.
|
||||||
// source: test.proto
|
// source: test.proto
|
||||||
//
|
//
|
||||||
// @dart = 2.7
|
// @dart = 2.12
|
||||||
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
|
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
|
||||||
|
|
||||||
import 'dart:async' as $async;
|
import 'dart:async' as $async;
|
||||||
|
@ -59,29 +59,29 @@ class TestServiceClient extends $grpc.Client {
|
||||||
($core.List<$core.int> value) => $0.Empty.fromBuffer(value));
|
($core.List<$core.int> value) => $0.Empty.fromBuffer(value));
|
||||||
|
|
||||||
TestServiceClient($grpc.ClientChannel channel,
|
TestServiceClient($grpc.ClientChannel channel,
|
||||||
{$grpc.CallOptions options,
|
{$grpc.CallOptions? options,
|
||||||
$core.Iterable<$grpc.ClientInterceptor> interceptors})
|
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
|
||||||
: super(channel, options: options, interceptors: interceptors);
|
: super(channel, options: options, interceptors: interceptors);
|
||||||
|
|
||||||
$grpc.ResponseFuture<$0.Empty> emptyCall($0.Empty request,
|
$grpc.ResponseFuture<$0.Empty> emptyCall($0.Empty request,
|
||||||
{$grpc.CallOptions options}) {
|
{$grpc.CallOptions? options}) {
|
||||||
return $createUnaryCall(_$emptyCall, request, options: options);
|
return $createUnaryCall(_$emptyCall, request, options: options);
|
||||||
}
|
}
|
||||||
|
|
||||||
$grpc.ResponseFuture<$1.SimpleResponse> unaryCall($1.SimpleRequest request,
|
$grpc.ResponseFuture<$1.SimpleResponse> unaryCall($1.SimpleRequest request,
|
||||||
{$grpc.CallOptions options}) {
|
{$grpc.CallOptions? options}) {
|
||||||
return $createUnaryCall(_$unaryCall, request, options: options);
|
return $createUnaryCall(_$unaryCall, request, options: options);
|
||||||
}
|
}
|
||||||
|
|
||||||
$grpc.ResponseFuture<$1.SimpleResponse> cacheableUnaryCall(
|
$grpc.ResponseFuture<$1.SimpleResponse> cacheableUnaryCall(
|
||||||
$1.SimpleRequest request,
|
$1.SimpleRequest request,
|
||||||
{$grpc.CallOptions options}) {
|
{$grpc.CallOptions? options}) {
|
||||||
return $createUnaryCall(_$cacheableUnaryCall, request, options: options);
|
return $createUnaryCall(_$cacheableUnaryCall, request, options: options);
|
||||||
}
|
}
|
||||||
|
|
||||||
$grpc.ResponseStream<$1.StreamingOutputCallResponse> streamingOutputCall(
|
$grpc.ResponseStream<$1.StreamingOutputCallResponse> streamingOutputCall(
|
||||||
$1.StreamingOutputCallRequest request,
|
$1.StreamingOutputCallRequest request,
|
||||||
{$grpc.CallOptions options}) {
|
{$grpc.CallOptions? options}) {
|
||||||
return $createStreamingCall(
|
return $createStreamingCall(
|
||||||
_$streamingOutputCall, $async.Stream.fromIterable([request]),
|
_$streamingOutputCall, $async.Stream.fromIterable([request]),
|
||||||
options: options);
|
options: options);
|
||||||
|
@ -89,25 +89,25 @@ class TestServiceClient extends $grpc.Client {
|
||||||
|
|
||||||
$grpc.ResponseFuture<$1.StreamingInputCallResponse> streamingInputCall(
|
$grpc.ResponseFuture<$1.StreamingInputCallResponse> streamingInputCall(
|
||||||
$async.Stream<$1.StreamingInputCallRequest> request,
|
$async.Stream<$1.StreamingInputCallRequest> request,
|
||||||
{$grpc.CallOptions options}) {
|
{$grpc.CallOptions? options}) {
|
||||||
return $createStreamingCall(_$streamingInputCall, request, options: options)
|
return $createStreamingCall(_$streamingInputCall, request, options: options)
|
||||||
.single;
|
.single;
|
||||||
}
|
}
|
||||||
|
|
||||||
$grpc.ResponseStream<$1.StreamingOutputCallResponse> fullDuplexCall(
|
$grpc.ResponseStream<$1.StreamingOutputCallResponse> fullDuplexCall(
|
||||||
$async.Stream<$1.StreamingOutputCallRequest> request,
|
$async.Stream<$1.StreamingOutputCallRequest> request,
|
||||||
{$grpc.CallOptions options}) {
|
{$grpc.CallOptions? options}) {
|
||||||
return $createStreamingCall(_$fullDuplexCall, request, options: options);
|
return $createStreamingCall(_$fullDuplexCall, request, options: options);
|
||||||
}
|
}
|
||||||
|
|
||||||
$grpc.ResponseStream<$1.StreamingOutputCallResponse> halfDuplexCall(
|
$grpc.ResponseStream<$1.StreamingOutputCallResponse> halfDuplexCall(
|
||||||
$async.Stream<$1.StreamingOutputCallRequest> request,
|
$async.Stream<$1.StreamingOutputCallRequest> request,
|
||||||
{$grpc.CallOptions options}) {
|
{$grpc.CallOptions? options}) {
|
||||||
return $createStreamingCall(_$halfDuplexCall, request, options: options);
|
return $createStreamingCall(_$halfDuplexCall, request, options: options);
|
||||||
}
|
}
|
||||||
|
|
||||||
$grpc.ResponseFuture<$0.Empty> unimplementedCall($0.Empty request,
|
$grpc.ResponseFuture<$0.Empty> unimplementedCall($0.Empty request,
|
||||||
{$grpc.CallOptions options}) {
|
{$grpc.CallOptions? options}) {
|
||||||
return $createUnaryCall(_$unimplementedCall, request, options: options);
|
return $createUnaryCall(_$unimplementedCall, request, options: options);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -235,12 +235,12 @@ class UnimplementedServiceClient extends $grpc.Client {
|
||||||
($core.List<$core.int> value) => $0.Empty.fromBuffer(value));
|
($core.List<$core.int> value) => $0.Empty.fromBuffer(value));
|
||||||
|
|
||||||
UnimplementedServiceClient($grpc.ClientChannel channel,
|
UnimplementedServiceClient($grpc.ClientChannel channel,
|
||||||
{$grpc.CallOptions options,
|
{$grpc.CallOptions? options,
|
||||||
$core.Iterable<$grpc.ClientInterceptor> interceptors})
|
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
|
||||||
: super(channel, options: options, interceptors: interceptors);
|
: super(channel, options: options, interceptors: interceptors);
|
||||||
|
|
||||||
$grpc.ResponseFuture<$0.Empty> unimplementedCall($0.Empty request,
|
$grpc.ResponseFuture<$0.Empty> unimplementedCall($0.Empty request,
|
||||||
{$grpc.CallOptions options}) {
|
{$grpc.CallOptions? options}) {
|
||||||
return $createUnaryCall(_$unimplementedCall, request, options: options);
|
return $createUnaryCall(_$unimplementedCall, request, options: options);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -278,17 +278,17 @@ class ReconnectServiceClient extends $grpc.Client {
|
||||||
($core.List<$core.int> value) => $1.ReconnectInfo.fromBuffer(value));
|
($core.List<$core.int> value) => $1.ReconnectInfo.fromBuffer(value));
|
||||||
|
|
||||||
ReconnectServiceClient($grpc.ClientChannel channel,
|
ReconnectServiceClient($grpc.ClientChannel channel,
|
||||||
{$grpc.CallOptions options,
|
{$grpc.CallOptions? options,
|
||||||
$core.Iterable<$grpc.ClientInterceptor> interceptors})
|
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
|
||||||
: super(channel, options: options, interceptors: interceptors);
|
: super(channel, options: options, interceptors: interceptors);
|
||||||
|
|
||||||
$grpc.ResponseFuture<$0.Empty> start($1.ReconnectParams request,
|
$grpc.ResponseFuture<$0.Empty> start($1.ReconnectParams request,
|
||||||
{$grpc.CallOptions options}) {
|
{$grpc.CallOptions? options}) {
|
||||||
return $createUnaryCall(_$start, request, options: options);
|
return $createUnaryCall(_$start, request, options: options);
|
||||||
}
|
}
|
||||||
|
|
||||||
$grpc.ResponseFuture<$1.ReconnectInfo> stop($0.Empty request,
|
$grpc.ResponseFuture<$1.ReconnectInfo> stop($0.Empty request,
|
||||||
{$grpc.CallOptions options}) {
|
{$grpc.CallOptions? options}) {
|
||||||
return $createUnaryCall(_$stop, request, options: options);
|
return $createUnaryCall(_$stop, request, options: options);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,10 +3,10 @@ description: Dart gRPC interoperability test suite.
|
||||||
publish_to: none
|
publish_to: none
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.8.0 <3.0.0'
|
sdk: '>=2.12.0-0 <3.0.0'
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
args: ^1.5.2
|
args: ^2.0.0-nullsafety
|
||||||
async: ^2.2.0
|
async: ^2.2.0
|
||||||
collection: ^1.14.11
|
collection: ^1.14.11
|
||||||
grpc:
|
grpc:
|
||||||
|
@ -14,4 +14,7 @@ dependencies:
|
||||||
protobuf: ^2.0.0-nullsafety
|
protobuf: ^2.0.0-nullsafety
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
test: ^1.6.4
|
test: ^1.16.0-nullsafety.17
|
||||||
|
|
||||||
|
dependency_overrides:
|
||||||
|
args: ^2.0.0-nullsafety
|
||||||
|
|
16
pubspec.yaml
16
pubspec.yaml
|
@ -13,9 +13,9 @@ dependencies:
|
||||||
async: ^2.2.0
|
async: ^2.2.0
|
||||||
crypto: ^3.0.0-nullsafety
|
crypto: ^3.0.0-nullsafety
|
||||||
fixnum: ^1.0.0-nullsafety
|
fixnum: ^1.0.0-nullsafety
|
||||||
googleapis_auth: ^0.2.7
|
googleapis_auth: ^1.0.0-nullsafety
|
||||||
meta: ^1.1.6
|
meta: ^1.1.6
|
||||||
http: ^0.12.0
|
http: ^0.13.0-nullsafety
|
||||||
http2: ^2.0.0-nullsafety
|
http2: ^2.0.0-nullsafety
|
||||||
protobuf: ^2.0.0-nullsafety.1
|
protobuf: ^2.0.0-nullsafety.1
|
||||||
|
|
||||||
|
@ -28,15 +28,5 @@ dev_dependencies:
|
||||||
stream_transform: ^2.0.0-nullsafety
|
stream_transform: ^2.0.0-nullsafety
|
||||||
|
|
||||||
dependency_overrides:
|
dependency_overrides:
|
||||||
http:
|
|
||||||
git:
|
|
||||||
url: https://github.com/dart-lang/http.git
|
|
||||||
ref: 3845753a54624b070828cb3eff7a6c2a4e046cfb
|
|
||||||
googleapis_auth:
|
|
||||||
git:
|
|
||||||
url: https://github.com/dart-lang/googleapis_auth.git
|
|
||||||
ref: 30c084b7650fbd3e52525a127e0e65fc528e85a8
|
|
||||||
shelf:
|
shelf:
|
||||||
git:
|
version: ^1.0.0-nullsafety
|
||||||
url: https://github.com/dart-lang/shelf.git
|
|
||||||
ref: 2102572a6c27b1321823bb3e3723ddb5448e04ae
|
|
||||||
|
|
Loading…
Reference in New Issue