# Google Cloud for Games v1beta API - Class GameServerDeploymentRolloutName (2.0.0-beta03)

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

- [2.0.0-beta03 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName)
- [2.0.0-beta02](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/2.0.0-beta02/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName)
- [1.0.0-beta09](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/1.0.0-beta09/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName)

    public sealed class GameServerDeploymentRolloutName : IResourceName, IEquatable<GameServerDeploymentRolloutName>

Reference documentation and code samples for the Google Cloud for Games v1beta API class GameServerDeploymentRolloutName.

Resource name for the `GameServerDeploymentRollout` resource.

## Inheritance

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

## Implements

[IResourceName](https://github.com/googleapis/gax-dotnet/blob/6f2d3e64dd92f0f7a4f02a7db56cf6ed409615f2/Google.Api.Gax/IResourceName.cs), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GameServerDeploymentRolloutName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName)

## Inherited Members

[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype)

## Namespace

[Google.Cloud.Gaming.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta)

## Assembly

Google.Cloud.Gaming.V1Beta.dll

## Constructors

### GameServerDeploymentRolloutName(string, string, string)

    public GameServerDeploymentRolloutName(string projectId, string locationId, string deploymentId)

Constructs a new instance of a [GameServerDeploymentRolloutName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName) class from the component parts
of pattern `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` The `Project` ID. Must not be `null` or empty. |
| `locationId` | `https://learn.microsoft.com/dotnet/api/system.string` The `Location` ID. Must not be `null` or empty. |
| `deploymentId` | `https://learn.microsoft.com/dotnet/api/system.string` The `Deployment` ID. Must not be `null` or empty. |

## Properties

### DeploymentId

    public string DeploymentId { get; }

The `Deployment` ID. Will not be `null`, unless this instance contains an unparsed resource name.

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

### IsKnownPattern

    public bool IsKnownPattern { get; }

Whether this instance contains a resource name with a known pattern.

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

### LocationId

    public string LocationId { get; }

The `Location` ID. Will not be `null`, unless this instance contains an unparsed resource name.

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

### ProjectId

    public string ProjectId { get; }

The `Project` ID. Will not be `null`, unless this instance contains an unparsed resource name.

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

### Type

    public GameServerDeploymentRolloutName.ResourceNameType Type { get; }

The [GameServerDeploymentRolloutName.ResourceNameType](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName.ResourceNameType) of the contained resource name.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutNamehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName.ResourceNameType` |   |

### UnparsedResource

    public UnparsedResourceName UnparsedResource { get; }

The contained [UnparsedResourceName](https://github.com/googleapis/gax-dotnet/blob/6f2d3e64dd92f0f7a4f02a7db56cf6ed409615f2/Google.Api.Gax/UnparsedResourceName.cs). Only non-`null` if this instance contains an
unparsed resource name.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://github.com/googleapis/gax-dotnet/blob/6f2d3e64dd92f0f7a4f02a7db56cf6ed409615f2/Google.Api.Gax/UnparsedResourceName.cs` |   |

## Methods

### Format(string, string, string)

    public static string Format(string projectId, string locationId, string deploymentId)

Formats the IDs into the string representation of this [GameServerDeploymentRolloutName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName) with
pattern `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` The `Project` ID. Must not be `null` or empty. |
| `locationId` | `https://learn.microsoft.com/dotnet/api/system.string` The `Location` ID. Must not be `null` or empty. |
| `deploymentId` | `https://learn.microsoft.com/dotnet/api/system.string` The `Deployment` ID. Must not be `null` or empty. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` | The string representation of this [GameServerDeploymentRolloutName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName) with pattern `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`. |

### FormatProjectLocationDeployment(string, string, string)

    public static string FormatProjectLocationDeployment(string projectId, string locationId, string deploymentId)

Formats the IDs into the string representation of this [GameServerDeploymentRolloutName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName) with
pattern `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` The `Project` ID. Must not be `null` or empty. |
| `locationId` | `https://learn.microsoft.com/dotnet/api/system.string` The `Location` ID. Must not be `null` or empty. |
| `deploymentId` | `https://learn.microsoft.com/dotnet/api/system.string` The `Deployment` ID. Must not be `null` or empty. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` | The string representation of this [GameServerDeploymentRolloutName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName) with pattern `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`. |

### FromProjectLocationDeployment(string, string, string)

    public static GameServerDeploymentRolloutName FromProjectLocationDeployment(string projectId, string locationId, string deploymentId)

Creates a [GameServerDeploymentRolloutName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName) with the pattern
`projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` The `Project` ID. Must not be `null` or empty. |
| `locationId` | `https://learn.microsoft.com/dotnet/api/system.string` The `Location` ID. Must not be `null` or empty. |
| `deploymentId` | `https://learn.microsoft.com/dotnet/api/system.string` The `Deployment` ID. Must not be `null` or empty. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName` | A new instance of [GameServerDeploymentRolloutName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName) constructed from the provided ids. |

### FromUnparsed(UnparsedResourceName)

    public static GameServerDeploymentRolloutName FromUnparsed(UnparsedResourceName unparsedResourceName)

Creates a [GameServerDeploymentRolloutName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName) containing an unparsed resource name.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `unparsedResourceName` | `https://github.com/googleapis/gax-dotnet/blob/6f2d3e64dd92f0f7a4f02a7db56cf6ed409615f2/Google.Api.Gax/UnparsedResourceName.cs` The unparsed resource name. Must not be `null`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName` | A new instance of [GameServerDeploymentRolloutName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName) containing the provided `unparsedResourceName`. |

### GetHashCode()

    public override int GetHashCode()

Returns a hash code for this resource name.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

**Overrides** [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)

### Parse(string)

    public static GameServerDeploymentRolloutName Parse(string gameServerDeploymentRolloutName)

Parses the given resource name string into a new [GameServerDeploymentRolloutName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName) instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `gameServerDeploymentRolloutName` | `https://learn.microsoft.com/dotnet/api/system.string` The resource name in string form. Must not be `null`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName` | The parsed [GameServerDeploymentRolloutName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName) if successful. |

**Remarks** To parse successfully, the resource name must be formatted as one of the following:

- `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`

<br />

### Parse(string, bool)

    public static GameServerDeploymentRolloutName Parse(string gameServerDeploymentRolloutName, bool allowUnparsed)

Parses the given resource name string into a new [GameServerDeploymentRolloutName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName) instance;
optionally allowing an unparseable resource name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `gameServerDeploymentRolloutName` | `https://learn.microsoft.com/dotnet/api/system.string` The resource name in string form. Must not be `null`. |
| `allowUnparsed` | `https://learn.microsoft.com/dotnet/api/system.boolean` If `true` will successfully store an unparseable resource name into the [UnparsedResource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName#Google_Cloud_Gaming_V1Beta_GameServerDeploymentRolloutName_UnparsedResource) property; otherwise will throw an [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) if an unparseable resource name is specified. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName` | The parsed [GameServerDeploymentRolloutName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName) if successful. |

**Remarks** To parse successfully, the resource name must be formatted as one of the following:

- `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`

Or may be in any format if `allowUnparsed` is `true`.

<br />

### ToString()

    public override string ToString()

The string representation of the resource name.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` | The string representation of the resource name. |

**Overrides** [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

### TryParse(string, out GameServerDeploymentRolloutName)

    public static bool TryParse(string gameServerDeploymentRolloutName, out GameServerDeploymentRolloutName result)

Tries to parse the given resource name string into a new [GameServerDeploymentRolloutName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName)
instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `gameServerDeploymentRolloutName` | `https://learn.microsoft.com/dotnet/api/system.string` The resource name in string form. Must not be `null`. |
| `result` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName` When this method returns, the parsed [GameServerDeploymentRolloutName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName), or `null` if parsing failed. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` | `true` if the name was parsed successfully; `false` otherwise. |

**Remarks** To parse successfully, the resource name must be formatted as one of the following:

- `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`

<br />

### TryParse(string, bool, out GameServerDeploymentRolloutName)

    public static bool TryParse(string gameServerDeploymentRolloutName, bool allowUnparsed, out GameServerDeploymentRolloutName result)

Tries to parse the given resource name string into a new [GameServerDeploymentRolloutName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName)
instance; optionally allowing an unparseable resource name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `gameServerDeploymentRolloutName` | `https://learn.microsoft.com/dotnet/api/system.string` The resource name in string form. Must not be `null`. |
| `allowUnparsed` | `https://learn.microsoft.com/dotnet/api/system.boolean` If `true` will successfully store an unparseable resource name into the [UnparsedResource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName#Google_Cloud_Gaming_V1Beta_GameServerDeploymentRolloutName_UnparsedResource) property; otherwise will throw an [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) if an unparseable resource name is specified. |
| `result` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName` When this method returns, the parsed [GameServerDeploymentRolloutName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName), or `null` if parsing failed. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` | `true` if the name was parsed successfully; `false` otherwise. |

**Remarks** To parse successfully, the resource name must be formatted as one of the following:

- `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`

Or may be in any format if `allowUnparsed` is `true`.

<br />

## Operators

### operator ==(GameServerDeploymentRolloutName, GameServerDeploymentRolloutName)

    public static bool operator ==(GameServerDeploymentRolloutName a, GameServerDeploymentRolloutName b)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `a` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName` |
| `b` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### operator !=(GameServerDeploymentRolloutName, GameServerDeploymentRolloutName)

    public static bool operator !=(GameServerDeploymentRolloutName a, GameServerDeploymentRolloutName b)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `a` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName` |
| `b` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Gaming.V1Beta/latest/Google.Cloud.Gaming.V1Beta.GameServerDeploymentRolloutName` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |