public Builder mergeFrom(com.google.cloud.memorystore.v1.CrossInstanceReplicationConfig other) {
      if (other
          == com.google.cloud.memorystore.v1.CrossInstanceReplicationConfig.getDefaultInstance())
        return this;
      if (other.instanceRole_ != 0) {
        setInstanceRoleValue(other.getInstanceRoleValue());
      }
      if (other.hasPrimaryInstance()) {
        mergePrimaryInstance(other.getPrimaryInstance());
      }
      if (secondaryInstancesBuilder_ == null) {
        if (!other.secondaryInstances_.isEmpty()) {
          if (secondaryInstances_.isEmpty()) {
            secondaryInstances_ = other.secondaryInstances_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureSecondaryInstancesIsMutable();
            secondaryInstances_.addAll(other.secondaryInstances_);
          }
          onChanged();
        }
      } else {
        if (!other.secondaryInstances_.isEmpty()) {
          if (secondaryInstancesBuilder_.isEmpty()) {
            secondaryInstancesBuilder_.dispose();
            secondaryInstancesBuilder_ = null;
            secondaryInstances_ = other.secondaryInstances_;
            bitField0_ = (bitField0_ & ~0x00000004);
            secondaryInstancesBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getSecondaryInstancesFieldBuilder()
                    : null;
          } else {
            secondaryInstancesBuilder_.addAllMessages(other.secondaryInstances_);
          }
        }
      }
      if (other.hasUpdateTime()) {
        mergeUpdateTime(other.getUpdateTime());
      }
      if (other.hasMembership()) {
        mergeMembership(other.getMembership());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }
<pre>
Cross instance replication config.
</pre>

Protobuf type {@code google.cloud.memorystore.v1.CrossInstanceReplicationConfig}
java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/CrossInstanceReplicationConfig.java