All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.databricks.sdk.service.vectorsearch.QueryVectorIndexResponse Maven / Gradle / Ivy

There is a newer version: 0.38.0
Show newest version
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.

package com.databricks.sdk.service.vectorsearch;

import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;

@Generated
public class QueryVectorIndexResponse {
  /** Metadata about the result set. */
  @JsonProperty("manifest")
  private ResultManifest manifest;

  /**
   * [Optional] Token that can be used in `QueryVectorIndexNextPage` API to get next page of
   * results. If more than 1000 results satisfy the query, they are returned in groups of 1000.
   * Empty value means no more results.
   */
  @JsonProperty("next_page_token")
  private String nextPageToken;

  /** Data returned in the query result. */
  @JsonProperty("result")
  private ResultData result;

  public QueryVectorIndexResponse setManifest(ResultManifest manifest) {
    this.manifest = manifest;
    return this;
  }

  public ResultManifest getManifest() {
    return manifest;
  }

  public QueryVectorIndexResponse setNextPageToken(String nextPageToken) {
    this.nextPageToken = nextPageToken;
    return this;
  }

  public String getNextPageToken() {
    return nextPageToken;
  }

  public QueryVectorIndexResponse setResult(ResultData result) {
    this.result = result;
    return this;
  }

  public ResultData getResult() {
    return result;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    QueryVectorIndexResponse that = (QueryVectorIndexResponse) o;
    return Objects.equals(manifest, that.manifest)
        && Objects.equals(nextPageToken, that.nextPageToken)
        && Objects.equals(result, that.result);
  }

  @Override
  public int hashCode() {
    return Objects.hash(manifest, nextPageToken, result);
  }

  @Override
  public String toString() {
    return new ToStringer(QueryVectorIndexResponse.class)
        .add("manifest", manifest)
        .add("nextPageToken", nextPageToken)
        .add("result", result)
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy