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

com.databricks.sdk.service.vectorsearch.Value 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 Value {
  /** */
  @JsonProperty("bool_value")
  private Boolean boolValue;

  /** */
  @JsonProperty("list_value")
  private ListValue listValue;

  /** */
  @JsonProperty("null_value")
  private String nullValue;

  /** */
  @JsonProperty("number_value")
  private Double numberValue;

  /** */
  @JsonProperty("string_value")
  private String stringValue;

  /** */
  @JsonProperty("struct_value")
  private Struct structValue;

  public Value setBoolValue(Boolean boolValue) {
    this.boolValue = boolValue;
    return this;
  }

  public Boolean getBoolValue() {
    return boolValue;
  }

  public Value setListValue(ListValue listValue) {
    this.listValue = listValue;
    return this;
  }

  public ListValue getListValue() {
    return listValue;
  }

  public Value setNullValue(String nullValue) {
    this.nullValue = nullValue;
    return this;
  }

  public String getNullValue() {
    return nullValue;
  }

  public Value setNumberValue(Double numberValue) {
    this.numberValue = numberValue;
    return this;
  }

  public Double getNumberValue() {
    return numberValue;
  }

  public Value setStringValue(String stringValue) {
    this.stringValue = stringValue;
    return this;
  }

  public String getStringValue() {
    return stringValue;
  }

  public Value setStructValue(Struct structValue) {
    this.structValue = structValue;
    return this;
  }

  public Struct getStructValue() {
    return structValue;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    Value that = (Value) o;
    return Objects.equals(boolValue, that.boolValue)
        && Objects.equals(listValue, that.listValue)
        && Objects.equals(nullValue, that.nullValue)
        && Objects.equals(numberValue, that.numberValue)
        && Objects.equals(stringValue, that.stringValue)
        && Objects.equals(structValue, that.structValue);
  }

  @Override
  public int hashCode() {
    return Objects.hash(boolValue, listValue, nullValue, numberValue, stringValue, structValue);
  }

  @Override
  public String toString() {
    return new ToStringer(Value.class)
        .add("boolValue", boolValue)
        .add("listValue", listValue)
        .add("nullValue", nullValue)
        .add("numberValue", numberValue)
        .add("stringValue", stringValue)
        .add("structValue", structValue)
        .toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy