From 51762f2bf194d2342d31b1a068249d1f473c366e Mon Sep 17 00:00:00 2001 From: martha-johnston Date: Thu, 2 Jan 2025 16:58:48 +0100 Subject: [PATCH 01/11] add discovery service --- lib/src/services/discovery.dart | 56 +++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 lib/src/services/discovery.dart diff --git a/lib/src/services/discovery.dart b/lib/src/services/discovery.dart new file mode 100644 index 00000000000..56bc4868f50 --- /dev/null +++ b/lib/src/services/discovery.dart @@ -0,0 +1,56 @@ +import 'package:fixnum/fixnum.dart'; +import 'package:grpc/grpc_connection_interface.dart'; + +import '../../protos/common/common.dart'; +import '../../protos/service/discovery.dart'; +import '../media/image.dart'; +import '../resource/base.dart'; +import '../robot/client.dart'; +import '../utils.dart'; + +/// {@category Services} +class DiscoveryClient extends Resource implements ResourceRPCClient { + static const Subtype subtype = Subtype(resourceNamespaceRDK, resourceTypeService, 'discovery'); + + @override + final String name; + + @override + ClientChannelBase channel; + + @override + DiscoveryServiceClient get client => DiscoveryServiceClient(channel); + + DiscoveryClient(this.name, this.channel); + + /// Returns a list of [ComponentConfig]s for all discovered viam resources connected to the viam-server machine. + /// + /// ``` + /// // Example: + /// var resources = await myDiscoveryService.discoverResources('myWebcam'); + /// ``` + Future> discoverResources(String discoveryName, {Map? extra}) async { + final request = DiscoverResourcesRequest(name: name, extra: extra?.toStruct()); + final response = await client.discoverResources(request); + return response.discovery; + } + + @override + Future> doCommand(Map command) async { + final request = DoCommandRequest() + ..name = name + ..command = command.toStruct(); + final response = await client.doCommand(request); + return response.result.toMap(); + } + + /// Get the [ResourceName] for this [DiscoveryClient] with the given [name] + static ResourceName getResourceName(String name) { + return DiscoveryClient.subtype.getResourceName(name); + } + + /// Get the [DiscoveryClient] named [name] from the provided robot. + static DiscoveryClient fromRobot(RobotClient robot, String name) { + return robot.getResource(DiscoveryClient.getResourceName(name)); + } +} From d20195c772f4e17ac7461073b2ec35aee7e94b00 Mon Sep 17 00:00:00 2001 From: martha-johnston Date: Thu, 2 Jan 2025 17:20:34 +0100 Subject: [PATCH 02/11] register and add tests --- lib/src/resource/registry.dart | 1 + test/unit_test/services/discovery_test.dart | 39 +++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 test/unit_test/services/discovery_test.dart diff --git a/lib/src/resource/registry.dart b/lib/src/resource/registry.dart index cbd2840fdc1..29418e068d4 100644 --- a/lib/src/resource/registry.dart +++ b/lib/src/resource/registry.dart @@ -69,6 +69,7 @@ class Registry { registerSubtype(ResourceRegistration(Sensor.subtype, (name, channel) => SensorClient(name, channel))); registerSubtype(ResourceRegistration(Servo.subtype, (name, channel) => ServoClient(name, channel))); registerSubtype(ResourceRegistration(VisionClient.subtype, (name, channel) => VisionClient(name, channel))); + registerSubtype(ResourceRegistration(DiscoveryClient.subtype, (name, channel) => DiscoverClient(name, channel))); } /// The [Subtype] available in the SDK diff --git a/test/unit_test/services/discovery_test.dart b/test/unit_test/services/discovery_test.dart new file mode 100644 index 00000000000..76e6eaf5e32 --- /dev/null +++ b/test/unit_test/services/discovery_test.dart @@ -0,0 +1,39 @@ +import 'package:fixnum/fixnum.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:mockito/mockito.dart'; +import 'package:viam_sdk/protos/service/discovery.dart'; +import 'package:viam_sdk/src/gen/common/v1/common.pb.dart'; +import 'package:viam_sdk/src/gen/service/discovery/v1/discovery.pbgrpc.dart'; +import 'package:viam_sdk/viam_sdk.dart'; + +import '../mocks/mock_response_future.dart'; +import '../mocks/service_clients_mocks.mocks.dart'; + +class FakeDiscoveryClient extends DiscoverClient { + @override + DiscoveryServiceClient get client => _client; + + final MockDiscoveryServiceClient _client; + + FakeDiscoveryClient(super.name, super.channel, this._client); +} + +void main() { + late DiscoveryClient client; + late MockDiscoveryServiceClient serviceClient; + + setUp(() { + serviceClient = MockDiscoveryServiceClient(); + client = FakeDiscoveryClient('discovery', MockClientChannelBase(), serviceClient); + }); + + group('Discovery RPC Client Tests', () { + test('discoverResources', () async { + final expected = [ComponentConfig()]; + when(serviceClient.discoverResources(any)) + .thenAnswer((_) => MockResponseFuture.value(DiscoverResourcesResponse(discovery: expected))); + final response = await client.discoverResources('discoveryName'); + expect(response, equals(expected)); + }); + }); +} From ca1dfb3028b268df9f5c74dd1b7c5d95a8a350c7 Mon Sep 17 00:00:00 2001 From: martha-johnston Date: Thu, 2 Jan 2025 20:57:16 +0100 Subject: [PATCH 03/11] add module models --- lib/src/robot/client.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/src/robot/client.dart b/lib/src/robot/client.dart index 983b92e7db6..a45c513120a 100644 --- a/lib/src/robot/client.dart +++ b/lib/src/robot/client.dart @@ -349,4 +349,14 @@ class RobotClient { final response = await _client.discoverComponents(request); return response.discovery.map((d) => Discovery.fromProto(d)).toList(); } + + /// GetModelsFromModules returns the list of models supported in modules on the machine. + /// + /// ``` + /// var modelsFromModules = await machine.getModelsFromModules(); + /// ``` + Future> getModelsFromModules() async { + final response = await _client.getModelsFromModules(request); + return response.model.map((d) => ModuleModel.fromProto(d)).toList(); + } } From ab231efdf9153f90bbe19878b1edeaea11f08564 Mon Sep 17 00:00:00 2001 From: martha-johnston Date: Wed, 8 Jan 2025 15:09:33 +0100 Subject: [PATCH 04/11] change to discoveries --- lib/src/services/discovery.dart | 2 +- test/unit_test/services/discovery_test.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/services/discovery.dart b/lib/src/services/discovery.dart index 56bc4868f50..75e5f7d9dc2 100644 --- a/lib/src/services/discovery.dart +++ b/lib/src/services/discovery.dart @@ -32,7 +32,7 @@ class DiscoveryClient extends Resource implements ResourceRPCClient { Future> discoverResources(String discoveryName, {Map? extra}) async { final request = DiscoverResourcesRequest(name: name, extra: extra?.toStruct()); final response = await client.discoverResources(request); - return response.discovery; + return response.discoveries; } @override diff --git a/test/unit_test/services/discovery_test.dart b/test/unit_test/services/discovery_test.dart index 76e6eaf5e32..92013402e32 100644 --- a/test/unit_test/services/discovery_test.dart +++ b/test/unit_test/services/discovery_test.dart @@ -31,7 +31,7 @@ void main() { test('discoverResources', () async { final expected = [ComponentConfig()]; when(serviceClient.discoverResources(any)) - .thenAnswer((_) => MockResponseFuture.value(DiscoverResourcesResponse(discovery: expected))); + .thenAnswer((_) => MockResponseFuture.value(DiscoverResourcesResponse(discoveries: expected))); final response = await client.discoverResources('discoveryName'); expect(response, equals(expected)); }); From 57d6f95f8f7742031da2e4fc6b18feb3e539d35a Mon Sep 17 00:00:00 2001 From: martha-johnston Date: Fri, 10 Jan 2025 21:58:28 +0100 Subject: [PATCH 05/11] update with latest api changes --- lib/src/resource/registry.dart | 3 +- lib/src/robot/client.dart | 4 +- lib/src/services/discovery.dart | 4 +- .../mocks/service_clients_mocks.mocks.dart | 8534 ++++++++--------- test/unit_test/services/discovery_test.dart | 4 +- 5 files changed, 4001 insertions(+), 4548 deletions(-) diff --git a/lib/src/resource/registry.dart b/lib/src/resource/registry.dart index 29418e068d4..3ef47663f8c 100644 --- a/lib/src/resource/registry.dart +++ b/lib/src/resource/registry.dart @@ -25,6 +25,7 @@ import '../components/sensor/sensor.dart'; import '../components/servo/client.dart'; import '../components/servo/servo.dart'; import '../resource/base.dart'; +import '../services/discovery.dart'; import '../services/vision.dart'; /// {@category Viam SDK} @@ -69,7 +70,7 @@ class Registry { registerSubtype(ResourceRegistration(Sensor.subtype, (name, channel) => SensorClient(name, channel))); registerSubtype(ResourceRegistration(Servo.subtype, (name, channel) => ServoClient(name, channel))); registerSubtype(ResourceRegistration(VisionClient.subtype, (name, channel) => VisionClient(name, channel))); - registerSubtype(ResourceRegistration(DiscoveryClient.subtype, (name, channel) => DiscoverClient(name, channel))); + registerSubtype(ResourceRegistration(DiscoveryClient.subtype, (name, channel) => DiscoveryClient(name, channel))); } /// The [Subtype] available in the SDK diff --git a/lib/src/robot/client.dart b/lib/src/robot/client.dart index a45c513120a..9506f9b55bb 100644 --- a/lib/src/robot/client.dart +++ b/lib/src/robot/client.dart @@ -5,6 +5,7 @@ import 'package:grpc/grpc_connection_interface.dart'; import 'package:logger/logger.dart'; import '../gen/common/v1/common.pb.dart'; +import '../gen/robot/v1/robot.pb.dart'; import '../gen/google/protobuf/struct.pb.dart'; import '../gen/robot/v1/robot.pbgrpc.dart' as rpb; import '../gen/stream/v1/stream.pbgrpc.dart'; @@ -356,7 +357,8 @@ class RobotClient { /// var modelsFromModules = await machine.getModelsFromModules(); /// ``` Future> getModelsFromModules() async { + final request = rpb.GetModelsFromModulesRequest(); final response = await _client.getModelsFromModules(request); - return response.model.map((d) => ModuleModel.fromProto(d)).toList(); + return response.models; } } diff --git a/lib/src/services/discovery.dart b/lib/src/services/discovery.dart index 75e5f7d9dc2..4a30df2c66a 100644 --- a/lib/src/services/discovery.dart +++ b/lib/src/services/discovery.dart @@ -3,6 +3,8 @@ import 'package:grpc/grpc_connection_interface.dart'; import '../../protos/common/common.dart'; import '../../protos/service/discovery.dart'; +import '../gen/service/discovery/v1/discovery.pbgrpc.dart'; +import '../gen/app/v1/robot.pb.dart'; import '../media/image.dart'; import '../resource/base.dart'; import '../robot/client.dart'; @@ -29,7 +31,7 @@ class DiscoveryClient extends Resource implements ResourceRPCClient { /// // Example: /// var resources = await myDiscoveryService.discoverResources('myWebcam'); /// ``` - Future> discoverResources(String discoveryName, {Map? extra}) async { + Future> discoverResources(String discoveryName, {Map? extra}) async { final request = DiscoverResourcesRequest(name: name, extra: extra?.toStruct()); final response = await client.discoverResources(request); return response.discoveries; diff --git a/test/unit_test/mocks/service_clients_mocks.mocks.dart b/test/unit_test/mocks/service_clients_mocks.mocks.dart index 06f7319a489..47704acf41a 100644 --- a/test/unit_test/mocks/service_clients_mocks.mocks.dart +++ b/test/unit_test/mocks/service_clients_mocks.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in viam_sdk/test/unit_test/mocks/service_clients_mocks.dart. // Do not manually edit this file. @@ -41,6 +41,7 @@ import 'package:viam_sdk/src/gen/service/vision/v1/vision.pbgrpc.dart' as _i18; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types @@ -48,46 +49,26 @@ import 'package:viam_sdk/src/gen/service/vision/v1/vision.pbgrpc.dart' as _i18; class _FakeClientConnection_0 extends _i1.SmartFake implements _i2.ClientConnection { - _FakeClientConnection_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeClientConnection_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeClientCall_1 extends _i1.SmartFake implements _i3.ClientCall { - _FakeClientCall_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeClientCall_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeResponseFuture_2 extends _i1.SmartFake implements _i4.ResponseFuture { - _FakeResponseFuture_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeResponseFuture_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeResponseStream_3 extends _i1.SmartFake implements _i4.ResponseStream { - _FakeResponseStream_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeResponseStream_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [ClientChannelBase]. @@ -97,76 +78,63 @@ class MockClientChannelBase extends _i1.Mock implements _i5.ClientChannelBase { @override _i6.Stream<_i2.ConnectionState> get onConnectionStateChanged => (super.noSuchMethod( - Invocation.getter(#onConnectionStateChanged), - returnValue: _i6.Stream<_i2.ConnectionState>.empty(), - returnValueForMissingStub: _i6.Stream<_i2.ConnectionState>.empty(), - ) as _i6.Stream<_i2.ConnectionState>); - - @override - _i6.Future shutdown() => (super.noSuchMethod( - Invocation.method( - #shutdown, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future terminate() => (super.noSuchMethod( - Invocation.method( - #terminate, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i2.ClientConnection createConnection() => (super.noSuchMethod( - Invocation.method( - #createConnection, - [], - ), - returnValue: _FakeClientConnection_0( - this, - Invocation.method( - #createConnection, - [], - ), - ), - returnValueForMissingStub: _FakeClientConnection_0( - this, - Invocation.method( - #createConnection, - [], - ), - ), - ) as _i2.ClientConnection); - - @override - _i6.Future<_i2.ClientConnection> getConnection() => (super.noSuchMethod( - Invocation.method( - #getConnection, - [], - ), - returnValue: - _i6.Future<_i2.ClientConnection>.value(_FakeClientConnection_0( - this, - Invocation.method( - #getConnection, - [], - ), - )), - returnValueForMissingStub: - _i6.Future<_i2.ClientConnection>.value(_FakeClientConnection_0( - this, - Invocation.method( - #getConnection, - [], - ), - )), - ) as _i6.Future<_i2.ClientConnection>); + Invocation.getter(#onConnectionStateChanged), + returnValue: _i6.Stream<_i2.ConnectionState>.empty(), + returnValueForMissingStub: _i6.Stream<_i2.ConnectionState>.empty(), + ) + as _i6.Stream<_i2.ConnectionState>); + + @override + _i6.Future shutdown() => + (super.noSuchMethod( + Invocation.method(#shutdown, []), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) + as _i6.Future); + + @override + _i6.Future terminate() => + (super.noSuchMethod( + Invocation.method(#terminate, []), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) + as _i6.Future); + + @override + _i2.ClientConnection createConnection() => + (super.noSuchMethod( + Invocation.method(#createConnection, []), + returnValue: _FakeClientConnection_0( + this, + Invocation.method(#createConnection, []), + ), + returnValueForMissingStub: _FakeClientConnection_0( + this, + Invocation.method(#createConnection, []), + ), + ) + as _i2.ClientConnection); + + @override + _i6.Future<_i2.ClientConnection> getConnection() => + (super.noSuchMethod( + Invocation.method(#getConnection, []), + returnValue: _i6.Future<_i2.ClientConnection>.value( + _FakeClientConnection_0( + this, + Invocation.method(#getConnection, []), + ), + ), + returnValueForMissingStub: _i6.Future<_i2.ClientConnection>.value( + _FakeClientConnection_0( + this, + Invocation.method(#getConnection, []), + ), + ), + ) + as _i6.Future<_i2.ClientConnection>); @override _i3.ClientCall createCall( @@ -175,37 +143,17 @@ class MockClientChannelBase extends _i1.Mock implements _i5.ClientChannelBase { _i3.CallOptions? options, ) => (super.noSuchMethod( - Invocation.method( - #createCall, - [ - method, - requests, - options, - ], - ), - returnValue: _FakeClientCall_1( - this, - Invocation.method( - #createCall, - [ - method, - requests, - options, - ], - ), - ), - returnValueForMissingStub: _FakeClientCall_1( - this, - Invocation.method( - #createCall, - [ - method, - requests, - options, - ], - ), - ), - ) as _i3.ClientCall); + Invocation.method(#createCall, [method, requests, options]), + returnValue: _FakeClientCall_1( + this, + Invocation.method(#createCall, [method, requests, options]), + ), + returnValueForMissingStub: _FakeClientCall_1( + this, + Invocation.method(#createCall, [method, requests, options]), + ), + ) + as _i3.ClientCall); } /// A class which mocks [RobotServiceClient]. @@ -219,29 +167,22 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getOperations, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.GetOperationsResponse>( - this, - Invocation.method( - #getOperations, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i9.GetOperationsResponse>( - this, - Invocation.method( - #getOperations, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.GetOperationsResponse>); + Invocation.method(#getOperations, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i9.GetOperationsResponse>( + this, + Invocation.method(#getOperations, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.GetOperationsResponse>( + this, + Invocation.method( + #getOperations, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i9.GetOperationsResponse>); @override _i4.ResponseFuture<_i9.GetSessionsResponse> getSessions( @@ -249,29 +190,22 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getSessions, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.GetSessionsResponse>( - this, - Invocation.method( - #getSessions, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i9.GetSessionsResponse>( - this, - Invocation.method( - #getSessions, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.GetSessionsResponse>); + Invocation.method(#getSessions, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i9.GetSessionsResponse>( + this, + Invocation.method(#getSessions, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.GetSessionsResponse>( + this, + Invocation.method( + #getSessions, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i9.GetSessionsResponse>); @override _i4.ResponseFuture<_i9.ResourceNamesResponse> resourceNames( @@ -279,29 +213,22 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #resourceNames, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.ResourceNamesResponse>( - this, - Invocation.method( - #resourceNames, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i9.ResourceNamesResponse>( - this, - Invocation.method( - #resourceNames, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.ResourceNamesResponse>); + Invocation.method(#resourceNames, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i9.ResourceNamesResponse>( + this, + Invocation.method(#resourceNames, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.ResourceNamesResponse>( + this, + Invocation.method( + #resourceNames, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i9.ResourceNamesResponse>); @override _i4.ResponseFuture<_i9.ResourceRPCSubtypesResponse> resourceRPCSubtypes( @@ -309,29 +236,30 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #resourceRPCSubtypes, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.ResourceRPCSubtypesResponse>( - this, - Invocation.method( - #resourceRPCSubtypes, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i9.ResourceRPCSubtypesResponse>( - this, - Invocation.method( - #resourceRPCSubtypes, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.ResourceRPCSubtypesResponse>); + Invocation.method( + #resourceRPCSubtypes, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i9.ResourceRPCSubtypesResponse>( + this, + Invocation.method( + #resourceRPCSubtypes, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.ResourceRPCSubtypesResponse>( + this, + Invocation.method( + #resourceRPCSubtypes, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i9.ResourceRPCSubtypesResponse>); @override _i4.ResponseFuture<_i9.CancelOperationResponse> cancelOperation( @@ -339,29 +267,26 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #cancelOperation, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.CancelOperationResponse>( - this, - Invocation.method( - #cancelOperation, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i9.CancelOperationResponse>( - this, - Invocation.method( - #cancelOperation, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.CancelOperationResponse>); + Invocation.method(#cancelOperation, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i9.CancelOperationResponse>( + this, + Invocation.method( + #cancelOperation, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.CancelOperationResponse>( + this, + Invocation.method( + #cancelOperation, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i9.CancelOperationResponse>); @override _i4.ResponseFuture<_i9.BlockForOperationResponse> blockForOperation( @@ -369,29 +294,62 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #blockForOperation, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.BlockForOperationResponse>( - this, - Invocation.method( - #blockForOperation, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i9.BlockForOperationResponse>( - this, - Invocation.method( - #blockForOperation, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.BlockForOperationResponse>); + Invocation.method( + #blockForOperation, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i9.BlockForOperationResponse>( + this, + Invocation.method( + #blockForOperation, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.BlockForOperationResponse>( + this, + Invocation.method( + #blockForOperation, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i9.BlockForOperationResponse>); + + @override + _i4.ResponseFuture<_i9.GetModelsFromModulesResponse> getModelsFromModules( + _i9.GetModelsFromModulesRequest? request, { + _i3.CallOptions? options, + }) => + (super.noSuchMethod( + Invocation.method( + #getModelsFromModules, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i9.GetModelsFromModulesResponse>( + this, + Invocation.method( + #getModelsFromModules, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.GetModelsFromModulesResponse>( + this, + Invocation.method( + #getModelsFromModules, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i9.GetModelsFromModulesResponse>); @override _i4.ResponseFuture<_i9.DiscoverComponentsResponse> discoverComponents( @@ -399,29 +357,30 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #discoverComponents, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.DiscoverComponentsResponse>( - this, - Invocation.method( - #discoverComponents, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i9.DiscoverComponentsResponse>( - this, - Invocation.method( - #discoverComponents, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.DiscoverComponentsResponse>); + Invocation.method( + #discoverComponents, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i9.DiscoverComponentsResponse>( + this, + Invocation.method( + #discoverComponents, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.DiscoverComponentsResponse>( + this, + Invocation.method( + #discoverComponents, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i9.DiscoverComponentsResponse>); @override _i4.ResponseFuture<_i9.FrameSystemConfigResponse> frameSystemConfig( @@ -429,29 +388,30 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #frameSystemConfig, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.FrameSystemConfigResponse>( - this, - Invocation.method( - #frameSystemConfig, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i9.FrameSystemConfigResponse>( - this, - Invocation.method( - #frameSystemConfig, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.FrameSystemConfigResponse>); + Invocation.method( + #frameSystemConfig, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i9.FrameSystemConfigResponse>( + this, + Invocation.method( + #frameSystemConfig, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.FrameSystemConfigResponse>( + this, + Invocation.method( + #frameSystemConfig, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i9.FrameSystemConfigResponse>); @override _i4.ResponseFuture<_i9.TransformPoseResponse> transformPose( @@ -459,29 +419,22 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #transformPose, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.TransformPoseResponse>( - this, - Invocation.method( - #transformPose, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i9.TransformPoseResponse>( - this, - Invocation.method( - #transformPose, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.TransformPoseResponse>); + Invocation.method(#transformPose, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i9.TransformPoseResponse>( + this, + Invocation.method(#transformPose, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.TransformPoseResponse>( + this, + Invocation.method( + #transformPose, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i9.TransformPoseResponse>); @override _i4.ResponseFuture<_i9.TransformPCDResponse> transformPCD( @@ -489,29 +442,22 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #transformPCD, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.TransformPCDResponse>( - this, - Invocation.method( - #transformPCD, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i9.TransformPCDResponse>( - this, - Invocation.method( - #transformPCD, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.TransformPCDResponse>); + Invocation.method(#transformPCD, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i9.TransformPCDResponse>( + this, + Invocation.method(#transformPCD, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.TransformPCDResponse>( + this, + Invocation.method( + #transformPCD, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i9.TransformPCDResponse>); @override _i4.ResponseFuture<_i9.GetStatusResponse> getStatus( @@ -519,28 +465,18 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getStatus, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.GetStatusResponse>( - this, - Invocation.method( - #getStatus, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2<_i9.GetStatusResponse>( - this, - Invocation.method( - #getStatus, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.GetStatusResponse>); + Invocation.method(#getStatus, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i9.GetStatusResponse>( + this, + Invocation.method(#getStatus, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.GetStatusResponse>( + this, + Invocation.method(#getStatus, [request], {#options: options}), + ), + ) + as _i4.ResponseFuture<_i9.GetStatusResponse>); @override _i4.ResponseStream<_i9.StreamStatusResponse> streamStatus( @@ -548,29 +484,22 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #streamStatus, - [request], - {#options: options}, - ), - returnValue: _FakeResponseStream_3<_i9.StreamStatusResponse>( - this, - Invocation.method( - #streamStatus, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseStream_3<_i9.StreamStatusResponse>( - this, - Invocation.method( - #streamStatus, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseStream<_i9.StreamStatusResponse>); + Invocation.method(#streamStatus, [request], {#options: options}), + returnValue: _FakeResponseStream_3<_i9.StreamStatusResponse>( + this, + Invocation.method(#streamStatus, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseStream_3<_i9.StreamStatusResponse>( + this, + Invocation.method( + #streamStatus, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseStream<_i9.StreamStatusResponse>); @override _i4.ResponseFuture<_i9.StopAllResponse> stopAll( @@ -578,28 +507,18 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #stopAll, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.StopAllResponse>( - this, - Invocation.method( - #stopAll, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2<_i9.StopAllResponse>( - this, - Invocation.method( - #stopAll, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.StopAllResponse>); + Invocation.method(#stopAll, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i9.StopAllResponse>( + this, + Invocation.method(#stopAll, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.StopAllResponse>( + this, + Invocation.method(#stopAll, [request], {#options: options}), + ), + ) + as _i4.ResponseFuture<_i9.StopAllResponse>); @override _i4.ResponseFuture<_i9.StartSessionResponse> startSession( @@ -607,29 +526,22 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #startSession, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.StartSessionResponse>( - this, - Invocation.method( - #startSession, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i9.StartSessionResponse>( - this, - Invocation.method( - #startSession, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.StartSessionResponse>); + Invocation.method(#startSession, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i9.StartSessionResponse>( + this, + Invocation.method(#startSession, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.StartSessionResponse>( + this, + Invocation.method( + #startSession, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i9.StartSessionResponse>); @override _i4.ResponseFuture<_i9.SendSessionHeartbeatResponse> sendSessionHeartbeat( @@ -637,29 +549,31 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #sendSessionHeartbeat, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.SendSessionHeartbeatResponse>( - this, - Invocation.method( - #sendSessionHeartbeat, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i9.SendSessionHeartbeatResponse>( - this, - Invocation.method( - #sendSessionHeartbeat, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.SendSessionHeartbeatResponse>); + Invocation.method( + #sendSessionHeartbeat, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i9.SendSessionHeartbeatResponse>( + this, + Invocation.method( + #sendSessionHeartbeat, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.SendSessionHeartbeatResponse>( + this, + Invocation.method( + #sendSessionHeartbeat, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i9.SendSessionHeartbeatResponse>); @override _i4.ResponseFuture<_i9.LogResponse> log( @@ -667,28 +581,17 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #log, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.LogResponse>( - this, - Invocation.method( - #log, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2<_i9.LogResponse>( - this, - Invocation.method( - #log, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.LogResponse>); + Invocation.method(#log, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i9.LogResponse>( + this, + Invocation.method(#log, [request], {#options: options}), + ), + returnValueForMissingStub: _FakeResponseFuture_2<_i9.LogResponse>( + this, + Invocation.method(#log, [request], {#options: options}), + ), + ) + as _i4.ResponseFuture<_i9.LogResponse>); @override _i4.ResponseFuture<_i9.GetCloudMetadataResponse> getCloudMetadata( @@ -696,29 +599,30 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getCloudMetadata, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.GetCloudMetadataResponse>( - this, - Invocation.method( - #getCloudMetadata, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i9.GetCloudMetadataResponse>( - this, - Invocation.method( - #getCloudMetadata, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.GetCloudMetadataResponse>); + Invocation.method( + #getCloudMetadata, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i9.GetCloudMetadataResponse>( + this, + Invocation.method( + #getCloudMetadata, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.GetCloudMetadataResponse>( + this, + Invocation.method( + #getCloudMetadata, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i9.GetCloudMetadataResponse>); @override _i4.ResponseFuture<_i9.RestartModuleResponse> restartModule( @@ -726,29 +630,22 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #restartModule, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.RestartModuleResponse>( - this, - Invocation.method( - #restartModule, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i9.RestartModuleResponse>( - this, - Invocation.method( - #restartModule, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.RestartModuleResponse>); + Invocation.method(#restartModule, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i9.RestartModuleResponse>( + this, + Invocation.method(#restartModule, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.RestartModuleResponse>( + this, + Invocation.method( + #restartModule, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i9.RestartModuleResponse>); @override _i4.ResponseFuture<_i9.ShutdownResponse> shutdown( @@ -756,28 +653,18 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #shutdown, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.ShutdownResponse>( - this, - Invocation.method( - #shutdown, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2<_i9.ShutdownResponse>( - this, - Invocation.method( - #shutdown, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.ShutdownResponse>); + Invocation.method(#shutdown, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i9.ShutdownResponse>( + this, + Invocation.method(#shutdown, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.ShutdownResponse>( + this, + Invocation.method(#shutdown, [request], {#options: options}), + ), + ) + as _i4.ResponseFuture<_i9.ShutdownResponse>); @override _i4.ResponseFuture<_i9.GetMachineStatusResponse> getMachineStatus( @@ -785,29 +672,30 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getMachineStatus, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.GetMachineStatusResponse>( - this, - Invocation.method( - #getMachineStatus, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i9.GetMachineStatusResponse>( - this, - Invocation.method( - #getMachineStatus, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.GetMachineStatusResponse>); + Invocation.method( + #getMachineStatus, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i9.GetMachineStatusResponse>( + this, + Invocation.method( + #getMachineStatus, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.GetMachineStatusResponse>( + this, + Invocation.method( + #getMachineStatus, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i9.GetMachineStatusResponse>); @override _i4.ResponseFuture<_i9.GetVersionResponse> getVersion( @@ -815,29 +703,22 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getVersion, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i9.GetVersionResponse>( - this, - Invocation.method( - #getVersion, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i9.GetVersionResponse>( - this, - Invocation.method( - #getVersion, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i9.GetVersionResponse>); + Invocation.method(#getVersion, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i9.GetVersionResponse>( + this, + Invocation.method(#getVersion, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i9.GetVersionResponse>( + this, + Invocation.method( + #getVersion, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i9.GetVersionResponse>); @override _i3.ClientCall $createCall( @@ -846,37 +727,29 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - returnValue: _FakeClientCall_1( - this, - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeClientCall_1( - this, - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - ) as _i3.ClientCall); + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i3.ClientCall); @override _i4.ResponseFuture $createUnaryCall( @@ -885,37 +758,29 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2( - this, - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2( - this, - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture); + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture); @override _i4.ResponseStream $createStreamingCall( @@ -924,37 +789,29 @@ class MockRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - returnValue: _FakeResponseStream_3( - this, - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseStream_3( - this, - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - ) as _i4.ResponseStream); + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i4.ResponseStream); } /// A class which mocks [RobotServiceClient]. @@ -968,28 +825,18 @@ class MockAppRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #config, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i11.ConfigResponse>( - this, - Invocation.method( - #config, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2<_i11.ConfigResponse>( - this, - Invocation.method( - #config, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i11.ConfigResponse>); + Invocation.method(#config, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i11.ConfigResponse>( + this, + Invocation.method(#config, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i11.ConfigResponse>( + this, + Invocation.method(#config, [request], {#options: options}), + ), + ) + as _i4.ResponseFuture<_i11.ConfigResponse>); @override _i4.ResponseFuture<_i11.CertificateResponse> certificate( @@ -997,29 +844,22 @@ class MockAppRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #certificate, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i11.CertificateResponse>( - this, - Invocation.method( - #certificate, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i11.CertificateResponse>( - this, - Invocation.method( - #certificate, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i11.CertificateResponse>); + Invocation.method(#certificate, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i11.CertificateResponse>( + this, + Invocation.method(#certificate, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i11.CertificateResponse>( + this, + Invocation.method( + #certificate, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i11.CertificateResponse>); @override _i4.ResponseFuture<_i11.LogResponse> log( @@ -1027,28 +867,17 @@ class MockAppRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #log, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i11.LogResponse>( - this, - Invocation.method( - #log, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2<_i11.LogResponse>( - this, - Invocation.method( - #log, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i11.LogResponse>); + Invocation.method(#log, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i11.LogResponse>( + this, + Invocation.method(#log, [request], {#options: options}), + ), + returnValueForMissingStub: _FakeResponseFuture_2<_i11.LogResponse>( + this, + Invocation.method(#log, [request], {#options: options}), + ), + ) + as _i4.ResponseFuture<_i11.LogResponse>); @override _i4.ResponseFuture<_i11.NeedsRestartResponse> needsRestart( @@ -1056,29 +885,22 @@ class MockAppRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #needsRestart, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i11.NeedsRestartResponse>( - this, - Invocation.method( - #needsRestart, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i11.NeedsRestartResponse>( - this, - Invocation.method( - #needsRestart, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i11.NeedsRestartResponse>); + Invocation.method(#needsRestart, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i11.NeedsRestartResponse>( + this, + Invocation.method(#needsRestart, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i11.NeedsRestartResponse>( + this, + Invocation.method( + #needsRestart, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i11.NeedsRestartResponse>); @override _i3.ClientCall $createCall( @@ -1087,37 +909,29 @@ class MockAppRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - returnValue: _FakeClientCall_1( - this, - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeClientCall_1( - this, - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - ) as _i3.ClientCall); + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i3.ClientCall); @override _i4.ResponseFuture $createUnaryCall( @@ -1126,37 +940,29 @@ class MockAppRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2( - this, - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2( - this, - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture); + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture); @override _i4.ResponseStream $createStreamingCall( @@ -1165,37 +971,29 @@ class MockAppRobotServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - returnValue: _FakeResponseStream_3( - this, - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseStream_3( - this, - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - ) as _i4.ResponseStream); + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i4.ResponseStream); } /// A class which mocks [AppServiceClient]. @@ -1208,29 +1006,30 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getUserIDByEmail, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.GetUserIDByEmailResponse>( - this, - Invocation.method( - #getUserIDByEmail, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.GetUserIDByEmailResponse>( - this, - Invocation.method( - #getUserIDByEmail, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.GetUserIDByEmailResponse>); + Invocation.method( + #getUserIDByEmail, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i13.GetUserIDByEmailResponse>( + this, + Invocation.method( + #getUserIDByEmail, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.GetUserIDByEmailResponse>( + this, + Invocation.method( + #getUserIDByEmail, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.GetUserIDByEmailResponse>); @override _i4.ResponseFuture<_i13.CreateOrganizationResponse> createOrganization( @@ -1238,29 +1037,30 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #createOrganization, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.CreateOrganizationResponse>( - this, - Invocation.method( - #createOrganization, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.CreateOrganizationResponse>( - this, - Invocation.method( - #createOrganization, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.CreateOrganizationResponse>); + Invocation.method( + #createOrganization, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i13.CreateOrganizationResponse>( + this, + Invocation.method( + #createOrganization, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.CreateOrganizationResponse>( + this, + Invocation.method( + #createOrganization, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.CreateOrganizationResponse>); @override _i4.ResponseFuture<_i13.ListOrganizationsResponse> listOrganizations( @@ -1268,44 +1068,46 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #listOrganizations, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.ListOrganizationsResponse>( - this, - Invocation.method( - #listOrganizations, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.ListOrganizationsResponse>( - this, - Invocation.method( - #listOrganizations, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.ListOrganizationsResponse>); + Invocation.method( + #listOrganizations, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i13.ListOrganizationsResponse>( + this, + Invocation.method( + #listOrganizations, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.ListOrganizationsResponse>( + this, + Invocation.method( + #listOrganizations, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.ListOrganizationsResponse>); @override _i4.ResponseFuture<_i13.GetOrganizationsWithAccessToLocationResponse> - getOrganizationsWithAccessToLocation( + getOrganizationsWithAccessToLocation( _i13.GetOrganizationsWithAccessToLocationRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #getOrganizationsWithAccessToLocation, [request], {#options: options}, ), returnValue: _FakeResponseFuture_2< - _i13.GetOrganizationsWithAccessToLocationResponse>( + _i13.GetOrganizationsWithAccessToLocationResponse + >( this, Invocation.method( #getOrganizationsWithAccessToLocation, @@ -1314,7 +1116,8 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { ), ), returnValueForMissingStub: _FakeResponseFuture_2< - _i13.GetOrganizationsWithAccessToLocationResponse>( + _i13.GetOrganizationsWithAccessToLocationResponse + >( this, Invocation.method( #getOrganizationsWithAccessToLocation, @@ -1322,16 +1125,18 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { {#options: options}, ), ), - ) as _i4.ResponseFuture< - _i13.GetOrganizationsWithAccessToLocationResponse>); + ) + as _i4.ResponseFuture< + _i13.GetOrganizationsWithAccessToLocationResponse + >); @override _i4.ResponseFuture<_i13.ListOrganizationsByUserResponse> - listOrganizationsByUser( + listOrganizationsByUser( _i13.ListOrganizationsByUserRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #listOrganizationsByUser, [request], @@ -1339,23 +1144,56 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { ), returnValue: _FakeResponseFuture_2<_i13.ListOrganizationsByUserResponse>( - this, - Invocation.method( - #listOrganizationsByUser, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #listOrganizationsByUser, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i13.ListOrganizationsByUserResponse>( - this, - Invocation.method( - #listOrganizationsByUser, - [request], - {#options: options}, - ), + this, + Invocation.method( + #listOrganizationsByUser, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.ListOrganizationsByUserResponse>); + + @override + _i4.ResponseFuture<_i13.SearchOrganizationsResponse> searchOrganizations( + _i13.SearchOrganizationsRequest? request, { + _i3.CallOptions? options, + }) => + (super.noSuchMethod( + Invocation.method( + #searchOrganizations, + [request], + {#options: options}, ), - ) as _i4.ResponseFuture<_i13.ListOrganizationsByUserResponse>); + returnValue: + _FakeResponseFuture_2<_i13.SearchOrganizationsResponse>( + this, + Invocation.method( + #searchOrganizations, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.SearchOrganizationsResponse>( + this, + Invocation.method( + #searchOrganizations, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.SearchOrganizationsResponse>); @override _i4.ResponseFuture<_i13.GetOrganizationResponse> getOrganization( @@ -1363,44 +1201,42 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getOrganization, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.GetOrganizationResponse>( - this, - Invocation.method( - #getOrganization, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.GetOrganizationResponse>( - this, - Invocation.method( - #getOrganization, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.GetOrganizationResponse>); + Invocation.method(#getOrganization, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.GetOrganizationResponse>( + this, + Invocation.method( + #getOrganization, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.GetOrganizationResponse>( + this, + Invocation.method( + #getOrganization, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.GetOrganizationResponse>); @override _i4.ResponseFuture<_i13.GetOrganizationNamespaceAvailabilityResponse> - getOrganizationNamespaceAvailability( + getOrganizationNamespaceAvailability( _i13.GetOrganizationNamespaceAvailabilityRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #getOrganizationNamespaceAvailability, [request], {#options: options}, ), returnValue: _FakeResponseFuture_2< - _i13.GetOrganizationNamespaceAvailabilityResponse>( + _i13.GetOrganizationNamespaceAvailabilityResponse + >( this, Invocation.method( #getOrganizationNamespaceAvailability, @@ -1409,7 +1245,8 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { ), ), returnValueForMissingStub: _FakeResponseFuture_2< - _i13.GetOrganizationNamespaceAvailabilityResponse>( + _i13.GetOrganizationNamespaceAvailabilityResponse + >( this, Invocation.method( #getOrganizationNamespaceAvailability, @@ -1417,8 +1254,10 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { {#options: options}, ), ), - ) as _i4.ResponseFuture< - _i13.GetOrganizationNamespaceAvailabilityResponse>); + ) + as _i4.ResponseFuture< + _i13.GetOrganizationNamespaceAvailabilityResponse + >); @override _i4.ResponseFuture<_i13.UpdateOrganizationResponse> updateOrganization( @@ -1426,29 +1265,30 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #updateOrganization, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.UpdateOrganizationResponse>( - this, - Invocation.method( - #updateOrganization, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.UpdateOrganizationResponse>( - this, - Invocation.method( - #updateOrganization, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.UpdateOrganizationResponse>); + Invocation.method( + #updateOrganization, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i13.UpdateOrganizationResponse>( + this, + Invocation.method( + #updateOrganization, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.UpdateOrganizationResponse>( + this, + Invocation.method( + #updateOrganization, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.UpdateOrganizationResponse>); @override _i4.ResponseFuture<_i13.DeleteOrganizationResponse> deleteOrganization( @@ -1456,37 +1296,38 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #deleteOrganization, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.DeleteOrganizationResponse>( - this, - Invocation.method( - #deleteOrganization, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.DeleteOrganizationResponse>( - this, - Invocation.method( - #deleteOrganization, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.DeleteOrganizationResponse>); + Invocation.method( + #deleteOrganization, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i13.DeleteOrganizationResponse>( + this, + Invocation.method( + #deleteOrganization, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.DeleteOrganizationResponse>( + this, + Invocation.method( + #deleteOrganization, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.DeleteOrganizationResponse>); @override _i4.ResponseFuture<_i13.ListOrganizationMembersResponse> - listOrganizationMembers( + listOrganizationMembers( _i13.ListOrganizationMembersRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #listOrganizationMembers, [request], @@ -1494,31 +1335,32 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { ), returnValue: _FakeResponseFuture_2<_i13.ListOrganizationMembersResponse>( - this, - Invocation.method( - #listOrganizationMembers, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #listOrganizationMembers, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i13.ListOrganizationMembersResponse>( - this, - Invocation.method( - #listOrganizationMembers, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.ListOrganizationMembersResponse>); + this, + Invocation.method( + #listOrganizationMembers, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.ListOrganizationMembersResponse>); @override _i4.ResponseFuture<_i13.CreateOrganizationInviteResponse> - createOrganizationInvite( + createOrganizationInvite( _i13.CreateOrganizationInviteRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #createOrganizationInvite, [request], @@ -1526,38 +1368,40 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { ), returnValue: _FakeResponseFuture_2<_i13.CreateOrganizationInviteResponse>( - this, - Invocation.method( - #createOrganizationInvite, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #createOrganizationInvite, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i13.CreateOrganizationInviteResponse>( - this, - Invocation.method( - #createOrganizationInvite, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.CreateOrganizationInviteResponse>); + this, + Invocation.method( + #createOrganizationInvite, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.CreateOrganizationInviteResponse>); @override _i4.ResponseFuture<_i13.UpdateOrganizationInviteAuthorizationsResponse> - updateOrganizationInviteAuthorizations( + updateOrganizationInviteAuthorizations( _i13.UpdateOrganizationInviteAuthorizationsRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #updateOrganizationInviteAuthorizations, [request], {#options: options}, ), returnValue: _FakeResponseFuture_2< - _i13.UpdateOrganizationInviteAuthorizationsResponse>( + _i13.UpdateOrganizationInviteAuthorizationsResponse + >( this, Invocation.method( #updateOrganizationInviteAuthorizations, @@ -1566,7 +1410,8 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { ), ), returnValueForMissingStub: _FakeResponseFuture_2< - _i13.UpdateOrganizationInviteAuthorizationsResponse>( + _i13.UpdateOrganizationInviteAuthorizationsResponse + >( this, Invocation.method( #updateOrganizationInviteAuthorizations, @@ -1574,16 +1419,18 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { {#options: options}, ), ), - ) as _i4.ResponseFuture< - _i13.UpdateOrganizationInviteAuthorizationsResponse>); + ) + as _i4.ResponseFuture< + _i13.UpdateOrganizationInviteAuthorizationsResponse + >); @override _i4.ResponseFuture<_i13.DeleteOrganizationMemberResponse> - deleteOrganizationMember( + deleteOrganizationMember( _i13.DeleteOrganizationMemberRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #deleteOrganizationMember, [request], @@ -1591,31 +1438,32 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { ), returnValue: _FakeResponseFuture_2<_i13.DeleteOrganizationMemberResponse>( - this, - Invocation.method( - #deleteOrganizationMember, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #deleteOrganizationMember, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i13.DeleteOrganizationMemberResponse>( - this, - Invocation.method( - #deleteOrganizationMember, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.DeleteOrganizationMemberResponse>); + this, + Invocation.method( + #deleteOrganizationMember, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.DeleteOrganizationMemberResponse>); @override _i4.ResponseFuture<_i13.DeleteOrganizationInviteResponse> - deleteOrganizationInvite( + deleteOrganizationInvite( _i13.DeleteOrganizationInviteRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #deleteOrganizationInvite, [request], @@ -1623,31 +1471,32 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { ), returnValue: _FakeResponseFuture_2<_i13.DeleteOrganizationInviteResponse>( - this, - Invocation.method( - #deleteOrganizationInvite, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #deleteOrganizationInvite, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i13.DeleteOrganizationInviteResponse>( - this, - Invocation.method( - #deleteOrganizationInvite, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.DeleteOrganizationInviteResponse>); + this, + Invocation.method( + #deleteOrganizationInvite, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.DeleteOrganizationInviteResponse>); @override _i4.ResponseFuture<_i13.ResendOrganizationInviteResponse> - resendOrganizationInvite( + resendOrganizationInvite( _i13.ResendOrganizationInviteRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #resendOrganizationInvite, [request], @@ -1655,23 +1504,24 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { ), returnValue: _FakeResponseFuture_2<_i13.ResendOrganizationInviteResponse>( - this, - Invocation.method( - #resendOrganizationInvite, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #resendOrganizationInvite, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i13.ResendOrganizationInviteResponse>( - this, - Invocation.method( - #resendOrganizationInvite, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.ResendOrganizationInviteResponse>); + this, + Invocation.method( + #resendOrganizationInvite, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.ResendOrganizationInviteResponse>); @override _i4.ResponseFuture<_i13.EnableBillingServiceResponse> enableBillingService( @@ -1679,29 +1529,31 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #enableBillingService, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.EnableBillingServiceResponse>( - this, - Invocation.method( - #enableBillingService, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.EnableBillingServiceResponse>( - this, - Invocation.method( - #enableBillingService, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.EnableBillingServiceResponse>); + Invocation.method( + #enableBillingService, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i13.EnableBillingServiceResponse>( + this, + Invocation.method( + #enableBillingService, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.EnableBillingServiceResponse>( + this, + Invocation.method( + #enableBillingService, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.EnableBillingServiceResponse>); @override _i4.ResponseFuture<_i13.DisableBillingServiceResponse> disableBillingService( @@ -1709,29 +1561,31 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #disableBillingService, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.DisableBillingServiceResponse>( - this, - Invocation.method( - #disableBillingService, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.DisableBillingServiceResponse>( - this, - Invocation.method( - #disableBillingService, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.DisableBillingServiceResponse>); + Invocation.method( + #disableBillingService, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i13.DisableBillingServiceResponse>( + this, + Invocation.method( + #disableBillingService, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.DisableBillingServiceResponse>( + this, + Invocation.method( + #disableBillingService, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.DisableBillingServiceResponse>); @override _i4.ResponseFuture<_i13.UpdateBillingServiceResponse> updateBillingService( @@ -1739,37 +1593,39 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #updateBillingService, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.UpdateBillingServiceResponse>( - this, - Invocation.method( - #updateBillingService, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.UpdateBillingServiceResponse>( - this, - Invocation.method( - #updateBillingService, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.UpdateBillingServiceResponse>); + Invocation.method( + #updateBillingService, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i13.UpdateBillingServiceResponse>( + this, + Invocation.method( + #updateBillingService, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.UpdateBillingServiceResponse>( + this, + Invocation.method( + #updateBillingService, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.UpdateBillingServiceResponse>); @override _i4.ResponseFuture<_i13.GetBillingServiceConfigResponse> - getBillingServiceConfig( + getBillingServiceConfig( _i13.GetBillingServiceConfigRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #getBillingServiceConfig, [request], @@ -1777,31 +1633,32 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { ), returnValue: _FakeResponseFuture_2<_i13.GetBillingServiceConfigResponse>( - this, - Invocation.method( - #getBillingServiceConfig, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #getBillingServiceConfig, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i13.GetBillingServiceConfigResponse>( - this, - Invocation.method( - #getBillingServiceConfig, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.GetBillingServiceConfigResponse>); + this, + Invocation.method( + #getBillingServiceConfig, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.GetBillingServiceConfigResponse>); @override _i4.ResponseFuture<_i13.OrganizationSetSupportEmailResponse> - organizationSetSupportEmail( + organizationSetSupportEmail( _i13.OrganizationSetSupportEmailRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #organizationSetSupportEmail, [request], @@ -1809,31 +1666,32 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { ), returnValue: _FakeResponseFuture_2<_i13.OrganizationSetSupportEmailResponse>( - this, - Invocation.method( - #organizationSetSupportEmail, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #organizationSetSupportEmail, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i13.OrganizationSetSupportEmailResponse>( - this, - Invocation.method( - #organizationSetSupportEmail, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.OrganizationSetSupportEmailResponse>); + this, + Invocation.method( + #organizationSetSupportEmail, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.OrganizationSetSupportEmailResponse>); @override _i4.ResponseFuture<_i13.OrganizationGetSupportEmailResponse> - organizationGetSupportEmail( + organizationGetSupportEmail( _i13.OrganizationGetSupportEmailRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #organizationGetSupportEmail, [request], @@ -1841,23 +1699,24 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { ), returnValue: _FakeResponseFuture_2<_i13.OrganizationGetSupportEmailResponse>( - this, - Invocation.method( - #organizationGetSupportEmail, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #organizationGetSupportEmail, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i13.OrganizationGetSupportEmailResponse>( - this, - Invocation.method( - #organizationGetSupportEmail, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.OrganizationGetSupportEmailResponse>); + this, + Invocation.method( + #organizationGetSupportEmail, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.OrganizationGetSupportEmailResponse>); @override _i4.ResponseFuture<_i13.OrganizationSetLogoResponse> organizationSetLogo( @@ -1865,29 +1724,31 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #organizationSetLogo, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.OrganizationSetLogoResponse>( - this, - Invocation.method( - #organizationSetLogo, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.OrganizationSetLogoResponse>( - this, - Invocation.method( - #organizationSetLogo, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.OrganizationSetLogoResponse>); + Invocation.method( + #organizationSetLogo, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i13.OrganizationSetLogoResponse>( + this, + Invocation.method( + #organizationSetLogo, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.OrganizationSetLogoResponse>( + this, + Invocation.method( + #organizationSetLogo, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.OrganizationSetLogoResponse>); @override _i4.ResponseFuture<_i13.OrganizationGetLogoResponse> organizationGetLogo( @@ -1895,29 +1756,31 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #organizationGetLogo, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.OrganizationGetLogoResponse>( - this, - Invocation.method( - #organizationGetLogo, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.OrganizationGetLogoResponse>( - this, - Invocation.method( - #organizationGetLogo, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.OrganizationGetLogoResponse>); + Invocation.method( + #organizationGetLogo, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i13.OrganizationGetLogoResponse>( + this, + Invocation.method( + #organizationGetLogo, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.OrganizationGetLogoResponse>( + this, + Invocation.method( + #organizationGetLogo, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.OrganizationGetLogoResponse>); @override _i4.ResponseFuture<_i13.EnableAuthServiceResponse> enableAuthService( @@ -1925,29 +1788,30 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #enableAuthService, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.EnableAuthServiceResponse>( - this, - Invocation.method( - #enableAuthService, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.EnableAuthServiceResponse>( - this, - Invocation.method( - #enableAuthService, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.EnableAuthServiceResponse>); + Invocation.method( + #enableAuthService, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i13.EnableAuthServiceResponse>( + this, + Invocation.method( + #enableAuthService, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.EnableAuthServiceResponse>( + this, + Invocation.method( + #enableAuthService, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.EnableAuthServiceResponse>); @override _i4.ResponseFuture<_i13.DisableAuthServiceResponse> disableAuthService( @@ -1955,29 +1819,30 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #disableAuthService, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.DisableAuthServiceResponse>( - this, - Invocation.method( - #disableAuthService, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.DisableAuthServiceResponse>( - this, - Invocation.method( - #disableAuthService, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.DisableAuthServiceResponse>); + Invocation.method( + #disableAuthService, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i13.DisableAuthServiceResponse>( + this, + Invocation.method( + #disableAuthService, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.DisableAuthServiceResponse>( + this, + Invocation.method( + #disableAuthService, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.DisableAuthServiceResponse>); @override _i4.ResponseFuture<_i13.CreateOAuthAppResponse> createOAuthApp( @@ -1985,29 +1850,26 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #createOAuthApp, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.CreateOAuthAppResponse>( - this, - Invocation.method( - #createOAuthApp, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.CreateOAuthAppResponse>( - this, - Invocation.method( - #createOAuthApp, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.CreateOAuthAppResponse>); + Invocation.method(#createOAuthApp, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.CreateOAuthAppResponse>( + this, + Invocation.method( + #createOAuthApp, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.CreateOAuthAppResponse>( + this, + Invocation.method( + #createOAuthApp, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.CreateOAuthAppResponse>); @override _i4.ResponseFuture<_i13.ReadOAuthAppResponse> readOAuthApp( @@ -2015,29 +1877,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #readOAuthApp, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.ReadOAuthAppResponse>( - this, - Invocation.method( - #readOAuthApp, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.ReadOAuthAppResponse>( - this, - Invocation.method( - #readOAuthApp, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.ReadOAuthAppResponse>); + Invocation.method(#readOAuthApp, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.ReadOAuthAppResponse>( + this, + Invocation.method(#readOAuthApp, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.ReadOAuthAppResponse>( + this, + Invocation.method( + #readOAuthApp, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.ReadOAuthAppResponse>); @override _i4.ResponseFuture<_i13.UpdateOAuthAppResponse> updateOAuthApp( @@ -2045,29 +1900,26 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #updateOAuthApp, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.UpdateOAuthAppResponse>( - this, - Invocation.method( - #updateOAuthApp, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.UpdateOAuthAppResponse>( - this, - Invocation.method( - #updateOAuthApp, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.UpdateOAuthAppResponse>); + Invocation.method(#updateOAuthApp, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.UpdateOAuthAppResponse>( + this, + Invocation.method( + #updateOAuthApp, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.UpdateOAuthAppResponse>( + this, + Invocation.method( + #updateOAuthApp, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.UpdateOAuthAppResponse>); @override _i4.ResponseFuture<_i13.DeleteOAuthAppResponse> deleteOAuthApp( @@ -2075,29 +1927,26 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #deleteOAuthApp, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.DeleteOAuthAppResponse>( - this, - Invocation.method( - #deleteOAuthApp, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.DeleteOAuthAppResponse>( - this, - Invocation.method( - #deleteOAuthApp, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.DeleteOAuthAppResponse>); + Invocation.method(#deleteOAuthApp, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.DeleteOAuthAppResponse>( + this, + Invocation.method( + #deleteOAuthApp, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.DeleteOAuthAppResponse>( + this, + Invocation.method( + #deleteOAuthApp, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.DeleteOAuthAppResponse>); @override _i4.ResponseFuture<_i13.ListOAuthAppsResponse> listOAuthApps( @@ -2105,29 +1954,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #listOAuthApps, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.ListOAuthAppsResponse>( - this, - Invocation.method( - #listOAuthApps, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.ListOAuthAppsResponse>( - this, - Invocation.method( - #listOAuthApps, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.ListOAuthAppsResponse>); + Invocation.method(#listOAuthApps, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.ListOAuthAppsResponse>( + this, + Invocation.method(#listOAuthApps, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.ListOAuthAppsResponse>( + this, + Invocation.method( + #listOAuthApps, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.ListOAuthAppsResponse>); @override _i4.ResponseFuture<_i13.CreateLocationResponse> createLocation( @@ -2135,29 +1977,26 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #createLocation, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.CreateLocationResponse>( - this, - Invocation.method( - #createLocation, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.CreateLocationResponse>( - this, - Invocation.method( - #createLocation, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.CreateLocationResponse>); + Invocation.method(#createLocation, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.CreateLocationResponse>( + this, + Invocation.method( + #createLocation, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.CreateLocationResponse>( + this, + Invocation.method( + #createLocation, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.CreateLocationResponse>); @override _i4.ResponseFuture<_i13.GetLocationResponse> getLocation( @@ -2165,29 +2004,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getLocation, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.GetLocationResponse>( - this, - Invocation.method( - #getLocation, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.GetLocationResponse>( - this, - Invocation.method( - #getLocation, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.GetLocationResponse>); + Invocation.method(#getLocation, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.GetLocationResponse>( + this, + Invocation.method(#getLocation, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.GetLocationResponse>( + this, + Invocation.method( + #getLocation, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.GetLocationResponse>); @override _i4.ResponseFuture<_i13.UpdateLocationResponse> updateLocation( @@ -2195,29 +2027,26 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #updateLocation, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.UpdateLocationResponse>( - this, - Invocation.method( - #updateLocation, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.UpdateLocationResponse>( - this, - Invocation.method( - #updateLocation, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.UpdateLocationResponse>); + Invocation.method(#updateLocation, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.UpdateLocationResponse>( + this, + Invocation.method( + #updateLocation, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.UpdateLocationResponse>( + this, + Invocation.method( + #updateLocation, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.UpdateLocationResponse>); @override _i4.ResponseFuture<_i13.DeleteLocationResponse> deleteLocation( @@ -2225,29 +2054,26 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #deleteLocation, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.DeleteLocationResponse>( - this, - Invocation.method( - #deleteLocation, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.DeleteLocationResponse>( - this, - Invocation.method( - #deleteLocation, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.DeleteLocationResponse>); + Invocation.method(#deleteLocation, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.DeleteLocationResponse>( + this, + Invocation.method( + #deleteLocation, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.DeleteLocationResponse>( + this, + Invocation.method( + #deleteLocation, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.DeleteLocationResponse>); @override _i4.ResponseFuture<_i13.ListLocationsResponse> listLocations( @@ -2255,29 +2081,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #listLocations, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.ListLocationsResponse>( - this, - Invocation.method( - #listLocations, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.ListLocationsResponse>( - this, - Invocation.method( - #listLocations, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.ListLocationsResponse>); + Invocation.method(#listLocations, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.ListLocationsResponse>( + this, + Invocation.method(#listLocations, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.ListLocationsResponse>( + this, + Invocation.method( + #listLocations, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.ListLocationsResponse>); @override _i4.ResponseFuture<_i13.ShareLocationResponse> shareLocation( @@ -2285,29 +2104,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #shareLocation, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.ShareLocationResponse>( - this, - Invocation.method( - #shareLocation, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.ShareLocationResponse>( - this, - Invocation.method( - #shareLocation, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.ShareLocationResponse>); + Invocation.method(#shareLocation, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.ShareLocationResponse>( + this, + Invocation.method(#shareLocation, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.ShareLocationResponse>( + this, + Invocation.method( + #shareLocation, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.ShareLocationResponse>); @override _i4.ResponseFuture<_i13.UnshareLocationResponse> unshareLocation( @@ -2315,29 +2127,26 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #unshareLocation, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.UnshareLocationResponse>( - this, - Invocation.method( - #unshareLocation, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.UnshareLocationResponse>( - this, - Invocation.method( - #unshareLocation, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.UnshareLocationResponse>); + Invocation.method(#unshareLocation, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.UnshareLocationResponse>( + this, + Invocation.method( + #unshareLocation, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.UnshareLocationResponse>( + this, + Invocation.method( + #unshareLocation, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.UnshareLocationResponse>); @override _i4.ResponseFuture<_i13.LocationAuthResponse> locationAuth( @@ -2345,29 +2154,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #locationAuth, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.LocationAuthResponse>( - this, - Invocation.method( - #locationAuth, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.LocationAuthResponse>( - this, - Invocation.method( - #locationAuth, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.LocationAuthResponse>); + Invocation.method(#locationAuth, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.LocationAuthResponse>( + this, + Invocation.method(#locationAuth, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.LocationAuthResponse>( + this, + Invocation.method( + #locationAuth, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.LocationAuthResponse>); @override _i4.ResponseFuture<_i13.CreateLocationSecretResponse> createLocationSecret( @@ -2375,29 +2177,31 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #createLocationSecret, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.CreateLocationSecretResponse>( - this, - Invocation.method( - #createLocationSecret, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.CreateLocationSecretResponse>( - this, - Invocation.method( - #createLocationSecret, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.CreateLocationSecretResponse>); + Invocation.method( + #createLocationSecret, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i13.CreateLocationSecretResponse>( + this, + Invocation.method( + #createLocationSecret, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.CreateLocationSecretResponse>( + this, + Invocation.method( + #createLocationSecret, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.CreateLocationSecretResponse>); @override _i4.ResponseFuture<_i13.DeleteLocationSecretResponse> deleteLocationSecret( @@ -2405,29 +2209,31 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #deleteLocationSecret, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.DeleteLocationSecretResponse>( - this, - Invocation.method( - #deleteLocationSecret, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.DeleteLocationSecretResponse>( - this, - Invocation.method( - #deleteLocationSecret, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.DeleteLocationSecretResponse>); + Invocation.method( + #deleteLocationSecret, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i13.DeleteLocationSecretResponse>( + this, + Invocation.method( + #deleteLocationSecret, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.DeleteLocationSecretResponse>( + this, + Invocation.method( + #deleteLocationSecret, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.DeleteLocationSecretResponse>); @override _i4.ResponseFuture<_i13.GetRobotResponse> getRobot( @@ -2435,28 +2241,18 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getRobot, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.GetRobotResponse>( - this, - Invocation.method( - #getRobot, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2<_i13.GetRobotResponse>( - this, - Invocation.method( - #getRobot, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.GetRobotResponse>); + Invocation.method(#getRobot, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.GetRobotResponse>( + this, + Invocation.method(#getRobot, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.GetRobotResponse>( + this, + Invocation.method(#getRobot, [request], {#options: options}), + ), + ) + as _i4.ResponseFuture<_i13.GetRobotResponse>); @override _i4.ResponseFuture<_i13.GetRoverRentalRobotsResponse> getRoverRentalRobots( @@ -2464,29 +2260,31 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getRoverRentalRobots, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.GetRoverRentalRobotsResponse>( - this, - Invocation.method( - #getRoverRentalRobots, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.GetRoverRentalRobotsResponse>( - this, - Invocation.method( - #getRoverRentalRobots, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.GetRoverRentalRobotsResponse>); + Invocation.method( + #getRoverRentalRobots, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i13.GetRoverRentalRobotsResponse>( + this, + Invocation.method( + #getRoverRentalRobots, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.GetRoverRentalRobotsResponse>( + this, + Invocation.method( + #getRoverRentalRobots, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.GetRoverRentalRobotsResponse>); @override _i4.ResponseFuture<_i13.GetRobotPartsResponse> getRobotParts( @@ -2494,29 +2292,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getRobotParts, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.GetRobotPartsResponse>( - this, - Invocation.method( - #getRobotParts, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.GetRobotPartsResponse>( - this, - Invocation.method( - #getRobotParts, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.GetRobotPartsResponse>); + Invocation.method(#getRobotParts, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.GetRobotPartsResponse>( + this, + Invocation.method(#getRobotParts, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.GetRobotPartsResponse>( + this, + Invocation.method( + #getRobotParts, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.GetRobotPartsResponse>); @override _i4.ResponseFuture<_i13.GetRobotPartResponse> getRobotPart( @@ -2524,29 +2315,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getRobotPart, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.GetRobotPartResponse>( - this, - Invocation.method( - #getRobotPart, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.GetRobotPartResponse>( - this, - Invocation.method( - #getRobotPart, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.GetRobotPartResponse>); + Invocation.method(#getRobotPart, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.GetRobotPartResponse>( + this, + Invocation.method(#getRobotPart, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.GetRobotPartResponse>( + this, + Invocation.method( + #getRobotPart, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.GetRobotPartResponse>); @override _i4.ResponseFuture<_i13.GetRobotPartLogsResponse> getRobotPartLogs( @@ -2554,29 +2338,30 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getRobotPartLogs, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.GetRobotPartLogsResponse>( - this, - Invocation.method( - #getRobotPartLogs, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.GetRobotPartLogsResponse>( - this, - Invocation.method( - #getRobotPartLogs, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.GetRobotPartLogsResponse>); + Invocation.method( + #getRobotPartLogs, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i13.GetRobotPartLogsResponse>( + this, + Invocation.method( + #getRobotPartLogs, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.GetRobotPartLogsResponse>( + this, + Invocation.method( + #getRobotPartLogs, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.GetRobotPartLogsResponse>); @override _i4.ResponseStream<_i13.TailRobotPartLogsResponse> tailRobotPartLogs( @@ -2584,29 +2369,30 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #tailRobotPartLogs, - [request], - {#options: options}, - ), - returnValue: _FakeResponseStream_3<_i13.TailRobotPartLogsResponse>( - this, - Invocation.method( - #tailRobotPartLogs, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseStream_3<_i13.TailRobotPartLogsResponse>( - this, - Invocation.method( - #tailRobotPartLogs, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseStream<_i13.TailRobotPartLogsResponse>); + Invocation.method( + #tailRobotPartLogs, + [request], + {#options: options}, + ), + returnValue: _FakeResponseStream_3<_i13.TailRobotPartLogsResponse>( + this, + Invocation.method( + #tailRobotPartLogs, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseStream_3<_i13.TailRobotPartLogsResponse>( + this, + Invocation.method( + #tailRobotPartLogs, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseStream<_i13.TailRobotPartLogsResponse>); @override _i4.ResponseFuture<_i13.GetRobotPartHistoryResponse> getRobotPartHistory( @@ -2614,29 +2400,31 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getRobotPartHistory, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.GetRobotPartHistoryResponse>( - this, - Invocation.method( - #getRobotPartHistory, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.GetRobotPartHistoryResponse>( - this, - Invocation.method( - #getRobotPartHistory, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.GetRobotPartHistoryResponse>); + Invocation.method( + #getRobotPartHistory, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i13.GetRobotPartHistoryResponse>( + this, + Invocation.method( + #getRobotPartHistory, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.GetRobotPartHistoryResponse>( + this, + Invocation.method( + #getRobotPartHistory, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.GetRobotPartHistoryResponse>); @override _i4.ResponseFuture<_i13.UpdateRobotPartResponse> updateRobotPart( @@ -2644,29 +2432,26 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #updateRobotPart, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.UpdateRobotPartResponse>( - this, - Invocation.method( - #updateRobotPart, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.UpdateRobotPartResponse>( - this, - Invocation.method( - #updateRobotPart, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.UpdateRobotPartResponse>); + Invocation.method(#updateRobotPart, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.UpdateRobotPartResponse>( + this, + Invocation.method( + #updateRobotPart, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.UpdateRobotPartResponse>( + this, + Invocation.method( + #updateRobotPart, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.UpdateRobotPartResponse>); @override _i4.ResponseFuture<_i13.NewRobotPartResponse> newRobotPart( @@ -2674,29 +2459,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #newRobotPart, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.NewRobotPartResponse>( - this, - Invocation.method( - #newRobotPart, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.NewRobotPartResponse>( - this, - Invocation.method( - #newRobotPart, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.NewRobotPartResponse>); + Invocation.method(#newRobotPart, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.NewRobotPartResponse>( + this, + Invocation.method(#newRobotPart, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.NewRobotPartResponse>( + this, + Invocation.method( + #newRobotPart, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.NewRobotPartResponse>); @override _i4.ResponseFuture<_i13.DeleteRobotPartResponse> deleteRobotPart( @@ -2704,29 +2482,26 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #deleteRobotPart, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.DeleteRobotPartResponse>( - this, - Invocation.method( - #deleteRobotPart, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.DeleteRobotPartResponse>( - this, - Invocation.method( - #deleteRobotPart, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.DeleteRobotPartResponse>); + Invocation.method(#deleteRobotPart, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.DeleteRobotPartResponse>( + this, + Invocation.method( + #deleteRobotPart, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.DeleteRobotPartResponse>( + this, + Invocation.method( + #deleteRobotPart, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.DeleteRobotPartResponse>); @override _i4.ResponseFuture<_i13.GetRobotAPIKeysResponse> getRobotAPIKeys( @@ -2734,29 +2509,26 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getRobotAPIKeys, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.GetRobotAPIKeysResponse>( - this, - Invocation.method( - #getRobotAPIKeys, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.GetRobotAPIKeysResponse>( - this, - Invocation.method( - #getRobotAPIKeys, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.GetRobotAPIKeysResponse>); + Invocation.method(#getRobotAPIKeys, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.GetRobotAPIKeysResponse>( + this, + Invocation.method( + #getRobotAPIKeys, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.GetRobotAPIKeysResponse>( + this, + Invocation.method( + #getRobotAPIKeys, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.GetRobotAPIKeysResponse>); @override _i4.ResponseFuture<_i13.MarkPartAsMainResponse> markPartAsMain( @@ -2764,29 +2536,26 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #markPartAsMain, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.MarkPartAsMainResponse>( - this, - Invocation.method( - #markPartAsMain, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.MarkPartAsMainResponse>( - this, - Invocation.method( - #markPartAsMain, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.MarkPartAsMainResponse>); + Invocation.method(#markPartAsMain, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.MarkPartAsMainResponse>( + this, + Invocation.method( + #markPartAsMain, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.MarkPartAsMainResponse>( + this, + Invocation.method( + #markPartAsMain, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.MarkPartAsMainResponse>); @override _i4.ResponseFuture<_i13.MarkPartForRestartResponse> markPartForRestart( @@ -2794,29 +2563,30 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #markPartForRestart, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.MarkPartForRestartResponse>( - this, - Invocation.method( - #markPartForRestart, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.MarkPartForRestartResponse>( - this, - Invocation.method( - #markPartForRestart, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.MarkPartForRestartResponse>); + Invocation.method( + #markPartForRestart, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i13.MarkPartForRestartResponse>( + this, + Invocation.method( + #markPartForRestart, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.MarkPartForRestartResponse>( + this, + Invocation.method( + #markPartForRestart, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.MarkPartForRestartResponse>); @override _i4.ResponseFuture<_i13.CreateRobotPartSecretResponse> createRobotPartSecret( @@ -2824,29 +2594,31 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #createRobotPartSecret, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.CreateRobotPartSecretResponse>( - this, - Invocation.method( - #createRobotPartSecret, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.CreateRobotPartSecretResponse>( - this, - Invocation.method( - #createRobotPartSecret, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.CreateRobotPartSecretResponse>); + Invocation.method( + #createRobotPartSecret, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i13.CreateRobotPartSecretResponse>( + this, + Invocation.method( + #createRobotPartSecret, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.CreateRobotPartSecretResponse>( + this, + Invocation.method( + #createRobotPartSecret, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.CreateRobotPartSecretResponse>); @override _i4.ResponseFuture<_i13.DeleteRobotPartSecretResponse> deleteRobotPartSecret( @@ -2854,29 +2626,31 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #deleteRobotPartSecret, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.DeleteRobotPartSecretResponse>( - this, - Invocation.method( - #deleteRobotPartSecret, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.DeleteRobotPartSecretResponse>( - this, - Invocation.method( - #deleteRobotPartSecret, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.DeleteRobotPartSecretResponse>); + Invocation.method( + #deleteRobotPartSecret, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i13.DeleteRobotPartSecretResponse>( + this, + Invocation.method( + #deleteRobotPartSecret, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.DeleteRobotPartSecretResponse>( + this, + Invocation.method( + #deleteRobotPartSecret, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.DeleteRobotPartSecretResponse>); @override _i4.ResponseFuture<_i13.ListRobotsResponse> listRobots( @@ -2884,29 +2658,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #listRobots, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.ListRobotsResponse>( - this, - Invocation.method( - #listRobots, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.ListRobotsResponse>( - this, - Invocation.method( - #listRobots, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.ListRobotsResponse>); + Invocation.method(#listRobots, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.ListRobotsResponse>( + this, + Invocation.method(#listRobots, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.ListRobotsResponse>( + this, + Invocation.method( + #listRobots, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.ListRobotsResponse>); @override _i4.ResponseFuture<_i13.NewRobotResponse> newRobot( @@ -2914,28 +2681,18 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #newRobot, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.NewRobotResponse>( - this, - Invocation.method( - #newRobot, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2<_i13.NewRobotResponse>( - this, - Invocation.method( - #newRobot, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.NewRobotResponse>); + Invocation.method(#newRobot, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.NewRobotResponse>( + this, + Invocation.method(#newRobot, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.NewRobotResponse>( + this, + Invocation.method(#newRobot, [request], {#options: options}), + ), + ) + as _i4.ResponseFuture<_i13.NewRobotResponse>); @override _i4.ResponseFuture<_i13.UpdateRobotResponse> updateRobot( @@ -2943,29 +2700,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #updateRobot, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.UpdateRobotResponse>( - this, - Invocation.method( - #updateRobot, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.UpdateRobotResponse>( - this, - Invocation.method( - #updateRobot, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.UpdateRobotResponse>); + Invocation.method(#updateRobot, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.UpdateRobotResponse>( + this, + Invocation.method(#updateRobot, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.UpdateRobotResponse>( + this, + Invocation.method( + #updateRobot, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.UpdateRobotResponse>); @override _i4.ResponseFuture<_i13.DeleteRobotResponse> deleteRobot( @@ -2973,29 +2723,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #deleteRobot, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.DeleteRobotResponse>( - this, - Invocation.method( - #deleteRobot, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.DeleteRobotResponse>( - this, - Invocation.method( - #deleteRobot, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.DeleteRobotResponse>); + Invocation.method(#deleteRobot, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.DeleteRobotResponse>( + this, + Invocation.method(#deleteRobot, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.DeleteRobotResponse>( + this, + Invocation.method( + #deleteRobot, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.DeleteRobotResponse>); @override _i4.ResponseFuture<_i13.ListFragmentsResponse> listFragments( @@ -3003,29 +2746,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #listFragments, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.ListFragmentsResponse>( - this, - Invocation.method( - #listFragments, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.ListFragmentsResponse>( - this, - Invocation.method( - #listFragments, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.ListFragmentsResponse>); + Invocation.method(#listFragments, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.ListFragmentsResponse>( + this, + Invocation.method(#listFragments, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.ListFragmentsResponse>( + this, + Invocation.method( + #listFragments, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.ListFragmentsResponse>); @override _i4.ResponseFuture<_i13.GetFragmentResponse> getFragment( @@ -3033,29 +2769,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getFragment, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.GetFragmentResponse>( - this, - Invocation.method( - #getFragment, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.GetFragmentResponse>( - this, - Invocation.method( - #getFragment, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.GetFragmentResponse>); + Invocation.method(#getFragment, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.GetFragmentResponse>( + this, + Invocation.method(#getFragment, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.GetFragmentResponse>( + this, + Invocation.method( + #getFragment, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.GetFragmentResponse>); @override _i4.ResponseFuture<_i13.CreateFragmentResponse> createFragment( @@ -3063,29 +2792,26 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #createFragment, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.CreateFragmentResponse>( - this, - Invocation.method( - #createFragment, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.CreateFragmentResponse>( - this, - Invocation.method( - #createFragment, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.CreateFragmentResponse>); + Invocation.method(#createFragment, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.CreateFragmentResponse>( + this, + Invocation.method( + #createFragment, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.CreateFragmentResponse>( + this, + Invocation.method( + #createFragment, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.CreateFragmentResponse>); @override _i4.ResponseFuture<_i13.UpdateFragmentResponse> updateFragment( @@ -3093,29 +2819,26 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #updateFragment, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.UpdateFragmentResponse>( - this, - Invocation.method( - #updateFragment, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.UpdateFragmentResponse>( - this, - Invocation.method( - #updateFragment, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.UpdateFragmentResponse>); + Invocation.method(#updateFragment, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.UpdateFragmentResponse>( + this, + Invocation.method( + #updateFragment, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.UpdateFragmentResponse>( + this, + Invocation.method( + #updateFragment, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.UpdateFragmentResponse>); @override _i4.ResponseFuture<_i13.DeleteFragmentResponse> deleteFragment( @@ -3123,29 +2846,26 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #deleteFragment, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.DeleteFragmentResponse>( - this, - Invocation.method( - #deleteFragment, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.DeleteFragmentResponse>( - this, - Invocation.method( - #deleteFragment, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.DeleteFragmentResponse>); + Invocation.method(#deleteFragment, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.DeleteFragmentResponse>( + this, + Invocation.method( + #deleteFragment, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.DeleteFragmentResponse>( + this, + Invocation.method( + #deleteFragment, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.DeleteFragmentResponse>); @override _i4.ResponseFuture<_i13.ListMachineFragmentsResponse> listMachineFragments( @@ -3153,29 +2873,31 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #listMachineFragments, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.ListMachineFragmentsResponse>( - this, - Invocation.method( - #listMachineFragments, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.ListMachineFragmentsResponse>( - this, - Invocation.method( - #listMachineFragments, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.ListMachineFragmentsResponse>); + Invocation.method( + #listMachineFragments, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i13.ListMachineFragmentsResponse>( + this, + Invocation.method( + #listMachineFragments, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.ListMachineFragmentsResponse>( + this, + Invocation.method( + #listMachineFragments, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.ListMachineFragmentsResponse>); @override _i4.ResponseFuture<_i13.GetFragmentHistoryResponse> getFragmentHistory( @@ -3183,29 +2905,30 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getFragmentHistory, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.GetFragmentHistoryResponse>( - this, - Invocation.method( - #getFragmentHistory, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.GetFragmentHistoryResponse>( - this, - Invocation.method( - #getFragmentHistory, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.GetFragmentHistoryResponse>); + Invocation.method( + #getFragmentHistory, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i13.GetFragmentHistoryResponse>( + this, + Invocation.method( + #getFragmentHistory, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.GetFragmentHistoryResponse>( + this, + Invocation.method( + #getFragmentHistory, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.GetFragmentHistoryResponse>); @override _i4.ResponseFuture<_i13.AddRoleResponse> addRole( @@ -3213,28 +2936,18 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #addRole, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.AddRoleResponse>( - this, - Invocation.method( - #addRole, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2<_i13.AddRoleResponse>( - this, - Invocation.method( - #addRole, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.AddRoleResponse>); + Invocation.method(#addRole, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.AddRoleResponse>( + this, + Invocation.method(#addRole, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.AddRoleResponse>( + this, + Invocation.method(#addRole, [request], {#options: options}), + ), + ) + as _i4.ResponseFuture<_i13.AddRoleResponse>); @override _i4.ResponseFuture<_i13.RemoveRoleResponse> removeRole( @@ -3242,29 +2955,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #removeRole, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.RemoveRoleResponse>( - this, - Invocation.method( - #removeRole, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.RemoveRoleResponse>( - this, - Invocation.method( - #removeRole, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.RemoveRoleResponse>); + Invocation.method(#removeRole, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.RemoveRoleResponse>( + this, + Invocation.method(#removeRole, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.RemoveRoleResponse>( + this, + Invocation.method( + #removeRole, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.RemoveRoleResponse>); @override _i4.ResponseFuture<_i13.ChangeRoleResponse> changeRole( @@ -3272,29 +2978,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #changeRole, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.ChangeRoleResponse>( - this, - Invocation.method( - #changeRole, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.ChangeRoleResponse>( - this, - Invocation.method( - #changeRole, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.ChangeRoleResponse>); + Invocation.method(#changeRole, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.ChangeRoleResponse>( + this, + Invocation.method(#changeRole, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.ChangeRoleResponse>( + this, + Invocation.method( + #changeRole, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.ChangeRoleResponse>); @override _i4.ResponseFuture<_i13.ListAuthorizationsResponse> listAuthorizations( @@ -3302,29 +3001,30 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #listAuthorizations, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.ListAuthorizationsResponse>( - this, - Invocation.method( - #listAuthorizations, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.ListAuthorizationsResponse>( - this, - Invocation.method( - #listAuthorizations, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.ListAuthorizationsResponse>); + Invocation.method( + #listAuthorizations, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i13.ListAuthorizationsResponse>( + this, + Invocation.method( + #listAuthorizations, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.ListAuthorizationsResponse>( + this, + Invocation.method( + #listAuthorizations, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.ListAuthorizationsResponse>); @override _i4.ResponseFuture<_i13.CheckPermissionsResponse> checkPermissions( @@ -3332,29 +3032,30 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #checkPermissions, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.CheckPermissionsResponse>( - this, - Invocation.method( - #checkPermissions, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.CheckPermissionsResponse>( - this, - Invocation.method( - #checkPermissions, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.CheckPermissionsResponse>); + Invocation.method( + #checkPermissions, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i13.CheckPermissionsResponse>( + this, + Invocation.method( + #checkPermissions, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.CheckPermissionsResponse>( + this, + Invocation.method( + #checkPermissions, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.CheckPermissionsResponse>); @override _i4.ResponseFuture<_i13.GetRegistryItemResponse> getRegistryItem( @@ -3362,29 +3063,26 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getRegistryItem, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.GetRegistryItemResponse>( - this, - Invocation.method( - #getRegistryItem, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.GetRegistryItemResponse>( - this, - Invocation.method( - #getRegistryItem, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.GetRegistryItemResponse>); + Invocation.method(#getRegistryItem, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.GetRegistryItemResponse>( + this, + Invocation.method( + #getRegistryItem, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.GetRegistryItemResponse>( + this, + Invocation.method( + #getRegistryItem, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.GetRegistryItemResponse>); @override _i4.ResponseFuture<_i13.CreateRegistryItemResponse> createRegistryItem( @@ -3392,89 +3090,92 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #createRegistryItem, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.CreateRegistryItemResponse>( - this, - Invocation.method( - #createRegistryItem, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.CreateRegistryItemResponse>( - this, - Invocation.method( - #createRegistryItem, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.CreateRegistryItemResponse>); - - @override - _i4.ResponseFuture<_i13.UpdateRegistryItemResponse> updateRegistryItem( - _i13.UpdateRegistryItemRequest? request, { - _i3.CallOptions? options, - }) => - (super.noSuchMethod( - Invocation.method( - #updateRegistryItem, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.UpdateRegistryItemResponse>( - this, - Invocation.method( - #updateRegistryItem, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.UpdateRegistryItemResponse>( - this, - Invocation.method( - #updateRegistryItem, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.UpdateRegistryItemResponse>); - - @override - _i4.ResponseFuture<_i13.ListRegistryItemsResponse> listRegistryItems( + Invocation.method( + #createRegistryItem, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i13.CreateRegistryItemResponse>( + this, + Invocation.method( + #createRegistryItem, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.CreateRegistryItemResponse>( + this, + Invocation.method( + #createRegistryItem, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.CreateRegistryItemResponse>); + + @override + _i4.ResponseFuture<_i13.UpdateRegistryItemResponse> updateRegistryItem( + _i13.UpdateRegistryItemRequest? request, { + _i3.CallOptions? options, + }) => + (super.noSuchMethod( + Invocation.method( + #updateRegistryItem, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i13.UpdateRegistryItemResponse>( + this, + Invocation.method( + #updateRegistryItem, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.UpdateRegistryItemResponse>( + this, + Invocation.method( + #updateRegistryItem, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.UpdateRegistryItemResponse>); + + @override + _i4.ResponseFuture<_i13.ListRegistryItemsResponse> listRegistryItems( _i13.ListRegistryItemsRequest? request, { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #listRegistryItems, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.ListRegistryItemsResponse>( - this, - Invocation.method( - #listRegistryItems, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.ListRegistryItemsResponse>( - this, - Invocation.method( - #listRegistryItems, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.ListRegistryItemsResponse>); + Invocation.method( + #listRegistryItems, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i13.ListRegistryItemsResponse>( + this, + Invocation.method( + #listRegistryItems, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.ListRegistryItemsResponse>( + this, + Invocation.method( + #listRegistryItems, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.ListRegistryItemsResponse>); @override _i4.ResponseFuture<_i13.DeleteRegistryItemResponse> deleteRegistryItem( @@ -3482,29 +3183,30 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #deleteRegistryItem, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.DeleteRegistryItemResponse>( - this, - Invocation.method( - #deleteRegistryItem, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.DeleteRegistryItemResponse>( - this, - Invocation.method( - #deleteRegistryItem, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.DeleteRegistryItemResponse>); + Invocation.method( + #deleteRegistryItem, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i13.DeleteRegistryItemResponse>( + this, + Invocation.method( + #deleteRegistryItem, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.DeleteRegistryItemResponse>( + this, + Invocation.method( + #deleteRegistryItem, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.DeleteRegistryItemResponse>); @override _i4.ResponseFuture<_i13.TransferRegistryItemResponse> transferRegistryItem( @@ -3512,29 +3214,31 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #transferRegistryItem, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.TransferRegistryItemResponse>( - this, - Invocation.method( - #transferRegistryItem, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.TransferRegistryItemResponse>( - this, - Invocation.method( - #transferRegistryItem, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.TransferRegistryItemResponse>); + Invocation.method( + #transferRegistryItem, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i13.TransferRegistryItemResponse>( + this, + Invocation.method( + #transferRegistryItem, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.TransferRegistryItemResponse>( + this, + Invocation.method( + #transferRegistryItem, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.TransferRegistryItemResponse>); @override _i4.ResponseFuture<_i13.CreateModuleResponse> createModule( @@ -3542,29 +3246,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #createModule, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.CreateModuleResponse>( - this, - Invocation.method( - #createModule, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.CreateModuleResponse>( - this, - Invocation.method( - #createModule, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.CreateModuleResponse>); + Invocation.method(#createModule, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.CreateModuleResponse>( + this, + Invocation.method(#createModule, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.CreateModuleResponse>( + this, + Invocation.method( + #createModule, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.CreateModuleResponse>); @override _i4.ResponseFuture<_i13.UpdateModuleResponse> updateModule( @@ -3572,29 +3269,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #updateModule, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.UpdateModuleResponse>( - this, - Invocation.method( - #updateModule, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.UpdateModuleResponse>( - this, - Invocation.method( - #updateModule, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.UpdateModuleResponse>); + Invocation.method(#updateModule, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.UpdateModuleResponse>( + this, + Invocation.method(#updateModule, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.UpdateModuleResponse>( + this, + Invocation.method( + #updateModule, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.UpdateModuleResponse>); @override _i4.ResponseFuture<_i13.UploadModuleFileResponse> uploadModuleFile( @@ -3602,29 +3292,30 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #uploadModuleFile, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.UploadModuleFileResponse>( - this, - Invocation.method( - #uploadModuleFile, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.UploadModuleFileResponse>( - this, - Invocation.method( - #uploadModuleFile, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.UploadModuleFileResponse>); + Invocation.method( + #uploadModuleFile, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i13.UploadModuleFileResponse>( + this, + Invocation.method( + #uploadModuleFile, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.UploadModuleFileResponse>( + this, + Invocation.method( + #uploadModuleFile, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.UploadModuleFileResponse>); @override _i4.ResponseFuture<_i13.GetModuleResponse> getModule( @@ -3632,29 +3323,18 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getModule, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.GetModuleResponse>( - this, - Invocation.method( - #getModule, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.GetModuleResponse>( - this, - Invocation.method( - #getModule, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.GetModuleResponse>); + Invocation.method(#getModule, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.GetModuleResponse>( + this, + Invocation.method(#getModule, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.GetModuleResponse>( + this, + Invocation.method(#getModule, [request], {#options: options}), + ), + ) + as _i4.ResponseFuture<_i13.GetModuleResponse>); @override _i4.ResponseFuture<_i13.ListModulesResponse> listModules( @@ -3662,29 +3342,22 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #listModules, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.ListModulesResponse>( - this, - Invocation.method( - #listModules, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.ListModulesResponse>( - this, - Invocation.method( - #listModules, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.ListModulesResponse>); + Invocation.method(#listModules, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.ListModulesResponse>( + this, + Invocation.method(#listModules, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.ListModulesResponse>( + this, + Invocation.method( + #listModules, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i13.ListModulesResponse>); @override _i4.ResponseFuture<_i13.CreateKeyResponse> createKey( @@ -3692,29 +3365,18 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #createKey, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.CreateKeyResponse>( - this, - Invocation.method( - #createKey, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.CreateKeyResponse>( - this, - Invocation.method( - #createKey, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.CreateKeyResponse>); + Invocation.method(#createKey, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.CreateKeyResponse>( + this, + Invocation.method(#createKey, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.CreateKeyResponse>( + this, + Invocation.method(#createKey, [request], {#options: options}), + ), + ) + as _i4.ResponseFuture<_i13.CreateKeyResponse>); @override _i4.ResponseFuture<_i13.DeleteKeyResponse> deleteKey( @@ -3722,29 +3384,18 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #deleteKey, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.DeleteKeyResponse>( - this, - Invocation.method( - #deleteKey, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.DeleteKeyResponse>( - this, - Invocation.method( - #deleteKey, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.DeleteKeyResponse>); + Invocation.method(#deleteKey, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.DeleteKeyResponse>( + this, + Invocation.method(#deleteKey, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.DeleteKeyResponse>( + this, + Invocation.method(#deleteKey, [request], {#options: options}), + ), + ) + as _i4.ResponseFuture<_i13.DeleteKeyResponse>); @override _i4.ResponseFuture<_i13.ListKeysResponse> listKeys( @@ -3752,28 +3403,18 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #listKeys, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.ListKeysResponse>( - this, - Invocation.method( - #listKeys, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2<_i13.ListKeysResponse>( - this, - Invocation.method( - #listKeys, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.ListKeysResponse>); + Invocation.method(#listKeys, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.ListKeysResponse>( + this, + Invocation.method(#listKeys, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.ListKeysResponse>( + this, + Invocation.method(#listKeys, [request], {#options: options}), + ), + ) + as _i4.ResponseFuture<_i13.ListKeysResponse>); @override _i4.ResponseFuture<_i13.RenameKeyResponse> renameKey( @@ -3781,29 +3422,18 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #renameKey, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.RenameKeyResponse>( - this, - Invocation.method( - #renameKey, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.RenameKeyResponse>( - this, - Invocation.method( - #renameKey, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.RenameKeyResponse>); + Invocation.method(#renameKey, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.RenameKeyResponse>( + this, + Invocation.method(#renameKey, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.RenameKeyResponse>( + this, + Invocation.method(#renameKey, [request], {#options: options}), + ), + ) + as _i4.ResponseFuture<_i13.RenameKeyResponse>); @override _i4.ResponseFuture<_i13.RotateKeyResponse> rotateKey( @@ -3811,44 +3441,34 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #rotateKey, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i13.RotateKeyResponse>( - this, - Invocation.method( - #rotateKey, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i13.RotateKeyResponse>( - this, - Invocation.method( - #rotateKey, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i13.RotateKeyResponse>); + Invocation.method(#rotateKey, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i13.RotateKeyResponse>( + this, + Invocation.method(#rotateKey, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i13.RotateKeyResponse>( + this, + Invocation.method(#rotateKey, [request], {#options: options}), + ), + ) + as _i4.ResponseFuture<_i13.RotateKeyResponse>); @override _i4.ResponseFuture<_i13.CreateKeyFromExistingKeyAuthorizationsResponse> - createKeyFromExistingKeyAuthorizations( + createKeyFromExistingKeyAuthorizations( _i13.CreateKeyFromExistingKeyAuthorizationsRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #createKeyFromExistingKeyAuthorizations, [request], {#options: options}, ), returnValue: _FakeResponseFuture_2< - _i13.CreateKeyFromExistingKeyAuthorizationsResponse>( + _i13.CreateKeyFromExistingKeyAuthorizationsResponse + >( this, Invocation.method( #createKeyFromExistingKeyAuthorizations, @@ -3857,7 +3477,8 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { ), ), returnValueForMissingStub: _FakeResponseFuture_2< - _i13.CreateKeyFromExistingKeyAuthorizationsResponse>( + _i13.CreateKeyFromExistingKeyAuthorizationsResponse + >( this, Invocation.method( #createKeyFromExistingKeyAuthorizations, @@ -3865,8 +3486,10 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { {#options: options}, ), ), - ) as _i4.ResponseFuture< - _i13.CreateKeyFromExistingKeyAuthorizationsResponse>); + ) + as _i4.ResponseFuture< + _i13.CreateKeyFromExistingKeyAuthorizationsResponse + >); @override _i3.ClientCall $createCall( @@ -3875,37 +3498,29 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - returnValue: _FakeClientCall_1( - this, - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeClientCall_1( - this, - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - ) as _i3.ClientCall); + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i3.ClientCall); @override _i4.ResponseFuture $createUnaryCall( @@ -3914,37 +3529,29 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2( - this, - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2( - this, - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture); + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture); @override _i4.ResponseStream $createStreamingCall( @@ -3953,37 +3560,29 @@ class MockAppServiceClient extends _i1.Mock implements _i12.AppServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - returnValue: _FakeResponseStream_3( - this, - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseStream_3( - this, - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - ) as _i4.ResponseStream); + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i4.ResponseStream); } /// A class which mocks [DataServiceClient]. @@ -3996,29 +3595,31 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #tabularDataByFilter, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i15.TabularDataByFilterResponse>( - this, - Invocation.method( - #tabularDataByFilter, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i15.TabularDataByFilterResponse>( - this, - Invocation.method( - #tabularDataByFilter, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i15.TabularDataByFilterResponse>); + Invocation.method( + #tabularDataByFilter, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i15.TabularDataByFilterResponse>( + this, + Invocation.method( + #tabularDataByFilter, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i15.TabularDataByFilterResponse>( + this, + Invocation.method( + #tabularDataByFilter, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i15.TabularDataByFilterResponse>); @override _i4.ResponseFuture<_i15.TabularDataBySQLResponse> tabularDataBySQL( @@ -4026,29 +3627,30 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #tabularDataBySQL, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i15.TabularDataBySQLResponse>( - this, - Invocation.method( - #tabularDataBySQL, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i15.TabularDataBySQLResponse>( - this, - Invocation.method( - #tabularDataBySQL, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i15.TabularDataBySQLResponse>); + Invocation.method( + #tabularDataBySQL, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i15.TabularDataBySQLResponse>( + this, + Invocation.method( + #tabularDataBySQL, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i15.TabularDataBySQLResponse>( + this, + Invocation.method( + #tabularDataBySQL, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i15.TabularDataBySQLResponse>); @override _i4.ResponseFuture<_i15.TabularDataByMQLResponse> tabularDataByMQL( @@ -4056,29 +3658,30 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #tabularDataByMQL, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i15.TabularDataByMQLResponse>( - this, - Invocation.method( - #tabularDataByMQL, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i15.TabularDataByMQLResponse>( - this, - Invocation.method( - #tabularDataByMQL, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i15.TabularDataByMQLResponse>); + Invocation.method( + #tabularDataByMQL, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i15.TabularDataByMQLResponse>( + this, + Invocation.method( + #tabularDataByMQL, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i15.TabularDataByMQLResponse>( + this, + Invocation.method( + #tabularDataByMQL, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i15.TabularDataByMQLResponse>); @override _i4.ResponseStream<_i15.ExportTabularDataResponse> exportTabularData( @@ -4086,29 +3689,30 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #exportTabularData, - [request], - {#options: options}, - ), - returnValue: _FakeResponseStream_3<_i15.ExportTabularDataResponse>( - this, - Invocation.method( - #exportTabularData, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseStream_3<_i15.ExportTabularDataResponse>( - this, - Invocation.method( - #exportTabularData, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseStream<_i15.ExportTabularDataResponse>); + Invocation.method( + #exportTabularData, + [request], + {#options: options}, + ), + returnValue: _FakeResponseStream_3<_i15.ExportTabularDataResponse>( + this, + Invocation.method( + #exportTabularData, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseStream_3<_i15.ExportTabularDataResponse>( + this, + Invocation.method( + #exportTabularData, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseStream<_i15.ExportTabularDataResponse>); @override _i4.ResponseFuture<_i15.GetLatestTabularDataResponse> getLatestTabularData( @@ -4116,29 +3720,31 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getLatestTabularData, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i15.GetLatestTabularDataResponse>( - this, - Invocation.method( - #getLatestTabularData, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i15.GetLatestTabularDataResponse>( - this, - Invocation.method( - #getLatestTabularData, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i15.GetLatestTabularDataResponse>); + Invocation.method( + #getLatestTabularData, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i15.GetLatestTabularDataResponse>( + this, + Invocation.method( + #getLatestTabularData, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i15.GetLatestTabularDataResponse>( + this, + Invocation.method( + #getLatestTabularData, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i15.GetLatestTabularDataResponse>); @override _i4.ResponseFuture<_i15.BinaryDataByFilterResponse> binaryDataByFilter( @@ -4146,29 +3752,30 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #binaryDataByFilter, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i15.BinaryDataByFilterResponse>( - this, - Invocation.method( - #binaryDataByFilter, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i15.BinaryDataByFilterResponse>( - this, - Invocation.method( - #binaryDataByFilter, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i15.BinaryDataByFilterResponse>); + Invocation.method( + #binaryDataByFilter, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i15.BinaryDataByFilterResponse>( + this, + Invocation.method( + #binaryDataByFilter, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i15.BinaryDataByFilterResponse>( + this, + Invocation.method( + #binaryDataByFilter, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i15.BinaryDataByFilterResponse>); @override _i4.ResponseFuture<_i15.BinaryDataByIDsResponse> binaryDataByIDs( @@ -4176,29 +3783,26 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #binaryDataByIDs, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i15.BinaryDataByIDsResponse>( - this, - Invocation.method( - #binaryDataByIDs, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i15.BinaryDataByIDsResponse>( - this, - Invocation.method( - #binaryDataByIDs, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i15.BinaryDataByIDsResponse>); + Invocation.method(#binaryDataByIDs, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i15.BinaryDataByIDsResponse>( + this, + Invocation.method( + #binaryDataByIDs, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i15.BinaryDataByIDsResponse>( + this, + Invocation.method( + #binaryDataByIDs, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i15.BinaryDataByIDsResponse>); @override _i4.ResponseFuture<_i15.DeleteTabularDataResponse> deleteTabularData( @@ -4206,37 +3810,38 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #deleteTabularData, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i15.DeleteTabularDataResponse>( - this, - Invocation.method( - #deleteTabularData, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i15.DeleteTabularDataResponse>( - this, - Invocation.method( - #deleteTabularData, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i15.DeleteTabularDataResponse>); + Invocation.method( + #deleteTabularData, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i15.DeleteTabularDataResponse>( + this, + Invocation.method( + #deleteTabularData, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i15.DeleteTabularDataResponse>( + this, + Invocation.method( + #deleteTabularData, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i15.DeleteTabularDataResponse>); @override _i4.ResponseFuture<_i15.DeleteBinaryDataByFilterResponse> - deleteBinaryDataByFilter( + deleteBinaryDataByFilter( _i15.DeleteBinaryDataByFilterRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #deleteBinaryDataByFilter, [request], @@ -4244,23 +3849,24 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { ), returnValue: _FakeResponseFuture_2<_i15.DeleteBinaryDataByFilterResponse>( - this, - Invocation.method( - #deleteBinaryDataByFilter, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #deleteBinaryDataByFilter, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i15.DeleteBinaryDataByFilterResponse>( - this, - Invocation.method( - #deleteBinaryDataByFilter, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i15.DeleteBinaryDataByFilterResponse>); + this, + Invocation.method( + #deleteBinaryDataByFilter, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i15.DeleteBinaryDataByFilterResponse>); @override _i4.ResponseFuture<_i15.DeleteBinaryDataByIDsResponse> deleteBinaryDataByIDs( @@ -4268,37 +3874,39 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #deleteBinaryDataByIDs, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i15.DeleteBinaryDataByIDsResponse>( - this, - Invocation.method( - #deleteBinaryDataByIDs, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i15.DeleteBinaryDataByIDsResponse>( - this, - Invocation.method( - #deleteBinaryDataByIDs, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i15.DeleteBinaryDataByIDsResponse>); + Invocation.method( + #deleteBinaryDataByIDs, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i15.DeleteBinaryDataByIDsResponse>( + this, + Invocation.method( + #deleteBinaryDataByIDs, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i15.DeleteBinaryDataByIDsResponse>( + this, + Invocation.method( + #deleteBinaryDataByIDs, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i15.DeleteBinaryDataByIDsResponse>); @override _i4.ResponseFuture<_i15.AddTagsToBinaryDataByIDsResponse> - addTagsToBinaryDataByIDs( + addTagsToBinaryDataByIDs( _i15.AddTagsToBinaryDataByIDsRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #addTagsToBinaryDataByIDs, [request], @@ -4306,31 +3914,32 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { ), returnValue: _FakeResponseFuture_2<_i15.AddTagsToBinaryDataByIDsResponse>( - this, - Invocation.method( - #addTagsToBinaryDataByIDs, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #addTagsToBinaryDataByIDs, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i15.AddTagsToBinaryDataByIDsResponse>( - this, - Invocation.method( - #addTagsToBinaryDataByIDs, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i15.AddTagsToBinaryDataByIDsResponse>); + this, + Invocation.method( + #addTagsToBinaryDataByIDs, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i15.AddTagsToBinaryDataByIDsResponse>); @override _i4.ResponseFuture<_i15.AddTagsToBinaryDataByFilterResponse> - addTagsToBinaryDataByFilter( + addTagsToBinaryDataByFilter( _i15.AddTagsToBinaryDataByFilterRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #addTagsToBinaryDataByFilter, [request], @@ -4338,70 +3947,75 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { ), returnValue: _FakeResponseFuture_2<_i15.AddTagsToBinaryDataByFilterResponse>( + this, + Invocation.method( + #addTagsToBinaryDataByFilter, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i15.AddTagsToBinaryDataByFilterResponse>( + this, + Invocation.method( + #addTagsToBinaryDataByFilter, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i15.AddTagsToBinaryDataByFilterResponse>); + + @override + _i4.ResponseFuture<_i15.RemoveTagsFromBinaryDataByIDsResponse> + removeTagsFromBinaryDataByIDs( + _i15.RemoveTagsFromBinaryDataByIDsRequest? request, { + _i3.CallOptions? options, + }) => + (super.noSuchMethod( + Invocation.method( + #removeTagsFromBinaryDataByIDs, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2< + _i15.RemoveTagsFromBinaryDataByIDsResponse + >( this, Invocation.method( - #addTagsToBinaryDataByFilter, + #removeTagsFromBinaryDataByIDs, [request], {#options: options}, ), ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i15.AddTagsToBinaryDataByFilterResponse>( + returnValueForMissingStub: _FakeResponseFuture_2< + _i15.RemoveTagsFromBinaryDataByIDsResponse + >( this, Invocation.method( - #addTagsToBinaryDataByFilter, + #removeTagsFromBinaryDataByIDs, [request], {#options: options}, ), ), - ) as _i4.ResponseFuture<_i15.AddTagsToBinaryDataByFilterResponse>); - - @override - _i4.ResponseFuture< - _i15.RemoveTagsFromBinaryDataByIDsResponse> removeTagsFromBinaryDataByIDs( - _i15.RemoveTagsFromBinaryDataByIDsRequest? request, { - _i3.CallOptions? options, - }) => - (super.noSuchMethod( - Invocation.method( - #removeTagsFromBinaryDataByIDs, - [request], - {#options: options}, - ), - returnValue: - _FakeResponseFuture_2<_i15.RemoveTagsFromBinaryDataByIDsResponse>( - this, - Invocation.method( - #removeTagsFromBinaryDataByIDs, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i15.RemoveTagsFromBinaryDataByIDsResponse>( - this, - Invocation.method( - #removeTagsFromBinaryDataByIDs, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i15.RemoveTagsFromBinaryDataByIDsResponse>); + ) + as _i4.ResponseFuture<_i15.RemoveTagsFromBinaryDataByIDsResponse>); @override _i4.ResponseFuture<_i15.RemoveTagsFromBinaryDataByFilterResponse> - removeTagsFromBinaryDataByFilter( + removeTagsFromBinaryDataByFilter( _i15.RemoveTagsFromBinaryDataByFilterRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #removeTagsFromBinaryDataByFilter, [request], {#options: options}, ), returnValue: _FakeResponseFuture_2< - _i15.RemoveTagsFromBinaryDataByFilterResponse>( + _i15.RemoveTagsFromBinaryDataByFilterResponse + >( this, Invocation.method( #removeTagsFromBinaryDataByFilter, @@ -4410,7 +4024,8 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { ), ), returnValueForMissingStub: _FakeResponseFuture_2< - _i15.RemoveTagsFromBinaryDataByFilterResponse>( + _i15.RemoveTagsFromBinaryDataByFilterResponse + >( this, Invocation.method( #removeTagsFromBinaryDataByFilter, @@ -4418,8 +4033,8 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { {#options: options}, ), ), - ) as _i4 - .ResponseFuture<_i15.RemoveTagsFromBinaryDataByFilterResponse>); + ) + as _i4.ResponseFuture<_i15.RemoveTagsFromBinaryDataByFilterResponse>); @override _i4.ResponseFuture<_i15.TagsByFilterResponse> tagsByFilter( @@ -4427,37 +4042,30 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #tagsByFilter, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i15.TagsByFilterResponse>( - this, - Invocation.method( - #tagsByFilter, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i15.TagsByFilterResponse>( - this, - Invocation.method( - #tagsByFilter, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i15.TagsByFilterResponse>); + Invocation.method(#tagsByFilter, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i15.TagsByFilterResponse>( + this, + Invocation.method(#tagsByFilter, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i15.TagsByFilterResponse>( + this, + Invocation.method( + #tagsByFilter, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i15.TagsByFilterResponse>); @override _i4.ResponseFuture<_i15.AddBoundingBoxToImageByIDResponse> - addBoundingBoxToImageByID( + addBoundingBoxToImageByID( _i15.AddBoundingBoxToImageByIDRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #addBoundingBoxToImageByID, [request], @@ -4465,64 +4073,67 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { ), returnValue: _FakeResponseFuture_2<_i15.AddBoundingBoxToImageByIDResponse>( + this, + Invocation.method( + #addBoundingBoxToImageByID, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i15.AddBoundingBoxToImageByIDResponse>( + this, + Invocation.method( + #addBoundingBoxToImageByID, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i15.AddBoundingBoxToImageByIDResponse>); + + @override + _i4.ResponseFuture<_i15.RemoveBoundingBoxFromImageByIDResponse> + removeBoundingBoxFromImageByID( + _i15.RemoveBoundingBoxFromImageByIDRequest? request, { + _i3.CallOptions? options, + }) => + (super.noSuchMethod( + Invocation.method( + #removeBoundingBoxFromImageByID, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2< + _i15.RemoveBoundingBoxFromImageByIDResponse + >( this, Invocation.method( - #addBoundingBoxToImageByID, + #removeBoundingBoxFromImageByID, [request], {#options: options}, ), ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i15.AddBoundingBoxToImageByIDResponse>( + returnValueForMissingStub: _FakeResponseFuture_2< + _i15.RemoveBoundingBoxFromImageByIDResponse + >( this, Invocation.method( - #addBoundingBoxToImageByID, + #removeBoundingBoxFromImageByID, [request], {#options: options}, ), ), - ) as _i4.ResponseFuture<_i15.AddBoundingBoxToImageByIDResponse>); - - @override - _i4.ResponseFuture< - _i15 - .RemoveBoundingBoxFromImageByIDResponse> removeBoundingBoxFromImageByID( - _i15.RemoveBoundingBoxFromImageByIDRequest? request, { - _i3.CallOptions? options, - }) => - (super.noSuchMethod( - Invocation.method( - #removeBoundingBoxFromImageByID, - [request], - {#options: options}, - ), - returnValue: - _FakeResponseFuture_2<_i15.RemoveBoundingBoxFromImageByIDResponse>( - this, - Invocation.method( - #removeBoundingBoxFromImageByID, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i15.RemoveBoundingBoxFromImageByIDResponse>( - this, - Invocation.method( - #removeBoundingBoxFromImageByID, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i15.RemoveBoundingBoxFromImageByIDResponse>); + ) + as _i4.ResponseFuture<_i15.RemoveBoundingBoxFromImageByIDResponse>); @override _i4.ResponseFuture<_i15.BoundingBoxLabelsByFilterResponse> - boundingBoxLabelsByFilter( + boundingBoxLabelsByFilter( _i15.BoundingBoxLabelsByFilterRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #boundingBoxLabelsByFilter, [request], @@ -4530,23 +4141,24 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { ), returnValue: _FakeResponseFuture_2<_i15.BoundingBoxLabelsByFilterResponse>( - this, - Invocation.method( - #boundingBoxLabelsByFilter, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #boundingBoxLabelsByFilter, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i15.BoundingBoxLabelsByFilterResponse>( - this, - Invocation.method( - #boundingBoxLabelsByFilter, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i15.BoundingBoxLabelsByFilterResponse>); + this, + Invocation.method( + #boundingBoxLabelsByFilter, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i15.BoundingBoxLabelsByFilterResponse>); @override _i4.ResponseFuture<_i15.UpdateBoundingBoxResponse> updateBoundingBox( @@ -4554,29 +4166,30 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #updateBoundingBox, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i15.UpdateBoundingBoxResponse>( - this, - Invocation.method( - #updateBoundingBox, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i15.UpdateBoundingBoxResponse>( - this, - Invocation.method( - #updateBoundingBox, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i15.UpdateBoundingBoxResponse>); + Invocation.method( + #updateBoundingBox, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i15.UpdateBoundingBoxResponse>( + this, + Invocation.method( + #updateBoundingBox, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i15.UpdateBoundingBoxResponse>( + this, + Invocation.method( + #updateBoundingBox, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i15.UpdateBoundingBoxResponse>); @override _i4.ResponseFuture<_i15.GetDatabaseConnectionResponse> getDatabaseConnection( @@ -4584,29 +4197,31 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getDatabaseConnection, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i15.GetDatabaseConnectionResponse>( - this, - Invocation.method( - #getDatabaseConnection, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i15.GetDatabaseConnectionResponse>( - this, - Invocation.method( - #getDatabaseConnection, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i15.GetDatabaseConnectionResponse>); + Invocation.method( + #getDatabaseConnection, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i15.GetDatabaseConnectionResponse>( + this, + Invocation.method( + #getDatabaseConnection, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i15.GetDatabaseConnectionResponse>( + this, + Invocation.method( + #getDatabaseConnection, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i15.GetDatabaseConnectionResponse>); @override _i4.ResponseFuture<_i15.ConfigureDatabaseUserResponse> configureDatabaseUser( @@ -4614,37 +4229,39 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #configureDatabaseUser, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i15.ConfigureDatabaseUserResponse>( - this, - Invocation.method( - #configureDatabaseUser, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i15.ConfigureDatabaseUserResponse>( - this, - Invocation.method( - #configureDatabaseUser, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i15.ConfigureDatabaseUserResponse>); + Invocation.method( + #configureDatabaseUser, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i15.ConfigureDatabaseUserResponse>( + this, + Invocation.method( + #configureDatabaseUser, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i15.ConfigureDatabaseUserResponse>( + this, + Invocation.method( + #configureDatabaseUser, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i15.ConfigureDatabaseUserResponse>); @override _i4.ResponseFuture<_i15.AddBinaryDataToDatasetByIDsResponse> - addBinaryDataToDatasetByIDs( + addBinaryDataToDatasetByIDs( _i15.AddBinaryDataToDatasetByIDsRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #addBinaryDataToDatasetByIDs, [request], @@ -4652,38 +4269,40 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { ), returnValue: _FakeResponseFuture_2<_i15.AddBinaryDataToDatasetByIDsResponse>( - this, - Invocation.method( - #addBinaryDataToDatasetByIDs, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #addBinaryDataToDatasetByIDs, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i15.AddBinaryDataToDatasetByIDsResponse>( - this, - Invocation.method( - #addBinaryDataToDatasetByIDs, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i15.AddBinaryDataToDatasetByIDsResponse>); + this, + Invocation.method( + #addBinaryDataToDatasetByIDs, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i15.AddBinaryDataToDatasetByIDsResponse>); @override _i4.ResponseFuture<_i15.RemoveBinaryDataFromDatasetByIDsResponse> - removeBinaryDataFromDatasetByIDs( + removeBinaryDataFromDatasetByIDs( _i15.RemoveBinaryDataFromDatasetByIDsRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #removeBinaryDataFromDatasetByIDs, [request], {#options: options}, ), returnValue: _FakeResponseFuture_2< - _i15.RemoveBinaryDataFromDatasetByIDsResponse>( + _i15.RemoveBinaryDataFromDatasetByIDsResponse + >( this, Invocation.method( #removeBinaryDataFromDatasetByIDs, @@ -4692,7 +4311,8 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { ), ), returnValueForMissingStub: _FakeResponseFuture_2< - _i15.RemoveBinaryDataFromDatasetByIDsResponse>( + _i15.RemoveBinaryDataFromDatasetByIDsResponse + >( this, Invocation.method( #removeBinaryDataFromDatasetByIDs, @@ -4700,8 +4320,8 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { {#options: options}, ), ), - ) as _i4 - .ResponseFuture<_i15.RemoveBinaryDataFromDatasetByIDsResponse>); + ) + as _i4.ResponseFuture<_i15.RemoveBinaryDataFromDatasetByIDsResponse>); @override _i3.ClientCall $createCall( @@ -4710,37 +4330,29 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - returnValue: _FakeClientCall_1( - this, - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeClientCall_1( - this, - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - ) as _i3.ClientCall); + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i3.ClientCall); @override _i4.ResponseFuture $createUnaryCall( @@ -4749,37 +4361,29 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2( - this, - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2( - this, - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture); + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture); @override _i4.ResponseStream $createStreamingCall( @@ -4788,37 +4392,29 @@ class MockDataServiceClient extends _i1.Mock implements _i14.DataServiceClient { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - returnValue: _FakeResponseStream_3( - this, - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseStream_3( - this, - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - ) as _i4.ResponseStream); + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i4.ResponseStream); } /// A class which mocks [ProvisioningServiceClient]. @@ -4832,29 +4428,31 @@ class MockProvisioningServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getSmartMachineStatus, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i17.GetSmartMachineStatusResponse>( - this, - Invocation.method( - #getSmartMachineStatus, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i17.GetSmartMachineStatusResponse>( - this, - Invocation.method( - #getSmartMachineStatus, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i17.GetSmartMachineStatusResponse>); + Invocation.method( + #getSmartMachineStatus, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i17.GetSmartMachineStatusResponse>( + this, + Invocation.method( + #getSmartMachineStatus, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i17.GetSmartMachineStatusResponse>( + this, + Invocation.method( + #getSmartMachineStatus, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i17.GetSmartMachineStatusResponse>); @override _i4.ResponseFuture<_i17.SetNetworkCredentialsResponse> setNetworkCredentials( @@ -4862,37 +4460,39 @@ class MockProvisioningServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #setNetworkCredentials, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i17.SetNetworkCredentialsResponse>( - this, - Invocation.method( - #setNetworkCredentials, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i17.SetNetworkCredentialsResponse>( - this, - Invocation.method( - #setNetworkCredentials, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i17.SetNetworkCredentialsResponse>); + Invocation.method( + #setNetworkCredentials, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i17.SetNetworkCredentialsResponse>( + this, + Invocation.method( + #setNetworkCredentials, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i17.SetNetworkCredentialsResponse>( + this, + Invocation.method( + #setNetworkCredentials, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i17.SetNetworkCredentialsResponse>); @override _i4.ResponseFuture<_i17.SetSmartMachineCredentialsResponse> - setSmartMachineCredentials( + setSmartMachineCredentials( _i17.SetSmartMachineCredentialsRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #setSmartMachineCredentials, [request], @@ -4900,23 +4500,24 @@ class MockProvisioningServiceClient extends _i1.Mock ), returnValue: _FakeResponseFuture_2<_i17.SetSmartMachineCredentialsResponse>( - this, - Invocation.method( - #setSmartMachineCredentials, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #setSmartMachineCredentials, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i17.SetSmartMachineCredentialsResponse>( - this, - Invocation.method( - #setSmartMachineCredentials, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i17.SetSmartMachineCredentialsResponse>); + this, + Invocation.method( + #setSmartMachineCredentials, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i17.SetSmartMachineCredentialsResponse>); @override _i4.ResponseFuture<_i17.GetNetworkListResponse> getNetworkList( @@ -4924,29 +4525,26 @@ class MockProvisioningServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getNetworkList, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i17.GetNetworkListResponse>( - this, - Invocation.method( - #getNetworkList, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i17.GetNetworkListResponse>( - this, - Invocation.method( - #getNetworkList, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i17.GetNetworkListResponse>); + Invocation.method(#getNetworkList, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i17.GetNetworkListResponse>( + this, + Invocation.method( + #getNetworkList, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i17.GetNetworkListResponse>( + this, + Invocation.method( + #getNetworkList, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i17.GetNetworkListResponse>); @override _i3.ClientCall $createCall( @@ -4955,37 +4553,29 @@ class MockProvisioningServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - returnValue: _FakeClientCall_1( - this, - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeClientCall_1( - this, - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - ) as _i3.ClientCall); + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i3.ClientCall); @override _i4.ResponseFuture $createUnaryCall( @@ -4994,37 +4584,29 @@ class MockProvisioningServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2( - this, - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2( - this, - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture); + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture); @override _i4.ResponseStream $createStreamingCall( @@ -5033,37 +4615,29 @@ class MockProvisioningServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - returnValue: _FakeResponseStream_3( - this, - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseStream_3( - this, - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - ) as _i4.ResponseStream); + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i4.ResponseStream); } /// A class which mocks [VisionServiceClient]. @@ -5073,11 +4647,11 @@ class MockVisionServiceClient extends _i1.Mock implements _i18.VisionServiceClient { @override _i4.ResponseFuture<_i19.GetDetectionsFromCameraResponse> - getDetectionsFromCamera( + getDetectionsFromCamera( _i19.GetDetectionsFromCameraRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #getDetectionsFromCamera, [request], @@ -5085,23 +4659,24 @@ class MockVisionServiceClient extends _i1.Mock ), returnValue: _FakeResponseFuture_2<_i19.GetDetectionsFromCameraResponse>( - this, - Invocation.method( - #getDetectionsFromCamera, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #getDetectionsFromCamera, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i19.GetDetectionsFromCameraResponse>( - this, - Invocation.method( - #getDetectionsFromCamera, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i19.GetDetectionsFromCameraResponse>); + this, + Invocation.method( + #getDetectionsFromCamera, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i19.GetDetectionsFromCameraResponse>); @override _i4.ResponseFuture<_i19.GetDetectionsResponse> getDetections( @@ -5109,61 +4684,57 @@ class MockVisionServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getDetections, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i19.GetDetectionsResponse>( - this, - Invocation.method( - #getDetections, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i19.GetDetectionsResponse>( - this, - Invocation.method( - #getDetections, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i19.GetDetectionsResponse>); - - @override - _i4.ResponseFuture< - _i19.GetClassificationsFromCameraResponse> getClassificationsFromCamera( + Invocation.method(#getDetections, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i19.GetDetectionsResponse>( + this, + Invocation.method(#getDetections, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i19.GetDetectionsResponse>( + this, + Invocation.method( + #getDetections, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i19.GetDetectionsResponse>); + + @override + _i4.ResponseFuture<_i19.GetClassificationsFromCameraResponse> + getClassificationsFromCamera( _i19.GetClassificationsFromCameraRequest? request, { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getClassificationsFromCamera, - [request], - {#options: options}, - ), - returnValue: - _FakeResponseFuture_2<_i19.GetClassificationsFromCameraResponse>( - this, - Invocation.method( - #getClassificationsFromCamera, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i19.GetClassificationsFromCameraResponse>( - this, - Invocation.method( - #getClassificationsFromCamera, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i19.GetClassificationsFromCameraResponse>); + Invocation.method( + #getClassificationsFromCamera, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2< + _i19.GetClassificationsFromCameraResponse + >( + this, + Invocation.method( + #getClassificationsFromCamera, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseFuture_2< + _i19.GetClassificationsFromCameraResponse + >( + this, + Invocation.method( + #getClassificationsFromCamera, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i19.GetClassificationsFromCameraResponse>); @override _i4.ResponseFuture<_i19.GetClassificationsResponse> getClassifications( @@ -5171,29 +4742,30 @@ class MockVisionServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getClassifications, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i19.GetClassificationsResponse>( - this, - Invocation.method( - #getClassifications, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i19.GetClassificationsResponse>( - this, - Invocation.method( - #getClassifications, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i19.GetClassificationsResponse>); + Invocation.method( + #getClassifications, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i19.GetClassificationsResponse>( + this, + Invocation.method( + #getClassifications, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i19.GetClassificationsResponse>( + this, + Invocation.method( + #getClassifications, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i19.GetClassificationsResponse>); @override _i4.ResponseFuture<_i19.GetObjectPointCloudsResponse> getObjectPointClouds( @@ -5201,29 +4773,31 @@ class MockVisionServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getObjectPointClouds, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i19.GetObjectPointCloudsResponse>( - this, - Invocation.method( - #getObjectPointClouds, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i19.GetObjectPointCloudsResponse>( - this, - Invocation.method( - #getObjectPointClouds, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i19.GetObjectPointCloudsResponse>); + Invocation.method( + #getObjectPointClouds, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i19.GetObjectPointCloudsResponse>( + this, + Invocation.method( + #getObjectPointClouds, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i19.GetObjectPointCloudsResponse>( + this, + Invocation.method( + #getObjectPointClouds, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i19.GetObjectPointCloudsResponse>); @override _i4.ResponseFuture<_i19.GetPropertiesResponse> getProperties( @@ -5231,29 +4805,22 @@ class MockVisionServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getProperties, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i19.GetPropertiesResponse>( - this, - Invocation.method( - #getProperties, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i19.GetPropertiesResponse>( - this, - Invocation.method( - #getProperties, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i19.GetPropertiesResponse>); + Invocation.method(#getProperties, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i19.GetPropertiesResponse>( + this, + Invocation.method(#getProperties, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i19.GetPropertiesResponse>( + this, + Invocation.method( + #getProperties, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i19.GetPropertiesResponse>); @override _i4.ResponseFuture<_i19.CaptureAllFromCameraResponse> captureAllFromCamera( @@ -5261,29 +4828,31 @@ class MockVisionServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #captureAllFromCamera, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i19.CaptureAllFromCameraResponse>( - this, - Invocation.method( - #captureAllFromCamera, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i19.CaptureAllFromCameraResponse>( - this, - Invocation.method( - #captureAllFromCamera, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i19.CaptureAllFromCameraResponse>); + Invocation.method( + #captureAllFromCamera, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i19.CaptureAllFromCameraResponse>( + this, + Invocation.method( + #captureAllFromCamera, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i19.CaptureAllFromCameraResponse>( + this, + Invocation.method( + #captureAllFromCamera, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i19.CaptureAllFromCameraResponse>); @override _i4.ResponseFuture<_i20.DoCommandResponse> doCommand( @@ -5291,68 +4860,49 @@ class MockVisionServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #doCommand, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i20.DoCommandResponse>( - this, - Invocation.method( - #doCommand, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i20.DoCommandResponse>( - this, - Invocation.method( - #doCommand, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i20.DoCommandResponse>); - - @override + Invocation.method(#doCommand, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i20.DoCommandResponse>( + this, + Invocation.method(#doCommand, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i20.DoCommandResponse>( + this, + Invocation.method(#doCommand, [request], {#options: options}), + ), + ) + as _i4.ResponseFuture<_i20.DoCommandResponse>); + + @override _i3.ClientCall $createCall( _i7.ClientMethod? method, _i6.Stream? requests, { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - returnValue: _FakeClientCall_1( - this, - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeClientCall_1( - this, - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - ) as _i3.ClientCall); + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i3.ClientCall); @override _i4.ResponseFuture $createUnaryCall( @@ -5361,37 +4911,29 @@ class MockVisionServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2( - this, - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2( - this, - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture); + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture); @override _i4.ResponseStream $createStreamingCall( @@ -5400,37 +4942,29 @@ class MockVisionServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - returnValue: _FakeResponseStream_3( - this, - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseStream_3( - this, - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - ) as _i4.ResponseStream); + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i4.ResponseStream); } /// A class which mocks [BillingServiceClient]. @@ -5444,37 +4978,39 @@ class MockBillingServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getCurrentMonthUsage, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i22.GetCurrentMonthUsageResponse>( - this, - Invocation.method( - #getCurrentMonthUsage, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i22.GetCurrentMonthUsageResponse>( - this, - Invocation.method( - #getCurrentMonthUsage, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i22.GetCurrentMonthUsageResponse>); + Invocation.method( + #getCurrentMonthUsage, + [request], + {#options: options}, + ), + returnValue: + _FakeResponseFuture_2<_i22.GetCurrentMonthUsageResponse>( + this, + Invocation.method( + #getCurrentMonthUsage, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i22.GetCurrentMonthUsageResponse>( + this, + Invocation.method( + #getCurrentMonthUsage, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i22.GetCurrentMonthUsageResponse>); @override _i4.ResponseFuture<_i22.GetOrgBillingInformationResponse> - getOrgBillingInformation( + getOrgBillingInformation( _i22.GetOrgBillingInformationRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #getOrgBillingInformation, [request], @@ -5482,23 +5018,24 @@ class MockBillingServiceClient extends _i1.Mock ), returnValue: _FakeResponseFuture_2<_i22.GetOrgBillingInformationResponse>( - this, - Invocation.method( - #getOrgBillingInformation, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #getOrgBillingInformation, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i22.GetOrgBillingInformationResponse>( - this, - Invocation.method( - #getOrgBillingInformation, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i22.GetOrgBillingInformationResponse>); + this, + Invocation.method( + #getOrgBillingInformation, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i22.GetOrgBillingInformationResponse>); @override _i4.ResponseFuture<_i22.GetInvoicesSummaryResponse> getInvoicesSummary( @@ -5506,29 +5043,30 @@ class MockBillingServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getInvoicesSummary, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i22.GetInvoicesSummaryResponse>( - this, - Invocation.method( - #getInvoicesSummary, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i22.GetInvoicesSummaryResponse>( - this, - Invocation.method( - #getInvoicesSummary, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i22.GetInvoicesSummaryResponse>); + Invocation.method( + #getInvoicesSummary, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i22.GetInvoicesSummaryResponse>( + this, + Invocation.method( + #getInvoicesSummary, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i22.GetInvoicesSummaryResponse>( + this, + Invocation.method( + #getInvoicesSummary, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i22.GetInvoicesSummaryResponse>); @override _i4.ResponseStream<_i22.GetInvoicePdfResponse> getInvoicePdf( @@ -5536,37 +5074,30 @@ class MockBillingServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getInvoicePdf, - [request], - {#options: options}, - ), - returnValue: _FakeResponseStream_3<_i22.GetInvoicePdfResponse>( - this, - Invocation.method( - #getInvoicePdf, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseStream_3<_i22.GetInvoicePdfResponse>( - this, - Invocation.method( - #getInvoicePdf, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseStream<_i22.GetInvoicePdfResponse>); + Invocation.method(#getInvoicePdf, [request], {#options: options}), + returnValue: _FakeResponseStream_3<_i22.GetInvoicePdfResponse>( + this, + Invocation.method(#getInvoicePdf, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseStream_3<_i22.GetInvoicePdfResponse>( + this, + Invocation.method( + #getInvoicePdf, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseStream<_i22.GetInvoicePdfResponse>); @override _i4.ResponseFuture<_i22.SendPaymentRequiredEmailResponse> - sendPaymentRequiredEmail( + sendPaymentRequiredEmail( _i22.SendPaymentRequiredEmailRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #sendPaymentRequiredEmail, [request], @@ -5574,23 +5105,24 @@ class MockBillingServiceClient extends _i1.Mock ), returnValue: _FakeResponseFuture_2<_i22.SendPaymentRequiredEmailResponse>( - this, - Invocation.method( - #sendPaymentRequiredEmail, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #sendPaymentRequiredEmail, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i22.SendPaymentRequiredEmailResponse>( - this, - Invocation.method( - #sendPaymentRequiredEmail, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i22.SendPaymentRequiredEmailResponse>); + this, + Invocation.method( + #sendPaymentRequiredEmail, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i22.SendPaymentRequiredEmailResponse>); @override _i3.ClientCall $createCall( @@ -5599,37 +5131,29 @@ class MockBillingServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - returnValue: _FakeClientCall_1( - this, - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeClientCall_1( - this, - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - ) as _i3.ClientCall); + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i3.ClientCall); @override _i4.ResponseFuture $createUnaryCall( @@ -5638,37 +5162,29 @@ class MockBillingServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2( - this, - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2( - this, - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture); + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture); @override _i4.ResponseStream $createStreamingCall( @@ -5677,37 +5193,29 @@ class MockBillingServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - returnValue: _FakeResponseStream_3( - this, - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseStream_3( - this, - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - ) as _i4.ResponseStream); + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i4.ResponseStream); } /// A class which mocks [MLTrainingServiceClient]. @@ -5721,37 +5229,38 @@ class MockMLTrainingServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #submitTrainingJob, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i24.SubmitTrainingJobResponse>( - this, - Invocation.method( - #submitTrainingJob, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i24.SubmitTrainingJobResponse>( - this, - Invocation.method( - #submitTrainingJob, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i24.SubmitTrainingJobResponse>); + Invocation.method( + #submitTrainingJob, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i24.SubmitTrainingJobResponse>( + this, + Invocation.method( + #submitTrainingJob, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i24.SubmitTrainingJobResponse>( + this, + Invocation.method( + #submitTrainingJob, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i24.SubmitTrainingJobResponse>); @override _i4.ResponseFuture<_i24.SubmitCustomTrainingJobResponse> - submitCustomTrainingJob( + submitCustomTrainingJob( _i24.SubmitCustomTrainingJobRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #submitCustomTrainingJob, [request], @@ -5759,23 +5268,24 @@ class MockMLTrainingServiceClient extends _i1.Mock ), returnValue: _FakeResponseFuture_2<_i24.SubmitCustomTrainingJobResponse>( - this, - Invocation.method( - #submitCustomTrainingJob, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #submitCustomTrainingJob, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i24.SubmitCustomTrainingJobResponse>( - this, - Invocation.method( - #submitCustomTrainingJob, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i24.SubmitCustomTrainingJobResponse>); + this, + Invocation.method( + #submitCustomTrainingJob, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i24.SubmitCustomTrainingJobResponse>); @override _i4.ResponseFuture<_i24.GetTrainingJobResponse> getTrainingJob( @@ -5783,29 +5293,26 @@ class MockMLTrainingServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getTrainingJob, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i24.GetTrainingJobResponse>( - this, - Invocation.method( - #getTrainingJob, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i24.GetTrainingJobResponse>( - this, - Invocation.method( - #getTrainingJob, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i24.GetTrainingJobResponse>); + Invocation.method(#getTrainingJob, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i24.GetTrainingJobResponse>( + this, + Invocation.method( + #getTrainingJob, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i24.GetTrainingJobResponse>( + this, + Invocation.method( + #getTrainingJob, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i24.GetTrainingJobResponse>); @override _i4.ResponseFuture<_i24.ListTrainingJobsResponse> listTrainingJobs( @@ -5813,29 +5320,30 @@ class MockMLTrainingServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #listTrainingJobs, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i24.ListTrainingJobsResponse>( - this, - Invocation.method( - #listTrainingJobs, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i24.ListTrainingJobsResponse>( - this, - Invocation.method( - #listTrainingJobs, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i24.ListTrainingJobsResponse>); + Invocation.method( + #listTrainingJobs, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i24.ListTrainingJobsResponse>( + this, + Invocation.method( + #listTrainingJobs, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i24.ListTrainingJobsResponse>( + this, + Invocation.method( + #listTrainingJobs, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i24.ListTrainingJobsResponse>); @override _i4.ResponseFuture<_i24.CancelTrainingJobResponse> cancelTrainingJob( @@ -5843,37 +5351,38 @@ class MockMLTrainingServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #cancelTrainingJob, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i24.CancelTrainingJobResponse>( - this, - Invocation.method( - #cancelTrainingJob, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i24.CancelTrainingJobResponse>( - this, - Invocation.method( - #cancelTrainingJob, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i24.CancelTrainingJobResponse>); + Invocation.method( + #cancelTrainingJob, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i24.CancelTrainingJobResponse>( + this, + Invocation.method( + #cancelTrainingJob, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i24.CancelTrainingJobResponse>( + this, + Invocation.method( + #cancelTrainingJob, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i24.CancelTrainingJobResponse>); @override _i4.ResponseFuture<_i24.DeleteCompletedTrainingJobResponse> - deleteCompletedTrainingJob( + deleteCompletedTrainingJob( _i24.DeleteCompletedTrainingJobRequest? request, { _i3.CallOptions? options, }) => - (super.noSuchMethod( + (super.noSuchMethod( Invocation.method( #deleteCompletedTrainingJob, [request], @@ -5881,23 +5390,24 @@ class MockMLTrainingServiceClient extends _i1.Mock ), returnValue: _FakeResponseFuture_2<_i24.DeleteCompletedTrainingJobResponse>( - this, - Invocation.method( - #deleteCompletedTrainingJob, - [request], - {#options: options}, - ), - ), + this, + Invocation.method( + #deleteCompletedTrainingJob, + [request], + {#options: options}, + ), + ), returnValueForMissingStub: _FakeResponseFuture_2<_i24.DeleteCompletedTrainingJobResponse>( - this, - Invocation.method( - #deleteCompletedTrainingJob, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i24.DeleteCompletedTrainingJobResponse>); + this, + Invocation.method( + #deleteCompletedTrainingJob, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i24.DeleteCompletedTrainingJobResponse>); @override _i4.ResponseFuture<_i24.GetTrainingJobLogsResponse> getTrainingJobLogs( @@ -5905,29 +5415,30 @@ class MockMLTrainingServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #getTrainingJobLogs, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i24.GetTrainingJobLogsResponse>( - this, - Invocation.method( - #getTrainingJobLogs, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i24.GetTrainingJobLogsResponse>( - this, - Invocation.method( - #getTrainingJobLogs, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i24.GetTrainingJobLogsResponse>); + Invocation.method( + #getTrainingJobLogs, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i24.GetTrainingJobLogsResponse>( + this, + Invocation.method( + #getTrainingJobLogs, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i24.GetTrainingJobLogsResponse>( + this, + Invocation.method( + #getTrainingJobLogs, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i24.GetTrainingJobLogsResponse>); @override _i3.ClientCall $createCall( @@ -5936,37 +5447,29 @@ class MockMLTrainingServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - returnValue: _FakeClientCall_1( - this, - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeClientCall_1( - this, - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - ) as _i3.ClientCall); + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i3.ClientCall); @override _i4.ResponseFuture $createUnaryCall( @@ -5975,37 +5478,29 @@ class MockMLTrainingServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2( - this, - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2( - this, - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture); + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture); @override _i4.ResponseStream $createStreamingCall( @@ -6014,37 +5509,29 @@ class MockMLTrainingServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - returnValue: _FakeResponseStream_3( - this, - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseStream_3( - this, - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - ) as _i4.ResponseStream); + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i4.ResponseStream); } /// A class which mocks [DatasetServiceClient]. @@ -6058,29 +5545,22 @@ class MockDatasetServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #createDataset, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i26.CreateDatasetResponse>( - this, - Invocation.method( - #createDataset, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i26.CreateDatasetResponse>( - this, - Invocation.method( - #createDataset, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i26.CreateDatasetResponse>); + Invocation.method(#createDataset, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i26.CreateDatasetResponse>( + this, + Invocation.method(#createDataset, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i26.CreateDatasetResponse>( + this, + Invocation.method( + #createDataset, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i26.CreateDatasetResponse>); @override _i4.ResponseFuture<_i26.DeleteDatasetResponse> deleteDataset( @@ -6088,29 +5568,22 @@ class MockDatasetServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #deleteDataset, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i26.DeleteDatasetResponse>( - this, - Invocation.method( - #deleteDataset, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i26.DeleteDatasetResponse>( - this, - Invocation.method( - #deleteDataset, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i26.DeleteDatasetResponse>); + Invocation.method(#deleteDataset, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i26.DeleteDatasetResponse>( + this, + Invocation.method(#deleteDataset, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i26.DeleteDatasetResponse>( + this, + Invocation.method( + #deleteDataset, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i26.DeleteDatasetResponse>); @override _i4.ResponseFuture<_i26.RenameDatasetResponse> renameDataset( @@ -6118,61 +5591,57 @@ class MockDatasetServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #renameDataset, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i26.RenameDatasetResponse>( - this, - Invocation.method( - #renameDataset, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i26.RenameDatasetResponse>( - this, - Invocation.method( - #renameDataset, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i26.RenameDatasetResponse>); - - @override - _i4.ResponseFuture< - _i26.ListDatasetsByOrganizationIDResponse> listDatasetsByOrganizationID( + Invocation.method(#renameDataset, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i26.RenameDatasetResponse>( + this, + Invocation.method(#renameDataset, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i26.RenameDatasetResponse>( + this, + Invocation.method( + #renameDataset, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i26.RenameDatasetResponse>); + + @override + _i4.ResponseFuture<_i26.ListDatasetsByOrganizationIDResponse> + listDatasetsByOrganizationID( _i26.ListDatasetsByOrganizationIDRequest? request, { _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #listDatasetsByOrganizationID, - [request], - {#options: options}, - ), - returnValue: - _FakeResponseFuture_2<_i26.ListDatasetsByOrganizationIDResponse>( - this, - Invocation.method( - #listDatasetsByOrganizationID, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i26.ListDatasetsByOrganizationIDResponse>( - this, - Invocation.method( - #listDatasetsByOrganizationID, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i26.ListDatasetsByOrganizationIDResponse>); + Invocation.method( + #listDatasetsByOrganizationID, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2< + _i26.ListDatasetsByOrganizationIDResponse + >( + this, + Invocation.method( + #listDatasetsByOrganizationID, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseFuture_2< + _i26.ListDatasetsByOrganizationIDResponse + >( + this, + Invocation.method( + #listDatasetsByOrganizationID, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i26.ListDatasetsByOrganizationIDResponse>); @override _i4.ResponseFuture<_i26.ListDatasetsByIDsResponse> listDatasetsByIDs( @@ -6180,29 +5649,30 @@ class MockDatasetServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #listDatasetsByIDs, - [request], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2<_i26.ListDatasetsByIDsResponse>( - this, - Invocation.method( - #listDatasetsByIDs, - [request], - {#options: options}, - ), - ), - returnValueForMissingStub: - _FakeResponseFuture_2<_i26.ListDatasetsByIDsResponse>( - this, - Invocation.method( - #listDatasetsByIDs, - [request], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture<_i26.ListDatasetsByIDsResponse>); + Invocation.method( + #listDatasetsByIDs, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i26.ListDatasetsByIDsResponse>( + this, + Invocation.method( + #listDatasetsByIDs, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i26.ListDatasetsByIDsResponse>( + this, + Invocation.method( + #listDatasetsByIDs, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i26.ListDatasetsByIDsResponse>); @override _i3.ClientCall $createCall( @@ -6211,37 +5681,29 @@ class MockDatasetServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - returnValue: _FakeClientCall_1( - this, - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeClientCall_1( - this, - Invocation.method( - #$createCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - ) as _i3.ClientCall); + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i3.ClientCall); @override _i4.ResponseFuture $createUnaryCall( @@ -6250,37 +5712,29 @@ class MockDatasetServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - returnValue: _FakeResponseFuture_2( - this, - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseFuture_2( - this, - Invocation.method( - #$createUnaryCall, - [ - method, - request, - ], - {#options: options}, - ), - ), - ) as _i4.ResponseFuture); + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture); @override _i4.ResponseStream $createStreamingCall( @@ -6289,35 +5743,27 @@ class MockDatasetServiceClient extends _i1.Mock _i3.CallOptions? options, }) => (super.noSuchMethod( - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - returnValue: _FakeResponseStream_3( - this, - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - returnValueForMissingStub: _FakeResponseStream_3( - this, - Invocation.method( - #$createStreamingCall, - [ - method, - requests, - ], - {#options: options}, - ), - ), - ) as _i4.ResponseStream); + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i4.ResponseStream); } diff --git a/test/unit_test/services/discovery_test.dart b/test/unit_test/services/discovery_test.dart index 92013402e32..3dcabe9bda1 100644 --- a/test/unit_test/services/discovery_test.dart +++ b/test/unit_test/services/discovery_test.dart @@ -5,11 +5,13 @@ import 'package:viam_sdk/protos/service/discovery.dart'; import 'package:viam_sdk/src/gen/common/v1/common.pb.dart'; import 'package:viam_sdk/src/gen/service/discovery/v1/discovery.pbgrpc.dart'; import 'package:viam_sdk/viam_sdk.dart'; +import 'package:viam_sdk/src/gen/app/v1/robot.pb.dart'; +import '../../../lib/src/services/discovery.dart'; import '../mocks/mock_response_future.dart'; import '../mocks/service_clients_mocks.mocks.dart'; -class FakeDiscoveryClient extends DiscoverClient { +class FakeDiscoveryClient extends DiscoveryClient { @override DiscoveryServiceClient get client => _client; From f4e962377143899666c57c1b293c7f77479ef21f Mon Sep 17 00:00:00 2001 From: martha-johnston Date: Fri, 10 Jan 2025 22:30:43 +0100 Subject: [PATCH 06/11] fix mocks --- .../mocks/service_clients_mocks.dart | 2 + .../mocks/service_clients_mocks.mocks.dart | 153 ++++++++++++++++++ test/unit_test/services/discovery_test.dart | 2 +- 3 files changed, 156 insertions(+), 1 deletion(-) diff --git a/test/unit_test/mocks/service_clients_mocks.dart b/test/unit_test/mocks/service_clients_mocks.dart index 495c42e7f29..eb43eba7dfe 100644 --- a/test/unit_test/mocks/service_clients_mocks.dart +++ b/test/unit_test/mocks/service_clients_mocks.dart @@ -9,6 +9,7 @@ import 'package:viam_sdk/src/gen/app/v1/robot.pbgrpc.dart' as app_robot; import 'package:viam_sdk/src/gen/provisioning/v1/provisioning.pbgrpc.dart'; import 'package:viam_sdk/src/gen/robot/v1/robot.pbgrpc.dart'; import 'package:viam_sdk/src/gen/service/vision/v1/vision.pbgrpc.dart'; +import 'package:viam_sdk/src/gen/service/discovery/v1/discovery.pbgrpc.dart'; @GenerateNiceMocks([ MockSpec(), @@ -21,5 +22,6 @@ import 'package:viam_sdk/src/gen/service/vision/v1/vision.pbgrpc.dart'; MockSpec(), MockSpec(), MockSpec(), + MockSpec(), ]) void main() {} diff --git a/test/unit_test/mocks/service_clients_mocks.mocks.dart b/test/unit_test/mocks/service_clients_mocks.mocks.dart index 47704acf41a..afc9816ad0d 100644 --- a/test/unit_test/mocks/service_clients_mocks.mocks.dart +++ b/test/unit_test/mocks/service_clients_mocks.mocks.dart @@ -30,6 +30,10 @@ import 'package:viam_sdk/src/gen/provisioning/v1/provisioning.pbgrpc.dart' as _i16; import 'package:viam_sdk/src/gen/robot/v1/robot.pb.dart' as _i9; import 'package:viam_sdk/src/gen/robot/v1/robot.pbgrpc.dart' as _i8; +import 'package:viam_sdk/src/gen/service/discovery/v1/discovery.pb.dart' + as _i28; +import 'package:viam_sdk/src/gen/service/discovery/v1/discovery.pbgrpc.dart' + as _i27; import 'package:viam_sdk/src/gen/service/vision/v1/vision.pb.dart' as _i19; import 'package:viam_sdk/src/gen/service/vision/v1/vision.pbgrpc.dart' as _i18; @@ -5767,3 +5771,152 @@ class MockDatasetServiceClient extends _i1.Mock ) as _i4.ResponseStream); } + +/// A class which mocks [DiscoveryServiceClient]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockDiscoveryServiceClient extends _i1.Mock + implements _i27.DiscoveryServiceClient { + @override + _i4.ResponseFuture<_i28.DiscoverResourcesResponse> discoverResources( + _i28.DiscoverResourcesRequest? request, { + _i3.CallOptions? options, + }) => + (super.noSuchMethod( + Invocation.method( + #discoverResources, + [request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2<_i28.DiscoverResourcesResponse>( + this, + Invocation.method( + #discoverResources, + [request], + {#options: options}, + ), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i28.DiscoverResourcesResponse>( + this, + Invocation.method( + #discoverResources, + [request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture<_i28.DiscoverResourcesResponse>); + + @override + _i4.ResponseFuture<_i20.DoCommandResponse> doCommand( + _i20.DoCommandRequest? request, { + _i3.CallOptions? options, + }) => + (super.noSuchMethod( + Invocation.method(#doCommand, [request], {#options: options}), + returnValue: _FakeResponseFuture_2<_i20.DoCommandResponse>( + this, + Invocation.method(#doCommand, [request], {#options: options}), + ), + returnValueForMissingStub: + _FakeResponseFuture_2<_i20.DoCommandResponse>( + this, + Invocation.method(#doCommand, [request], {#options: options}), + ), + ) + as _i4.ResponseFuture<_i20.DoCommandResponse>); + + @override + _i3.ClientCall $createCall( + _i7.ClientMethod? method, + _i6.Stream? requests, { + _i3.CallOptions? options, + }) => + (super.noSuchMethod( + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeClientCall_1( + this, + Invocation.method( + #$createCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i3.ClientCall); + + @override + _i4.ResponseFuture $createUnaryCall( + _i7.ClientMethod? method, + Q? request, { + _i3.CallOptions? options, + }) => + (super.noSuchMethod( + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + returnValue: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseFuture_2( + this, + Invocation.method( + #$createUnaryCall, + [method, request], + {#options: options}, + ), + ), + ) + as _i4.ResponseFuture); + + @override + _i4.ResponseStream $createStreamingCall( + _i7.ClientMethod? method, + _i6.Stream? requests, { + _i3.CallOptions? options, + }) => + (super.noSuchMethod( + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + returnValue: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + returnValueForMissingStub: _FakeResponseStream_3( + this, + Invocation.method( + #$createStreamingCall, + [method, requests], + {#options: options}, + ), + ), + ) + as _i4.ResponseStream); +} diff --git a/test/unit_test/services/discovery_test.dart b/test/unit_test/services/discovery_test.dart index 3dcabe9bda1..c23df61fc55 100644 --- a/test/unit_test/services/discovery_test.dart +++ b/test/unit_test/services/discovery_test.dart @@ -3,7 +3,7 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/mockito.dart'; import 'package:viam_sdk/protos/service/discovery.dart'; import 'package:viam_sdk/src/gen/common/v1/common.pb.dart'; -import 'package:viam_sdk/src/gen/service/discovery/v1/discovery.pbgrpc.dart'; +import 'package:viam_sdk/lib/src/gen/service/discovery/v1/discovery.pbgrpc.dart'; import 'package:viam_sdk/viam_sdk.dart'; import 'package:viam_sdk/src/gen/app/v1/robot.pb.dart'; From f8ddf00e766dcaa050ad1b09390f10bf17f83e9f Mon Sep 17 00:00:00 2001 From: martha-johnston Date: Fri, 10 Jan 2025 22:35:53 +0100 Subject: [PATCH 07/11] fix import' --- test/unit_test/services/discovery_test.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/test/unit_test/services/discovery_test.dart b/test/unit_test/services/discovery_test.dart index c23df61fc55..64042afb895 100644 --- a/test/unit_test/services/discovery_test.dart +++ b/test/unit_test/services/discovery_test.dart @@ -3,7 +3,6 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/mockito.dart'; import 'package:viam_sdk/protos/service/discovery.dart'; import 'package:viam_sdk/src/gen/common/v1/common.pb.dart'; -import 'package:viam_sdk/lib/src/gen/service/discovery/v1/discovery.pbgrpc.dart'; import 'package:viam_sdk/viam_sdk.dart'; import 'package:viam_sdk/src/gen/app/v1/robot.pb.dart'; From 28ecb6959361a3b0e77830c897ca39fbce9102b1 Mon Sep 17 00:00:00 2001 From: martha-johnston Date: Tue, 21 Jan 2025 16:42:15 +0100 Subject: [PATCH 08/11] import common to discovery.dart --- lib/src/services/discovery.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/services/discovery.dart b/lib/src/services/discovery.dart index 4a30df2c66a..a0eae1c91f8 100644 --- a/lib/src/services/discovery.dart +++ b/lib/src/services/discovery.dart @@ -2,6 +2,7 @@ import 'package:fixnum/fixnum.dart'; import 'package:grpc/grpc_connection_interface.dart'; import '../../protos/common/common.dart'; +import '../gen/common/v1/common.pb.dart'; import '../../protos/service/discovery.dart'; import '../gen/service/discovery/v1/discovery.pbgrpc.dart'; import '../gen/app/v1/robot.pb.dart'; From 7d4e0d9f3e93cc41da967d58f6d0c5a7d5863ecd Mon Sep 17 00:00:00 2001 From: martha-johnston Date: Tue, 21 Jan 2025 19:01:10 +0100 Subject: [PATCH 09/11] remove content of test --- lib/src/services/discovery.dart | 4 +-- test/unit_test/services/discovery_test.dart | 32 ++++++++++----------- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/lib/src/services/discovery.dart b/lib/src/services/discovery.dart index a0eae1c91f8..3c53c8d4acd 100644 --- a/lib/src/services/discovery.dart +++ b/lib/src/services/discovery.dart @@ -1,4 +1,3 @@ -import 'package:fixnum/fixnum.dart'; import 'package:grpc/grpc_connection_interface.dart'; import '../../protos/common/common.dart'; @@ -6,7 +5,6 @@ import '../gen/common/v1/common.pb.dart'; import '../../protos/service/discovery.dart'; import '../gen/service/discovery/v1/discovery.pbgrpc.dart'; import '../gen/app/v1/robot.pb.dart'; -import '../media/image.dart'; import '../resource/base.dart'; import '../robot/client.dart'; import '../utils.dart'; @@ -32,7 +30,7 @@ class DiscoveryClient extends Resource implements ResourceRPCClient { /// // Example: /// var resources = await myDiscoveryService.discoverResources('myWebcam'); /// ``` - Future> discoverResources(String discoveryName, {Map? extra}) async { + Future> discoverResources(String discoveryName, {Map? extra}) async { final request = DiscoverResourcesRequest(name: name, extra: extra?.toStruct()); final response = await client.discoverResources(request); return response.discoveries; diff --git a/test/unit_test/services/discovery_test.dart b/test/unit_test/services/discovery_test.dart index 64042afb895..82e06bca05d 100644 --- a/test/unit_test/services/discovery_test.dart +++ b/test/unit_test/services/discovery_test.dart @@ -3,10 +3,10 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/mockito.dart'; import 'package:viam_sdk/protos/service/discovery.dart'; import 'package:viam_sdk/src/gen/common/v1/common.pb.dart'; +import 'package:viam_sdk/src/gen/service/discovery/v1/discovery.pbgrpc.dart'; import 'package:viam_sdk/viam_sdk.dart'; import 'package:viam_sdk/src/gen/app/v1/robot.pb.dart'; -import '../../../lib/src/services/discovery.dart'; import '../mocks/mock_response_future.dart'; import '../mocks/service_clients_mocks.mocks.dart'; @@ -20,21 +20,21 @@ class FakeDiscoveryClient extends DiscoveryClient { } void main() { - late DiscoveryClient client; - late MockDiscoveryServiceClient serviceClient; + // late DiscoveryClient client; + // late MockDiscoveryServiceClient serviceClient; - setUp(() { - serviceClient = MockDiscoveryServiceClient(); - client = FakeDiscoveryClient('discovery', MockClientChannelBase(), serviceClient); - }); + // setUp(() { + // serviceClient = MockDiscoveryServiceClient(); + // client = FakeDiscoveryClient('discovery', MockClientChannelBase(), serviceClient); + // }); - group('Discovery RPC Client Tests', () { - test('discoverResources', () async { - final expected = [ComponentConfig()]; - when(serviceClient.discoverResources(any)) - .thenAnswer((_) => MockResponseFuture.value(DiscoverResourcesResponse(discoveries: expected))); - final response = await client.discoverResources('discoveryName'); - expect(response, equals(expected)); - }); - }); + // group('Discovery RPC Client Tests', () { + // test('discoverResources', () async { + // final expected = [ComponentConfig()]; + // when(serviceClient.discoverResources(any)) + // .thenAnswer((_) => MockResponseFuture.value(DiscoverResourcesResponse(discoveries: expected))); + // final response = await client.discoverResources('discoveryName'); + // expect(response, equals(expected)); + // }); + // }); } From 5eb2e20e717f85c99a3ef9bbe0a558bd8d586388 Mon Sep 17 00:00:00 2001 From: martha-johnston Date: Tue, 21 Jan 2025 19:36:43 +0100 Subject: [PATCH 10/11] readd test --- test/unit_test/services/discovery_test.dart | 30 ++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/test/unit_test/services/discovery_test.dart b/test/unit_test/services/discovery_test.dart index 82e06bca05d..91039e90173 100644 --- a/test/unit_test/services/discovery_test.dart +++ b/test/unit_test/services/discovery_test.dart @@ -20,21 +20,21 @@ class FakeDiscoveryClient extends DiscoveryClient { } void main() { - // late DiscoveryClient client; - // late MockDiscoveryServiceClient serviceClient; + late DiscoveryClient client; + late MockDiscoveryServiceClient serviceClient; - // setUp(() { - // serviceClient = MockDiscoveryServiceClient(); - // client = FakeDiscoveryClient('discovery', MockClientChannelBase(), serviceClient); - // }); + setUp(() { + serviceClient = MockDiscoveryServiceClient(); + client = FakeDiscoveryClient('discovery', MockClientChannelBase(), serviceClient); + }); - // group('Discovery RPC Client Tests', () { - // test('discoverResources', () async { - // final expected = [ComponentConfig()]; - // when(serviceClient.discoverResources(any)) - // .thenAnswer((_) => MockResponseFuture.value(DiscoverResourcesResponse(discoveries: expected))); - // final response = await client.discoverResources('discoveryName'); - // expect(response, equals(expected)); - // }); - // }); + group('Discovery RPC Client Tests', () { + test('discoverResources', () async { + final expected = [ComponentConfig()]; + when(serviceClient.discoverResources(any)) + .thenAnswer((_) => MockResponseFuture.value(DiscoverResourcesResponse(discoveries: expected))); + final response = await client.discoverResources('discoveryName'); + expect(response, equals(expected)); + }); + }); } From 0c22d16fc4e1b59db8e8f9697fce03a9216aee8f Mon Sep 17 00:00:00 2001 From: Naveed Jooma Date: Wed, 22 Jan 2025 15:14:45 -0500 Subject: [PATCH 11/11] export discovery client --- lib/viam_sdk.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/viam_sdk.dart b/lib/viam_sdk.dart index 2bc954fe5a7..4c1caecb939 100644 --- a/lib/viam_sdk.dart +++ b/lib/viam_sdk.dart @@ -52,6 +52,7 @@ export 'src/robot/client.dart'; export 'src/rpc/dial.dart'; /// Services +export 'src/services/discovery.dart'; export 'src/services/vision.dart'; /// Misc