Package com.google.genai.types
Class RetrievalConfig
-
- All Implemented Interfaces:
public abstract class RetrievalConfig extends JsonSerializable
Retrieval config.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classRetrievalConfig.BuilderBuilder for RetrievalConfig.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description RetrievalConfig()
-
Method Summary
Modifier and Type Method Description abstract Optional<LatLng>latLng()Optional. abstract Optional<String>languageCode()The language code of the user. static RetrievalConfig.Builderbuilder()Instantiates a builder for RetrievalConfig. abstract RetrievalConfig.BuildertoBuilder()Creates a builder with the same values as this instance. static RetrievalConfigfromJson(String jsonString)Deserializes a JSON string to a RetrievalConfig object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
languageCode
abstract Optional<String> languageCode()
The language code of the user.
-
builder
static RetrievalConfig.Builder builder()
Instantiates a builder for RetrievalConfig.
-
toBuilder
abstract RetrievalConfig.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static RetrievalConfig fromJson(String jsonString)
Deserializes a JSON string to a RetrievalConfig object.
-
-
-
-