Package com.google.genai
Class JsonSerializable
java.lang.Object
com.google.genai.JsonSerializable
- Direct Known Subclasses:
ActivityEnd
,ActivityStart
,ApiAuth
,ApiAuthApiKeyConfig
,ApiKeyConfig
,AudioTranscriptionConfig
,AuthConfig
,AuthConfigGoogleServiceAccountConfig
,AuthConfigHttpBasicAuthConfig
,AuthConfigOauthConfig
,AuthConfigOidcConfig
,AutomaticActivityDetection
,AutomaticFunctionCallingConfig
,BatchJob
,BatchJobDestination
,BatchJobSource
,Blob
,CachedContent
,CachedContentUsageMetadata
,CancelBatchJobConfig
,CancelBatchJobParameters
,CancelTuningJobConfig
,CancelTuningJobParameters
,Candidate
,Checkpoint
,Citation
,CitationMetadata
,ClientOptions
,CodeExecutionResult
,ComputeTokensConfig
,ComputeTokensParameters
,ComputeTokensResponse
,ComputeTokensResult
,Content
,ContentEmbedding
,ContentEmbeddingStatistics
,ContentReferenceImage
,ContextWindowCompressionConfig
,ControlReferenceConfig
,ControlReferenceImage
,CountTokensConfig
,CountTokensParameters
,CountTokensResponse
,CountTokensResult
,CreateBatchJobConfig
,CreateBatchJobParameters
,CreateCachedContentConfig
,CreateCachedContentParameters
,CreateFileConfig
,CreateFileParameters
,CreateFileResponse
,CreateTuningJobConfig
,CreateTuningJobParameters
,CreateTuningJobParametersPrivate
,DatasetDistribution
,DatasetDistributionDistributionBucket
,DatasetStats
,DeleteBatchJobConfig
,DeleteBatchJobParameters
,DeleteCachedContentConfig
,DeleteCachedContentParameters
,DeleteCachedContentResponse
,DeleteFileConfig
,DeleteFileParameters
,DeleteFileResponse
,DeleteModelConfig
,DeleteModelParameters
,DeleteModelResponse
,DeleteResourceJob
,DistillationDataStats
,DownloadFileConfig
,DynamicRetrievalConfig
,EditImageConfig
,EditImageParameters
,EditImageResponse
,EmbedContentBatch
,EmbedContentConfig
,EmbedContentMetadata
,EmbedContentParameters
,EmbedContentResponse
,EncryptionSpec
,Endpoint
,EnterpriseWebSearch
,EntityLabel
,ExecutableCode
,ExternalApi
,ExternalApiElasticSearchParams
,ExternalApiSimpleSearchParams
,FetchPredictOperationConfig
,FetchPredictOperationParameters
,File
,FileData
,FileStatus
,FunctionCall
,FunctionCallingConfig
,FunctionDeclaration
,FunctionResponse
,FunctionResponseBlob
,FunctionResponseFileData
,FunctionResponsePart
,GeminiPreferenceExample
,GeminiPreferenceExampleCompletion
,GenerateContentConfig
,GenerateContentParameters
,GenerateContentResponse
,GenerateContentResponsePromptFeedback
,GenerateContentResponseUsageMetadata
,GeneratedImage
,GeneratedImageMask
,GeneratedVideo
,GenerateImagesConfig
,GenerateImagesParameters
,GenerateImagesResponse
,GenerateVideosConfig
,GenerateVideosOperation
,GenerateVideosParameters
,GenerateVideosResponse
,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
,HttpResponse
,Image
,InlinedEmbedContentResponse
,InlinedRequest
,InlinedResponse
,Interval
,JobError
,LatLng
,ListBatchJobsConfig
,ListBatchJobsParameters
,ListBatchJobsResponse
,ListCachedContentsConfig
,ListCachedContentsParameters
,ListCachedContentsResponse
,ListFilesConfig
,ListFilesParameters
,ListFilesResponse
,ListModelsConfig
,ListModelsParameters
,ListModelsResponse
,ListTuningJobsConfig
,ListTuningJobsParameters
,ListTuningJobsResponse
,LiveClientContent
,LiveClientMessage
,LiveClientRealtimeInput
,LiveClientSetup
,LiveClientToolResponse
,LiveConnectConfig
,LiveConnectParameters
,LiveSendClientContentParameters
,LiveSendRealtimeInputParameters
,LiveSendToolResponseParameters
,LiveServerContent
,LiveServerGoAway
,LiveServerMessage
,LiveServerSessionResumptionUpdate
,LiveServerSetupComplete
,LiveServerToolCall
,LiveServerToolCallCancellation
,LogprobsResult
,LogprobsResultCandidate
,LogprobsResultTopCandidates
,MaskReferenceConfig
,MaskReferenceImage
,ModalityTokenCount
,Model
,ModelSelectionConfig
,MultiSpeakerVoiceConfig
,Part
,PartnerModelTuningSpec
,PrebuiltVoiceConfig
,PreferenceOptimizationDataStats
,PreTunedModel
,ProactivityConfig
,ProductImage
,RagChunk
,RagChunkPageSpan
,RagRetrievalConfig
,RagRetrievalConfigFilter
,RagRetrievalConfigHybridSearch
,RagRetrievalConfigRanking
,RagRetrievalConfigRankingLlmRanker
,RagRetrievalConfigRankingRankService
,RawReferenceImage
,RealtimeInputConfig
,RecontextImageConfig
,RecontextImageParameters
,RecontextImageResponse
,RecontextImageSource
,ReferenceImageAPI
,ReplayFile
,ReplayInteraction
,ReplayRequest
,ReplayResponse
,Retrieval
,RetrievalConfig
,RetrievalMetadata
,SafetyAttributes
,SafetyRating
,SafetySetting
,Schema
,ScribbleImage
,SearchEntryPoint
,Segment
,SegmentImageConfig
,SegmentImageParameters
,SegmentImageResponse
,SegmentImageSource
,SessionResumptionConfig
,SingleEmbedContentResponse
,SlidingWindow
,SpeakerVoiceConfig
,SpeechConfig
,StyleReferenceConfig
,StyleReferenceImage
,SubjectReferenceConfig
,SubjectReferenceImage
,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
,UpscaleImageAPIConfig
,UpscaleImageAPIParameters
,UpscaleImageConfig
,UpscaleImageParameters
,UpscaleImageResponse
,UrlContext
,UrlContextMetadata
,UrlMetadata
,UsageMetadata
,VertexAISearch
,VertexAISearchDataStoreSpec
,VertexRagStore
,VertexRagStoreRagResource
,Video
,VideoGenerationMask
,VideoGenerationReferenceImage
,VideoMetadata
,VoiceConfig
A class that can be serialized to JSON and deserialized from JSON.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.JsonNode
stringToJsonNode
(String string) Converts a Json string to a JsonNode.toJson()
Serializes the instance to a Json string.
-
Constructor Details
-
JsonSerializable
public JsonSerializable()
-
-
Method Details
-
toJson
Serializes the instance to a Json string. -
stringToJsonNode
Converts a Json string to a JsonNode.
-