# BigQuery Reservation v1 API - Class GetCapacityCommitmentRequest (2.12.0)

2.12.0 (latest) 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0

    public sealed class GetCapacityCommitmentRequest : IMessage<GetCapacityCommitmentRequest>, IEquatable<GetCapacityCommitmentRequest>, IDeepCloneable<GetCapacityCommitmentRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the BigQuery Reservation v1 API class GetCapacityCommitmentRequest.

The request for
\[ReservationService.GetCapacityCommitment\]\[google.cloud.bigquery.reservation.v1.ReservationService.GetCapacityCommitment\].

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> GetCapacityCommitmentRequest

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GetCapacityCommitmentRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Reservation.V1/latest/Google.Cloud.BigQuery.Reservation.V1.GetCapacityCommitmentRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetCapacityCommitmentRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Reservation.V1/latest/Google.Cloud.BigQuery.Reservation.V1.GetCapacityCommitmentRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetCapacityCommitmentRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Reservation.V1/latest/Google.Cloud.BigQuery.Reservation.V1.GetCapacityCommitmentRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[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.BigQuery.Reservation.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Reservation.V1/latest/Google.Cloud.BigQuery.Reservation.V1)

## Assembly

Google.Cloud.BigQuery.Reservation.V1.dll

## Constructors

### GetCapacityCommitmentRequest()

    public GetCapacityCommitmentRequest()

### GetCapacityCommitmentRequest(GetCapacityCommitmentRequest)

    public GetCapacityCommitmentRequest(GetCapacityCommitmentRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Reservation.V1/latest/Google.Cloud.BigQuery.Reservation.V1.GetCapacityCommitmentRequest` |

## Properties

### CapacityCommitmentName

    public CapacityCommitmentName CapacityCommitmentName { get; set; }

[CapacityCommitmentName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Reservation.V1/latest/Google.Cloud.BigQuery.Reservation.V1.CapacityCommitmentName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Reservation.V1/latest/Google.Cloud.BigQuery.Reservation.V1.GetCapacityCommitmentRequest#Google_Cloud_BigQuery_Reservation_V1_GetCapacityCommitmentRequest_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Reservation.V1/latest/Google.Cloud.BigQuery.Reservation.V1.CapacityCommitmentName` |   |

### Name

    public string Name { get; set; }

Required. Resource name of the capacity commitment to retrieve. E.g.,
`projects/myproject/locations/US/capacityCommitments/123`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |