Package com.google.genai.types
Class GroundingChunkCustomMetadata
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GroundingChunkCustomMetadata
User provided metadata about the GroundingFact. This data type is not supported in Vertex AI.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for GroundingChunkCustomMetadata. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Instantiates a builder for GroundingChunkCustomMetadata.static GroundingChunkCustomMetadataDeserializes a JSON string to a GroundingChunkCustomMetadata object.key()The key of the metadata.Optional.abstract Optional<GroundingChunkStringList>Optional.Optional.abstract GroundingChunkCustomMetadata.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
GroundingChunkCustomMetadata
public GroundingChunkCustomMetadata()
-
-
Method Details
-
key
The key of the metadata. -
numericValue
Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used. -
stringListValue
Optional. A list of string values for the metadata. -
stringValue
Optional. The string value of the metadata. -
builder
Instantiates a builder for GroundingChunkCustomMetadata. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GroundingChunkCustomMetadata object.
-