Package proto.stream.v1
Class StreamServiceGrpc.StreamServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<StreamServiceGrpc.StreamServiceStub>
proto.stream.v1.StreamServiceGrpc.StreamServiceStub
- Enclosing class:
- StreamServiceGrpc
public static final class StreamServiceGrpc.StreamServiceStub
extends io.grpc.stub.AbstractAsyncStub<StreamServiceGrpc.StreamServiceStub>
A stub to allow clients to do asynchronous rpc calls to service StreamService.
A StreamService is used to coordinate with a WebRTC the listing, addition, and removal of registered video streams. TODO(https://github.com/viamrobotics/rdk/issues/509): support removal
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addStream
(Stream.AddStreamRequest request, io.grpc.stub.StreamObserver<Stream.AddStreamResponse> responseObserver) AddStream requests a particular stream be added.protected StreamServiceGrpc.StreamServiceStub
build
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) void
getStreamOptions
(Stream.GetStreamOptionsRequest request, io.grpc.stub.StreamObserver<Stream.GetStreamOptionsResponse> responseObserver) GetStreamOptions returns the options for a particular stream.void
listStreams
(Stream.ListStreamsRequest request, io.grpc.stub.StreamObserver<Stream.ListStreamsResponse> responseObserver) ListStreams returns all streams registered.void
removeStream
(Stream.RemoveStreamRequest request, io.grpc.stub.StreamObserver<Stream.RemoveStreamResponse> responseObserver) RemoveStream requests a particular stream be removed.void
setStreamOptions
(Stream.SetStreamOptionsRequest request, io.grpc.stub.StreamObserver<Stream.SetStreamOptionsResponse> responseObserver) SetStreamOptions sets the options for a particular stream.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStub
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected StreamServiceGrpc.StreamServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<StreamServiceGrpc.StreamServiceStub>
-
listStreams
public void listStreams(Stream.ListStreamsRequest request, io.grpc.stub.StreamObserver<Stream.ListStreamsResponse> responseObserver) ListStreams returns all streams registered.
-
addStream
public void addStream(Stream.AddStreamRequest request, io.grpc.stub.StreamObserver<Stream.AddStreamResponse> responseObserver) AddStream requests a particular stream be added.
-
getStreamOptions
public void getStreamOptions(Stream.GetStreamOptionsRequest request, io.grpc.stub.StreamObserver<Stream.GetStreamOptionsResponse> responseObserver) GetStreamOptions returns the options for a particular stream.
-
setStreamOptions
public void setStreamOptions(Stream.SetStreamOptionsRequest request, io.grpc.stub.StreamObserver<Stream.SetStreamOptionsResponse> responseObserver) SetStreamOptions sets the options for a particular stream.
-
removeStream
public void removeStream(Stream.RemoveStreamRequest request, io.grpc.stub.StreamObserver<Stream.RemoveStreamResponse> responseObserver) RemoveStream requests a particular stream be removed. If the calling client is the last to be receiving the stream, it will attempt to be stopped to conserve resources.
-