1.1.0 (latest) 1.0.0

    public sealed class InstanceServiceClientImpl : InstanceServiceClient

Reference documentation and code samples for the Chronicle v1 API class InstanceServiceClientImpl.

InstanceService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [InstanceServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceClient) \> InstanceServiceClientImpl

## Inherited Members

[InstanceServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceClient#Google_Cloud_Chronicle_V1_InstanceServiceClient_DefaultEndpoint) [InstanceServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceClient#Google_Cloud_Chronicle_V1_InstanceServiceClient_DefaultScopes) [InstanceServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceClient#Google_Cloud_Chronicle_V1_InstanceServiceClient_ServiceMetadata) [InstanceServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceClient#Google_Cloud_Chronicle_V1_InstanceServiceClient_CreateAsync_System_Threading_CancellationToken_) [InstanceServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceClient#Google_Cloud_Chronicle_V1_InstanceServiceClient_Create) [InstanceServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceClient#Google_Cloud_Chronicle_V1_InstanceServiceClient_ShutdownDefaultChannelsAsync) [InstanceServiceClient.GetInstanceAsync(GetInstanceRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceClient#Google_Cloud_Chronicle_V1_InstanceServiceClient_GetInstanceAsync_Google_Cloud_Chronicle_V1_GetInstanceRequest_System_Threading_CancellationToken_) [InstanceServiceClient.GetInstance(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceClient#Google_Cloud_Chronicle_V1_InstanceServiceClient_GetInstance_System_String_Google_Api_Gax_Grpc_CallSettings_) [InstanceServiceClient.GetInstanceAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceClient#Google_Cloud_Chronicle_V1_InstanceServiceClient_GetInstanceAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [InstanceServiceClient.GetInstanceAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceClient#Google_Cloud_Chronicle_V1_InstanceServiceClient_GetInstanceAsync_System_String_System_Threading_CancellationToken_) [InstanceServiceClient.GetInstance(InstanceName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceClient#Google_Cloud_Chronicle_V1_InstanceServiceClient_GetInstance_Google_Cloud_Chronicle_V1_InstanceName_Google_Api_Gax_Grpc_CallSettings_) [InstanceServiceClient.GetInstanceAsync(InstanceName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceClient#Google_Cloud_Chronicle_V1_InstanceServiceClient_GetInstanceAsync_Google_Cloud_Chronicle_V1_InstanceName_Google_Api_Gax_Grpc_CallSettings_) [InstanceServiceClient.GetInstanceAsync(InstanceName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceClient#Google_Cloud_Chronicle_V1_InstanceServiceClient_GetInstanceAsync_Google_Cloud_Chronicle_V1_InstanceName_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.Chronicle.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1)

## Assembly

Google.Cloud.Chronicle.V1.dll

## Remarks

InstanceService provides the entry interface for the Chronicle API.

## Constructors

### InstanceServiceClientImpl(InstanceServiceClient, InstanceServiceSettings, ILogger)

    public InstanceServiceClientImpl(InstanceService.InstanceServiceClient grpcClient, InstanceServiceSettings settings, ILogger logger)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceService.InstanceServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceSettings` The base [InstanceServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceSettings) 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 InstanceService.InstanceServiceClient GrpcClient { get; }

The underlying gRPC InstanceService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceService.InstanceServiceClient` |   |

**Overrides** [InstanceServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceClient#Google_Cloud_Chronicle_V1_InstanceServiceClient_GrpcClient)

## Methods

### GetInstance(GetInstanceRequest, CallSettings)

    public override Instance GetInstance(GetInstanceRequest request, CallSettings callSettings = null)

Gets a Instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.GetInstanceRequest` 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.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.Instance` | The RPC response. |

**Overrides** [InstanceServiceClient.GetInstance(GetInstanceRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceClient#Google_Cloud_Chronicle_V1_InstanceServiceClient_GetInstance_Google_Cloud_Chronicle_V1_GetInstanceRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetInstanceAsync(GetInstanceRequest, CallSettings)

    public override Task<Instance> GetInstanceAsync(GetInstanceRequest request, CallSettings callSettings = null)

Gets a Instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.GetInstanceRequest` 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.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.Instance` | A Task containing the RPC response. |

**Overrides** [InstanceServiceClient.GetInstanceAsync(GetInstanceRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.InstanceServiceClient#Google_Cloud_Chronicle_V1_InstanceServiceClient_GetInstanceAsync_Google_Cloud_Chronicle_V1_GetInstanceRequest_Google_Api_Gax_Grpc_CallSettings_)