# Service Usage v1 API - Class GetServiceRequest (2.6.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.GetServiceRequest)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.5.0/Google.Cloud.ServiceUsage.V1.GetServiceRequest)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.4.0/Google.Cloud.ServiceUsage.V1.GetServiceRequest)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.3.0/Google.Cloud.ServiceUsage.V1.GetServiceRequest)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.2.0/Google.Cloud.ServiceUsage.V1.GetServiceRequest)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.1.0/Google.Cloud.ServiceUsage.V1.GetServiceRequest)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.0.0/Google.Cloud.ServiceUsage.V1.GetServiceRequest)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.2.0/Google.Cloud.ServiceUsage.V1.GetServiceRequest)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.1.0/Google.Cloud.ServiceUsage.V1.GetServiceRequest)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.0.0/Google.Cloud.ServiceUsage.V1.GetServiceRequest)

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

Reference documentation and code samples for the Service Usage v1 API class GetServiceRequest.

Request message for the `GetService` method.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GetServiceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.GetServiceRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetServiceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.GetServiceRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetServiceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.GetServiceRequest), [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.ServiceUsage.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1)

## Assembly

Google.Cloud.ServiceUsage.V1.dll

## Constructors

### GetServiceRequest()

    public GetServiceRequest()

### GetServiceRequest(GetServiceRequest)

    public GetServiceRequest(GetServiceRequest other)

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

## Properties

### Name

    public string Name { get; set; }

Name of the consumer and service to get the `ConsumerState` for.

An example name would be:
`projects/123/services/serviceusage.googleapis.com` where `123` is the
project number.

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