Package com.google.genai.types
Class EmbedContentMetadata
-
- All Implemented Interfaces:
public abstract class EmbedContentMetadata extends JsonSerializable
Request-level metadata for the Gemini Enterprise Agent Platform Embed Content API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classEmbedContentMetadata.BuilderBuilder for EmbedContentMetadata.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description EmbedContentMetadata()
-
Method Summary
Modifier and Type Method Description abstract Optional<Integer>billableCharacterCount()Gemini Enterprise Agent Platform only. static EmbedContentMetadata.Builderbuilder()Instantiates a builder for EmbedContentMetadata. abstract EmbedContentMetadata.BuildertoBuilder()Creates a builder with the same values as this instance. static EmbedContentMetadatafromJson(String jsonString)Deserializes a JSON string to a EmbedContentMetadata 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
-
billableCharacterCount
abstract Optional<Integer> billableCharacterCount()
Gemini Enterprise Agent Platform only. The total number of billable characters included in the request.
-
builder
static EmbedContentMetadata.Builder builder()
Instantiates a builder for EmbedContentMetadata.
-
toBuilder
abstract EmbedContentMetadata.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static EmbedContentMetadata fromJson(String jsonString)
Deserializes a JSON string to a EmbedContentMetadata object.
-
-
-
-