public com.google.cloud.memorystore.v1.CrossInstanceReplicationConfig.RemoteInstanceOrBuilder
        getSecondaryInstancesOrBuilder(int index) {
      if (secondaryInstancesBuilder_ == null) {
        return secondaryInstances_.get(index);
      } else {
        return secondaryInstancesBuilder_.getMessageOrBuilder(index);
      }
    }
<pre>
Optional. List of secondary instances that are replicating from this
primary instance.

This field is only set for a primary instance.
</pre>

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