Index

A B C D E F G H I J K L M N O P Q R S T U V W Y 
All Classes and Interfaces|All Packages|Serialized Form

A

accessToken() - Method in class com.google.genai.types.AuthConfigOauthConfig
Access token for extension endpoint.
accessToken(String) - Method in class com.google.genai.types.AuthConfigOauthConfig.Builder
 
ACTIVE - Enum constant in enum com.google.genai.types.FileState.Known
 
ACTIVITY_HANDLING_UNSPECIFIED - Enum constant in enum com.google.genai.types.ActivityHandling.Known
If unspecified, the default behavior is `START_OF_ACTIVITY_INTERRUPTS`.
activityEnd() - Method in class com.google.genai.types.LiveClientRealtimeInput
Marks the end of user activity.
activityEnd() - Method in class com.google.genai.types.LiveSendRealtimeInputParameters
Marks the end of user activity.
activityEnd(ActivityEnd) - Method in class com.google.genai.types.LiveClientRealtimeInput.Builder
 
activityEnd(ActivityEnd) - Method in class com.google.genai.types.LiveSendRealtimeInputParameters.Builder
 
ActivityEnd - Class in com.google.genai.types
Marks the end of user activity.
ActivityEnd() - Constructor for class com.google.genai.types.ActivityEnd
 
ActivityEnd.Builder - Class in com.google.genai.types
Builder for ActivityEnd.
activityHandling() - Method in class com.google.genai.types.RealtimeInputConfig
Defines what effect activity has.
activityHandling(ActivityHandling) - Method in class com.google.genai.types.RealtimeInputConfig.Builder
 
activityHandling(ActivityHandling.Known) - Method in class com.google.genai.types.RealtimeInputConfig.Builder
 
activityHandling(String) - Method in class com.google.genai.types.RealtimeInputConfig.Builder
 
ActivityHandling - Class in com.google.genai.types
The different ways of handling user activity.
ActivityHandling(ActivityHandling.Known) - Constructor for class com.google.genai.types.ActivityHandling
 
ActivityHandling(String) - Constructor for class com.google.genai.types.ActivityHandling
 
ActivityHandling.Known - Enum in com.google.genai.types
Enum representing the known values for ActivityHandling.
activityStart() - Method in class com.google.genai.types.LiveClientRealtimeInput
Marks the start of user activity.
activityStart() - Method in class com.google.genai.types.LiveSendRealtimeInputParameters
Marks the start of user activity.
activityStart(ActivityStart) - Method in class com.google.genai.types.LiveClientRealtimeInput.Builder
 
activityStart(ActivityStart) - Method in class com.google.genai.types.LiveSendRealtimeInputParameters.Builder
 
ActivityStart - Class in com.google.genai.types
Marks the start of user activity.
ActivityStart() - Constructor for class com.google.genai.types.ActivityStart
 
ActivityStart.Builder - Class in com.google.genai.types
Builder for ActivityStart.
addWatermark() - Method in class com.google.genai.types.GenerateImagesConfig
Whether to add a watermark to the generated images.
addWatermark(boolean) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
ALLOW_ADULT - Enum constant in enum com.google.genai.types.PersonGeneration.Known
 
ALLOW_ALL - Enum constant in enum com.google.genai.types.PersonGeneration.Known
 
allowedFunctionNames() - Method in class com.google.genai.types.FunctionCallingConfig
Optional.
allowedFunctionNames(List<String>) - Method in class com.google.genai.types.FunctionCallingConfig.Builder
 
alpha() - Method in class com.google.genai.types.RagRetrievalConfigHybridSearch
Optional.
alpha(Float) - Method in class com.google.genai.types.RagRetrievalConfigHybridSearch.Builder
 
ANY - Enum constant in enum com.google.genai.types.FunctionCallingConfigMode.Known
Model is constrained to always predicting function calls only.
anyOf() - Method in class com.google.genai.types.Schema
Optional.
anyOf(List<Schema>) - Method in class com.google.genai.types.Schema.Builder
 
API_KEY_AUTH - Enum constant in enum com.google.genai.types.AuthType.Known
API Key Auth.
ApiException - Exception in com.google.genai.errors
General exception class for all exceptions originating from the GenAI API side.
ApiException(int, String, String) - Constructor for exception com.google.genai.errors.ApiException
Creates a new ApiException with the specified code, status, and message.
apiKey() - Method in class com.google.genai.HttpApiClient
Returns the API key for Google AI APIs.
apiKey() - Method in class com.google.genai.Client
Returns the API key for Google AI APIs.
apiKey(String) - Method in class com.google.genai.Client.Builder
Sets the API key for Google AI APIs.
apiKeyConfig() - Method in class com.google.genai.types.AuthConfig
Config for API key auth.
apiKeyConfig(ApiKeyConfig) - Method in class com.google.genai.types.AuthConfig.Builder
 
ApiKeyConfig - Class in com.google.genai.types
Config for authentication with API key.
ApiKeyConfig() - Constructor for class com.google.genai.types.ApiKeyConfig
 
ApiKeyConfig.Builder - Class in com.google.genai.types
Builder for ApiKeyConfig.
apiKeyString() - Method in class com.google.genai.types.ApiKeyConfig
The API key to be used in the request directly.
apiKeyString(String) - Method in class com.google.genai.types.ApiKeyConfig.Builder
 
apiVersion() - Method in class com.google.genai.types.HttpOptions
Specifies the version of the API to use.
apiVersion(String) - Method in class com.google.genai.types.HttpOptions.Builder
 
args() - Method in class com.google.genai.types.FunctionCall
Optional.
args(Map<String, Object>) - Method in class com.google.genai.types.FunctionCall.Builder
 
ARRAY - Enum constant in enum com.google.genai.types.Type.Known
OpenAPI array type
aspectRatio() - Method in class com.google.genai.types.EditImageConfig
Aspect ratio of the generated images.
aspectRatio() - Method in class com.google.genai.types.GenerateImagesConfig
Aspect ratio of the generated images.
aspectRatio() - Method in class com.google.genai.types.GenerateVideosConfig
The aspect ratio for the generated video. 16:9 (landscape) and 9:16 (portrait) are supported.
aspectRatio(String) - Method in class com.google.genai.types.EditImageConfig.Builder
 
aspectRatio(String) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
aspectRatio(String) - Method in class com.google.genai.types.GenerateVideosConfig.Builder
 
async - Variable in class com.google.genai.Client
 
Async(ApiClient) - Constructor for class com.google.genai.Client.Async
 
AsyncCaches - Class in com.google.genai
Async module of Caches
AsyncCaches(ApiClient) - Constructor for class com.google.genai.AsyncCaches
 
AsyncChat - Class in com.google.genai
An async chat session with a generative model.
AsyncChats - Class in com.google.genai
A class for creating async chat sessions.
AsyncFiles - Class in com.google.genai
Async module of Files
AsyncFiles(ApiClient) - Constructor for class com.google.genai.AsyncFiles
 
AsyncLive - Class in com.google.genai
AsyncLive provides asynchronous access to a bidirectional GenAI live session.
AsyncModels - Class in com.google.genai
Async module of Models
AsyncModels(ApiClient) - Constructor for class com.google.genai.AsyncModels
 
AsyncOperations - Class in com.google.genai
Async module of Operations
AsyncOperations(ApiClient) - Constructor for class com.google.genai.AsyncOperations
 
AsyncPager<T extends JsonSerializable> - Class in com.google.genai
AsyncPager class for handling paginated results asynchronously.
AsyncSession - Class in com.google.genai
AsyncSession manages sending and receiving messages over a WebSocket connection for a live session.
audio() - Method in class com.google.genai.types.LiveClientRealtimeInput
The realtime audio input stream.
audio() - Method in class com.google.genai.types.LiveSendRealtimeInputParameters
The realtime audio input stream.
audio(Blob) - Method in class com.google.genai.types.LiveClientRealtimeInput.Builder
 
audio(Blob) - Method in class com.google.genai.types.LiveSendRealtimeInputParameters.Builder
 
AUDIO - Enum constant in enum com.google.genai.types.MediaModality.Known
Audio.
AUDIO - Enum constant in enum com.google.genai.types.Modality.Known
Indicates the model should return images.
audioDurationSeconds() - Method in class com.google.genai.types.CachedContentUsageMetadata
Duration of audio in seconds.
audioDurationSeconds(Integer) - Method in class com.google.genai.types.CachedContentUsageMetadata.Builder
 
audioStreamEnd() - Method in class com.google.genai.types.LiveClientRealtimeInput
Indicates that the audio stream has ended, e.g. because the microphone was turned off.
audioStreamEnd() - Method in class com.google.genai.types.LiveSendRealtimeInputParameters
Indicates that the audio stream has ended, e.g. because the microphone was turned off.
audioStreamEnd(boolean) - Method in class com.google.genai.types.LiveClientRealtimeInput.Builder
 
audioStreamEnd(boolean) - Method in class com.google.genai.types.LiveSendRealtimeInputParameters.Builder
 
audioTimestamp() - Method in class com.google.genai.types.GenerateContentConfig
If enabled, audio timestamp will be included in the request to the model.
audioTimestamp() - Method in class com.google.genai.types.GenerationConfig
Optional.
audioTimestamp(boolean) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
audioTimestamp(boolean) - Method in class com.google.genai.types.GenerationConfig.Builder
 
AudioTranscriptionConfig - Class in com.google.genai.types
The audio transcription configuration in Setup.
AudioTranscriptionConfig() - Constructor for class com.google.genai.types.AudioTranscriptionConfig
 
AudioTranscriptionConfig.Builder - Class in com.google.genai.types
Builder for AudioTranscriptionConfig.
AUTH_TYPE_UNSPECIFIED - Enum constant in enum com.google.genai.types.AuthType.Known
 
authConfig() - Method in class com.google.genai.types.GoogleMaps
Optional.
authConfig(AuthConfig) - Method in class com.google.genai.types.GoogleMaps.Builder
 
AuthConfig - Class in com.google.genai.types
Auth configuration to run the extension.
AuthConfig() - Constructor for class com.google.genai.types.AuthConfig
 
AuthConfig.Builder - Class in com.google.genai.types
Builder for AuthConfig.
AuthConfigGoogleServiceAccountConfig - Class in com.google.genai.types
Config for Google Service Account Authentication.
AuthConfigGoogleServiceAccountConfig() - Constructor for class com.google.genai.types.AuthConfigGoogleServiceAccountConfig
 
AuthConfigGoogleServiceAccountConfig.Builder - Class in com.google.genai.types
Builder for AuthConfigGoogleServiceAccountConfig.
AuthConfigHttpBasicAuthConfig - Class in com.google.genai.types
Config for HTTP Basic Authentication.
AuthConfigHttpBasicAuthConfig() - Constructor for class com.google.genai.types.AuthConfigHttpBasicAuthConfig
 
AuthConfigHttpBasicAuthConfig.Builder - Class in com.google.genai.types
Builder for AuthConfigHttpBasicAuthConfig.
AuthConfigOauthConfig - Class in com.google.genai.types
Config for user oauth.
AuthConfigOauthConfig() - Constructor for class com.google.genai.types.AuthConfigOauthConfig
 
AuthConfigOauthConfig.Builder - Class in com.google.genai.types
Builder for AuthConfigOauthConfig.
AuthConfigOidcConfig - Class in com.google.genai.types
Config for user OIDC auth.
AuthConfigOidcConfig() - Constructor for class com.google.genai.types.AuthConfigOidcConfig
 
AuthConfigOidcConfig.Builder - Class in com.google.genai.types
Builder for AuthConfigOidcConfig.
AuthToken - Class in com.google.genai.types
Config for auth_tokens.create parameters.
AuthToken() - Constructor for class com.google.genai.types.AuthToken
 
AuthToken.Builder - Class in com.google.genai.types
Builder for AuthToken.
authType() - Method in class com.google.genai.types.AuthConfig
Type of auth scheme.
authType(AuthType) - Method in class com.google.genai.types.AuthConfig.Builder
 
authType(AuthType.Known) - Method in class com.google.genai.types.AuthConfig.Builder
 
authType(String) - Method in class com.google.genai.types.AuthConfig.Builder
 
AuthType - Class in com.google.genai.types
Type of auth scheme.
AuthType(AuthType.Known) - Constructor for class com.google.genai.types.AuthType
 
AuthType(String) - Constructor for class com.google.genai.types.AuthType
 
AuthType.Known - Enum in com.google.genai.types
Enum representing the known values for AuthType.
AUTO - Enum constant in enum com.google.genai.types.FunctionCallingConfigMode.Known
Default model behavior, model decides to predict either function calls or natural language response.
AUTO - Enum constant in enum com.google.genai.types.ImagePromptLanguage.Known
 
automaticActivityDetection() - Method in class com.google.genai.types.RealtimeInputConfig
If not set, automatic activity detection is enabled by default.
automaticActivityDetection(AutomaticActivityDetection) - Method in class com.google.genai.types.RealtimeInputConfig.Builder
 
AutomaticActivityDetection - Class in com.google.genai.types
Configures automatic detection of activity.
AutomaticActivityDetection() - Constructor for class com.google.genai.types.AutomaticActivityDetection
 
AutomaticActivityDetection.Builder - Class in com.google.genai.types
Builder for AutomaticActivityDetection.
automaticFunctionCalling() - Method in class com.google.genai.types.GenerateContentConfig
The configuration for automatic function calling.
automaticFunctionCalling(AutomaticFunctionCallingConfig) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
AutomaticFunctionCallingConfig - Class in com.google.genai.types
The configuration for automatic function calling.
AutomaticFunctionCallingConfig() - Constructor for class com.google.genai.types.AutomaticFunctionCallingConfig
 
AutomaticFunctionCallingConfig.Builder - Class in com.google.genai.types
Builder for AutomaticFunctionCallingConfig.
automaticFunctionCallingHistory() - Method in class com.google.genai.types.GenerateContentResponse
The history of automatic function calling.
automaticFunctionCallingHistory(List<Content>) - Method in class com.google.genai.types.GenerateContentResponse.Builder
 
autoMode() - Method in class com.google.genai.types.GenerationConfigRoutingConfig
Automated routing.
autoMode(GenerationConfigRoutingConfigAutoRoutingMode) - Method in class com.google.genai.types.GenerationConfigRoutingConfig.Builder
 
autoTruncate() - Method in class com.google.genai.types.EmbedContentConfig
Vertex API only.
autoTruncate(boolean) - Method in class com.google.genai.types.EmbedContentConfig.Builder
 
avgLogprobs() - Method in class com.google.genai.types.Candidate
Output only.
avgLogprobs(Double) - Method in class com.google.genai.types.Candidate.Builder
 

B

BALANCED - Enum constant in enum com.google.genai.types.FeatureSelectionPreference.Known
 
BALANCED - Enum constant in enum com.google.genai.types.ModelRoutingPreference.Known
 
baseModel() - Method in class com.google.genai.types.TunedModelInfo
ID of the base model that you want to tune.
baseModel(String) - Method in class com.google.genai.types.TunedModelInfo.Builder
 
baseSteps() - Method in class com.google.genai.types.EditImageConfig
The number of sampling steps.
baseSteps(Integer) - Method in class com.google.genai.types.EditImageConfig.Builder
 
baseUrl() - Method in class com.google.genai.types.HttpOptions
The base URL for the AI platform service endpoint.
baseUrl(String) - Method in class com.google.genai.types.HttpOptions.Builder
 
behavior() - Method in class com.google.genai.types.FunctionDeclaration
Defines the function behavior.
behavior(Behavior) - Method in class com.google.genai.types.FunctionDeclaration.Builder
 
behavior(Behavior.Known) - Method in class com.google.genai.types.FunctionDeclaration.Builder
 
behavior(String) - Method in class com.google.genai.types.FunctionDeclaration.Builder
 
Behavior - Class in com.google.genai.types
Defines the function behavior.
Behavior(Behavior.Known) - Constructor for class com.google.genai.types.Behavior
 
Behavior(String) - Constructor for class com.google.genai.types.Behavior
 
BEHAVIOR_UNSPECIFIED - Enum constant in enum com.google.genai.types.Behavior.Known
 
Behavior.Known - Enum in com.google.genai.types
Enum representing the known values for Behavior.
billableCharacterCount() - Method in class com.google.genai.types.EmbedContentMetadata
Vertex API only.
billableCharacterCount(Integer) - Method in class com.google.genai.types.EmbedContentMetadata.Builder
 
Blob - Class in com.google.genai.types
Content blob.
Blob() - Constructor for class com.google.genai.types.Blob
 
Blob.Builder - Class in com.google.genai.types
Builder for Blob.
BLOCK_LOW_AND_ABOVE - Enum constant in enum com.google.genai.types.HarmBlockThreshold.Known
Block low threshold and above (i.e. block more).
BLOCK_LOW_AND_ABOVE - Enum constant in enum com.google.genai.types.SafetyFilterLevel.Known
 
BLOCK_MEDIUM_AND_ABOVE - Enum constant in enum com.google.genai.types.HarmBlockThreshold.Known
Block medium threshold and above.
BLOCK_MEDIUM_AND_ABOVE - Enum constant in enum com.google.genai.types.SafetyFilterLevel.Known
 
BLOCK_NONE - Enum constant in enum com.google.genai.types.HarmBlockThreshold.Known
Block none.
BLOCK_NONE - Enum constant in enum com.google.genai.types.SafetyFilterLevel.Known
 
BLOCK_ONLY_HIGH - Enum constant in enum com.google.genai.types.HarmBlockThreshold.Known
Block only high threshold (i.e. block less).
BLOCK_ONLY_HIGH - Enum constant in enum com.google.genai.types.SafetyFilterLevel.Known
 
blocked() - Method in class com.google.genai.types.SafetyRating
Output only.
blocked(boolean) - Method in class com.google.genai.types.SafetyRating.Builder
 
BLOCKED_REASON_UNSPECIFIED - Enum constant in enum com.google.genai.types.BlockedReason.Known
Unspecified blocked reason.
BlockedReason - Class in com.google.genai.types
Output only.
BlockedReason(BlockedReason.Known) - Constructor for class com.google.genai.types.BlockedReason
 
BlockedReason(String) - Constructor for class com.google.genai.types.BlockedReason
 
BlockedReason.Known - Enum in com.google.genai.types
Enum representing the known values for BlockedReason.
BLOCKING - Enum constant in enum com.google.genai.types.Behavior.Known
If set, the system will wait to receive the function response before continuing the conversation.
BLOCKLIST - Enum constant in enum com.google.genai.types.BlockedReason.Known
Candidates blocked due to the terms which are included from the terminology blocklist.
BLOCKLIST - Enum constant in enum com.google.genai.types.FinishReason.Known
Token generation stopped because the content contains forbidden terms.
blockReason() - Method in class com.google.genai.types.GenerateContentResponsePromptFeedback
Output only.
blockReason(BlockedReason) - Method in class com.google.genai.types.GenerateContentResponsePromptFeedback.Builder
 
blockReason(BlockedReason.Known) - Method in class com.google.genai.types.GenerateContentResponsePromptFeedback.Builder
 
blockReason(String) - Method in class com.google.genai.types.GenerateContentResponsePromptFeedback.Builder
 
blockReasonMessage() - Method in class com.google.genai.types.GenerateContentResponsePromptFeedback
Output only.
blockReasonMessage(String) - Method in class com.google.genai.types.GenerateContentResponsePromptFeedback.Builder
 
body() - Method in class com.google.genai.types.HttpResponse
The raw HTTP response body, in JSON format.
body(String) - Method in class com.google.genai.types.HttpResponse.Builder
 
bodySegments() - Method in class com.google.genai.types.ReplayRequest
 
bodySegments() - Method in class com.google.genai.types.ReplayResponse
 
bodySegments(List<Map<String, Object>>) - Method in class com.google.genai.types.ReplayRequest.Builder
 
bodySegments(List<Map<String, Object>>) - Method in class com.google.genai.types.ReplayResponse.Builder
 
BOOLEAN - Enum constant in enum com.google.genai.types.Type.Known
OpenAPI boolean type
build() - Method in class com.google.genai.Client.Builder
Builds the Client instance.
build() - Method in class com.google.genai.types.ActivityEnd.Builder
 
build() - Method in class com.google.genai.types.ActivityStart.Builder
 
build() - Method in class com.google.genai.types.ApiKeyConfig.Builder
 
build() - Method in class com.google.genai.types.AudioTranscriptionConfig.Builder
 
build() - Method in class com.google.genai.types.AuthConfig.Builder
 
build() - Method in class com.google.genai.types.AuthConfigGoogleServiceAccountConfig.Builder
 
build() - Method in class com.google.genai.types.AuthConfigHttpBasicAuthConfig.Builder
 
build() - Method in class com.google.genai.types.AuthConfigOauthConfig.Builder
 
build() - Method in class com.google.genai.types.AuthConfigOidcConfig.Builder
 
build() - Method in class com.google.genai.types.AuthToken.Builder
 
build() - Method in class com.google.genai.types.AutomaticActivityDetection.Builder
 
build() - Method in class com.google.genai.types.AutomaticFunctionCallingConfig.Builder
 
build() - Method in class com.google.genai.types.Blob.Builder
 
build() - Method in class com.google.genai.types.CachedContent.Builder
 
build() - Method in class com.google.genai.types.CachedContentUsageMetadata.Builder
 
build() - Method in class com.google.genai.types.Candidate.Builder
 
build() - Method in class com.google.genai.types.Checkpoint.Builder
 
build() - Method in class com.google.genai.types.Citation.Builder
 
build() - Method in class com.google.genai.types.CitationMetadata.Builder
 
build() - Method in class com.google.genai.types.CodeExecutionResult.Builder
 
build() - Method in class com.google.genai.types.ComputeTokensConfig.Builder
 
build() - Method in class com.google.genai.types.ComputeTokensParameters.Builder
 
build() - Method in class com.google.genai.types.ComputeTokensResponse.Builder
 
build() - Method in class com.google.genai.types.Content.Builder
 
build() - Method in class com.google.genai.types.ContentEmbedding.Builder
 
build() - Method in class com.google.genai.types.ContentEmbeddingStatistics.Builder
 
build() - Method in class com.google.genai.types.ContextWindowCompressionConfig.Builder
 
build() - Method in class com.google.genai.types.ControlReferenceConfig.Builder
 
build() - Method in class com.google.genai.types.ControlReferenceImage.Builder
 
build() - Method in class com.google.genai.types.CountTokensConfig.Builder
 
build() - Method in class com.google.genai.types.CountTokensParameters.Builder
 
build() - Method in class com.google.genai.types.CountTokensResponse.Builder
 
build() - Method in class com.google.genai.types.CreateAuthTokenConfig.Builder
 
build() - Method in class com.google.genai.types.CreateAuthTokenParameters.Builder
 
build() - Method in class com.google.genai.types.CreateCachedContentConfig.Builder
 
build() - Method in class com.google.genai.types.CreateCachedContentParameters.Builder
 
build() - Method in class com.google.genai.types.CreateFileConfig.Builder
 
build() - Method in class com.google.genai.types.CreateFileParameters.Builder
 
build() - Method in class com.google.genai.types.CreateFileResponse.Builder
 
build() - Method in class com.google.genai.types.DeleteCachedContentConfig.Builder
 
build() - Method in class com.google.genai.types.DeleteCachedContentParameters.Builder
 
build() - Method in class com.google.genai.types.DeleteCachedContentResponse.Builder
 
build() - Method in class com.google.genai.types.DeleteFileConfig.Builder
 
build() - Method in class com.google.genai.types.DeleteFileParameters.Builder
 
build() - Method in class com.google.genai.types.DeleteFileResponse.Builder
 
build() - Method in class com.google.genai.types.DeleteModelConfig.Builder
 
build() - Method in class com.google.genai.types.DeleteModelParameters.Builder
 
build() - Method in class com.google.genai.types.DeleteModelResponse.Builder
 
build() - Method in class com.google.genai.types.DownloadFileConfig.Builder
 
build() - Method in class com.google.genai.types.DynamicRetrievalConfig.Builder
 
build() - Method in class com.google.genai.types.EditImageConfig.Builder
 
build() - Method in class com.google.genai.types.EditImageParameters.Builder
 
build() - Method in class com.google.genai.types.EditImageResponse.Builder
 
build() - Method in class com.google.genai.types.EmbedContentConfig.Builder
 
build() - Method in class com.google.genai.types.EmbedContentMetadata.Builder
 
build() - Method in class com.google.genai.types.EmbedContentParameters.Builder
 
build() - Method in class com.google.genai.types.EmbedContentResponse.Builder
 
build() - Method in class com.google.genai.types.Endpoint.Builder
 
build() - Method in class com.google.genai.types.EnterpriseWebSearch.Builder
 
build() - Method in class com.google.genai.types.ExecutableCode.Builder
 
build() - Method in class com.google.genai.types.FetchPredictOperationConfig.Builder
 
build() - Method in class com.google.genai.types.FetchPredictOperationParameters.Builder
 
build() - Method in class com.google.genai.types.File.Builder
 
build() - Method in class com.google.genai.types.FileData.Builder
 
build() - Method in class com.google.genai.types.FileStatus.Builder
 
build() - Method in class com.google.genai.types.FunctionCall.Builder
 
build() - Method in class com.google.genai.types.FunctionCallingConfig.Builder
 
build() - Method in class com.google.genai.types.FunctionDeclaration.Builder
 
build() - Method in class com.google.genai.types.FunctionResponse.Builder
 
build() - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
build() - Method in class com.google.genai.types.GenerateContentParameters.Builder
 
build() - Method in class com.google.genai.types.GenerateContentResponse.Builder
 
build() - Method in class com.google.genai.types.GenerateContentResponsePromptFeedback.Builder
 
build() - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
 
build() - Method in class com.google.genai.types.GeneratedImage.Builder
 
build() - Method in class com.google.genai.types.GeneratedVideo.Builder
 
build() - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
build() - Method in class com.google.genai.types.GenerateImagesParameters.Builder
 
build() - Method in class com.google.genai.types.GenerateImagesResponse.Builder
 
build() - Method in class com.google.genai.types.GenerateVideosConfig.Builder
 
build() - Method in class com.google.genai.types.GenerateVideosOperation.Builder
 
build() - Method in class com.google.genai.types.GenerateVideosParameters.Builder
 
build() - Method in class com.google.genai.types.GenerateVideosResponse.Builder
 
build() - Method in class com.google.genai.types.GenerationConfig.Builder
 
build() - Method in class com.google.genai.types.GenerationConfigRoutingConfig.Builder
 
build() - Method in class com.google.genai.types.GenerationConfigRoutingConfigAutoRoutingMode.Builder
 
build() - Method in class com.google.genai.types.GenerationConfigRoutingConfigManualRoutingMode.Builder
 
build() - Method in class com.google.genai.types.GetCachedContentConfig.Builder
 
build() - Method in class com.google.genai.types.GetCachedContentParameters.Builder
 
build() - Method in class com.google.genai.types.GetFileConfig.Builder
 
build() - Method in class com.google.genai.types.GetFileParameters.Builder
 
build() - Method in class com.google.genai.types.GetModelConfig.Builder
 
build() - Method in class com.google.genai.types.GetModelParameters.Builder
 
build() - Method in class com.google.genai.types.GetOperationConfig.Builder
 
build() - Method in class com.google.genai.types.GetOperationParameters.Builder
 
build() - Method in class com.google.genai.types.GoogleMaps.Builder
 
build() - Method in class com.google.genai.types.GoogleSearch.Builder
 
build() - Method in class com.google.genai.types.GoogleSearchRetrieval.Builder
 
build() - Method in class com.google.genai.types.GoogleTypeDate.Builder
 
build() - Method in class com.google.genai.types.GroundingChunk.Builder
 
build() - Method in class com.google.genai.types.GroundingChunkRetrievedContext.Builder
 
build() - Method in class com.google.genai.types.GroundingChunkWeb.Builder
 
build() - Method in class com.google.genai.types.GroundingMetadata.Builder
 
build() - Method in class com.google.genai.types.GroundingSupport.Builder
 
build() - Method in class com.google.genai.types.HttpOptions.Builder
 
build() - Method in class com.google.genai.types.HttpResponse.Builder
 
build() - Method in class com.google.genai.types.Image.Builder
 
build() - Method in class com.google.genai.types.Interval.Builder
 
build() - Method in class com.google.genai.types.LatLng.Builder
 
build() - Method in class com.google.genai.types.ListCachedContentsConfig.Builder
 
build() - Method in class com.google.genai.types.ListCachedContentsParameters.Builder
 
build() - Method in class com.google.genai.types.ListCachedContentsResponse.Builder
 
build() - Method in class com.google.genai.types.ListFilesConfig.Builder
 
build() - Method in class com.google.genai.types.ListFilesParameters.Builder
 
build() - Method in class com.google.genai.types.ListFilesResponse.Builder
 
build() - Method in class com.google.genai.types.ListModelsConfig.Builder
 
build() - Method in class com.google.genai.types.ListModelsParameters.Builder
 
build() - Method in class com.google.genai.types.ListModelsResponse.Builder
 
build() - Method in class com.google.genai.types.LiveClientContent.Builder
 
build() - Method in class com.google.genai.types.LiveClientMessage.Builder
 
build() - Method in class com.google.genai.types.LiveClientRealtimeInput.Builder
 
build() - Method in class com.google.genai.types.LiveClientSetup.Builder
 
build() - Method in class com.google.genai.types.LiveClientToolResponse.Builder
 
build() - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
build() - Method in class com.google.genai.types.LiveConnectParameters.Builder
 
build() - Method in class com.google.genai.types.LiveConstrainedParameters.Builder
 
build() - Method in class com.google.genai.types.LiveEphemeralParameters.Builder
 
build() - Method in class com.google.genai.types.LiveSendClientContentParameters.Builder
 
build() - Method in class com.google.genai.types.LiveSendRealtimeInputParameters.Builder
 
build() - Method in class com.google.genai.types.LiveSendToolResponseParameters.Builder
 
build() - Method in class com.google.genai.types.LiveServerContent.Builder
 
build() - Method in class com.google.genai.types.LiveServerGoAway.Builder
 
build() - Method in class com.google.genai.types.LiveServerMessage.Builder
 
build() - Method in class com.google.genai.types.LiveServerSessionResumptionUpdate.Builder
 
build() - Method in class com.google.genai.types.LiveServerSetupComplete.Builder
 
build() - Method in class com.google.genai.types.LiveServerToolCall.Builder
 
build() - Method in class com.google.genai.types.LiveServerToolCallCancellation.Builder
 
build() - Method in class com.google.genai.types.LogprobsResult.Builder
 
build() - Method in class com.google.genai.types.LogprobsResultCandidate.Builder
 
build() - Method in class com.google.genai.types.LogprobsResultTopCandidates.Builder
 
build() - Method in class com.google.genai.types.MaskReferenceConfig.Builder
 
build() - Method in class com.google.genai.types.MaskReferenceImage.Builder
 
build() - Method in class com.google.genai.types.ModalityTokenCount.Builder
 
build() - Method in class com.google.genai.types.Model.Builder
 
build() - Method in class com.google.genai.types.ModelSelectionConfig.Builder
 
build() - Method in class com.google.genai.types.MultiSpeakerVoiceConfig.Builder
 
build() - Method in class com.google.genai.types.Part.Builder
 
build() - Method in class com.google.genai.types.PrebuiltVoiceConfig.Builder
 
build() - Method in class com.google.genai.types.ProactivityConfig.Builder
 
build() - Method in class com.google.genai.types.RagRetrievalConfig.Builder
 
build() - Method in class com.google.genai.types.RagRetrievalConfigFilter.Builder
 
build() - Method in class com.google.genai.types.RagRetrievalConfigHybridSearch.Builder
 
build() - Method in class com.google.genai.types.RagRetrievalConfigRanking.Builder
 
build() - Method in class com.google.genai.types.RagRetrievalConfigRankingLlmRanker.Builder
 
build() - Method in class com.google.genai.types.RagRetrievalConfigRankingRankService.Builder
 
build() - Method in class com.google.genai.types.RawReferenceImage.Builder
 
build() - Method in class com.google.genai.types.RealtimeInputConfig.Builder
 
build() - Method in class com.google.genai.types.ReferenceImageAPI.Builder
 
build() - Method in class com.google.genai.types.ReplayFile.Builder
 
build() - Method in class com.google.genai.types.ReplayInteraction.Builder
 
build() - Method in class com.google.genai.types.ReplayRequest.Builder
 
build() - Method in class com.google.genai.types.ReplayResponse.Builder
 
build() - Method in class com.google.genai.types.Retrieval.Builder
 
build() - Method in class com.google.genai.types.RetrievalConfig.Builder
 
build() - Method in class com.google.genai.types.RetrievalMetadata.Builder
 
build() - Method in class com.google.genai.types.SafetyAttributes.Builder
 
build() - Method in class com.google.genai.types.SafetyRating.Builder
 
build() - Method in class com.google.genai.types.SafetySetting.Builder
 
build() - Method in class com.google.genai.types.Schema.Builder
 
build() - Method in class com.google.genai.types.SearchEntryPoint.Builder
 
build() - Method in class com.google.genai.types.Segment.Builder
 
build() - Method in class com.google.genai.types.SessionResumptionConfig.Builder
 
build() - Method in class com.google.genai.types.SlidingWindow.Builder
 
build() - Method in class com.google.genai.types.SpeakerVoiceConfig.Builder
 
build() - Method in class com.google.genai.types.SpeechConfig.Builder
 
build() - Method in class com.google.genai.types.StyleReferenceConfig.Builder
 
build() - Method in class com.google.genai.types.StyleReferenceImage.Builder
 
build() - Method in class com.google.genai.types.SubjectReferenceConfig.Builder
 
build() - Method in class com.google.genai.types.SubjectReferenceImage.Builder
 
build() - Method in class com.google.genai.types.TestTableFile.Builder
 
build() - Method in class com.google.genai.types.TestTableItem.Builder
 
build() - Method in class com.google.genai.types.ThinkingConfig.Builder
 
build() - Method in class com.google.genai.types.TokensInfo.Builder
 
build() - Method in class com.google.genai.types.Tool.Builder
 
build() - Method in class com.google.genai.types.ToolCodeExecution.Builder
 
build() - Method in class com.google.genai.types.ToolConfig.Builder
 
build() - Method in class com.google.genai.types.Transcription.Builder
 
build() - Method in class com.google.genai.types.TunedModelInfo.Builder
 
build() - Method in class com.google.genai.types.UpdateModelConfig.Builder
 
build() - Method in class com.google.genai.types.UpdateModelParameters.Builder
 
build() - Method in class com.google.genai.types.UploadFileConfig.Builder
 
build() - Method in class com.google.genai.types.UpscaleImageAPIConfig.Builder
 
build() - Method in class com.google.genai.types.UpscaleImageAPIParameters.Builder
 
build() - Method in class com.google.genai.types.UpscaleImageConfig.Builder
 
build() - Method in class com.google.genai.types.UpscaleImageParameters.Builder
 
build() - Method in class com.google.genai.types.UpscaleImageResponse.Builder
 
build() - Method in class com.google.genai.types.UrlContext.Builder
 
build() - Method in class com.google.genai.types.UrlContextMetadata.Builder
 
build() - Method in class com.google.genai.types.UrlMetadata.Builder
 
build() - Method in class com.google.genai.types.UsageMetadata.Builder
 
build() - Method in class com.google.genai.types.VertexAISearch.Builder
 
build() - Method in class com.google.genai.types.VertexRagStore.Builder
 
build() - Method in class com.google.genai.types.VertexRagStoreRagResource.Builder
 
build() - Method in class com.google.genai.types.Video.Builder
 
build() - Method in class com.google.genai.types.VideoMetadata.Builder
 
build() - Method in class com.google.genai.types.VoiceConfig.Builder
 
builder() - Static method in class com.google.genai.Client
Returns a Client.Builder for Client.
builder() - Static method in class com.google.genai.types.ActivityEnd
Instantiates a builder for ActivityEnd.
builder() - Static method in class com.google.genai.types.ActivityStart
Instantiates a builder for ActivityStart.
builder() - Static method in class com.google.genai.types.ApiKeyConfig
Instantiates a builder for ApiKeyConfig.
builder() - Static method in class com.google.genai.types.AudioTranscriptionConfig
Instantiates a builder for AudioTranscriptionConfig.
builder() - Static method in class com.google.genai.types.AuthConfig
Instantiates a builder for AuthConfig.
builder() - Static method in class com.google.genai.types.AuthConfigGoogleServiceAccountConfig
Instantiates a builder for AuthConfigGoogleServiceAccountConfig.
builder() - Static method in class com.google.genai.types.AuthConfigHttpBasicAuthConfig
Instantiates a builder for AuthConfigHttpBasicAuthConfig.
builder() - Static method in class com.google.genai.types.AuthConfigOauthConfig
Instantiates a builder for AuthConfigOauthConfig.
builder() - Static method in class com.google.genai.types.AuthConfigOidcConfig
Instantiates a builder for AuthConfigOidcConfig.
builder() - Static method in class com.google.genai.types.AuthToken
Instantiates a builder for AuthToken.
builder() - Static method in class com.google.genai.types.AutomaticActivityDetection
Instantiates a builder for AutomaticActivityDetection.
builder() - Static method in class com.google.genai.types.AutomaticFunctionCallingConfig
Instantiates a builder for AutomaticFunctionCallingConfig.
builder() - Static method in class com.google.genai.types.Blob
Instantiates a builder for Blob.
builder() - Static method in class com.google.genai.types.CachedContent
Instantiates a builder for CachedContent.
builder() - Static method in class com.google.genai.types.CachedContentUsageMetadata
Instantiates a builder for CachedContentUsageMetadata.
builder() - Static method in class com.google.genai.types.Candidate
Instantiates a builder for Candidate.
builder() - Static method in class com.google.genai.types.Checkpoint
Instantiates a builder for Checkpoint.
builder() - Static method in class com.google.genai.types.Citation
Instantiates a builder for Citation.
builder() - Static method in class com.google.genai.types.CitationMetadata
Instantiates a builder for CitationMetadata.
builder() - Static method in class com.google.genai.types.CodeExecutionResult
Instantiates a builder for CodeExecutionResult.
builder() - Static method in class com.google.genai.types.ComputeTokensConfig
Instantiates a builder for ComputeTokensConfig.
builder() - Static method in class com.google.genai.types.ComputeTokensParameters
Instantiates a builder for ComputeTokensParameters.
builder() - Static method in class com.google.genai.types.ComputeTokensResponse
Instantiates a builder for ComputeTokensResponse.
builder() - Static method in class com.google.genai.types.Content
Instantiates a builder for Content.
builder() - Static method in class com.google.genai.types.ContentEmbedding
Instantiates a builder for ContentEmbedding.
builder() - Static method in class com.google.genai.types.ContentEmbeddingStatistics
Instantiates a builder for ContentEmbeddingStatistics.
builder() - Static method in class com.google.genai.types.ContextWindowCompressionConfig
Instantiates a builder for ContextWindowCompressionConfig.
builder() - Static method in class com.google.genai.types.ControlReferenceConfig
Instantiates a builder for ControlReferenceConfig.
builder() - Static method in class com.google.genai.types.ControlReferenceImage
Instantiates a builder for ControlReferenceImage.
builder() - Static method in class com.google.genai.types.CountTokensConfig
Instantiates a builder for CountTokensConfig.
builder() - Static method in class com.google.genai.types.CountTokensParameters
Instantiates a builder for CountTokensParameters.
builder() - Static method in class com.google.genai.types.CountTokensResponse
Instantiates a builder for CountTokensResponse.
builder() - Static method in class com.google.genai.types.CreateAuthTokenConfig
Instantiates a builder for CreateAuthTokenConfig.
builder() - Static method in class com.google.genai.types.CreateAuthTokenParameters
Instantiates a builder for CreateAuthTokenParameters.
builder() - Static method in class com.google.genai.types.CreateCachedContentConfig
Instantiates a builder for CreateCachedContentConfig.
builder() - Static method in class com.google.genai.types.CreateCachedContentParameters
Instantiates a builder for CreateCachedContentParameters.
builder() - Static method in class com.google.genai.types.CreateFileConfig
Instantiates a builder for CreateFileConfig.
builder() - Static method in class com.google.genai.types.CreateFileParameters
Instantiates a builder for CreateFileParameters.
builder() - Static method in class com.google.genai.types.CreateFileResponse
Instantiates a builder for CreateFileResponse.
builder() - Static method in class com.google.genai.types.DeleteCachedContentConfig
Instantiates a builder for DeleteCachedContentConfig.
builder() - Static method in class com.google.genai.types.DeleteCachedContentParameters
Instantiates a builder for DeleteCachedContentParameters.
builder() - Static method in class com.google.genai.types.DeleteCachedContentResponse
Instantiates a builder for DeleteCachedContentResponse.
builder() - Static method in class com.google.genai.types.DeleteFileConfig
Instantiates a builder for DeleteFileConfig.
builder() - Static method in class com.google.genai.types.DeleteFileParameters
Instantiates a builder for DeleteFileParameters.
builder() - Static method in class com.google.genai.types.DeleteFileResponse
Instantiates a builder for DeleteFileResponse.
builder() - Static method in class com.google.genai.types.DeleteModelConfig
Instantiates a builder for DeleteModelConfig.
builder() - Static method in class com.google.genai.types.DeleteModelParameters
Instantiates a builder for DeleteModelParameters.
builder() - Static method in class com.google.genai.types.DeleteModelResponse
Instantiates a builder for DeleteModelResponse.
builder() - Static method in class com.google.genai.types.DownloadFileConfig
Instantiates a builder for DownloadFileConfig.
builder() - Static method in class com.google.genai.types.DynamicRetrievalConfig
Instantiates a builder for DynamicRetrievalConfig.
builder() - Static method in class com.google.genai.types.EditImageConfig
Instantiates a builder for EditImageConfig.
builder() - Static method in class com.google.genai.types.EditImageParameters
Instantiates a builder for EditImageParameters.
builder() - Static method in class com.google.genai.types.EditImageResponse
Instantiates a builder for EditImageResponse.
builder() - Static method in class com.google.genai.types.EmbedContentConfig
Instantiates a builder for EmbedContentConfig.
builder() - Static method in class com.google.genai.types.EmbedContentMetadata
Instantiates a builder for EmbedContentMetadata.
builder() - Static method in class com.google.genai.types.EmbedContentParameters
Instantiates a builder for EmbedContentParameters.
builder() - Static method in class com.google.genai.types.EmbedContentResponse
Instantiates a builder for EmbedContentResponse.
builder() - Static method in class com.google.genai.types.Endpoint
Instantiates a builder for Endpoint.
builder() - Static method in class com.google.genai.types.EnterpriseWebSearch
Instantiates a builder for EnterpriseWebSearch.
builder() - Static method in class com.google.genai.types.ExecutableCode
Instantiates a builder for ExecutableCode.
builder() - Static method in class com.google.genai.types.FetchPredictOperationConfig
Instantiates a builder for FetchPredictOperationConfig.
builder() - Static method in class com.google.genai.types.FetchPredictOperationParameters
Instantiates a builder for FetchPredictOperationParameters.
builder() - Static method in class com.google.genai.types.File
Instantiates a builder for File.
builder() - Static method in class com.google.genai.types.FileData
Instantiates a builder for FileData.
builder() - Static method in class com.google.genai.types.FileStatus
Instantiates a builder for FileStatus.
builder() - Static method in class com.google.genai.types.FunctionCall
Instantiates a builder for FunctionCall.
builder() - Static method in class com.google.genai.types.FunctionCallingConfig
Instantiates a builder for FunctionCallingConfig.
builder() - Static method in class com.google.genai.types.FunctionDeclaration
Instantiates a builder for FunctionDeclaration.
builder() - Static method in class com.google.genai.types.FunctionResponse
Instantiates a builder for FunctionResponse.
builder() - Static method in class com.google.genai.types.GenerateContentConfig
Instantiates a builder for GenerateContentConfig.
builder() - Static method in class com.google.genai.types.GenerateContentParameters
Instantiates a builder for GenerateContentParameters.
builder() - Static method in class com.google.genai.types.GenerateContentResponse
Instantiates a builder for GenerateContentResponse.
builder() - Static method in class com.google.genai.types.GenerateContentResponsePromptFeedback
Instantiates a builder for GenerateContentResponsePromptFeedback.
builder() - Static method in class com.google.genai.types.GenerateContentResponseUsageMetadata
Instantiates a builder for GenerateContentResponseUsageMetadata.
builder() - Static method in class com.google.genai.types.GeneratedImage
Instantiates a builder for GeneratedImage.
builder() - Static method in class com.google.genai.types.GeneratedVideo
Instantiates a builder for GeneratedVideo.
builder() - Static method in class com.google.genai.types.GenerateImagesConfig
Instantiates a builder for GenerateImagesConfig.
builder() - Static method in class com.google.genai.types.GenerateImagesParameters
Instantiates a builder for GenerateImagesParameters.
builder() - Static method in class com.google.genai.types.GenerateImagesResponse
Instantiates a builder for GenerateImagesResponse.
builder() - Static method in class com.google.genai.types.GenerateVideosConfig
Instantiates a builder for GenerateVideosConfig.
builder() - Static method in class com.google.genai.types.GenerateVideosOperation
Instantiates a builder for GenerateVideosOperation.
builder() - Static method in class com.google.genai.types.GenerateVideosParameters
Instantiates a builder for GenerateVideosParameters.
builder() - Static method in class com.google.genai.types.GenerateVideosResponse
Instantiates a builder for GenerateVideosResponse.
builder() - Static method in class com.google.genai.types.GenerationConfig
Instantiates a builder for GenerationConfig.
builder() - Static method in class com.google.genai.types.GenerationConfigRoutingConfig
Instantiates a builder for GenerationConfigRoutingConfig.
builder() - Static method in class com.google.genai.types.GenerationConfigRoutingConfigAutoRoutingMode
Instantiates a builder for GenerationConfigRoutingConfigAutoRoutingMode.
builder() - Static method in class com.google.genai.types.GenerationConfigRoutingConfigManualRoutingMode
Instantiates a builder for GenerationConfigRoutingConfigManualRoutingMode.
builder() - Static method in class com.google.genai.types.GetCachedContentConfig
Instantiates a builder for GetCachedContentConfig.
builder() - Static method in class com.google.genai.types.GetCachedContentParameters
Instantiates a builder for GetCachedContentParameters.
builder() - Static method in class com.google.genai.types.GetFileConfig
Instantiates a builder for GetFileConfig.
builder() - Static method in class com.google.genai.types.GetFileParameters
Instantiates a builder for GetFileParameters.
builder() - Static method in class com.google.genai.types.GetModelConfig
Instantiates a builder for GetModelConfig.
builder() - Static method in class com.google.genai.types.GetModelParameters
Instantiates a builder for GetModelParameters.
builder() - Static method in class com.google.genai.types.GetOperationConfig
Instantiates a builder for GetOperationConfig.
builder() - Static method in class com.google.genai.types.GetOperationParameters
Instantiates a builder for GetOperationParameters.
builder() - Static method in class com.google.genai.types.GoogleMaps
Instantiates a builder for GoogleMaps.
builder() - Static method in class com.google.genai.types.GoogleSearch
Instantiates a builder for GoogleSearch.
builder() - Static method in class com.google.genai.types.GoogleSearchRetrieval
Instantiates a builder for GoogleSearchRetrieval.
builder() - Static method in class com.google.genai.types.GoogleTypeDate
Instantiates a builder for GoogleTypeDate.
builder() - Static method in class com.google.genai.types.GroundingChunk
Instantiates a builder for GroundingChunk.
builder() - Static method in class com.google.genai.types.GroundingChunkRetrievedContext
Instantiates a builder for GroundingChunkRetrievedContext.
builder() - Static method in class com.google.genai.types.GroundingChunkWeb
Instantiates a builder for GroundingChunkWeb.
builder() - Static method in class com.google.genai.types.GroundingMetadata
Instantiates a builder for GroundingMetadata.
builder() - Static method in class com.google.genai.types.GroundingSupport
Instantiates a builder for GroundingSupport.
builder() - Static method in class com.google.genai.types.HttpOptions
Instantiates a builder for HttpOptions.
builder() - Static method in class com.google.genai.types.HttpResponse
Instantiates a builder for HttpResponse.
builder() - Static method in class com.google.genai.types.Image
Instantiates a builder for Image.
builder() - Static method in class com.google.genai.types.Interval
Instantiates a builder for Interval.
builder() - Static method in class com.google.genai.types.LatLng
Instantiates a builder for LatLng.
builder() - Static method in class com.google.genai.types.ListCachedContentsConfig
Instantiates a builder for ListCachedContentsConfig.
builder() - Static method in class com.google.genai.types.ListCachedContentsParameters
Instantiates a builder for ListCachedContentsParameters.
builder() - Static method in class com.google.genai.types.ListCachedContentsResponse
Instantiates a builder for ListCachedContentsResponse.
builder() - Static method in class com.google.genai.types.ListFilesConfig
Instantiates a builder for ListFilesConfig.
builder() - Static method in class com.google.genai.types.ListFilesParameters
Instantiates a builder for ListFilesParameters.
builder() - Static method in class com.google.genai.types.ListFilesResponse
Instantiates a builder for ListFilesResponse.
builder() - Static method in class com.google.genai.types.ListModelsConfig
Instantiates a builder for ListModelsConfig.
builder() - Static method in class com.google.genai.types.ListModelsParameters
Instantiates a builder for ListModelsParameters.
builder() - Static method in class com.google.genai.types.ListModelsResponse
Instantiates a builder for ListModelsResponse.
builder() - Static method in class com.google.genai.types.LiveClientContent
Instantiates a builder for LiveClientContent.
builder() - Static method in class com.google.genai.types.LiveClientMessage
Instantiates a builder for LiveClientMessage.
builder() - Static method in class com.google.genai.types.LiveClientRealtimeInput
Instantiates a builder for LiveClientRealtimeInput.
builder() - Static method in class com.google.genai.types.LiveClientSetup
Instantiates a builder for LiveClientSetup.
builder() - Static method in class com.google.genai.types.LiveClientToolResponse
Instantiates a builder for LiveClientToolResponse.
builder() - Static method in class com.google.genai.types.LiveConnectConfig
Instantiates a builder for LiveConnectConfig.
builder() - Static method in class com.google.genai.types.LiveConnectParameters
Instantiates a builder for LiveConnectParameters.
builder() - Static method in class com.google.genai.types.LiveConstrainedParameters
Instantiates a builder for LiveConstrainedParameters.
builder() - Static method in class com.google.genai.types.LiveEphemeralParameters
Instantiates a builder for LiveEphemeralParameters.
builder() - Static method in class com.google.genai.types.LiveSendClientContentParameters
Instantiates a builder for LiveSendClientContentParameters.
builder() - Static method in class com.google.genai.types.LiveSendRealtimeInputParameters
Instantiates a builder for LiveSendRealtimeInputParameters.
builder() - Static method in class com.google.genai.types.LiveSendToolResponseParameters
Instantiates a builder for LiveSendToolResponseParameters.
builder() - Static method in class com.google.genai.types.LiveServerContent
Instantiates a builder for LiveServerContent.
builder() - Static method in class com.google.genai.types.LiveServerGoAway
Instantiates a builder for LiveServerGoAway.
builder() - Static method in class com.google.genai.types.LiveServerMessage
Instantiates a builder for LiveServerMessage.
builder() - Static method in class com.google.genai.types.LiveServerSessionResumptionUpdate
Instantiates a builder for LiveServerSessionResumptionUpdate.
builder() - Static method in class com.google.genai.types.LiveServerSetupComplete
Instantiates a builder for LiveServerSetupComplete.
builder() - Static method in class com.google.genai.types.LiveServerToolCall
Instantiates a builder for LiveServerToolCall.
builder() - Static method in class com.google.genai.types.LiveServerToolCallCancellation
Instantiates a builder for LiveServerToolCallCancellation.
builder() - Static method in class com.google.genai.types.LogprobsResult
Instantiates a builder for LogprobsResult.
builder() - Static method in class com.google.genai.types.LogprobsResultCandidate
Instantiates a builder for LogprobsResultCandidate.
builder() - Static method in class com.google.genai.types.LogprobsResultTopCandidates
Instantiates a builder for LogprobsResultTopCandidates.
builder() - Static method in class com.google.genai.types.MaskReferenceConfig
Instantiates a builder for MaskReferenceConfig.
builder() - Static method in class com.google.genai.types.MaskReferenceImage
Instantiates a builder for MaskReferenceImage.
builder() - Static method in class com.google.genai.types.ModalityTokenCount
Instantiates a builder for ModalityTokenCount.
builder() - Static method in class com.google.genai.types.Model
Instantiates a builder for Model.
builder() - Static method in class com.google.genai.types.ModelSelectionConfig
Instantiates a builder for ModelSelectionConfig.
builder() - Static method in class com.google.genai.types.MultiSpeakerVoiceConfig
Instantiates a builder for MultiSpeakerVoiceConfig.
builder() - Static method in class com.google.genai.types.Part
Instantiates a builder for Part.
builder() - Static method in class com.google.genai.types.PrebuiltVoiceConfig
Instantiates a builder for PrebuiltVoiceConfig.
builder() - Static method in class com.google.genai.types.ProactivityConfig
Instantiates a builder for ProactivityConfig.
builder() - Static method in class com.google.genai.types.RagRetrievalConfig
Instantiates a builder for RagRetrievalConfig.
builder() - Static method in class com.google.genai.types.RagRetrievalConfigFilter
Instantiates a builder for RagRetrievalConfigFilter.
builder() - Static method in class com.google.genai.types.RagRetrievalConfigHybridSearch
Instantiates a builder for RagRetrievalConfigHybridSearch.
builder() - Static method in class com.google.genai.types.RagRetrievalConfigRanking
Instantiates a builder for RagRetrievalConfigRanking.
builder() - Static method in class com.google.genai.types.RagRetrievalConfigRankingLlmRanker
Instantiates a builder for RagRetrievalConfigRankingLlmRanker.
builder() - Static method in class com.google.genai.types.RagRetrievalConfigRankingRankService
Instantiates a builder for RagRetrievalConfigRankingRankService.
builder() - Static method in class com.google.genai.types.RawReferenceImage
Instantiates a builder for RawReferenceImage.
builder() - Static method in class com.google.genai.types.RealtimeInputConfig
Instantiates a builder for RealtimeInputConfig.
builder() - Static method in class com.google.genai.types.ReferenceImageAPI
Instantiates a builder for ReferenceImageAPI.
builder() - Static method in class com.google.genai.types.ReplayFile
Instantiates a builder for ReplayFile.
builder() - Static method in class com.google.genai.types.ReplayInteraction
Instantiates a builder for ReplayInteraction.
builder() - Static method in class com.google.genai.types.ReplayRequest
Instantiates a builder for ReplayRequest.
builder() - Static method in class com.google.genai.types.ReplayResponse
Instantiates a builder for ReplayResponse.
builder() - Static method in class com.google.genai.types.Retrieval
Instantiates a builder for Retrieval.
builder() - Static method in class com.google.genai.types.RetrievalConfig
Instantiates a builder for RetrievalConfig.
builder() - Static method in class com.google.genai.types.RetrievalMetadata
Instantiates a builder for RetrievalMetadata.
builder() - Static method in class com.google.genai.types.SafetyAttributes
Instantiates a builder for SafetyAttributes.
builder() - Static method in class com.google.genai.types.SafetyRating
Instantiates a builder for SafetyRating.
builder() - Static method in class com.google.genai.types.SafetySetting
Instantiates a builder for SafetySetting.
builder() - Static method in class com.google.genai.types.Schema
Instantiates a builder for Schema.
builder() - Static method in class com.google.genai.types.SearchEntryPoint
Instantiates a builder for SearchEntryPoint.
builder() - Static method in class com.google.genai.types.Segment
Instantiates a builder for Segment.
builder() - Static method in class com.google.genai.types.SessionResumptionConfig
Instantiates a builder for SessionResumptionConfig.
builder() - Static method in class com.google.genai.types.SlidingWindow
Instantiates a builder for SlidingWindow.
builder() - Static method in class com.google.genai.types.SpeakerVoiceConfig
Instantiates a builder for SpeakerVoiceConfig.
builder() - Static method in class com.google.genai.types.SpeechConfig
Instantiates a builder for SpeechConfig.
builder() - Static method in class com.google.genai.types.StyleReferenceConfig
Instantiates a builder for StyleReferenceConfig.
builder() - Static method in class com.google.genai.types.StyleReferenceImage
Instantiates a builder for StyleReferenceImage.
builder() - Static method in class com.google.genai.types.SubjectReferenceConfig
Instantiates a builder for SubjectReferenceConfig.
builder() - Static method in class com.google.genai.types.SubjectReferenceImage
Instantiates a builder for SubjectReferenceImage.
builder() - Static method in class com.google.genai.types.TestTableFile
Instantiates a builder for TestTableFile.
builder() - Static method in class com.google.genai.types.TestTableItem
Instantiates a builder for TestTableItem.
builder() - Static method in class com.google.genai.types.ThinkingConfig
Instantiates a builder for ThinkingConfig.
builder() - Static method in class com.google.genai.types.TokensInfo
Instantiates a builder for TokensInfo.
builder() - Static method in class com.google.genai.types.Tool
Instantiates a builder for Tool.
builder() - Static method in class com.google.genai.types.ToolCodeExecution
Instantiates a builder for ToolCodeExecution.
builder() - Static method in class com.google.genai.types.ToolConfig
Instantiates a builder for ToolConfig.
builder() - Static method in class com.google.genai.types.Transcription
Instantiates a builder for Transcription.
builder() - Static method in class com.google.genai.types.TunedModelInfo
Instantiates a builder for TunedModelInfo.
builder() - Static method in class com.google.genai.types.UpdateModelConfig
Instantiates a builder for UpdateModelConfig.
builder() - Static method in class com.google.genai.types.UpdateModelParameters
Instantiates a builder for UpdateModelParameters.
builder() - Static method in class com.google.genai.types.UploadFileConfig
Instantiates a builder for UploadFileConfig.
builder() - Static method in class com.google.genai.types.UpscaleImageAPIConfig
Instantiates a builder for UpscaleImageAPIConfig.
builder() - Static method in class com.google.genai.types.UpscaleImageAPIParameters
Instantiates a builder for UpscaleImageAPIParameters.
builder() - Static method in class com.google.genai.types.UpscaleImageConfig
Instantiates a builder for UpscaleImageConfig.
builder() - Static method in class com.google.genai.types.UpscaleImageParameters
Instantiates a builder for UpscaleImageParameters.
builder() - Static method in class com.google.genai.types.UpscaleImageResponse
Instantiates a builder for UpscaleImageResponse.
builder() - Static method in class com.google.genai.types.UrlContext
Instantiates a builder for UrlContext.
builder() - Static method in class com.google.genai.types.UrlContextMetadata
Instantiates a builder for UrlContextMetadata.
builder() - Static method in class com.google.genai.types.UrlMetadata
Instantiates a builder for UrlMetadata.
builder() - Static method in class com.google.genai.types.UsageMetadata
Instantiates a builder for UsageMetadata.
builder() - Static method in class com.google.genai.types.VertexAISearch
Instantiates a builder for VertexAISearch.
builder() - Static method in class com.google.genai.types.VertexRagStore
Instantiates a builder for VertexRagStore.
builder() - Static method in class com.google.genai.types.VertexRagStoreRagResource
Instantiates a builder for VertexRagStoreRagResource.
builder() - Static method in class com.google.genai.types.Video
Instantiates a builder for Video.
builder() - Static method in class com.google.genai.types.VideoMetadata
Instantiates a builder for VideoMetadata.
builder() - Static method in class com.google.genai.types.VoiceConfig
Instantiates a builder for VoiceConfig.
Builder() - Constructor for class com.google.genai.Client.Builder
 
Builder() - Constructor for class com.google.genai.types.ActivityEnd.Builder
 
Builder() - Constructor for class com.google.genai.types.ActivityStart.Builder
 
Builder() - Constructor for class com.google.genai.types.ApiKeyConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.AudioTranscriptionConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.AuthConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.AuthConfigGoogleServiceAccountConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.AuthConfigHttpBasicAuthConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.AuthConfigOauthConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.AuthConfigOidcConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.AuthToken.Builder
 
Builder() - Constructor for class com.google.genai.types.AutomaticActivityDetection.Builder
 
Builder() - Constructor for class com.google.genai.types.AutomaticFunctionCallingConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.Blob.Builder
 
Builder() - Constructor for class com.google.genai.types.CachedContent.Builder
 
Builder() - Constructor for class com.google.genai.types.CachedContentUsageMetadata.Builder
 
Builder() - Constructor for class com.google.genai.types.Candidate.Builder
 
Builder() - Constructor for class com.google.genai.types.Checkpoint.Builder
 
Builder() - Constructor for class com.google.genai.types.Citation.Builder
 
Builder() - Constructor for class com.google.genai.types.CitationMetadata.Builder
 
Builder() - Constructor for class com.google.genai.types.CodeExecutionResult.Builder
 
Builder() - Constructor for class com.google.genai.types.ComputeTokensConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.ComputeTokensParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.ComputeTokensResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.Content.Builder
 
Builder() - Constructor for class com.google.genai.types.ContentEmbedding.Builder
 
Builder() - Constructor for class com.google.genai.types.ContentEmbeddingStatistics.Builder
 
Builder() - Constructor for class com.google.genai.types.ContextWindowCompressionConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.ControlReferenceConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.ControlReferenceImage.Builder
 
Builder() - Constructor for class com.google.genai.types.CountTokensConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.CountTokensParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.CountTokensResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.CreateAuthTokenConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.CreateAuthTokenParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.CreateCachedContentConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.CreateCachedContentParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.CreateFileConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.CreateFileParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.CreateFileResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.DeleteCachedContentConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.DeleteCachedContentParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.DeleteCachedContentResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.DeleteFileConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.DeleteFileParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.DeleteFileResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.DeleteModelConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.DeleteModelParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.DeleteModelResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.DownloadFileConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.DynamicRetrievalConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.EditImageConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.EditImageParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.EditImageResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.EmbedContentConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.EmbedContentMetadata.Builder
 
Builder() - Constructor for class com.google.genai.types.EmbedContentParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.EmbedContentResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.Endpoint.Builder
 
Builder() - Constructor for class com.google.genai.types.EnterpriseWebSearch.Builder
 
Builder() - Constructor for class com.google.genai.types.ExecutableCode.Builder
 
Builder() - Constructor for class com.google.genai.types.FetchPredictOperationConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.FetchPredictOperationParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.File.Builder
 
Builder() - Constructor for class com.google.genai.types.FileData.Builder
 
Builder() - Constructor for class com.google.genai.types.FileStatus.Builder
 
Builder() - Constructor for class com.google.genai.types.FunctionCall.Builder
 
Builder() - Constructor for class com.google.genai.types.FunctionCallingConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.FunctionDeclaration.Builder
 
Builder() - Constructor for class com.google.genai.types.FunctionResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.GenerateContentConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.GenerateContentParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.GenerateContentResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.GenerateContentResponsePromptFeedback.Builder
 
Builder() - Constructor for class com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
 
Builder() - Constructor for class com.google.genai.types.GeneratedImage.Builder
 
Builder() - Constructor for class com.google.genai.types.GeneratedVideo.Builder
 
Builder() - Constructor for class com.google.genai.types.GenerateImagesConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.GenerateImagesParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.GenerateImagesResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.GenerateVideosConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.GenerateVideosOperation.Builder
 
Builder() - Constructor for class com.google.genai.types.GenerateVideosParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.GenerateVideosResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.GenerationConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.GenerationConfigRoutingConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.GenerationConfigRoutingConfigAutoRoutingMode.Builder
 
Builder() - Constructor for class com.google.genai.types.GenerationConfigRoutingConfigManualRoutingMode.Builder
 
Builder() - Constructor for class com.google.genai.types.GetCachedContentConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.GetCachedContentParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.GetFileConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.GetFileParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.GetModelConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.GetModelParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.GetOperationConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.GetOperationParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.GoogleMaps.Builder
 
Builder() - Constructor for class com.google.genai.types.GoogleSearch.Builder
 
Builder() - Constructor for class com.google.genai.types.GoogleSearchRetrieval.Builder
 
Builder() - Constructor for class com.google.genai.types.GoogleTypeDate.Builder
 
Builder() - Constructor for class com.google.genai.types.GroundingChunk.Builder
 
Builder() - Constructor for class com.google.genai.types.GroundingChunkRetrievedContext.Builder
 
Builder() - Constructor for class com.google.genai.types.GroundingChunkWeb.Builder
 
Builder() - Constructor for class com.google.genai.types.GroundingMetadata.Builder
 
Builder() - Constructor for class com.google.genai.types.GroundingSupport.Builder
 
Builder() - Constructor for class com.google.genai.types.HttpOptions.Builder
 
Builder() - Constructor for class com.google.genai.types.HttpResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.Image.Builder
 
Builder() - Constructor for class com.google.genai.types.Interval.Builder
 
Builder() - Constructor for class com.google.genai.types.LatLng.Builder
 
Builder() - Constructor for class com.google.genai.types.ListCachedContentsConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.ListCachedContentsParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.ListCachedContentsResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.ListFilesConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.ListFilesParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.ListFilesResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.ListModelsConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.ListModelsParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.ListModelsResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveClientContent.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveClientMessage.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveClientRealtimeInput.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveClientSetup.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveClientToolResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveConnectConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveConnectParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveConstrainedParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveEphemeralParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveSendClientContentParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveSendRealtimeInputParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveSendToolResponseParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveServerContent.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveServerGoAway.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveServerMessage.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveServerSessionResumptionUpdate.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveServerSetupComplete.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveServerToolCall.Builder
 
Builder() - Constructor for class com.google.genai.types.LiveServerToolCallCancellation.Builder
 
Builder() - Constructor for class com.google.genai.types.LogprobsResult.Builder
 
Builder() - Constructor for class com.google.genai.types.LogprobsResultCandidate.Builder
 
Builder() - Constructor for class com.google.genai.types.LogprobsResultTopCandidates.Builder
 
Builder() - Constructor for class com.google.genai.types.MaskReferenceConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.MaskReferenceImage.Builder
 
Builder() - Constructor for class com.google.genai.types.ModalityTokenCount.Builder
 
Builder() - Constructor for class com.google.genai.types.Model.Builder
 
Builder() - Constructor for class com.google.genai.types.ModelSelectionConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.MultiSpeakerVoiceConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.Part.Builder
 
Builder() - Constructor for class com.google.genai.types.PrebuiltVoiceConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.ProactivityConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.RagRetrievalConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.RagRetrievalConfigFilter.Builder
 
Builder() - Constructor for class com.google.genai.types.RagRetrievalConfigHybridSearch.Builder
 
Builder() - Constructor for class com.google.genai.types.RagRetrievalConfigRanking.Builder
 
Builder() - Constructor for class com.google.genai.types.RagRetrievalConfigRankingLlmRanker.Builder
 
Builder() - Constructor for class com.google.genai.types.RagRetrievalConfigRankingRankService.Builder
 
Builder() - Constructor for class com.google.genai.types.RawReferenceImage.Builder
 
Builder() - Constructor for class com.google.genai.types.RealtimeInputConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.ReferenceImageAPI.Builder
 
Builder() - Constructor for class com.google.genai.types.ReplayFile.Builder
 
Builder() - Constructor for class com.google.genai.types.ReplayInteraction.Builder
 
Builder() - Constructor for class com.google.genai.types.ReplayRequest.Builder
 
Builder() - Constructor for class com.google.genai.types.ReplayResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.Retrieval.Builder
 
Builder() - Constructor for class com.google.genai.types.RetrievalConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.RetrievalMetadata.Builder
 
Builder() - Constructor for class com.google.genai.types.SafetyAttributes.Builder
 
Builder() - Constructor for class com.google.genai.types.SafetyRating.Builder
 
Builder() - Constructor for class com.google.genai.types.SafetySetting.Builder
 
Builder() - Constructor for class com.google.genai.types.Schema.Builder
 
Builder() - Constructor for class com.google.genai.types.SearchEntryPoint.Builder
 
Builder() - Constructor for class com.google.genai.types.Segment.Builder
 
Builder() - Constructor for class com.google.genai.types.SessionResumptionConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.SlidingWindow.Builder
 
Builder() - Constructor for class com.google.genai.types.SpeakerVoiceConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.SpeechConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.StyleReferenceConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.StyleReferenceImage.Builder
 
Builder() - Constructor for class com.google.genai.types.SubjectReferenceConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.SubjectReferenceImage.Builder
 
Builder() - Constructor for class com.google.genai.types.TestTableFile.Builder
 
Builder() - Constructor for class com.google.genai.types.TestTableItem.Builder
 
Builder() - Constructor for class com.google.genai.types.ThinkingConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.TokensInfo.Builder
 
Builder() - Constructor for class com.google.genai.types.Tool.Builder
 
Builder() - Constructor for class com.google.genai.types.ToolCodeExecution.Builder
 
Builder() - Constructor for class com.google.genai.types.ToolConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.Transcription.Builder
 
Builder() - Constructor for class com.google.genai.types.TunedModelInfo.Builder
 
Builder() - Constructor for class com.google.genai.types.UpdateModelConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.UpdateModelParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.UploadFileConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.UpscaleImageAPIConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.UpscaleImageAPIParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.UpscaleImageConfig.Builder
 
Builder() - Constructor for class com.google.genai.types.UpscaleImageParameters.Builder
 
Builder() - Constructor for class com.google.genai.types.UpscaleImageResponse.Builder
 
Builder() - Constructor for class com.google.genai.types.UrlContext.Builder
 
Builder() - Constructor for class com.google.genai.types.UrlContextMetadata.Builder
 
Builder() - Constructor for class com.google.genai.types.UrlMetadata.Builder
 
Builder() - Constructor for class com.google.genai.types.UsageMetadata.Builder
 
Builder() - Constructor for class com.google.genai.types.VertexAISearch.Builder
 
Builder() - Constructor for class com.google.genai.types.VertexRagStore.Builder
 
Builder() - Constructor for class com.google.genai.types.VertexRagStoreRagResource.Builder
 
Builder() - Constructor for class com.google.genai.types.Video.Builder
 
Builder() - Constructor for class com.google.genai.types.VideoMetadata.Builder
 
Builder() - Constructor for class com.google.genai.types.VoiceConfig.Builder
 

C

cachedContent() - Method in class com.google.genai.types.GenerateContentConfig
Resource name of a context cache that can be used in subsequent requests.
cachedContent(String) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
CachedContent - Class in com.google.genai.types
A resource used in LLM queries for users to explicitly specify what to cache.
CachedContent() - Constructor for class com.google.genai.types.CachedContent
 
CachedContent.Builder - Class in com.google.genai.types
Builder for CachedContent.
cachedContents() - Method in class com.google.genai.types.ListCachedContentsResponse
List of cached contents.
cachedContents(List<CachedContent>) - Method in class com.google.genai.types.ListCachedContentsResponse.Builder
 
cachedContentTokenCount() - Method in class com.google.genai.types.CountTokensResponse
Number of tokens in the cached part of the prompt (the cached content).
cachedContentTokenCount() - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata
Output only.
cachedContentTokenCount() - Method in class com.google.genai.types.UsageMetadata
Number of tokens in the cached part of the prompt (the cached content).
cachedContentTokenCount(Integer) - Method in class com.google.genai.types.CountTokensResponse.Builder
 
cachedContentTokenCount(Integer) - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
 
cachedContentTokenCount(Integer) - Method in class com.google.genai.types.UsageMetadata.Builder
 
CachedContentUsageMetadata - Class in com.google.genai.types
Metadata on the usage of the cached content.
CachedContentUsageMetadata() - Constructor for class com.google.genai.types.CachedContentUsageMetadata
 
CachedContentUsageMetadata.Builder - Class in com.google.genai.types
Builder for CachedContentUsageMetadata.
caches - Variable in class com.google.genai.Client.Async
 
caches - Variable in class com.google.genai.Client
 
Caches - Class in com.google.genai
Provides methods for managing the cached content.
Caches(ApiClient) - Constructor for class com.google.genai.Caches
 
cacheTokensDetails() - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata
Output only.
cacheTokensDetails() - Method in class com.google.genai.types.UsageMetadata
List of modalities that were processed in the cache input.
cacheTokensDetails(List<ModalityTokenCount>) - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
 
cacheTokensDetails(List<ModalityTokenCount>) - Method in class com.google.genai.types.UsageMetadata.Builder
 
Candidate - Class in com.google.genai.types
A response candidate generated from the model.
Candidate() - Constructor for class com.google.genai.types.Candidate
 
Candidate.Builder - Class in com.google.genai.types
Builder for Candidate.
candidateCount() - Method in class com.google.genai.types.GenerateContentConfig
Number of response variations to return.
candidateCount() - Method in class com.google.genai.types.GenerationConfig
Optional.
candidateCount(Integer) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
candidateCount(Integer) - Method in class com.google.genai.types.GenerationConfig.Builder
 
candidates() - Method in class com.google.genai.types.GenerateContentResponse
Response variations returned by the model.
candidates() - Method in class com.google.genai.types.LogprobsResultTopCandidates
Sorted by log probability in descending order.
candidates(List<Candidate>) - Method in class com.google.genai.types.GenerateContentResponse.Builder
 
candidates(List<LogprobsResultCandidate>) - Method in class com.google.genai.types.LogprobsResultTopCandidates.Builder
 
candidatesTokenCount() - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata
Number of tokens in the response(s).
candidatesTokenCount(Integer) - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
 
candidatesTokensDetails() - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata
Output only.
candidatesTokensDetails(List<ModalityTokenCount>) - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
 
categories() - Method in class com.google.genai.types.SafetyAttributes
List of RAI categories.
categories(List<String>) - Method in class com.google.genai.types.SafetyAttributes.Builder
 
category() - Method in class com.google.genai.types.SafetyRating
Output only.
category() - Method in class com.google.genai.types.SafetySetting
Required.
category(HarmCategory) - Method in class com.google.genai.types.SafetyRating.Builder
 
category(HarmCategory) - Method in class com.google.genai.types.SafetySetting.Builder
 
category(HarmCategory.Known) - Method in class com.google.genai.types.SafetyRating.Builder
 
category(HarmCategory.Known) - Method in class com.google.genai.types.SafetySetting.Builder
 
category(String) - Method in class com.google.genai.types.SafetyRating.Builder
 
category(String) - Method in class com.google.genai.types.SafetySetting.Builder
 
Chat - Class in com.google.genai
A chat session with a generative model.
chats - Variable in class com.google.genai.Client.Async
 
chats - Variable in class com.google.genai.Client
 
Chats - Class in com.google.genai
A class for creating chat sessions.
checkFinishReason() - Method in class com.google.genai.types.GenerateContentResponse
Throws an exception if the response finishes unexpectedly.
Checkpoint - Class in com.google.genai.types
Describes the machine learning model version checkpoint.
Checkpoint() - Constructor for class com.google.genai.types.Checkpoint
 
Checkpoint.Builder - Class in com.google.genai.types
Builder for Checkpoint.
checkpointId() - Method in class com.google.genai.types.Checkpoint
The ID of the checkpoint.
checkpointId(String) - Method in class com.google.genai.types.Checkpoint.Builder
 
checkpoints() - Method in class com.google.genai.types.Model
The checkpoints of the model.
checkpoints(List<Checkpoint>) - Method in class com.google.genai.types.Model.Builder
 
chosenCandidates() - Method in class com.google.genai.types.LogprobsResult
Length = total number of decoding steps.
chosenCandidates(List<LogprobsResultCandidate>) - Method in class com.google.genai.types.LogprobsResult.Builder
 
Citation - Class in com.google.genai.types
Source attributions for content.
Citation() - Constructor for class com.google.genai.types.Citation
 
Citation.Builder - Class in com.google.genai.types
Builder for Citation.
citationMetadata() - Method in class com.google.genai.types.Candidate
Source attribution of the generated content.
citationMetadata(CitationMetadata) - Method in class com.google.genai.types.Candidate.Builder
 
CitationMetadata - Class in com.google.genai.types
Citation information when the model quotes another source.
CitationMetadata() - Constructor for class com.google.genai.types.CitationMetadata
 
CitationMetadata.Builder - Class in com.google.genai.types
Builder for CitationMetadata.
citations() - Method in class com.google.genai.types.CitationMetadata
Contains citation information when the model directly quotes, at length, from another source.
citations(List<Citation>) - Method in class com.google.genai.types.CitationMetadata.Builder
 
Client - Class in com.google.genai
Client class for GenAI.
Client() - Constructor for class com.google.genai.Client
Constructs a Client instance with environment variables.
Client.Async - Class in com.google.genai
Async class for GenAI.
Client.Builder - Class in com.google.genai
Builder for Client.
clientContent() - Method in class com.google.genai.types.LiveClientMessage
Incremental update of the current conversation delivered from the client.
clientContent(LiveClientContent) - Method in class com.google.genai.types.LiveClientMessage.Builder
 
ClientException - Exception in com.google.genai.errors
Client exception raised by the GenAI API.
ClientException(int, String, String) - Constructor for exception com.google.genai.errors.ClientException
Creates a new ClientException with the specified message.
close() - Method in class com.google.genai.AsyncSession
Closes the WebSocket connection.
close() - Method in class com.google.genai.Client
Closes the Client instance together with its instantiated http client.
close() - Method in class com.google.genai.ResponseStream
 
code() - Method in exception com.google.genai.errors.ApiException
Returns the status code from the API response.
code() - Method in class com.google.genai.types.ExecutableCode
Required.
code() - Method in class com.google.genai.types.FileStatus
The status code. 0 for OK, 1 for CANCELLED
code(Integer) - Method in class com.google.genai.types.FileStatus.Builder
 
code(String) - Method in class com.google.genai.types.ExecutableCode.Builder
 
codeExecution() - Method in class com.google.genai.types.Tool
Optional.
codeExecution(ToolCodeExecution) - Method in class com.google.genai.types.Tool.Builder
 
codeExecutionResult() - Method in class com.google.genai.types.GenerateContentResponse
Returns the code execution result in the response.
codeExecutionResult() - Method in class com.google.genai.types.Part
Optional.
codeExecutionResult(CodeExecutionResult) - Method in class com.google.genai.types.Part.Builder
 
CodeExecutionResult - Class in com.google.genai.types
Result of executing the [ExecutableCode].
CodeExecutionResult() - Constructor for class com.google.genai.types.CodeExecutionResult
 
CodeExecutionResult.Builder - Class in com.google.genai.types
Builder for CodeExecutionResult.
com.google.genai - package com.google.genai
 
com.google.genai.errors - package com.google.genai.errors
 
com.google.genai.types - package com.google.genai.types
 
comment() - Method in class com.google.genai.types.TestTableFile
 
comment(String) - Method in class com.google.genai.types.TestTableFile.Builder
 
computeTokens(String, String, ComputeTokensConfig) - Method in class com.google.genai.AsyncModels
Asynchronously computes tokens given a GenAI model and a text string.
computeTokens(String, String, ComputeTokensConfig) - Method in class com.google.genai.Models
Computes tokens given a GenAI model and a text string.
computeTokens(String, List<Content>, ComputeTokensConfig) - Method in class com.google.genai.AsyncModels
Asynchronously computes tokens given a GenAI model and a list of content.
computeTokens(String, List<Content>, ComputeTokensConfig) - Method in class com.google.genai.Models
Computes tokens given a GenAI model and a list of content.
ComputeTokensConfig - Class in com.google.genai.types
Optional parameters for computing tokens.
ComputeTokensConfig() - Constructor for class com.google.genai.types.ComputeTokensConfig
 
ComputeTokensConfig.Builder - Class in com.google.genai.types
Builder for ComputeTokensConfig.
ComputeTokensParameters - Class in com.google.genai.types
Parameters for computing tokens.
ComputeTokensParameters() - Constructor for class com.google.genai.types.ComputeTokensParameters
 
ComputeTokensParameters.Builder - Class in com.google.genai.types
Builder for ComputeTokensParameters.
ComputeTokensResponse - Class in com.google.genai.types
Response for computing tokens.
ComputeTokensResponse() - Constructor for class com.google.genai.types.ComputeTokensResponse
 
ComputeTokensResponse.Builder - Class in com.google.genai.types
Builder for ComputeTokensResponse.
confidenceScores() - Method in class com.google.genai.types.GroundingSupport
Confidence score of the support references.
confidenceScores(List<Float>) - Method in class com.google.genai.types.GroundingSupport.Builder
 
config() - Method in class com.google.genai.types.ComputeTokensParameters
Optional parameters for the request.
config() - Method in class com.google.genai.types.ControlReferenceImage
Configuration for the control reference image.
config() - Method in class com.google.genai.types.CountTokensParameters
Configuration for counting tokens.
config() - Method in class com.google.genai.types.CreateAuthTokenParameters
Optional parameters for the request.
config() - Method in class com.google.genai.types.CreateCachedContentParameters
Configuration that contains optional parameters.
config() - Method in class com.google.genai.types.CreateFileParameters
Used to override the default configuration.
config() - Method in class com.google.genai.types.DeleteCachedContentParameters
Optional parameters for the request.
config() - Method in class com.google.genai.types.DeleteFileParameters
Used to override the default configuration.
config() - Method in class com.google.genai.types.DeleteModelParameters
Optional parameters for the request.
config() - Method in class com.google.genai.types.EditImageParameters
Configuration for editing.
config() - Method in class com.google.genai.types.EmbedContentParameters
Configuration that contains optional parameters.
config() - Method in class com.google.genai.types.FetchPredictOperationParameters
Used to override the default configuration.
config() - Method in class com.google.genai.types.GenerateContentParameters
Configuration that contains optional model parameters.
config() - Method in class com.google.genai.types.GenerateImagesParameters
Configuration for generating images.
config() - Method in class com.google.genai.types.GenerateVideosParameters
Configuration for generating videos.
config() - Method in class com.google.genai.types.GetCachedContentParameters
Optional parameters for the request.
config() - Method in class com.google.genai.types.GetFileParameters
Used to override the default configuration.
config() - Method in class com.google.genai.types.GetModelParameters
Optional parameters for the request.
config() - Method in class com.google.genai.types.GetOperationParameters
Used to override the default configuration.
config() - Method in class com.google.genai.types.ListCachedContentsParameters
Configuration that contains optional parameters.
config() - Method in class com.google.genai.types.ListFilesParameters
Used to override the default configuration.
config() - Method in class com.google.genai.types.ListModelsParameters
 
config() - Method in class com.google.genai.types.LiveConnectParameters
Optional configuration parameters for the request.
config() - Method in class com.google.genai.types.LiveConstrainedParameters
Configuration specific to Live API connections created using this token.
config() - Method in class com.google.genai.types.LiveEphemeralParameters
Configuration specific to Live API connections created using this token.
config() - Method in class com.google.genai.types.MaskReferenceImage
Configuration for the mask reference image.
config() - Method in class com.google.genai.types.StyleReferenceImage
Configuration for the style reference image.
config() - Method in class com.google.genai.types.SubjectReferenceImage
Configuration for the subject reference image.
config() - Method in class com.google.genai.types.UpdateModelParameters
 
config() - Method in class com.google.genai.types.UpscaleImageAPIParameters
Configuration for upscaling.
config() - Method in class com.google.genai.types.UpscaleImageParameters
Configuration for upscaling.
config(ComputeTokensConfig) - Method in class com.google.genai.types.ComputeTokensParameters.Builder
 
config(ControlReferenceConfig) - Method in class com.google.genai.types.ControlReferenceImage.Builder
 
config(CountTokensConfig) - Method in class com.google.genai.types.CountTokensParameters.Builder
 
config(CreateAuthTokenConfig) - Method in class com.google.genai.types.CreateAuthTokenParameters.Builder
 
config(CreateCachedContentConfig) - Method in class com.google.genai.types.CreateCachedContentParameters.Builder
 
config(CreateFileConfig) - Method in class com.google.genai.types.CreateFileParameters.Builder
 
config(DeleteCachedContentConfig) - Method in class com.google.genai.types.DeleteCachedContentParameters.Builder
 
config(DeleteFileConfig) - Method in class com.google.genai.types.DeleteFileParameters.Builder
 
config(DeleteModelConfig) - Method in class com.google.genai.types.DeleteModelParameters.Builder
 
config(EditImageConfig) - Method in class com.google.genai.types.EditImageParameters.Builder
 
config(EmbedContentConfig) - Method in class com.google.genai.types.EmbedContentParameters.Builder
 
config(FetchPredictOperationConfig) - Method in class com.google.genai.types.FetchPredictOperationParameters.Builder
 
config(GenerateContentConfig) - Method in class com.google.genai.types.GenerateContentParameters.Builder
 
config(GenerateImagesConfig) - Method in class com.google.genai.types.GenerateImagesParameters.Builder
 
config(GenerateVideosConfig) - Method in class com.google.genai.types.GenerateVideosParameters.Builder
 
config(GetCachedContentConfig) - Method in class com.google.genai.types.GetCachedContentParameters.Builder
 
config(GetFileConfig) - Method in class com.google.genai.types.GetFileParameters.Builder
 
config(GetModelConfig) - Method in class com.google.genai.types.GetModelParameters.Builder
 
config(GetOperationConfig) - Method in class com.google.genai.types.GetOperationParameters.Builder
 
config(ListCachedContentsConfig) - Method in class com.google.genai.types.ListCachedContentsParameters.Builder
 
config(ListFilesConfig) - Method in class com.google.genai.types.ListFilesParameters.Builder
 
config(ListModelsConfig) - Method in class com.google.genai.types.ListModelsParameters.Builder
 
config(LiveConnectConfig) - Method in class com.google.genai.types.LiveConnectParameters.Builder
 
config(LiveConnectConfig) - Method in class com.google.genai.types.LiveConstrainedParameters.Builder
 
config(LiveConnectConfig) - Method in class com.google.genai.types.LiveEphemeralParameters.Builder
 
config(MaskReferenceConfig) - Method in class com.google.genai.types.MaskReferenceImage.Builder
 
config(StyleReferenceConfig) - Method in class com.google.genai.types.StyleReferenceImage.Builder
 
config(SubjectReferenceConfig) - Method in class com.google.genai.types.SubjectReferenceImage.Builder
 
config(UpdateModelConfig) - Method in class com.google.genai.types.UpdateModelParameters.Builder
 
config(UpscaleImageAPIConfig) - Method in class com.google.genai.types.UpscaleImageAPIParameters.Builder
 
config(UpscaleImageConfig) - Method in class com.google.genai.types.UpscaleImageParameters.Builder
 
connect(String, LiveConnectConfig) - Method in class com.google.genai.AsyncLive
Connects to the live server.
content() - Method in class com.google.genai.types.Candidate
Contains the multi-part content of the response.
content(Content) - Method in class com.google.genai.types.Candidate.Builder
 
Content - Class in com.google.genai.types
Contains the multi-part content of a message.
Content() - Constructor for class com.google.genai.types.Content
 
Content.Builder - Class in com.google.genai.types
Builder for Content.
ContentEmbedding - Class in com.google.genai.types
The embedding generated from an input content.
ContentEmbedding() - Constructor for class com.google.genai.types.ContentEmbedding
 
ContentEmbedding.Builder - Class in com.google.genai.types
Builder for ContentEmbedding.
ContentEmbeddingStatistics - Class in com.google.genai.types
Statistics of the input text associated with the result of content embedding.
ContentEmbeddingStatistics() - Constructor for class com.google.genai.types.ContentEmbeddingStatistics
 
ContentEmbeddingStatistics.Builder - Class in com.google.genai.types
Builder for ContentEmbeddingStatistics.
contents() - Method in class com.google.genai.types.ComputeTokensParameters
Input content.
contents() - Method in class com.google.genai.types.CountTokensParameters
Input content.
contents() - Method in class com.google.genai.types.CreateCachedContentConfig
The content to cache.
contents() - Method in class com.google.genai.types.EmbedContentParameters
The content to embed.
contents() - Method in class com.google.genai.types.GenerateContentParameters
Content of the request.
contents(List<Content>) - Method in class com.google.genai.types.ComputeTokensParameters.Builder
 
contents(List<Content>) - Method in class com.google.genai.types.CountTokensParameters.Builder
 
contents(List<Content>) - Method in class com.google.genai.types.CreateCachedContentConfig.Builder
 
contents(List<Content>) - Method in class com.google.genai.types.EmbedContentParameters.Builder
 
contents(List<Content>) - Method in class com.google.genai.types.GenerateContentParameters.Builder
 
contentType() - Method in class com.google.genai.types.SafetyAttributes
Internal use only.
contentType(String) - Method in class com.google.genai.types.SafetyAttributes.Builder
 
contextWindowCompression() - Method in class com.google.genai.types.LiveClientSetup
Configures context window compression mechanism.
contextWindowCompression() - Method in class com.google.genai.types.LiveConnectConfig
Configures context window compression mechanism.
contextWindowCompression(ContextWindowCompressionConfig) - Method in class com.google.genai.types.LiveClientSetup.Builder
 
contextWindowCompression(ContextWindowCompressionConfig) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
ContextWindowCompressionConfig - Class in com.google.genai.types
Enables context window compression -- mechanism managing model context window so it does not exceed given length.
ContextWindowCompressionConfig() - Constructor for class com.google.genai.types.ContextWindowCompressionConfig
 
ContextWindowCompressionConfig.Builder - Class in com.google.genai.types
Builder for ContextWindowCompressionConfig.
CONTROL_REFERENCE_TYPE_UNSPECIFIED - Enum constant in enum com.google.genai.types.ControlReferenceType.Known
 
CONTROL_TYPE_CANNY - Enum constant in enum com.google.genai.types.ControlReferenceType.Known
 
CONTROL_TYPE_DEFAULT - Enum constant in enum com.google.genai.types.ControlReferenceType.Known
 
CONTROL_TYPE_FACE_MESH - Enum constant in enum com.google.genai.types.ControlReferenceType.Known
 
CONTROL_TYPE_SCRIBBLE - Enum constant in enum com.google.genai.types.ControlReferenceType.Known
 
controlImageConfig() - Method in class com.google.genai.types.ReferenceImageAPI
Configuration for the control reference image.
controlImageConfig(ControlReferenceConfig) - Method in class com.google.genai.types.ReferenceImageAPI.Builder
 
ControlReferenceConfig - Class in com.google.genai.types
Configuration for a Control reference image.
ControlReferenceConfig() - Constructor for class com.google.genai.types.ControlReferenceConfig
 
ControlReferenceConfig.Builder - Class in com.google.genai.types
Builder for ControlReferenceConfig.
ControlReferenceImage - Class in com.google.genai.types
A control reference image.
ControlReferenceImage() - Constructor for class com.google.genai.types.ControlReferenceImage
 
ControlReferenceImage.Builder - Class in com.google.genai.types
Builder for ControlReferenceImage.
ControlReferenceType - Class in com.google.genai.types
Enum representing the control type of a control reference image.
ControlReferenceType(ControlReferenceType.Known) - Constructor for class com.google.genai.types.ControlReferenceType
 
ControlReferenceType(String) - Constructor for class com.google.genai.types.ControlReferenceType
 
ControlReferenceType.Known - Enum in com.google.genai.types
Enum representing the known values for ControlReferenceType.
controlType() - Method in class com.google.genai.types.ControlReferenceConfig
The type of control reference image to use.
controlType(ControlReferenceType) - Method in class com.google.genai.types.ControlReferenceConfig.Builder
 
controlType(ControlReferenceType.Known) - Method in class com.google.genai.types.ControlReferenceConfig.Builder
 
controlType(String) - Method in class com.google.genai.types.ControlReferenceConfig.Builder
 
countTokens(String, String, CountTokensConfig) - Method in class com.google.genai.AsyncModels
Asynchronously counts tokens given a GenAI model and a text string.
countTokens(String, String, CountTokensConfig) - Method in class com.google.genai.Models
Counts tokens given a GenAI model and a text string.
countTokens(String, List<Content>, CountTokensConfig) - Method in class com.google.genai.AsyncModels
Asynchronously counts tokens given a GenAI model and a list of content.
countTokens(String, List<Content>, CountTokensConfig) - Method in class com.google.genai.Models
Counts tokens given a GenAI model and a list of content.
CountTokensConfig - Class in com.google.genai.types
Config for the count_tokens method.
CountTokensConfig() - Constructor for class com.google.genai.types.CountTokensConfig
 
CountTokensConfig.Builder - Class in com.google.genai.types
Builder for CountTokensConfig.
CountTokensParameters - Class in com.google.genai.types
Parameters for counting tokens.
CountTokensParameters() - Constructor for class com.google.genai.types.CountTokensParameters
 
CountTokensParameters.Builder - Class in com.google.genai.types
Builder for CountTokensParameters.
CountTokensResponse - Class in com.google.genai.types
Response for counting tokens.
CountTokensResponse() - Constructor for class com.google.genai.types.CountTokensResponse
 
CountTokensResponse.Builder - Class in com.google.genai.types
Builder for CountTokensResponse.
create(String) - Method in class com.google.genai.AsyncChats
Creates a new async chat session.
create(String) - Method in class com.google.genai.Chats
Creates a new chat session.
create(String, CreateCachedContentConfig) - Method in class com.google.genai.AsyncCaches
Asynchronously creates a cached content resource.
create(String, CreateCachedContentConfig) - Method in class com.google.genai.Caches
Creates a cached content resource.
create(String, GenerateContentConfig) - Method in class com.google.genai.AsyncChats
Creates a new async chat session.
create(String, GenerateContentConfig) - Method in class com.google.genai.Chats
Creates a new chat session.
CreateAuthTokenConfig - Class in com.google.genai.types
Optional parameters.
CreateAuthTokenConfig() - Constructor for class com.google.genai.types.CreateAuthTokenConfig
 
CreateAuthTokenConfig.Builder - Class in com.google.genai.types
Builder for CreateAuthTokenConfig.
CreateAuthTokenParameters - Class in com.google.genai.types
Config for auth_tokens.create parameters.
CreateAuthTokenParameters() - Constructor for class com.google.genai.types.CreateAuthTokenParameters
 
CreateAuthTokenParameters.Builder - Class in com.google.genai.types
Builder for CreateAuthTokenParameters.
CreateCachedContentConfig - Class in com.google.genai.types
Optional configuration for cached content creation.
CreateCachedContentConfig() - Constructor for class com.google.genai.types.CreateCachedContentConfig
 
CreateCachedContentConfig.Builder - Class in com.google.genai.types
Builder for CreateCachedContentConfig.
CreateCachedContentParameters - Class in com.google.genai.types
Parameters for caches.create method.
CreateCachedContentParameters() - Constructor for class com.google.genai.types.CreateCachedContentParameters
 
CreateCachedContentParameters.Builder - Class in com.google.genai.types
Builder for CreateCachedContentParameters.
CreateFileConfig - Class in com.google.genai.types
Used to override the default configuration.
CreateFileConfig() - Constructor for class com.google.genai.types.CreateFileConfig
 
CreateFileConfig.Builder - Class in com.google.genai.types
Builder for CreateFileConfig.
CreateFileParameters - Class in com.google.genai.types
Generates the parameters for the private _create method.
CreateFileParameters() - Constructor for class com.google.genai.types.CreateFileParameters
 
CreateFileParameters.Builder - Class in com.google.genai.types
Builder for CreateFileParameters.
CreateFileResponse - Class in com.google.genai.types
Response for the create file method.
CreateFileResponse() - Constructor for class com.google.genai.types.CreateFileResponse
 
CreateFileResponse.Builder - Class in com.google.genai.types
Builder for CreateFileResponse.
createTime() - Method in class com.google.genai.types.CachedContent
Creation time of the cache entry.
createTime() - Method in class com.google.genai.types.File
Output only.
createTime() - Method in class com.google.genai.types.GenerateContentResponse
Timestamp when the request is made to the server.
createTime() - Method in class com.google.genai.types.TunedModelInfo
Date and time when the base model was created.
createTime(Instant) - Method in class com.google.genai.types.CachedContent.Builder
 
createTime(Instant) - Method in class com.google.genai.types.File.Builder
 
createTime(Instant) - Method in class com.google.genai.types.GenerateContentResponse.Builder
 
createTime(Instant) - Method in class com.google.genai.types.TunedModelInfo.Builder
 
credentials(GoogleCredentials) - Method in class com.google.genai.Client.Builder
Sets the GoogleCredentials for Vertex AI APIs.
credentialSecret() - Method in class com.google.genai.types.AuthConfigHttpBasicAuthConfig
Required.
credentialSecret(String) - Method in class com.google.genai.types.AuthConfigHttpBasicAuthConfig.Builder
 

D

data() - Method in class com.google.genai.types.Blob
Required.
data(byte[]) - Method in class com.google.genai.types.Blob.Builder
 
datastore() - Method in class com.google.genai.types.VertexAISearch
Optional.
datastore(String) - Method in class com.google.genai.types.VertexAISearch.Builder
 
day() - Method in class com.google.genai.types.GoogleTypeDate
Day of a month.
day(Integer) - Method in class com.google.genai.types.GoogleTypeDate.Builder
 
default_() - Method in class com.google.genai.types.Schema
Optional.
default_(Object) - Method in class com.google.genai.types.Schema.Builder
 
defaultCheckpointId() - Method in class com.google.genai.types.Model
The default checkpoint id of a model version.
defaultCheckpointId() - Method in class com.google.genai.types.UpdateModelConfig
 
defaultCheckpointId(String) - Method in class com.google.genai.types.Model.Builder
 
defaultCheckpointId(String) - Method in class com.google.genai.types.UpdateModelConfig.Builder
 
delete(String, DeleteCachedContentConfig) - Method in class com.google.genai.AsyncCaches
Asynchronously deletes a cached content resource.
delete(String, DeleteCachedContentConfig) - Method in class com.google.genai.Caches
Deletes a cached content resource.
delete(String, DeleteFileConfig) - Method in class com.google.genai.AsyncFiles
Asynchronously deletes a remotely stored file.
delete(String, DeleteFileConfig) - Method in class com.google.genai.Files
Deletes a remotely stored file.
delete(String, DeleteModelConfig) - Method in class com.google.genai.AsyncModels
Asynchronously fetches information about a model by name.
delete(String, DeleteModelConfig) - Method in class com.google.genai.Models
Fetches information about a model by name.
DeleteCachedContentConfig - Class in com.google.genai.types
Optional parameters for caches.delete method.
DeleteCachedContentConfig() - Constructor for class com.google.genai.types.DeleteCachedContentConfig
 
DeleteCachedContentConfig.Builder - Class in com.google.genai.types
Builder for DeleteCachedContentConfig.
DeleteCachedContentParameters - Class in com.google.genai.types
Parameters for caches.delete method.
DeleteCachedContentParameters() - Constructor for class com.google.genai.types.DeleteCachedContentParameters
 
DeleteCachedContentParameters.Builder - Class in com.google.genai.types
Builder for DeleteCachedContentParameters.
DeleteCachedContentResponse - Class in com.google.genai.types
Empty response for caches.delete method.
DeleteCachedContentResponse() - Constructor for class com.google.genai.types.DeleteCachedContentResponse
 
DeleteCachedContentResponse.Builder - Class in com.google.genai.types
Builder for DeleteCachedContentResponse.
DeleteFileConfig - Class in com.google.genai.types
Used to override the default configuration.
DeleteFileConfig() - Constructor for class com.google.genai.types.DeleteFileConfig
 
DeleteFileConfig.Builder - Class in com.google.genai.types
Builder for DeleteFileConfig.
DeleteFileParameters - Class in com.google.genai.types
Generates the parameters for the get method.
DeleteFileParameters() - Constructor for class com.google.genai.types.DeleteFileParameters
 
DeleteFileParameters.Builder - Class in com.google.genai.types
Builder for DeleteFileParameters.
DeleteFileResponse - Class in com.google.genai.types
Response for the delete file method.
DeleteFileResponse() - Constructor for class com.google.genai.types.DeleteFileResponse
 
DeleteFileResponse.Builder - Class in com.google.genai.types
Builder for DeleteFileResponse.
DeleteModelConfig - Class in com.google.genai.types
Configuration for deleting a tuned model.
DeleteModelConfig() - Constructor for class com.google.genai.types.DeleteModelConfig
 
DeleteModelConfig.Builder - Class in com.google.genai.types
Builder for DeleteModelConfig.
DeleteModelParameters - Class in com.google.genai.types
Parameters for deleting a tuned model.
DeleteModelParameters() - Constructor for class com.google.genai.types.DeleteModelParameters
 
DeleteModelParameters.Builder - Class in com.google.genai.types
Builder for DeleteModelParameters.
DeleteModelResponse - Class in com.google.genai.types
None
DeleteModelResponse() - Constructor for class com.google.genai.types.DeleteModelResponse
 
DeleteModelResponse.Builder - Class in com.google.genai.types
Builder for DeleteModelResponse.
deployedModelId() - Method in class com.google.genai.types.Endpoint
ID of the model that's deployed to the endpoint.
deployedModelId(String) - Method in class com.google.genai.types.Endpoint.Builder
 
description() - Method in class com.google.genai.types.FunctionDeclaration
Optional.
description() - Method in class com.google.genai.types.Model
Description of the model.
description() - Method in class com.google.genai.types.Schema
Optional.
description() - Method in class com.google.genai.types.UpdateModelConfig
 
description(String) - Method in class com.google.genai.types.FunctionDeclaration.Builder
 
description(String) - Method in class com.google.genai.types.Model.Builder
 
description(String) - Method in class com.google.genai.types.Schema.Builder
 
description(String) - Method in class com.google.genai.types.UpdateModelConfig.Builder
 
details() - Method in class com.google.genai.types.FileStatus
A list of messages that carry the error details.
details(List<Map<String, Object>>) - Method in class com.google.genai.types.FileStatus.Builder
 
disable() - Method in class com.google.genai.types.AutomaticFunctionCallingConfig
Whether to disable automatic function calling.
disable(boolean) - Method in class com.google.genai.types.AutomaticFunctionCallingConfig.Builder
 
disableAttribution() - Method in class com.google.genai.types.Retrieval
Optional.
disableAttribution(boolean) - Method in class com.google.genai.types.Retrieval.Builder
 
disabled() - Method in class com.google.genai.types.AutomaticActivityDetection
If enabled, detected voice and text input count as activity.
disabled(boolean) - Method in class com.google.genai.types.AutomaticActivityDetection.Builder
 
displayName() - Method in class com.google.genai.types.Blob
Optional.
displayName() - Method in class com.google.genai.types.CachedContent
The user-generated meaningful display name of the cached content.
displayName() - Method in class com.google.genai.types.CreateCachedContentConfig
The user-generated meaningful display name of the cached content.
displayName() - Method in class com.google.genai.types.File
Optional.
displayName() - Method in class com.google.genai.types.Model
Display name of the model.
displayName() - Method in class com.google.genai.types.UpdateModelConfig
 
displayName() - Method in class com.google.genai.types.UploadFileConfig
Optional display name of the file.
displayName(String) - Method in class com.google.genai.types.Blob.Builder
 
displayName(String) - Method in class com.google.genai.types.CachedContent.Builder
 
displayName(String) - Method in class com.google.genai.types.CreateCachedContentConfig.Builder
 
displayName(String) - Method in class com.google.genai.types.File.Builder
 
displayName(String) - Method in class com.google.genai.types.Model.Builder
 
displayName(String) - Method in class com.google.genai.types.UpdateModelConfig.Builder
 
displayName(String) - Method in class com.google.genai.types.UploadFileConfig.Builder
 
DOCUMENT - Enum constant in enum com.google.genai.types.MediaModality.Known
Document, e.g.
domain() - Method in class com.google.genai.types.GroundingChunkWeb
Domain of the (original) URI.
domain(String) - Method in class com.google.genai.types.GroundingChunkWeb.Builder
 
done() - Method in class com.google.genai.types.GenerateVideosOperation
If the value is `false`, it means the operation is still in progress.
done(boolean) - Method in class com.google.genai.types.GenerateVideosOperation.Builder
 
DONT_ALLOW - Enum constant in enum com.google.genai.types.PersonGeneration.Known
 
download(File, String, DownloadFileConfig) - Method in class com.google.genai.AsyncFiles
Asynchronously downloads a file from the GenAI API to the provided path.
download(File, String, DownloadFileConfig) - Method in class com.google.genai.Files
Downloads a file from the API.
download(GeneratedVideo, String, DownloadFileConfig) - Method in class com.google.genai.AsyncFiles
Asynchronously downloads a generated video from the GenAI API to the provided path.
download(GeneratedVideo, String, DownloadFileConfig) - Method in class com.google.genai.Files
Downloads a generated video from the API.
download(Video, String, DownloadFileConfig) - Method in class com.google.genai.AsyncFiles
Asynchronously downloads a video from the GenAI API to the provided path.
download(Video, String, DownloadFileConfig) - Method in class com.google.genai.Files
Downloads a video from the API.
download(String, String, DownloadFileConfig) - Method in class com.google.genai.AsyncFiles
Asynchronously downloads a file from the GenAI API to the provided path.
download(String, String, DownloadFileConfig) - Method in class com.google.genai.Files
Downloads a file from the API.
DownloadFileConfig - Class in com.google.genai.types
Used to override the default configuration.
DownloadFileConfig() - Constructor for class com.google.genai.types.DownloadFileConfig
 
DownloadFileConfig.Builder - Class in com.google.genai.types
Builder for DownloadFileConfig.
downloadUri() - Method in class com.google.genai.types.File
Output only.
downloadUri(String) - Method in class com.google.genai.types.File.Builder
 
durationSeconds() - Method in class com.google.genai.types.GenerateVideosConfig
Duration of the clip for video generation in seconds.
durationSeconds(Integer) - Method in class com.google.genai.types.GenerateVideosConfig.Builder
 
DYNAMIC_RETRIEVAL_CONFIG_MODE_UNSPECIFIED - Enum constant in enum com.google.genai.types.DynamicRetrievalConfigMode.Known
 
dynamicRetrievalConfig() - Method in class com.google.genai.types.GoogleSearchRetrieval
Specifies the dynamic retrieval configuration for the given source.
dynamicRetrievalConfig(DynamicRetrievalConfig) - Method in class com.google.genai.types.GoogleSearchRetrieval.Builder
 
DynamicRetrievalConfig - Class in com.google.genai.types
Describes the options to customize dynamic retrieval.
DynamicRetrievalConfig() - Constructor for class com.google.genai.types.DynamicRetrievalConfig
 
DynamicRetrievalConfig.Builder - Class in com.google.genai.types
Builder for DynamicRetrievalConfig.
DynamicRetrievalConfigMode - Class in com.google.genai.types
Config for the dynamic retrieval config mode.
DynamicRetrievalConfigMode(DynamicRetrievalConfigMode.Known) - Constructor for class com.google.genai.types.DynamicRetrievalConfigMode
 
DynamicRetrievalConfigMode(String) - Constructor for class com.google.genai.types.DynamicRetrievalConfigMode
 
DynamicRetrievalConfigMode.Known - Enum in com.google.genai.types
Enum representing the known values for DynamicRetrievalConfigMode.
dynamicThreshold() - Method in class com.google.genai.types.DynamicRetrievalConfig
Optional.
dynamicThreshold(Float) - Method in class com.google.genai.types.DynamicRetrievalConfig.Builder
 

E

EDIT_MODE_BGSWAP - Enum constant in enum com.google.genai.types.EditMode.Known
 
EDIT_MODE_CONTROLLED_EDITING - Enum constant in enum com.google.genai.types.EditMode.Known
 
EDIT_MODE_DEFAULT - Enum constant in enum com.google.genai.types.EditMode.Known
 
EDIT_MODE_INPAINT_INSERTION - Enum constant in enum com.google.genai.types.EditMode.Known
 
EDIT_MODE_INPAINT_REMOVAL - Enum constant in enum com.google.genai.types.EditMode.Known
 
EDIT_MODE_OUTPAINT - Enum constant in enum com.google.genai.types.EditMode.Known
 
EDIT_MODE_PRODUCT_IMAGE - Enum constant in enum com.google.genai.types.EditMode.Known
 
EDIT_MODE_STYLE - Enum constant in enum com.google.genai.types.EditMode.Known
 
EDIT_MODE_UNSPECIFIED - Enum constant in enum com.google.genai.types.EditMode.Known
 
editImage(String, String, List<ReferenceImage>, EditImageConfig) - Method in class com.google.genai.AsyncModels
Asynchronously edits an image given a GenAI model, a prompt, and a list of reference images.
editImage(String, String, List<ReferenceImage>, EditImageConfig) - Method in class com.google.genai.Models
Edits an image given a GenAI model, a prompt, and a list of reference images.
EditImageConfig - Class in com.google.genai.types
Configuration for editing an image.
EditImageConfig() - Constructor for class com.google.genai.types.EditImageConfig
 
EditImageConfig.Builder - Class in com.google.genai.types
Builder for EditImageConfig.
EditImageParameters - Class in com.google.genai.types
Parameters for the request to edit an image.
EditImageParameters() - Constructor for class com.google.genai.types.EditImageParameters
 
EditImageParameters.Builder - Class in com.google.genai.types
Builder for EditImageParameters.
EditImageResponse - Class in com.google.genai.types
Response for the request to edit an image.
EditImageResponse() - Constructor for class com.google.genai.types.EditImageResponse
 
EditImageResponse.Builder - Class in com.google.genai.types
Builder for EditImageResponse.
editMode() - Method in class com.google.genai.types.EditImageConfig
Describes the editing mode for the request.
editMode(EditMode) - Method in class com.google.genai.types.EditImageConfig.Builder
 
editMode(EditMode.Known) - Method in class com.google.genai.types.EditImageConfig.Builder
 
editMode(String) - Method in class com.google.genai.types.EditImageConfig.Builder
 
EditMode - Class in com.google.genai.types
Enum representing the Imagen 3 Edit mode.
EditMode(EditMode.Known) - Constructor for class com.google.genai.types.EditMode
 
EditMode(String) - Constructor for class com.google.genai.types.EditMode
 
EditMode.Known - Enum in com.google.genai.types
Enum representing the known values for EditMode.
embedContent(String, String, EmbedContentConfig) - Method in class com.google.genai.AsyncModels
Asynchronously embeds content given a GenAI model and a text string.
embedContent(String, String, EmbedContentConfig) - Method in class com.google.genai.Models
Embeds content given a GenAI model and a text string.
embedContent(String, List<String>, EmbedContentConfig) - Method in class com.google.genai.AsyncModels
Asynchronously embeds content given a GenAI model and a list of text strings.
embedContent(String, List<String>, EmbedContentConfig) - Method in class com.google.genai.Models
Embeds content given a GenAI model and a list of text strings.
EmbedContentConfig - Class in com.google.genai.types
Optional parameters for the embed_content method.
EmbedContentConfig() - Constructor for class com.google.genai.types.EmbedContentConfig
 
EmbedContentConfig.Builder - Class in com.google.genai.types
Builder for EmbedContentConfig.
EmbedContentMetadata - Class in com.google.genai.types
Request-level metadata for the Vertex Embed Content API.
EmbedContentMetadata() - Constructor for class com.google.genai.types.EmbedContentMetadata
 
EmbedContentMetadata.Builder - Class in com.google.genai.types
Builder for EmbedContentMetadata.
EmbedContentParameters - Class in com.google.genai.types
Parameters for the embed_content method.
EmbedContentParameters() - Constructor for class com.google.genai.types.EmbedContentParameters
 
EmbedContentParameters.Builder - Class in com.google.genai.types
Builder for EmbedContentParameters.
EmbedContentResponse - Class in com.google.genai.types
Response for the embed_content method.
EmbedContentResponse() - Constructor for class com.google.genai.types.EmbedContentResponse
 
EmbedContentResponse.Builder - Class in com.google.genai.types
Builder for EmbedContentResponse.
embeddings() - Method in class com.google.genai.types.EmbedContentResponse
The embeddings for each request, in the same order as provided in the batch request.
embeddings(List<ContentEmbedding>) - Method in class com.google.genai.types.EmbedContentResponse.Builder
 
EN - Enum constant in enum com.google.genai.types.ImagePromptLanguage.Known
 
enableAffectiveDialog() - Method in class com.google.genai.types.LiveConnectConfig
If enabled, the model will detect emotions and adapt its responses accordingly.
enableAffectiveDialog(boolean) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
enableControlImageComputation() - Method in class com.google.genai.types.ControlReferenceConfig
Defaults to False.
enableControlImageComputation(boolean) - Method in class com.google.genai.types.ControlReferenceConfig.Builder
 
END_SENSITIVITY_HIGH - Enum constant in enum com.google.genai.types.EndSensitivity.Known
Automatic detection ends speech more often.
END_SENSITIVITY_LOW - Enum constant in enum com.google.genai.types.EndSensitivity.Known
Automatic detection ends speech less often.
END_SENSITIVITY_UNSPECIFIED - Enum constant in enum com.google.genai.types.EndSensitivity.Known
The default is END_SENSITIVITY_LOW.
endIndex() - Method in class com.google.genai.types.Citation
Output only.
endIndex() - Method in class com.google.genai.types.Segment
Output only.
endIndex(Integer) - Method in class com.google.genai.types.Citation.Builder
 
endIndex(Integer) - Method in class com.google.genai.types.Segment.Builder
 
endOffset() - Method in class com.google.genai.types.VideoMetadata
Optional.
endOffset(Duration) - Method in class com.google.genai.types.VideoMetadata.Builder
 
endOfSpeechSensitivity() - Method in class com.google.genai.types.AutomaticActivityDetection
Determines how likely detected speech is ended.
endOfSpeechSensitivity(EndSensitivity) - Method in class com.google.genai.types.AutomaticActivityDetection.Builder
 
endOfSpeechSensitivity(EndSensitivity.Known) - Method in class com.google.genai.types.AutomaticActivityDetection.Builder
 
endOfSpeechSensitivity(String) - Method in class com.google.genai.types.AutomaticActivityDetection.Builder
 
Endpoint - Class in com.google.genai.types
An endpoint where you deploy models.
Endpoint() - Constructor for class com.google.genai.types.Endpoint
 
Endpoint.Builder - Class in com.google.genai.types
Builder for Endpoint.
endpoints() - Method in class com.google.genai.types.Model
List of deployed models created from this base model.
endpoints(List<Endpoint>) - Method in class com.google.genai.types.Model.Builder
 
EndSensitivity - Class in com.google.genai.types
End of speech sensitivity.
EndSensitivity(EndSensitivity.Known) - Constructor for class com.google.genai.types.EndSensitivity
 
EndSensitivity(String) - Constructor for class com.google.genai.types.EndSensitivity
 
EndSensitivity.Known - Enum in com.google.genai.types
Enum representing the known values for EndSensitivity.
endTime() - Method in class com.google.genai.types.Interval
The end time of the interval.
endTime(Instant) - Method in class com.google.genai.types.Interval.Builder
 
engine() - Method in class com.google.genai.types.VertexAISearch
Optional.
engine(String) - Method in class com.google.genai.types.VertexAISearch.Builder
 
enhancedPrompt() - Method in class com.google.genai.types.GeneratedImage
The rewritten prompt used for the image generation if the prompt enhancer is enabled.
enhancedPrompt(String) - Method in class com.google.genai.types.GeneratedImage.Builder
 
enhancePrompt() - Method in class com.google.genai.types.GenerateImagesConfig
Whether to use the prompt rewriting logic.
enhancePrompt() - Method in class com.google.genai.types.GenerateVideosConfig
Whether to use the prompt rewriting logic.
enhancePrompt(boolean) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
enhancePrompt(boolean) - Method in class com.google.genai.types.GenerateVideosConfig.Builder
 
enterpriseWebSearch() - Method in class com.google.genai.types.Tool
Optional.
enterpriseWebSearch(EnterpriseWebSearch) - Method in class com.google.genai.types.Tool.Builder
 
EnterpriseWebSearch - Class in com.google.genai.types
Tool to search public web data, powered by Vertex AI Search and Sec4 compliance.
EnterpriseWebSearch() - Constructor for class com.google.genai.types.EnterpriseWebSearch
 
EnterpriseWebSearch.Builder - Class in com.google.genai.types
Builder for EnterpriseWebSearch.
enum_() - Method in class com.google.genai.types.Schema
Optional.
enum_(List<String>) - Method in class com.google.genai.types.Schema.Builder
 
epoch() - Method in class com.google.genai.types.Checkpoint
The epoch of the checkpoint.
epoch(Long) - Method in class com.google.genai.types.Checkpoint.Builder
 
equals(Object) - Method in class com.google.genai.types.ActivityHandling
 
equals(Object) - Method in class com.google.genai.types.AuthType
 
equals(Object) - Method in class com.google.genai.types.Behavior
 
equals(Object) - Method in class com.google.genai.types.BlockedReason
 
equals(Object) - Method in class com.google.genai.types.ControlReferenceType
 
equals(Object) - Method in class com.google.genai.types.DynamicRetrievalConfigMode
 
equals(Object) - Method in class com.google.genai.types.EditMode
 
equals(Object) - Method in class com.google.genai.types.EndSensitivity
 
equals(Object) - Method in class com.google.genai.types.FeatureSelectionPreference
 
equals(Object) - Method in class com.google.genai.types.FileSource
 
equals(Object) - Method in class com.google.genai.types.FileState
 
equals(Object) - Method in class com.google.genai.types.FinishReason
 
equals(Object) - Method in class com.google.genai.types.FunctionCallingConfigMode
 
equals(Object) - Method in class com.google.genai.types.FunctionResponseScheduling
 
equals(Object) - Method in class com.google.genai.types.HarmBlockMethod
 
equals(Object) - Method in class com.google.genai.types.HarmBlockThreshold
 
equals(Object) - Method in class com.google.genai.types.HarmCategory
 
equals(Object) - Method in class com.google.genai.types.HarmProbability
 
equals(Object) - Method in class com.google.genai.types.HarmSeverity
 
equals(Object) - Method in class com.google.genai.types.ImagePromptLanguage
 
equals(Object) - Method in class com.google.genai.types.Language
 
equals(Object) - Method in class com.google.genai.types.MaskReferenceMode
 
equals(Object) - Method in class com.google.genai.types.MediaModality
 
equals(Object) - Method in class com.google.genai.types.MediaResolution
 
equals(Object) - Method in class com.google.genai.types.Modality
 
equals(Object) - Method in class com.google.genai.types.Mode
 
equals(Object) - Method in class com.google.genai.types.ModelRoutingPreference
 
equals(Object) - Method in class com.google.genai.types.Outcome
 
equals(Object) - Method in class com.google.genai.types.PersonGeneration
 
equals(Object) - Method in class com.google.genai.types.SafetyFilterLevel
 
equals(Object) - Method in class com.google.genai.types.StartSensitivity
 
equals(Object) - Method in class com.google.genai.types.SubjectReferenceType
 
equals(Object) - Method in class com.google.genai.types.TrafficType
 
equals(Object) - Method in class com.google.genai.types.TurnCoverage
 
equals(Object) - Method in class com.google.genai.types.Type
 
equals(Object) - Method in class com.google.genai.types.UrlRetrievalStatus
 
error() - Method in class com.google.genai.types.File
Output only.
error() - Method in class com.google.genai.types.GenerateVideosOperation
The error result of the operation in case of failure or cancellation.
error(FileStatus) - Method in class com.google.genai.types.File.Builder
 
error(Map<String, Object>) - Method in class com.google.genai.types.GenerateVideosOperation.Builder
 
example() - Method in class com.google.genai.types.Schema
Optional.
example(Object) - Method in class com.google.genai.types.Schema.Builder
 
exceptionIfMldev() - Method in class com.google.genai.types.TestTableItem
Expects an exception for MLDev matching the string.
exceptionIfMldev(String) - Method in class com.google.genai.types.TestTableItem.Builder
 
exceptionIfVertex() - Method in class com.google.genai.types.TestTableItem
Expects an exception for Vertex matching the string.
exceptionIfVertex(String) - Method in class com.google.genai.types.TestTableItem.Builder
 
executableCode() - Method in class com.google.genai.types.GenerateContentResponse
Returns the executable code in the response.
executableCode() - Method in class com.google.genai.types.Part
Optional.
executableCode(ExecutableCode) - Method in class com.google.genai.types.Part.Builder
 
ExecutableCode - Class in com.google.genai.types
Code generated by the model that is meant to be executed, and the result returned to the model.
ExecutableCode() - Constructor for class com.google.genai.types.ExecutableCode
 
ExecutableCode.Builder - Class in com.google.genai.types
Builder for ExecutableCode.
expirationTime() - Method in class com.google.genai.types.File
Output only.
expirationTime(Instant) - Method in class com.google.genai.types.File.Builder
 
expireTime() - Method in class com.google.genai.types.CachedContent
Expiration time of the cached content.
expireTime() - Method in class com.google.genai.types.CreateAuthTokenConfig
An optional time after which, when using the resulting token, messages in Live API sessions will be rejected.
expireTime() - Method in class com.google.genai.types.CreateCachedContentConfig
Timestamp of when this resource is considered expired.
expireTime(Instant) - Method in class com.google.genai.types.CachedContent.Builder
 
expireTime(Instant) - Method in class com.google.genai.types.CreateAuthTokenConfig.Builder
 
expireTime(Instant) - Method in class com.google.genai.types.CreateCachedContentConfig.Builder
 

F

FAILED - Enum constant in enum com.google.genai.types.FileState.Known
 
FEATURE_SELECTION_PREFERENCE_UNSPECIFIED - Enum constant in enum com.google.genai.types.FeatureSelectionPreference.Known
 
featureSelectionPreference() - Method in class com.google.genai.types.ModelSelectionConfig
Options for feature selection preference.
featureSelectionPreference(FeatureSelectionPreference) - Method in class com.google.genai.types.ModelSelectionConfig.Builder
 
featureSelectionPreference(FeatureSelectionPreference.Known) - Method in class com.google.genai.types.ModelSelectionConfig.Builder
 
featureSelectionPreference(String) - Method in class com.google.genai.types.ModelSelectionConfig.Builder
 
FeatureSelectionPreference - Class in com.google.genai.types
Options for feature selection preference.
FeatureSelectionPreference(FeatureSelectionPreference.Known) - Constructor for class com.google.genai.types.FeatureSelectionPreference
 
FeatureSelectionPreference(String) - Constructor for class com.google.genai.types.FeatureSelectionPreference
 
FeatureSelectionPreference.Known - Enum in com.google.genai.types
Enum representing the known values for FeatureSelectionPreference.
FetchPredictOperationConfig - Class in com.google.genai.types
None
FetchPredictOperationConfig() - Constructor for class com.google.genai.types.FetchPredictOperationConfig
 
FetchPredictOperationConfig.Builder - Class in com.google.genai.types
Builder for FetchPredictOperationConfig.
FetchPredictOperationParameters - Class in com.google.genai.types
Parameters for the fetchPredictOperation method.
FetchPredictOperationParameters() - Constructor for class com.google.genai.types.FetchPredictOperationParameters
 
FetchPredictOperationParameters.Builder - Class in com.google.genai.types
Builder for FetchPredictOperationParameters.
file() - Method in class com.google.genai.types.CreateFileParameters
The file to be uploaded. mime_type: (Required) The MIME type of the file.
file(File) - Method in class com.google.genai.types.CreateFileParameters.Builder
 
File - Class in com.google.genai.types
A file uploaded to the API.
File() - Constructor for class com.google.genai.types.File
 
FILE_SOURCE_UNSPECIFIED - Enum constant in enum com.google.genai.types.FileSource.Known
 
FILE_STATE_UNSPECIFIED - Enum constant in enum com.google.genai.types.FileState.Known
 
File.Builder - Class in com.google.genai.types
Builder for File.
fileData() - Method in class com.google.genai.types.Part
Optional.
fileData(FileData) - Method in class com.google.genai.types.Part.Builder
 
FileData - Class in com.google.genai.types
URI based data.
FileData() - Constructor for class com.google.genai.types.FileData
 
FileData.Builder - Class in com.google.genai.types
Builder for FileData.
files - Variable in class com.google.genai.Client.Async
 
files - Variable in class com.google.genai.Client
 
files() - Method in class com.google.genai.types.ListFilesResponse
The list of files.
files(List<File>) - Method in class com.google.genai.types.ListFilesResponse.Builder
 
Files - Class in com.google.genai
Provides methods for interacting with the available GenAI files.
Files(ApiClient) - Constructor for class com.google.genai.Files
 
FileSource - Class in com.google.genai.types
Source of the File.
FileSource(FileSource.Known) - Constructor for class com.google.genai.types.FileSource
 
FileSource(String) - Constructor for class com.google.genai.types.FileSource
 
FileSource.Known - Enum in com.google.genai.types
Enum representing the known values for FileSource.
FileState - Class in com.google.genai.types
State for the lifecycle of a File.
FileState(FileState.Known) - Constructor for class com.google.genai.types.FileState
 
FileState(String) - Constructor for class com.google.genai.types.FileState
 
FileState.Known - Enum in com.google.genai.types
Enum representing the known values for FileState.
FileStatus - Class in com.google.genai.types
Status of a File that uses a common error model.
FileStatus() - Constructor for class com.google.genai.types.FileStatus
 
FileStatus.Builder - Class in com.google.genai.types
Builder for FileStatus.
fileUri() - Method in class com.google.genai.types.FileData
Required.
fileUri(String) - Method in class com.google.genai.types.FileData.Builder
 
filter() - Method in class com.google.genai.types.ListModelsConfig
 
filter() - Method in class com.google.genai.types.RagRetrievalConfig
Optional.
filter(RagRetrievalConfigFilter) - Method in class com.google.genai.types.RagRetrievalConfig.Builder
 
filter(String) - Method in class com.google.genai.types.ListModelsConfig.Builder
 
FINISH_REASON_UNSPECIFIED - Enum constant in enum com.google.genai.types.FinishReason.Known
The finish reason is unspecified.
finished() - Method in class com.google.genai.types.Transcription
The bool indicates the end of the transcription.
finished(boolean) - Method in class com.google.genai.types.Transcription.Builder
 
finishMessage() - Method in class com.google.genai.types.Candidate
Describes the reason the model stopped generating tokens.
finishMessage(String) - Method in class com.google.genai.types.Candidate.Builder
 
finishReason() - Method in class com.google.genai.types.Candidate
The reason why the model stopped generating tokens.
finishReason() - Method in class com.google.genai.types.GenerateContentResponse
Gets the finish reason in a GenerateContentResponse.
finishReason(FinishReason) - Method in class com.google.genai.types.Candidate.Builder
 
finishReason(FinishReason.Known) - Method in class com.google.genai.types.Candidate.Builder
 
finishReason(String) - Method in class com.google.genai.types.Candidate.Builder
 
FinishReason - Class in com.google.genai.types
Output only.
FinishReason(FinishReason.Known) - Constructor for class com.google.genai.types.FinishReason
 
FinishReason(String) - Constructor for class com.google.genai.types.FinishReason
 
FinishReason.Known - Enum in com.google.genai.types
Enum representing the known values for FinishReason.
forEach(Consumer<? super T>) - Method in class com.google.genai.AsyncPager
Asynchronously processes each item fetched by this pager.
format() - Method in class com.google.genai.types.Schema
Optional.
format(String) - Method in class com.google.genai.types.Schema.Builder
 
fps() - Method in class com.google.genai.types.GenerateVideosConfig
Frames per second for video generation.
fps() - Method in class com.google.genai.types.VideoMetadata
The frame rate of the video sent to the model.
fps(Double) - Method in class com.google.genai.types.VideoMetadata.Builder
 
fps(Integer) - Method in class com.google.genai.types.GenerateVideosConfig.Builder
 
frequencyPenalty() - Method in class com.google.genai.types.GenerateContentConfig
Positive values penalize tokens that repeatedly appear in the generated text, increasing the probability of generating more diverse content.
frequencyPenalty() - Method in class com.google.genai.types.GenerationConfig
Optional.
frequencyPenalty(Float) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
frequencyPenalty(Float) - Method in class com.google.genai.types.GenerationConfig.Builder
 
fromBytes(byte[], String) - Static method in class com.google.genai.types.Part
Constructs a InlineData Part from a byte array and MIME type.
fromFile(String) - Static method in class com.google.genai.types.Image
Creates an Image object from a local file.
fromFile(String, String) - Static method in class com.google.genai.types.Image
Creates an Image object from a local file and mime type.
fromFunctionCall(String, Map<String, Object>) - Static method in class com.google.genai.types.Part
Constructs a FunctionCall Part from a function name and args.
fromFunctionResponse(String, Map<String, Object>) - Static method in class com.google.genai.types.Part
Constructs a FunctionResponse Part from a function name and response.
fromJson(String) - Static method in class com.google.genai.types.ActivityEnd
Deserializes a JSON string to a ActivityEnd object.
fromJson(String) - Static method in class com.google.genai.types.ActivityStart
Deserializes a JSON string to a ActivityStart object.
fromJson(String) - Static method in class com.google.genai.types.ApiKeyConfig
Deserializes a JSON string to a ApiKeyConfig object.
fromJson(String) - Static method in class com.google.genai.types.AudioTranscriptionConfig
Deserializes a JSON string to a AudioTranscriptionConfig object.
fromJson(String) - Static method in class com.google.genai.types.AuthConfig
Deserializes a JSON string to a AuthConfig object.
fromJson(String) - Static method in class com.google.genai.types.AuthConfigGoogleServiceAccountConfig
Deserializes a JSON string to a AuthConfigGoogleServiceAccountConfig object.
fromJson(String) - Static method in class com.google.genai.types.AuthConfigHttpBasicAuthConfig
Deserializes a JSON string to a AuthConfigHttpBasicAuthConfig object.
fromJson(String) - Static method in class com.google.genai.types.AuthConfigOauthConfig
Deserializes a JSON string to a AuthConfigOauthConfig object.
fromJson(String) - Static method in class com.google.genai.types.AuthConfigOidcConfig
Deserializes a JSON string to a AuthConfigOidcConfig object.
fromJson(String) - Static method in class com.google.genai.types.AuthToken
Deserializes a JSON string to a AuthToken object.
fromJson(String) - Static method in class com.google.genai.types.AutomaticActivityDetection
Deserializes a JSON string to a AutomaticActivityDetection object.
fromJson(String) - Static method in class com.google.genai.types.AutomaticFunctionCallingConfig
Deserializes a JSON string to a AutomaticFunctionCallingConfig object.
fromJson(String) - Static method in class com.google.genai.types.Blob
Deserializes a JSON string to a Blob object.
fromJson(String) - Static method in class com.google.genai.types.CachedContent
Deserializes a JSON string to a CachedContent object.
fromJson(String) - Static method in class com.google.genai.types.CachedContentUsageMetadata
Deserializes a JSON string to a CachedContentUsageMetadata object.
fromJson(String) - Static method in class com.google.genai.types.Candidate
Deserializes a JSON string to a Candidate object.
fromJson(String) - Static method in class com.google.genai.types.Checkpoint
Deserializes a JSON string to a Checkpoint object.
fromJson(String) - Static method in class com.google.genai.types.Citation
Deserializes a JSON string to a Citation object.
fromJson(String) - Static method in class com.google.genai.types.CitationMetadata
Deserializes a JSON string to a CitationMetadata object.
fromJson(String) - Static method in class com.google.genai.types.CodeExecutionResult
Deserializes a JSON string to a CodeExecutionResult object.
fromJson(String) - Static method in class com.google.genai.types.ComputeTokensConfig
Deserializes a JSON string to a ComputeTokensConfig object.
fromJson(String) - Static method in class com.google.genai.types.ComputeTokensParameters
Deserializes a JSON string to a ComputeTokensParameters object.
fromJson(String) - Static method in class com.google.genai.types.ComputeTokensResponse
Deserializes a JSON string to a ComputeTokensResponse object.
fromJson(String) - Static method in class com.google.genai.types.Content
Deserializes a JSON string to a Content object.
fromJson(String) - Static method in class com.google.genai.types.ContentEmbedding
Deserializes a JSON string to a ContentEmbedding object.
fromJson(String) - Static method in class com.google.genai.types.ContentEmbeddingStatistics
Deserializes a JSON string to a ContentEmbeddingStatistics object.
fromJson(String) - Static method in class com.google.genai.types.ContextWindowCompressionConfig
Deserializes a JSON string to a ContextWindowCompressionConfig object.
fromJson(String) - Static method in class com.google.genai.types.ControlReferenceConfig
Deserializes a JSON string to a ControlReferenceConfig object.
fromJson(String) - Static method in class com.google.genai.types.ControlReferenceImage
Deserializes a JSON string to a ControlReferenceImage object.
fromJson(String) - Static method in class com.google.genai.types.CountTokensConfig
Deserializes a JSON string to a CountTokensConfig object.
fromJson(String) - Static method in class com.google.genai.types.CountTokensParameters
Deserializes a JSON string to a CountTokensParameters object.
fromJson(String) - Static method in class com.google.genai.types.CountTokensResponse
Deserializes a JSON string to a CountTokensResponse object.
fromJson(String) - Static method in class com.google.genai.types.CreateAuthTokenConfig
Deserializes a JSON string to a CreateAuthTokenConfig object.
fromJson(String) - Static method in class com.google.genai.types.CreateAuthTokenParameters
Deserializes a JSON string to a CreateAuthTokenParameters object.
fromJson(String) - Static method in class com.google.genai.types.CreateCachedContentConfig
Deserializes a JSON string to a CreateCachedContentConfig object.
fromJson(String) - Static method in class com.google.genai.types.CreateCachedContentParameters
Deserializes a JSON string to a CreateCachedContentParameters object.
fromJson(String) - Static method in class com.google.genai.types.CreateFileConfig
Deserializes a JSON string to a CreateFileConfig object.
fromJson(String) - Static method in class com.google.genai.types.CreateFileParameters
Deserializes a JSON string to a CreateFileParameters object.
fromJson(String) - Static method in class com.google.genai.types.CreateFileResponse
Deserializes a JSON string to a CreateFileResponse object.
fromJson(String) - Static method in class com.google.genai.types.DeleteCachedContentConfig
Deserializes a JSON string to a DeleteCachedContentConfig object.
fromJson(String) - Static method in class com.google.genai.types.DeleteCachedContentParameters
Deserializes a JSON string to a DeleteCachedContentParameters object.
fromJson(String) - Static method in class com.google.genai.types.DeleteCachedContentResponse
Deserializes a JSON string to a DeleteCachedContentResponse object.
fromJson(String) - Static method in class com.google.genai.types.DeleteFileConfig
Deserializes a JSON string to a DeleteFileConfig object.
fromJson(String) - Static method in class com.google.genai.types.DeleteFileParameters
Deserializes a JSON string to a DeleteFileParameters object.
fromJson(String) - Static method in class com.google.genai.types.DeleteFileResponse
Deserializes a JSON string to a DeleteFileResponse object.
fromJson(String) - Static method in class com.google.genai.types.DeleteModelConfig
Deserializes a JSON string to a DeleteModelConfig object.
fromJson(String) - Static method in class com.google.genai.types.DeleteModelParameters
Deserializes a JSON string to a DeleteModelParameters object.
fromJson(String) - Static method in class com.google.genai.types.DeleteModelResponse
Deserializes a JSON string to a DeleteModelResponse object.
fromJson(String) - Static method in class com.google.genai.types.DownloadFileConfig
Deserializes a JSON string to a DownloadFileConfig object.
fromJson(String) - Static method in class com.google.genai.types.DynamicRetrievalConfig
Deserializes a JSON string to a DynamicRetrievalConfig object.
fromJson(String) - Static method in class com.google.genai.types.EditImageConfig
Deserializes a JSON string to a EditImageConfig object.
fromJson(String) - Static method in class com.google.genai.types.EditImageParameters
Deserializes a JSON string to a EditImageParameters object.
fromJson(String) - Static method in class com.google.genai.types.EditImageResponse
Deserializes a JSON string to a EditImageResponse object.
fromJson(String) - Static method in class com.google.genai.types.EmbedContentConfig
Deserializes a JSON string to a EmbedContentConfig object.
fromJson(String) - Static method in class com.google.genai.types.EmbedContentMetadata
Deserializes a JSON string to a EmbedContentMetadata object.
fromJson(String) - Static method in class com.google.genai.types.EmbedContentParameters
Deserializes a JSON string to a EmbedContentParameters object.
fromJson(String) - Static method in class com.google.genai.types.EmbedContentResponse
Deserializes a JSON string to a EmbedContentResponse object.
fromJson(String) - Static method in class com.google.genai.types.Endpoint
Deserializes a JSON string to a Endpoint object.
fromJson(String) - Static method in class com.google.genai.types.EnterpriseWebSearch
Deserializes a JSON string to a EnterpriseWebSearch object.
fromJson(String) - Static method in class com.google.genai.types.ExecutableCode
Deserializes a JSON string to a ExecutableCode object.
fromJson(String) - Static method in class com.google.genai.types.FetchPredictOperationConfig
Deserializes a JSON string to a FetchPredictOperationConfig object.
fromJson(String) - Static method in class com.google.genai.types.FetchPredictOperationParameters
Deserializes a JSON string to a FetchPredictOperationParameters object.
fromJson(String) - Static method in class com.google.genai.types.File
Deserializes a JSON string to a File object.
fromJson(String) - Static method in class com.google.genai.types.FileData
Deserializes a JSON string to a FileData object.
fromJson(String) - Static method in class com.google.genai.types.FileStatus
Deserializes a JSON string to a FileStatus object.
fromJson(String) - Static method in class com.google.genai.types.FunctionCall
Deserializes a JSON string to a FunctionCall object.
fromJson(String) - Static method in class com.google.genai.types.FunctionCallingConfig
Deserializes a JSON string to a FunctionCallingConfig object.
fromJson(String) - Static method in class com.google.genai.types.FunctionDeclaration
Deserializes a JSON string to a FunctionDeclaration object.
fromJson(String) - Static method in class com.google.genai.types.FunctionResponse
Deserializes a JSON string to a FunctionResponse object.
fromJson(String) - Static method in class com.google.genai.types.GenerateContentConfig
Deserializes a JSON string to a GenerateContentConfig object.
fromJson(String) - Static method in class com.google.genai.types.GenerateContentParameters
Deserializes a JSON string to a GenerateContentParameters object.
fromJson(String) - Static method in class com.google.genai.types.GenerateContentResponse
Deserializes a JSON string to a GenerateContentResponse object.
fromJson(String) - Static method in class com.google.genai.types.GenerateContentResponsePromptFeedback
Deserializes a JSON string to a GenerateContentResponsePromptFeedback object.
fromJson(String) - Static method in class com.google.genai.types.GenerateContentResponseUsageMetadata
Deserializes a JSON string to a GenerateContentResponseUsageMetadata object.
fromJson(String) - Static method in class com.google.genai.types.GeneratedImage
Deserializes a JSON string to a GeneratedImage object.
fromJson(String) - Static method in class com.google.genai.types.GeneratedVideo
Deserializes a JSON string to a GeneratedVideo object.
fromJson(String) - Static method in class com.google.genai.types.GenerateImagesConfig
Deserializes a JSON string to a GenerateImagesConfig object.
fromJson(String) - Static method in class com.google.genai.types.GenerateImagesParameters
Deserializes a JSON string to a GenerateImagesParameters object.
fromJson(String) - Static method in class com.google.genai.types.GenerateImagesResponse
Deserializes a JSON string to a GenerateImagesResponse object.
fromJson(String) - Static method in class com.google.genai.types.GenerateVideosConfig
Deserializes a JSON string to a GenerateVideosConfig object.
fromJson(String) - Static method in class com.google.genai.types.GenerateVideosOperation
Deserializes a JSON string to a GenerateVideosOperation object.
fromJson(String) - Static method in class com.google.genai.types.GenerateVideosParameters
Deserializes a JSON string to a GenerateVideosParameters object.
fromJson(String) - Static method in class com.google.genai.types.GenerateVideosResponse
Deserializes a JSON string to a GenerateVideosResponse object.
fromJson(String) - Static method in class com.google.genai.types.GenerationConfig
Deserializes a JSON string to a GenerationConfig object.
fromJson(String) - Static method in class com.google.genai.types.GenerationConfigRoutingConfig
Deserializes a JSON string to a GenerationConfigRoutingConfig object.
fromJson(String) - Static method in class com.google.genai.types.GenerationConfigRoutingConfigAutoRoutingMode
Deserializes a JSON string to a GenerationConfigRoutingConfigAutoRoutingMode object.
fromJson(String) - Static method in class com.google.genai.types.GenerationConfigRoutingConfigManualRoutingMode
Deserializes a JSON string to a GenerationConfigRoutingConfigManualRoutingMode object.
fromJson(String) - Static method in class com.google.genai.types.GetCachedContentConfig
Deserializes a JSON string to a GetCachedContentConfig object.
fromJson(String) - Static method in class com.google.genai.types.GetCachedContentParameters
Deserializes a JSON string to a GetCachedContentParameters object.
fromJson(String) - Static method in class com.google.genai.types.GetFileConfig
Deserializes a JSON string to a GetFileConfig object.
fromJson(String) - Static method in class com.google.genai.types.GetFileParameters
Deserializes a JSON string to a GetFileParameters object.
fromJson(String) - Static method in class com.google.genai.types.GetModelConfig
Deserializes a JSON string to a GetModelConfig object.
fromJson(String) - Static method in class com.google.genai.types.GetModelParameters
Deserializes a JSON string to a GetModelParameters object.
fromJson(String) - Static method in class com.google.genai.types.GetOperationConfig
Deserializes a JSON string to a GetOperationConfig object.
fromJson(String) - Static method in class com.google.genai.types.GetOperationParameters
Deserializes a JSON string to a GetOperationParameters object.
fromJson(String) - Static method in class com.google.genai.types.GoogleMaps
Deserializes a JSON string to a GoogleMaps object.
fromJson(String) - Static method in class com.google.genai.types.GoogleSearch
Deserializes a JSON string to a GoogleSearch object.
fromJson(String) - Static method in class com.google.genai.types.GoogleSearchRetrieval
Deserializes a JSON string to a GoogleSearchRetrieval object.
fromJson(String) - Static method in class com.google.genai.types.GoogleTypeDate
Deserializes a JSON string to a GoogleTypeDate object.
fromJson(String) - Static method in class com.google.genai.types.GroundingChunk
Deserializes a JSON string to a GroundingChunk object.
fromJson(String) - Static method in class com.google.genai.types.GroundingChunkRetrievedContext
Deserializes a JSON string to a GroundingChunkRetrievedContext object.
fromJson(String) - Static method in class com.google.genai.types.GroundingChunkWeb
Deserializes a JSON string to a GroundingChunkWeb object.
fromJson(String) - Static method in class com.google.genai.types.GroundingMetadata
Deserializes a JSON string to a GroundingMetadata object.
fromJson(String) - Static method in class com.google.genai.types.GroundingSupport
Deserializes a JSON string to a GroundingSupport object.
fromJson(String) - Static method in class com.google.genai.types.HttpOptions
Deserializes a JSON string to a HttpOptions object.
fromJson(String) - Static method in class com.google.genai.types.HttpResponse
Deserializes a JSON string to a HttpResponse object.
fromJson(String) - Static method in class com.google.genai.types.Image
Deserializes a JSON string to a Image object.
fromJson(String) - Static method in class com.google.genai.types.Interval
Deserializes a JSON string to a Interval object.
fromJson(String) - Static method in class com.google.genai.types.LatLng
Deserializes a JSON string to a LatLng object.
fromJson(String) - Static method in class com.google.genai.types.ListCachedContentsConfig
Deserializes a JSON string to a ListCachedContentsConfig object.
fromJson(String) - Static method in class com.google.genai.types.ListCachedContentsParameters
Deserializes a JSON string to a ListCachedContentsParameters object.
fromJson(String) - Static method in class com.google.genai.types.ListCachedContentsResponse
Deserializes a JSON string to a ListCachedContentsResponse object.
fromJson(String) - Static method in class com.google.genai.types.ListFilesConfig
Deserializes a JSON string to a ListFilesConfig object.
fromJson(String) - Static method in class com.google.genai.types.ListFilesParameters
Deserializes a JSON string to a ListFilesParameters object.
fromJson(String) - Static method in class com.google.genai.types.ListFilesResponse
Deserializes a JSON string to a ListFilesResponse object.
fromJson(String) - Static method in class com.google.genai.types.ListModelsConfig
Deserializes a JSON string to a ListModelsConfig object.
fromJson(String) - Static method in class com.google.genai.types.ListModelsParameters
Deserializes a JSON string to a ListModelsParameters object.
fromJson(String) - Static method in class com.google.genai.types.ListModelsResponse
Deserializes a JSON string to a ListModelsResponse object.
fromJson(String) - Static method in class com.google.genai.types.LiveClientContent
Deserializes a JSON string to a LiveClientContent object.
fromJson(String) - Static method in class com.google.genai.types.LiveClientMessage
Deserializes a JSON string to a LiveClientMessage object.
fromJson(String) - Static method in class com.google.genai.types.LiveClientRealtimeInput
Deserializes a JSON string to a LiveClientRealtimeInput object.
fromJson(String) - Static method in class com.google.genai.types.LiveClientSetup
Deserializes a JSON string to a LiveClientSetup object.
fromJson(String) - Static method in class com.google.genai.types.LiveClientToolResponse
Deserializes a JSON string to a LiveClientToolResponse object.
fromJson(String) - Static method in class com.google.genai.types.LiveConnectConfig
Deserializes a JSON string to a LiveConnectConfig object.
fromJson(String) - Static method in class com.google.genai.types.LiveConnectParameters
Deserializes a JSON string to a LiveConnectParameters object.
fromJson(String) - Static method in class com.google.genai.types.LiveConstrainedParameters
Deserializes a JSON string to a LiveConstrainedParameters object.
fromJson(String) - Static method in class com.google.genai.types.LiveEphemeralParameters
Deserializes a JSON string to a LiveEphemeralParameters object.
fromJson(String) - Static method in class com.google.genai.types.LiveSendClientContentParameters
Deserializes a JSON string to a LiveSendClientContentParameters object.
fromJson(String) - Static method in class com.google.genai.types.LiveSendRealtimeInputParameters
Deserializes a JSON string to a LiveSendRealtimeInputParameters object.
fromJson(String) - Static method in class com.google.genai.types.LiveSendToolResponseParameters
Deserializes a JSON string to a LiveSendToolResponseParameters object.
fromJson(String) - Static method in class com.google.genai.types.LiveServerContent
Deserializes a JSON string to a LiveServerContent object.
fromJson(String) - Static method in class com.google.genai.types.LiveServerGoAway
Deserializes a JSON string to a LiveServerGoAway object.
fromJson(String) - Static method in class com.google.genai.types.LiveServerMessage
Deserializes a JSON string to a LiveServerMessage object.
fromJson(String) - Static method in class com.google.genai.types.LiveServerSessionResumptionUpdate
Deserializes a JSON string to a LiveServerSessionResumptionUpdate object.
fromJson(String) - Static method in class com.google.genai.types.LiveServerSetupComplete
Deserializes a JSON string to a LiveServerSetupComplete object.
fromJson(String) - Static method in class com.google.genai.types.LiveServerToolCall
Deserializes a JSON string to a LiveServerToolCall object.
fromJson(String) - Static method in class com.google.genai.types.LiveServerToolCallCancellation
Deserializes a JSON string to a LiveServerToolCallCancellation object.
fromJson(String) - Static method in class com.google.genai.types.LogprobsResult
Deserializes a JSON string to a LogprobsResult object.
fromJson(String) - Static method in class com.google.genai.types.LogprobsResultCandidate
Deserializes a JSON string to a LogprobsResultCandidate object.
fromJson(String) - Static method in class com.google.genai.types.LogprobsResultTopCandidates
Deserializes a JSON string to a LogprobsResultTopCandidates object.
fromJson(String) - Static method in class com.google.genai.types.MaskReferenceConfig
Deserializes a JSON string to a MaskReferenceConfig object.
fromJson(String) - Static method in class com.google.genai.types.MaskReferenceImage
Deserializes a JSON string to a MaskReferenceImage object.
fromJson(String) - Static method in class com.google.genai.types.ModalityTokenCount
Deserializes a JSON string to a ModalityTokenCount object.
fromJson(String) - Static method in class com.google.genai.types.Model
Deserializes a JSON string to a Model object.
fromJson(String) - Static method in class com.google.genai.types.ModelSelectionConfig
Deserializes a JSON string to a ModelSelectionConfig object.
fromJson(String) - Static method in class com.google.genai.types.MultiSpeakerVoiceConfig
Deserializes a JSON string to a MultiSpeakerVoiceConfig object.
fromJson(String) - Static method in class com.google.genai.types.Part
Deserializes a JSON string to a Part object.
fromJson(String) - Static method in class com.google.genai.types.PrebuiltVoiceConfig
Deserializes a JSON string to a PrebuiltVoiceConfig object.
fromJson(String) - Static method in class com.google.genai.types.ProactivityConfig
Deserializes a JSON string to a ProactivityConfig object.
fromJson(String) - Static method in class com.google.genai.types.RagRetrievalConfig
Deserializes a JSON string to a RagRetrievalConfig object.
fromJson(String) - Static method in class com.google.genai.types.RagRetrievalConfigFilter
Deserializes a JSON string to a RagRetrievalConfigFilter object.
fromJson(String) - Static method in class com.google.genai.types.RagRetrievalConfigHybridSearch
Deserializes a JSON string to a RagRetrievalConfigHybridSearch object.
fromJson(String) - Static method in class com.google.genai.types.RagRetrievalConfigRanking
Deserializes a JSON string to a RagRetrievalConfigRanking object.
fromJson(String) - Static method in class com.google.genai.types.RagRetrievalConfigRankingLlmRanker
Deserializes a JSON string to a RagRetrievalConfigRankingLlmRanker object.
fromJson(String) - Static method in class com.google.genai.types.RagRetrievalConfigRankingRankService
Deserializes a JSON string to a RagRetrievalConfigRankingRankService object.
fromJson(String) - Static method in class com.google.genai.types.RawReferenceImage
Deserializes a JSON string to a RawReferenceImage object.
fromJson(String) - Static method in class com.google.genai.types.RealtimeInputConfig
Deserializes a JSON string to a RealtimeInputConfig object.
fromJson(String) - Static method in class com.google.genai.types.ReferenceImageAPI
Deserializes a JSON string to a ReferenceImageAPI object.
fromJson(String) - Static method in class com.google.genai.types.ReplayFile
Deserializes a JSON string to a ReplayFile object.
fromJson(String) - Static method in class com.google.genai.types.ReplayInteraction
Deserializes a JSON string to a ReplayInteraction object.
fromJson(String) - Static method in class com.google.genai.types.ReplayRequest
Deserializes a JSON string to a ReplayRequest object.
fromJson(String) - Static method in class com.google.genai.types.ReplayResponse
Deserializes a JSON string to a ReplayResponse object.
fromJson(String) - Static method in class com.google.genai.types.Retrieval
Deserializes a JSON string to a Retrieval object.
fromJson(String) - Static method in class com.google.genai.types.RetrievalConfig
Deserializes a JSON string to a RetrievalConfig object.
fromJson(String) - Static method in class com.google.genai.types.RetrievalMetadata
Deserializes a JSON string to a RetrievalMetadata object.
fromJson(String) - Static method in class com.google.genai.types.SafetyAttributes
Deserializes a JSON string to a SafetyAttributes object.
fromJson(String) - Static method in class com.google.genai.types.SafetyRating
Deserializes a JSON string to a SafetyRating object.
fromJson(String) - Static method in class com.google.genai.types.SafetySetting
Deserializes a JSON string to a SafetySetting object.
fromJson(String) - Static method in class com.google.genai.types.Schema
Deserializes a JSON string to a Schema object.
fromJson(String) - Static method in class com.google.genai.types.SearchEntryPoint
Deserializes a JSON string to a SearchEntryPoint object.
fromJson(String) - Static method in class com.google.genai.types.Segment
Deserializes a JSON string to a Segment object.
fromJson(String) - Static method in class com.google.genai.types.SessionResumptionConfig
Deserializes a JSON string to a SessionResumptionConfig object.
fromJson(String) - Static method in class com.google.genai.types.SlidingWindow
Deserializes a JSON string to a SlidingWindow object.
fromJson(String) - Static method in class com.google.genai.types.SpeakerVoiceConfig
Deserializes a JSON string to a SpeakerVoiceConfig object.
fromJson(String) - Static method in class com.google.genai.types.SpeechConfig
Deserializes a JSON string to a SpeechConfig object.
fromJson(String) - Static method in class com.google.genai.types.StyleReferenceConfig
Deserializes a JSON string to a StyleReferenceConfig object.
fromJson(String) - Static method in class com.google.genai.types.StyleReferenceImage
Deserializes a JSON string to a StyleReferenceImage object.
fromJson(String) - Static method in class com.google.genai.types.SubjectReferenceConfig
Deserializes a JSON string to a SubjectReferenceConfig object.
fromJson(String) - Static method in class com.google.genai.types.SubjectReferenceImage
Deserializes a JSON string to a SubjectReferenceImage object.
fromJson(String) - Static method in class com.google.genai.types.TestTableFile
Deserializes a JSON string to a TestTableFile object.
fromJson(String) - Static method in class com.google.genai.types.TestTableItem
Deserializes a JSON string to a TestTableItem object.
fromJson(String) - Static method in class com.google.genai.types.ThinkingConfig
Deserializes a JSON string to a ThinkingConfig object.
fromJson(String) - Static method in class com.google.genai.types.TokensInfo
Deserializes a JSON string to a TokensInfo object.
fromJson(String) - Static method in class com.google.genai.types.Tool
Deserializes a JSON string to a Tool object.
fromJson(String) - Static method in class com.google.genai.types.ToolCodeExecution
Deserializes a JSON string to a ToolCodeExecution object.
fromJson(String) - Static method in class com.google.genai.types.ToolConfig
Deserializes a JSON string to a ToolConfig object.
fromJson(String) - Static method in class com.google.genai.types.Transcription
Deserializes a JSON string to a Transcription object.
fromJson(String) - Static method in class com.google.genai.types.TunedModelInfo
Deserializes a JSON string to a TunedModelInfo object.
fromJson(String) - Static method in class com.google.genai.types.UpdateModelConfig
Deserializes a JSON string to a UpdateModelConfig object.
fromJson(String) - Static method in class com.google.genai.types.UpdateModelParameters
Deserializes a JSON string to a UpdateModelParameters object.
fromJson(String) - Static method in class com.google.genai.types.UploadFileConfig
Deserializes a JSON string to a UploadFileConfig object.
fromJson(String) - Static method in class com.google.genai.types.UpscaleImageAPIConfig
Deserializes a JSON string to a UpscaleImageAPIConfig object.
fromJson(String) - Static method in class com.google.genai.types.UpscaleImageAPIParameters
Deserializes a JSON string to a UpscaleImageAPIParameters object.
fromJson(String) - Static method in class com.google.genai.types.UpscaleImageConfig
Deserializes a JSON string to a UpscaleImageConfig object.
fromJson(String) - Static method in class com.google.genai.types.UpscaleImageParameters
Deserializes a JSON string to a UpscaleImageParameters object.
fromJson(String) - Static method in class com.google.genai.types.UpscaleImageResponse
Deserializes a JSON string to a UpscaleImageResponse object.
fromJson(String) - Static method in class com.google.genai.types.UrlContext
Deserializes a JSON string to a UrlContext object.
fromJson(String) - Static method in class com.google.genai.types.UrlContextMetadata
Deserializes a JSON string to a UrlContextMetadata object.
fromJson(String) - Static method in class com.google.genai.types.UrlMetadata
Deserializes a JSON string to a UrlMetadata object.
fromJson(String) - Static method in class com.google.genai.types.UsageMetadata
Deserializes a JSON string to a UsageMetadata object.
fromJson(String) - Static method in class com.google.genai.types.VertexAISearch
Deserializes a JSON string to a VertexAISearch object.
fromJson(String) - Static method in class com.google.genai.types.VertexRagStore
Deserializes a JSON string to a VertexRagStore object.
fromJson(String) - Static method in class com.google.genai.types.VertexRagStoreRagResource
Deserializes a JSON string to a VertexRagStoreRagResource object.
fromJson(String) - Static method in class com.google.genai.types.Video
Deserializes a JSON string to a Video object.
fromJson(String) - Static method in class com.google.genai.types.VideoMetadata
Deserializes a JSON string to a VideoMetadata object.
fromJson(String) - Static method in class com.google.genai.types.VoiceConfig
Deserializes a JSON string to a VoiceConfig object.
fromMethod(Method, String...) - Static method in class com.google.genai.types.FunctionDeclaration
Creates a FunctionDeclaration instance from a Method instance.
fromMethod(String, Method, String...) - Static method in class com.google.genai.types.FunctionDeclaration
Creates a FunctionDeclaration instance from a Method instance.
fromParts(Part...) - Static method in class com.google.genai.types.Content
Constructs a Content from parts, assuming the role is "user".
fromText(String) - Static method in class com.google.genai.types.Part
Constructs a Text Part from a text string.
fromUri(String, String) - Static method in class com.google.genai.types.Part
Constructs a FileData Part from a file URI and MIME type.
FUNCTION_CALLING_CONFIG_MODE_UNSPECIFIED - Enum constant in enum com.google.genai.types.FunctionCallingConfigMode.Known
 
FUNCTION_RESPONSE_SCHEDULING_UNSPECIFIED - Enum constant in enum com.google.genai.types.FunctionResponseScheduling.Known
 
functionCall() - Method in class com.google.genai.types.Part
Optional.
functionCall(FunctionCall) - Method in class com.google.genai.types.Part.Builder
 
FunctionCall - Class in com.google.genai.types
A function call.
FunctionCall() - Constructor for class com.google.genai.types.FunctionCall
 
FunctionCall.Builder - Class in com.google.genai.types
Builder for FunctionCall.
functionCallingConfig() - Method in class com.google.genai.types.ToolConfig
Optional.
functionCallingConfig(FunctionCallingConfig) - Method in class com.google.genai.types.ToolConfig.Builder
 
FunctionCallingConfig - Class in com.google.genai.types
Function calling config.
FunctionCallingConfig() - Constructor for class com.google.genai.types.FunctionCallingConfig
 
FunctionCallingConfig.Builder - Class in com.google.genai.types
Builder for FunctionCallingConfig.
FunctionCallingConfigMode - Class in com.google.genai.types
Config for the function calling config mode.
FunctionCallingConfigMode(FunctionCallingConfigMode.Known) - Constructor for class com.google.genai.types.FunctionCallingConfigMode
 
FunctionCallingConfigMode(String) - Constructor for class com.google.genai.types.FunctionCallingConfigMode
 
FunctionCallingConfigMode.Known - Enum in com.google.genai.types
Enum representing the known values for FunctionCallingConfigMode.
functionCalls() - Method in class com.google.genai.types.GenerateContentResponse
Returns the list of function calls in the response.
functionCalls() - Method in class com.google.genai.types.LiveServerToolCall
The function call to be executed.
functionCalls(List<FunctionCall>) - Method in class com.google.genai.types.LiveServerToolCall.Builder
 
FunctionDeclaration - Class in com.google.genai.types
Defines a function that the model can generate JSON inputs for.
FunctionDeclaration() - Constructor for class com.google.genai.types.FunctionDeclaration
 
FunctionDeclaration.Builder - Class in com.google.genai.types
Builder for FunctionDeclaration.
functionDeclarations() - Method in class com.google.genai.types.Tool
List of function declarations that the tool supports.
functionDeclarations(List<FunctionDeclaration>) - Method in class com.google.genai.types.Tool.Builder
 
functionResponse() - Method in class com.google.genai.types.Part
Optional.
functionResponse(FunctionResponse) - Method in class com.google.genai.types.Part.Builder
 
FunctionResponse - Class in com.google.genai.types
A function response.
FunctionResponse() - Constructor for class com.google.genai.types.FunctionResponse
 
FunctionResponse.Builder - Class in com.google.genai.types
Builder for FunctionResponse.
functionResponses() - Method in class com.google.genai.types.LiveClientToolResponse
The response to the function calls.
functionResponses() - Method in class com.google.genai.types.LiveSendToolResponseParameters
Tool responses to send to the session.
functionResponses(List<FunctionResponse>) - Method in class com.google.genai.types.LiveClientToolResponse.Builder
 
functionResponses(List<FunctionResponse>) - Method in class com.google.genai.types.LiveSendToolResponseParameters.Builder
 
FunctionResponseScheduling - Class in com.google.genai.types
Specifies how the response should be scheduled in the conversation.
FunctionResponseScheduling(FunctionResponseScheduling.Known) - Constructor for class com.google.genai.types.FunctionResponseScheduling
 
FunctionResponseScheduling(String) - Constructor for class com.google.genai.types.FunctionResponseScheduling
 
FunctionResponseScheduling.Known - Enum in com.google.genai.types
Enum representing the known values for FunctionResponseScheduling.
functions() - Method in class com.google.genai.types.Tool
The java.lang.reflect.Method instance.
functions(List<Method>) - Method in class com.google.genai.types.Tool.Builder
 

G

gcsUri() - Method in class com.google.genai.types.Image
The Cloud Storage URI of the image.
gcsUri(String) - Method in class com.google.genai.types.Image.Builder
 
GenAiIOException - Exception in com.google.genai.errors
IO exception raised in the GenAI SDK.
GenAiIOException(String) - Constructor for exception com.google.genai.errors.GenAiIOException
Creates a new GenAiIoException with the specified message.
GenAiIOException(String, IOException) - Constructor for exception com.google.genai.errors.GenAiIOException
Creates a new GenAiIoException with the specified message and the original IOException.
GenAiIOException(Throwable) - Constructor for exception com.google.genai.errors.GenAiIOException
Creates a new GenAiIoException with the specified cause.
generateContent(String, Content, GenerateContentConfig) - Method in class com.google.genai.AsyncModels
Asynchronously generates content given a GenAI model and a content object.
generateContent(String, Content, GenerateContentConfig) - Method in class com.google.genai.Models
Generates content given a GenAI model and a content object.
generateContent(String, String, GenerateContentConfig) - Method in class com.google.genai.AsyncModels
Asynchronously generates content given a GenAI model and a text string.
generateContent(String, String, GenerateContentConfig) - Method in class com.google.genai.Models
Generates content given a GenAI model and a text string.
generateContent(String, List<Content>, GenerateContentConfig) - Method in class com.google.genai.AsyncModels
Asynchronously generates content given a GenAI model and a list of content.
generateContent(String, List<Content>, GenerateContentConfig) - Method in class com.google.genai.Models
Generates content given a GenAI model and a list of content.
GenerateContentConfig - Class in com.google.genai.types
Optional model configuration parameters.
GenerateContentConfig() - Constructor for class com.google.genai.types.GenerateContentConfig
 
GenerateContentConfig.Builder - Class in com.google.genai.types
Builder for GenerateContentConfig.
GenerateContentParameters - Class in com.google.genai.types
Config for models.generate_content parameters.
GenerateContentParameters() - Constructor for class com.google.genai.types.GenerateContentParameters
 
GenerateContentParameters.Builder - Class in com.google.genai.types
Builder for GenerateContentParameters.
GenerateContentResponse - Class in com.google.genai.types
Response message for PredictionService.GenerateContent.
GenerateContentResponse() - Constructor for class com.google.genai.types.GenerateContentResponse
 
GenerateContentResponse.Builder - Class in com.google.genai.types
Builder for GenerateContentResponse.
GenerateContentResponsePromptFeedback - Class in com.google.genai.types
Content filter results for a prompt sent in the request.
GenerateContentResponsePromptFeedback() - Constructor for class com.google.genai.types.GenerateContentResponsePromptFeedback
 
GenerateContentResponsePromptFeedback.Builder - Class in com.google.genai.types
Builder for GenerateContentResponsePromptFeedback.
GenerateContentResponseUsageMetadata - Class in com.google.genai.types
Usage metadata about response(s).
GenerateContentResponseUsageMetadata() - Constructor for class com.google.genai.types.GenerateContentResponseUsageMetadata
 
GenerateContentResponseUsageMetadata.Builder - Class in com.google.genai.types
Builder for GenerateContentResponseUsageMetadata.
generateContentStream(String, Content, GenerateContentConfig) - Method in class com.google.genai.AsyncModels
Asynchronously generates content with streaming support given a GenAI model and a content object.
generateContentStream(String, Content, GenerateContentConfig) - Method in class com.google.genai.Models
Generates content with streaming support given a GenAI model and a content object.
generateContentStream(String, String, GenerateContentConfig) - Method in class com.google.genai.AsyncModels
Asynchronously generates content with streaming support given a GenAI model and a text string.
generateContentStream(String, String, GenerateContentConfig) - Method in class com.google.genai.Models
Generates content with streaming support given a GenAI model and a text string.
generateContentStream(String, List<Content>, GenerateContentConfig) - Method in class com.google.genai.AsyncModels
Asynchronously generates content with streaming support given a GenAI model and a list of content.
generateContentStream(String, List<Content>, GenerateContentConfig) - Method in class com.google.genai.Models
Generates content with streaming support given a GenAI model and a list of content.
GENERATED - Enum constant in enum com.google.genai.types.FileSource.Known
 
GeneratedImage - Class in com.google.genai.types
An output image.
GeneratedImage() - Constructor for class com.google.genai.types.GeneratedImage
 
GeneratedImage.Builder - Class in com.google.genai.types
Builder for GeneratedImage.
generatedImages() - Method in class com.google.genai.types.EditImageResponse
Generated images.
generatedImages() - Method in class com.google.genai.types.GenerateImagesResponse
List of generated images.
generatedImages() - Method in class com.google.genai.types.UpscaleImageResponse
Generated images.
generatedImages(List<GeneratedImage>) - Method in class com.google.genai.types.EditImageResponse.Builder
 
generatedImages(List<GeneratedImage>) - Method in class com.google.genai.types.GenerateImagesResponse.Builder
 
generatedImages(List<GeneratedImage>) - Method in class com.google.genai.types.UpscaleImageResponse.Builder
 
GeneratedVideo - Class in com.google.genai.types
A generated video.
GeneratedVideo() - Constructor for class com.google.genai.types.GeneratedVideo
 
GeneratedVideo.Builder - Class in com.google.genai.types
Builder for GeneratedVideo.
generatedVideos() - Method in class com.google.genai.types.GenerateVideosResponse
List of the generated videos
generatedVideos(List<GeneratedVideo>) - Method in class com.google.genai.types.GenerateVideosResponse.Builder
 
generateImages(String, String, GenerateImagesConfig) - Method in class com.google.genai.AsyncModels
Asynchronously generates images given a GenAI model and a prompt.
generateImages(String, String, GenerateImagesConfig) - Method in class com.google.genai.Models
Generates images given a GenAI model and a prompt.
GenerateImagesConfig - Class in com.google.genai.types
The config for generating an images.
GenerateImagesConfig() - Constructor for class com.google.genai.types.GenerateImagesConfig
 
GenerateImagesConfig.Builder - Class in com.google.genai.types
Builder for GenerateImagesConfig.
GenerateImagesParameters - Class in com.google.genai.types
The parameters for generating images.
GenerateImagesParameters() - Constructor for class com.google.genai.types.GenerateImagesParameters
 
GenerateImagesParameters.Builder - Class in com.google.genai.types
Builder for GenerateImagesParameters.
GenerateImagesResponse - Class in com.google.genai.types
The output images response.
GenerateImagesResponse() - Constructor for class com.google.genai.types.GenerateImagesResponse
 
GenerateImagesResponse.Builder - Class in com.google.genai.types
Builder for GenerateImagesResponse.
generateVideos(String, String, Image, GenerateVideosConfig) - Method in class com.google.genai.AsyncModels
Asynchronously generates videos given a GenAI model, and a prompt or an image.
generateVideos(String, String, Image, GenerateVideosConfig) - Method in class com.google.genai.Models
Generates videos given a GenAI model, and a prompt or an image.
GenerateVideosConfig - Class in com.google.genai.types
Configuration for generating videos.
GenerateVideosConfig() - Constructor for class com.google.genai.types.GenerateVideosConfig
 
GenerateVideosConfig.Builder - Class in com.google.genai.types
Builder for GenerateVideosConfig.
GenerateVideosOperation - Class in com.google.genai.types
A video generation operation.
GenerateVideosOperation() - Constructor for class com.google.genai.types.GenerateVideosOperation
 
GenerateVideosOperation.Builder - Class in com.google.genai.types
Builder for GenerateVideosOperation.
GenerateVideosParameters - Class in com.google.genai.types
Class that represents the parameters for generating an image.
GenerateVideosParameters() - Constructor for class com.google.genai.types.GenerateVideosParameters
 
GenerateVideosParameters.Builder - Class in com.google.genai.types
Builder for GenerateVideosParameters.
GenerateVideosResponse - Class in com.google.genai.types
Response with generated videos.
GenerateVideosResponse() - Constructor for class com.google.genai.types.GenerateVideosResponse
 
GenerateVideosResponse.Builder - Class in com.google.genai.types
Builder for GenerateVideosResponse.
generationComplete() - Method in class com.google.genai.types.LiveServerContent
If true, indicates that the model is done generating.
generationComplete(boolean) - Method in class com.google.genai.types.LiveServerContent.Builder
 
generationConfig() - Method in class com.google.genai.types.CountTokensConfig
Configuration that the model uses to generate the response.
generationConfig() - Method in class com.google.genai.types.LiveClientSetup
The generation configuration for the session.
generationConfig(GenerationConfig) - Method in class com.google.genai.types.CountTokensConfig.Builder
 
generationConfig(GenerationConfig) - Method in class com.google.genai.types.LiveClientSetup.Builder
 
GenerationConfig - Class in com.google.genai.types
Generation config.
GenerationConfig() - Constructor for class com.google.genai.types.GenerationConfig
 
GenerationConfig.Builder - Class in com.google.genai.types
Builder for GenerationConfig.
GenerationConfigRoutingConfig - Class in com.google.genai.types
The configuration for routing the request to a specific model.
GenerationConfigRoutingConfig() - Constructor for class com.google.genai.types.GenerationConfigRoutingConfig
 
GenerationConfigRoutingConfig.Builder - Class in com.google.genai.types
Builder for GenerationConfigRoutingConfig.
GenerationConfigRoutingConfigAutoRoutingMode - Class in com.google.genai.types
When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference.
GenerationConfigRoutingConfigAutoRoutingMode() - Constructor for class com.google.genai.types.GenerationConfigRoutingConfigAutoRoutingMode
 
GenerationConfigRoutingConfigAutoRoutingMode.Builder - Class in com.google.genai.types
Builder for GenerationConfigRoutingConfigAutoRoutingMode.
GenerationConfigRoutingConfigManualRoutingMode - Class in com.google.genai.types
When manual routing is set, the specified model will be used directly.
GenerationConfigRoutingConfigManualRoutingMode() - Constructor for class com.google.genai.types.GenerationConfigRoutingConfigManualRoutingMode
 
GenerationConfigRoutingConfigManualRoutingMode.Builder - Class in com.google.genai.types
Builder for GenerationConfigRoutingConfigManualRoutingMode.
get(String, GetCachedContentConfig) - Method in class com.google.genai.AsyncCaches
Asynchronously gets a cached content resource.
get(String, GetCachedContentConfig) - Method in class com.google.genai.Caches
Gets a cached content resource.
get(String, GetFileConfig) - Method in class com.google.genai.AsyncFiles
Asynchronously retrieves the file information from the service.
get(String, GetFileConfig) - Method in class com.google.genai.Files
Retrieves the file information from the service.
get(String, GetModelConfig) - Method in class com.google.genai.AsyncModels
Asynchronously fetches information about a model by name.
get(String, GetModelConfig) - Method in class com.google.genai.Models
Fetches information about a model by name.
GetCachedContentConfig - Class in com.google.genai.types
Optional parameters for caches.get method.
GetCachedContentConfig() - Constructor for class com.google.genai.types.GetCachedContentConfig
 
GetCachedContentConfig.Builder - Class in com.google.genai.types
Builder for GetCachedContentConfig.
GetCachedContentParameters - Class in com.google.genai.types
Parameters for caches.get method.
GetCachedContentParameters() - Constructor for class com.google.genai.types.GetCachedContentParameters
 
GetCachedContentParameters.Builder - Class in com.google.genai.types
Builder for GetCachedContentParameters.
GetFileConfig - Class in com.google.genai.types
Used to override the default configuration.
GetFileConfig() - Constructor for class com.google.genai.types.GetFileConfig
 
GetFileConfig.Builder - Class in com.google.genai.types
Builder for GetFileConfig.
GetFileParameters - Class in com.google.genai.types
Generates the parameters for the get method.
GetFileParameters() - Constructor for class com.google.genai.types.GetFileParameters
 
GetFileParameters.Builder - Class in com.google.genai.types
Builder for GetFileParameters.
getHistory(boolean) - Method in class com.google.genai.AsyncChat
Returns the chat history.
GetModelConfig - Class in com.google.genai.types
Optional parameters for models.get method.
GetModelConfig() - Constructor for class com.google.genai.types.GetModelConfig
 
GetModelConfig.Builder - Class in com.google.genai.types
Builder for GetModelConfig.
GetModelParameters - Class in com.google.genai.types
None
GetModelParameters() - Constructor for class com.google.genai.types.GetModelParameters
 
GetModelParameters.Builder - Class in com.google.genai.types
Builder for GetModelParameters.
GetOperationConfig - Class in com.google.genai.types
None
GetOperationConfig() - Constructor for class com.google.genai.types.GetOperationConfig
 
GetOperationConfig.Builder - Class in com.google.genai.types
Builder for GetOperationConfig.
GetOperationParameters - Class in com.google.genai.types
Parameters for the GET method.
GetOperationParameters() - Constructor for class com.google.genai.types.GetOperationParameters
 
GetOperationParameters.Builder - Class in com.google.genai.types
Builder for GetOperationParameters.
getVideosOperation(GenerateVideosOperation, GetOperationConfig) - Method in class com.google.genai.AsyncOperations
Gets the status of a GenerateVideosOperation.
getVideosOperation(GenerateVideosOperation, GetOperationConfig) - Method in class com.google.genai.Operations
Gets the status of a GenerateVideosOperation.
goAway() - Method in class com.google.genai.types.LiveServerMessage
Server will disconnect soon.
goAway(LiveServerGoAway) - Method in class com.google.genai.types.LiveServerMessage.Builder
 
GOOGLE_SERVICE_ACCOUNT_AUTH - Enum constant in enum com.google.genai.types.AuthType.Known
Google Service Account Auth.
googleMaps() - Method in class com.google.genai.types.Tool
Optional.
googleMaps(GoogleMaps) - Method in class com.google.genai.types.Tool.Builder
 
GoogleMaps - Class in com.google.genai.types
Tool to support Google Maps in Model.
GoogleMaps() - Constructor for class com.google.genai.types.GoogleMaps
 
GoogleMaps.Builder - Class in com.google.genai.types
Builder for GoogleMaps.
googleSearch() - Method in class com.google.genai.types.Tool
Optional.
googleSearch(GoogleSearch) - Method in class com.google.genai.types.Tool.Builder
 
GoogleSearch - Class in com.google.genai.types
Tool to support Google Search in Model.
GoogleSearch() - Constructor for class com.google.genai.types.GoogleSearch
 
GoogleSearch.Builder - Class in com.google.genai.types
Builder for GoogleSearch.
googleSearchDynamicRetrievalScore() - Method in class com.google.genai.types.RetrievalMetadata
Optional.
googleSearchDynamicRetrievalScore(Float) - Method in class com.google.genai.types.RetrievalMetadata.Builder
 
googleSearchRetrieval() - Method in class com.google.genai.types.Tool
Optional.
googleSearchRetrieval(GoogleSearchRetrieval) - Method in class com.google.genai.types.Tool.Builder
 
GoogleSearchRetrieval - Class in com.google.genai.types
Tool to retrieve public web data for grounding, powered by Google.
GoogleSearchRetrieval() - Constructor for class com.google.genai.types.GoogleSearchRetrieval
 
GoogleSearchRetrieval.Builder - Class in com.google.genai.types
Builder for GoogleSearchRetrieval.
googleServiceAccountConfig() - Method in class com.google.genai.types.AuthConfig
Config for Google Service Account auth.
googleServiceAccountConfig(AuthConfigGoogleServiceAccountConfig) - Method in class com.google.genai.types.AuthConfig.Builder
 
GoogleTypeDate - Class in com.google.genai.types
Represents a whole or partial calendar date, such as a birthday.
GoogleTypeDate() - Constructor for class com.google.genai.types.GoogleTypeDate
 
GoogleTypeDate.Builder - Class in com.google.genai.types
Builder for GoogleTypeDate.
GroundingChunk - Class in com.google.genai.types
Grounding chunk.
GroundingChunk() - Constructor for class com.google.genai.types.GroundingChunk
 
GroundingChunk.Builder - Class in com.google.genai.types
Builder for GroundingChunk.
groundingChunkIndices() - Method in class com.google.genai.types.GroundingSupport
A list of indices (into 'grounding_chunk') specifying the citations associated with the claim.
groundingChunkIndices(List<Integer>) - Method in class com.google.genai.types.GroundingSupport.Builder
 
GroundingChunkRetrievedContext - Class in com.google.genai.types
Chunk from context retrieved by the retrieval tools.
GroundingChunkRetrievedContext() - Constructor for class com.google.genai.types.GroundingChunkRetrievedContext
 
GroundingChunkRetrievedContext.Builder - Class in com.google.genai.types
Builder for GroundingChunkRetrievedContext.
groundingChunks() - Method in class com.google.genai.types.GroundingMetadata
List of supporting references retrieved from specified grounding source.
groundingChunks(List<GroundingChunk>) - Method in class com.google.genai.types.GroundingMetadata.Builder
 
GroundingChunkWeb - Class in com.google.genai.types
Chunk from the web.
GroundingChunkWeb() - Constructor for class com.google.genai.types.GroundingChunkWeb
 
GroundingChunkWeb.Builder - Class in com.google.genai.types
Builder for GroundingChunkWeb.
groundingMetadata() - Method in class com.google.genai.types.Candidate
Output only.
groundingMetadata() - Method in class com.google.genai.types.LiveServerContent
Metadata returned to client when grounding is enabled.
groundingMetadata(GroundingMetadata) - Method in class com.google.genai.types.Candidate.Builder
 
groundingMetadata(GroundingMetadata) - Method in class com.google.genai.types.LiveServerContent.Builder
 
GroundingMetadata - Class in com.google.genai.types
Metadata returned to client when grounding is enabled.
GroundingMetadata() - Constructor for class com.google.genai.types.GroundingMetadata
 
GroundingMetadata.Builder - Class in com.google.genai.types
Builder for GroundingMetadata.
GroundingSupport - Class in com.google.genai.types
Grounding support.
GroundingSupport() - Constructor for class com.google.genai.types.GroundingSupport
 
GroundingSupport.Builder - Class in com.google.genai.types
Builder for GroundingSupport.
groundingSupports() - Method in class com.google.genai.types.GroundingMetadata
Optional.
groundingSupports(List<GroundingSupport>) - Method in class com.google.genai.types.GroundingMetadata.Builder
 
guidanceScale() - Method in class com.google.genai.types.EditImageConfig
Controls how much the model adheres to the text prompt.
guidanceScale() - Method in class com.google.genai.types.GenerateImagesConfig
Controls how much the model adheres to the text prompt.
guidanceScale(Float) - Method in class com.google.genai.types.EditImageConfig.Builder
 
guidanceScale(Float) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 

H

handle() - Method in class com.google.genai.types.SessionResumptionConfig
Session resumption handle of previous session (session to restore).
handle(String) - Method in class com.google.genai.types.SessionResumptionConfig.Builder
 
HARM_BLOCK_METHOD_UNSPECIFIED - Enum constant in enum com.google.genai.types.HarmBlockMethod.Known
The harm block method is unspecified.
HARM_BLOCK_THRESHOLD_UNSPECIFIED - Enum constant in enum com.google.genai.types.HarmBlockThreshold.Known
Unspecified harm block threshold.
HARM_CATEGORY_CIVIC_INTEGRITY - Enum constant in enum com.google.genai.types.HarmCategory.Known
The harm category is civic integrity.
HARM_CATEGORY_DANGEROUS_CONTENT - Enum constant in enum com.google.genai.types.HarmCategory.Known
The harm category is dangerous content.
HARM_CATEGORY_HARASSMENT - Enum constant in enum com.google.genai.types.HarmCategory.Known
The harm category is harassment.
HARM_CATEGORY_HATE_SPEECH - Enum constant in enum com.google.genai.types.HarmCategory.Known
The harm category is hate speech.
HARM_CATEGORY_SEXUALLY_EXPLICIT - Enum constant in enum com.google.genai.types.HarmCategory.Known
The harm category is sexually explicit content.
HARM_CATEGORY_UNSPECIFIED - Enum constant in enum com.google.genai.types.HarmCategory.Known
The harm category is unspecified.
HARM_PROBABILITY_UNSPECIFIED - Enum constant in enum com.google.genai.types.HarmProbability.Known
Harm probability unspecified.
HARM_SEVERITY_HIGH - Enum constant in enum com.google.genai.types.HarmSeverity.Known
High level of harm severity.
HARM_SEVERITY_LOW - Enum constant in enum com.google.genai.types.HarmSeverity.Known
Low level of harm severity.
HARM_SEVERITY_MEDIUM - Enum constant in enum com.google.genai.types.HarmSeverity.Known
Medium level of harm severity.
HARM_SEVERITY_NEGLIGIBLE - Enum constant in enum com.google.genai.types.HarmSeverity.Known
Negligible level of harm severity.
HARM_SEVERITY_UNSPECIFIED - Enum constant in enum com.google.genai.types.HarmSeverity.Known
Harm severity unspecified.
HarmBlockMethod - Class in com.google.genai.types
Optional.
HarmBlockMethod(HarmBlockMethod.Known) - Constructor for class com.google.genai.types.HarmBlockMethod
 
HarmBlockMethod(String) - Constructor for class com.google.genai.types.HarmBlockMethod
 
HarmBlockMethod.Known - Enum in com.google.genai.types
Enum representing the known values for HarmBlockMethod.
HarmBlockThreshold - Class in com.google.genai.types
Required.
HarmBlockThreshold(HarmBlockThreshold.Known) - Constructor for class com.google.genai.types.HarmBlockThreshold
 
HarmBlockThreshold(String) - Constructor for class com.google.genai.types.HarmBlockThreshold
 
HarmBlockThreshold.Known - Enum in com.google.genai.types
Enum representing the known values for HarmBlockThreshold.
HarmCategory - Class in com.google.genai.types
Required.
HarmCategory(HarmCategory.Known) - Constructor for class com.google.genai.types.HarmCategory
 
HarmCategory(String) - Constructor for class com.google.genai.types.HarmCategory
 
HarmCategory.Known - Enum in com.google.genai.types
Enum representing the known values for HarmCategory.
HarmProbability - Class in com.google.genai.types
Output only.
HarmProbability(HarmProbability.Known) - Constructor for class com.google.genai.types.HarmProbability
 
HarmProbability(String) - Constructor for class com.google.genai.types.HarmProbability
 
HarmProbability.Known - Enum in com.google.genai.types
Enum representing the known values for HarmProbability.
HarmSeverity - Class in com.google.genai.types
Output only.
HarmSeverity(HarmSeverity.Known) - Constructor for class com.google.genai.types.HarmSeverity
 
HarmSeverity(String) - Constructor for class com.google.genai.types.HarmSeverity
 
HarmSeverity.Known - Enum in com.google.genai.types
Enum representing the known values for HarmSeverity.
hashCode() - Method in class com.google.genai.types.ActivityHandling
 
hashCode() - Method in class com.google.genai.types.AuthType
 
hashCode() - Method in class com.google.genai.types.Behavior
 
hashCode() - Method in class com.google.genai.types.BlockedReason
 
hashCode() - Method in class com.google.genai.types.ControlReferenceType
 
hashCode() - Method in class com.google.genai.types.DynamicRetrievalConfigMode
 
hashCode() - Method in class com.google.genai.types.EditMode
 
hashCode() - Method in class com.google.genai.types.EndSensitivity
 
hashCode() - Method in class com.google.genai.types.FeatureSelectionPreference
 
hashCode() - Method in class com.google.genai.types.FileSource
 
hashCode() - Method in class com.google.genai.types.FileState
 
hashCode() - Method in class com.google.genai.types.FinishReason
 
hashCode() - Method in class com.google.genai.types.FunctionCallingConfigMode
 
hashCode() - Method in class com.google.genai.types.FunctionResponseScheduling
 
hashCode() - Method in class com.google.genai.types.HarmBlockMethod
 
hashCode() - Method in class com.google.genai.types.HarmBlockThreshold
 
hashCode() - Method in class com.google.genai.types.HarmCategory
 
hashCode() - Method in class com.google.genai.types.HarmProbability
 
hashCode() - Method in class com.google.genai.types.HarmSeverity
 
hashCode() - Method in class com.google.genai.types.ImagePromptLanguage
 
hashCode() - Method in class com.google.genai.types.Language
 
hashCode() - Method in class com.google.genai.types.MaskReferenceMode
 
hashCode() - Method in class com.google.genai.types.MediaModality
 
hashCode() - Method in class com.google.genai.types.MediaResolution
 
hashCode() - Method in class com.google.genai.types.Modality
 
hashCode() - Method in class com.google.genai.types.Mode
 
hashCode() - Method in class com.google.genai.types.ModelRoutingPreference
 
hashCode() - Method in class com.google.genai.types.Outcome
 
hashCode() - Method in class com.google.genai.types.PersonGeneration
 
hashCode() - Method in class com.google.genai.types.SafetyFilterLevel
 
hashCode() - Method in class com.google.genai.types.StartSensitivity
 
hashCode() - Method in class com.google.genai.types.SubjectReferenceType
 
hashCode() - Method in class com.google.genai.types.TrafficType
 
hashCode() - Method in class com.google.genai.types.TurnCoverage
 
hashCode() - Method in class com.google.genai.types.Type
 
hashCode() - Method in class com.google.genai.types.UrlRetrievalStatus
 
hasUnion() - Method in class com.google.genai.types.TestTableItem
True if the parameters contain an unsupported union type.
hasUnion(boolean) - Method in class com.google.genai.types.TestTableItem.Builder
 
headers() - Method in class com.google.genai.types.HttpOptions
Additional HTTP headers to be sent with the request.
headers() - Method in class com.google.genai.types.HttpResponse
Used to retain the processed HTTP headers in the response.
headers() - Method in class com.google.genai.types.ReplayRequest
 
headers() - Method in class com.google.genai.types.ReplayResponse
 
headers(Map<String, String>) - Method in class com.google.genai.types.HttpOptions.Builder
 
headers(Map<String, String>) - Method in class com.google.genai.types.HttpResponse.Builder
 
headers(Map<String, String>) - Method in class com.google.genai.types.ReplayRequest.Builder
 
headers(Map<String, String>) - Method in class com.google.genai.types.ReplayResponse.Builder
 
HI - Enum constant in enum com.google.genai.types.ImagePromptLanguage.Known
 
HIGH - Enum constant in enum com.google.genai.types.HarmProbability.Known
High level of harm.
HTTP_BASIC_AUTH - Enum constant in enum com.google.genai.types.AuthType.Known
HTTP Basic Auth.
HttpApiClient - Class in com.google.genai
Base client for the HTTP APIs.
httpBasicAuthConfig() - Method in class com.google.genai.types.AuthConfig
Config for HTTP Basic auth.
httpBasicAuthConfig(AuthConfigHttpBasicAuthConfig) - Method in class com.google.genai.types.AuthConfig.Builder
 
httpOptions() - Method in class com.google.genai.types.ComputeTokensConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.CountTokensConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.CreateAuthTokenConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.CreateCachedContentConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.CreateFileConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.DeleteCachedContentConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.DeleteFileConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.DeleteModelConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.DownloadFileConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.EditImageConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.EmbedContentConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.FetchPredictOperationConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.GenerateContentConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.GenerateImagesConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.GenerateVideosConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.GetCachedContentConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.GetFileConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.GetModelConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.GetOperationConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.ListCachedContentsConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.ListFilesConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.ListModelsConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.LiveConnectConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.UpdateModelConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.UploadFileConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.UpscaleImageAPIConfig
Used to override HTTP request options.
httpOptions() - Method in class com.google.genai.types.UpscaleImageConfig
Used to override HTTP request options.
httpOptions(HttpOptions) - Method in class com.google.genai.Client.Builder
Sets the HttpOptions for the API client.
httpOptions(HttpOptions) - Method in class com.google.genai.types.ComputeTokensConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.CountTokensConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.CreateAuthTokenConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.CreateCachedContentConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.CreateFileConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.DeleteCachedContentConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.DeleteFileConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.DeleteModelConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.DownloadFileConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.EditImageConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.EmbedContentConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.FetchPredictOperationConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.GenerateVideosConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.GetCachedContentConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.GetFileConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.GetModelConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.GetOperationConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.ListCachedContentsConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.ListFilesConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.ListModelsConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.UpdateModelConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.UploadFileConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.UpscaleImageAPIConfig.Builder
 
httpOptions(HttpOptions) - Method in class com.google.genai.types.UpscaleImageConfig.Builder
 
HttpOptions - Class in com.google.genai.types
HTTP options to be used in each of the requests.
HttpOptions() - Constructor for class com.google.genai.types.HttpOptions
 
HttpOptions.Builder - Class in com.google.genai.types
Builder for HttpOptions.
HttpResponse - Class in com.google.genai.types
A wrapper class for the http response.
HttpResponse() - Constructor for class com.google.genai.types.HttpResponse
 
HttpResponse.Builder - Class in com.google.genai.types
Builder for HttpResponse.
hybridSearch() - Method in class com.google.genai.types.RagRetrievalConfig
Optional.
hybridSearch(RagRetrievalConfigHybridSearch) - Method in class com.google.genai.types.RagRetrievalConfig.Builder
 

I

id() - Method in class com.google.genai.types.FunctionCall
The unique id of the function call.
id() - Method in class com.google.genai.types.FunctionResponse
Optional.
id(String) - Method in class com.google.genai.types.FunctionCall.Builder
 
id(String) - Method in class com.google.genai.types.FunctionResponse.Builder
 
ids() - Method in class com.google.genai.types.LiveServerToolCallCancellation
The ids of the tool calls to be cancelled.
ids(List<String>) - Method in class com.google.genai.types.LiveServerToolCallCancellation.Builder
 
idToken() - Method in class com.google.genai.types.AuthConfigOidcConfig
OpenID Connect formatted ID token for extension endpoint.
idToken(String) - Method in class com.google.genai.types.AuthConfigOidcConfig.Builder
 
ignoreCallHistory() - Method in class com.google.genai.types.AutomaticFunctionCallingConfig
If automatic function calling is enabled, whether to ignore call history to the response.
ignoreCallHistory(boolean) - Method in class com.google.genai.types.AutomaticFunctionCallingConfig.Builder
 
ignoreKeys() - Method in class com.google.genai.types.TestTableItem
Keys to ignore when comparing the request and response.
ignoreKeys(List<String>) - Method in class com.google.genai.types.TestTableItem.Builder
 
image() - Method in class com.google.genai.types.GeneratedImage
The output image data.
image() - Method in class com.google.genai.types.GenerateVideosParameters
The input image for generating the videos.
image() - Method in class com.google.genai.types.UpscaleImageAPIParameters
The input image to upscale.
image() - Method in class com.google.genai.types.UpscaleImageParameters
The input image to upscale.
image(Image) - Method in class com.google.genai.types.GeneratedImage.Builder
 
image(Image) - Method in class com.google.genai.types.GenerateVideosParameters.Builder
 
image(Image) - Method in class com.google.genai.types.UpscaleImageAPIParameters.Builder
 
image(Image) - Method in class com.google.genai.types.UpscaleImageParameters.Builder
 
Image - Class in com.google.genai.types
An image.
Image() - Constructor for class com.google.genai.types.Image
 
IMAGE - Enum constant in enum com.google.genai.types.MediaModality.Known
Images.
IMAGE - Enum constant in enum com.google.genai.types.Modality.Known
Indicates the model should return images.
IMAGE_PROMPT_LANGUAGE_UNSPECIFIED - Enum constant in enum com.google.genai.types.ImagePromptLanguage.Known
 
IMAGE_SAFETY - Enum constant in enum com.google.genai.types.FinishReason.Known
Token generation stopped because generated images have safety violations.
Image.Builder - Class in com.google.genai.types
Builder for Image.
imageBytes() - Method in class com.google.genai.types.Image
The image bytes data.
imageBytes(byte[]) - Method in class com.google.genai.types.Image.Builder
 
imageCount() - Method in class com.google.genai.types.CachedContentUsageMetadata
Number of images.
imageCount(Integer) - Method in class com.google.genai.types.CachedContentUsageMetadata.Builder
 
ImagePromptLanguage - Class in com.google.genai.types
Enum that specifies the language of the text in the prompt.
ImagePromptLanguage(ImagePromptLanguage.Known) - Constructor for class com.google.genai.types.ImagePromptLanguage
 
ImagePromptLanguage(String) - Constructor for class com.google.genai.types.ImagePromptLanguage
 
ImagePromptLanguage.Known - Enum in com.google.genai.types
Enum representing the known values for ImagePromptLanguage.
includeRaiReason() - Method in class com.google.genai.types.EditImageConfig
Whether to include the Responsible AI filter reason if the image is filtered out of the response.
includeRaiReason() - Method in class com.google.genai.types.GenerateImagesConfig
Whether to include the Responsible AI filter reason if the image is filtered out of the response.
includeRaiReason() - Method in class com.google.genai.types.UpscaleImageAPIConfig
Whether to include a reason for filtered-out images in the response.
includeRaiReason() - Method in class com.google.genai.types.UpscaleImageConfig
Whether to include a reason for filtered-out images in the response.
includeRaiReason(boolean) - Method in class com.google.genai.types.EditImageConfig.Builder
 
includeRaiReason(boolean) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
includeRaiReason(boolean) - Method in class com.google.genai.types.UpscaleImageAPIConfig.Builder
 
includeRaiReason(boolean) - Method in class com.google.genai.types.UpscaleImageConfig.Builder
 
includeSafetyAttributes() - Method in class com.google.genai.types.EditImageConfig
Whether to report the safety scores of each generated image and the positive prompt in the response.
includeSafetyAttributes() - Method in class com.google.genai.types.GenerateImagesConfig
Whether to report the safety scores of each generated image and the positive prompt in the response.
includeSafetyAttributes(boolean) - Method in class com.google.genai.types.EditImageConfig.Builder
 
includeSafetyAttributes(boolean) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
includeThoughts() - Method in class com.google.genai.types.ThinkingConfig
Indicates whether to include thoughts in the response.
includeThoughts(boolean) - Method in class com.google.genai.types.ThinkingConfig.Builder
 
index() - Method in class com.google.genai.types.Candidate
Output only.
index(Integer) - Method in class com.google.genai.types.Candidate.Builder
 
inlineData() - Method in class com.google.genai.types.Part
Optional.
inlineData(Blob) - Method in class com.google.genai.types.Part.Builder
 
inputAudioTranscription() - Method in class com.google.genai.types.LiveClientSetup
The transcription of the input aligns with the input audio language.
inputAudioTranscription() - Method in class com.google.genai.types.LiveConnectConfig
The transcription of the input aligns with the input audio language.
inputAudioTranscription(AudioTranscriptionConfig) - Method in class com.google.genai.types.LiveClientSetup.Builder
 
inputAudioTranscription(AudioTranscriptionConfig) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
inputTokenLimit() - Method in class com.google.genai.types.Model
The maximum number of input tokens that the model can handle.
inputTokenLimit(Integer) - Method in class com.google.genai.types.Model.Builder
 
inputTranscription() - Method in class com.google.genai.types.LiveServerContent
Input transcription.
inputTranscription(Transcription) - Method in class com.google.genai.types.LiveServerContent.Builder
 
INTEGER - Enum constant in enum com.google.genai.types.Type.Known
OpenAPI integer type
interactions() - Method in class com.google.genai.types.ReplayFile
 
interactions(List<ReplayInteraction>) - Method in class com.google.genai.types.ReplayFile.Builder
 
INTERRUPT - Enum constant in enum com.google.genai.types.FunctionResponseScheduling.Known
Add the result to the conversation context, interrupt ongoing generation and prompt to generate output.
interrupted() - Method in class com.google.genai.types.LiveServerContent
If true, indicates that a client message has interrupted current model generation.
interrupted(boolean) - Method in class com.google.genai.types.LiveServerContent.Builder
 
Interval - Class in com.google.genai.types
Represents a time interval, encoded as a start time (inclusive) and an end time (exclusive).
Interval() - Constructor for class com.google.genai.types.Interval
 
Interval.Builder - Class in com.google.genai.types
Builder for Interval.
items() - Method in class com.google.genai.types.Schema
Optional.
items(Schema) - Method in class com.google.genai.types.Schema.Builder
 
iterator() - Method in class com.google.genai.Pager
Returns an iterator for the Pager.
iterator() - Method in class com.google.genai.ResponseStream
 

J

JA - Enum constant in enum com.google.genai.types.ImagePromptLanguage.Known
 
JsonSerializable - Class in com.google.genai
A class that can be serialized to JSON and deserialized from JSON.
JsonSerializable() - Constructor for class com.google.genai.JsonSerializable
 

K

kmsKeyName() - Method in class com.google.genai.types.CreateCachedContentConfig
The Cloud KMS resource identifier of the customer managed encryption key used to protect a resource.
kmsKeyName(String) - Method in class com.google.genai.types.CreateCachedContentConfig.Builder
 
knownEnum() - Method in class com.google.genai.types.ActivityHandling
 
knownEnum() - Method in class com.google.genai.types.AuthType
 
knownEnum() - Method in class com.google.genai.types.Behavior
 
knownEnum() - Method in class com.google.genai.types.BlockedReason
 
knownEnum() - Method in class com.google.genai.types.ControlReferenceType
 
knownEnum() - Method in class com.google.genai.types.DynamicRetrievalConfigMode
 
knownEnum() - Method in class com.google.genai.types.EditMode
 
knownEnum() - Method in class com.google.genai.types.EndSensitivity
 
knownEnum() - Method in class com.google.genai.types.FeatureSelectionPreference
 
knownEnum() - Method in class com.google.genai.types.FileSource
 
knownEnum() - Method in class com.google.genai.types.FileState
 
knownEnum() - Method in class com.google.genai.types.FinishReason
 
knownEnum() - Method in class com.google.genai.types.FunctionCallingConfigMode
 
knownEnum() - Method in class com.google.genai.types.FunctionResponseScheduling
 
knownEnum() - Method in class com.google.genai.types.HarmBlockMethod
 
knownEnum() - Method in class com.google.genai.types.HarmBlockThreshold
 
knownEnum() - Method in class com.google.genai.types.HarmCategory
 
knownEnum() - Method in class com.google.genai.types.HarmProbability
 
knownEnum() - Method in class com.google.genai.types.HarmSeverity
 
knownEnum() - Method in class com.google.genai.types.ImagePromptLanguage
 
knownEnum() - Method in class com.google.genai.types.Language
 
knownEnum() - Method in class com.google.genai.types.MaskReferenceMode
 
knownEnum() - Method in class com.google.genai.types.MediaModality
 
knownEnum() - Method in class com.google.genai.types.MediaResolution
 
knownEnum() - Method in class com.google.genai.types.Modality
 
knownEnum() - Method in class com.google.genai.types.Mode
 
knownEnum() - Method in class com.google.genai.types.ModelRoutingPreference
 
knownEnum() - Method in class com.google.genai.types.Outcome
 
knownEnum() - Method in class com.google.genai.types.PersonGeneration
 
knownEnum() - Method in class com.google.genai.types.SafetyFilterLevel
 
knownEnum() - Method in class com.google.genai.types.StartSensitivity
 
knownEnum() - Method in class com.google.genai.types.SubjectReferenceType
 
knownEnum() - Method in class com.google.genai.types.TrafficType
 
knownEnum() - Method in class com.google.genai.types.TurnCoverage
 
knownEnum() - Method in class com.google.genai.types.Type
 
knownEnum() - Method in class com.google.genai.types.UrlRetrievalStatus
 
KO - Enum constant in enum com.google.genai.types.ImagePromptLanguage.Known
 

L

labels() - Method in class com.google.genai.types.GenerateContentConfig
Labels with user-defined metadata to break down billed charges.
labels() - Method in class com.google.genai.types.Model
Labels with user-defined metadata to organize your models.
labels(Map<String, String>) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
labels(Map<String, String>) - Method in class com.google.genai.types.Model.Builder
 
language() - Method in class com.google.genai.types.EditImageConfig
Language of the text in the prompt.
language() - Method in class com.google.genai.types.ExecutableCode
Required.
language() - Method in class com.google.genai.types.GenerateImagesConfig
Language of the text in the prompt.
language(ImagePromptLanguage) - Method in class com.google.genai.types.EditImageConfig.Builder
 
language(ImagePromptLanguage) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
language(ImagePromptLanguage.Known) - Method in class com.google.genai.types.EditImageConfig.Builder
 
language(ImagePromptLanguage.Known) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
language(Language) - Method in class com.google.genai.types.ExecutableCode.Builder
 
language(Language.Known) - Method in class com.google.genai.types.ExecutableCode.Builder
 
language(String) - Method in class com.google.genai.types.EditImageConfig.Builder
 
language(String) - Method in class com.google.genai.types.ExecutableCode.Builder
 
language(String) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
Language - Class in com.google.genai.types
Required.
Language(Language.Known) - Constructor for class com.google.genai.types.Language
 
Language(String) - Constructor for class com.google.genai.types.Language
 
LANGUAGE - Enum constant in enum com.google.genai.types.FinishReason.Known
The token generation stopped because of using an unsupported language.
LANGUAGE_UNSPECIFIED - Enum constant in enum com.google.genai.types.Language.Known
Unspecified language.
Language.Known - Enum in com.google.genai.types
Enum representing the known values for Language.
languageCode() - Method in class com.google.genai.types.SpeechConfig
Language code (ISO 639. e.g. en-US) for the speech synthesization.
languageCode(String) - Method in class com.google.genai.types.SpeechConfig.Builder
 
lastConsumedClientMessageIndex() - Method in class com.google.genai.types.LiveServerSessionResumptionUpdate
Index of last message sent by client that is included in state represented by this SessionResumptionToken.
lastConsumedClientMessageIndex(Long) - Method in class com.google.genai.types.LiveServerSessionResumptionUpdate.Builder
 
latitude() - Method in class com.google.genai.types.LatLng
The latitude in degrees.
latitude(Double) - Method in class com.google.genai.types.LatLng.Builder
 
latLng() - Method in class com.google.genai.types.RetrievalConfig
Optional.
latLng(LatLng) - Method in class com.google.genai.types.RetrievalConfig.Builder
 
LatLng - Class in com.google.genai.types
An object that represents a latitude/longitude pair.
LatLng() - Constructor for class com.google.genai.types.LatLng
 
LatLng.Builder - Class in com.google.genai.types
Builder for LatLng.
license() - Method in class com.google.genai.types.Citation
Output only.
license(String) - Method in class com.google.genai.types.Citation.Builder
 
list(ListCachedContentsConfig) - Method in class com.google.genai.AsyncCaches
Asynchronously makes an API request to list the available cached contents.
list(ListCachedContentsConfig) - Method in class com.google.genai.Caches
Makes an API request to list the available cached contents.
list(ListFilesConfig) - Method in class com.google.genai.AsyncFiles
Asynchronously makes an API request to list the available files.
list(ListFilesConfig) - Method in class com.google.genai.Files
makes an API request to list the available files.
list(ListModelsConfig) - Method in class com.google.genai.AsyncModels
Asynchronously makes an API request to list the available models.
list(ListModelsConfig) - Method in class com.google.genai.Models
Makes an API request to list the available models.
ListCachedContentsConfig - Class in com.google.genai.types
Config for caches.list method.
ListCachedContentsConfig() - Constructor for class com.google.genai.types.ListCachedContentsConfig
 
ListCachedContentsConfig.Builder - Class in com.google.genai.types
Builder for ListCachedContentsConfig.
ListCachedContentsParameters - Class in com.google.genai.types
Parameters for caches.list method.
ListCachedContentsParameters() - Constructor for class com.google.genai.types.ListCachedContentsParameters
 
ListCachedContentsParameters.Builder - Class in com.google.genai.types
Builder for ListCachedContentsParameters.
ListCachedContentsResponse - Class in com.google.genai.types
None
ListCachedContentsResponse() - Constructor for class com.google.genai.types.ListCachedContentsResponse
 
ListCachedContentsResponse.Builder - Class in com.google.genai.types
Builder for ListCachedContentsResponse.
ListFilesConfig - Class in com.google.genai.types
Used to override the default configuration.
ListFilesConfig() - Constructor for class com.google.genai.types.ListFilesConfig
 
ListFilesConfig.Builder - Class in com.google.genai.types
Builder for ListFilesConfig.
ListFilesParameters - Class in com.google.genai.types
Generates the parameters for the list method.
ListFilesParameters() - Constructor for class com.google.genai.types.ListFilesParameters
 
ListFilesParameters.Builder - Class in com.google.genai.types
Builder for ListFilesParameters.
ListFilesResponse - Class in com.google.genai.types
Response for the list files method.
ListFilesResponse() - Constructor for class com.google.genai.types.ListFilesResponse
 
ListFilesResponse.Builder - Class in com.google.genai.types
Builder for ListFilesResponse.
ListModelsConfig - Class in com.google.genai.types
None
ListModelsConfig() - Constructor for class com.google.genai.types.ListModelsConfig
 
ListModelsConfig.Builder - Class in com.google.genai.types
Builder for ListModelsConfig.
ListModelsParameters - Class in com.google.genai.types
None
ListModelsParameters() - Constructor for class com.google.genai.types.ListModelsParameters
 
ListModelsParameters.Builder - Class in com.google.genai.types
Builder for ListModelsParameters.
ListModelsResponse - Class in com.google.genai.types
None
ListModelsResponse() - Constructor for class com.google.genai.types.ListModelsResponse
 
ListModelsResponse.Builder - Class in com.google.genai.types
Builder for ListModelsResponse.
live - Variable in class com.google.genai.Client.Async
 
LiveClientContent - Class in com.google.genai.types
Incremental update of the current conversation delivered from the client.
LiveClientContent() - Constructor for class com.google.genai.types.LiveClientContent
 
LiveClientContent.Builder - Class in com.google.genai.types
Builder for LiveClientContent.
LiveClientMessage - Class in com.google.genai.types
Messages sent by the client in the API call.
LiveClientMessage() - Constructor for class com.google.genai.types.LiveClientMessage
 
LiveClientMessage.Builder - Class in com.google.genai.types
Builder for LiveClientMessage.
LiveClientRealtimeInput - Class in com.google.genai.types
User input that is sent in real time.
LiveClientRealtimeInput() - Constructor for class com.google.genai.types.LiveClientRealtimeInput
 
LiveClientRealtimeInput.Builder - Class in com.google.genai.types
Builder for LiveClientRealtimeInput.
LiveClientSetup - Class in com.google.genai.types
Message contains configuration that will apply for the duration of the streaming session.
LiveClientSetup() - Constructor for class com.google.genai.types.LiveClientSetup
 
LiveClientSetup.Builder - Class in com.google.genai.types
Builder for LiveClientSetup.
LiveClientToolResponse - Class in com.google.genai.types
Client generated response to a `ToolCall` received from the server.
LiveClientToolResponse() - Constructor for class com.google.genai.types.LiveClientToolResponse
 
LiveClientToolResponse.Builder - Class in com.google.genai.types
Builder for LiveClientToolResponse.
LiveConnectConfig - Class in com.google.genai.types
Session config for the API connection.
LiveConnectConfig() - Constructor for class com.google.genai.types.LiveConnectConfig
 
LiveConnectConfig.Builder - Class in com.google.genai.types
Builder for LiveConnectConfig.
LiveConnectParameters - Class in com.google.genai.types
Parameters for connecting to the live API.
LiveConnectParameters() - Constructor for class com.google.genai.types.LiveConnectParameters
 
LiveConnectParameters.Builder - Class in com.google.genai.types
Builder for LiveConnectParameters.
LiveConstrainedParameters - Class in com.google.genai.types
Config for LiveConstrainedParameters for Auth Token creation.
LiveConstrainedParameters() - Constructor for class com.google.genai.types.LiveConstrainedParameters
 
LiveConstrainedParameters.Builder - Class in com.google.genai.types
Builder for LiveConstrainedParameters.
liveEphemeralParameters() - Method in class com.google.genai.types.CreateAuthTokenConfig
Configuration specific to Live API connections created using this token.
liveEphemeralParameters(LiveEphemeralParameters) - Method in class com.google.genai.types.CreateAuthTokenConfig.Builder
 
LiveEphemeralParameters - Class in com.google.genai.types
Config for LiveEphemeralParameters for Auth Token creation.
LiveEphemeralParameters() - Constructor for class com.google.genai.types.LiveEphemeralParameters
 
LiveEphemeralParameters.Builder - Class in com.google.genai.types
Builder for LiveEphemeralParameters.
LiveSendClientContentParameters - Class in com.google.genai.types
Parameters for sending client content to the live API.
LiveSendClientContentParameters() - Constructor for class com.google.genai.types.LiveSendClientContentParameters
 
LiveSendClientContentParameters.Builder - Class in com.google.genai.types
Builder for LiveSendClientContentParameters.
LiveSendRealtimeInputParameters - Class in com.google.genai.types
Parameters for sending realtime input to the live API.
LiveSendRealtimeInputParameters() - Constructor for class com.google.genai.types.LiveSendRealtimeInputParameters
 
LiveSendRealtimeInputParameters.Builder - Class in com.google.genai.types
Builder for LiveSendRealtimeInputParameters.
LiveSendToolResponseParameters - Class in com.google.genai.types
Parameters for sending tool responses to the live API.
LiveSendToolResponseParameters() - Constructor for class com.google.genai.types.LiveSendToolResponseParameters
 
LiveSendToolResponseParameters.Builder - Class in com.google.genai.types
Builder for LiveSendToolResponseParameters.
LiveServerContent - Class in com.google.genai.types
Incremental server update generated by the model in response to client messages.
LiveServerContent() - Constructor for class com.google.genai.types.LiveServerContent
 
LiveServerContent.Builder - Class in com.google.genai.types
Builder for LiveServerContent.
LiveServerGoAway - Class in com.google.genai.types
Server will not be able to service client soon.
LiveServerGoAway() - Constructor for class com.google.genai.types.LiveServerGoAway
 
LiveServerGoAway.Builder - Class in com.google.genai.types
Builder for LiveServerGoAway.
LiveServerMessage - Class in com.google.genai.types
Response message for API call.
LiveServerMessage() - Constructor for class com.google.genai.types.LiveServerMessage
 
LiveServerMessage.Builder - Class in com.google.genai.types
Builder for LiveServerMessage.
LiveServerSessionResumptionUpdate - Class in com.google.genai.types
Update of the session resumption state.
LiveServerSessionResumptionUpdate() - Constructor for class com.google.genai.types.LiveServerSessionResumptionUpdate
 
LiveServerSessionResumptionUpdate.Builder - Class in com.google.genai.types
Builder for LiveServerSessionResumptionUpdate.
LiveServerSetupComplete - Class in com.google.genai.types
Sent in response to a `LiveGenerateContentSetup` message from the client.
LiveServerSetupComplete() - Constructor for class com.google.genai.types.LiveServerSetupComplete
 
LiveServerSetupComplete.Builder - Class in com.google.genai.types
Builder for LiveServerSetupComplete.
LiveServerToolCall - Class in com.google.genai.types
Request for the client to execute the `function_calls` and return the responses with the matching `id`s.
LiveServerToolCall() - Constructor for class com.google.genai.types.LiveServerToolCall
 
LiveServerToolCall.Builder - Class in com.google.genai.types
Builder for LiveServerToolCall.
LiveServerToolCallCancellation - Class in com.google.genai.types
Notification for the client that a previously issued `ToolCallMessage` with the specified `id`s should have been not executed and should be cancelled.
LiveServerToolCallCancellation() - Constructor for class com.google.genai.types.LiveServerToolCallCancellation
 
LiveServerToolCallCancellation.Builder - Class in com.google.genai.types
Builder for LiveServerToolCallCancellation.
llmRanker() - Method in class com.google.genai.types.RagRetrievalConfigRanking
Optional.
llmRanker(RagRetrievalConfigRankingLlmRanker) - Method in class com.google.genai.types.RagRetrievalConfigRanking.Builder
 
location() - Method in class com.google.genai.HttpApiClient
Returns the location for Vertex AI APIs.
location() - Method in class com.google.genai.Client
Returns the location for Vertex AI APIs.
location(String) - Method in class com.google.genai.Client.Builder
Sets the location for Vertex AI APIs.
lockAdditionalFields() - Method in class com.google.genai.types.CreateAuthTokenConfig
Additional fields to lock in the effective LiveConnectParameters.
lockAdditionalFields(List<String>) - Method in class com.google.genai.types.CreateAuthTokenConfig.Builder
 
logProbability() - Method in class com.google.genai.types.LogprobsResultCandidate
The candidate's log probability.
logProbability(Float) - Method in class com.google.genai.types.LogprobsResultCandidate.Builder
 
logprobs() - Method in class com.google.genai.types.GenerateContentConfig
Number of top candidate tokens to return the log probabilities for at each generation step.
logprobs() - Method in class com.google.genai.types.GenerationConfig
Optional.
logprobs(Integer) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
logprobs(Integer) - Method in class com.google.genai.types.GenerationConfig.Builder
 
logprobsResult() - Method in class com.google.genai.types.Candidate
Output only.
logprobsResult(LogprobsResult) - Method in class com.google.genai.types.Candidate.Builder
 
LogprobsResult - Class in com.google.genai.types
Logprobs Result
LogprobsResult() - Constructor for class com.google.genai.types.LogprobsResult
 
LogprobsResult.Builder - Class in com.google.genai.types
Builder for LogprobsResult.
LogprobsResultCandidate - Class in com.google.genai.types
Candidate for the logprobs token and score.
LogprobsResultCandidate() - Constructor for class com.google.genai.types.LogprobsResultCandidate
 
LogprobsResultCandidate.Builder - Class in com.google.genai.types
Builder for LogprobsResultCandidate.
LogprobsResultTopCandidates - Class in com.google.genai.types
Candidates with top log probabilities at each decoding step.
LogprobsResultTopCandidates() - Constructor for class com.google.genai.types.LogprobsResultTopCandidates
 
LogprobsResultTopCandidates.Builder - Class in com.google.genai.types
Builder for LogprobsResultTopCandidates.
longitude() - Method in class com.google.genai.types.LatLng
The longitude in degrees.
longitude(Double) - Method in class com.google.genai.types.LatLng.Builder
 
LOW - Enum constant in enum com.google.genai.types.HarmProbability.Known
Low level of harm.

M

MALFORMED_FUNCTION_CALL - Enum constant in enum com.google.genai.types.FinishReason.Known
The function call generated by the model is invalid.
manualMode() - Method in class com.google.genai.types.GenerationConfigRoutingConfig
Manual routing.
manualMode(GenerationConfigRoutingConfigManualRoutingMode) - Method in class com.google.genai.types.GenerationConfigRoutingConfig.Builder
 
MASK_MODE_BACKGROUND - Enum constant in enum com.google.genai.types.MaskReferenceMode.Known
 
MASK_MODE_DEFAULT - Enum constant in enum com.google.genai.types.MaskReferenceMode.Known
 
MASK_MODE_FOREGROUND - Enum constant in enum com.google.genai.types.MaskReferenceMode.Known
 
MASK_MODE_SEMANTIC - Enum constant in enum com.google.genai.types.MaskReferenceMode.Known
 
MASK_MODE_USER_PROVIDED - Enum constant in enum com.google.genai.types.MaskReferenceMode.Known
 
MASK_REFERENCE_MODE_UNSPECIFIED - Enum constant in enum com.google.genai.types.MaskReferenceMode.Known
 
maskDilation() - Method in class com.google.genai.types.MaskReferenceConfig
Dilation percentage of the mask provided.
maskDilation(Float) - Method in class com.google.genai.types.MaskReferenceConfig.Builder
 
maskImageConfig() - Method in class com.google.genai.types.ReferenceImageAPI
Configuration for the mask reference image.
maskImageConfig(MaskReferenceConfig) - Method in class com.google.genai.types.ReferenceImageAPI.Builder
 
maskMode() - Method in class com.google.genai.types.MaskReferenceConfig
Prompts the model to generate a mask instead of you needing to provide one (unless MASK_MODE_USER_PROVIDED is used).
maskMode(MaskReferenceMode) - Method in class com.google.genai.types.MaskReferenceConfig.Builder
 
maskMode(MaskReferenceMode.Known) - Method in class com.google.genai.types.MaskReferenceConfig.Builder
 
maskMode(String) - Method in class com.google.genai.types.MaskReferenceConfig.Builder
 
MaskReferenceConfig - Class in com.google.genai.types
Configuration for a Mask reference image.
MaskReferenceConfig() - Constructor for class com.google.genai.types.MaskReferenceConfig
 
MaskReferenceConfig.Builder - Class in com.google.genai.types
Builder for MaskReferenceConfig.
MaskReferenceImage - Class in com.google.genai.types
A mask reference image.
MaskReferenceImage() - Constructor for class com.google.genai.types.MaskReferenceImage
 
MaskReferenceImage.Builder - Class in com.google.genai.types
Builder for MaskReferenceImage.
MaskReferenceMode - Class in com.google.genai.types
Enum representing the mask mode of a mask reference image.
MaskReferenceMode(MaskReferenceMode.Known) - Constructor for class com.google.genai.types.MaskReferenceMode
 
MaskReferenceMode(String) - Constructor for class com.google.genai.types.MaskReferenceMode
 
MaskReferenceMode.Known - Enum in com.google.genai.types
Enum representing the known values for MaskReferenceMode.
MAX_TOKENS - Enum constant in enum com.google.genai.types.FinishReason.Known
Token generation reached the configured maximum output tokens.
maximum() - Method in class com.google.genai.types.Schema
Optional.
maximum(Double) - Method in class com.google.genai.types.Schema.Builder
 
maximumRemoteCalls() - Method in class com.google.genai.types.AutomaticFunctionCallingConfig
If automatic function calling is enabled, maximum number of remote calls for automatic function calling.
maximumRemoteCalls(Integer) - Method in class com.google.genai.types.AutomaticFunctionCallingConfig.Builder
 
maxItems() - Method in class com.google.genai.types.Schema
Optional.
maxItems(Long) - Method in class com.google.genai.types.Schema.Builder
 
maxLength() - Method in class com.google.genai.types.Schema
Optional.
maxLength(Long) - Method in class com.google.genai.types.Schema.Builder
 
maxOutputTokens() - Method in class com.google.genai.types.GenerateContentConfig
Maximum number of tokens that can be generated in the response.
maxOutputTokens() - Method in class com.google.genai.types.GenerationConfig
Optional.
maxOutputTokens() - Method in class com.google.genai.types.LiveConnectConfig
Maximum number of tokens that can be generated in the response.
maxOutputTokens(Integer) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
maxOutputTokens(Integer) - Method in class com.google.genai.types.GenerationConfig.Builder
 
maxOutputTokens(Integer) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
maxProperties() - Method in class com.google.genai.types.Schema
Optional.
maxProperties(Long) - Method in class com.google.genai.types.Schema.Builder
 
media() - Method in class com.google.genai.types.LiveSendRealtimeInputParameters
Realtime input to send to the session.
media(Blob) - Method in class com.google.genai.types.LiveSendRealtimeInputParameters.Builder
 
MEDIA_MODALITY_UNSPECIFIED - Enum constant in enum com.google.genai.types.MediaModality.Known
 
MEDIA_RESOLUTION_HIGH - Enum constant in enum com.google.genai.types.MediaResolution.Known
Media resolution set to high (zoomed reframing with 256 tokens).
MEDIA_RESOLUTION_LOW - Enum constant in enum com.google.genai.types.MediaResolution.Known
Media resolution set to low (64 tokens).
MEDIA_RESOLUTION_MEDIUM - Enum constant in enum com.google.genai.types.MediaResolution.Known
Media resolution set to medium (256 tokens).
MEDIA_RESOLUTION_UNSPECIFIED - Enum constant in enum com.google.genai.types.MediaResolution.Known
Media resolution has not been set
mediaChunks() - Method in class com.google.genai.types.LiveClientRealtimeInput
Inlined bytes data for media input.
mediaChunks(List<Blob>) - Method in class com.google.genai.types.LiveClientRealtimeInput.Builder
 
MediaModality - Class in com.google.genai.types
Server content modalities.
MediaModality(MediaModality.Known) - Constructor for class com.google.genai.types.MediaModality
 
MediaModality(String) - Constructor for class com.google.genai.types.MediaModality
 
MediaModality.Known - Enum in com.google.genai.types
Enum representing the known values for MediaModality.
mediaResolution() - Method in class com.google.genai.types.GenerateContentConfig
If specified, the media resolution specified will be used.
mediaResolution() - Method in class com.google.genai.types.GenerationConfig
Optional.
mediaResolution() - Method in class com.google.genai.types.LiveConnectConfig
If specified, the media resolution specified will be used.
mediaResolution(MediaResolution) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
mediaResolution(MediaResolution) - Method in class com.google.genai.types.GenerationConfig.Builder
 
mediaResolution(MediaResolution) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
mediaResolution(MediaResolution.Known) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
mediaResolution(MediaResolution.Known) - Method in class com.google.genai.types.GenerationConfig.Builder
 
mediaResolution(MediaResolution.Known) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
mediaResolution(String) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
mediaResolution(String) - Method in class com.google.genai.types.GenerationConfig.Builder
 
mediaResolution(String) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
MediaResolution - Class in com.google.genai.types
The media resolution to use.
MediaResolution(MediaResolution.Known) - Constructor for class com.google.genai.types.MediaResolution
 
MediaResolution(String) - Constructor for class com.google.genai.types.MediaResolution
 
MediaResolution.Known - Enum in com.google.genai.types
Enum representing the known values for MediaResolution.
MEDIUM - Enum constant in enum com.google.genai.types.HarmProbability.Known
Medium level of harm.
message() - Method in exception com.google.genai.errors.ApiException
Returns the error message from the API response.
message() - Method in class com.google.genai.types.FileStatus
A list of messages that carry the error details.
message(String) - Method in class com.google.genai.types.FileStatus.Builder
 
metadata() - Method in class com.google.genai.types.EmbedContentResponse
Vertex API only.
metadata() - Method in class com.google.genai.types.GenerateVideosOperation
Service-specific metadata associated with the operation.
metadata(EmbedContentMetadata) - Method in class com.google.genai.types.EmbedContentResponse.Builder
 
metadata(Map<String, Object>) - Method in class com.google.genai.types.GenerateVideosOperation.Builder
 
metadataFilter() - Method in class com.google.genai.types.RagRetrievalConfigFilter
Optional.
metadataFilter(String) - Method in class com.google.genai.types.RagRetrievalConfigFilter.Builder
 
method() - Method in class com.google.genai.types.ReplayRequest
 
method() - Method in class com.google.genai.types.SafetySetting
Determines if the harm block method uses probability or probability and severity scores.
method(HarmBlockMethod) - Method in class com.google.genai.types.SafetySetting.Builder
 
method(HarmBlockMethod.Known) - Method in class com.google.genai.types.SafetySetting.Builder
 
method(String) - Method in class com.google.genai.types.ReplayRequest.Builder
 
method(String) - Method in class com.google.genai.types.SafetySetting.Builder
 
mimeType() - Method in class com.google.genai.types.Blob
Required.
mimeType() - Method in class com.google.genai.types.EmbedContentConfig
Vertex API only.
mimeType() - Method in class com.google.genai.types.File
Output only.
mimeType() - Method in class com.google.genai.types.FileData
Required.
mimeType() - Method in class com.google.genai.types.Image
The MIME type of the image.
mimeType() - Method in class com.google.genai.types.UploadFileConfig
mime_type: The MIME type of the file.
mimeType() - Method in class com.google.genai.types.Video
Video encoding, for example "video/mp4".
mimeType(String) - Method in class com.google.genai.types.Blob.Builder
 
mimeType(String) - Method in class com.google.genai.types.EmbedContentConfig.Builder
 
mimeType(String) - Method in class com.google.genai.types.File.Builder
 
mimeType(String) - Method in class com.google.genai.types.FileData.Builder
 
mimeType(String) - Method in class com.google.genai.types.Image.Builder
 
mimeType(String) - Method in class com.google.genai.types.UploadFileConfig.Builder
 
mimeType(String) - Method in class com.google.genai.types.Video.Builder
 
minimum() - Method in class com.google.genai.types.Schema
Optional.
minimum(Double) - Method in class com.google.genai.types.Schema.Builder
 
minItems() - Method in class com.google.genai.types.Schema
Optional.
minItems(Long) - Method in class com.google.genai.types.Schema.Builder
 
minLength() - Method in class com.google.genai.types.Schema
Optional.
minLength(Long) - Method in class com.google.genai.types.Schema.Builder
 
minProperties() - Method in class com.google.genai.types.Schema
Optional.
minProperties(Long) - Method in class com.google.genai.types.Schema.Builder
 
modality() - Method in class com.google.genai.types.ModalityTokenCount
The modality associated with this token count.
modality(MediaModality) - Method in class com.google.genai.types.ModalityTokenCount.Builder
 
modality(MediaModality.Known) - Method in class com.google.genai.types.ModalityTokenCount.Builder
 
modality(String) - Method in class com.google.genai.types.ModalityTokenCount.Builder
 
Modality - Class in com.google.genai.types
Server content modalities.
Modality(Modality.Known) - Constructor for class com.google.genai.types.Modality
 
Modality(String) - Constructor for class com.google.genai.types.Modality
 
MODALITY_UNSPECIFIED - Enum constant in enum com.google.genai.types.MediaModality.Known
The modality is unspecified.
MODALITY_UNSPECIFIED - Enum constant in enum com.google.genai.types.Modality.Known
The modality is unspecified.
Modality.Known - Enum in com.google.genai.types
Enum representing the known values for Modality.
ModalityTokenCount - Class in com.google.genai.types
Represents token counting info for a single modality.
ModalityTokenCount() - Constructor for class com.google.genai.types.ModalityTokenCount
 
ModalityTokenCount.Builder - Class in com.google.genai.types
Builder for ModalityTokenCount.
mode() - Method in class com.google.genai.types.DynamicRetrievalConfig
The mode of the predictor to be used in dynamic retrieval.
mode() - Method in class com.google.genai.types.FunctionCallingConfig
Optional.
mode() - Method in class com.google.genai.types.UpscaleImageAPIConfig
 
mode(DynamicRetrievalConfigMode) - Method in class com.google.genai.types.DynamicRetrievalConfig.Builder
 
mode(DynamicRetrievalConfigMode.Known) - Method in class com.google.genai.types.DynamicRetrievalConfig.Builder
 
mode(FunctionCallingConfigMode) - Method in class com.google.genai.types.FunctionCallingConfig.Builder
 
mode(FunctionCallingConfigMode.Known) - Method in class com.google.genai.types.FunctionCallingConfig.Builder
 
mode(String) - Method in class com.google.genai.types.DynamicRetrievalConfig.Builder
 
mode(String) - Method in class com.google.genai.types.FunctionCallingConfig.Builder
 
mode(String) - Method in class com.google.genai.types.UpscaleImageAPIConfig.Builder
 
Mode - Class in com.google.genai.types
The mode of the predictor to be used in dynamic retrieval.
Mode(Mode.Known) - Constructor for class com.google.genai.types.Mode
 
Mode(String) - Constructor for class com.google.genai.types.Mode
 
MODE_DYNAMIC - Enum constant in enum com.google.genai.types.DynamicRetrievalConfigMode.Known
Run retrieval only when system decides it is necessary.
MODE_DYNAMIC - Enum constant in enum com.google.genai.types.Mode.Known
Run retrieval only when system decides it is necessary.
MODE_UNSPECIFIED - Enum constant in enum com.google.genai.types.DynamicRetrievalConfigMode.Known
Always trigger retrieval.
MODE_UNSPECIFIED - Enum constant in enum com.google.genai.types.FunctionCallingConfigMode.Known
The function calling config mode is unspecified.
MODE_UNSPECIFIED - Enum constant in enum com.google.genai.types.Mode.Known
Always trigger retrieval.
Mode.Known - Enum in com.google.genai.types
Enum representing the known values for Mode.
model() - Method in class com.google.genai.types.CachedContent
The name of the publisher model to use for cached content.
model() - Method in class com.google.genai.types.ComputeTokensParameters
ID of the model to use.
model() - Method in class com.google.genai.types.CountTokensParameters
ID of the model to use.
model() - Method in class com.google.genai.types.CreateCachedContentParameters
ID of the model to use.
model() - Method in class com.google.genai.types.DeleteModelParameters
 
model() - Method in class com.google.genai.types.EditImageParameters
The model to use.
model() - Method in class com.google.genai.types.EmbedContentParameters
ID of the model to use.
model() - Method in class com.google.genai.types.GenerateContentParameters
ID of the model to use.
model() - Method in class com.google.genai.types.GenerateImagesParameters
ID of the model to use.
model() - Method in class com.google.genai.types.GenerateVideosParameters
ID of the model to use.
model() - Method in class com.google.genai.types.GetModelParameters
 
model() - Method in class com.google.genai.types.LiveClientSetup
The fully qualified name of the publisher model or tuned model endpoint to use.
model() - Method in class com.google.genai.types.LiveConnectParameters
ID of the model to use.
model() - Method in class com.google.genai.types.LiveConstrainedParameters
ID of the model to configure in the ephemeral token for Live API.
model() - Method in class com.google.genai.types.LiveEphemeralParameters
ID of the model to configure in the ephemeral token for Live API.
model() - Method in class com.google.genai.types.UpdateModelParameters
 
model() - Method in class com.google.genai.types.UpscaleImageAPIParameters
The model to use.
model() - Method in class com.google.genai.types.UpscaleImageParameters
The model to use.
model(String) - Method in class com.google.genai.types.CachedContent.Builder
 
model(String) - Method in class com.google.genai.types.ComputeTokensParameters.Builder
 
model(String) - Method in class com.google.genai.types.CountTokensParameters.Builder
 
model(String) - Method in class com.google.genai.types.CreateCachedContentParameters.Builder
 
model(String) - Method in class com.google.genai.types.DeleteModelParameters.Builder
 
model(String) - Method in class com.google.genai.types.EditImageParameters.Builder
 
model(String) - Method in class com.google.genai.types.EmbedContentParameters.Builder
 
model(String) - Method in class com.google.genai.types.GenerateContentParameters.Builder
 
model(String) - Method in class com.google.genai.types.GenerateImagesParameters.Builder
 
model(String) - Method in class com.google.genai.types.GenerateVideosParameters.Builder
 
model(String) - Method in class com.google.genai.types.GetModelParameters.Builder
 
model(String) - Method in class com.google.genai.types.LiveClientSetup.Builder
 
model(String) - Method in class com.google.genai.types.LiveConnectParameters.Builder
 
model(String) - Method in class com.google.genai.types.LiveConstrainedParameters.Builder
 
model(String) - Method in class com.google.genai.types.LiveEphemeralParameters.Builder
 
model(String) - Method in class com.google.genai.types.UpdateModelParameters.Builder
 
model(String) - Method in class com.google.genai.types.UpscaleImageAPIParameters.Builder
 
model(String) - Method in class com.google.genai.types.UpscaleImageParameters.Builder
 
Model - Class in com.google.genai.types
A trained machine learning model.
Model() - Constructor for class com.google.genai.types.Model
 
MODEL_ROUTING_PREFERENCE_UNSPECIFIED - Enum constant in enum com.google.genai.types.ModelRoutingPreference.Known
 
Model.Builder - Class in com.google.genai.types
Builder for Model.
modelName() - Method in class com.google.genai.types.GenerationConfigRoutingConfigManualRoutingMode
The model name to use.
modelName() - Method in class com.google.genai.types.RagRetrievalConfigRankingLlmRanker
Optional.
modelName() - Method in class com.google.genai.types.RagRetrievalConfigRankingRankService
Optional.
modelName(String) - Method in class com.google.genai.types.GenerationConfigRoutingConfigManualRoutingMode.Builder
 
modelName(String) - Method in class com.google.genai.types.RagRetrievalConfigRankingLlmRanker.Builder
 
modelName(String) - Method in class com.google.genai.types.RagRetrievalConfigRankingRankService.Builder
 
modelRoutingPreference() - Method in class com.google.genai.types.GenerationConfigRoutingConfigAutoRoutingMode
The model routing preference.
modelRoutingPreference(ModelRoutingPreference) - Method in class com.google.genai.types.GenerationConfigRoutingConfigAutoRoutingMode.Builder
 
modelRoutingPreference(ModelRoutingPreference.Known) - Method in class com.google.genai.types.GenerationConfigRoutingConfigAutoRoutingMode.Builder
 
modelRoutingPreference(String) - Method in class com.google.genai.types.GenerationConfigRoutingConfigAutoRoutingMode.Builder
 
ModelRoutingPreference - Class in com.google.genai.types
The model routing preference.
ModelRoutingPreference(ModelRoutingPreference.Known) - Constructor for class com.google.genai.types.ModelRoutingPreference
 
ModelRoutingPreference(String) - Constructor for class com.google.genai.types.ModelRoutingPreference
 
ModelRoutingPreference.Known - Enum in com.google.genai.types
Enum representing the known values for ModelRoutingPreference.
models - Variable in class com.google.genai.Client.Async
 
models - Variable in class com.google.genai.Client
 
models() - Method in class com.google.genai.types.ListModelsResponse
 
models(List<Model>) - Method in class com.google.genai.types.ListModelsResponse.Builder
 
Models - Class in com.google.genai
Provides methods for interacting with the available GenAI models.
Models(ApiClient) - Constructor for class com.google.genai.Models
 
modelSelectionConfig() - Method in class com.google.genai.types.GenerateContentConfig
Configuration for model selection.
modelSelectionConfig(ModelSelectionConfig) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
ModelSelectionConfig - Class in com.google.genai.types
Config for model selection.
ModelSelectionConfig() - Constructor for class com.google.genai.types.ModelSelectionConfig
 
ModelSelectionConfig.Builder - Class in com.google.genai.types
Builder for ModelSelectionConfig.
modelTurn() - Method in class com.google.genai.types.LiveServerContent
The content that the model has generated as part of the current conversation with the user.
modelTurn(Content) - Method in class com.google.genai.types.LiveServerContent.Builder
 
modelVersion() - Method in class com.google.genai.types.GenerateContentResponse
Output only.
modelVersion(String) - Method in class com.google.genai.types.GenerateContentResponse.Builder
 
month() - Method in class com.google.genai.types.GoogleTypeDate
Month of a year.
month(Integer) - Method in class com.google.genai.types.GoogleTypeDate.Builder
 
multiSpeakerVoiceConfig() - Method in class com.google.genai.types.SpeechConfig
The configuration for the multi-speaker setup.
multiSpeakerVoiceConfig(MultiSpeakerVoiceConfig) - Method in class com.google.genai.types.SpeechConfig.Builder
 
MultiSpeakerVoiceConfig - Class in com.google.genai.types
The configuration for the multi-speaker setup.
MultiSpeakerVoiceConfig() - Constructor for class com.google.genai.types.MultiSpeakerVoiceConfig
 
MultiSpeakerVoiceConfig.Builder - Class in com.google.genai.types
Builder for MultiSpeakerVoiceConfig.

N

name() - Method in class com.google.genai.AsyncPager
Asynchronously returns the name of the item for this pager.
name() - Method in class com.google.genai.Pager
Returns the name of the item for this pager.
name() - Method in class com.google.genai.types.AuthToken
The name of the auth token.
name() - Method in class com.google.genai.types.CachedContent
The server-generated resource name of the cached content.
name() - Method in class com.google.genai.types.DeleteCachedContentParameters
The server-generated resource name of the cached content.
name() - Method in class com.google.genai.types.DeleteFileParameters
The name identifier for the file to be deleted.
name() - Method in class com.google.genai.types.Endpoint
Resource name of the endpoint.
name() - Method in class com.google.genai.types.File
The `File` resource name.
name() - Method in class com.google.genai.types.FunctionCall
Required.
name() - Method in class com.google.genai.types.FunctionDeclaration
Required.
name() - Method in class com.google.genai.types.FunctionResponse
Required.
name() - Method in class com.google.genai.types.GenerateVideosOperation
The server-assigned name, which is only unique within the same service that originally returns it.
name() - Method in class com.google.genai.types.GetCachedContentParameters
The server-generated resource name of the cached content.
name() - Method in class com.google.genai.types.GetFileParameters
The name identifier for the file to retrieve.
name() - Method in class com.google.genai.types.Model
Resource name of the model.
name() - Method in class com.google.genai.types.TestTableItem
The name of the test.
name() - Method in class com.google.genai.types.UploadFileConfig
The name of the file in the destination (e.g., 'files/sample-image'.
name(String) - Method in class com.google.genai.types.AuthToken.Builder
 
name(String) - Method in class com.google.genai.types.CachedContent.Builder
 
name(String) - Method in class com.google.genai.types.DeleteCachedContentParameters.Builder
 
name(String) - Method in class com.google.genai.types.DeleteFileParameters.Builder
 
name(String) - Method in class com.google.genai.types.Endpoint.Builder
 
name(String) - Method in class com.google.genai.types.File.Builder
 
name(String) - Method in class com.google.genai.types.FunctionCall.Builder
 
name(String) - Method in class com.google.genai.types.FunctionDeclaration.Builder
 
name(String) - Method in class com.google.genai.types.FunctionResponse.Builder
 
name(String) - Method in class com.google.genai.types.GenerateVideosOperation.Builder
 
name(String) - Method in class com.google.genai.types.GetCachedContentParameters.Builder
 
name(String) - Method in class com.google.genai.types.GetFileParameters.Builder
 
name(String) - Method in class com.google.genai.types.Model.Builder
 
name(String) - Method in class com.google.genai.types.TestTableItem.Builder
 
name(String) - Method in class com.google.genai.types.UploadFileConfig.Builder
 
negativePrompt() - Method in class com.google.genai.types.EditImageConfig
Description of what to discourage in the generated images.
negativePrompt() - Method in class com.google.genai.types.GenerateImagesConfig
Description of what to discourage in the generated images.
negativePrompt() - Method in class com.google.genai.types.GenerateVideosConfig
Optional field in addition to the text content.
negativePrompt(String) - Method in class com.google.genai.types.EditImageConfig.Builder
 
negativePrompt(String) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
negativePrompt(String) - Method in class com.google.genai.types.GenerateVideosConfig.Builder
 
NEGLIGIBLE - Enum constant in enum com.google.genai.types.HarmProbability.Known
Negligible level of harm.
newHandle() - Method in class com.google.genai.types.LiveServerSessionResumptionUpdate
New handle that represents state that can be resumed.
newHandle(String) - Method in class com.google.genai.types.LiveServerSessionResumptionUpdate.Builder
 
newSessionExpireTime() - Method in class com.google.genai.types.CreateAuthTokenConfig
The time after which new Live API sessions using the token resulting from this request will be rejected.
newSessionExpireTime(Instant) - Method in class com.google.genai.types.CreateAuthTokenConfig.Builder
 
nextPage() - Method in class com.google.genai.AsyncPager
Asynchronously fetches the next page of items.
nextPage() - Method in class com.google.genai.Pager
Fetches the next page of items.
nextPageToken() - Method in class com.google.genai.types.ListCachedContentsResponse
 
nextPageToken() - Method in class com.google.genai.types.ListFilesResponse
A token to retrieve next page of results.
nextPageToken() - Method in class com.google.genai.types.ListModelsResponse
 
nextPageToken(String) - Method in class com.google.genai.types.ListCachedContentsResponse.Builder
 
nextPageToken(String) - Method in class com.google.genai.types.ListFilesResponse.Builder
 
nextPageToken(String) - Method in class com.google.genai.types.ListModelsResponse.Builder
 
NO_AUTH - Enum constant in enum com.google.genai.types.AuthType.Known
No Auth.
NO_INTERRUPTION - Enum constant in enum com.google.genai.types.ActivityHandling.Known
The model's response will not be interrupted.
NON_BLOCKING - Enum constant in enum com.google.genai.types.Behavior.Known
If set, the system will not wait to receive the function response.
NONE - Enum constant in enum com.google.genai.types.FunctionCallingConfigMode.Known
Model will not predict any function calls.
nullable() - Method in class com.google.genai.types.Schema
Optional.
nullable(boolean) - Method in class com.google.genai.types.Schema.Builder
 
NUMBER - Enum constant in enum com.google.genai.types.Type.Known
OpenAPI number type
numberOfImages() - Method in class com.google.genai.types.EditImageConfig
Number of images to generate.
numberOfImages() - Method in class com.google.genai.types.GenerateImagesConfig
Number of images to generate.
numberOfImages() - Method in class com.google.genai.types.UpscaleImageAPIConfig
 
numberOfImages(Integer) - Method in class com.google.genai.types.EditImageConfig.Builder
 
numberOfImages(Integer) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
numberOfImages(Integer) - Method in class com.google.genai.types.UpscaleImageAPIConfig.Builder
 
numberOfVideos() - Method in class com.google.genai.types.GenerateVideosConfig
Number of output videos.
numberOfVideos(Integer) - Method in class com.google.genai.types.GenerateVideosConfig.Builder
 

O

OAUTH - Enum constant in enum com.google.genai.types.AuthType.Known
OAuth auth.
oauthConfig() - Method in class com.google.genai.types.AuthConfig
Config for user oauth.
oauthConfig(AuthConfigOauthConfig) - Method in class com.google.genai.types.AuthConfig.Builder
 
OBJECT - Enum constant in enum com.google.genai.types.Type.Known
OpenAPI object type
OFF - Enum constant in enum com.google.genai.types.HarmBlockThreshold.Known
Turn off the safety filter.
OIDC_AUTH - Enum constant in enum com.google.genai.types.AuthType.Known
OpenID Connect (OIDC) Auth.
oidcConfig() - Method in class com.google.genai.types.AuthConfig
Config for user OIDC auth.
oidcConfig(AuthConfigOidcConfig) - Method in class com.google.genai.types.AuthConfig.Builder
 
ON_DEMAND - Enum constant in enum com.google.genai.types.TrafficType.Known
Type for Pay-As-You-Go traffic.
operationName() - Method in class com.google.genai.types.FetchPredictOperationParameters
The server-assigned name for the operation.
operationName() - Method in class com.google.genai.types.GetOperationParameters
The server-assigned name for the operation.
operationName(String) - Method in class com.google.genai.types.FetchPredictOperationParameters.Builder
 
operationName(String) - Method in class com.google.genai.types.GetOperationParameters.Builder
 
operations - Variable in class com.google.genai.Client.Async
 
operations - Variable in class com.google.genai.Client
 
Operations - Class in com.google.genai
Provides methods for managing the long-running operations.
Operations(ApiClient) - Constructor for class com.google.genai.Operations
 
OTHER - Enum constant in enum com.google.genai.types.BlockedReason.Known
Candidates blocked due to other reason.
OTHER - Enum constant in enum com.google.genai.types.FinishReason.Known
All other reasons that stopped the token generation.
outcome() - Method in class com.google.genai.types.CodeExecutionResult
Required.
outcome(Outcome) - Method in class com.google.genai.types.CodeExecutionResult.Builder
 
outcome(Outcome.Known) - Method in class com.google.genai.types.CodeExecutionResult.Builder
 
outcome(String) - Method in class com.google.genai.types.CodeExecutionResult.Builder
 
Outcome - Class in com.google.genai.types
Required.
Outcome(Outcome.Known) - Constructor for class com.google.genai.types.Outcome
 
Outcome(String) - Constructor for class com.google.genai.types.Outcome
 
OUTCOME_DEADLINE_EXCEEDED - Enum constant in enum com.google.genai.types.Outcome.Known
Code execution ran for too long, and was cancelled.
OUTCOME_FAILED - Enum constant in enum com.google.genai.types.Outcome.Known
Code execution finished but with a failure.
OUTCOME_OK - Enum constant in enum com.google.genai.types.Outcome.Known
Code execution completed successfully.
OUTCOME_UNSPECIFIED - Enum constant in enum com.google.genai.types.Outcome.Known
Unspecified status.
Outcome.Known - Enum in com.google.genai.types
Enum representing the known values for Outcome.
output() - Method in class com.google.genai.types.CodeExecutionResult
Optional.
output(String) - Method in class com.google.genai.types.CodeExecutionResult.Builder
 
outputAudioTranscription() - Method in class com.google.genai.types.LiveClientSetup
The transcription of the output aligns with the language code specified for the output audio.
outputAudioTranscription() - Method in class com.google.genai.types.LiveConnectConfig
The transcription of the output aligns with the language code specified for the output audio.
outputAudioTranscription(AudioTranscriptionConfig) - Method in class com.google.genai.types.LiveClientSetup.Builder
 
outputAudioTranscription(AudioTranscriptionConfig) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
outputCompressionQuality() - Method in class com.google.genai.types.EditImageConfig
Compression quality of the generated image (for ``image/jpeg`` only).
outputCompressionQuality() - Method in class com.google.genai.types.GenerateImagesConfig
Compression quality of the generated image (for ``image/jpeg`` only).
outputCompressionQuality() - Method in class com.google.genai.types.UpscaleImageAPIConfig
The level of compression if the ``output_mime_type`` is ``image/jpeg``.
outputCompressionQuality() - Method in class com.google.genai.types.UpscaleImageConfig
The level of compression if the ``output_mime_type`` is ``image/jpeg``.
outputCompressionQuality(Integer) - Method in class com.google.genai.types.EditImageConfig.Builder
 
outputCompressionQuality(Integer) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
outputCompressionQuality(Integer) - Method in class com.google.genai.types.UpscaleImageAPIConfig.Builder
 
outputCompressionQuality(Integer) - Method in class com.google.genai.types.UpscaleImageConfig.Builder
 
outputDimensionality() - Method in class com.google.genai.types.EmbedContentConfig
Reduced dimension for the output embedding.
outputDimensionality(Integer) - Method in class com.google.genai.types.EmbedContentConfig.Builder
 
outputGcsUri() - Method in class com.google.genai.types.EditImageConfig
Cloud Storage URI used to store the generated images.
outputGcsUri() - Method in class com.google.genai.types.GenerateImagesConfig
Cloud Storage URI used to store the generated images.
outputGcsUri() - Method in class com.google.genai.types.GenerateVideosConfig
The gcs bucket where to save the generated videos.
outputGcsUri(String) - Method in class com.google.genai.types.EditImageConfig.Builder
 
outputGcsUri(String) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
outputGcsUri(String) - Method in class com.google.genai.types.GenerateVideosConfig.Builder
 
outputMimeType() - Method in class com.google.genai.types.EditImageConfig
MIME type of the generated image.
outputMimeType() - Method in class com.google.genai.types.GenerateImagesConfig
MIME type of the generated image.
outputMimeType() - Method in class com.google.genai.types.UpscaleImageAPIConfig
The image format that the output should be saved as.
outputMimeType() - Method in class com.google.genai.types.UpscaleImageConfig
The image format that the output should be saved as.
outputMimeType(String) - Method in class com.google.genai.types.EditImageConfig.Builder
 
outputMimeType(String) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
outputMimeType(String) - Method in class com.google.genai.types.UpscaleImageAPIConfig.Builder
 
outputMimeType(String) - Method in class com.google.genai.types.UpscaleImageConfig.Builder
 
outputTokenLimit() - Method in class com.google.genai.types.Model
The maximum number of output tokens that the model can generate.
outputTokenLimit(Integer) - Method in class com.google.genai.types.Model.Builder
 
outputTranscription() - Method in class com.google.genai.types.LiveServerContent
Output transcription.
outputTranscription(Transcription) - Method in class com.google.genai.types.LiveServerContent.Builder
 
overrideReplayId() - Method in class com.google.genai.types.TestTableItem
Use if you don't want to use the default replay id which is derived from the test name.
overrideReplayId(String) - Method in class com.google.genai.types.TestTableItem.Builder
 

P

page() - Method in class com.google.genai.AsyncPager
Asynchronously returns the current page of items as a list.
page() - Method in class com.google.genai.Pager
Returns the current page of items as a list.
Pager<T extends JsonSerializable> - Class in com.google.genai
Pager class for iterating through paginated results.
pageSize() - Method in class com.google.genai.AsyncPager
Asynchronously returns the page size for this pager.
pageSize() - Method in class com.google.genai.Pager
Returns the page size for this pager.
pageSize() - Method in class com.google.genai.types.ListCachedContentsConfig
 
pageSize() - Method in class com.google.genai.types.ListFilesConfig
 
pageSize() - Method in class com.google.genai.types.ListModelsConfig
 
pageSize(Integer) - Method in class com.google.genai.types.ListCachedContentsConfig.Builder
 
pageSize(Integer) - Method in class com.google.genai.types.ListFilesConfig.Builder
 
pageSize(Integer) - Method in class com.google.genai.types.ListModelsConfig.Builder
 
pageToken() - Method in class com.google.genai.types.ListCachedContentsConfig
 
pageToken() - Method in class com.google.genai.types.ListFilesConfig
 
pageToken() - Method in class com.google.genai.types.ListModelsConfig
 
pageToken(String) - Method in class com.google.genai.types.ListCachedContentsConfig.Builder
 
pageToken(String) - Method in class com.google.genai.types.ListFilesConfig.Builder
 
pageToken(String) - Method in class com.google.genai.types.ListModelsConfig.Builder
 
parameterNames() - Method in class com.google.genai.types.TestTableFile
 
parameterNames(List<String>) - Method in class com.google.genai.types.TestTableFile.Builder
 
parameters() - Method in class com.google.genai.types.FunctionDeclaration
Optional.
parameters() - Method in class com.google.genai.types.TestTableItem
The parameters to the test.
parameters(Schema) - Method in class com.google.genai.types.FunctionDeclaration.Builder
 
parameters(Map<String, Object>) - Method in class com.google.genai.types.TestTableItem.Builder
 
Part - Class in com.google.genai.types
A datatype containing media content.
Part() - Constructor for class com.google.genai.types.Part
 
Part.Builder - Class in com.google.genai.types
Builder for Part.
partIndex() - Method in class com.google.genai.types.Segment
Output only.
partIndex(Integer) - Method in class com.google.genai.types.Segment.Builder
 
parts() - Method in class com.google.genai.types.Content
List of parts that constitute a single message.
parts() - Method in class com.google.genai.types.GenerateContentResponse
Returns the list of parts in the first candidate of the response.
parts(List<Part>) - Method in class com.google.genai.types.Content.Builder
 
pattern() - Method in class com.google.genai.types.Schema
Optional.
pattern(String) - Method in class com.google.genai.types.Schema.Builder
 
PERSON_GENERATION_UNSPECIFIED - Enum constant in enum com.google.genai.types.PersonGeneration.Known
 
personGeneration() - Method in class com.google.genai.types.EditImageConfig
Allows generation of people by the model.
personGeneration() - Method in class com.google.genai.types.GenerateImagesConfig
Allows generation of people by the model.
personGeneration() - Method in class com.google.genai.types.GenerateVideosConfig
Whether allow to generate person videos, and restrict to specific ages.
personGeneration(PersonGeneration) - Method in class com.google.genai.types.EditImageConfig.Builder
 
personGeneration(PersonGeneration) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
personGeneration(PersonGeneration.Known) - Method in class com.google.genai.types.EditImageConfig.Builder
 
personGeneration(PersonGeneration.Known) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
personGeneration(String) - Method in class com.google.genai.types.EditImageConfig.Builder
 
personGeneration(String) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
personGeneration(String) - Method in class com.google.genai.types.GenerateVideosConfig.Builder
 
PersonGeneration - Class in com.google.genai.types
Enum that controls the generation of people.
PersonGeneration(PersonGeneration.Known) - Constructor for class com.google.genai.types.PersonGeneration
 
PersonGeneration(String) - Constructor for class com.google.genai.types.PersonGeneration
 
PersonGeneration.Known - Enum in com.google.genai.types
Enum representing the known values for PersonGeneration.
positivePromptSafetyAttributes() - Method in class com.google.genai.types.GenerateImagesResponse
Safety attributes of the positive prompt.
positivePromptSafetyAttributes(SafetyAttributes) - Method in class com.google.genai.types.GenerateImagesResponse.Builder
 
prebuiltVoiceConfig() - Method in class com.google.genai.types.VoiceConfig
The configuration for the speaker to use.
prebuiltVoiceConfig(PrebuiltVoiceConfig) - Method in class com.google.genai.types.VoiceConfig.Builder
 
PrebuiltVoiceConfig - Class in com.google.genai.types
The configuration for the prebuilt speaker to use.
PrebuiltVoiceConfig() - Constructor for class com.google.genai.types.PrebuiltVoiceConfig
 
PrebuiltVoiceConfig.Builder - Class in com.google.genai.types
Builder for PrebuiltVoiceConfig.
prefixPaddingMs() - Method in class com.google.genai.types.AutomaticActivityDetection
The required duration of detected speech before start-of-speech is committed.
prefixPaddingMs(Integer) - Method in class com.google.genai.types.AutomaticActivityDetection.Builder
 
presencePenalty() - Method in class com.google.genai.types.GenerateContentConfig
Positive values penalize tokens that already appear in the generated text, increasing the probability of generating more diverse content.
presencePenalty() - Method in class com.google.genai.types.GenerationConfig
Optional.
presencePenalty(Float) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
presencePenalty(Float) - Method in class com.google.genai.types.GenerationConfig.Builder
 
PRIORITIZE_COST - Enum constant in enum com.google.genai.types.FeatureSelectionPreference.Known
 
PRIORITIZE_COST - Enum constant in enum com.google.genai.types.ModelRoutingPreference.Known
 
PRIORITIZE_QUALITY - Enum constant in enum com.google.genai.types.FeatureSelectionPreference.Known
 
PRIORITIZE_QUALITY - Enum constant in enum com.google.genai.types.ModelRoutingPreference.Known
 
proactiveAudio() - Method in class com.google.genai.types.ProactivityConfig
If enabled, the model can reject responding to the last prompt.
proactiveAudio(boolean) - Method in class com.google.genai.types.ProactivityConfig.Builder
 
proactivity() - Method in class com.google.genai.types.LiveClientSetup
Configures the proactivity of the model.
proactivity() - Method in class com.google.genai.types.LiveConnectConfig
Configures the proactivity of the model.
proactivity(ProactivityConfig) - Method in class com.google.genai.types.LiveClientSetup.Builder
 
proactivity(ProactivityConfig) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
ProactivityConfig - Class in com.google.genai.types
Config for proactivity features.
ProactivityConfig() - Constructor for class com.google.genai.types.ProactivityConfig
 
ProactivityConfig.Builder - Class in com.google.genai.types
Builder for ProactivityConfig.
probability() - Method in class com.google.genai.types.SafetyRating
Output only.
probability(HarmProbability) - Method in class com.google.genai.types.SafetyRating.Builder
 
probability(HarmProbability.Known) - Method in class com.google.genai.types.SafetyRating.Builder
 
probability(String) - Method in class com.google.genai.types.SafetyRating.Builder
 
PROBABILITY - Enum constant in enum com.google.genai.types.HarmBlockMethod.Known
The harm block method uses the probability score.
probabilityScore() - Method in class com.google.genai.types.SafetyRating
Output only.
probabilityScore(Float) - Method in class com.google.genai.types.SafetyRating.Builder
 
PROCESSING - Enum constant in enum com.google.genai.types.FileState.Known
 
PROHIBITED_CONTENT - Enum constant in enum com.google.genai.types.BlockedReason.Known
Candidates blocked due to prohibited content.
PROHIBITED_CONTENT - Enum constant in enum com.google.genai.types.FinishReason.Known
Token generation stopped for potentially containing prohibited content.
project() - Method in class com.google.genai.HttpApiClient
Returns the project ID for Vertex AI APIs.
project() - Method in class com.google.genai.Client
Returns the project ID for Vertex AI APIs.
project(String) - Method in class com.google.genai.Client.Builder
Sets the project ID for Vertex AI APIs.
prompt() - Method in class com.google.genai.types.EditImageParameters
A text description of the edit to apply to the image.
prompt() - Method in class com.google.genai.types.GenerateImagesParameters
Text prompt that typically describes the images to output.
prompt() - Method in class com.google.genai.types.GenerateVideosParameters
The text prompt for generating the videos.
prompt(String) - Method in class com.google.genai.types.EditImageParameters.Builder
 
prompt(String) - Method in class com.google.genai.types.GenerateImagesParameters.Builder
 
prompt(String) - Method in class com.google.genai.types.GenerateVideosParameters.Builder
 
promptFeedback() - Method in class com.google.genai.types.GenerateContentResponse
Output only.
promptFeedback(GenerateContentResponsePromptFeedback) - Method in class com.google.genai.types.GenerateContentResponse.Builder
 
promptTokenCount() - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata
Number of tokens in the request.
promptTokenCount() - Method in class com.google.genai.types.UsageMetadata
Number of tokens in the prompt.
promptTokenCount(Integer) - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
 
promptTokenCount(Integer) - Method in class com.google.genai.types.UsageMetadata.Builder
 
promptTokensDetails() - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata
Output only.
promptTokensDetails() - Method in class com.google.genai.types.UsageMetadata
List of modalities that were processed in the request input.
promptTokensDetails(List<ModalityTokenCount>) - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
 
promptTokensDetails(List<ModalityTokenCount>) - Method in class com.google.genai.types.UsageMetadata.Builder
 
properties() - Method in class com.google.genai.types.Schema
Optional.
properties(Map<String, Schema>) - Method in class com.google.genai.types.Schema.Builder
 
propertyOrdering() - Method in class com.google.genai.types.Schema
Optional.
propertyOrdering(List<String>) - Method in class com.google.genai.types.Schema.Builder
 
PROVISIONED_THROUGHPUT - Enum constant in enum com.google.genai.types.TrafficType.Known
Type for Provisioned Throughput traffic.
publicationDate() - Method in class com.google.genai.types.Citation
Output only.
publicationDate(GoogleTypeDate) - Method in class com.google.genai.types.Citation.Builder
 
pubsubTopic() - Method in class com.google.genai.types.GenerateVideosConfig
The pubsub topic where to publish the video generation progress.
pubsubTopic(String) - Method in class com.google.genai.types.GenerateVideosConfig.Builder
 
PYTHON - Enum constant in enum com.google.genai.types.Language.Known
Python >= 3.10, with numpy and simpy available.

Q

queryBase() - Method in class com.google.genai.types.ListModelsConfig
Set true to list base models, false to list tuned models.
queryBase(boolean) - Method in class com.google.genai.types.ListModelsConfig.Builder
 

R

ragCorpora() - Method in class com.google.genai.types.VertexRagStore
Optional.
ragCorpora(List<String>) - Method in class com.google.genai.types.VertexRagStore.Builder
 
ragCorpus() - Method in class com.google.genai.types.VertexRagStoreRagResource
Optional.
ragCorpus(String) - Method in class com.google.genai.types.VertexRagStoreRagResource.Builder
 
ragFileIds() - Method in class com.google.genai.types.VertexRagStoreRagResource
Optional. rag_file_id.
ragFileIds(List<String>) - Method in class com.google.genai.types.VertexRagStoreRagResource.Builder
 
ragResources() - Method in class com.google.genai.types.VertexRagStore
Optional.
ragResources(List<VertexRagStoreRagResource>) - Method in class com.google.genai.types.VertexRagStore.Builder
 
ragRetrievalConfig() - Method in class com.google.genai.types.VertexRagStore
Optional.
ragRetrievalConfig(RagRetrievalConfig) - Method in class com.google.genai.types.VertexRagStore.Builder
 
RagRetrievalConfig - Class in com.google.genai.types
Specifies the context retrieval config.
RagRetrievalConfig() - Constructor for class com.google.genai.types.RagRetrievalConfig
 
RagRetrievalConfig.Builder - Class in com.google.genai.types
Builder for RagRetrievalConfig.
RagRetrievalConfigFilter - Class in com.google.genai.types
Config for filters.
RagRetrievalConfigFilter() - Constructor for class com.google.genai.types.RagRetrievalConfigFilter
 
RagRetrievalConfigFilter.Builder - Class in com.google.genai.types
Builder for RagRetrievalConfigFilter.
RagRetrievalConfigHybridSearch - Class in com.google.genai.types
Config for Hybrid Search.
RagRetrievalConfigHybridSearch() - Constructor for class com.google.genai.types.RagRetrievalConfigHybridSearch
 
RagRetrievalConfigHybridSearch.Builder - Class in com.google.genai.types
Builder for RagRetrievalConfigHybridSearch.
RagRetrievalConfigRanking - Class in com.google.genai.types
Config for ranking and reranking.
RagRetrievalConfigRanking() - Constructor for class com.google.genai.types.RagRetrievalConfigRanking
 
RagRetrievalConfigRanking.Builder - Class in com.google.genai.types
Builder for RagRetrievalConfigRanking.
RagRetrievalConfigRankingLlmRanker - Class in com.google.genai.types
Config for LlmRanker.
RagRetrievalConfigRankingLlmRanker() - Constructor for class com.google.genai.types.RagRetrievalConfigRankingLlmRanker
 
RagRetrievalConfigRankingLlmRanker.Builder - Class in com.google.genai.types
Builder for RagRetrievalConfigRankingLlmRanker.
RagRetrievalConfigRankingRankService - Class in com.google.genai.types
Config for Rank Service.
RagRetrievalConfigRankingRankService() - Constructor for class com.google.genai.types.RagRetrievalConfigRankingRankService
 
RagRetrievalConfigRankingRankService.Builder - Class in com.google.genai.types
Builder for RagRetrievalConfigRankingRankService.
raiFilteredReason() - Method in class com.google.genai.types.GeneratedImage
Responsible AI filter reason if the image is filtered out of the response.
raiFilteredReason(String) - Method in class com.google.genai.types.GeneratedImage.Builder
 
raiMediaFilteredCount() - Method in class com.google.genai.types.GenerateVideosResponse
Returns if any videos were filtered due to RAI policies.
raiMediaFilteredCount(Integer) - Method in class com.google.genai.types.GenerateVideosResponse.Builder
 
raiMediaFilteredReasons() - Method in class com.google.genai.types.GenerateVideosResponse
Returns rai failure reasons if any.
raiMediaFilteredReasons(List<String>) - Method in class com.google.genai.types.GenerateVideosResponse.Builder
 
ranking() - Method in class com.google.genai.types.RagRetrievalConfig
Optional.
ranking(RagRetrievalConfigRanking) - Method in class com.google.genai.types.RagRetrievalConfig.Builder
 
rankService() - Method in class com.google.genai.types.RagRetrievalConfigRanking
Optional.
rankService(RagRetrievalConfigRankingRankService) - Method in class com.google.genai.types.RagRetrievalConfigRanking.Builder
 
RawReferenceImage - Class in com.google.genai.types
A raw reference image.
RawReferenceImage() - Constructor for class com.google.genai.types.RawReferenceImage
 
RawReferenceImage.Builder - Class in com.google.genai.types
Builder for RawReferenceImage.
realtimeInput() - Method in class com.google.genai.types.LiveClientMessage
User input that is sent in real time.
realtimeInput(LiveClientRealtimeInput) - Method in class com.google.genai.types.LiveClientMessage.Builder
 
realtimeInputConfig() - Method in class com.google.genai.types.LiveClientSetup
Configures the realtime input behavior in BidiGenerateContent.
realtimeInputConfig() - Method in class com.google.genai.types.LiveConnectConfig
Configures the realtime input behavior in BidiGenerateContent.
realtimeInputConfig(RealtimeInputConfig) - Method in class com.google.genai.types.LiveClientSetup.Builder
 
realtimeInputConfig(RealtimeInputConfig) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
RealtimeInputConfig - Class in com.google.genai.types
Marks the end of user activity.
RealtimeInputConfig() - Constructor for class com.google.genai.types.RealtimeInputConfig
 
RealtimeInputConfig.Builder - Class in com.google.genai.types
Builder for RealtimeInputConfig.
realtimeInputParameters() - Method in class com.google.genai.types.LiveClientMessage
This is an alias for `realtime_input` field.
realtimeInputParameters(LiveSendRealtimeInputParameters) - Method in class com.google.genai.types.LiveClientMessage.Builder
 
receive(Consumer<LiveServerMessage>) - Method in class com.google.genai.AsyncSession
Registers a callback to receive messages from the live session.
RECITATION - Enum constant in enum com.google.genai.types.FinishReason.Known
The token generation stopped because of potential recitation.
referenceId() - Method in class com.google.genai.types.ControlReferenceImage
The id of the reference image.
referenceId() - Method in class com.google.genai.types.MaskReferenceImage
The id of the reference image.
referenceId() - Method in class com.google.genai.types.RawReferenceImage
The id of the reference image.
referenceId() - Method in class com.google.genai.types.ReferenceImageAPI
The id of the reference image.
referenceId() - Method in class com.google.genai.types.StyleReferenceImage
The id of the reference image.
referenceId() - Method in class com.google.genai.types.SubjectReferenceImage
The id of the reference image.
referenceId(Integer) - Method in class com.google.genai.types.ControlReferenceImage.Builder
 
referenceId(Integer) - Method in class com.google.genai.types.MaskReferenceImage.Builder
 
referenceId(Integer) - Method in class com.google.genai.types.RawReferenceImage.Builder
 
referenceId(Integer) - Method in class com.google.genai.types.ReferenceImageAPI.Builder
 
referenceId(Integer) - Method in class com.google.genai.types.StyleReferenceImage.Builder
 
referenceId(Integer) - Method in class com.google.genai.types.SubjectReferenceImage.Builder
 
referenceImage() - Method in class com.google.genai.types.ControlReferenceImage
The reference image for the editing operation.
referenceImage() - Method in class com.google.genai.types.MaskReferenceImage
The reference image for the editing operation.
referenceImage() - Method in class com.google.genai.types.RawReferenceImage
The reference image for the editing operation.
referenceImage() - Method in class com.google.genai.types.ReferenceImageAPI
The reference image for the editing operation.
referenceImage() - Method in class com.google.genai.types.StyleReferenceImage
The reference image for the editing operation.
referenceImage() - Method in class com.google.genai.types.SubjectReferenceImage
The reference image for the editing operation.
referenceImage(Image) - Method in class com.google.genai.types.ControlReferenceImage.Builder
 
referenceImage(Image) - Method in class com.google.genai.types.MaskReferenceImage.Builder
 
referenceImage(Image) - Method in class com.google.genai.types.RawReferenceImage.Builder
 
referenceImage(Image) - Method in class com.google.genai.types.ReferenceImageAPI.Builder
 
referenceImage(Image) - Method in class com.google.genai.types.StyleReferenceImage.Builder
 
referenceImage(Image) - Method in class com.google.genai.types.SubjectReferenceImage.Builder
 
ReferenceImage - Interface in com.google.genai.types
An interface for a Reference image.
ReferenceImageAPI - Class in com.google.genai.types
Private class that represents a Reference image that is sent to API.
ReferenceImageAPI() - Constructor for class com.google.genai.types.ReferenceImageAPI
 
ReferenceImageAPI.Builder - Class in com.google.genai.types
Builder for ReferenceImageAPI.
referenceImages() - Method in class com.google.genai.types.EditImageParameters
The reference images for Imagen 3 editing.
referenceImages(List<ReferenceImageAPI>) - Method in class com.google.genai.types.EditImageParameters.Builder
 
referenceType() - Method in class com.google.genai.types.ControlReferenceImage
The type of the reference image.
referenceType() - Method in class com.google.genai.types.MaskReferenceImage
The type of the reference image.
referenceType() - Method in class com.google.genai.types.RawReferenceImage
The type of the reference image.
referenceType() - Method in class com.google.genai.types.ReferenceImageAPI
The type of the reference image.
referenceType() - Method in class com.google.genai.types.StyleReferenceImage
The type of the reference image.
referenceType() - Method in class com.google.genai.types.SubjectReferenceImage
The type of the reference image.
referenceType(String) - Method in class com.google.genai.types.ControlReferenceImage.Builder
 
referenceType(String) - Method in class com.google.genai.types.MaskReferenceImage.Builder
 
referenceType(String) - Method in class com.google.genai.types.RawReferenceImage.Builder
 
referenceType(String) - Method in class com.google.genai.types.ReferenceImageAPI.Builder
 
referenceType(String) - Method in class com.google.genai.types.StyleReferenceImage.Builder
 
referenceType(String) - Method in class com.google.genai.types.SubjectReferenceImage.Builder
 
renderedContent() - Method in class com.google.genai.types.SearchEntryPoint
Optional.
renderedContent(String) - Method in class com.google.genai.types.SearchEntryPoint.Builder
 
ReplayFile - Class in com.google.genai.types
Represents a recorded session.
ReplayFile() - Constructor for class com.google.genai.types.ReplayFile
 
ReplayFile.Builder - Class in com.google.genai.types
Builder for ReplayFile.
replayId() - Method in class com.google.genai.types.ReplayFile
 
replayId(String) - Method in class com.google.genai.types.ReplayFile.Builder
 
ReplayInteraction - Class in com.google.genai.types
Represents a single interaction, request and response in a replay.
ReplayInteraction() - Constructor for class com.google.genai.types.ReplayInteraction
 
ReplayInteraction.Builder - Class in com.google.genai.types
Builder for ReplayInteraction.
ReplayRequest - Class in com.google.genai.types
Represents a single request in a replay.
ReplayRequest() - Constructor for class com.google.genai.types.ReplayRequest
 
ReplayRequest.Builder - Class in com.google.genai.types
Builder for ReplayRequest.
ReplayResponse - Class in com.google.genai.types
Represents a single response in a replay.
ReplayResponse() - Constructor for class com.google.genai.types.ReplayResponse
 
ReplayResponse.Builder - Class in com.google.genai.types
Builder for ReplayResponse.
request() - Method in class com.google.genai.types.ReplayInteraction
 
request(ReplayRequest) - Method in class com.google.genai.types.ReplayInteraction.Builder
 
request(String, String, byte[], Optional<HttpOptions>) - Method in class com.google.genai.HttpApiClient
 
request(String, String, String, Optional<HttpOptions>) - Method in class com.google.genai.HttpApiClient
Sends a Http request given the http method, path, request json string, and http options.
required() - Method in class com.google.genai.types.Schema
Optional.
required(List<String>) - Method in class com.google.genai.types.Schema.Builder
 
resolution() - Method in class com.google.genai.types.GenerateVideosConfig
The resolution for the generated video. 1280x720, 1920x1080 are supported.
resolution(String) - Method in class com.google.genai.types.GenerateVideosConfig.Builder
 
resourceName() - Method in class com.google.genai.types.FetchPredictOperationParameters
 
resourceName(String) - Method in class com.google.genai.types.FetchPredictOperationParameters.Builder
 
response() - Method in class com.google.genai.types.FunctionDeclaration
Optional.
response() - Method in class com.google.genai.types.FunctionResponse
Required.
response() - Method in class com.google.genai.types.GenerateVideosOperation
The generated videos.
response() - Method in class com.google.genai.types.ReplayInteraction
 
response(GenerateVideosResponse) - Method in class com.google.genai.types.GenerateVideosOperation.Builder
 
response(ReplayResponse) - Method in class com.google.genai.types.ReplayInteraction.Builder
 
response(Schema) - Method in class com.google.genai.types.FunctionDeclaration.Builder
 
response(Map<String, Object>) - Method in class com.google.genai.types.FunctionResponse.Builder
 
responseId() - Method in class com.google.genai.types.GenerateContentResponse
Identifier for each response.
responseId(String) - Method in class com.google.genai.types.GenerateContentResponse.Builder
 
responseLogprobs() - Method in class com.google.genai.types.GenerateContentConfig
Whether to return the log probabilities of the tokens that were chosen by the model at each step.
responseLogprobs() - Method in class com.google.genai.types.GenerationConfig
Optional.
responseLogprobs(boolean) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
responseLogprobs(boolean) - Method in class com.google.genai.types.GenerationConfig.Builder
 
responseMimeType() - Method in class com.google.genai.types.GenerateContentConfig
Output response mimetype of the generated candidate text.
responseMimeType() - Method in class com.google.genai.types.GenerationConfig
Optional.
responseMimeType(String) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
responseMimeType(String) - Method in class com.google.genai.types.GenerationConfig.Builder
 
responseModalities() - Method in class com.google.genai.types.GenerateContentConfig
The requested modalities of the response.
responseModalities() - Method in class com.google.genai.types.LiveConnectConfig
The requested modalities of the response.
responseModalities(List<Modality>) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
responseModalities(List<String>) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
responseModalitiesFromKnown(List<Modality.Known>) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
responseModalitiesFromString(List<String>) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
responseSchema() - Method in class com.google.genai.types.GenerateContentConfig
The `Schema` object allows the definition of input and output data types.
responseSchema() - Method in class com.google.genai.types.GenerationConfig
Optional.
responseSchema(Schema) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
responseSchema(Schema) - Method in class com.google.genai.types.GenerationConfig.Builder
 
ResponseStream<T extends JsonSerializable> - Class in com.google.genai
An iterable of datatype objects.
ResponseStream(Class<T>, ApiResponse, Object, String) - Constructor for class com.google.genai.ResponseStream
 
responseTokenCount() - Method in class com.google.genai.types.UsageMetadata
Total number of tokens across all the generated response candidates.
responseTokenCount(Integer) - Method in class com.google.genai.types.UsageMetadata.Builder
 
responseTokensDetails() - Method in class com.google.genai.types.UsageMetadata
List of modalities that were returned in the response.
responseTokensDetails(List<ModalityTokenCount>) - Method in class com.google.genai.types.UsageMetadata.Builder
 
resumable() - Method in class com.google.genai.types.LiveServerSessionResumptionUpdate
True if session can be resumed at this point.
resumable(boolean) - Method in class com.google.genai.types.LiveServerSessionResumptionUpdate.Builder
 
retrieval() - Method in class com.google.genai.types.Tool
Optional.
retrieval(Retrieval) - Method in class com.google.genai.types.Tool.Builder
 
Retrieval - Class in com.google.genai.types
Defines a retrieval tool that model can call to access external knowledge.
Retrieval() - Constructor for class com.google.genai.types.Retrieval
 
Retrieval.Builder - Class in com.google.genai.types
Builder for Retrieval.
retrievalConfig() - Method in class com.google.genai.types.ToolConfig
Optional.
retrievalConfig(RetrievalConfig) - Method in class com.google.genai.types.ToolConfig.Builder
 
RetrievalConfig - Class in com.google.genai.types
Retrieval config.
RetrievalConfig() - Constructor for class com.google.genai.types.RetrievalConfig
 
RetrievalConfig.Builder - Class in com.google.genai.types
Builder for RetrievalConfig.
retrievalMetadata() - Method in class com.google.genai.types.GroundingMetadata
Optional.
retrievalMetadata(RetrievalMetadata) - Method in class com.google.genai.types.GroundingMetadata.Builder
 
RetrievalMetadata - Class in com.google.genai.types
Metadata related to retrieval in the grounding flow.
RetrievalMetadata() - Constructor for class com.google.genai.types.RetrievalMetadata
 
RetrievalMetadata.Builder - Class in com.google.genai.types
Builder for RetrievalMetadata.
retrievalQueries() - Method in class com.google.genai.types.GroundingMetadata
Optional.
retrievalQueries(List<String>) - Method in class com.google.genai.types.GroundingMetadata.Builder
 
retrievedContext() - Method in class com.google.genai.types.GroundingChunk
Grounding chunk from context retrieved by the retrieval tools.
retrievedContext(GroundingChunkRetrievedContext) - Method in class com.google.genai.types.GroundingChunk.Builder
 
retrievedUrl() - Method in class com.google.genai.types.UrlMetadata
The URL retrieved by the tool.
retrievedUrl(String) - Method in class com.google.genai.types.UrlMetadata.Builder
 
role() - Method in class com.google.genai.types.Content
Optional.
role() - Method in class com.google.genai.types.TokensInfo
Optional.
role(String) - Method in class com.google.genai.types.Content.Builder
 
role(String) - Method in class com.google.genai.types.TokensInfo.Builder
 
routingConfig() - Method in class com.google.genai.types.GenerateContentConfig
Configuration for model router requests.
routingConfig() - Method in class com.google.genai.types.GenerationConfig
Optional.
routingConfig(GenerationConfigRoutingConfig) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
routingConfig(GenerationConfigRoutingConfig) - Method in class com.google.genai.types.GenerationConfig.Builder
 

S

SAFETY - Enum constant in enum com.google.genai.types.BlockedReason.Known
Candidates blocked due to safety.
SAFETY - Enum constant in enum com.google.genai.types.FinishReason.Known
Token generation stopped because the content potentially contains safety violations.
SAFETY_FILTER_LEVEL_UNSPECIFIED - Enum constant in enum com.google.genai.types.SafetyFilterLevel.Known
 
safetyAttributes() - Method in class com.google.genai.types.GeneratedImage
Safety attributes of the image.
safetyAttributes(SafetyAttributes) - Method in class com.google.genai.types.GeneratedImage.Builder
 
SafetyAttributes - Class in com.google.genai.types
Safety attributes of a GeneratedImage or the user-provided prompt.
SafetyAttributes() - Constructor for class com.google.genai.types.SafetyAttributes
 
SafetyAttributes.Builder - Class in com.google.genai.types
Builder for SafetyAttributes.
safetyFilterLevel() - Method in class com.google.genai.types.EditImageConfig
Filter level for safety filtering.
safetyFilterLevel() - Method in class com.google.genai.types.GenerateImagesConfig
Filter level for safety filtering.
safetyFilterLevel(SafetyFilterLevel) - Method in class com.google.genai.types.EditImageConfig.Builder
 
safetyFilterLevel(SafetyFilterLevel) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
safetyFilterLevel(SafetyFilterLevel.Known) - Method in class com.google.genai.types.EditImageConfig.Builder
 
safetyFilterLevel(SafetyFilterLevel.Known) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
safetyFilterLevel(String) - Method in class com.google.genai.types.EditImageConfig.Builder
 
safetyFilterLevel(String) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
SafetyFilterLevel - Class in com.google.genai.types
Enum that controls the safety filter level for objectionable content.
SafetyFilterLevel(SafetyFilterLevel.Known) - Constructor for class com.google.genai.types.SafetyFilterLevel
 
SafetyFilterLevel(String) - Constructor for class com.google.genai.types.SafetyFilterLevel
 
SafetyFilterLevel.Known - Enum in com.google.genai.types
Enum representing the known values for SafetyFilterLevel.
SafetyRating - Class in com.google.genai.types
Safety rating corresponding to the generated content.
SafetyRating() - Constructor for class com.google.genai.types.SafetyRating
 
SafetyRating.Builder - Class in com.google.genai.types
Builder for SafetyRating.
safetyRatings() - Method in class com.google.genai.types.Candidate
Output only.
safetyRatings() - Method in class com.google.genai.types.GenerateContentResponsePromptFeedback
Output only.
safetyRatings(List<SafetyRating>) - Method in class com.google.genai.types.Candidate.Builder
 
safetyRatings(List<SafetyRating>) - Method in class com.google.genai.types.GenerateContentResponsePromptFeedback.Builder
 
SafetySetting - Class in com.google.genai.types
Safety settings.
SafetySetting() - Constructor for class com.google.genai.types.SafetySetting
 
SafetySetting.Builder - Class in com.google.genai.types
Builder for SafetySetting.
safetySettings() - Method in class com.google.genai.types.GenerateContentConfig
Safety settings in the request to block unsafe content in the response.
safetySettings(List<SafetySetting>) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
scheduling() - Method in class com.google.genai.types.FunctionResponse
Specifies how the response should be scheduled in the conversation.
scheduling(FunctionResponseScheduling) - Method in class com.google.genai.types.FunctionResponse.Builder
 
scheduling(FunctionResponseScheduling.Known) - Method in class com.google.genai.types.FunctionResponse.Builder
 
scheduling(String) - Method in class com.google.genai.types.FunctionResponse.Builder
 
SCHEDULING_UNSPECIFIED - Enum constant in enum com.google.genai.types.FunctionResponseScheduling.Known
This value is unused.
Schema - Class in com.google.genai.types
Schema is used to define the format of input/output data.
Schema() - Constructor for class com.google.genai.types.Schema
 
Schema.Builder - Class in com.google.genai.types
Builder for Schema.
scores() - Method in class com.google.genai.types.SafetyAttributes
List of scores of each categories.
scores(List<Float>) - Method in class com.google.genai.types.SafetyAttributes.Builder
 
sdkBlob() - Method in class com.google.genai.types.SearchEntryPoint
Optional.
sdkBlob(byte[]) - Method in class com.google.genai.types.SearchEntryPoint.Builder
 
sdkHttpResponse() - Method in class com.google.genai.types.CreateFileResponse
Used to retain the full HTTP response.
sdkHttpResponse(HttpResponse) - Method in class com.google.genai.types.CreateFileResponse.Builder
 
sdkResponseSegments() - Method in class com.google.genai.types.ReplayResponse
 
sdkResponseSegments(List<Map<String, Object>>) - Method in class com.google.genai.types.ReplayResponse.Builder
 
searchEntryPoint() - Method in class com.google.genai.types.GroundingMetadata
Optional.
searchEntryPoint(SearchEntryPoint) - Method in class com.google.genai.types.GroundingMetadata.Builder
 
SearchEntryPoint - Class in com.google.genai.types
Google search entry point.
SearchEntryPoint() - Constructor for class com.google.genai.types.SearchEntryPoint
 
SearchEntryPoint.Builder - Class in com.google.genai.types
Builder for SearchEntryPoint.
seed() - Method in class com.google.genai.types.EditImageConfig
Random seed for image generation.
seed() - Method in class com.google.genai.types.GenerateContentConfig
When ``seed`` is fixed to a specific number, the model makes a best effort to provide the same response for repeated requests.
seed() - Method in class com.google.genai.types.GenerateImagesConfig
Random seed for image generation.
seed() - Method in class com.google.genai.types.GenerateVideosConfig
The RNG seed.
seed() - Method in class com.google.genai.types.GenerationConfig
Optional.
seed() - Method in class com.google.genai.types.LiveConnectConfig
When ``seed`` is fixed to a specific number, the model makes a best effort to provide the same response for repeated requests.
seed(Integer) - Method in class com.google.genai.types.EditImageConfig.Builder
 
seed(Integer) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
seed(Integer) - Method in class com.google.genai.types.GenerateImagesConfig.Builder
 
seed(Integer) - Method in class com.google.genai.types.GenerateVideosConfig.Builder
 
seed(Integer) - Method in class com.google.genai.types.GenerationConfig.Builder
 
seed(Integer) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
segment() - Method in class com.google.genai.types.GroundingSupport
Segment of the content this support belongs to.
segment(Segment) - Method in class com.google.genai.types.GroundingSupport.Builder
 
Segment - Class in com.google.genai.types
Segment of the content.
Segment() - Constructor for class com.google.genai.types.Segment
 
Segment.Builder - Class in com.google.genai.types
Builder for Segment.
segmentationClasses() - Method in class com.google.genai.types.MaskReferenceConfig
A list of up to 5 class ids to use for semantic segmentation.
segmentationClasses(List<Integer>) - Method in class com.google.genai.types.MaskReferenceConfig.Builder
 
sendClientContent(LiveSendClientContentParameters) - Method in class com.google.genai.AsyncSession
Sends client content to the live session.
sendMessage(Content) - Method in class com.google.genai.AsyncChat
Asynchronously sends a message to the model in the current multi-turn chat session and returns the model's response.
sendMessage(Content) - Method in class com.google.genai.Chat
Sends a message to the model in the current multi-turn chat session and returns the model's response.
sendMessage(Content, GenerateContentConfig) - Method in class com.google.genai.AsyncChat
Asynchronously sends a message to the model in the current multi-turn chat session and returns the model's response.
sendMessage(Content, GenerateContentConfig) - Method in class com.google.genai.Chat
Sends a message to the model in the current multi-turn chat session and returns the model's response.
sendMessage(String) - Method in class com.google.genai.AsyncChat
Asynchronously sends a message to the model in the current multi-turn chat session and returns the model's response.
sendMessage(String) - Method in class com.google.genai.Chat
Sends a message to the model in the current multi-turn chat session and returns the model's response.
sendMessage(String, GenerateContentConfig) - Method in class com.google.genai.AsyncChat
Asynchronously sends a message to the model in the current multi-turn chat session and returns the model's response.
sendMessage(String, GenerateContentConfig) - Method in class com.google.genai.Chat
Sends a message to the model in the current multi-turn chat session and returns the model's response.
sendMessage(List<Content>) - Method in class com.google.genai.AsyncChat
Asynchronously sends a message to the model in the current multi-turn chat session and returns the model's response.
sendMessage(List<Content>) - Method in class com.google.genai.Chat
Sends a message to the model in the current multi-turn chat session and returns the model's response.
sendMessage(List<Content>, GenerateContentConfig) - Method in class com.google.genai.AsyncChat
Asynchronously sends a message to the model in the current multi-turn chat session and returns the model's response.
sendMessage(List<Content>, GenerateContentConfig) - Method in class com.google.genai.Chat
Sends a message to the model in the current multi-turn chat session and returns the model's response.
sendMessageStream(Content) - Method in class com.google.genai.AsyncChat
Asynchronously sends a message to the model in the current multi-turn chat session and returns a stream of responses.
sendMessageStream(Content) - Method in class com.google.genai.Chat
Sends a message to the model in the current multi-turn chat session and returns a stream of responses.
sendMessageStream(Content, GenerateContentConfig) - Method in class com.google.genai.AsyncChat
Asynchronously sends a message to the model in the current multi-turn chat session and returns a stream of responses.
sendMessageStream(Content, GenerateContentConfig) - Method in class com.google.genai.Chat
Sends a message to the model in the current multi-turn chat session and returns a stream of responses.
sendMessageStream(String) - Method in class com.google.genai.AsyncChat
Asynchronously sends a message to the model in the current multi-turn chat session and returns a stream of responses.
sendMessageStream(String) - Method in class com.google.genai.Chat
Sends a message to the model in the current multi-turn chat session and returns a stream of responses.
sendMessageStream(String, GenerateContentConfig) - Method in class com.google.genai.AsyncChat
Asynchronously sends a message to the model in the current multi-turn chat session and returns a stream of responses.
sendMessageStream(String, GenerateContentConfig) - Method in class com.google.genai.Chat
Sends a message to the model in the current multi-turn chat session and returns a stream of responses.
sendMessageStream(List<Content>) - Method in class com.google.genai.AsyncChat
Sends a message to the model in the current multi-turn chat session and returns the model's response.
sendMessageStream(List<Content>) - Method in class com.google.genai.Chat
Sends a message to the model in the current multi-turn chat session and returns the model's response.
sendMessageStream(List<Content>, GenerateContentConfig) - Method in class com.google.genai.AsyncChat
Asynchronously sends a message to the model in the current multi-turn chat session and returns a stream of responses.
sendMessageStream(List<Content>, GenerateContentConfig) - Method in class com.google.genai.Chat
Sends a message to the model in the current multi-turn chat session and returns a stream of responses.
sendRealtimeInput(LiveSendRealtimeInputParameters) - Method in class com.google.genai.AsyncSession
Sends realtime input to the live session.
sendToolResponse(LiveSendToolResponseParameters) - Method in class com.google.genai.AsyncSession
Sends tool response to the live session.
serverContent() - Method in class com.google.genai.types.LiveServerMessage
Content generated by the model in response to client messages.
serverContent(LiveServerContent) - Method in class com.google.genai.types.LiveServerMessage.Builder
 
ServerException - Exception in com.google.genai.errors
Server exception raised by the GenAI API.
ServerException(int, String, String) - Constructor for exception com.google.genai.errors.ServerException
Creates a new ServerException with the specified message.
serviceAccount() - Method in class com.google.genai.types.AuthConfigGoogleServiceAccountConfig
Optional.
serviceAccount() - Method in class com.google.genai.types.AuthConfigOauthConfig
The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
serviceAccount() - Method in class com.google.genai.types.AuthConfigOidcConfig
The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc)
serviceAccount(String) - Method in class com.google.genai.types.AuthConfigGoogleServiceAccountConfig.Builder
 
serviceAccount(String) - Method in class com.google.genai.types.AuthConfigOauthConfig.Builder
 
serviceAccount(String) - Method in class com.google.genai.types.AuthConfigOidcConfig.Builder
 
sessionResumption() - Method in class com.google.genai.types.LiveClientSetup
Configures session resumption mechanism.
sessionResumption() - Method in class com.google.genai.types.LiveConnectConfig
Configures session resumption mechanism.
sessionResumption(SessionResumptionConfig) - Method in class com.google.genai.types.LiveClientSetup.Builder
 
sessionResumption(SessionResumptionConfig) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
SessionResumptionConfig - Class in com.google.genai.types
Configuration of session resumption mechanism.
SessionResumptionConfig() - Constructor for class com.google.genai.types.SessionResumptionConfig
 
SessionResumptionConfig.Builder - Class in com.google.genai.types
Builder for SessionResumptionConfig.
sessionResumptionUpdate() - Method in class com.google.genai.types.LiveServerMessage
Update of the session resumption state.
sessionResumptionUpdate(LiveServerSessionResumptionUpdate) - Method in class com.google.genai.types.LiveServerMessage.Builder
 
setDefaultBaseUrls(Optional<String>, Optional<String>) - Static method in class com.google.genai.Client
Overrides the base URLs for the Gemini API and Vertex AI API.
setup() - Method in class com.google.genai.types.LiveClientMessage
Message to be sent by the system when connecting to the API.
setup(LiveClientSetup) - Method in class com.google.genai.types.LiveClientMessage.Builder
 
setupComplete() - Method in class com.google.genai.types.LiveServerMessage
Sent in response to a `LiveClientSetup` message from the client.
setupComplete(LiveServerSetupComplete) - Method in class com.google.genai.types.LiveServerMessage.Builder
 
severity() - Method in class com.google.genai.types.SafetyRating
Output only.
severity(HarmSeverity) - Method in class com.google.genai.types.SafetyRating.Builder
 
severity(HarmSeverity.Known) - Method in class com.google.genai.types.SafetyRating.Builder
 
severity(String) - Method in class com.google.genai.types.SafetyRating.Builder
 
SEVERITY - Enum constant in enum com.google.genai.types.HarmBlockMethod.Known
The harm block method uses both probability and severity scores.
severityScore() - Method in class com.google.genai.types.SafetyRating
Output only.
severityScore(Float) - Method in class com.google.genai.types.SafetyRating.Builder
 
sha256Hash() - Method in class com.google.genai.types.File
Output only.
sha256Hash(String) - Method in class com.google.genai.types.File.Builder
 
shouldReturnHttpResponse() - Method in class com.google.genai.types.CreateFileConfig
If true, the raw HTTP response will be returned in the 'sdk_http_response' field.
shouldReturnHttpResponse(boolean) - Method in class com.google.genai.types.CreateFileConfig.Builder
 
silenceDurationMs() - Method in class com.google.genai.types.AutomaticActivityDetection
The required duration of detected non-speech (e.g. silence) before end-of-speech is committed.
silenceDurationMs(Integer) - Method in class com.google.genai.types.AutomaticActivityDetection.Builder
 
SILENT - Enum constant in enum com.google.genai.types.FunctionResponseScheduling.Known
Only add the result to the conversation context, do not interrupt or trigger generation.
similarityTopK() - Method in class com.google.genai.types.VertexRagStore
Optional.
similarityTopK(Integer) - Method in class com.google.genai.types.VertexRagStore.Builder
 
size() - Method in class com.google.genai.AsyncPager
Asynchronously returns the size of the current page.
size() - Method in class com.google.genai.Pager
Returns the size of the current page.
sizeBytes() - Method in class com.google.genai.types.File
Output only.
sizeBytes(Long) - Method in class com.google.genai.types.File.Builder
 
skipInApiMode() - Method in class com.google.genai.types.TestTableItem
When set to a reason string, this test will be skipped in the API mode.
skipInApiMode(String) - Method in class com.google.genai.types.TestTableItem.Builder
 
slidingWindow() - Method in class com.google.genai.types.ContextWindowCompressionConfig
Sliding window compression mechanism.
slidingWindow(SlidingWindow) - Method in class com.google.genai.types.ContextWindowCompressionConfig.Builder
 
SlidingWindow - Class in com.google.genai.types
Context window will be truncated by keeping only suffix of it.
SlidingWindow() - Constructor for class com.google.genai.types.SlidingWindow
 
SlidingWindow.Builder - Class in com.google.genai.types
Builder for SlidingWindow.
source() - Method in class com.google.genai.types.File
Output only.
source(FileSource) - Method in class com.google.genai.types.File.Builder
 
source(FileSource.Known) - Method in class com.google.genai.types.File.Builder
 
source(String) - Method in class com.google.genai.types.File.Builder
 
SOURCE_UNSPECIFIED - Enum constant in enum com.google.genai.types.FileSource.Known
 
speaker() - Method in class com.google.genai.types.SpeakerVoiceConfig
The name of the speaker to use.
speaker(String) - Method in class com.google.genai.types.SpeakerVoiceConfig.Builder
 
SpeakerVoiceConfig - Class in com.google.genai.types
The configuration for the speaker to use.
SpeakerVoiceConfig() - Constructor for class com.google.genai.types.SpeakerVoiceConfig
 
SpeakerVoiceConfig.Builder - Class in com.google.genai.types
Builder for SpeakerVoiceConfig.
speakerVoiceConfigs() - Method in class com.google.genai.types.MultiSpeakerVoiceConfig
The configuration for the speaker to use.
speakerVoiceConfigs(List<SpeakerVoiceConfig>) - Method in class com.google.genai.types.MultiSpeakerVoiceConfig.Builder
 
speechConfig() - Method in class com.google.genai.types.GenerateContentConfig
The speech generation configuration.
speechConfig() - Method in class com.google.genai.types.LiveConnectConfig
The speech generation configuration.
speechConfig(SpeechConfig) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
speechConfig(SpeechConfig) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
SpeechConfig - Class in com.google.genai.types
The speech generation configuration.
SpeechConfig() - Constructor for class com.google.genai.types.SpeechConfig
 
SpeechConfig.Builder - Class in com.google.genai.types
Builder for SpeechConfig.
SPII - Enum constant in enum com.google.genai.types.FinishReason.Known
Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).
START_OF_ACTIVITY_INTERRUPTS - Enum constant in enum com.google.genai.types.ActivityHandling.Known
If true, start of activity will interrupt the model's response (also called "barge in").
START_SENSITIVITY_HIGH - Enum constant in enum com.google.genai.types.StartSensitivity.Known
Automatic detection will detect the start of speech more often.
START_SENSITIVITY_LOW - Enum constant in enum com.google.genai.types.StartSensitivity.Known
Automatic detection will detect the start of speech less often.
START_SENSITIVITY_UNSPECIFIED - Enum constant in enum com.google.genai.types.StartSensitivity.Known
The default is START_SENSITIVITY_LOW.
startIndex() - Method in class com.google.genai.types.Citation
Output only.
startIndex() - Method in class com.google.genai.types.Segment
Output only.
startIndex(Integer) - Method in class com.google.genai.types.Citation.Builder
 
startIndex(Integer) - Method in class com.google.genai.types.Segment.Builder
 
startOffset() - Method in class com.google.genai.types.VideoMetadata
Optional.
startOffset(Duration) - Method in class com.google.genai.types.VideoMetadata.Builder
 
startOfSpeechSensitivity() - Method in class com.google.genai.types.AutomaticActivityDetection
Determines how likely speech is to be detected.
startOfSpeechSensitivity(StartSensitivity) - Method in class com.google.genai.types.AutomaticActivityDetection.Builder
 
startOfSpeechSensitivity(StartSensitivity.Known) - Method in class com.google.genai.types.AutomaticActivityDetection.Builder
 
startOfSpeechSensitivity(String) - Method in class com.google.genai.types.AutomaticActivityDetection.Builder
 
StartSensitivity - Class in com.google.genai.types
Start of speech sensitivity.
StartSensitivity(StartSensitivity.Known) - Constructor for class com.google.genai.types.StartSensitivity
 
StartSensitivity(String) - Constructor for class com.google.genai.types.StartSensitivity
 
StartSensitivity.Known - Enum in com.google.genai.types
Enum representing the known values for StartSensitivity.
startTime() - Method in class com.google.genai.types.Interval
The start time of the interval.
startTime(Instant) - Method in class com.google.genai.types.Interval.Builder
 
state() - Method in class com.google.genai.types.File
Output only.
state(FileState) - Method in class com.google.genai.types.File.Builder
 
state(FileState.Known) - Method in class com.google.genai.types.File.Builder
 
state(String) - Method in class com.google.genai.types.File.Builder
 
STATE_UNSPECIFIED - Enum constant in enum com.google.genai.types.FileState.Known
 
statistics() - Method in class com.google.genai.types.ContentEmbedding
Vertex API only.
statistics(ContentEmbeddingStatistics) - Method in class com.google.genai.types.ContentEmbedding.Builder
 
status() - Method in exception com.google.genai.errors.ApiException
Returns the status from the API response.
statusCode() - Method in class com.google.genai.types.ReplayResponse
 
statusCode(Integer) - Method in class com.google.genai.types.ReplayResponse.Builder
 
step() - Method in class com.google.genai.types.Checkpoint
The step of the checkpoint.
step(Long) - Method in class com.google.genai.types.Checkpoint.Builder
 
STOP - Enum constant in enum com.google.genai.types.FinishReason.Known
Token generation reached a natural stopping point or a configured stop sequence.
stopSequences() - Method in class com.google.genai.types.GenerateContentConfig
List of strings that tells the model to stop generating text if one of the strings is encountered in the response.
stopSequences() - Method in class com.google.genai.types.GenerationConfig
Optional.
stopSequences(List<String>) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
stopSequences(List<String>) - Method in class com.google.genai.types.GenerationConfig.Builder
 
STRING - Enum constant in enum com.google.genai.types.Type.Known
OpenAPI string type
styleDescription() - Method in class com.google.genai.types.StyleReferenceConfig
A text description of the style to use for the generated image.
styleDescription(String) - Method in class com.google.genai.types.StyleReferenceConfig.Builder
 
styleImageConfig() - Method in class com.google.genai.types.ReferenceImageAPI
Configuration for the style reference image.
styleImageConfig(StyleReferenceConfig) - Method in class com.google.genai.types.ReferenceImageAPI.Builder
 
StyleReferenceConfig - Class in com.google.genai.types
Configuration for a Style reference image.
StyleReferenceConfig() - Constructor for class com.google.genai.types.StyleReferenceConfig
 
StyleReferenceConfig.Builder - Class in com.google.genai.types
Builder for StyleReferenceConfig.
StyleReferenceImage - Class in com.google.genai.types
A style reference image.
StyleReferenceImage() - Constructor for class com.google.genai.types.StyleReferenceImage
 
StyleReferenceImage.Builder - Class in com.google.genai.types
Builder for StyleReferenceImage.
SUBJECT_REFERENCE_TYPE_UNSPECIFIED - Enum constant in enum com.google.genai.types.SubjectReferenceType.Known
 
SUBJECT_TYPE_ANIMAL - Enum constant in enum com.google.genai.types.SubjectReferenceType.Known
 
SUBJECT_TYPE_DEFAULT - Enum constant in enum com.google.genai.types.SubjectReferenceType.Known
 
SUBJECT_TYPE_PERSON - Enum constant in enum com.google.genai.types.SubjectReferenceType.Known
 
SUBJECT_TYPE_PRODUCT - Enum constant in enum com.google.genai.types.SubjectReferenceType.Known
 
subjectDescription() - Method in class com.google.genai.types.SubjectReferenceConfig
Subject description for the image.
subjectDescription(String) - Method in class com.google.genai.types.SubjectReferenceConfig.Builder
 
subjectImageConfig() - Method in class com.google.genai.types.ReferenceImageAPI
Configuration for the subject reference image.
subjectImageConfig(SubjectReferenceConfig) - Method in class com.google.genai.types.ReferenceImageAPI.Builder
 
SubjectReferenceConfig - Class in com.google.genai.types
Configuration for a Subject reference image.
SubjectReferenceConfig() - Constructor for class com.google.genai.types.SubjectReferenceConfig
 
SubjectReferenceConfig.Builder - Class in com.google.genai.types
Builder for SubjectReferenceConfig.
SubjectReferenceImage - Class in com.google.genai.types
A subject reference image.
SubjectReferenceImage() - Constructor for class com.google.genai.types.SubjectReferenceImage
 
SubjectReferenceImage.Builder - Class in com.google.genai.types
Builder for SubjectReferenceImage.
SubjectReferenceType - Class in com.google.genai.types
Enum representing the subject type of a subject reference image.
SubjectReferenceType(SubjectReferenceType.Known) - Constructor for class com.google.genai.types.SubjectReferenceType
 
SubjectReferenceType(String) - Constructor for class com.google.genai.types.SubjectReferenceType
 
SubjectReferenceType.Known - Enum in com.google.genai.types
Enum representing the known values for SubjectReferenceType.
subjectType() - Method in class com.google.genai.types.SubjectReferenceConfig
The subject type of a subject reference image.
subjectType(SubjectReferenceType) - Method in class com.google.genai.types.SubjectReferenceConfig.Builder
 
subjectType(SubjectReferenceType.Known) - Method in class com.google.genai.types.SubjectReferenceConfig.Builder
 
subjectType(String) - Method in class com.google.genai.types.SubjectReferenceConfig.Builder
 
supportedActions() - Method in class com.google.genai.types.Model
List of actions that are supported by the model.
supportedActions(List<String>) - Method in class com.google.genai.types.Model.Builder
 
systemInstruction() - Method in class com.google.genai.types.CountTokensConfig
Instructions for the model to steer it toward better performance.
systemInstruction() - Method in class com.google.genai.types.CreateCachedContentConfig
Developer set system instruction.
systemInstruction() - Method in class com.google.genai.types.GenerateContentConfig
Instructions for the model to steer it toward better performance.
systemInstruction() - Method in class com.google.genai.types.LiveClientSetup
The user provided system instructions for the model.
systemInstruction() - Method in class com.google.genai.types.LiveConnectConfig
The user provided system instructions for the model.
systemInstruction(Content) - Method in class com.google.genai.types.CountTokensConfig.Builder
 
systemInstruction(Content) - Method in class com.google.genai.types.CreateCachedContentConfig.Builder
 
systemInstruction(Content) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
systemInstruction(Content) - Method in class com.google.genai.types.LiveClientSetup.Builder
 
systemInstruction(Content) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 

T

targetTokens() - Method in class com.google.genai.types.SlidingWindow
Session reduction target -- how many tokens we should keep.
targetTokens(Long) - Method in class com.google.genai.types.SlidingWindow.Builder
 
taskType() - Method in class com.google.genai.types.EmbedContentConfig
Type of task for which the embedding will be used.
taskType(String) - Method in class com.google.genai.types.EmbedContentConfig.Builder
 
temperature() - Method in class com.google.genai.types.GenerateContentConfig
Value that controls the degree of randomness in token selection.
temperature() - Method in class com.google.genai.types.GenerationConfig
Optional.
temperature() - Method in class com.google.genai.types.LiveConnectConfig
Value that controls the degree of randomness in token selection.
temperature(Float) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
temperature(Float) - Method in class com.google.genai.types.GenerationConfig.Builder
 
temperature(Float) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
testMethod() - Method in class com.google.genai.types.TestTableFile
 
testMethod(String) - Method in class com.google.genai.types.TestTableFile.Builder
 
testTable() - Method in class com.google.genai.types.TestTableFile
 
testTable(List<TestTableItem>) - Method in class com.google.genai.types.TestTableFile.Builder
 
TestTableFile - Class in com.google.genai.types
None
TestTableFile() - Constructor for class com.google.genai.types.TestTableFile
 
TestTableFile.Builder - Class in com.google.genai.types
Builder for TestTableFile.
TestTableItem - Class in com.google.genai.types
None
TestTableItem() - Constructor for class com.google.genai.types.TestTableItem
 
TestTableItem.Builder - Class in com.google.genai.types
Builder for TestTableItem.
text() - Method in class com.google.genai.types.Content
Returns the concatenation of all text parts in this content.
text() - Method in class com.google.genai.types.GenerateContentResponse
Returns the concatenation of all text parts in the first candidate of the response.
text() - Method in class com.google.genai.types.GroundingChunkRetrievedContext
Text of the attribution.
text() - Method in class com.google.genai.types.LiveClientRealtimeInput
The realtime text input stream.
text() - Method in class com.google.genai.types.LiveSendRealtimeInputParameters
The realtime text input stream.
text() - Method in class com.google.genai.types.Part
Optional.
text() - Method in class com.google.genai.types.Segment
Output only.
text() - Method in class com.google.genai.types.Transcription
Transcription text.
text(String) - Method in class com.google.genai.types.GroundingChunkRetrievedContext.Builder
 
text(String) - Method in class com.google.genai.types.LiveClientRealtimeInput.Builder
 
text(String) - Method in class com.google.genai.types.LiveSendRealtimeInputParameters.Builder
 
text(String) - Method in class com.google.genai.types.Part.Builder
 
text(String) - Method in class com.google.genai.types.Segment.Builder
 
text(String) - Method in class com.google.genai.types.Transcription.Builder
 
TEXT - Enum constant in enum com.google.genai.types.MediaModality.Known
Plain text.
TEXT - Enum constant in enum com.google.genai.types.Modality.Known
Indicates the model should return text
textCount() - Method in class com.google.genai.types.CachedContentUsageMetadata
Number of text characters.
textCount(Integer) - Method in class com.google.genai.types.CachedContentUsageMetadata.Builder
 
thinkingBudget() - Method in class com.google.genai.types.ThinkingConfig
Indicates the thinking budget in tokens.
thinkingBudget(Integer) - Method in class com.google.genai.types.ThinkingConfig.Builder
 
thinkingConfig() - Method in class com.google.genai.types.GenerateContentConfig
The thinking features configuration.
thinkingConfig(ThinkingConfig) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
ThinkingConfig - Class in com.google.genai.types
The thinking features configuration.
ThinkingConfig() - Constructor for class com.google.genai.types.ThinkingConfig
 
ThinkingConfig.Builder - Class in com.google.genai.types
Builder for ThinkingConfig.
thought() - Method in class com.google.genai.types.Part
Indicates if the part is thought from the model.
thought(boolean) - Method in class com.google.genai.types.Part.Builder
 
thoughtsTokenCount() - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata
Output only.
thoughtsTokenCount() - Method in class com.google.genai.types.UsageMetadata
Number of tokens of thoughts for thinking models.
thoughtsTokenCount(Integer) - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
 
thoughtsTokenCount(Integer) - Method in class com.google.genai.types.UsageMetadata.Builder
 
threshold() - Method in class com.google.genai.types.SafetySetting
Required.
threshold(HarmBlockThreshold) - Method in class com.google.genai.types.SafetySetting.Builder
 
threshold(HarmBlockThreshold.Known) - Method in class com.google.genai.types.SafetySetting.Builder
 
threshold(String) - Method in class com.google.genai.types.SafetySetting.Builder
 
throwFromResponse(CloseableHttpResponse) - Static method in exception com.google.genai.errors.ApiException
Throws an ApiException from the response if the response is not a OK status.
timeLeft() - Method in class com.google.genai.types.LiveServerGoAway
The remaining time before the connection will be terminated as ABORTED.
timeLeft(Duration) - Method in class com.google.genai.types.LiveServerGoAway.Builder
 
timeout() - Method in class com.google.genai.types.HttpOptions
Timeout for the request in milliseconds.
timeout(Integer) - Method in class com.google.genai.types.HttpOptions.Builder
 
timeRangeFilter() - Method in class com.google.genai.types.GoogleSearch
Optional.
timeRangeFilter(Interval) - Method in class com.google.genai.types.GoogleSearch.Builder
 
title() - Method in class com.google.genai.types.Citation
Output only.
title() - Method in class com.google.genai.types.EmbedContentConfig
Title for the text.
title() - Method in class com.google.genai.types.GroundingChunkRetrievedContext
Title of the attribution.
title() - Method in class com.google.genai.types.GroundingChunkWeb
Title of the chunk.
title() - Method in class com.google.genai.types.Schema
Optional.
title(String) - Method in class com.google.genai.types.Citation.Builder
 
title(String) - Method in class com.google.genai.types.EmbedContentConfig.Builder
 
title(String) - Method in class com.google.genai.types.GroundingChunkRetrievedContext.Builder
 
title(String) - Method in class com.google.genai.types.GroundingChunkWeb.Builder
 
title(String) - Method in class com.google.genai.types.Schema.Builder
 
toBuilder() - Method in class com.google.genai.types.ActivityEnd
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ActivityStart
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ApiKeyConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.AudioTranscriptionConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.AuthConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.AuthConfigGoogleServiceAccountConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.AuthConfigHttpBasicAuthConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.AuthConfigOauthConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.AuthConfigOidcConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.AuthToken
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.AutomaticActivityDetection
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.AutomaticFunctionCallingConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.Blob
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.CachedContent
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.CachedContentUsageMetadata
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.Candidate
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.Checkpoint
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.Citation
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.CitationMetadata
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.CodeExecutionResult
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ComputeTokensConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ComputeTokensParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ComputeTokensResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.Content
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ContentEmbedding
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ContentEmbeddingStatistics
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ContextWindowCompressionConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ControlReferenceConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ControlReferenceImage
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.CountTokensConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.CountTokensParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.CountTokensResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.CreateAuthTokenConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.CreateAuthTokenParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.CreateCachedContentConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.CreateCachedContentParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.CreateFileConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.CreateFileParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.CreateFileResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.DeleteCachedContentConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.DeleteCachedContentParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.DeleteCachedContentResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.DeleteFileConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.DeleteFileParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.DeleteFileResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.DeleteModelConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.DeleteModelParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.DeleteModelResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.DownloadFileConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.DynamicRetrievalConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.EditImageConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.EditImageParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.EditImageResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.EmbedContentConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.EmbedContentMetadata
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.EmbedContentParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.EmbedContentResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.Endpoint
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.EnterpriseWebSearch
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ExecutableCode
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.FetchPredictOperationConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.FetchPredictOperationParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.File
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.FileData
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.FileStatus
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.FunctionCall
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.FunctionCallingConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.FunctionDeclaration
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.FunctionResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GenerateContentConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GenerateContentParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GenerateContentResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GenerateContentResponsePromptFeedback
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GeneratedImage
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GeneratedVideo
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GenerateImagesConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GenerateImagesParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GenerateImagesResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GenerateVideosConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GenerateVideosOperation
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GenerateVideosParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GenerateVideosResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GenerationConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GenerationConfigRoutingConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GenerationConfigRoutingConfigAutoRoutingMode
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GenerationConfigRoutingConfigManualRoutingMode
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GetCachedContentConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GetCachedContentParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GetFileConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GetFileParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GetModelConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GetModelParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GetOperationConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GetOperationParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GoogleMaps
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GoogleSearch
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GoogleSearchRetrieval
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GoogleTypeDate
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GroundingChunk
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GroundingChunkRetrievedContext
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GroundingChunkWeb
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GroundingMetadata
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.GroundingSupport
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.HttpOptions
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.HttpResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.Image
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.Interval
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LatLng
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ListCachedContentsConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ListCachedContentsParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ListCachedContentsResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ListFilesConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ListFilesParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ListFilesResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ListModelsConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ListModelsParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ListModelsResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveClientContent
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveClientMessage
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveClientRealtimeInput
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveClientSetup
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveClientToolResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveConnectConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveConnectParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveConstrainedParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveEphemeralParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveSendClientContentParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveSendRealtimeInputParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveSendToolResponseParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveServerContent
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveServerGoAway
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveServerMessage
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveServerSessionResumptionUpdate
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveServerSetupComplete
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveServerToolCall
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LiveServerToolCallCancellation
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LogprobsResult
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LogprobsResultCandidate
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.LogprobsResultTopCandidates
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.MaskReferenceConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.MaskReferenceImage
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ModalityTokenCount
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.Model
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ModelSelectionConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.MultiSpeakerVoiceConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.Part
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.PrebuiltVoiceConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ProactivityConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.RagRetrievalConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.RagRetrievalConfigFilter
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.RagRetrievalConfigHybridSearch
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.RagRetrievalConfigRanking
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.RagRetrievalConfigRankingLlmRanker
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.RagRetrievalConfigRankingRankService
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.RawReferenceImage
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.RealtimeInputConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ReferenceImageAPI
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ReplayFile
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ReplayInteraction
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ReplayRequest
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ReplayResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.Retrieval
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.RetrievalConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.RetrievalMetadata
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.SafetyAttributes
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.SafetyRating
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.SafetySetting
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.Schema
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.SearchEntryPoint
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.Segment
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.SessionResumptionConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.SlidingWindow
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.SpeakerVoiceConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.SpeechConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.StyleReferenceConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.StyleReferenceImage
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.SubjectReferenceConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.SubjectReferenceImage
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.TestTableFile
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.TestTableItem
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ThinkingConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.TokensInfo
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.Tool
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ToolCodeExecution
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.ToolConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.Transcription
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.TunedModelInfo
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.UpdateModelConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.UpdateModelParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.UploadFileConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.UpscaleImageAPIConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.UpscaleImageAPIParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.UpscaleImageConfig
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.UpscaleImageParameters
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.UpscaleImageResponse
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.UrlContext
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.UrlContextMetadata
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.UrlMetadata
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.UsageMetadata
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.VertexAISearch
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.VertexRagStore
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.VertexRagStoreRagResource
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.Video
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.VideoMetadata
Creates a builder with the same values as this instance.
toBuilder() - Method in class com.google.genai.types.VoiceConfig
Creates a builder with the same values as this instance.
toJson() - Method in class com.google.genai.JsonSerializable
Serializes the instance to a Json string.
token() - Method in class com.google.genai.types.LogprobsResultCandidate
The candidate's token string value.
token(String) - Method in class com.google.genai.types.LogprobsResultCandidate.Builder
 
tokenCount() - Method in class com.google.genai.types.Candidate
Number of tokens for this candidate.
tokenCount() - Method in class com.google.genai.types.ContentEmbeddingStatistics
Vertex API only.
tokenCount() - Method in class com.google.genai.types.ModalityTokenCount
Number of tokens.
tokenCount(Float) - Method in class com.google.genai.types.ContentEmbeddingStatistics.Builder
 
tokenCount(Integer) - Method in class com.google.genai.types.Candidate.Builder
 
tokenCount(Integer) - Method in class com.google.genai.types.ModalityTokenCount.Builder
 
tokenId() - Method in class com.google.genai.types.LogprobsResultCandidate
The candidate's token id value.
tokenId(Integer) - Method in class com.google.genai.types.LogprobsResultCandidate.Builder
 
tokenIds() - Method in class com.google.genai.types.TokensInfo
A list of token ids from the input.
tokenIds(List<Long>) - Method in class com.google.genai.types.TokensInfo.Builder
 
tokens() - Method in class com.google.genai.types.TokensInfo
A list of tokens from the input.
tokens(List<byte[]>) - Method in class com.google.genai.types.TokensInfo.Builder
 
tokensInfo() - Method in class com.google.genai.types.ComputeTokensResponse
Lists of tokens info from the input.
tokensInfo(List<TokensInfo>) - Method in class com.google.genai.types.ComputeTokensResponse.Builder
 
TokensInfo - Class in com.google.genai.types
Tokens info with a list of tokens and the corresponding list of token ids.
TokensInfo() - Constructor for class com.google.genai.types.TokensInfo
 
TokensInfo.Builder - Class in com.google.genai.types
Builder for TokensInfo.
Tool - Class in com.google.genai.types
Tool details of a tool that the model may use to generate a response.
Tool() - Constructor for class com.google.genai.types.Tool
 
Tool.Builder - Class in com.google.genai.types
Builder for Tool.
toolCall() - Method in class com.google.genai.types.LiveServerMessage
Request for the client to execute the `function_calls` and return the responses with the matching `id`s.
toolCall(LiveServerToolCall) - Method in class com.google.genai.types.LiveServerMessage.Builder
 
toolCallCancellation() - Method in class com.google.genai.types.LiveServerMessage
Notification for the client that a previously issued `ToolCallMessage` with the specified `id`s should have been not executed and should be cancelled.
toolCallCancellation(LiveServerToolCallCancellation) - Method in class com.google.genai.types.LiveServerMessage.Builder
 
ToolCodeExecution - Class in com.google.genai.types
Tool that executes code generated by the model, and automatically returns the result to the model.
ToolCodeExecution() - Constructor for class com.google.genai.types.ToolCodeExecution
 
ToolCodeExecution.Builder - Class in com.google.genai.types
Builder for ToolCodeExecution.
toolConfig() - Method in class com.google.genai.types.CreateCachedContentConfig
Configuration for the tools to use.
toolConfig() - Method in class com.google.genai.types.GenerateContentConfig
Associates model output to a specific function call.
toolConfig(ToolConfig) - Method in class com.google.genai.types.CreateCachedContentConfig.Builder
 
toolConfig(ToolConfig) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
ToolConfig - Class in com.google.genai.types
Tool config.
ToolConfig() - Constructor for class com.google.genai.types.ToolConfig
 
ToolConfig.Builder - Class in com.google.genai.types
Builder for ToolConfig.
toolResponse() - Method in class com.google.genai.types.LiveClientMessage
Response to a `ToolCallMessage` received from the server.
toolResponse(LiveClientToolResponse) - Method in class com.google.genai.types.LiveClientMessage.Builder
 
tools() - Method in class com.google.genai.types.CountTokensConfig
Code that enables the system to interact with external systems to perform an action outside of the knowledge and scope of the model.
tools() - Method in class com.google.genai.types.CreateCachedContentConfig
A list of `Tools` the model may use to generate the next response.
tools() - Method in class com.google.genai.types.GenerateContentConfig
Code that enables the system to interact with external systems to perform an action outside of the knowledge and scope of the model.
tools() - Method in class com.google.genai.types.LiveClientSetup
A list of `Tools` the model may use to generate the next response.
tools() - Method in class com.google.genai.types.LiveConnectConfig
A list of `Tools` the model may use to generate the next response.
tools(List<Tool>) - Method in class com.google.genai.types.CountTokensConfig.Builder
 
tools(List<Tool>) - Method in class com.google.genai.types.CreateCachedContentConfig.Builder
 
tools(List<Tool>) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
tools(List<Tool>) - Method in class com.google.genai.types.LiveClientSetup.Builder
 
tools(List<Tool>) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
toolUsePromptTokenCount() - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata
Output only.
toolUsePromptTokenCount() - Method in class com.google.genai.types.UsageMetadata
Number of tokens present in tool-use prompt(s).
toolUsePromptTokenCount(Integer) - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
 
toolUsePromptTokenCount(Integer) - Method in class com.google.genai.types.UsageMetadata.Builder
 
toolUsePromptTokensDetails() - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata
Output only.
toolUsePromptTokensDetails() - Method in class com.google.genai.types.UsageMetadata
List of modalities that were processed in the tool-use prompt.
toolUsePromptTokensDetails(List<ModalityTokenCount>) - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
 
toolUsePromptTokensDetails(List<ModalityTokenCount>) - Method in class com.google.genai.types.UsageMetadata.Builder
 
topCandidates() - Method in class com.google.genai.types.LogprobsResult
Length = total number of decoding steps.
topCandidates(List<LogprobsResultTopCandidates>) - Method in class com.google.genai.types.LogprobsResult.Builder
 
topK() - Method in class com.google.genai.types.GenerateContentConfig
For each token selection step, the ``top_k`` tokens with the highest probabilities are sampled.
topK() - Method in class com.google.genai.types.GenerationConfig
Optional.
topK() - Method in class com.google.genai.types.LiveConnectConfig
For each token selection step, the ``top_k`` tokens with the highest probabilities are sampled.
topK() - Method in class com.google.genai.types.RagRetrievalConfig
Optional.
topK(Float) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
topK(Float) - Method in class com.google.genai.types.GenerationConfig.Builder
 
topK(Float) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
topK(Integer) - Method in class com.google.genai.types.RagRetrievalConfig.Builder
 
topP() - Method in class com.google.genai.types.GenerateContentConfig
Tokens are selected from the most to least probable until the sum of their probabilities equals this value.
topP() - Method in class com.google.genai.types.GenerationConfig
Optional.
topP() - Method in class com.google.genai.types.LiveConnectConfig
Tokens are selected from the most to least probable until the sum of their probabilities equals this value.
topP(Float) - Method in class com.google.genai.types.GenerateContentConfig.Builder
 
topP(Float) - Method in class com.google.genai.types.GenerationConfig.Builder
 
topP(Float) - Method in class com.google.genai.types.LiveConnectConfig.Builder
 
toReferenceImageAPI() - Method in class com.google.genai.types.ControlReferenceImage
 
toReferenceImageAPI() - Method in class com.google.genai.types.MaskReferenceImage
 
toReferenceImageAPI() - Method in class com.google.genai.types.RawReferenceImage
 
toReferenceImageAPI() - Method in interface com.google.genai.types.ReferenceImage
 
toReferenceImageAPI() - Method in class com.google.genai.types.StyleReferenceImage
 
toReferenceImageAPI() - Method in class com.google.genai.types.SubjectReferenceImage
 
toString() - Method in class com.google.genai.types.ActivityHandling
 
toString() - Method in class com.google.genai.types.AuthType
 
toString() - Method in class com.google.genai.types.Behavior
 
toString() - Method in class com.google.genai.types.BlockedReason
 
toString() - Method in class com.google.genai.types.ControlReferenceType
 
toString() - Method in class com.google.genai.types.DynamicRetrievalConfigMode
 
toString() - Method in class com.google.genai.types.EditMode
 
toString() - Method in class com.google.genai.types.EndSensitivity
 
toString() - Method in class com.google.genai.types.FeatureSelectionPreference
 
toString() - Method in class com.google.genai.types.FileSource
 
toString() - Method in class com.google.genai.types.FileState
 
toString() - Method in class com.google.genai.types.FinishReason
 
toString() - Method in class com.google.genai.types.FunctionCallingConfigMode
 
toString() - Method in class com.google.genai.types.FunctionResponseScheduling
 
toString() - Method in class com.google.genai.types.HarmBlockMethod
 
toString() - Method in class com.google.genai.types.HarmBlockThreshold
 
toString() - Method in class com.google.genai.types.HarmCategory
 
toString() - Method in class com.google.genai.types.HarmProbability
 
toString() - Method in class com.google.genai.types.HarmSeverity
 
toString() - Method in class com.google.genai.types.ImagePromptLanguage
 
toString() - Method in class com.google.genai.types.Language
 
toString() - Method in class com.google.genai.types.MaskReferenceMode
 
toString() - Method in class com.google.genai.types.MediaModality
 
toString() - Method in class com.google.genai.types.MediaResolution
 
toString() - Method in class com.google.genai.types.Modality
 
toString() - Method in class com.google.genai.types.Mode
 
toString() - Method in class com.google.genai.types.ModelRoutingPreference
 
toString() - Method in class com.google.genai.types.Outcome
 
toString() - Method in class com.google.genai.types.PersonGeneration
 
toString() - Method in class com.google.genai.types.SafetyFilterLevel
 
toString() - Method in class com.google.genai.types.StartSensitivity
 
toString() - Method in class com.google.genai.types.SubjectReferenceType
 
toString() - Method in class com.google.genai.types.TrafficType
 
toString() - Method in class com.google.genai.types.TurnCoverage
 
toString() - Method in class com.google.genai.types.Type
 
toString() - Method in class com.google.genai.types.UrlRetrievalStatus
 
totalTokenCount() - Method in class com.google.genai.types.CachedContentUsageMetadata
Total number of tokens that the cached content consumes.
totalTokenCount() - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata
Total token count for prompt, response candidates, and tool-use prompts (if present).
totalTokenCount() - Method in class com.google.genai.types.UsageMetadata
Total token count for prompt, response candidates, and tool-use prompts(if present).
totalTokenCount(Integer) - Method in class com.google.genai.types.CachedContentUsageMetadata.Builder
 
totalTokenCount(Integer) - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
 
totalTokenCount(Integer) - Method in class com.google.genai.types.UsageMetadata.Builder
 
totalTokens() - Method in class com.google.genai.types.CountTokensResponse
Total number of tokens.
totalTokens(Integer) - Method in class com.google.genai.types.CountTokensResponse.Builder
 
TRAFFIC_TYPE_UNSPECIFIED - Enum constant in enum com.google.genai.types.TrafficType.Known
Unspecified request traffic type.
trafficType() - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata
Output only.
trafficType() - Method in class com.google.genai.types.UsageMetadata
Traffic type.
trafficType(TrafficType) - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
 
trafficType(TrafficType) - Method in class com.google.genai.types.UsageMetadata.Builder
 
trafficType(TrafficType.Known) - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
 
trafficType(TrafficType.Known) - Method in class com.google.genai.types.UsageMetadata.Builder
 
trafficType(String) - Method in class com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
 
trafficType(String) - Method in class com.google.genai.types.UsageMetadata.Builder
 
TrafficType - Class in com.google.genai.types
Output only.
TrafficType(TrafficType.Known) - Constructor for class com.google.genai.types.TrafficType
 
TrafficType(String) - Constructor for class com.google.genai.types.TrafficType
 
TrafficType.Known - Enum in com.google.genai.types
Enum representing the known values for TrafficType.
Transcription - Class in com.google.genai.types
Audio transcription in Server Conent.
Transcription() - Constructor for class com.google.genai.types.Transcription
 
Transcription.Builder - Class in com.google.genai.types
Builder for Transcription.
transparent() - Method in class com.google.genai.types.SessionResumptionConfig
If set the server will send `last_consumed_client_message_index` in the `session_resumption_update` messages to allow for transparent reconnections.
transparent(boolean) - Method in class com.google.genai.types.SessionResumptionConfig.Builder
 
triggerTokens() - Method in class com.google.genai.types.ContextWindowCompressionConfig
Number of tokens (before running turn) that triggers context window compression mechanism.
triggerTokens(Long) - Method in class com.google.genai.types.ContextWindowCompressionConfig.Builder
 
truncated() - Method in class com.google.genai.types.ContentEmbeddingStatistics
Vertex API only.
truncated(boolean) - Method in class com.google.genai.types.ContentEmbeddingStatistics.Builder
 
ttl() - Method in class com.google.genai.types.CreateCachedContentConfig
The TTL for this resource.
ttl(Duration) - Method in class com.google.genai.types.CreateCachedContentConfig.Builder
 
tunedModelInfo() - Method in class com.google.genai.types.Model
Information about the tuned model from the base model.
tunedModelInfo(TunedModelInfo) - Method in class com.google.genai.types.Model.Builder
 
TunedModelInfo - Class in com.google.genai.types
A tuned machine learning model.
TunedModelInfo() - Constructor for class com.google.genai.types.TunedModelInfo
 
TunedModelInfo.Builder - Class in com.google.genai.types
Builder for TunedModelInfo.
TURN_COVERAGE_UNSPECIFIED - Enum constant in enum com.google.genai.types.TurnCoverage.Known
If unspecified, the default behavior is `TURN_INCLUDES_ONLY_ACTIVITY`.
TURN_INCLUDES_ALL_INPUT - Enum constant in enum com.google.genai.types.TurnCoverage.Known
The users turn includes all realtime input since the last turn, including inactivity (e.g.
TURN_INCLUDES_ONLY_ACTIVITY - Enum constant in enum com.google.genai.types.TurnCoverage.Known
The users turn only includes activity since the last turn, excluding inactivity (e.g. silence on the audio stream).
turnComplete() - Method in class com.google.genai.types.LiveClientContent
If true, indicates that the server content generation should start with the currently accumulated prompt.
turnComplete() - Method in class com.google.genai.types.LiveSendClientContentParameters
If true, indicates that the server content generation should start with the currently accumulated prompt.
turnComplete() - Method in class com.google.genai.types.LiveServerContent
If true, indicates that the model is done generating.
turnComplete(boolean) - Method in class com.google.genai.types.LiveClientContent.Builder
 
turnComplete(boolean) - Method in class com.google.genai.types.LiveSendClientContentParameters.Builder
 
turnComplete(boolean) - Method in class com.google.genai.types.LiveServerContent.Builder
 
turnCoverage() - Method in class com.google.genai.types.RealtimeInputConfig
Defines which input is included in the user's turn.
turnCoverage(TurnCoverage) - Method in class com.google.genai.types.RealtimeInputConfig.Builder
 
turnCoverage(TurnCoverage.Known) - Method in class com.google.genai.types.RealtimeInputConfig.Builder
 
turnCoverage(String) - Method in class com.google.genai.types.RealtimeInputConfig.Builder
 
TurnCoverage - Class in com.google.genai.types
Options about which input is included in the user's turn.
TurnCoverage(TurnCoverage.Known) - Constructor for class com.google.genai.types.TurnCoverage
 
TurnCoverage(String) - Constructor for class com.google.genai.types.TurnCoverage
 
TurnCoverage.Known - Enum in com.google.genai.types
Enum representing the known values for TurnCoverage.
turns() - Method in class com.google.genai.types.LiveClientContent
The content appended to the current conversation with the model.
turns() - Method in class com.google.genai.types.LiveSendClientContentParameters
Client content to send to the session.
turns(List<Content>) - Method in class com.google.genai.types.LiveClientContent.Builder
 
turns(List<Content>) - Method in class com.google.genai.types.LiveSendClientContentParameters.Builder
 
type() - Method in class com.google.genai.types.Schema
Optional.
type(Type) - Method in class com.google.genai.types.Schema.Builder
 
type(Type.Known) - Method in class com.google.genai.types.Schema.Builder
 
type(String) - Method in class com.google.genai.types.Schema.Builder
 
Type - Class in com.google.genai.types
Optional.
Type(Type.Known) - Constructor for class com.google.genai.types.Type
 
Type(String) - Constructor for class com.google.genai.types.Type
 
TYPE_UNSPECIFIED - Enum constant in enum com.google.genai.types.Type.Known
Not specified, should not be used.
Type.Known - Enum in com.google.genai.types
Enum representing the known values for Type.

U

UNKNOWN - Enum constant in enum com.google.genai.types.ModelRoutingPreference.Known
 
UNSPECIFIED - Enum constant in enum com.google.genai.types.Behavior.Known
This value is unused.
update(String, UpdateModelConfig) - Method in class com.google.genai.AsyncModels
Asynchronously updates a tuned model by its name.
update(String, UpdateModelConfig) - Method in class com.google.genai.Models
Updates a tuned model by its name.
UpdateModelConfig - Class in com.google.genai.types
Configuration for updating a tuned model.
UpdateModelConfig() - Constructor for class com.google.genai.types.UpdateModelConfig
 
UpdateModelConfig.Builder - Class in com.google.genai.types
Builder for UpdateModelConfig.
UpdateModelParameters - Class in com.google.genai.types
Configuration for updating a tuned model.
UpdateModelParameters() - Constructor for class com.google.genai.types.UpdateModelParameters
 
UpdateModelParameters.Builder - Class in com.google.genai.types
Builder for UpdateModelParameters.
updateTime() - Method in class com.google.genai.types.CachedContent
When the cache entry was last updated in UTC time.
updateTime() - Method in class com.google.genai.types.File
Output only.
updateTime() - Method in class com.google.genai.types.TunedModelInfo
Date and time when the base model was last updated.
updateTime(Instant) - Method in class com.google.genai.types.CachedContent.Builder
 
updateTime(Instant) - Method in class com.google.genai.types.File.Builder
 
updateTime(Instant) - Method in class com.google.genai.types.TunedModelInfo.Builder
 
upload(byte[], UploadFileConfig) - Method in class com.google.genai.AsyncFiles
Asynchronously uploads a bytes array as a file to the GenAI API.
upload(byte[], UploadFileConfig) - Method in class com.google.genai.Files
Uploads a file to the API.
upload(File, UploadFileConfig) - Method in class com.google.genai.AsyncFiles
Asynchronously uploads a file to the GenAI API.
upload(File, UploadFileConfig) - Method in class com.google.genai.Files
Uploads a file to the API.
upload(InputStream, long, UploadFileConfig) - Method in class com.google.genai.AsyncFiles
Asynchronously uploads a stream as a file to the GenAI API.
upload(InputStream, long, UploadFileConfig) - Method in class com.google.genai.Files
Uploads a file to the API.
upload(String, UploadFileConfig) - Method in class com.google.genai.AsyncFiles
Asynchronously uploads a file by its path to the GenAI API.
upload(String, UploadFileConfig) - Method in class com.google.genai.Files
Uploads a file to the API.
UPLOADED - Enum constant in enum com.google.genai.types.FileSource.Known
 
UploadFileConfig - Class in com.google.genai.types
Used to override the default configuration.
UploadFileConfig() - Constructor for class com.google.genai.types.UploadFileConfig
 
UploadFileConfig.Builder - Class in com.google.genai.types
Builder for UploadFileConfig.
upscaleFactor() - Method in class com.google.genai.types.UpscaleImageAPIParameters
The factor to upscale the image (x2 or x4).
upscaleFactor() - Method in class com.google.genai.types.UpscaleImageParameters
The factor to upscale the image (x2 or x4).
upscaleFactor(String) - Method in class com.google.genai.types.UpscaleImageAPIParameters.Builder
 
upscaleFactor(String) - Method in class com.google.genai.types.UpscaleImageParameters.Builder
 
upscaleImage(String, Image, String, UpscaleImageConfig) - Method in class com.google.genai.AsyncModels
Asynchronously upscales an image given a GenAI model and an image and an upscale factor.
upscaleImage(String, Image, String, UpscaleImageConfig) - Method in class com.google.genai.Models
Upscales an image given a GenAI model and an image and an upscale factor.
UpscaleImageAPIConfig - Class in com.google.genai.types
Internal API config for UpscaleImage.
UpscaleImageAPIConfig() - Constructor for class com.google.genai.types.UpscaleImageAPIConfig
 
UpscaleImageAPIConfig.Builder - Class in com.google.genai.types
Builder for UpscaleImageAPIConfig.
UpscaleImageAPIParameters - Class in com.google.genai.types
API parameters for UpscaleImage.
UpscaleImageAPIParameters() - Constructor for class com.google.genai.types.UpscaleImageAPIParameters
 
UpscaleImageAPIParameters.Builder - Class in com.google.genai.types
Builder for UpscaleImageAPIParameters.
UpscaleImageConfig - Class in com.google.genai.types
Configuration for upscaling an image.
UpscaleImageConfig() - Constructor for class com.google.genai.types.UpscaleImageConfig
 
UpscaleImageConfig.Builder - Class in com.google.genai.types
Builder for UpscaleImageConfig.
UpscaleImageParameters - Class in com.google.genai.types
User-facing config UpscaleImageParameters.
UpscaleImageParameters() - Constructor for class com.google.genai.types.UpscaleImageParameters
 
UpscaleImageParameters.Builder - Class in com.google.genai.types
Builder for UpscaleImageParameters.
UpscaleImageResponse - Class in com.google.genai.types
None
UpscaleImageResponse() - Constructor for class com.google.genai.types.UpscaleImageResponse
 
UpscaleImageResponse.Builder - Class in com.google.genai.types
Builder for UpscaleImageResponse.
uri() - Method in class com.google.genai.types.Citation
Output only.
uri() - Method in class com.google.genai.types.File
Output only.
uri() - Method in class com.google.genai.types.GroundingChunkRetrievedContext
URI reference of the attribution.
uri() - Method in class com.google.genai.types.GroundingChunkWeb
URI reference of the chunk.
uri() - Method in class com.google.genai.types.Video
Path to another storage.
uri(String) - Method in class com.google.genai.types.Citation.Builder
 
uri(String) - Method in class com.google.genai.types.File.Builder
 
uri(String) - Method in class com.google.genai.types.GroundingChunkRetrievedContext.Builder
 
uri(String) - Method in class com.google.genai.types.GroundingChunkWeb.Builder
 
uri(String) - Method in class com.google.genai.types.Video.Builder
 
url() - Method in class com.google.genai.types.ReplayRequest
 
url(String) - Method in class com.google.genai.types.ReplayRequest.Builder
 
URL_RETRIEVAL_STATUS_ERROR - Enum constant in enum com.google.genai.types.UrlRetrievalStatus.Known
Url retrieval is failed due to error.
URL_RETRIEVAL_STATUS_SUCCESS - Enum constant in enum com.google.genai.types.UrlRetrievalStatus.Known
Url retrieval is successful.
URL_RETRIEVAL_STATUS_UNSPECIFIED - Enum constant in enum com.google.genai.types.UrlRetrievalStatus.Known
Default value.
urlContext() - Method in class com.google.genai.types.Tool
Optional.
urlContext(UrlContext) - Method in class com.google.genai.types.Tool.Builder
 
UrlContext - Class in com.google.genai.types
Tool to support URL context retrieval.
UrlContext() - Constructor for class com.google.genai.types.UrlContext
 
UrlContext.Builder - Class in com.google.genai.types
Builder for UrlContext.
urlContextMetadata() - Method in class com.google.genai.types.Candidate
Metadata related to url context retrieval tool.
urlContextMetadata() - Method in class com.google.genai.types.LiveServerContent
Metadata related to url context retrieval tool.
urlContextMetadata(UrlContextMetadata) - Method in class com.google.genai.types.Candidate.Builder
 
urlContextMetadata(UrlContextMetadata) - Method in class com.google.genai.types.LiveServerContent.Builder
 
UrlContextMetadata - Class in com.google.genai.types
Metadata related to url context retrieval tool.
UrlContextMetadata() - Constructor for class com.google.genai.types.UrlContextMetadata
 
UrlContextMetadata.Builder - Class in com.google.genai.types
Builder for UrlContextMetadata.
urlMetadata() - Method in class com.google.genai.types.UrlContextMetadata
List of url context.
urlMetadata(List<UrlMetadata>) - Method in class com.google.genai.types.UrlContextMetadata.Builder
 
UrlMetadata - Class in com.google.genai.types
Context for a single url retrieval.
UrlMetadata() - Constructor for class com.google.genai.types.UrlMetadata
 
UrlMetadata.Builder - Class in com.google.genai.types
Builder for UrlMetadata.
urlRetrievalStatus() - Method in class com.google.genai.types.UrlMetadata
Status of the url retrieval.
urlRetrievalStatus(UrlRetrievalStatus) - Method in class com.google.genai.types.UrlMetadata.Builder
 
urlRetrievalStatus(UrlRetrievalStatus.Known) - Method in class com.google.genai.types.UrlMetadata.Builder
 
urlRetrievalStatus(String) - Method in class com.google.genai.types.UrlMetadata.Builder
 
UrlRetrievalStatus - Class in com.google.genai.types
Status of the url retrieval.
UrlRetrievalStatus(UrlRetrievalStatus.Known) - Constructor for class com.google.genai.types.UrlRetrievalStatus
 
UrlRetrievalStatus(String) - Constructor for class com.google.genai.types.UrlRetrievalStatus
 
UrlRetrievalStatus.Known - Enum in com.google.genai.types
Enum representing the known values for UrlRetrievalStatus.
usageMetadata() - Method in class com.google.genai.types.CachedContent
Metadata on the usage of the cached content.
usageMetadata() - Method in class com.google.genai.types.GenerateContentResponse
Usage metadata about the response(s).
usageMetadata() - Method in class com.google.genai.types.LiveServerMessage
Usage metadata about model response(s).
usageMetadata(CachedContentUsageMetadata) - Method in class com.google.genai.types.CachedContent.Builder
 
usageMetadata(GenerateContentResponseUsageMetadata) - Method in class com.google.genai.types.GenerateContentResponse.Builder
 
usageMetadata(UsageMetadata) - Method in class com.google.genai.types.LiveServerMessage.Builder
 
UsageMetadata - Class in com.google.genai.types
Usage metadata about response(s).
UsageMetadata() - Constructor for class com.google.genai.types.UsageMetadata
 
UsageMetadata.Builder - Class in com.google.genai.types
Builder for UsageMetadata.
uses() - Method in class com.google.genai.types.CreateAuthTokenConfig
The number of times the token can be used.
uses(Integer) - Method in class com.google.genai.types.CreateAuthTokenConfig.Builder
 

V

valueOf(String) - Static method in enum com.google.genai.types.ActivityHandling.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.AuthType.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.Behavior.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.BlockedReason.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.ControlReferenceType.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.DynamicRetrievalConfigMode.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.EditMode.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.EndSensitivity.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.FeatureSelectionPreference.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.FileSource.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.FileState.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.FinishReason.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.FunctionCallingConfigMode.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.FunctionResponseScheduling.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.HarmBlockMethod.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.HarmBlockThreshold.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.HarmCategory.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.HarmProbability.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.HarmSeverity.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.ImagePromptLanguage.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.Language.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.MaskReferenceMode.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.MediaModality.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.MediaResolution.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.Modality.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.Mode.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.ModelRoutingPreference.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.Outcome.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.PersonGeneration.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.SafetyFilterLevel.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.StartSensitivity.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.SubjectReferenceType.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.TrafficType.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.TurnCoverage.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.Type.Known
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.genai.types.UrlRetrievalStatus.Known
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.google.genai.types.ActivityHandling.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.AuthType.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.Behavior.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.BlockedReason.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Method in class com.google.genai.types.ContentEmbedding
A list of floats representing an embedding.
values() - Static method in enum com.google.genai.types.ControlReferenceType.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.DynamicRetrievalConfigMode.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.EditMode.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.EndSensitivity.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.FeatureSelectionPreference.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.FileSource.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.FileState.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.FinishReason.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.FunctionCallingConfigMode.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.FunctionResponseScheduling.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.HarmBlockMethod.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.HarmBlockThreshold.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.HarmCategory.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.HarmProbability.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.HarmSeverity.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.ImagePromptLanguage.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.Language.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.MaskReferenceMode.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.MediaModality.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.MediaResolution.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.Modality.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.Mode.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.ModelRoutingPreference.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.Outcome.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.PersonGeneration.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.SafetyFilterLevel.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.StartSensitivity.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.SubjectReferenceType.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.TrafficType.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.TurnCoverage.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.Type.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.genai.types.UrlRetrievalStatus.Known
Returns an array containing the constants of this enum type, in the order they are declared.
values(List<Float>) - Method in class com.google.genai.types.ContentEmbedding.Builder
 
vectorDistanceThreshold() - Method in class com.google.genai.types.RagRetrievalConfigFilter
Optional.
vectorDistanceThreshold() - Method in class com.google.genai.types.VertexRagStore
Optional.
vectorDistanceThreshold(Double) - Method in class com.google.genai.types.RagRetrievalConfigFilter.Builder
 
vectorDistanceThreshold(Double) - Method in class com.google.genai.types.VertexRagStore.Builder
 
vectorSimilarityThreshold() - Method in class com.google.genai.types.RagRetrievalConfigFilter
Optional.
vectorSimilarityThreshold(Double) - Method in class com.google.genai.types.RagRetrievalConfigFilter.Builder
 
version() - Method in class com.google.genai.types.Model
Version ID of the model.
version(String) - Method in class com.google.genai.types.Model.Builder
 
vertexAI() - Method in class com.google.genai.HttpApiClient
Returns whether the client is using Vertex AI APIs.
vertexAI() - Method in class com.google.genai.Client
Returns whether the client is using Vertex AI APIs.
vertexAI(boolean) - Method in class com.google.genai.Client.Builder
Sets whether to use Vertex AI APIs.
vertexAiSearch() - Method in class com.google.genai.types.Retrieval
Set to use data source powered by Vertex AI Search.
vertexAiSearch(VertexAISearch) - Method in class com.google.genai.types.Retrieval.Builder
 
VertexAISearch - Class in com.google.genai.types
Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive.
VertexAISearch() - Constructor for class com.google.genai.types.VertexAISearch
 
VertexAISearch.Builder - Class in com.google.genai.types
Builder for VertexAISearch.
vertexRagStore() - Method in class com.google.genai.types.Retrieval
Set to use data source powered by Vertex RAG store.
vertexRagStore(VertexRagStore) - Method in class com.google.genai.types.Retrieval.Builder
 
VertexRagStore - Class in com.google.genai.types
Retrieve from Vertex RAG Store for grounding.
VertexRagStore() - Constructor for class com.google.genai.types.VertexRagStore
 
VertexRagStore.Builder - Class in com.google.genai.types
Builder for VertexRagStore.
VertexRagStoreRagResource - Class in com.google.genai.types
The definition of the Rag resource.
VertexRagStoreRagResource() - Constructor for class com.google.genai.types.VertexRagStoreRagResource
 
VertexRagStoreRagResource.Builder - Class in com.google.genai.types
Builder for VertexRagStoreRagResource.
video() - Method in class com.google.genai.types.GeneratedVideo
The output video
video() - Method in class com.google.genai.types.LiveClientRealtimeInput
The realtime video input stream.
video() - Method in class com.google.genai.types.LiveSendRealtimeInputParameters
The realtime video input stream.
video(Blob) - Method in class com.google.genai.types.LiveClientRealtimeInput.Builder
 
video(Blob) - Method in class com.google.genai.types.LiveSendRealtimeInputParameters.Builder
 
video(Video) - Method in class com.google.genai.types.GeneratedVideo.Builder
 
Video - Class in com.google.genai.types
A generated video.
Video() - Constructor for class com.google.genai.types.Video
 
VIDEO - Enum constant in enum com.google.genai.types.MediaModality.Known
Video.
Video.Builder - Class in com.google.genai.types
Builder for Video.
videoBytes() - Method in class com.google.genai.types.Video
Video bytes.
videoBytes(byte[]) - Method in class com.google.genai.types.Video.Builder
 
videoDurationSeconds() - Method in class com.google.genai.types.CachedContentUsageMetadata
Duration of video in seconds.
videoDurationSeconds(Integer) - Method in class com.google.genai.types.CachedContentUsageMetadata.Builder
 
videoMetadata() - Method in class com.google.genai.types.File
Output only.
videoMetadata() - Method in class com.google.genai.types.Part
Metadata for a given video.
videoMetadata(VideoMetadata) - Method in class com.google.genai.types.Part.Builder
 
videoMetadata(Map<String, Object>) - Method in class com.google.genai.types.File.Builder
 
VideoMetadata - Class in com.google.genai.types
Describes how the video in the Part should be used by the model.
VideoMetadata() - Constructor for class com.google.genai.types.VideoMetadata
 
VideoMetadata.Builder - Class in com.google.genai.types
Builder for VideoMetadata.
voiceConfig() - Method in class com.google.genai.types.SpeakerVoiceConfig
The configuration for the voice to use.
voiceConfig() - Method in class com.google.genai.types.SpeechConfig
The configuration for the speaker to use.
voiceConfig(VoiceConfig) - Method in class com.google.genai.types.SpeakerVoiceConfig.Builder
 
voiceConfig(VoiceConfig) - Method in class com.google.genai.types.SpeechConfig.Builder
 
VoiceConfig - Class in com.google.genai.types
The configuration for the voice to use.
VoiceConfig() - Constructor for class com.google.genai.types.VoiceConfig
 
VoiceConfig.Builder - Class in com.google.genai.types
Builder for VoiceConfig.
voiceName() - Method in class com.google.genai.types.PrebuiltVoiceConfig
The name of the prebuilt voice to use.
voiceName(String) - Method in class com.google.genai.types.PrebuiltVoiceConfig.Builder
 

W

web() - Method in class com.google.genai.types.GroundingChunk
Grounding chunk from the web.
web(GroundingChunkWeb) - Method in class com.google.genai.types.GroundingChunk.Builder
 
webSearchQueries() - Method in class com.google.genai.types.GroundingMetadata
Optional.
webSearchQueries(List<String>) - Method in class com.google.genai.types.GroundingMetadata.Builder
 
WHEN_IDLE - Enum constant in enum com.google.genai.types.FunctionResponseScheduling.Known
Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.
willContinue() - Method in class com.google.genai.types.FunctionResponse
Signals that function call continues, and more responses will be returned, turning the function call into a generator.
willContinue(boolean) - Method in class com.google.genai.types.FunctionResponse.Builder
 

Y

year() - Method in class com.google.genai.types.GoogleTypeDate
Year of the date.
year(Integer) - Method in class com.google.genai.types.GoogleTypeDate.Builder
 
A B C D E F G H I J K L M N O P Q R S T U V W Y 
All Classes and Interfaces|All Packages|Serialized Form