@java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.cloud.vertexai.api.RagRetrievalConfig.Filter)) {
        return super.equals(obj);
      }
      com.google.cloud.vertexai.api.RagRetrievalConfig.Filter other =
          (com.google.cloud.vertexai.api.RagRetrievalConfig.Filter) obj;

      if (!getMetadataFilter().equals(other.getMetadataFilter())) return false;
      if (!getVectorDbThresholdCase().equals(other.getVectorDbThresholdCase())) return false;
      switch (vectorDbThresholdCase_) {
        case 3:
          if (java.lang.Double.doubleToLongBits(getVectorDistanceThreshold())
              != java.lang.Double.doubleToLongBits(other.getVectorDistanceThreshold()))
            return false;
          break;
        case 4:
          if (java.lang.Double.doubleToLongBits(getVectorSimilarityThreshold())
              != java.lang.Double.doubleToLongBits(other.getVectorSimilarityThreshold()))
            return false;
          break;
        case 0:
        default:
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }
<pre>
Optional. String for metadata filtering.
</pre>

<code>string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL];</code>

@return The bytes for metadataFilter.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/RagRetrievalConfig.java