Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated Protos Update #48

Merged
merged 2 commits into from
Jul 9, 2024
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
1,402 changes: 1,390 additions & 12 deletions core/sdk/src/main/gen/com/viam/robot/v1/Robot.java

Large diffs are not rendered by default.

85 changes: 85 additions & 0 deletions core/sdk/src/main/gen/com/viam/robot/v1/RobotServiceGrpc.java
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,36 @@ com.viam.robot.v1.Robot.ShutdownResponse> getShutdownMethod() {
return getShutdownMethod;
}

private static volatile io.grpc.MethodDescriptor<com.viam.robot.v1.Robot.GetMachineStatusRequest,
com.viam.robot.v1.Robot.GetMachineStatusResponse> getGetMachineStatusMethod;

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

/**
* Creates a new async stub that supports all call types for the service
*/
Expand Down Expand Up @@ -809,6 +839,16 @@ default void shutdown(com.viam.robot.v1.Robot.ShutdownRequest request,
io.grpc.stub.StreamObserver<com.viam.robot.v1.Robot.ShutdownResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getShutdownMethod(), responseObserver);
}

/**
* <pre>
* GetMachineStatus returns the current status of the robot.
* </pre>
*/
default void getMachineStatus(com.viam.robot.v1.Robot.GetMachineStatusRequest request,
io.grpc.stub.StreamObserver<com.viam.robot.v1.Robot.GetMachineStatusResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMachineStatusMethod(), responseObserver);
}
}

/**
Expand Down Expand Up @@ -1033,6 +1073,17 @@ public void shutdown(com.viam.robot.v1.Robot.ShutdownRequest request,
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getShutdownMethod(), getCallOptions()), request, responseObserver);
}

/**
* <pre>
* GetMachineStatus returns the current status of the robot.
* </pre>
*/
public void getMachineStatus(com.viam.robot.v1.Robot.GetMachineStatusRequest request,
io.grpc.stub.StreamObserver<com.viam.robot.v1.Robot.GetMachineStatusResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetMachineStatusMethod(), getCallOptions()), request, responseObserver);
}
}

/**
Expand Down Expand Up @@ -1225,6 +1276,16 @@ public com.viam.robot.v1.Robot.ShutdownResponse shutdown(com.viam.robot.v1.Robot
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getShutdownMethod(), getCallOptions(), request);
}

/**
* <pre>
* GetMachineStatus returns the current status of the robot.
* </pre>
*/
public com.viam.robot.v1.Robot.GetMachineStatusResponse getMachineStatus(com.viam.robot.v1.Robot.GetMachineStatusRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetMachineStatusMethod(), getCallOptions(), request);
}
}

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

/**
* <pre>
* GetMachineStatus returns the current status of the robot.
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<com.viam.robot.v1.Robot.GetMachineStatusResponse> getMachineStatus(
com.viam.robot.v1.Robot.GetMachineStatusRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetMachineStatusMethod(), getCallOptions()), request);
}
}

private static final int METHODID_GET_OPERATIONS = 0;
Expand All @@ -1444,6 +1516,7 @@ public com.google.common.util.concurrent.ListenableFuture<com.viam.robot.v1.Robo
private static final int METHODID_GET_CLOUD_METADATA = 16;
private static final int METHODID_RESTART_MODULE = 17;
private static final int METHODID_SHUTDOWN = 18;
private static final int METHODID_GET_MACHINE_STATUS = 19;

private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
Expand Down Expand Up @@ -1538,6 +1611,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserv
serviceImpl.shutdown((com.viam.robot.v1.Robot.ShutdownRequest) request,
(io.grpc.stub.StreamObserver<com.viam.robot.v1.Robot.ShutdownResponse>) responseObserver);
break;
case METHODID_GET_MACHINE_STATUS:
serviceImpl.getMachineStatus((com.viam.robot.v1.Robot.GetMachineStatusRequest) request,
(io.grpc.stub.StreamObserver<com.viam.robot.v1.Robot.GetMachineStatusResponse>) responseObserver);
break;
default:
throw new AssertionError();
}
Expand Down Expand Up @@ -1689,6 +1766,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser
com.viam.robot.v1.Robot.ShutdownRequest,
com.viam.robot.v1.Robot.ShutdownResponse>(
service, METHODID_SHUTDOWN)))
.addMethod(
getGetMachineStatusMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.viam.robot.v1.Robot.GetMachineStatusRequest,
com.viam.robot.v1.Robot.GetMachineStatusResponse>(
service, METHODID_GET_MACHINE_STATUS)))
.build();
}

Expand Down Expand Up @@ -1720,6 +1804,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
.addMethod(getGetCloudMetadataMethod())
.addMethod(getRestartModuleMethod())
.addMethod(getShutdownMethod())
.addMethod(getGetMachineStatusMethod())
.build();
}
}
Expand Down
18 changes: 12 additions & 6 deletions core/sdk/src/main/gen/viam/app/data/v1/Data.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading