Module types

Enumerations

ActivityHandling
AdapterSize
ApiSpec
AuthType
Behavior
BlockedReason
ControlReferenceType
DynamicRetrievalConfigMode
EditMode
EndSensitivity
Environment
FeatureSelectionPreference
FileSource
FileState
FinishReason
FunctionCallingConfigMode
FunctionResponseScheduling
HarmBlockMethod
HarmBlockThreshold
HarmCategory
HarmProbability
HarmSeverity
ImagePromptLanguage
JobState
Language
LiveMusicPlaybackControl
MaskReferenceMode
MediaModality
MediaResolution
Modality
Mode
MusicGenerationMode
Outcome
PersonGeneration
SafetyFilterLevel
Scale
SegmentMode
StartSensitivity
SubjectReferenceType
TrafficType
TuningMode
TurnCoverage
Type
UrlRetrievalStatus
VideoCompressionQuality
VideoGenerationReferenceType

Classes

ComputeTokensResponse
ControlReferenceImage
CountTokensResponse
CreateFileResponse
DeleteCachedContentResponse
DeleteFileResponse
DeleteModelResponse
EditImageResponse
EmbedContentResponse
FunctionResponse
GenerateContentResponse
GenerateContentResponsePromptFeedback
GenerateContentResponseUsageMetadata
GenerateImagesResponse
GenerateVideosOperation
GenerateVideosResponse
HttpResponse
InlinedResponse
ListBatchJobsResponse
ListCachedContentsResponse
ListFilesResponse
ListModelsResponse
ListTuningJobsResponse
LiveClientToolResponse
LiveMusicServerMessage
LiveSendToolResponseParameters
LiveServerMessage
MaskReferenceImage
RawReferenceImage
RecontextImageResponse
ReplayResponse
SegmentImageResponse
StyleReferenceImage
SubjectReferenceImage
UpscaleImageResponse

Interfaces

ActivityEnd
ActivityStart
ApiAuth
ApiAuthApiKeyConfig
ApiKeyConfig
AudioChunk
AudioTranscriptionConfig
AuthConfig
AuthConfigGoogleServiceAccountConfig
AuthConfigHttpBasicAuthConfig
AuthConfigOauthConfig
AuthConfigOidcConfig
AuthToken
AutomaticActivityDetection
AutomaticFunctionCallingConfig
BatchJob
BatchJobDestination
BatchJobSource
Blob
CachedContent
CachedContentUsageMetadata
CallableTool
CallableToolConfig
CancelBatchJobConfig
CancelBatchJobParameters
CancelTuningJobConfig
CancelTuningJobParameters
Candidate
Checkpoint
Citation
CitationMetadata
CodeExecutionResult
ComputeTokensConfig
ComputeTokensParameters
Content
ContentEmbedding
ContentEmbeddingStatistics
ContextWindowCompressionConfig
ControlReferenceConfig
CountTokensConfig
CountTokensParameters
CreateAuthTokenConfig
CreateAuthTokenParameters
CreateBatchJobConfig
CreateBatchJobParameters
CreateCachedContentConfig
CreateCachedContentParameters
CreateChatParameters
CreateFileConfig
CreateFileParameters
CreateTuningJobConfig
CreateTuningJobParameters
CreateTuningJobParametersPrivate
DatasetDistribution
DatasetDistributionDistributionBucket
DatasetStats
DeleteBatchJobConfig
DeleteBatchJobParameters
DeleteCachedContentConfig
DeleteCachedContentParameters
DeleteFileConfig
DeleteFileParameters
DeleteModelConfig
DeleteModelParameters
DeleteResourceJob
DistillationDataStats
DownloadFileConfig
DownloadFileParameters
DynamicRetrievalConfig
EditImageConfig
EditImageParameters
EmbedContentConfig
EmbedContentMetadata
EmbedContentParameters
EncryptionSpec
Endpoint
EnterpriseWebSearch
EntityLabel
ExecutableCode
ExternalApi
ExternalApiElasticSearchParams
ExternalApiSimpleSearchParams
FetchPredictOperationConfig
FetchPredictOperationParameters
File
FileData
FileStatus
FunctionCall
FunctionCallingConfig
FunctionDeclaration
GeminiPreferenceExample
GeminiPreferenceExampleCompletion
GenerateContentConfig
GenerateContentParameters
GeneratedImage
GeneratedImageMask
GeneratedVideo
GenerateImagesConfig
GenerateImagesParameters
GenerateVideosConfig
GenerateVideosParameters
GenerateVideosSource
GenerationConfig
GenerationConfigRoutingConfig
GenerationConfigRoutingConfigAutoRoutingMode
GenerationConfigRoutingConfigManualRoutingMode
GenerationConfigThinkingConfig
GetBatchJobConfig
GetBatchJobParameters
GetCachedContentConfig
GetCachedContentParameters
GetFileConfig
GetFileParameters
GetModelConfig
GetModelParameters
GetOperationConfig
GetOperationParameters
GetTuningJobConfig
GetTuningJobParameters
GoogleMaps
GoogleRpcStatus
GoogleSearch
GoogleSearchRetrieval
GoogleTypeDate
GroundingChunk
GroundingChunkMaps
GroundingChunkMapsPlaceAnswerSources
GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution
GroundingChunkMapsPlaceAnswerSourcesReviewSnippet
GroundingChunkRetrievedContext
GroundingChunkWeb
GroundingMetadata
GroundingSupport
HttpOptions
Image
InlinedRequest
Interval
JobError
LatLng
ListBatchJobsConfig
ListBatchJobsParameters
ListCachedContentsConfig
ListCachedContentsParameters
ListFilesConfig
ListFilesParameters
ListModelsConfig
ListModelsParameters
ListTuningJobsConfig
ListTuningJobsParameters
LiveCallbacks
LiveClientContent
LiveClientMessage
LiveClientRealtimeInput
LiveClientSetup
LiveConnectConfig
LiveConnectConstraints
LiveConnectParameters
LiveMusicCallbacks
LiveMusicClientContent
LiveMusicClientMessage
LiveMusicClientSetup
LiveMusicConnectParameters
LiveMusicFilteredPrompt
LiveMusicGenerationConfig
LiveMusicServerContent
LiveMusicServerSetupComplete
LiveMusicSetConfigParameters
LiveMusicSetWeightedPromptsParameters
LiveMusicSourceMetadata
LiveSendClientContentParameters
LiveSendRealtimeInputParameters
LiveServerContent
LiveServerGoAway
LiveServerSessionResumptionUpdate
LiveServerSetupComplete
LiveServerToolCall
LiveServerToolCallCancellation
LogprobsResult
LogprobsResultCandidate
LogprobsResultTopCandidates
MaskReferenceConfig
ModalityTokenCount
Model
ModelSelectionConfig
MultiSpeakerVoiceConfig
Operation
OperationFromAPIResponseParameters
OperationGetParameters
Part
PartnerModelTuningSpec
PrebuiltVoiceConfig
PreferenceOptimizationDataStats
PreTunedModel
ProactivityConfig
ProductImage
RagChunk
RagChunkPageSpan
RagRetrievalConfig
RagRetrievalConfigFilter
RagRetrievalConfigHybridSearch
RagRetrievalConfigRanking
RagRetrievalConfigRankingLlmRanker
RagRetrievalConfigRankingRankService
RealtimeInputConfig
RecontextImageConfig
RecontextImageParameters
RecontextImageSource
ReplayFile
ReplayInteraction
ReplayRequest
Retrieval
RetrievalConfig
RetrievalMetadata
SafetyAttributes
SafetyRating
SafetySetting
Schema
ScribbleImage
SearchEntryPoint
Segment
SegmentImageConfig
SegmentImageParameters
SegmentImageSource
SendMessageParameters
SessionResumptionConfig
SlidingWindow
SpeakerVoiceConfig
SpeechConfig
StyleReferenceConfig
SubjectReferenceConfig
SupervisedHyperParameters
SupervisedTuningDatasetDistribution
SupervisedTuningDatasetDistributionDatasetBucket
SupervisedTuningDataStats
SupervisedTuningSpec
TestTableFile
TestTableItem
ThinkingConfig
TokensInfo
Tool
ToolCodeExecution
ToolComputerUse
ToolConfig
Transcription
TunedModel
TunedModelCheckpoint
TunedModelInfo
TuningDataset
TuningDataStats
TuningExample
TuningJob
TuningOperation
TuningValidationDataset
UpdateCachedContentConfig
UpdateCachedContentParameters
UpdateModelConfig
UpdateModelParameters
UploadFileConfig
UploadFileParameters
UpscaleImageConfig
UpscaleImageParameters
UrlContext
UrlContextMetadata
UrlMetadata
UsageMetadata
VertexAISearch
VertexAISearchDataStoreSpec
VertexRagStore
VertexRagStoreRagResource
Video
VideoGenerationReferenceImage
VideoMetadata
VoiceConfig
WeightedPrompt

Type Aliases

BatchJobDestinationUnion
BatchJobSourceUnion
BlobImageUnion
ContentListUnion
ContentUnion
DownloadableFileUnion
PartListUnion
PartUnion
ReferenceImage
SchemaUnion
SpeechConfigUnion
ToolListUnion
ToolUnion

Functions

createModelContent
createPartFromBase64
createPartFromCodeExecutionResult
createPartFromExecutableCode
createPartFromFunctionCall
createPartFromFunctionResponse
createPartFromText
createPartFromUri
createUserContent