1.0.0 (latest) 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](https://learn.microsoft.com/dotnet/api/system.object) \> [StreamingServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient) \> StreamingServiceClientImpl

## Inherited Members

[StreamingServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_DefaultEndpoint) [StreamingServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_DefaultScopes) [StreamingServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_ServiceMetadata) [StreamingServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_CreateAsync_System_Threading_CancellationToken_) [StreamingServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_Create) [StreamingServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_ShutdownDefaultChannelsAsync) [StreamingServiceClient.AcquireLeaseAsync(AcquireLeaseRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_AcquireLeaseAsync_Google_Cloud_VisionAI_V1_AcquireLeaseRequest_System_Threading_CancellationToken_) [StreamingServiceClient.RenewLeaseAsync(RenewLeaseRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_RenewLeaseAsync_Google_Cloud_VisionAI_V1_RenewLeaseRequest_System_Threading_CancellationToken_) [StreamingServiceClient.ReleaseLeaseAsync(ReleaseLeaseRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_ReleaseLeaseAsync_Google_Cloud_VisionAI_V1_ReleaseLeaseRequest_System_Threading_CancellationToken_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.VisionAI.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingService.StreamingServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceSettings` The base [StreamingServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override StreamingService.StreamingServiceClient GrpcClient { get; }

The underlying gRPC StreamingService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingService.StreamingServiceClient` |   |

**Overrides** [StreamingServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_GrpcClient)

### IAMPolicyClient

    public override IAMPolicyClient IAMPolicyClient { get; }

The [IAMPolicyClient](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicyClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicyClient.html` |   |

**Overrides** [StreamingServiceClient.IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_IAMPolicyClient)

### LocationsClient

    public override LocationsClient LocationsClient { get; }

The [LocationsClient](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html` |   |

**Overrides** [StreamingServiceClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_LocationsClient)

## Methods

### AcquireLease(AcquireLeaseRequest, CallSettings)

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

AcquireLease acquires a lease.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.AcquireLeaseRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.Lease` | The RPC response. |

**Overrides** [StreamingServiceClient.AcquireLease(AcquireLeaseRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_AcquireLease_Google_Cloud_VisionAI_V1_AcquireLeaseRequest_Google_Api_Gax_Grpc_CallSettings_)

### AcquireLeaseAsync(AcquireLeaseRequest, CallSettings)

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

AcquireLease acquires a lease.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.AcquireLeaseRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.Lease` | A Task containing the RPC response. |

**Overrides** [StreamingServiceClient.AcquireLeaseAsync(AcquireLeaseRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_AcquireLeaseAsync_Google_Cloud_VisionAI_V1_AcquireLeaseRequest_Google_Api_Gax_Grpc_CallSettings_)

### ReceiveEvents(CallSettings, BidirectionalStreamingSettings)

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

Receive events given the stream name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |
| `streamingSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingSettings.html` If not null, applies streaming overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClienthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient.ReceiveEventsStream` | The client-server stream. |

**Overrides** [StreamingServiceClient.ReceiveEvents(CallSettings, BidirectionalStreamingSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_ReceiveEvents_Google_Api_Gax_Grpc_CallSettings_Google_Api_Gax_Grpc_BidirectionalStreamingSettings_)

### ReceivePackets(CallSettings, BidirectionalStreamingSettings)

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

Receive packets from the series.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |
| `streamingSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingSettings.html` If not null, applies streaming overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClienthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient.ReceivePacketsStream` | The client-server stream. |

**Overrides** [StreamingServiceClient.ReceivePackets(CallSettings, BidirectionalStreamingSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_ReceivePackets_Google_Api_Gax_Grpc_CallSettings_Google_Api_Gax_Grpc_BidirectionalStreamingSettings_)

### ReleaseLease(ReleaseLeaseRequest, CallSettings)

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

RleaseLease releases a lease.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReleaseLeaseRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReleaseLeaseResponse` | The RPC response. |

**Overrides** [StreamingServiceClient.ReleaseLease(ReleaseLeaseRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_ReleaseLease_Google_Cloud_VisionAI_V1_ReleaseLeaseRequest_Google_Api_Gax_Grpc_CallSettings_)

### ReleaseLeaseAsync(ReleaseLeaseRequest, CallSettings)

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

RleaseLease releases a lease.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReleaseLeaseRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReleaseLeaseResponse` | A Task containing the RPC response. |

**Overrides** [StreamingServiceClient.ReleaseLeaseAsync(ReleaseLeaseRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_ReleaseLeaseAsync_Google_Cloud_VisionAI_V1_ReleaseLeaseRequest_Google_Api_Gax_Grpc_CallSettings_)

### RenewLease(RenewLeaseRequest, CallSettings)

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

RenewLease renews a lease.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.RenewLeaseRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.Lease` | The RPC response. |

**Overrides** [StreamingServiceClient.RenewLease(RenewLeaseRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_RenewLease_Google_Cloud_VisionAI_V1_RenewLeaseRequest_Google_Api_Gax_Grpc_CallSettings_)

### RenewLeaseAsync(RenewLeaseRequest, CallSettings)

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

RenewLease renews a lease.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.RenewLeaseRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.Lease` | A Task containing the RPC response. |

**Overrides** [StreamingServiceClient.RenewLeaseAsync(RenewLeaseRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_RenewLeaseAsync_Google_Cloud_VisionAI_V1_RenewLeaseRequest_Google_Api_Gax_Grpc_CallSettings_)

### SendPackets(CallSettings, BidirectionalStreamingSettings)

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

Send packets to the series.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |
| `streamingSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingSettings.html` If not null, applies streaming overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClienthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient.SendPacketsStream` | The client-server stream. |

**Overrides** [StreamingServiceClient.SendPackets(CallSettings, BidirectionalStreamingSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StreamingServiceClient#Google_Cloud_VisionAI_V1_StreamingServiceClient_SendPackets_Google_Api_Gax_Grpc_CallSettings_Google_Api_Gax_Grpc_BidirectionalStreamingSettings_)