Skip to content

Commit

Permalink
Automated Protos Update (#9)
Browse files Browse the repository at this point in the history
Co-authored-by: viambot <[email protected]>
  • Loading branch information
github-actions[bot] and viambot authored Apr 2, 2024
1 parent 8aefecd commit 97dadd1
Show file tree
Hide file tree
Showing 13 changed files with 10,641 additions and 2,042 deletions.
369 changes: 274 additions & 95 deletions core/sdk/src/main/gen/com/viam/common/v1/Common.java

Large diffs are not rendered by default.

2,077 changes: 2,010 additions & 67 deletions core/sdk/src/main/gen/com/viam/component/board/v1/Board.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,37 @@ com.viam.component.board.v1.Board.GetDigitalInterruptValueResponse> getGetDigita
return getGetDigitalInterruptValueMethod;
}

private static volatile io.grpc.MethodDescriptor<com.viam.component.board.v1.Board.StreamTicksRequest,
com.viam.component.board.v1.Board.StreamTicksResponse> getStreamTicksMethod;

@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "StreamTicks",
requestType = com.viam.component.board.v1.Board.StreamTicksRequest.class,
responseType = com.viam.component.board.v1.Board.StreamTicksResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor<com.viam.component.board.v1.Board.StreamTicksRequest,
com.viam.component.board.v1.Board.StreamTicksResponse> getStreamTicksMethod() {
io.grpc.MethodDescriptor<com.viam.component.board.v1.Board.StreamTicksRequest, com.viam.component.board.v1.Board.StreamTicksResponse> getStreamTicksMethod;
if ((getStreamTicksMethod = BoardServiceGrpc.getStreamTicksMethod) == null) {
synchronized (BoardServiceGrpc.class) {
if ((getStreamTicksMethod = BoardServiceGrpc.getStreamTicksMethod) == null) {
BoardServiceGrpc.getStreamTicksMethod = getStreamTicksMethod =
io.grpc.MethodDescriptor.<com.viam.component.board.v1.Board.StreamTicksRequest, com.viam.component.board.v1.Board.StreamTicksResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamTicks"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.viam.component.board.v1.Board.StreamTicksRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.viam.component.board.v1.Board.StreamTicksResponse.getDefaultInstance()))
.setSchemaDescriptor(new BoardServiceMethodDescriptorSupplier("StreamTicks"))
.build();
}
}
}
return getStreamTicksMethod;
}

private static volatile io.grpc.MethodDescriptor<com.viam.component.board.v1.Board.SetPowerModeRequest,
com.viam.component.board.v1.Board.SetPowerModeResponse> getSetPowerModeMethod;

Expand Down Expand Up @@ -576,6 +607,16 @@ default void getDigitalInterruptValue(com.viam.component.board.v1.Board.GetDigit
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDigitalInterruptValueMethod(), responseObserver);
}

/**
* <pre>
* StreamTicks starts a stream of ticks for the given digital interrupts.
* </pre>
*/
default void streamTicks(com.viam.component.board.v1.Board.StreamTicksRequest request,
io.grpc.stub.StreamObserver<com.viam.component.board.v1.Board.StreamTicksResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStreamTicksMethod(), responseObserver);
}

/**
* <pre>
* `SetPowerMode` sets the power consumption mode of the board to the requested setting for the given duration.
Expand Down Expand Up @@ -745,6 +786,17 @@ public void getDigitalInterruptValue(com.viam.component.board.v1.Board.GetDigita
getChannel().newCall(getGetDigitalInterruptValueMethod(), getCallOptions()), request, responseObserver);
}

/**
* <pre>
* StreamTicks starts a stream of ticks for the given digital interrupts.
* </pre>
*/
public void streamTicks(com.viam.component.board.v1.Board.StreamTicksRequest request,
io.grpc.stub.StreamObserver<com.viam.component.board.v1.Board.StreamTicksResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getStreamTicksMethod(), getCallOptions()), request, responseObserver);
}

/**
* <pre>
* `SetPowerMode` sets the power consumption mode of the board to the requested setting for the given duration.
Expand Down Expand Up @@ -891,6 +943,17 @@ public com.viam.component.board.v1.Board.GetDigitalInterruptValueResponse getDig
getChannel(), getGetDigitalInterruptValueMethod(), getCallOptions(), request);
}

/**
* <pre>
* StreamTicks starts a stream of ticks for the given digital interrupts.
* </pre>
*/
public java.util.Iterator<com.viam.component.board.v1.Board.StreamTicksResponse> streamTicks(
com.viam.component.board.v1.Board.StreamTicksRequest request) {
return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
getChannel(), getStreamTicksMethod(), getCallOptions(), request);
}

/**
* <pre>
* `SetPowerMode` sets the power consumption mode of the board to the requested setting for the given duration.
Expand Down Expand Up @@ -1080,8 +1143,9 @@ public com.google.common.util.concurrent.ListenableFuture<com.viam.common.v1.Com
private static final int METHODID_READ_ANALOG_READER = 8;
private static final int METHODID_WRITE_ANALOG = 9;
private static final int METHODID_GET_DIGITAL_INTERRUPT_VALUE = 10;
private static final int METHODID_SET_POWER_MODE = 11;
private static final int METHODID_GET_GEOMETRIES = 12;
private static final int METHODID_STREAM_TICKS = 11;
private static final int METHODID_SET_POWER_MODE = 12;
private static final int METHODID_GET_GEOMETRIES = 13;

private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
Expand Down Expand Up @@ -1144,6 +1208,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserv
serviceImpl.getDigitalInterruptValue((com.viam.component.board.v1.Board.GetDigitalInterruptValueRequest) request,
(io.grpc.stub.StreamObserver<com.viam.component.board.v1.Board.GetDigitalInterruptValueResponse>) responseObserver);
break;
case METHODID_STREAM_TICKS:
serviceImpl.streamTicks((com.viam.component.board.v1.Board.StreamTicksRequest) request,
(io.grpc.stub.StreamObserver<com.viam.component.board.v1.Board.StreamTicksResponse>) responseObserver);
break;
case METHODID_SET_POWER_MODE:
serviceImpl.setPowerMode((com.viam.component.board.v1.Board.SetPowerModeRequest) request,
(io.grpc.stub.StreamObserver<com.viam.component.board.v1.Board.SetPowerModeResponse>) responseObserver);
Expand Down Expand Up @@ -1247,6 +1315,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser
com.viam.component.board.v1.Board.GetDigitalInterruptValueRequest,
com.viam.component.board.v1.Board.GetDigitalInterruptValueResponse>(
service, METHODID_GET_DIGITAL_INTERRUPT_VALUE)))
.addMethod(
getStreamTicksMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
com.viam.component.board.v1.Board.StreamTicksRequest,
com.viam.component.board.v1.Board.StreamTicksResponse>(
service, METHODID_STREAM_TICKS)))
.addMethod(
getSetPowerModeMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
Expand Down Expand Up @@ -1320,6 +1395,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
.addMethod(getReadAnalogReaderMethod())
.addMethod(getWriteAnalogMethod())
.addMethod(getGetDigitalInterruptValueMethod())
.addMethod(getStreamTicksMethod())
.addMethod(getSetPowerModeMethod())
.addMethod(getGetGeometriesMethod())
.build();
Expand Down
Loading

0 comments on commit 97dadd1

Please sign in to comment.