RobotClient.withClient constructor
- RobotServiceClient client
Construct a RobotClient from an existing rpb.RobotServiceClient.
Most callers should use atAddress instead, which handles dialing, session management, and resource discovery. This constructor is useful when you have already obtained a rpb.RobotServiceClient (e.g. for testing with a mock client). Methods that depend on the channel, session, or resource manager will not work on instances created this way.
Implementation
RobotClient.withClient(rpb.RobotServiceClient client) {
_client = client;
}