1.1.0 (latest) 1.0.0

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

Reference documentation and code samples for the Memorystore v1 API class CrossInstanceReplicationConfig.

Cross instance replication config.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.Memorystore.V1.dll

## Constructors

### CrossInstanceReplicationConfig()

    public CrossInstanceReplicationConfig()

### CrossInstanceReplicationConfig(CrossInstanceReplicationConfig)

    public CrossInstanceReplicationConfig(CrossInstanceReplicationConfig other)

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

## Properties

### InstanceRole

    public CrossInstanceReplicationConfig.Types.InstanceRole InstanceRole { get; set; }

Required. The role of the instance in cross instance replication.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.CrossInstanceReplicationConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.CrossInstanceReplicationConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.CrossInstanceReplicationConfig.Types.InstanceRole` |   |

### Membership

    public CrossInstanceReplicationConfig.Types.Membership Membership { get; set; }

Output only. An output only view of all the member instances participating
in the cross instance replication. This view will be provided by every
member instance irrespective of its instance role(primary or secondary).

A primary instance can provide information about all the secondary
instances replicating from it. However, a secondary instance only knows
about the primary instance from which it is replicating. However, for
scenarios, where the primary instance is unavailable(e.g. regional outage),
a Getinstance request can be sent to any other member instance and this
field will list all the member instances participating in cross instance
replication.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.CrossInstanceReplicationConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.CrossInstanceReplicationConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.CrossInstanceReplicationConfig.Types.Membership` |   |

### PrimaryInstance

    public CrossInstanceReplicationConfig.Types.RemoteInstance PrimaryInstance { get; set; }

Optional. Details of the primary instance that is used as the replication
source for this secondary instance.

This field is only set for a secondary instance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.CrossInstanceReplicationConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.CrossInstanceReplicationConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.CrossInstanceReplicationConfig.Types.RemoteInstance` |   |

### SecondaryInstances

    public RepeatedField<CrossInstanceReplicationConfig.Types.RemoteInstance> SecondaryInstances { get; }

Optional. List of secondary instances that are replicating from this
primary instance.

This field is only set for a primary 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.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.CrossInstanceReplicationConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.CrossInstanceReplicationConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.CrossInstanceReplicationConfig.Types.RemoteInstance` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The last time cross instance replication config was updated.

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