Package com.google.genai.types
Class CustomMetadata
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.CustomMetadata
User provided metadata stored as key-value pairs. This data type is not supported in Vertex AI.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomMetadata.Builderbuilder()Instantiates a builder for CustomMetadata.static CustomMetadataDeserializes a JSON string to a CustomMetadata object.key()Required.The numeric value of the metadata to store.abstract Optional<StringList>The StringList value of the metadata to store.The string value of the metadata to store.abstract CustomMetadata.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
setMaxReadLength, stringToJsonNode, toJson
-
Constructor Details
-
CustomMetadata
public CustomMetadata()
-
-
Method Details
-
key
Required. The key of the metadata to store. -
numericValue
The numeric value of the metadata to store. -
stringListValue
The StringList value of the metadata to store. -
stringValue
The string value of the metadata to store. -
builder
Instantiates a builder for CustomMetadata. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a CustomMetadata object.
-