[BindServiceMethod(typeof(StreamingService), "BindService")]
public abstract class StreamingService.StreamingServiceBaseReference documentation and code samples for the Vision AI v1 API class StreamingService.StreamingServiceBase.
Base class for server-side implementations of StreamingService
Namespace
Google.Cloud.VisionAI.V1Assembly
Google.Cloud.VisionAI.V1.dll
Methods
AcquireLease(AcquireLeaseRequest, ServerCallContext)
public virtual Task<Lease> AcquireLease(AcquireLeaseRequest request, ServerCallContext context)AcquireLease acquires a lease.
| Parameters | |
|---|---|
| Name | Description |
request |
AcquireLeaseRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskLease |
The response to send back to the client (wrapped by a task). |
ReceiveEvents(IAsyncStreamReader<ReceiveEventsRequest>, IServerStreamWriter<ReceiveEventsResponse>, ServerCallContext)
public virtual Task ReceiveEvents(IAsyncStreamReader<ReceiveEventsRequest> requestStream, IServerStreamWriter<ReceiveEventsResponse> responseStream, ServerCallContext context)Receive events given the stream name.
| Parameters | |
|---|---|
| Name | Description |
requestStream |
IAsyncStreamReaderReceiveEventsRequestUsed for reading requests from the client. |
responseStream |
IServerStreamWriterReceiveEventsResponseUsed for sending responses back to the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
Task |
A task indicating completion of the handler. |
ReceivePackets(IAsyncStreamReader<ReceivePacketsRequest>, IServerStreamWriter<ReceivePacketsResponse>, ServerCallContext)
public virtual Task ReceivePackets(IAsyncStreamReader<ReceivePacketsRequest> requestStream, IServerStreamWriter<ReceivePacketsResponse> responseStream, ServerCallContext context)Receive packets from the series.
| Parameters | |
|---|---|
| Name | Description |
requestStream |
IAsyncStreamReaderReceivePacketsRequestUsed for reading requests from the client. |
responseStream |
IServerStreamWriterReceivePacketsResponseUsed for sending responses back to the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
Task |
A task indicating completion of the handler. |
ReleaseLease(ReleaseLeaseRequest, ServerCallContext)
public virtual Task<ReleaseLeaseResponse> ReleaseLease(ReleaseLeaseRequest request, ServerCallContext context)RleaseLease releases a lease.
| Parameters | |
|---|---|
| Name | Description |
request |
ReleaseLeaseRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskReleaseLeaseResponse |
The response to send back to the client (wrapped by a task). |
RenewLease(RenewLeaseRequest, ServerCallContext)
public virtual Task<Lease> RenewLease(RenewLeaseRequest request, ServerCallContext context)RenewLease renews a lease.
| Parameters | |
|---|---|
| Name | Description |
request |
RenewLeaseRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskLease |
The response to send back to the client (wrapped by a task). |
SendPackets(IAsyncStreamReader<SendPacketsRequest>, IServerStreamWriter<SendPacketsResponse>, ServerCallContext)
public virtual Task SendPackets(IAsyncStreamReader<SendPacketsRequest> requestStream, IServerStreamWriter<SendPacketsResponse> responseStream, ServerCallContext context)Send packets to the series.
| Parameters | |
|---|---|
| Name | Description |
requestStream |
IAsyncStreamReaderSendPacketsRequestUsed for reading requests from the client. |
responseStream |
IServerStreamWriterSendPacketsResponseUsed for sending responses back to the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
Task |
A task indicating completion of the handler. |