1.0.0-beta05 (latest) 1.0.0-beta04

    public sealed class CaseAttachmentServiceClientImpl : CaseAttachmentServiceClient

Reference documentation and code samples for the Google Cloud Support v2beta API class CaseAttachmentServiceClientImpl.

CaseAttachmentService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [CaseAttachmentServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient) \> CaseAttachmentServiceClientImpl

## Inherited Members

[CaseAttachmentServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_DefaultEndpoint) [CaseAttachmentServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_DefaultScopes) [CaseAttachmentServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_ServiceMetadata) [CaseAttachmentServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_CreateAsync_System_Threading_CancellationToken_) [CaseAttachmentServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_Create) [CaseAttachmentServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_ShutdownDefaultChannelsAsync) [CaseAttachmentServiceClient.ListAttachments(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_ListAttachments_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CaseAttachmentServiceClient.ListAttachmentsAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_ListAttachmentsAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CaseAttachmentServiceClient.ListAttachments(CaseName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_ListAttachments_Google_Cloud_Support_V2Beta_CaseName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CaseAttachmentServiceClient.ListAttachmentsAsync(CaseName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_ListAttachmentsAsync_Google_Cloud_Support_V2Beta_CaseName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CaseAttachmentServiceClient.GetAttachmentAsync(GetAttachmentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_GetAttachmentAsync_Google_Cloud_Support_V2Beta_GetAttachmentRequest_System_Threading_CancellationToken_) [CaseAttachmentServiceClient.GetAttachment(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_GetAttachment_System_String_Google_Api_Gax_Grpc_CallSettings_) [CaseAttachmentServiceClient.GetAttachmentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_GetAttachmentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [CaseAttachmentServiceClient.GetAttachmentAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_GetAttachmentAsync_System_String_System_Threading_CancellationToken_) [CaseAttachmentServiceClient.GetAttachment(AttachmentName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_GetAttachment_Google_Cloud_Support_V2Beta_AttachmentName_Google_Api_Gax_Grpc_CallSettings_) [CaseAttachmentServiceClient.GetAttachmentAsync(AttachmentName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_GetAttachmentAsync_Google_Cloud_Support_V2Beta_AttachmentName_Google_Api_Gax_Grpc_CallSettings_) [CaseAttachmentServiceClient.GetAttachmentAsync(AttachmentName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_GetAttachmentAsync_Google_Cloud_Support_V2Beta_AttachmentName_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.Support.V2Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta)

## Assembly

Google.Cloud.Support.V2Beta.dll

## Remarks

A service to manage file attachments for Google Cloud support cases.

## Constructors

### CaseAttachmentServiceClientImpl(CaseAttachmentServiceClient, CaseAttachmentServiceSettings, ILogger)

    public CaseAttachmentServiceClientImpl(CaseAttachmentService.CaseAttachmentServiceClient grpcClient, CaseAttachmentServiceSettings settings, ILogger logger)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentService.CaseAttachmentServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceSettings` The base [CaseAttachmentServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceSettings) 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 CaseAttachmentService.CaseAttachmentServiceClient GrpcClient { get; }

The underlying gRPC CaseAttachmentService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentService.CaseAttachmentServiceClient` |   |

**Overrides** [CaseAttachmentServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_GrpcClient)

## Methods

### GetAttachment(GetAttachmentRequest, CallSettings)

    public override Attachment GetAttachment(GetAttachmentRequest request, CallSettings callSettings = null)

Retrieve an attachment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.GetAttachmentRequest` 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.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Attachment` | The RPC response. |

**Overrides** [CaseAttachmentServiceClient.GetAttachment(GetAttachmentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_GetAttachment_Google_Cloud_Support_V2Beta_GetAttachmentRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetAttachmentAsync(GetAttachmentRequest, CallSettings)

    public override Task<Attachment> GetAttachmentAsync(GetAttachmentRequest request, CallSettings callSettings = null)

Retrieve an attachment.

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

**Overrides** [CaseAttachmentServiceClient.GetAttachmentAsync(GetAttachmentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_GetAttachmentAsync_Google_Cloud_Support_V2Beta_GetAttachmentRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListAttachments(ListAttachmentsRequest, CallSettings)

    public override PagedEnumerable<ListAttachmentsResponse, Attachment> ListAttachments(ListAttachmentsRequest request, CallSettings callSettings = null)

List all the attachments associated with a support case.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.ListAttachmentsRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.ListAttachmentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Attachment` | A pageable sequence of [Attachment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Attachment) resources. |

**Overrides** [CaseAttachmentServiceClient.ListAttachments(ListAttachmentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_ListAttachments_Google_Cloud_Support_V2Beta_ListAttachmentsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListAttachmentsAsync(ListAttachmentsRequest, CallSettings)

    public override PagedAsyncEnumerable<ListAttachmentsResponse, Attachment> ListAttachmentsAsync(ListAttachmentsRequest request, CallSettings callSettings = null)

List all the attachments associated with a support case.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.ListAttachmentsRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.ListAttachmentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Attachment` | A pageable asynchronous sequence of [Attachment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Attachment) resources. |

**Overrides** [CaseAttachmentServiceClient.ListAttachmentsAsync(ListAttachmentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseAttachmentServiceClient#Google_Cloud_Support_V2Beta_CaseAttachmentServiceClient_ListAttachmentsAsync_Google_Cloud_Support_V2Beta_ListAttachmentsRequest_Google_Api_Gax_Grpc_CallSettings_)