public Builder addSecondaryInstances(
          int index,
          com.google.cloud.memorystore.v1.CrossInstanceReplicationConfig.RemoteInstance.Builder
              builderForValue) {
        if (secondaryInstancesBuilder_ == null) {
          ensureSecondaryInstancesIsMutable();
          secondaryInstances_.add(index, builderForValue.build());
          onChanged();
        } else {
          secondaryInstancesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
<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