public Builder mergeFrom(com.google.cloud.memorystore.v1beta.Instance other) {
      if (other == com.google.cloud.memorystore.v1beta.Instance.getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (other.hasCreateTime()) {
        mergeCreateTime(other.getCreateTime());
      }
      if (other.hasUpdateTime()) {
        mergeUpdateTime(other.getUpdateTime());
      }
      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
      bitField0_ |= 0x00000008;
      if (other.state_ != 0) {
        setStateValue(other.getStateValue());
      }
      if (other.hasStateInfo()) {
        mergeStateInfo(other.getStateInfo());
      }
      if (!other.getUid().isEmpty()) {
        uid_ = other.uid_;
        bitField0_ |= 0x00000040;
        onChanged();
      }
      if (other.hasReplicaCount()) {
        setReplicaCount(other.getReplicaCount());
      }
      if (other.authorizationMode_ != 0) {
        setAuthorizationModeValue(other.getAuthorizationModeValue());
      }
      if (other.transitEncryptionMode_ != 0) {
        setTransitEncryptionModeValue(other.getTransitEncryptionModeValue());
      }
      if (other.getShardCount() != 0) {
        setShardCount(other.getShardCount());
      }
      if (discoveryEndpointsBuilder_ == null) {
        if (!other.discoveryEndpoints_.isEmpty()) {
          if (discoveryEndpoints_.isEmpty()) {
            discoveryEndpoints_ = other.discoveryEndpoints_;
            bitField0_ = (bitField0_ & ~0x00000800);
          } else {
            ensureDiscoveryEndpointsIsMutable();
            discoveryEndpoints_.addAll(other.discoveryEndpoints_);
          }
          onChanged();
        }
      } else {
        if (!other.discoveryEndpoints_.isEmpty()) {
          if (discoveryEndpointsBuilder_.isEmpty()) {
            discoveryEndpointsBuilder_.dispose();
            discoveryEndpointsBuilder_ = null;
            discoveryEndpoints_ = other.discoveryEndpoints_;
            bitField0_ = (bitField0_ & ~0x00000800);
            discoveryEndpointsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getDiscoveryEndpointsFieldBuilder()
                    : null;
          } else {
            discoveryEndpointsBuilder_.addAllMessages(other.discoveryEndpoints_);
          }
        }
      }
      if (other.nodeType_ != 0) {
        setNodeTypeValue(other.getNodeTypeValue());
      }
      if (other.hasPersistenceConfig()) {
        mergePersistenceConfig(other.getPersistenceConfig());
      }
      if (!other.getEngineVersion().isEmpty()) {
        engineVersion_ = other.engineVersion_;
        bitField0_ |= 0x00004000;
        onChanged();
      }
      internalGetMutableEngineConfigs().mergeFrom(other.internalGetEngineConfigs());
      bitField0_ |= 0x00008000;
      if (other.hasNodeConfig()) {
        mergeNodeConfig(other.getNodeConfig());
      }
      if (other.hasZoneDistributionConfig()) {
        mergeZoneDistributionConfig(other.getZoneDistributionConfig());
      }
      if (other.hasDeletionProtectionEnabled()) {
        setDeletionProtectionEnabled(other.getDeletionProtectionEnabled());
      }
      if (pscAutoConnectionsBuilder_ == null) {
        if (!other.pscAutoConnections_.isEmpty()) {
          if (pscAutoConnections_.isEmpty()) {
            pscAutoConnections_ = other.pscAutoConnections_;
            bitField0_ = (bitField0_ & ~0x00080000);
          } else {
            ensurePscAutoConnectionsIsMutable();
            pscAutoConnections_.addAll(other.pscAutoConnections_);
          }
          onChanged();
        }
      } else {
        if (!other.pscAutoConnections_.isEmpty()) {
          if (pscAutoConnectionsBuilder_.isEmpty()) {
            pscAutoConnectionsBuilder_.dispose();
            pscAutoConnectionsBuilder_ = null;
            pscAutoConnections_ = other.pscAutoConnections_;
            bitField0_ = (bitField0_ & ~0x00080000);
            pscAutoConnectionsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getPscAutoConnectionsFieldBuilder()
                    : null;
          } else {
            pscAutoConnectionsBuilder_.addAllMessages(other.pscAutoConnections_);
          }
        }
      }
      if (endpointsBuilder_ == null) {
        if (!other.endpoints_.isEmpty()) {
          if (endpoints_.isEmpty()) {
            endpoints_ = other.endpoints_;
            bitField0_ = (bitField0_ & ~0x00100000);
          } else {
            ensureEndpointsIsMutable();
            endpoints_.addAll(other.endpoints_);
          }
          onChanged();
        }
      } else {
        if (!other.endpoints_.isEmpty()) {
          if (endpointsBuilder_.isEmpty()) {
            endpointsBuilder_.dispose();
            endpointsBuilder_ = null;
            endpoints_ = other.endpoints_;
            bitField0_ = (bitField0_ & ~0x00100000);
            endpointsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getEndpointsFieldBuilder()
                    : null;
          } else {
            endpointsBuilder_.addAllMessages(other.endpoints_);
          }
        }
      }
      if (other.mode_ != 0) {
        setModeValue(other.getModeValue());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }
<pre>
A Memorystore instance.
</pre>

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