public sealed class StreamingServiceClientImpl : StreamingServiceClientReference documentation and code samples for the Vision AI v1 API class StreamingServiceClientImpl.
StreamingService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.VisionAI.V1Assembly
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 |
StreamingServiceStreamingServiceClientThe underlying gRPC client. |
settings |
StreamingServiceSettingsThe base StreamingServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override StreamingService.StreamingServiceClient GrpcClient { get; }The underlying gRPC StreamingService client
| Property Value | |
|---|---|
| Type | Description |
StreamingServiceStreamingServiceClient |
|
IAMPolicyClient
public override IAMPolicyClient IAMPolicyClient { get; }The IAMPolicyClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
IAMPolicyClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
Methods
AcquireLease(AcquireLeaseRequest, CallSettings)
public override Lease AcquireLease(AcquireLeaseRequest request, CallSettings callSettings = null)AcquireLease acquires a lease.
| Parameters | |
|---|---|
| Name | Description |
request |
AcquireLeaseRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Lease |
The RPC response. |
AcquireLeaseAsync(AcquireLeaseRequest, CallSettings)
public override Task<Lease> AcquireLeaseAsync(AcquireLeaseRequest request, CallSettings callSettings = null)AcquireLease acquires a lease.
| Parameters | |
|---|---|
| Name | Description |
request |
AcquireLeaseRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskLease |
A Task containing the RPC response. |
ReceiveEvents(CallSettings, BidirectionalStreamingSettings)
public override StreamingServiceClient.ReceiveEventsStream ReceiveEvents(CallSettings callSettings = null, BidirectionalStreamingSettings streamingSettings = null)Receive events given the stream name.
| Parameters | |
|---|---|
| Name | Description |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
streamingSettings |
BidirectionalStreamingSettingsIf not null, applies streaming overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
StreamingServiceClientReceiveEventsStream |
The client-server stream. |
ReceivePackets(CallSettings, BidirectionalStreamingSettings)
public override StreamingServiceClient.ReceivePacketsStream ReceivePackets(CallSettings callSettings = null, BidirectionalStreamingSettings streamingSettings = null)Receive packets from the series.
| Parameters | |
|---|---|
| Name | Description |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
streamingSettings |
BidirectionalStreamingSettingsIf not null, applies streaming overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
StreamingServiceClientReceivePacketsStream |
The client-server stream. |
ReleaseLease(ReleaseLeaseRequest, CallSettings)
public override ReleaseLeaseResponse ReleaseLease(ReleaseLeaseRequest request, CallSettings callSettings = null)RleaseLease releases a lease.
| Parameters | |
|---|---|
| Name | Description |
request |
ReleaseLeaseRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ReleaseLeaseResponse |
The RPC response. |
ReleaseLeaseAsync(ReleaseLeaseRequest, CallSettings)
public override Task<ReleaseLeaseResponse> ReleaseLeaseAsync(ReleaseLeaseRequest request, CallSettings callSettings = null)RleaseLease releases a lease.
| Parameters | |
|---|---|
| Name | Description |
request |
ReleaseLeaseRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskReleaseLeaseResponse |
A Task containing the RPC response. |
RenewLease(RenewLeaseRequest, CallSettings)
public override Lease RenewLease(RenewLeaseRequest request, CallSettings callSettings = null)RenewLease renews a lease.
| Parameters | |
|---|---|
| Name | Description |
request |
RenewLeaseRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Lease |
The RPC response. |
RenewLeaseAsync(RenewLeaseRequest, CallSettings)
public override Task<Lease> RenewLeaseAsync(RenewLeaseRequest request, CallSettings callSettings = null)RenewLease renews a lease.
| Parameters | |
|---|---|
| Name | Description |
request |
RenewLeaseRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskLease |
A Task containing the RPC response. |
SendPackets(CallSettings, BidirectionalStreamingSettings)
public override StreamingServiceClient.SendPacketsStream SendPackets(CallSettings callSettings = null, BidirectionalStreamingSettings streamingSettings = null)Send packets to the series.
| Parameters | |
|---|---|
| Name | Description |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
streamingSettings |
BidirectionalStreamingSettingsIf not null, applies streaming overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
StreamingServiceClientSendPacketsStream |
The client-server stream. |