# Cloud Memorystore for Memcached v1 API - Class Instance (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.Memcache.V1/latest/Google.Cloud.Memcache.V1.Instance)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/2.5.0/Google.Cloud.Memcache.V1.Instance)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/2.4.0/Google.Cloud.Memcache.V1.Instance)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/2.3.0/Google.Cloud.Memcache.V1.Instance)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/2.2.0/Google.Cloud.Memcache.V1.Instance)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/2.1.0/Google.Cloud.Memcache.V1.Instance)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/2.0.0/Google.Cloud.Memcache.V1.Instance)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/1.2.0/Google.Cloud.Memcache.V1.Instance)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/1.1.0/Google.Cloud.Memcache.V1.Instance)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/1.0.0/Google.Cloud.Memcache.V1.Instance)

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

Reference documentation and code samples for the Cloud Memorystore for Memcached v1 API class Instance.

A Memorystore for Memcached instance

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.Memcache.V1.dll

## Constructors

### Instance()

    public Instance()

### Instance(Instance)

    public Instance(Instance other)

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

## Properties

### AuthorizedNetwork

    public string AuthorizedNetwork { get; set; }

The full name of the Google Compute Engine
[network](https://docs.cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the
instance is connected. If left unspecified, the `default` network
will be used.

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

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The time the instance was created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### DiscoveryEndpoint

    public string DiscoveryEndpoint { get; set; }

Output only. Endpoint for the Discovery API.

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

### DisplayName

    public string DisplayName { get; set; }

User provided name for the instance, which is only used for display
purposes. Cannot be more than 80 characters.

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

### InstanceMessages

    public RepeatedField<Instance.Types.InstanceMessage> InstanceMessages { get; }

List of messages that describe the current state of the Memcached instance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1.Instancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1.Instance.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1.Instance.Types.InstanceMessage` |   |

### InstanceName

    public InstanceName InstanceName { get; set; }

[InstanceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1.InstanceName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1.Instance#Google_Cloud_Memcache_V1_Instance_Name) resource name property.

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

### Labels

    public MapField<string, string> Labels { get; }

Resource labels to represent user-provided metadata.
Refer to cloud documentation on labels for more details.
<https://cloud.google.com/compute/docs/labeling-resources>

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### MaintenancePolicy

    public MaintenancePolicy MaintenancePolicy { get; set; }

The maintenance policy for the instance. If not provided,
the maintenance event will be performed based on Memorystore
internal rollout schedule.

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

### MaintenanceSchedule

    public MaintenanceSchedule MaintenanceSchedule { get; set; }

Output only. Published maintenance schedule.

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

### MemcacheFullVersion

    public string MemcacheFullVersion { get; set; }

Output only. The full version of memcached server running on this instance.
System automatically determines the full memcached version for an instance
based on the input MemcacheVersion.
The full version format will be "memcached-1.5.16".

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

### MemcacheNodes

    public RepeatedField<Instance.Types.Node> MemcacheNodes { get; }

Output only. List of Memcached nodes.
Refer to \[Node\]\[google.cloud.memcache.v1.Instance.Node\] message for more details.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1.Instancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1.Instance.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1.Instance.Types.Node` |   |

### MemcacheVersion

    public MemcacheVersion MemcacheVersion { get; set; }

The major version of Memcached software.
If not provided, latest supported version will be used. Currently the
latest supported major version is `MEMCACHE_1_5`.
The minor version will be automatically determined by our system based on
the latest supported minor version.

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

### Name

    public string Name { get; set; }

Required. Unique name of the resource in this scope including project and
location using the form:
`projects/{project_id}/locations/{location_id}/instances/{instance_id}`

Note: Memcached instances are managed and addressed at the regional level
so `location_id` here refers to a Google Cloud region; however, users may
choose which zones Memcached nodes should be provisioned in within an
instance. Refer to \[zones\]\[google.cloud.memcache.v1.Instance.zones\] field for more details.

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

### NodeConfig

    public Instance.Types.NodeConfig NodeConfig { get; set; }

Required. Configuration for Memcached nodes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1.Instancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1.Instance.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1.Instance.Types.NodeConfig` |   |

### NodeCount

    public int NodeCount { get; set; }

Required. Number of nodes in the Memcached instance.

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

### Parameters

    public MemcacheParameters Parameters { get; set; }

User defined parameters to apply to the memcached process
on each node.

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

### State

    public Instance.Types.State State { get; set; }

Output only. The state of this Memcached instance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1.Instancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1.Instance.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1.Instance.Types.State` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The time the instance was updated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Zones

    public RepeatedField<string> Zones { get; }

Zones in which Memcached nodes should be provisioned.
Memcached nodes will be equally distributed across these zones. If not
provided, the service will by default create nodes in all zones in the
region for the instance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |