# Dataproc Metastore v1beta API - Class AlterMetadataResourceLocationRequest (2.0.0-beta12)

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

- [2.0.0-beta12 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/latest/Google.Cloud.Metastore.V1Beta.AlterMetadataResourceLocationRequest)
- [2.0.0-beta11](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/2.0.0-beta11/Google.Cloud.Metastore.V1Beta.AlterMetadataResourceLocationRequest)
- [1.0.0-beta02](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/1.0.0-beta02/Google.Cloud.Metastore.V1Beta.AlterMetadataResourceLocationRequest)

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

Reference documentation and code samples for the Dataproc Metastore v1beta API class AlterMetadataResourceLocationRequest.

Request message for
\[DataprocMetastore.AlterMetadataResourceLocation\]\[google.cloud.metastore.v1beta.DataprocMetastore.AlterMetadataResourceLocation\].

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.Metastore.V1Beta.dll

## Constructors

### AlterMetadataResourceLocationRequest()

    public AlterMetadataResourceLocationRequest()

### AlterMetadataResourceLocationRequest(AlterMetadataResourceLocationRequest)

    public AlterMetadataResourceLocationRequest(AlterMetadataResourceLocationRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/latest/Google.Cloud.Metastore.V1Beta.AlterMetadataResourceLocationRequest` |

## Properties

### LocationUri

    public string LocationUri { get; set; }

Required. The new location URI for the metadata resource.

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

### ResourceName

    public string ResourceName { get; set; }

Required. The relative metadata resource name in the following format.

`databases/{database_id}`
or
`databases/{database_id}/tables/{table_id}`
or
`databases/{database_id}/tables/{table_id}/partitions/{partition_id}`

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

### Service

    public string Service { get; set; }

Required. The relative resource name of the metastore service to mutate
metadata, in the following format:

`projects/{project_id}/locations/{location_id}/services/{service_id}`.

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

### ServiceAsServiceName

    public ServiceName ServiceAsServiceName { get; set; }

[ServiceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/latest/Google.Cloud.Metastore.V1Beta.ServiceName)-typed view over the [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/latest/Google.Cloud.Metastore.V1Beta.AlterMetadataResourceLocationRequest#Google_Cloud_Metastore_V1Beta_AlterMetadataResourceLocationRequest_Service) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/latest/Google.Cloud.Metastore.V1Beta.ServiceName` |   |