com.konfigthis.carbonai.client.model.EmbeddingStorageStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of carbonai-java-sdk Show documentation
Show all versions of carbonai-java-sdk Show documentation
Connect external data to LLMs, no matter the source.
This library was generated by https://konfigthis.com
/*
* Carbon
* Connect external data to LLMs, no matter the source.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by Konfig (https://konfigthis.com).
* Do not edit the class manually.
*/
package com.konfigthis.carbonai.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.annotations.SerializedName;
import java.io.IOException;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
/**
* Gets or Sets EmbeddingStorageStatus
*/
@JsonAdapter(EmbeddingStorageStatus.Adapter.class)public enum EmbeddingStorageStatus {
HOT_STORAGE("HOT_STORAGE"),
HOT_TO_COLD("HOT_TO_COLD"),
COLD_STORAGE("COLD_STORAGE"),
COLD_TO_HOT("COLD_TO_HOT");
private String value;
EmbeddingStorageStatus(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static EmbeddingStorageStatus fromValue(String value) {
for (EmbeddingStorageStatus b : EmbeddingStorageStatus.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final EmbeddingStorageStatus enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public EmbeddingStorageStatus read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return EmbeddingStorageStatus.fromValue(value);
}
}
}