@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.ConnectionDetail)) {
        return super.equals(obj);
      }
      com.google.cloud.memorystore.v1.Instance.ConnectionDetail other =
          (com.google.cloud.memorystore.v1.Instance.ConnectionDetail) obj;

      if (!getConnectionCase().equals(other.getConnectionCase())) return false;
      switch (connectionCase_) {
        case 1:
          if (!getPscAutoConnection().equals(other.getPscAutoConnection())) return false;
          break;
        case 2:
          if (!getPscConnection().equals(other.getPscConnection())) return false;
          break;
        case 0:
        default:
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }
<pre>
Detailed information of a PSC connection that is created by the user.
</pre>

<code>.google.cloud.memorystore.v1.PscConnection psc_connection = 2;</code>
java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java