1.2.0 (latest) 1.1.0 1.0.0

    public class RuntimeProjectAttachmentService.RuntimeProjectAttachmentServiceClient : ClientBase<RuntimeProjectAttachmentService.RuntimeProjectAttachmentServiceClient>

Reference documentation and code samples for the API hub v1 API class RuntimeProjectAttachmentService.RuntimeProjectAttachmentServiceClient.

Client for RuntimeProjectAttachmentService

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt)[RuntimeProjectAttachmentService](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.RuntimeProjectAttachmentService.md.txt)[RuntimeProjectAttachmentServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.RuntimeProjectAttachmentService.RuntimeProjectAttachmentServiceClient.md.txt) \> RuntimeProjectAttachmentService.RuntimeProjectAttachmentServiceClient

## Inherited Members

[ClientBase\<RuntimeProjectAttachmentService.RuntimeProjectAttachmentServiceClient\>.WithHost(string)](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt#Grpc_Core_ClientBase_1_WithHost_System_String_) [ClientBase.CallInvoker](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt#Grpc_Core_ClientBase_CallInvoker) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.ApiHub.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.md.txt)

## Assembly

Google.Cloud.ApiHub.V1.dll

## Constructors

### RuntimeProjectAttachmentServiceClient()

    protected RuntimeProjectAttachmentServiceClient()

Protected parameterless constructor to allow creation of test doubles.

### RuntimeProjectAttachmentServiceClient(CallInvoker)

    public RuntimeProjectAttachmentServiceClient(CallInvoker callInvoker)

Creates a new client for RuntimeProjectAttachmentService that uses a custom `CallInvoker`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `callInvoker` | `CallInvoker` The callInvoker to use to make remote calls. |

### RuntimeProjectAttachmentServiceClient(ChannelBase)

    public RuntimeProjectAttachmentServiceClient(ChannelBase channel)

Creates a new client for RuntimeProjectAttachmentService

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `ChannelBase` The channel to use to make remote calls. |

### RuntimeProjectAttachmentServiceClient(ClientBaseConfiguration)

    protected RuntimeProjectAttachmentServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` The client configuration. |

## Methods

### CreateLocationsClient()

    public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.md.txt) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `LocationsLocationsClient` | A new [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.md.txt) for the same target as this client. |

### CreateRuntimeProjectAttachment(CreateRuntimeProjectAttachmentRequest, CallOptions)

    public virtual RuntimeProjectAttachment CreateRuntimeProjectAttachment(CreateRuntimeProjectAttachmentRequest request, CallOptions options)

Attaches a runtime project to the host project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateRuntimeProjectAttachmentRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `RuntimeProjectAttachment` | The response received from the server. |

### CreateRuntimeProjectAttachment(CreateRuntimeProjectAttachmentRequest, Metadata, DateTime?, CancellationToken)

    public virtual RuntimeProjectAttachment CreateRuntimeProjectAttachment(CreateRuntimeProjectAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Attaches a runtime project to the host project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateRuntimeProjectAttachmentRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `RuntimeProjectAttachment` | The response received from the server. |

### CreateRuntimeProjectAttachmentAsync(CreateRuntimeProjectAttachmentRequest, CallOptions)

    public virtual AsyncUnaryCall<RuntimeProjectAttachment> CreateRuntimeProjectAttachmentAsync(CreateRuntimeProjectAttachmentRequest request, CallOptions options)

Attaches a runtime project to the host project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateRuntimeProjectAttachmentRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallRuntimeProjectAttachment` | The call object. |

### CreateRuntimeProjectAttachmentAsync(CreateRuntimeProjectAttachmentRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<RuntimeProjectAttachment> CreateRuntimeProjectAttachmentAsync(CreateRuntimeProjectAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Attaches a runtime project to the host project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateRuntimeProjectAttachmentRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallRuntimeProjectAttachment` | The call object. |

### DeleteRuntimeProjectAttachment(DeleteRuntimeProjectAttachmentRequest, CallOptions)

    public virtual Empty DeleteRuntimeProjectAttachment(DeleteRuntimeProjectAttachmentRequest request, CallOptions options)

Delete a runtime project attachment in the API Hub. This call will detach
the runtime project from the host project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteRuntimeProjectAttachmentRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Empty` | The response received from the server. |

### DeleteRuntimeProjectAttachment(DeleteRuntimeProjectAttachmentRequest, Metadata, DateTime?, CancellationToken)

    public virtual Empty DeleteRuntimeProjectAttachment(DeleteRuntimeProjectAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Delete a runtime project attachment in the API Hub. This call will detach
the runtime project from the host project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteRuntimeProjectAttachmentRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Empty` | The response received from the server. |

### DeleteRuntimeProjectAttachmentAsync(DeleteRuntimeProjectAttachmentRequest, CallOptions)

    public virtual AsyncUnaryCall<Empty> DeleteRuntimeProjectAttachmentAsync(DeleteRuntimeProjectAttachmentRequest request, CallOptions options)

Delete a runtime project attachment in the API Hub. This call will detach
the runtime project from the host project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteRuntimeProjectAttachmentRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallEmpty` | The call object. |

### DeleteRuntimeProjectAttachmentAsync(DeleteRuntimeProjectAttachmentRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Empty> DeleteRuntimeProjectAttachmentAsync(DeleteRuntimeProjectAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Delete a runtime project attachment in the API Hub. This call will detach
the runtime project from the host project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteRuntimeProjectAttachmentRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallEmpty` | The call object. |

### GetRuntimeProjectAttachment(GetRuntimeProjectAttachmentRequest, CallOptions)

    public virtual RuntimeProjectAttachment GetRuntimeProjectAttachment(GetRuntimeProjectAttachmentRequest request, CallOptions options)

Gets a runtime project attachment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetRuntimeProjectAttachmentRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `RuntimeProjectAttachment` | The response received from the server. |

### GetRuntimeProjectAttachment(GetRuntimeProjectAttachmentRequest, Metadata, DateTime?, CancellationToken)

    public virtual RuntimeProjectAttachment GetRuntimeProjectAttachment(GetRuntimeProjectAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a runtime project attachment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetRuntimeProjectAttachmentRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `RuntimeProjectAttachment` | The response received from the server. |

### GetRuntimeProjectAttachmentAsync(GetRuntimeProjectAttachmentRequest, CallOptions)

    public virtual AsyncUnaryCall<RuntimeProjectAttachment> GetRuntimeProjectAttachmentAsync(GetRuntimeProjectAttachmentRequest request, CallOptions options)

Gets a runtime project attachment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetRuntimeProjectAttachmentRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallRuntimeProjectAttachment` | The call object. |

### GetRuntimeProjectAttachmentAsync(GetRuntimeProjectAttachmentRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<RuntimeProjectAttachment> GetRuntimeProjectAttachmentAsync(GetRuntimeProjectAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a runtime project attachment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetRuntimeProjectAttachmentRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallRuntimeProjectAttachment` | The call object. |

### ListRuntimeProjectAttachments(ListRuntimeProjectAttachmentsRequest, CallOptions)

    public virtual ListRuntimeProjectAttachmentsResponse ListRuntimeProjectAttachments(ListRuntimeProjectAttachmentsRequest request, CallOptions options)

List runtime projects attached to the host project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListRuntimeProjectAttachmentsRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListRuntimeProjectAttachmentsResponse` | The response received from the server. |

### ListRuntimeProjectAttachments(ListRuntimeProjectAttachmentsRequest, Metadata, DateTime?, CancellationToken)

    public virtual ListRuntimeProjectAttachmentsResponse ListRuntimeProjectAttachments(ListRuntimeProjectAttachmentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List runtime projects attached to the host project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListRuntimeProjectAttachmentsRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListRuntimeProjectAttachmentsResponse` | The response received from the server. |

### ListRuntimeProjectAttachmentsAsync(ListRuntimeProjectAttachmentsRequest, CallOptions)

    public virtual AsyncUnaryCall<ListRuntimeProjectAttachmentsResponse> ListRuntimeProjectAttachmentsAsync(ListRuntimeProjectAttachmentsRequest request, CallOptions options)

List runtime projects attached to the host project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListRuntimeProjectAttachmentsRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallListRuntimeProjectAttachmentsResponse` | The call object. |

### ListRuntimeProjectAttachmentsAsync(ListRuntimeProjectAttachmentsRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<ListRuntimeProjectAttachmentsResponse> ListRuntimeProjectAttachmentsAsync(ListRuntimeProjectAttachmentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List runtime projects attached to the host project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListRuntimeProjectAttachmentsRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallListRuntimeProjectAttachmentsResponse` | The call object. |

### LookupRuntimeProjectAttachment(LookupRuntimeProjectAttachmentRequest, CallOptions)

    public virtual LookupRuntimeProjectAttachmentResponse LookupRuntimeProjectAttachment(LookupRuntimeProjectAttachmentRequest request, CallOptions options)

Look up a runtime project attachment. This API can be called in the context
of any project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `LookupRuntimeProjectAttachmentRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `LookupRuntimeProjectAttachmentResponse` | The response received from the server. |

### LookupRuntimeProjectAttachment(LookupRuntimeProjectAttachmentRequest, Metadata, DateTime?, CancellationToken)

    public virtual LookupRuntimeProjectAttachmentResponse LookupRuntimeProjectAttachment(LookupRuntimeProjectAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Look up a runtime project attachment. This API can be called in the context
of any project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `LookupRuntimeProjectAttachmentRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `LookupRuntimeProjectAttachmentResponse` | The response received from the server. |

### LookupRuntimeProjectAttachmentAsync(LookupRuntimeProjectAttachmentRequest, CallOptions)

    public virtual AsyncUnaryCall<LookupRuntimeProjectAttachmentResponse> LookupRuntimeProjectAttachmentAsync(LookupRuntimeProjectAttachmentRequest request, CallOptions options)

Look up a runtime project attachment. This API can be called in the context
of any project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `LookupRuntimeProjectAttachmentRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallLookupRuntimeProjectAttachmentResponse` | The call object. |

### LookupRuntimeProjectAttachmentAsync(LookupRuntimeProjectAttachmentRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<LookupRuntimeProjectAttachmentResponse> LookupRuntimeProjectAttachmentAsync(LookupRuntimeProjectAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Look up a runtime project attachment. This API can be called in the context
of any project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `LookupRuntimeProjectAttachmentRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallLookupRuntimeProjectAttachmentResponse` | The call object. |

### NewInstance(ClientBaseConfiguration)

    protected override RuntimeProjectAttachmentService.RuntimeProjectAttachmentServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given `ClientBaseConfiguration`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `RuntimeProjectAttachmentServiceRuntimeProjectAttachmentServiceClient` |   |

**Overrides** Grpc.Core.ClientBase\<Google.Cloud.ApiHub.V1.RuntimeProjectAttachmentService.RuntimeProjectAttachmentServiceClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)