Vision AI v1 API - Class StreamingService.StreamingServiceBase (1.0.0-beta01)

[BindServiceMethod(typeof(StreamingService), "BindService")]
public abstract class StreamingService.StreamingServiceBase

Reference documentation and code samples for the Vision AI v1 API class StreamingService.StreamingServiceBase.

Base class for server-side implementations of StreamingService

Inheritance

object > StreamingService.StreamingServiceBase

Namespace

Google.Cloud.VisionAI.V1

Assembly

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 AcquireLeaseRequest

The request received from the client.

context ServerCallContext

The 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 IAsyncStreamReaderReceiveEventsRequest

Used for reading requests from the client.

responseStream IServerStreamWriterReceiveEventsResponse

Used for sending responses back to the client.

context ServerCallContext

The 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 IAsyncStreamReaderReceivePacketsRequest

Used for reading requests from the client.

responseStream IServerStreamWriterReceivePacketsResponse

Used for sending responses back to the client.

context ServerCallContext

The 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 ReleaseLeaseRequest

The request received from the client.

context ServerCallContext

The 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 RenewLeaseRequest

The request received from the client.

context ServerCallContext

The 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 IAsyncStreamReaderSendPacketsRequest

Used for reading requests from the client.

responseStream IServerStreamWriterSendPacketsResponse

Used for sending responses back to the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
Task

A task indicating completion of the handler.