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

com.databricks.sdk.service.serving.EmbeddingsV1ResponseEmbeddingElement 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.serving;

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

@Generated
public class EmbeddingsV1ResponseEmbeddingElement {
  /** */
  @JsonProperty("embedding")
  private Collection embedding;

  /** The index of the embedding in the response. */
  @JsonProperty("index")
  private Long index;

  /** This will always be 'embedding'. */
  @JsonProperty("object")
  private EmbeddingsV1ResponseEmbeddingElementObject object;

  public EmbeddingsV1ResponseEmbeddingElement setEmbedding(Collection embedding) {
    this.embedding = embedding;
    return this;
  }

  public Collection getEmbedding() {
    return embedding;
  }

  public EmbeddingsV1ResponseEmbeddingElement setIndex(Long index) {
    this.index = index;
    return this;
  }

  public Long getIndex() {
    return index;
  }

  public EmbeddingsV1ResponseEmbeddingElement setObject(
      EmbeddingsV1ResponseEmbeddingElementObject object) {
    this.object = object;
    return this;
  }

  public EmbeddingsV1ResponseEmbeddingElementObject getObject() {
    return object;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    EmbeddingsV1ResponseEmbeddingElement that = (EmbeddingsV1ResponseEmbeddingElement) o;
    return Objects.equals(embedding, that.embedding)
        && Objects.equals(index, that.index)
        && Objects.equals(object, that.object);
  }

  @Override
  public int hashCode() {
    return Objects.hash(embedding, index, object);
  }

  @Override
  public String toString() {
    return new ToStringer(EmbeddingsV1ResponseEmbeddingElement.class)
        .add("embedding", embedding)
        .add("index", index)
        .add("object", object)
        .toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy