Uses of Package
com.google.genai.types
Packages that use com.google.genai.types
-
Classes in com.google.genai.types used by com.google.genaiClassDescriptionConfig for batches.create return value.Config for `src` parameter.A resource used in LLM queries for users to explicitly specify what to cache.Optional parameters.Optional parameters for tunings.cancel method.Client options to be used in the client instantiation.Optional parameters for computing tokens.Response for computing tokens.Local tokenizer compute tokens result.Contains the multi-part content of a message.Config for the count_tokens method.Response for counting tokens.Local tokenizer count tokens result.Config for optional parameters.Optional configuration for cached content creation.Supervised fine-tuning job creation request - optional fields.Optional parameters for models.get method.Optional parameters for caches.delete method.Empty response for caches.delete method.Used to override the default configuration.Response for the delete file method.Configuration for deleting a tuned model.NoneThe return value of delete operation.Used to override the default configuration.Configuration for editing an image.Response for the request to edit an image.Optional parameters for the embed_content method.Response for the embed_content method.A file uploaded to the API.Optional model configuration parameters.Response message for PredictionService.GenerateContent.A generated video.The config for generating an images.The output images response.Configuration for generating videos.A video generation operation.A set of source input(s) for video generation.Optional parameters.Optional parameters for caches.get method.Used to override the default configuration.Optional parameters for models.get method.NoneOptional parameters for tunings.get method.HTTP options to be used in each of the requests.A wrapper class for the http response.An image.Config for optional parameters.Config for caches.list method.Used to override the default configuration.NoneConfiguration for the list tuning jobs method.Session config for the API connection.Parameters for sending client content to the live API.Parameters for sending realtime input to the live API.Parameters for sending tool responses to the live API.Response message for API call.A trained machine learning model.Configuration for recontextualizing an image.The output images response.A set of source input(s) for image recontextualization.An interface for a Reference image.Configuration for segmenting an image.The output images response.A set of source input(s) for image segmentation.Supervised fine-tuning training dataset.A tuning job.Optional parameters for caches.update method.Configuration for updating a tuned model.Used to override the default configuration.Configuration for upscaling an image.NoneA generated video.
-
Classes in com.google.genai.types used by com.google.genai.typesClassDescriptionMarks the end of user activity.Builder for ActivityEnd.The different ways of handling user activity.Enum representing the known values for ActivityHandling.Marks the start of user activity.Builder for ActivityStart.Optional.Enum representing the known values for AdapterSize.The generic reusable api auth config.Builder for ApiAuth.The API secret.Builder for ApiAuthApiKeyConfig.Config for authentication with API key.Builder for ApiKeyConfig.The API spec that the external API implements.Enum representing the known values for ApiSpec.The audio transcription configuration in Setup.Builder for AudioTranscriptionConfig.Auth configuration to run the extension.Builder for AuthConfig.Config for Google Service Account Authentication.Builder for AuthConfigGoogleServiceAccountConfig.Config for HTTP Basic Authentication.Builder for AuthConfigHttpBasicAuthConfig.Config for user oauth.Builder for AuthConfigOauthConfig.Config for user OIDC auth.Builder for AuthConfigOidcConfig.Type of auth scheme.Enum representing the known values for AuthType.Configures automatic detection of activity.Builder for AutomaticActivityDetection.The configuration for automatic function calling.Builder for AutomaticFunctionCallingConfig.Config for batches.create return value.Builder for BatchJob.Config for `des` parameter.Builder for BatchJobDestination.Config for `src` parameter.Builder for BatchJobSource.Defines the function behavior.Enum representing the known values for Behavior.Content blob.Builder for Blob.Output only.Enum representing the known values for BlockedReason.A resource used in LLM queries for users to explicitly specify what to cache.Builder for CachedContent.Metadata on the usage of the cached content.Builder for CachedContentUsageMetadata.Optional parameters.Builder for CancelBatchJobConfig.Config for batches.cancel parameters.Builder for CancelBatchJobParameters.Optional parameters for tunings.cancel method.Builder for CancelTuningJobConfig.Parameters for the cancel method.Builder for CancelTuningJobParameters.A response candidate generated from the model.Builder for Candidate.Describes the machine learning model version checkpoint.Builder for Checkpoint.Source attributions for content.Builder for Citation.Citation information when the model quotes another source.Builder for CitationMetadata.Client options to be used in the client instantiation.Builder for ClientOptions.Result of executing the [ExecutableCode].Builder for CodeExecutionResult.Optional parameters for computing tokens.Builder for ComputeTokensConfig.Parameters for computing tokens.Builder for ComputeTokensParameters.Response for computing tokens.Builder for ComputeTokensResponse.Local tokenizer compute tokens result.Builder for ComputeTokensResult.Contains the multi-part content of a message.Builder for Content.The embedding generated from an input content.Builder for ContentEmbedding.Statistics of the input text associated with the result of content embedding.Builder for ContentEmbeddingStatistics.A content reference image.Builder for ContentReferenceImage.Enables context window compression -- mechanism managing model context window so it does not exceed given length.Builder for ContextWindowCompressionConfig.Configuration for a Control reference image.Builder for ControlReferenceConfig.A control reference image.Builder for ControlReferenceImage.Enum representing the control type of a control reference image.Enum representing the known values for ControlReferenceType.Config for the count_tokens method.Builder for CountTokensConfig.Parameters for counting tokens.Builder for CountTokensParameters.Response for counting tokens.Builder for CountTokensResponse.Local tokenizer count tokens result.Builder for CountTokensResult.Config for optional parameters.Builder for CreateBatchJobConfig.Config for batches.create parameters.Builder for CreateBatchJobParameters.Optional configuration for cached content creation.Builder for CreateCachedContentConfig.Parameters for caches.create method.Builder for CreateCachedContentParameters.Used to override the default configuration.Builder for CreateFileConfig.Generates the parameters for the private _create method.Builder for CreateFileParameters.Response for the create file method.Builder for CreateFileResponse.Supervised fine-tuning job creation request - optional fields.Builder for CreateTuningJobConfig.Supervised fine-tuning job creation parameters - optional fields.Builder for CreateTuningJobParameters.Supervised fine-tuning job creation parameters - optional fields.Builder for CreateTuningJobParametersPrivate.Distribution computed over a tuning dataset.Builder for DatasetDistribution.Dataset bucket used to create a histogram for the distribution given a population of values.Builder for DatasetDistributionDistributionBucket.Statistics computed over a tuning dataset.Builder for DatasetStats.Optional parameters for models.get method.Builder for DeleteBatchJobConfig.Config for batches.delete parameters.Builder for DeleteBatchJobParameters.Optional parameters for caches.delete method.Builder for DeleteCachedContentConfig.Parameters for caches.delete method.Builder for DeleteCachedContentParameters.Empty response for caches.delete method.Builder for DeleteCachedContentResponse.Used to override the default configuration.Builder for DeleteFileConfig.Generates the parameters for the get method.Builder for DeleteFileParameters.Response for the delete file method.Builder for DeleteFileResponse.Configuration for deleting a tuned model.Builder for DeleteModelConfig.Parameters for deleting a tuned model.Builder for DeleteModelParameters.NoneBuilder for DeleteModelResponse.The return value of delete operation.Builder for DeleteResourceJob.Statistics computed for datasets used for distillation.Builder for DistillationDataStats.Used to override the default configuration.Builder for DownloadFileConfig.Describes the options to customize dynamic retrieval.Builder for DynamicRetrievalConfig.Config for the dynamic retrieval config mode.Enum representing the known values for DynamicRetrievalConfigMode.Configuration for editing an image.Builder for EditImageConfig.Parameters for the request to edit an image.Builder for EditImageParameters.Response for the request to edit an image.Builder for EditImageResponse.Enum representing the editing mode.Enum representing the known values for EditMode.Parameters for the embed_content method.Builder for EmbedContentBatch.Optional parameters for the embed_content method.Builder for EmbedContentConfig.Request-level metadata for the Vertex Embed Content API.Builder for EmbedContentMetadata.Parameters for the embed_content method.Builder for EmbedContentParameters.Response for the embed_content method.Builder for EmbedContentResponse.Represents a customer-managed encryption key spec that can be applied to a top-level resource.Builder for EncryptionSpec.An endpoint where you deploy models.Builder for Endpoint.End of speech sensitivity.Enum representing the known values for EndSensitivity.Tool to search public web data, powered by Vertex AI Search and Sec4 compliance.Builder for EnterpriseWebSearch.An entity representing the segmented area.Builder for EntityLabel.The environment being operated.Enum representing the known values for Environment.Code generated by the model that is meant to be executed, and the result returned to the model.Builder for ExecutableCode.Retrieve from data source powered by external API for grounding.Builder for ExternalApi.The search parameters to use for the ELASTIC_SEARCH spec.Builder for ExternalApiElasticSearchParams.The search parameters to use for SIMPLE_SEARCH spec.Builder for ExternalApiSimpleSearchParams.Options for feature selection preference.Enum representing the known values for FeatureSelectionPreference.NoneBuilder for FetchPredictOperationConfig.Parameters for the fetchPredictOperation method.Builder for FetchPredictOperationParameters.A file uploaded to the API.Builder for File.URI based data.Builder for FileData.Source of the File.Enum representing the known values for FileSource.State for the lifecycle of a File.Enum representing the known values for FileState.Status of a File that uses a common error model.Builder for FileStatus.Output only.Enum representing the known values for FinishReason.A function call.Builder for FunctionCall.Function calling config.Builder for FunctionCallingConfig.Config for the function calling config mode.Enum representing the known values for FunctionCallingConfigMode.Defines a function that the model can generate JSON inputs for.Builder for FunctionDeclaration.A function response.Builder for FunctionResponse.Raw media bytes for function response.Builder for FunctionResponseBlob.URI based data for function response.Builder for FunctionResponseFileData.A datatype containing media that is part of a `FunctionResponse` message.Builder for FunctionResponsePart.Specifies how the response should be scheduled in the conversation.Enum representing the known values for FunctionResponseScheduling.Input example for preference optimization.Builder for GeminiPreferenceExample.Completion and its preference score.Builder for GeminiPreferenceExampleCompletion.Optional model configuration parameters.Builder for GenerateContentConfig.Config for models.generate_content parameters.Builder for GenerateContentParameters.Response message for PredictionService.GenerateContent.Builder for GenerateContentResponse.Content filter results for a prompt sent in the request.Builder for GenerateContentResponsePromptFeedback.Usage metadata about response(s).Builder for GenerateContentResponseUsageMetadata.An output image.Builder for GeneratedImage.A generated image mask.Builder for GeneratedImageMask.A generated video.Builder for GeneratedVideo.The config for generating an images.Builder for GenerateImagesConfig.The parameters for generating images.Builder for GenerateImagesParameters.The output images response.Builder for GenerateImagesResponse.Configuration for generating videos.Builder for GenerateVideosConfig.A video generation operation.Builder for GenerateVideosOperation.Class that represents the parameters for generating videos.Builder for GenerateVideosParameters.Response with generated videos.Builder for GenerateVideosResponse.A set of source input(s) for video generation.Builder for GenerateVideosSource.Generation config.Builder for GenerationConfig.The configuration for routing the request to a specific model.Builder for GenerationConfigRoutingConfig.When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference.Builder for GenerationConfigRoutingConfigAutoRoutingMode.When manual routing is set, the specified model will be used directly.Builder for GenerationConfigRoutingConfigManualRoutingMode.Config for thinking features.Builder for GenerationConfigThinkingConfig.Optional parameters.Builder for GetBatchJobConfig.Config for batches.get parameters.Builder for GetBatchJobParameters.Optional parameters for caches.get method.Builder for GetCachedContentConfig.Parameters for caches.get method.Builder for GetCachedContentParameters.Used to override the default configuration.Builder for GetFileConfig.Generates the parameters for the get method.Builder for GetFileParameters.Optional parameters for models.get method.Builder for GetModelConfig.NoneBuilder for GetModelParameters.NoneBuilder for GetOperationConfig.Parameters for the GET method.Builder for GetOperationParameters.Optional parameters for tunings.get method.Builder for GetTuningJobConfig.Parameters for the get method.Builder for GetTuningJobParameters.Tool to support Google Maps in Model.Builder for GoogleMaps.The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.Builder for GoogleRpcStatus.Tool to support Google Search in Model.Builder for GoogleSearch.Tool to retrieve public web data for grounding, powered by Google.Builder for GoogleSearchRetrieval.Represents a whole or partial calendar date, such as a birthday.Builder for GoogleTypeDate.Grounding chunk.Builder for GroundingChunk.Chunk from Google Maps.Builder for GroundingChunkMaps.Sources used to generate the place answer.Builder for GroundingChunkMapsPlaceAnswerSources.Author attribution for a photo or review.Builder for GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution.Encapsulates a review snippet.Builder for GroundingChunkMapsPlaceAnswerSourcesReviewSnippet.Chunk from context retrieved by the retrieval tools.Builder for GroundingChunkRetrievedContext.Chunk from the web.Builder for GroundingChunkWeb.Metadata returned to client when grounding is enabled.Builder for GroundingMetadata.Grounding support.Builder for GroundingSupport.Optional.Enum representing the known values for HarmBlockMethod.Required.Enum representing the known values for HarmBlockThreshold.Required.Enum representing the known values for HarmCategory.Output only.Enum representing the known values for HarmProbability.Output only.Enum representing the known values for HarmSeverity.HTTP options to be used in each of the requests.Builder for HttpOptions.A wrapper class for the http response.Builder for HttpResponse.An image.Builder for Image.Enum that specifies the language of the text in the prompt.Enum representing the known values for ImagePromptLanguage.Config for `inlined_embedding_responses` parameter.Builder for InlinedEmbedContentResponse.Config for inlined request.Builder for InlinedRequest.Config for `inlined_responses` parameter.Builder for InlinedResponse.Represents a time interval, encoded as a start time (inclusive) and an end time (exclusive).Builder for Interval.Job error.Builder for JobError.Job state.Enum representing the known values for JobState.Required.Enum representing the known values for Language.An object that represents a latitude/longitude pair.Builder for LatLng.Config for optional parameters.Builder for ListBatchJobsConfig.Config for batches.list parameters.Builder for ListBatchJobsParameters.Config for batches.list return value.Builder for ListBatchJobsResponse.Config for caches.list method.Builder for ListCachedContentsConfig.Parameters for caches.list method.Builder for ListCachedContentsParameters.NoneBuilder for ListCachedContentsResponse.Used to override the default configuration.Builder for ListFilesConfig.Generates the parameters for the list method.Builder for ListFilesParameters.Response for the list files method.Builder for ListFilesResponse.NoneBuilder for ListModelsConfig.NoneBuilder for ListModelsParameters.NoneBuilder for ListModelsResponse.Configuration for the list tuning jobs method.Builder for ListTuningJobsConfig.Parameters for the list tuning jobs method.Builder for ListTuningJobsParameters.Response for the list tuning jobs method.Builder for ListTuningJobsResponse.Incremental update of the current conversation delivered from the client.Builder for LiveClientContent.Messages sent by the client in the API call.Builder for LiveClientMessage.User input that is sent in real time.Builder for LiveClientRealtimeInput.Message contains configuration that will apply for the duration of the streaming session.Builder for LiveClientSetup.Client generated response to a `ToolCall` received from the server.Builder for LiveClientToolResponse.Session config for the API connection.Builder for LiveConnectConfig.Parameters for connecting to the live API.Builder for LiveConnectParameters.Parameters for sending client content to the live API.Builder for LiveSendClientContentParameters.Parameters for sending realtime input to the live API.Builder for LiveSendRealtimeInputParameters.Parameters for sending tool responses to the live API.Builder for LiveSendToolResponseParameters.Incremental server update generated by the model in response to client messages.Builder for LiveServerContent.Server will not be able to service client soon.Builder for LiveServerGoAway.Response message for API call.Builder for LiveServerMessage.Update of the session resumption state.Builder for LiveServerSessionResumptionUpdate.Sent in response to a `LiveGenerateContentSetup` message from the client.Builder for LiveServerSetupComplete.Request for the client to execute the `function_calls` and return the responses with the matching `id`s.Builder for LiveServerToolCall.Notification for the client that a previously issued `ToolCallMessage` with the specified `id`s should have been not executed and should be cancelled.Builder for LiveServerToolCallCancellation.Logprobs ResultBuilder for LogprobsResult.Candidate for the logprobs token and score.Builder for LogprobsResultCandidate.Candidates with top log probabilities at each decoding step.Builder for LogprobsResultTopCandidates.Configuration for a Mask reference image.Builder for MaskReferenceConfig.A mask reference image.Builder for MaskReferenceImage.Enum representing the mask mode of a mask reference image.Enum representing the known values for MaskReferenceMode.Server content modalities.Enum representing the known values for MediaModality.The media resolution to use.Enum representing the known values for MediaResolution.Server content modalities.Enum representing the known values for Modality.Represents token counting info for a single modality.Builder for ModalityTokenCount.Enum representing the known values for Mode.A trained machine learning model.Builder for Model.The model routing preference.Enum representing the known values for ModelRoutingPreference.Config for model selection.Builder for ModelSelectionConfig.The configuration for the multi-speaker setup.Builder for MultiSpeakerVoiceConfig.Required.Enum representing the known values for Outcome.A datatype containing media content.Builder for Part.Tuning spec for Partner models.Builder for PartnerModelTuningSpec.Enum that controls the generation of people.Enum representing the known values for PersonGeneration.The configuration for the prebuilt speaker to use.Builder for PrebuiltVoiceConfig.Statistics computed for datasets used for preference optimization.Builder for PreferenceOptimizationDataStats.A pre-tuned model for continuous tuning.Builder for PreTunedModel.Config for proactivity features.Builder for ProactivityConfig.An image of the product.Builder for ProductImage.A RagChunk includes the content of a chunk of a RagFile, and associated metadata.Builder for RagChunk.Represents where the chunk starts and ends in the document.Builder for RagChunkPageSpan.Specifies the context retrieval config.Builder for RagRetrievalConfig.Config for filters.Builder for RagRetrievalConfigFilter.Config for Hybrid Search.Builder for RagRetrievalConfigHybridSearch.Config for ranking and reranking.Builder for RagRetrievalConfigRanking.Config for LlmRanker.Builder for RagRetrievalConfigRankingLlmRanker.Config for Rank Service.Builder for RagRetrievalConfigRankingRankService.A raw reference image.Builder for RawReferenceImage.Marks the end of user activity.Builder for RealtimeInputConfig.Configuration for recontextualizing an image.Builder for RecontextImageConfig.The parameters for recontextualizing an image.Builder for RecontextImageParameters.The output images response.Builder for RecontextImageResponse.A set of source input(s) for image recontextualization.Builder for RecontextImageSource.An interface for a Reference image.Private class that represents a Reference image that is sent to API.Builder for ReferenceImageAPI.Represents a recorded session.Builder for ReplayFile.Represents a single interaction, request and response in a replay.Builder for ReplayInteraction.Represents a single request in a replay.Builder for ReplayRequest.Represents a single response in a replay.Builder for ReplayResponse.Defines a retrieval tool that model can call to access external knowledge.Builder for Retrieval.Retrieval config.Builder for RetrievalConfig.Metadata related to retrieval in the grounding flow.Builder for RetrievalMetadata.Safety attributes of a GeneratedImage or the user-provided prompt.Builder for SafetyAttributes.Enum that controls the safety filter level for objectionable content.Enum representing the known values for SafetyFilterLevel.Safety rating corresponding to the generated content.Builder for SafetyRating.Safety settings.Builder for SafetySetting.Schema is used to define the format of input/output data.Builder for Schema.An image mask representing a brush scribble.Builder for ScribbleImage.Google search entry point.Builder for SearchEntryPoint.Segment of the content.Builder for Segment.Configuration for segmenting an image.Builder for SegmentImageConfig.The parameters for segmenting an image.Builder for SegmentImageParameters.The output images response.Builder for SegmentImageResponse.A set of source input(s) for image segmentation.Builder for SegmentImageSource.Enum that represents the segmentation mode.Enum representing the known values for SegmentMode.Configuration of session resumption mechanism.Builder for SessionResumptionConfig.Config for `response` parameter.Builder for SingleEmbedContentResponse.Context window will be truncated by keeping only suffix of it.Builder for SlidingWindow.The configuration for the speaker to use.Builder for SpeakerVoiceConfig.The speech generation configuration.Builder for SpeechConfig.Start of speech sensitivity.Enum representing the known values for StartSensitivity.Configuration for a Style reference image.Builder for StyleReferenceConfig.A style reference image.Builder for StyleReferenceImage.Configuration for a Subject reference image.Builder for SubjectReferenceConfig.A subject reference image.Builder for SubjectReferenceImage.Enum representing the subject type of a subject reference image.Enum representing the known values for SubjectReferenceType.Hyperparameters for SFT.Builder for SupervisedHyperParameters.Dataset distribution for Supervised Tuning.Builder for SupervisedTuningDatasetDistribution.Dataset bucket used to create a histogram for the distribution given a population of values.Builder for SupervisedTuningDatasetDistributionDatasetBucket.Tuning data statistics for Supervised Tuning.Builder for SupervisedTuningDataStats.Tuning Spec for Supervised Tuning for first party models.Builder for SupervisedTuningSpec.NoneBuilder for TestTableFile.NoneBuilder for TestTableItem.The thinking features configuration.Builder for ThinkingConfig.Tokens info with a list of tokens and the corresponding list of token ids.Builder for TokensInfo.Tool details of a tool that the model may use to generate a response.Builder for Tool.Tool that executes code generated by the model, and automatically returns the result to the model.Builder for ToolCodeExecution.Tool to support computer use.Builder for ToolComputerUse.Tool config.Builder for ToolConfig.Output only.Enum representing the known values for TrafficType.Audio transcription in Server Conent.Builder for Transcription.NoneBuilder for TunedModel.TunedModelCheckpoint for the Tuned Model of a Tuning Job.Builder for TunedModelCheckpoint.A tuned machine learning model.Builder for TunedModelInfo.Supervised fine-tuning training dataset.Builder for TuningDataset.The tuning data statistic values for TuningJob.Builder for TuningDataStats.NoneBuilder for TuningExample.A tuning job.Builder for TuningJob.Tuning mode.Enum representing the known values for TuningMode.A long-running operation.Builder for TuningOperation.NoneBuilder for TuningValidationDataset.The reason why the turn is complete.Enum representing the known values for TurnCompleteReason.Options about which input is included in the user's turn.Enum representing the known values for TurnCoverage.Optional.Enum representing the known values for Type.Optional parameters for caches.update method.Builder for UpdateCachedContentConfig.NoneBuilder for UpdateCachedContentParameters.Configuration for updating a tuned model.Builder for UpdateModelConfig.Configuration for updating a tuned model.Builder for UpdateModelParameters.Used to override the default configuration.Builder for UploadFileConfig.Internal API config for UpscaleImage.Builder for UpscaleImageAPIConfig.API parameters for UpscaleImage.Builder for UpscaleImageAPIParameters.Configuration for upscaling an image.Builder for UpscaleImageConfig.User-facing config UpscaleImageParameters.Builder for UpscaleImageParameters.NoneBuilder for UpscaleImageResponse.Tool to support URL context retrieval.Builder for UrlContext.Metadata related to url context retrieval tool.Builder for UrlContextMetadata.Context for a single url retrieval.Builder for UrlMetadata.Status of the url retrieval.Enum representing the known values for UrlRetrievalStatus.Usage metadata about response(s).Builder for UsageMetadata.Retrieve from Vertex AI Search datastore or engine for grounding.Builder for VertexAISearch.Define data stores within engine to filter on in a search call and configurations for those data stores.Builder for VertexAISearchDataStoreSpec.Retrieve from Vertex RAG Store for grounding.Builder for VertexRagStore.The definition of the Rag resource.Builder for VertexRagStoreRagResource.A generated video.Builder for Video.Enum that controls the compression quality of the generated videos.Enum representing the known values for VideoCompressionQuality.A mask for video generation.Builder for VideoGenerationMask.Enum for the mask mode of a video generation mask.Enum representing the known values for VideoGenerationMaskMode.A reference image for video generation.Builder for VideoGenerationReferenceImage.Enum for the reference type of a video generation reference image.Enum representing the known values for VideoGenerationReferenceType.Describes how the video in the Part should be used by the model.Builder for VideoMetadata.The configuration for the voice to use.Builder for VoiceConfig.