Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api_version.lock
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.1.395
v0.1.399
956 changes: 944 additions & 12 deletions core/sdk/src/main/gen/com/viam/robot/v1/Robot.java

Large diffs are not rendered by default.

87 changes: 86 additions & 1 deletion core/sdk/src/main/gen/com/viam/robot/v1/RobotServiceGrpc.java
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,36 @@ com.viam.robot.v1.Robot.TunnelResponse> getTunnelMethod() {
return getTunnelMethod;
}

private static volatile io.grpc.MethodDescriptor<com.viam.robot.v1.Robot.ListTunnelsRequest,
com.viam.robot.v1.Robot.ListTunnelsResponse> getListTunnelsMethod;

@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListTunnels",
requestType = com.viam.robot.v1.Robot.ListTunnelsRequest.class,
responseType = com.viam.robot.v1.Robot.ListTunnelsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<com.viam.robot.v1.Robot.ListTunnelsRequest,
com.viam.robot.v1.Robot.ListTunnelsResponse> getListTunnelsMethod() {
io.grpc.MethodDescriptor<com.viam.robot.v1.Robot.ListTunnelsRequest, com.viam.robot.v1.Robot.ListTunnelsResponse> getListTunnelsMethod;
if ((getListTunnelsMethod = RobotServiceGrpc.getListTunnelsMethod) == null) {
synchronized (RobotServiceGrpc.class) {
if ((getListTunnelsMethod = RobotServiceGrpc.getListTunnelsMethod) == null) {
RobotServiceGrpc.getListTunnelsMethod = getListTunnelsMethod =
io.grpc.MethodDescriptor.<com.viam.robot.v1.Robot.ListTunnelsRequest, com.viam.robot.v1.Robot.ListTunnelsResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTunnels"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.viam.robot.v1.Robot.ListTunnelsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.viam.robot.v1.Robot.ListTunnelsResponse.getDefaultInstance()))
.build();
}
}
}
return getListTunnelsMethod;
}

/**
* Creates a new async stub that supports all call types for the service
*/
Expand Down Expand Up @@ -971,6 +1001,16 @@ default io.grpc.stub.StreamObserver<com.viam.robot.v1.Robot.TunnelRequest> tunne
io.grpc.stub.StreamObserver<com.viam.robot.v1.Robot.TunnelResponse> responseObserver) {
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getTunnelMethod(), responseObserver);
}

/**
* <pre>
* ListTunnels lists all available tunnels configured on the robot.
* </pre>
*/
default void listTunnels(com.viam.robot.v1.Robot.ListTunnelsRequest request,
io.grpc.stub.StreamObserver<com.viam.robot.v1.Robot.ListTunnelsResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTunnelsMethod(), responseObserver);
}
}

/**
Expand Down Expand Up @@ -1241,6 +1281,17 @@ public io.grpc.stub.StreamObserver<com.viam.robot.v1.Robot.TunnelRequest> tunnel
return io.grpc.stub.ClientCalls.asyncBidiStreamingCall(
getChannel().newCall(getTunnelMethod(), getCallOptions()), responseObserver);
}

/**
* <pre>
* ListTunnels lists all available tunnels configured on the robot.
* </pre>
*/
public void listTunnels(com.viam.robot.v1.Robot.ListTunnelsRequest request,
io.grpc.stub.StreamObserver<com.viam.robot.v1.Robot.ListTunnelsResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListTunnelsMethod(), getCallOptions()), request, responseObserver);
}
}

/**
Expand Down Expand Up @@ -1465,6 +1516,16 @@ public com.viam.robot.v1.Robot.GetVersionResponse getVersion(com.viam.robot.v1.R
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetVersionMethod(), getCallOptions(), request);
}

/**
* <pre>
* ListTunnels lists all available tunnels configured on the robot.
* </pre>
*/
public com.viam.robot.v1.Robot.ListTunnelsResponse listTunnels(com.viam.robot.v1.Robot.ListTunnelsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListTunnelsMethod(), getCallOptions(), request);
}
}

/**
Expand Down Expand Up @@ -1698,6 +1759,17 @@ public com.google.common.util.concurrent.ListenableFuture<com.viam.robot.v1.Robo
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetVersionMethod(), getCallOptions()), request);
}

/**
* <pre>
* ListTunnels lists all available tunnels configured on the robot.
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<com.viam.robot.v1.Robot.ListTunnelsResponse> listTunnels(
com.viam.robot.v1.Robot.ListTunnelsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListTunnelsMethod(), getCallOptions()), request);
}
}

private static final int METHODID_GET_OPERATIONS = 0;
Expand All @@ -1722,7 +1794,8 @@ public com.google.common.util.concurrent.ListenableFuture<com.viam.robot.v1.Robo
private static final int METHODID_SHUTDOWN = 19;
private static final int METHODID_GET_MACHINE_STATUS = 20;
private static final int METHODID_GET_VERSION = 21;
private static final int METHODID_TUNNEL = 22;
private static final int METHODID_LIST_TUNNELS = 22;
private static final int METHODID_TUNNEL = 23;

private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
Expand Down Expand Up @@ -1829,6 +1902,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserv
serviceImpl.getVersion((com.viam.robot.v1.Robot.GetVersionRequest) request,
(io.grpc.stub.StreamObserver<com.viam.robot.v1.Robot.GetVersionResponse>) responseObserver);
break;
case METHODID_LIST_TUNNELS:
serviceImpl.listTunnels((com.viam.robot.v1.Robot.ListTunnelsRequest) request,
(io.grpc.stub.StreamObserver<com.viam.robot.v1.Robot.ListTunnelsResponse>) responseObserver);
break;
default:
throw new AssertionError();
}
Expand Down Expand Up @@ -2011,6 +2088,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser
com.viam.robot.v1.Robot.TunnelRequest,
com.viam.robot.v1.Robot.TunnelResponse>(
service, METHODID_TUNNEL)))
.addMethod(
getListTunnelsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.viam.robot.v1.Robot.ListTunnelsRequest,
com.viam.robot.v1.Robot.ListTunnelsResponse>(
service, METHODID_LIST_TUNNELS)))
.build();
}

Expand Down Expand Up @@ -2046,6 +2130,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
.addMethod(getGetMachineStatusMethod())
.addMethod(getGetVersionMethod())
.addMethod(getTunnelMethod())
.addMethod(getListTunnelsMethod())
.build();
}
}
Expand Down
Loading