Index
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
- ACTIVITY_HANDLING_UNSPECIFIED - Enum constant in enum com.google.genai.types.ActivityHandling.Known
- 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
- 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
- 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
- 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.
- 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
- 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
- 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 - Enum constant in enum com.google.genai.types.Modality.Known
- audioStreamEnd() - Method in class com.google.genai.types.LiveClientRealtimeInput
-
Indicates that the audio stream has ended, e.g.
- audioStreamEnd() - Method in class com.google.genai.types.LiveSendRealtimeInputParameters
-
Indicates that the audio stream has ended, e.g.
- 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
- AudioTranscription - Class in com.google.genai.types
-
The audio transcription configuration in Setup.
- AudioTranscription() - Constructor for class com.google.genai.types.AudioTranscription
- AudioTranscription.Builder - Class in com.google.genai.types
-
Builder for AudioTranscription.
- 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.
- 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
- 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.
- 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
- 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
- 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_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_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 - 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 - 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
- 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.
- BLOCKLIST - Enum constant in enum com.google.genai.types.BlockedReason.Known
- BLOCKLIST - Enum constant in enum com.google.genai.types.FinishReason.Known
- 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
- 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
- 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.AudioTranscription.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.AutomaticActivityDetection.Builder
- build() - Method in class com.google.genai.types.Blob.Builder
- build() - Method in class com.google.genai.types.Candidate.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.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.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.FileData.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.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.Image.Builder
- build() - Method in class com.google.genai.types.LatLng.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.LiveClientSessionResumptionConfig.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.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.ModelSelectionConfig.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.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.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.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.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
forClient
. - 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.AudioTranscription
-
Instantiates a builder for AudioTranscription.
- 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.AutomaticActivityDetection
-
Instantiates a builder for AutomaticActivityDetection.
- builder() - Static method in class com.google.genai.types.Blob
-
Instantiates a builder for Blob.
- builder() - Static method in class com.google.genai.types.Candidate
-
Instantiates a builder for Candidate.
- 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.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.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.FileData
-
Instantiates a builder for FileData.
- 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.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.Image
-
Instantiates a builder for Image.
- builder() - Static method in class com.google.genai.types.LatLng
-
Instantiates a builder for LatLng.
- 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.LiveClientSessionResumptionConfig
-
Instantiates a builder for LiveClientSessionResumptionConfig.
- 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.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.ModelSelectionConfig
-
Instantiates a builder for ModelSelectionConfig.
- 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.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.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.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.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.AudioTranscription.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.AutomaticActivityDetection.Builder
- Builder() - Constructor for class com.google.genai.types.Blob.Builder
- Builder() - Constructor for class com.google.genai.types.Candidate.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.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.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.FileData.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.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.Image.Builder
- Builder() - Constructor for class com.google.genai.types.LatLng.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.LiveClientSessionResumptionConfig.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.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.ModelSelectionConfig.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.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.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.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.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
- 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
- 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
- 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.
- checkStreamResponseAndUpdateHistory() - Method in class com.google.genai.Chat
- 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(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
- comprehensiveHistory - Variable in class com.google.genai.Chat
- 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
- computeTokens(String, List<Content>, ComputeTokensConfig) - Method in class com.google.genai.Models
- 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.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.GetOperationParameters
-
Used to override the default configuration.
- config() - Method in class com.google.genai.types.LiveConnectParameters
-
Optional configuration parameters for the request.
- 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.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(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(GetOperationConfig) - Method in class com.google.genai.types.GetOperationParameters.Builder
- config(LiveConnectConfig) - Method in class com.google.genai.types.LiveConnectParameters.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(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.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.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.Models
-
Counts tokens given a GenAI model and a text string.
- countTokens(String, List<Content>, CountTokensConfig) - Method in class com.google.genai.AsyncModels
- countTokens(String, List<Content>, CountTokensConfig) - Method in class com.google.genai.Models
- 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.Chats
-
Creates a new chat session.
- create(String, GenerateContentConfig) - Method in class com.google.genai.Chats
-
Creates a new chat session.
- createTime() - Method in class com.google.genai.types.GenerateContentResponse
-
Timestamp when the request is made to the server.
- createTime(String) - Method in class com.google.genai.types.GenerateContentResponse.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
- curatedHistory - Variable in class com.google.genai.Chat
- currentResponseStream - Variable in class com.google.genai.Chat
- currentUserMessage - Variable in class com.google.genai.Chat
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
- defaultEnvironmentVariables() - Static method in class com.google.genai.Client
- description() - Method in class com.google.genai.types.FunctionDeclaration
-
Optional.
- description() - Method in class com.google.genai.types.Schema
-
Optional.
- description(String) - Method in class com.google.genai.types.FunctionDeclaration.Builder
- description(String) - Method in class com.google.genai.types.Schema.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.UploadFileConfig
-
Optional display name of the file.
- displayName(String) - Method in class com.google.genai.types.UploadFileConfig.Builder
- DOCUMENT - Enum constant in enum com.google.genai.types.MediaModality.Known
- 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
- 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
- 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
- END_SENSITIVITY_LOW - Enum constant in enum com.google.genai.types.EndSensitivity.Known
- END_SENSITIVITY_UNSPECIFIED - Enum constant in enum com.google.genai.types.EndSensitivity.Known
- 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(String) - 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
- 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.
- 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
- 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.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.FinishReason
- equals(Object) - Method in class com.google.genai.types.FunctionCallingConfigMode
- 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
- error() - Method in class com.google.genai.types.GenerateVideosOperation
-
The error result of the operation in case of failure or cancellation.
- 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.
F
- 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.
- 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.
- 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.RagRetrievalConfig
-
Optional.
- filter(RagRetrievalConfigFilter) - Method in class com.google.genai.types.RagRetrievalConfig.Builder
- FINISH_REASON_UNSPECIFIED - Enum constant in enum com.google.genai.types.FinishReason.Known
- 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.
- 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(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.
- 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.AudioTranscription
-
Deserializes a JSON string to a AudioTranscription 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.AutomaticActivityDetection
-
Deserializes a JSON string to a AutomaticActivityDetection 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.Candidate
-
Deserializes a JSON string to a Candidate 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.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.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.FileData
-
Deserializes a JSON string to a FileData 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.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.Image
-
Deserializes a JSON string to a Image 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.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.LiveClientSessionResumptionConfig
-
Deserializes a JSON string to a LiveClientSessionResumptionConfig 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.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.ModelSelectionConfig
-
Deserializes a JSON string to a ModelSelectionConfig 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.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.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.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.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.
- fromJsonString(String, Class<T>) - Static method in class com.google.genai.JsonSerializable
-
Deserializes a Json string to an object of the given type.
- 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
- 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
-
Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3).
- 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
-
Optional.
- 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
- 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 content object.
- generateContent(String, List<Content>, GenerateContentConfig) - Method in class com.google.genai.Models
-
Generates content given a GenAI model and a content object.
- 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 content object.
- generateContentStream(String, List<Content>, GenerateContentConfig) - Method in class com.google.genai.Models
-
Generates content with streaming support given a GenAI model and a content object.
- 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.
- getHistory(boolean) - Method in class com.google.genai.Chat
-
Returns the chat history.
- 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
- 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.LiveClientSessionResumptionConfig
-
Session resumption handle of previous session (session to restore).
- 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.LiveClientSessionResumptionConfig.Builder
- 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
- HARM_BLOCK_THRESHOLD_UNSPECIFIED - Enum constant in enum com.google.genai.types.HarmBlockThreshold.Known
- HARM_CATEGORY_CIVIC_INTEGRITY - Enum constant in enum com.google.genai.types.HarmCategory.Known
- HARM_CATEGORY_DANGEROUS_CONTENT - Enum constant in enum com.google.genai.types.HarmCategory.Known
- HARM_CATEGORY_HARASSMENT - Enum constant in enum com.google.genai.types.HarmCategory.Known
- HARM_CATEGORY_HATE_SPEECH - Enum constant in enum com.google.genai.types.HarmCategory.Known
- HARM_CATEGORY_SEXUALLY_EXPLICIT - Enum constant in enum com.google.genai.types.HarmCategory.Known
- HARM_CATEGORY_UNSPECIFIED - Enum constant in enum com.google.genai.types.HarmCategory.Known
- HARM_PROBABILITY_UNSPECIFIED - Enum constant in enum com.google.genai.types.HarmProbability.Known
- HARM_SEVERITY_HIGH - Enum constant in enum com.google.genai.types.HarmSeverity.Known
- HARM_SEVERITY_LOW - Enum constant in enum com.google.genai.types.HarmSeverity.Known
- HARM_SEVERITY_MEDIUM - Enum constant in enum com.google.genai.types.HarmSeverity.Known
- HARM_SEVERITY_NEGLIGIBLE - Enum constant in enum com.google.genai.types.HarmSeverity.Known
- HARM_SEVERITY_UNSPECIFIED - Enum constant in enum com.google.genai.types.HarmSeverity.Known
- 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.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.FinishReason
- hashCode() - Method in class com.google.genai.types.FunctionCallingConfigMode
- 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
- 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.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.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
- HTTP_BASIC_AUTH - Enum constant in enum com.google.genai.types.AuthType.Known
- 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(HttpOptions) - Method in class com.google.genai.Client.Builder
-
Sets the
HttpOptions
for the API client. - 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.
- 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
-
The id of the function call this response is for.
- 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
- 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
- IMAGE - Enum constant in enum com.google.genai.types.Modality.Known
- 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
- 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
- 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
- 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
- interactions() - Method in class com.google.genai.types.ReplayFile
- interactions(List<ReplayInteraction>) - Method in class com.google.genai.types.ReplayFile.Builder
- 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
- 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.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
- 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.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.FinishReason
- knownEnum() - Method in class com.google.genai.types.FunctionCallingConfigMode
- 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
- 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(Map<String, String>) - Method in class com.google.genai.types.GenerateContentConfig.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
- LANGUAGE_UNSPECIFIED - Enum constant in enum com.google.genai.types.Language.Known
- 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.
- 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
- 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.
- LiveClientSessionResumptionConfig - Class in com.google.genai.types
-
Configuration of session resumption mechanism.
- LiveClientSessionResumptionConfig() - Constructor for class com.google.genai.types.LiveClientSessionResumptionConfig
- LiveClientSessionResumptionConfig.Builder - Class in com.google.genai.types
-
Builder for LiveClientSessionResumptionConfig.
- 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.
- 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.
- 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
M
- MALFORMED_FUNCTION_CALL - Enum constant in enum com.google.genai.types.FinishReason.Known
- 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
- maximum() - Method in class com.google.genai.types.Schema
-
Optional.
- maximum(Double) - Method in class com.google.genai.types.Schema.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_LOW - Enum constant in enum com.google.genai.types.MediaResolution.Known
- MEDIA_RESOLUTION_MEDIUM - Enum constant in enum com.google.genai.types.MediaResolution.Known
- MEDIA_RESOLUTION_UNSPECIFIED - Enum constant in enum com.google.genai.types.MediaResolution.Known
- 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
- message() - Method in exception com.google.genai.errors.ApiException
-
Returns the error message from the API response.
- 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.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.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
- MODALITY_UNSPECIFIED - Enum constant in enum com.google.genai.types.Modality.Known
- 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
- MODE_DYNAMIC - Enum constant in enum com.google.genai.types.Mode.Known
- MODE_UNSPECIFIED - Enum constant in enum com.google.genai.types.DynamicRetrievalConfigMode.Known
- MODE_UNSPECIFIED - Enum constant in enum com.google.genai.types.FunctionCallingConfigMode.Known
- MODE_UNSPECIFIED - Enum constant in enum com.google.genai.types.Mode.Known
- Mode.Known - Enum in com.google.genai.types
-
Enum representing the known values for Mode.
- 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.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.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.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.ComputeTokensParameters.Builder
- model(String) - Method in class com.google.genai.types.CountTokensParameters.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.LiveClientSetup.Builder
- model(String) - Method in class com.google.genai.types.LiveConnectParameters.Builder
- model(String) - Method in class com.google.genai.types.UpscaleImageAPIParameters.Builder
- model(String) - Method in class com.google.genai.types.UpscaleImageParameters.Builder
- MODEL_ROUTING_PREFERENCE_UNSPECIFIED - Enum constant in enum com.google.genai.types.ModelRoutingPreference.Known
- 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 - 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
N
- 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.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.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.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
- 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
- NO_AUTH - Enum constant in enum com.google.genai.types.AuthType.Known
- NO_INTERRUPTION - Enum constant in enum com.google.genai.types.ActivityHandling.Known
- NONE - Enum constant in enum com.google.genai.types.FunctionCallingConfigMode.Known
- 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
- 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
- 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
- OFF - Enum constant in enum com.google.genai.types.HarmBlockThreshold.Known
- OIDC_AUTH - Enum constant in enum com.google.genai.types.AuthType.Known
- 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
- 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
- OTHER - Enum constant in enum com.google.genai.types.FinishReason.Known
- 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
- OUTCOME_FAILED - Enum constant in enum com.google.genai.types.Outcome.Known
- OUTCOME_OK - Enum constant in enum com.google.genai.types.Outcome.Known
- OUTCOME_UNSPECIFIED - Enum constant in enum com.google.genai.types.Outcome.Known
- 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
- 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
- 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
- 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
- probabilityScore() - Method in class com.google.genai.types.SafetyRating
-
Output only.
- probabilityScore(Float) - Method in class com.google.genai.types.SafetyRating.Builder
- PROHIBITED_CONTENT - Enum constant in enum com.google.genai.types.BlockedReason.Known
- PROHIBITED_CONTENT - Enum constant in enum com.google.genai.types.FinishReason.Known
- 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
- 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
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.
- 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
- recordHistory(List<Content>, GenerateContentResponse) - Method in class com.google.genai.Chat
-
Records the chat history.
- 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, String) - Method in class com.google.genai.HttpApiClient
-
Sends a Http request given the http method, path, and request json string.
- 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.
- 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
- 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
- SAFETY - Enum constant in enum com.google.genai.types.FinishReason.Known
- 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
- 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
- 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.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.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.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.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.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.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.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.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.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.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.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.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.
- 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.
- setReplayId(String) - Method in class com.google.genai.Client
- 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
- severityScore() - Method in class com.google.genai.types.SafetyRating
-
Output only.
- severityScore(Float) - Method in class com.google.genai.types.SafetyRating.Builder
- silenceDurationMs() - Method in class com.google.genai.types.AutomaticActivityDetection
-
The required duration of detected non-speech (e.g.
- silenceDurationMs(Integer) - Method in class com.google.genai.types.AutomaticActivityDetection.Builder
- similarityTopK() - Method in class com.google.genai.types.VertexRagStore
-
Optional.
- similarityTopK(Integer) - Method in class com.google.genai.types.VertexRagStore.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.
- 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
- START_OF_ACTIVITY_INTERRUPTS - Enum constant in enum com.google.genai.types.ActivityHandling.Known
- START_SENSITIVITY_HIGH - Enum constant in enum com.google.genai.types.StartSensitivity.Known
- START_SENSITIVITY_LOW - Enum constant in enum com.google.genai.types.StartSensitivity.Known
- START_SENSITIVITY_UNSPECIFIED - Enum constant in enum com.google.genai.types.StartSensitivity.Known
- 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(String) - 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.
- 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
- STOP - Enum constant in enum com.google.genai.types.FinishReason.Known
- 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
- 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
- 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.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.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.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
- TEXT - Enum constant in enum com.google.genai.types.Modality.Known
- 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.
- throwIfStreamNotConsumed() - Method in class com.google.genai.Chat
- timeLeft() - Method in class com.google.genai.types.LiveServerGoAway
-
The remaining time before the connection will be terminated as ABORTED.
- timeLeft(String) - 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
- 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.AudioTranscription
-
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.AutomaticActivityDetection
-
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.Candidate
-
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.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.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.FileData
-
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.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.Image
-
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.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.LiveClientSessionResumptionConfig
-
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.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.ModelSelectionConfig
-
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.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.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.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.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.GenerateContentConfig
-
Associates model output to a specific function call.
- 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.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.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.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.FinishReason
- toString() - Method in class com.google.genai.types.FunctionCallingConfigMode
- 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
- 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.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
- 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.LiveClientSessionResumptionConfig
-
If set the server will to send `last_consumed_client_message_index` in the `session_resumption_update` messages to allow for transparent reconnections.
- 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.LiveClientSessionResumptionConfig.Builder
- 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
- TURN_COVERAGE_UNSPECIFIED - Enum constant in enum com.google.genai.types.TurnCoverage.Known
- TURN_INCLUDES_ALL_INPUT - Enum constant in enum com.google.genai.types.TurnCoverage.Known
- TURN_INCLUDES_ONLY_ACTIVITY - Enum constant in enum com.google.genai.types.TurnCoverage.Known
- 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
- 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
- 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.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.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
- 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(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.
V
- validateContent(Content) - Method in class com.google.genai.Chat
-
Validates the content of a
Content
object by checking that all parts are not null. - validateContents(List<Content>) - Method in class com.google.genai.Chat
-
Validates the content of a list of
Content
objects by checking that all parts are not null. - validateHistory(List<Content>) - Method in class com.google.genai.Chat
-
Validates the history of messages by checking that the first message is from the user, the roles of subsequent messages are valid, and the content of the messages is valid.
- 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.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.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.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.
- 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.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.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.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(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
- 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.
- 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.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
- 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 - Class in com.google.genai.types
-
Metadata describes the input video content.
- 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.SpeechConfig
-
The configuration for the speaker to use.
- 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
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
All Classes and Interfaces|All Packages|Serialized Form