Vision AI v1 API - Class StreamingServiceClientImpl (1.0.0-beta01)

public sealed class StreamingServiceClientImpl : StreamingServiceClient

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

StreamingService client wrapper implementation, for convenient use.

Inheritance

object > StreamingServiceClient > StreamingServiceClientImpl

Namespace

Google.Cloud.VisionAI.V1

Assembly

Google.Cloud.VisionAI.V1.dll

Remarks

Streaming service for receiving and sending packets.

Constructors

StreamingServiceClientImpl(StreamingServiceClient, StreamingServiceSettings, ILogger)

public StreamingServiceClientImpl(StreamingService.StreamingServiceClient grpcClient, StreamingServiceSettings settings, ILogger logger)

Constructs a client wrapper for the StreamingService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient StreamingServiceStreamingServiceClient

The underlying gRPC client.

settings StreamingServiceSettings

The base StreamingServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override StreamingService.StreamingServiceClient GrpcClient { get; }

The underlying gRPC StreamingService client

Property Value
Type Description
StreamingServiceStreamingServiceClient
Overrides

IAMPolicyClient

public override IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

Methods

AcquireLease(AcquireLeaseRequest, CallSettings)

public override Lease AcquireLease(AcquireLeaseRequest request, CallSettings callSettings = null)

AcquireLease acquires a lease.

Parameters
Name Description
request AcquireLeaseRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Lease

The RPC response.

Overrides

AcquireLeaseAsync(AcquireLeaseRequest, CallSettings)

public override Task<Lease> AcquireLeaseAsync(AcquireLeaseRequest request, CallSettings callSettings = null)

AcquireLease acquires a lease.

Parameters
Name Description
request AcquireLeaseRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLease

A Task containing the RPC response.

Overrides

ReceiveEvents(CallSettings, BidirectionalStreamingSettings)

public override StreamingServiceClient.ReceiveEventsStream ReceiveEvents(CallSettings callSettings = null, BidirectionalStreamingSettings streamingSettings = null)

Receive events given the stream name.

Parameters
Name Description
callSettings CallSettings

If not null, applies overrides to this RPC call.

streamingSettings BidirectionalStreamingSettings

If not null, applies streaming overrides to this RPC call.

Returns
Type Description
StreamingServiceClientReceiveEventsStream

The client-server stream.

Overrides

ReceivePackets(CallSettings, BidirectionalStreamingSettings)

public override StreamingServiceClient.ReceivePacketsStream ReceivePackets(CallSettings callSettings = null, BidirectionalStreamingSettings streamingSettings = null)

Receive packets from the series.

Parameters
Name Description
callSettings CallSettings

If not null, applies overrides to this RPC call.

streamingSettings BidirectionalStreamingSettings

If not null, applies streaming overrides to this RPC call.

Returns
Type Description
StreamingServiceClientReceivePacketsStream

The client-server stream.

Overrides

ReleaseLease(ReleaseLeaseRequest, CallSettings)

public override ReleaseLeaseResponse ReleaseLease(ReleaseLeaseRequest request, CallSettings callSettings = null)

RleaseLease releases a lease.

Parameters
Name Description
request ReleaseLeaseRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ReleaseLeaseResponse

The RPC response.

Overrides

ReleaseLeaseAsync(ReleaseLeaseRequest, CallSettings)

public override Task<ReleaseLeaseResponse> ReleaseLeaseAsync(ReleaseLeaseRequest request, CallSettings callSettings = null)

RleaseLease releases a lease.

Parameters
Name Description
request ReleaseLeaseRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskReleaseLeaseResponse

A Task containing the RPC response.

Overrides

RenewLease(RenewLeaseRequest, CallSettings)

public override Lease RenewLease(RenewLeaseRequest request, CallSettings callSettings = null)

RenewLease renews a lease.

Parameters
Name Description
request RenewLeaseRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Lease

The RPC response.

Overrides

RenewLeaseAsync(RenewLeaseRequest, CallSettings)

public override Task<Lease> RenewLeaseAsync(RenewLeaseRequest request, CallSettings callSettings = null)

RenewLease renews a lease.

Parameters
Name Description
request RenewLeaseRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLease

A Task containing the RPC response.

Overrides

SendPackets(CallSettings, BidirectionalStreamingSettings)

public override StreamingServiceClient.SendPacketsStream SendPackets(CallSettings callSettings = null, BidirectionalStreamingSettings streamingSettings = null)

Send packets to the series.

Parameters
Name Description
callSettings CallSettings

If not null, applies overrides to this RPC call.

streamingSettings BidirectionalStreamingSettings

If not null, applies streaming overrides to this RPC call.

Returns
Type Description
StreamingServiceClientSendPacketsStream

The client-server stream.

Overrides