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

        if (hasTargetShardCount() != other.hasTargetShardCount()) return false;
        if (hasTargetShardCount()) {
          if (getTargetShardCount() != other.getTargetShardCount()) return false;
        }
        if (hasTargetReplicaCount() != other.hasTargetReplicaCount()) return false;
        if (hasTargetReplicaCount()) {
          if (getTargetReplicaCount() != other.getTargetReplicaCount()) return false;
        }
        if (hasTargetEngineVersion() != other.hasTargetEngineVersion()) return false;
        if (hasTargetEngineVersion()) {
          if (!getTargetEngineVersion().equals(other.getTargetEngineVersion())) return false;
        }
        if (hasTargetNodeType() != other.hasTargetNodeType()) return false;
        if (hasTargetNodeType()) {
          if (targetNodeType_ != other.targetNodeType_) return false;
        }
        if (!getUnknownFields().equals(other.getUnknownFields())) return false;
        return true;
      }
<pre>
Output only. Target node type for the instance.
</pre>

<code>
optional .google.cloud.memorystore.v1.Instance.NodeType target_node_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
</code>

@return The targetNodeType.
java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java