@java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj
          instanceof com.google.cloud.memorystore.v1.CrossInstanceReplicationConfig.Membership)) {
        return super.equals(obj);
      }
      com.google.cloud.memorystore.v1.CrossInstanceReplicationConfig.Membership other =
          (com.google.cloud.memorystore.v1.CrossInstanceReplicationConfig.Membership) obj;

      if (hasPrimaryInstance() != other.hasPrimaryInstance()) return false;
      if (hasPrimaryInstance()) {
        if (!getPrimaryInstance().equals(other.getPrimaryInstance())) return false;
      }
      if (!getSecondaryInstancesList().equals(other.getSecondaryInstancesList())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }
<pre>
Output only. The list of secondary instances replicating from the primary
instance.
</pre>

<code>
repeated .google.cloud.memorystore.v1.CrossInstanceReplicationConfig.RemoteInstance secondary_instances = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
</code>
java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/CrossInstanceReplicationConfig.java