# Network Connectivity v1alpha1 API - Class GetHubRequest (2.0.0-alpha05)

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

- [2.0.0-alpha05 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1Alpha1/latest/Google.Cloud.NetworkConnectivity.V1Alpha1.GetHubRequest)
- [2.0.0-alpha04](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1Alpha1/2.0.0-alpha04/Google.Cloud.NetworkConnectivity.V1Alpha1.GetHubRequest)
- [1.0.0-alpha03](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1Alpha1/1.0.0-alpha03/Google.Cloud.NetworkConnectivity.V1Alpha1.GetHubRequest)

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

Reference documentation and code samples for the Network Connectivity v1alpha1 API class GetHubRequest.

Request for \[HubService.GetHub\]\[google.cloud.networkconnectivity.v1alpha1.HubService.GetHub\] method.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.NetworkConnectivity.V1Alpha1.dll

## Constructors

### GetHubRequest()

    public GetHubRequest()

### GetHubRequest(GetHubRequest)

    public GetHubRequest(GetHubRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1Alpha1/latest/Google.Cloud.NetworkConnectivity.V1Alpha1.GetHubRequest` |

## Properties

### HubName

    public HubName HubName { get; set; }

[HubName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1Alpha1/latest/Google.Cloud.NetworkConnectivity.V1Alpha1.HubName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1Alpha1/latest/Google.Cloud.NetworkConnectivity.V1Alpha1.GetHubRequest#Google_Cloud_NetworkConnectivity_V1Alpha1_GetHubRequest_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1Alpha1/latest/Google.Cloud.NetworkConnectivity.V1Alpha1.HubName` |   |

### Name

    public string Name { get; set; }

Required. Name of the Hub resource to get.

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